-
Notifications
You must be signed in to change notification settings - Fork 2
/
xfers_charge.go
24 lines (23 loc) · 1.01 KB
/
xfers_charge.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
package xfers
// Charge represent the xfers charge information
type Charge struct {
ID string `json:"id"`
CheckoutURL string `json:"checkout_url"`
NotifyURL string `json:"notify_url"`
ReturnURL string `json:"return_url"`
CancelURL string `json:"cancel_url"`
Object string `json:"object"` // 'charge'
Amount float64 `json:"amount,string"`
Currency string `json:"currency"`
Customer string `json:"customer"`
OrderID string `json:"order_id"`
Capture bool `json:"capture"`
Refundable bool `json:"refundable"`
Description string `json:"description"`
StatementDescriptor string `json:"statement_Descriptor"`
ReceiptEmail string `json:"receipt_email"`
Shipping float64 `json:"shipping,string"`
Tax float64 `json:"tax,string"`
TotalAmount float64 `json:"total_amount,string"`
Status string `json:"status"`
}