Documentation ¶
Index ¶
- type Addresses
- type Auth
- type Balance
- type Barzahlen
- type Cards
- type Client
- func (client *Client) BlockCard(ID string)
- func (client *Client) GetAddresses(retType string) (string, *Addresses)
- func (client *Client) GetBalance(retType string) (string, *Balance)
- func (client *Client) GetCards(retType string) (string, *Cards)
- func (client *Client) GetContacts(retType string) (string, *Contacts)
- func (client *Client) GetInfo(retType string) (string, *PersonalInfo)
- func (client *Client) GetLastTransactions(limit string) (*Transactions, error)
- func (client *Client) GetLimits(retType string) (string, *Limits)
- func (client *Client) GetSmartStatementCsv(from, to TimeStamp, reader func(io.Reader) error) error
- func (client *Client) GetSpaces(retType string) (string, *Spaces)
- func (client *Client) GetStatementPDF(ID string)
- func (client *Client) GetStatements(retType string) (string, *Statements)
- func (client *Client) GetStatus(retType string) (string, *Statuses)
- func (client *Client) GetTransactions(from, to TimeStamp, limit string) (*Transactions, error)
- func (client *Client) UnblockCard(ID string)
- type Contacts
- type Limits
- type PersonalInfo
- type Spaces
- type Statements
- type Statuses
- type TimeStamp
- type Token
- type TokenSource
- type Transactions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addresses ¶
type Addresses struct { Paging struct { TotalResults int `json:"totalResults"` } `json:"paging"` Data []struct { AddressLine1 string `json:"addressLine1"` StreetName string `json:"streetName"` HouseNumberBlock string `json:"houseNumberBlock"` ZipCode string `json:"zipCode"` CityName string `json:"cityName"` CountryName string `json:"countryName"` Type string `json:"type"` ID string `json:"id"` } `json:"data"` }
type Barzahlen ¶
type Barzahlen struct { DepositAllowance string `json:"depositAllowance"` WithdrawAllowance string `json:"withdrawAllowance"` RemainingAmountMonth string `json:"remainingAmountMonth"` FeeRate string `json:"feeRate"` Cash26WithdrawalsCount string `json:"cash26WithdrawalsCount"` Cash26WithdrawalsSum string `json:"cash26WithdrawalsSum"` AtmWithdrawalsCount string `json:"atmWithdrawalsCount"` AtmWithdrawalsSum string `json:"atmWithdrawalsSum"` MonthlyDepositFeeThreshold string `json:"monthlyDepositFeeThreshold"` Success bool `json:"success"` }
type Cards ¶
type Cards []struct { ID string `json:"id"` PublicToken interface{} `json:"publicToken"` Pan interface{} `json:"pan"` MaskedPan string `json:"maskedPan"` ExpirationDate TimeStamp `json:"expirationDate"` CardType string `json:"cardType"` Status string `json:"status"` CardProduct interface{} `json:"cardProduct"` CardProductType string `json:"cardProductType"` PinDefined TimeStamp `json:"pinDefined"` CardActivated TimeStamp `json:"cardActivated"` UsernameOnCard string `json:"usernameOnCard"` ExceetExpressCardDelivery interface{} `json:"exceetExpressCardDelivery"` Membership interface{} `json:"membership"` ExceetActualDeliveryDate interface{} `json:"exceetActualDeliveryDate"` ExceetExpressCardDeliveryEmailSent interface{} `json:"exceetExpressCardDeliveryEmailSent"` ExceetCardStatus interface{} `json:"exceetCardStatus"` ExceetExpectedDeliveryDate interface{} `json:"exceetExpectedDeliveryDate"` ExceetExpressCardDeliveryTrackingID interface{} `json:"exceetExpressCardDeliveryTrackingId"` CardSettingsID interface{} `json:"cardSettingsId"` MptsCard bool `json:"mptsCard"` }
type Client ¶
func (*Client) GetAddresses ¶
func (*Client) GetLastTransactions ¶
func (client *Client) GetLastTransactions(limit string) (*Transactions, error)
func (*Client) GetSmartStatementCsv ¶
GetSmartStatementCsv Get transactions for the given time window as N26 CSV file. Stored as 'smrt_statement.csv'
func (*Client) GetStatementPDF ¶
func (*Client) GetStatements ¶
func (client *Client) GetStatements(retType string) (string, *Statements)
func (*Client) GetTransactions ¶
func (client *Client) GetTransactions(from, to TimeStamp, limit string) (*Transactions, error)
GetTransactions Get transactions for the given time window. Use the zero values for the time stamps if no restrictions are desired (use the defaults on the server)
func (*Client) UnblockCard ¶
type PersonalInfo ¶
type PersonalInfo struct { ID string `json:"id"` Email string `json:"email"` FirstName string `json:"firstName"` LastName string `json:"lastName"` KycFirstName string `json:"kycFirstName"` KycLastName string `json:"kycLastName"` Title string `json:"title"` Gender string `json:"gender"` BirthDate int64 `json:"birthDate"` SignupCompleted bool `json:"signupCompleted"` Nationality string `json:"nationality"` MobilePhoneNumber string `json:"mobilePhoneNumber"` ShadowUserID string `json:"shadowUserId"` TransferWiseTermsAccepted bool `json:"transferWiseTermsAccepted"` IDNowToken string `json:"idNowToken"` }
type Spaces ¶
type Spaces struct { Spaces []struct { Balance struct { AvailableBalance float64 `json:"availableBalance"` OverdraftAmount interface{} `json:"overdraftAmount"` } `json:"balance"` Color string `json:"color"` Goal interface{} `json:"goal"` ID string `json:"id"` ImageURL string `json:"imageUrl"` IsCardAttached bool `json:"isCardAttached"` IsPrimary bool `json:"isPrimary"` Name string `json:"name"` } `json:"spaces"` TotalBalance float64 `json:"totalBalance"` UserFeatures struct { AvailableSpaces int `json:"availableSpaces"` CanUpgrade bool `json:"canUpgrade"` } `json:"userFeatures"` }
type Statements ¶
type Statuses ¶
type Statuses struct { ID string `json:"id"` Created int64 `json:"created"` Updated int64 `json:"updated"` SingleStepSignup int64 `json:"singleStepSignup"` EmailValidationInitiated int64 `json:"emailValidationInitiated"` EmailValidationCompleted int64 `json:"emailValidationCompleted"` ProductSelectionCompleted int64 `json:"productSelectionCompleted"` PhonePairingInitiated int64 `json:"phonePairingInitiated"` PhonePairingCompleted int64 `json:"phonePairingCompleted"` KycInitiated int64 `json:"kycInitiated"` KycCompleted int64 `json:"kycCompleted"` KycWebIDInitiated int64 `json:"kycWebIDInitiated"` KycWebIDCompleted int64 `json:"kycWebIDCompleted"` CardActivationCompleted int64 `json:"cardActivationCompleted"` PinDefinitionCompleted int64 `json:"pinDefinitionCompleted"` BankAccountCreationInitiated int64 `json:"bankAccountCreationInitiated"` BankAccountCreationSucceded int64 `json:"bankAccountCreationSucceded"` FlexAccount bool `json:"flexAccount"` }
type TimeStamp ¶
func (*TimeStamp) UnmarshalJSON ¶
type Token ¶
type Token struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` MfaToken string `json:"mfaToken"` }
func (*Token) CompleteMfaApproval ¶
func (*Token) GetMFAToken ¶
type TokenSource ¶
type TokenSource struct {
AccessToken string
}
type Transactions ¶
type Transactions []struct { ID string `json:"id"` UserID string `json:"userId"` Type string `json:"type"` Amount float64 `json:"amount"` CurrencyCode string `json:"currencyCode"` OriginalAmount float64 `json:"originalAmount,omitempty"` OriginalCurrency string `json:"originalCurrency,omitempty"` ExchangeRate float64 `json:"exchangeRate,omitempty"` MerchantCity string `json:"merchantCity,omitempty"` VisibleTS TimeStamp `json:"visibleTS"` Mcc int `json:"mcc,omitempty"` MccGroup int `json:"mccGroup,omitempty"` MerchantName string `json:"merchantName,omitempty"` Recurring bool `json:"recurring"` AccountID string `json:"accountId"` Category string `json:"category"` CardID string `json:"cardId,omitempty"` UserCertified TimeStamp `json:"userCertified"` Pending bool `json:"pending"` TransactionNature string `json:"transactionNature"` CreatedTS TimeStamp `json:"createdTS"` MerchantCountry int `json:"merchantCountry,omitempty"` SmartLinkID string `json:"smartLinkId"` LinkID string `json:"linkId"` Confirmed TimeStamp `json:"confirmed"` PartnerBic string `json:"partnerBic,omitempty"` PartnerBcn string `json:"partnerBcn,omitempty"` PartnerAccountIsSepa bool `json:"partnerAccountIsSepa,omitempty"` PartnerName string `json:"partnerName,omitempty"` PartnerIban string `json:"partnerIban,omitempty"` PartnerAccountBan string `json:"partnerAccountBan,omitempty"` ReferenceText string `json:"referenceText,omitempty"` UserAccepted int64 `json:"userAccepted,omitempty"` SmartContactID string `json:"smartContactId,omitempty"` }
Click to show internal directories.
Click to hide internal directories.