-
Notifications
You must be signed in to change notification settings - Fork 448
/
testhelperstreasury_outboundtransfer.go
89 lines (76 loc) · 3.46 KB
/
testhelperstreasury_outboundtransfer.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//
//
// File generated from our OpenAPI spec
//
//
package stripe
// ACH network tracking details.
type TestHelpersTreasuryOutboundTransferTrackingDetailsACHParams struct {
// ACH trace ID for funds sent over the `ach` network.
TraceID *string `form:"trace_id"`
}
// US domestic wire network tracking details.
type TestHelpersTreasuryOutboundTransferTrackingDetailsUSDomesticWireParams struct {
// IMAD for funds sent over the `us_domestic_wire` network.
Imad *string `form:"imad"`
// OMAD for funds sent over the `us_domestic_wire` network.
Omad *string `form:"omad"`
}
// Details about network-specific tracking information.
type TestHelpersTreasuryOutboundTransferTrackingDetailsParams struct {
// ACH network tracking details.
ACH *TestHelpersTreasuryOutboundTransferTrackingDetailsACHParams `form:"ach"`
// The US bank account network used to send funds.
Type *string `form:"type"`
// US domestic wire network tracking details.
USDomesticWire *TestHelpersTreasuryOutboundTransferTrackingDetailsUSDomesticWireParams `form:"us_domestic_wire"`
}
// Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
type TestHelpersTreasuryOutboundTransferParams struct {
Params `form:"*"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// Details about network-specific tracking information.
TrackingDetails *TestHelpersTreasuryOutboundTransferTrackingDetailsParams `form:"tracking_details"`
}
// AddExpand appends a new field to expand.
func (p *TestHelpersTreasuryOutboundTransferParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}
// Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
type TestHelpersTreasuryOutboundTransferFailParams struct {
Params `form:"*"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
}
// AddExpand appends a new field to expand.
func (p *TestHelpersTreasuryOutboundTransferFailParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}
// Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
type TestHelpersTreasuryOutboundTransferPostParams struct {
Params `form:"*"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
}
// AddExpand appends a new field to expand.
func (p *TestHelpersTreasuryOutboundTransferPostParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}
// Details about a returned OutboundTransfer.
type TestHelpersTreasuryOutboundTransferReturnOutboundTransferReturnedDetailsParams struct {
// Reason for the return.
Code *string `form:"code"`
}
// Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
type TestHelpersTreasuryOutboundTransferReturnOutboundTransferParams struct {
Params `form:"*"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// Details about a returned OutboundTransfer.
ReturnedDetails *TestHelpersTreasuryOutboundTransferReturnOutboundTransferReturnedDetailsParams `form:"returned_details"`
}
// AddExpand appends a new field to expand.
func (p *TestHelpersTreasuryOutboundTransferReturnOutboundTransferParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}