-
Notifications
You must be signed in to change notification settings - Fork 3
/
customer.go
41 lines (38 loc) · 1.52 KB
/
customer.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
package chargebee
type Result struct {
Customer Customer `json:"customer"`
Card Card `json:"card"`
Invoice Invoice `json:"invoice"`
}
// CustomerParams is the set of parameters that can be used when creating or updating a customer.
// For more details see https://apidocs.chargebee.com/docs/api/customers#create_a_customer
// and https://apidocs.chargebee.com/docs/api/customers#update_a_customer.
type CustomerParams struct {
FirstName string
LastName string
Email string
Phone string
Company string
AutoCollection string
}
// https://apidocs.chargebee.com/docs/api/customers?lang=node#customer_attributes
type Customer struct {
ID string `json:"id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Email string `json:"email"`
Phone string `json:"phone"`
Company string `json:"company"`
VATNumber string `json:"vat_number"`
AutoCollection string `json:"auto_collection"`
AllowDirectDebit bool `json:"allow_direct_debit"`
CreatedAt int64 `json:"created_at"`
CreatedFromIP string `json:"created_from_ip"`
Taxability string `json:"taxability"`
EntityCode string `json:"entity_code"`
ExemptNumber string `json:"exempt_number"`
InvoiceNotes string `json:"invoice_notes"`
PromotionalCredits uint64 `json:"promotional_credits"`
RefundableCredits uint64 `json:"refundable_credits"`
ExcessPayments uint64 `json:"excess_payments"`
}