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

     1  //
     2  //
     3  // File generated from our OpenAPI spec
     4  //
     5  //
     6  
     7  package stripe
     8  
     9  // Create an incoming testmode bank transfer
    10  type TestHelpersCustomerFundCashBalanceParams struct {
    11  	Params `form:"*"`
    12  	// Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency).
    13  	Amount *int64 `form:"amount"`
    14  	// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
    15  	Currency *string `form:"currency"`
    16  	// Specifies which fields in the response should be expanded.
    17  	Expand []*string `form:"expand"`
    18  	// A description of the test funding. This simulates free-text references supplied by customers when making bank transfers to their cash balance. You can use this to test how Stripe's [reconciliation algorithm](https://stripe.com/docs/payments/customer-balance/reconciliation) applies to different user inputs.
    19  	Reference *string `form:"reference"`
    20  }
    21  
    22  // AddExpand appends a new field to expand.
    23  func (p *TestHelpersCustomerFundCashBalanceParams) AddExpand(f string) {
    24  	p.Expand = append(p.Expand, &f)
    25  }