Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountDetails ¶
type AccountDetails struct { Links Links `json:"_links,omitempty"` Balances []*Balance `json:"balances"` Bban string `json:"bban,omitempty"` Bic string `json:"bic,omitempty"` CashAccountType string `json:"cashAccountType,omitempty"` Currency *string `json:"currency"` Details string `json:"details,omitempty"` Iban string `json:"iban,omitempty"` LinkedAccounts string `json:"linkedAccounts,omitempty"` MaskedPan string `json:"maskedPan,omitempty"` Msisdn string `json:"msisdn,omitempty"` Name string `json:"name,omitempty"` Pan string `json:"pan,omitempty"` Product string `json:"product,omitempty"` ResourceID string `json:"resourceid,omitempty"` Usage string `json:"usage,omitempty"` }
func NewAccountDetails ¶
func NewAccountDetails(currency string) AccountDetails
func (*AccountDetails) Marshal ¶
func (m *AccountDetails) Marshal() ([]byte, error)
Marshal interface implementation
func (*AccountDetails) Unmarshal ¶
func (m *AccountDetails) Unmarshal(b []byte) error
Unmarshal interface implementation
type Balance ¶
type Balance struct { BalanceAmount float32 `json:"balanceAmount"` BalanceType BalanceType `json:"balanceType"` LastChangeDateTime strfmt.DateTime `json:"lastChangeDateTime,omitempty"` LastCommittedTransaction string `json:"lastCommittedTransaction,omitempty"` ReferenceDate strfmt.Date `json:"referenceDate,omitempty"` }
type BalanceType ¶
type BalanceType string
const ( BalanceTypeClosingBooked BalanceType = "closingBooked" BalanceTypeExpected BalanceType = "expected" BalanceTypeAuthorised BalanceType = "authorised" BalanceTypeOpeningBooked BalanceType = "openingBooked" BalanceTypeInterimAvailable BalanceType = "interimAvailable" BalanceTypeForwardAvailable BalanceType = "forwardAvailable" )
type Links ¶
type Links struct { Account string `json:"account,omitempty"` AuthoriseTransaction string `json:"authoriseTransaction,omitempty"` Balances string `json:"balances,omitempty"` Download string `json:"download,omitempty"` First string `json:"first,omitempty"` Last string `json:"last,omitempty"` Next string `json:"next,omitempty"` Previous string `json:"previous,omitempty"` ScaOAuth string `json:"scaOAuth,omitempty"` ScaRedirect string `json:"scaRedirect,omitempty"` SelectAuthenticationMethod string `json:"selectAuthenticationMethod,omitempty"` Self string `json:"self,omitempty"` Status string `json:"status,omitempty"` Transactions string `json:"transactions,omitempty"` TransactionsDetails string `json:"transactionsDetails,omitempty"` UpdateProprietaryData string `json:"updateProprietaryData,omitempty"` UpdatePsuAuthentication string `json:"updatePsuAuthentication,omitempty"` UpdatePsuIdentification string `json:"updatePsuIdentification,omitempty"` }
type MessageCode ¶
type MessageCode string
MessageCode indicates the message category
const ( MessageCodeCERTIFICATEINVALID MessageCode = "CERTIFICATE_INVALID" MessageCodeCERTIFICATEEXPIRED MessageCode = "CERTIFICATE_EXPIRED" MessageCodeCERTIFICATEBLOCKED MessageCode = "CERTIFICATE_BLOCKED" MessageCodeCERTIFICATEREVOKED MessageCode = "CERTIFICATE_REVOKED" MessageCodeCERTIFICATEMISSING MessageCode = "CERTIFICATE_MISSING" MessageCodeSIGNATUREINVALID MessageCode = "SIGNATURE_INVALID" MessageCodeSIGNATUREMISSING MessageCode = "SIGNATURE_MISSING" MessageCodeFORMATERROR MessageCode = "FORMAT_ERROR" MessageCodePARAMETERNOTSUPPORTED MessageCode = "PARAMETER_NOT_SUPPORTED" MessageCodePSUCREDENTIALSINVALID MessageCode = "PSU_CREDENTIALS_INVALID" MessageCodeSERVICEINVALID MessageCode = "SERVICE_INVALID" MessageCodeSERVICEBLOCKED MessageCode = "SERVICE_BLOCKED" MessageCodeCORPORATEIDINVALID MessageCode = "CORPORATE_ID_INVALID" MessageCodeCONSENTUNKNOWN MessageCode = "CONSENT_UNKNOWN" MessageCodeCONSENTINVALID MessageCode = "CONSENT_INVALID" MessageCodeCONSENTEXPIRED MessageCode = "CONSENT_EXPIRED" MessageCodeTOKENUNKNOWN MessageCode = "TOKEN_UNKNOWN" MessageCodeTOKENINVALID MessageCode = "TOKEN_INVALID" MessageCodeTOKENEXPIRED MessageCode = "TOKEN_EXPIRED" MessageCodeRESOURCEUNKNOWN MessageCode = "RESOURCE_UNKNOWN" MessageCodeRESOURCEEXPIRED MessageCode = "RESOURCE_EXPIRED" MessageCodeTIMESTAMPINVALID MessageCode = "TIMESTAMP_INVALID" MessageCodePERIODINVALID MessageCode = "PERIOD_INVALID" MessageCodeSCAMETHODUNKNOWN MessageCode = "SCA_METHOD_UNKNOWN" MessageCodePRODUCTINVALID MessageCode = "PRODUCT_INVALID" MessageCodePRODUCTUNKNOWN MessageCode = "PRODUCT_UNKNOWN" MessageCodePAYMENTFAILED MessageCode = "PAYMENT_FAILED" MessageCodeREQUIREDKIDMISSING MessageCode = "REQUIRED_KID_MISSING" MessageCodeEXECUTIONDATEINVALID MessageCode = "EXECUTION_DATE_INVALID" MessageCodeSESSIONSNOTSUPPORTED MessageCode = "SESSIONS_NOT_SUPPORTED" MessageCodeACCESSEXCEEDED MessageCode = "ACCESS_EXCEEDED" MessageCodeREQUESTEDFORMATSINVALID MessageCode = "REQUESTED_FORMATS_INVALID" MessageCodeCARDINVALID MessageCode = "CARD_INVALID" MessageCodeNOPIISACTIVATION MessageCode = "NO_PIIS_ACTIVATION" )
type TppMessage ¶
type TppMessage struct { // Required: true Category Category `json:"category"` // Required: true Code MessageCode `json:"code"` Path string `json:"path,omitempty"` // Required: true // Max Length: 512 Text *string `json:"text"` }
TppMessage contains information for the TPP
func NewTppMessage ¶
func NewTppMessage(text string, category Category, code MessageCode, path string) TppMessage
NewTppMessage creates a new TppMessage
func (*TppMessage) Marshal ¶
func (m *TppMessage) Marshal() ([]byte, error)
Marshal interface implementation
func (*TppMessage) Unmarshal ¶
func (m *TppMessage) Unmarshal(b []byte) error
Unmarshal interface implementation
Click to show internal directories.
Click to hide internal directories.