github.com/stripe/stripe-go/v76@v76.25.0/testhelperstreasury_outboundpayment.go (about) 1 // 2 // 3 // File generated from our OpenAPI spec 4 // 5 // 6 7 package stripe 8 9 // Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state. 10 type TestHelpersTreasuryOutboundPaymentFailParams struct { 11 Params `form:"*"` 12 // Specifies which fields in the response should be expanded. 13 Expand []*string `form:"expand"` 14 } 15 16 // AddExpand appends a new field to expand. 17 func (p *TestHelpersTreasuryOutboundPaymentFailParams) AddExpand(f string) { 18 p.Expand = append(p.Expand, &f) 19 } 20 21 // Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state. 22 type TestHelpersTreasuryOutboundPaymentPostParams struct { 23 Params `form:"*"` 24 // Specifies which fields in the response should be expanded. 25 Expand []*string `form:"expand"` 26 } 27 28 // AddExpand appends a new field to expand. 29 func (p *TestHelpersTreasuryOutboundPaymentPostParams) AddExpand(f string) { 30 p.Expand = append(p.Expand, &f) 31 } 32 33 // Optional hash to set the the return code. 34 type TestHelpersTreasuryOutboundPaymentReturnOutboundPaymentReturnedDetailsParams struct { 35 // The return code to be set on the OutboundPayment object. 36 Code *string `form:"code"` 37 } 38 39 // Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state. 40 type TestHelpersTreasuryOutboundPaymentReturnOutboundPaymentParams struct { 41 Params `form:"*"` 42 // Specifies which fields in the response should be expanded. 43 Expand []*string `form:"expand"` 44 // Optional hash to set the the return code. 45 ReturnedDetails *TestHelpersTreasuryOutboundPaymentReturnOutboundPaymentReturnedDetailsParams `form:"returned_details"` 46 } 47 48 // AddExpand appends a new field to expand. 49 func (p *TestHelpersTreasuryOutboundPaymentReturnOutboundPaymentParams) AddExpand(f string) { 50 p.Expand = append(p.Expand, &f) 51 }