github.com/stripe/stripe-go/v76@v76.25.0/testhelperstreasury_outboundtransfer.go (about)

     1  //
     2  //
     3  // File generated from our OpenAPI spec
     4  //
     5  //
     6  
     7  package stripe
     8  
     9  // Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
    10  type TestHelpersTreasuryOutboundTransferFailParams 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 *TestHelpersTreasuryOutboundTransferFailParams) AddExpand(f string) {
    18  	p.Expand = append(p.Expand, &f)
    19  }
    20  
    21  // Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
    22  type TestHelpersTreasuryOutboundTransferPostParams 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 *TestHelpersTreasuryOutboundTransferPostParams) AddExpand(f string) {
    30  	p.Expand = append(p.Expand, &f)
    31  }
    32  
    33  // Details about a returned OutboundTransfer.
    34  type TestHelpersTreasuryOutboundTransferReturnOutboundTransferReturnedDetailsParams struct {
    35  	// Reason for the return.
    36  	Code *string `form:"code"`
    37  }
    38  
    39  // Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
    40  type TestHelpersTreasuryOutboundTransferReturnOutboundTransferParams struct {
    41  	Params `form:"*"`
    42  	// Specifies which fields in the response should be expanded.
    43  	Expand []*string `form:"expand"`
    44  	// Details about a returned OutboundTransfer.
    45  	ReturnedDetails *TestHelpersTreasuryOutboundTransferReturnOutboundTransferReturnedDetailsParams `form:"returned_details"`
    46  }
    47  
    48  // AddExpand appends a new field to expand.
    49  func (p *TestHelpersTreasuryOutboundTransferReturnOutboundTransferParams) AddExpand(f string) {
    50  	p.Expand = append(p.Expand, &f)
    51  }