-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInvoiceEntities.go
71 lines (62 loc) · 2.36 KB
/
InvoiceEntities.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package b2binpay
type InvoiceResponse struct {
Data Invoice `json:"data"`
}
type Destination struct {
AddressType string `json:"address_type"`
Address string `json:"address"`
}
type Invoice struct {
ID string `json:"id"`
Status int `json:"status"`
Address string `json:"address"`
AddressType string `json:"address_type"`
Label string `json:"label"`
TrackingID string `json:"tracking_id"`
ConfirmationsNeeded int `json:"confirmations_needed"`
TimeLimit int `json:"time_limit"`
CallbackURL string `json:"callback_url"`
Inaccuracy string `json:"inaccuracy"`
TargetAmountRequested string `json:"target_amount_requested"`
RateRequested string `json:"rate_requested"`
RateExpiredAt string `json:"rate_expired_at"`
InvoiceUpdatedAt string `json:"invoice_updated_at"`
PaymentPage string `json:"payment_page"`
TargetPaid string `json:"target_paid"`
SourceAmountRequested string `json:"source_amount_requested"`
TargetPaidPending string `json:"target_paid_pending"`
Destination Destination `json:"destination"`
Currency Currency `json:"currency"`
Wallet Wallet `json:"wallet"`
}
type DepositRequest struct {
Data DepositData `json:"data"`
}
type DepositData struct {
Type string `json:"type"`
Attributes DepositAttributes `json:"attributes"`
Relationships DepositRelationships `json:"relationships"`
}
type DepositAttributes struct {
Label string `json:"label"`
TrackingID string `json:"tracking_id"`
ConfirmationsNeeded int `json:"confirmations_needed"`
TimeLimit int `json:"time_limit"`
Inaccuracy int `json:"inaccuracy"`
TargetAmountRequested string `json:"target_amount_requested"`
}
type DepositRelationships struct {
Wallet Wallet `json:"wallet"`
Currency Currency `json:"currency"`
}
type InvoiceOptions struct {
Data OptionsData `json:"data"`
}
type OptionsData struct {
Type string `json:"type"`
Attributes OptionsAttributes `json:"attributes"`
}
type OptionsAttributes struct {
Login string `json:"login"`
Password string `json:"password"`
}