github.com/stripe/stripe-go/v76@v76.25.0/testhelperstreasury_inboundtransfer.go (about) 1 // 2 // 3 // File generated from our OpenAPI spec 4 // 5 // 6 7 package stripe 8 9 // Details about a failed InboundTransfer. 10 type TestHelpersTreasuryInboundTransferFailFailureDetailsParams struct { 11 // Reason for the failure. 12 Code *string `form:"code"` 13 } 14 15 // Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state. 16 type TestHelpersTreasuryInboundTransferFailParams struct { 17 Params `form:"*"` 18 // Specifies which fields in the response should be expanded. 19 Expand []*string `form:"expand"` 20 // Details about a failed InboundTransfer. 21 FailureDetails *TestHelpersTreasuryInboundTransferFailFailureDetailsParams `form:"failure_details"` 22 } 23 24 // AddExpand appends a new field to expand. 25 func (p *TestHelpersTreasuryInboundTransferFailParams) AddExpand(f string) { 26 p.Expand = append(p.Expand, &f) 27 } 28 29 // Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state. 30 type TestHelpersTreasuryInboundTransferReturnInboundTransferParams struct { 31 Params `form:"*"` 32 // Specifies which fields in the response should be expanded. 33 Expand []*string `form:"expand"` 34 } 35 36 // AddExpand appends a new field to expand. 37 func (p *TestHelpersTreasuryInboundTransferReturnInboundTransferParams) AddExpand(f string) { 38 p.Expand = append(p.Expand, &f) 39 } 40 41 // Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state. 42 type TestHelpersTreasuryInboundTransferSucceedParams struct { 43 Params `form:"*"` 44 // Specifies which fields in the response should be expanded. 45 Expand []*string `form:"expand"` 46 } 47 48 // AddExpand appends a new field to expand. 49 func (p *TestHelpersTreasuryInboundTransferSucceedParams) AddExpand(f string) { 50 p.Expand = append(p.Expand, &f) 51 }