-
Notifications
You must be signed in to change notification settings - Fork 448
/
testhelperstreasury_outboundpayment.go
89 lines (76 loc) · 3.45 KB
/
testhelperstreasury_outboundpayment.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 TestHelpersTreasuryOutboundPaymentTrackingDetailsACHParams struct {
// ACH trace ID for funds sent over the `ach` network.
TraceID *string `form:"trace_id"`
}
// US domestic wire network tracking details.
type TestHelpersTreasuryOutboundPaymentTrackingDetailsUSDomesticWireParams 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 TestHelpersTreasuryOutboundPaymentTrackingDetailsParams struct {
// ACH network tracking details.
ACH *TestHelpersTreasuryOutboundPaymentTrackingDetailsACHParams `form:"ach"`
// The US bank account network used to send funds.
Type *string `form:"type"`
// US domestic wire network tracking details.
USDomesticWire *TestHelpersTreasuryOutboundPaymentTrackingDetailsUSDomesticWireParams `form:"us_domestic_wire"`
}
// Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
type TestHelpersTreasuryOutboundPaymentParams struct {
Params `form:"*"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// Details about network-specific tracking information.
TrackingDetails *TestHelpersTreasuryOutboundPaymentTrackingDetailsParams `form:"tracking_details"`
}
// AddExpand appends a new field to expand.
func (p *TestHelpersTreasuryOutboundPaymentParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}
// Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
type TestHelpersTreasuryOutboundPaymentFailParams 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 *TestHelpersTreasuryOutboundPaymentFailParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}
// Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
type TestHelpersTreasuryOutboundPaymentPostParams 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 *TestHelpersTreasuryOutboundPaymentPostParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}
// Optional hash to set the return code.
type TestHelpersTreasuryOutboundPaymentReturnOutboundPaymentReturnedDetailsParams struct {
// The return code to be set on the OutboundPayment object.
Code *string `form:"code"`
}
// Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
type TestHelpersTreasuryOutboundPaymentReturnOutboundPaymentParams struct {
Params `form:"*"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// Optional hash to set the return code.
ReturnedDetails *TestHelpersTreasuryOutboundPaymentReturnOutboundPaymentReturnedDetailsParams `form:"returned_details"`
}
// AddExpand appends a new field to expand.
func (p *TestHelpersTreasuryOutboundPaymentReturnOutboundPaymentParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}