forked from braintree-go/braintree-go
-
Notifications
You must be signed in to change notification settings - Fork 11
/
merchant_account.go
43 lines (38 loc) · 1.74 KB
/
merchant_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
39
40
41
42
43
package braintree
type MerchantAccount struct {
XMLName string `xml:"merchant-account,omitempty"`
Id string `xml:"id,omitempty"`
MasterMerchantAccountId string `xml:"master-merchant-account-id,omitempty"`
TOSAccepted bool `xml:"tos_accepted,omitempty"`
Individual *MerchantAccountPerson `xml:"individual,omitempty"`
Business *MerchantAccountBusiness `xml:"business,omitempty"`
FundingOptions *MerchantAccountFundingOptions `xml:"funding,omitempty"`
Status string `xml:"status,omitempty"`
}
type MerchantAccountPerson struct {
FirstName string `xml:"first-name,omitempty"`
LastName string `xml:"last-name,omitempty"`
Email string `xml:"email,omitempty"`
Phone string `xml:"phone,omitempty"`
DateOfBirth string `xml:"date-of-birth,omitempty"`
SSN string `xml:"ssn,omitempty"`
Address *Address `xml:"address,omitempty"`
}
type MerchantAccountBusiness struct {
LegalName string `xml:"legal-name,omitempty"`
DbaName string `xml:"dba-name,omitempty"`
TaxId string `xml:"tax-id,omitempty"`
Address *Address `xml:"address,omitempty"`
}
type MerchantAccountFundingOptions struct {
Destination string `xml:"destination,omitempty"`
Email string `xml:"email,omitempty"`
MobilePhone string `xml:"mobile-phone,omitempty"`
AccountNumber string `xml:"account-number,omitempty"`
RoutingNumber string `xml:"routing-number,omitempty"`
}
const (
FUNDING_DEST_BANK = "bank"
FUNDING_DEST_MOBILE_PHONE = "mobile_phone"
FUNDING_DEST_EMAIL = "email"
)