-
Notifications
You must be signed in to change notification settings - Fork 44
/
bank_account.go
38 lines (32 loc) · 1.1 KB
/
bank_account.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package omise
// BankAccount represents Omise's bank account object.
// See https://www.omise.co/bank-account-api for more information.
type BankAccountRequest struct {
Base
Brand string `json:"brand"`
LastDigits string `json:"last_digits"`
Name string `json:"name"`
// for Omise Japan
BankCode string `json:"bank_code"`
BranchCode string `json:"branch_code"`
Type BankAccountType `json:"type"`
Number string `json:"number"`
}
type BankAccount struct {
Base
Brand string `json:"brand"`
LastDigits string `json:"last_digits"`
Name string `json:"name"`
// for Omise Japan
BankCode string `json:"bank_code"`
BranchCode string `json:"branch_code"`
Type BankAccountType `json:"type"`
AccountNumber string `json:"account_number"`
}
// BankAccountType BankAccount an enumeration of possible types of BackAccount(s) which can be
type BankAccountType string
// BankAccountType can be one of the following list of constants:
const (
Normal BankAccountType = "normal"
Current BankAccountType = "current"
)