-
Notifications
You must be signed in to change notification settings - Fork 1
/
link.go
49 lines (41 loc) · 1.64 KB
/
link.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
package gocardless
type CreditorLink struct {
Creditor string `json:"creditor,omitempty"`
}
type CustomerLink struct {
Customer string `json:"customer,omitempty"`
}
type EventLink struct {
Mandate string `json:"mandate,omitempty"`
NewCustomerBankAccount string `json:"new_customer_bank_account,omitempty"`
NewMandate string `json:"new_mandate,omitempty"`
Organisation string `json:"organisation,omitempty"`
ParentEvent string `json:"parent_event,omitempty"`
Payment string `json:"payment,omitempty"`
Payout string `json:"payout,omitempty"`
PreviousCustomerBankAccount string `json:"previous_customer_bank_account,omitempty"`
Refund string `json:"refund,omitempty"`
Subscription string `json:"subscription,omitempty"`
}
type MandateLink struct {
Creditor string `json:"creditor,omitempty"`
Customer string `json:"customer,omitempty"`
CustomerBankAccount string `json:"customer_bank_account,omitempty"`
NewMandate string `json:"new_mandate,omitempty"`
}
type PaymentLink struct {
Creditor string `json:"creditor,omitempty"`
Mandate string `json:"mandate,omitempty"`
Payout string `json:"payout,omitempty"`
Subscription string `json:"subscription,omitempty"`
}
type PayoutLink struct {
Creditor string `json:"creditor,omitempty"`
CreditorBankAccount string `json:"creditor_bank_account,omitempty"`
}
type RefundLink struct {
Payment string `json:"payment,omitempty"`
}
type SubscriptionLink struct {
Mandate string `json:"mandate,omitempty"`
}