-
Notifications
You must be signed in to change notification settings - Fork 1
/
payout_item_amount_breakdowns.go
executable file
·75 lines (65 loc) · 1.94 KB
/
payout_item_amount_breakdowns.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
72
73
74
75
package processout
import (
"bytes"
"encoding/json"
"io"
"net/http"
"net/url"
"strings"
"time"
"gopkg.in/processout.v4/errors"
)
// PayoutItemAmountBreakdowns represents the PayoutItemAmountBreakdowns API object
type PayoutItemAmountBreakdowns struct {
// SchemeFee is the amount relating to scheme fee
SchemeFee *string `json:"scheme_fee,omitempty"`
// InterchangeFee is the amount relating to interchange fee
InterchangeFee *string `json:"interchange_fee,omitempty"`
// GatewayFee is the amount relating to gateway fee
GatewayFee *string `json:"gateway_fee,omitempty"`
// MarkupFee is the amount relating to markup fee
MarkupFee *string `json:"markup_fee,omitempty"`
// AcquirerFee is the amount relating to acquirer fee
AcquirerFee *string `json:"acquirer_fee,omitempty"`
// OtherFee is the amount relating to other fee
OtherFee *string `json:"other_fee,omitempty"`
client *ProcessOut
}
// SetClient sets the client for the PayoutItemAmountBreakdowns object and its
// children
func (s *PayoutItemAmountBreakdowns) SetClient(c *ProcessOut) *PayoutItemAmountBreakdowns {
if s == nil {
return s
}
s.client = c
return s
}
// Prefil prefills the object with data provided in the parameter
func (s *PayoutItemAmountBreakdowns) Prefill(c *PayoutItemAmountBreakdowns) *PayoutItemAmountBreakdowns {
if c == nil {
return s
}
s.SchemeFee = c.SchemeFee
s.InterchangeFee = c.InterchangeFee
s.GatewayFee = c.GatewayFee
s.MarkupFee = c.MarkupFee
s.AcquirerFee = c.AcquirerFee
s.OtherFee = c.OtherFee
return s
}
// dummyPayoutItemAmountBreakdowns is a dummy function that's only
// here because some files need specific packages and some don't.
// It's easier to include it for every file. In case you couldn't
// tell, everything is generated.
func dummyPayoutItemAmountBreakdowns() {
type dummy struct {
a bytes.Buffer
b json.RawMessage
c http.File
d strings.Reader
e time.Time
f url.URL
g io.Reader
}
errors.New(nil, "", "")
}