github.com/stripe/stripe-go/v76@v76.25.0/testhelperstreasury_receiveddebit.go (about) 1 // 2 // 3 // File generated from our OpenAPI spec 4 // 5 // 6 7 package stripe 8 9 // Optional fields for `us_bank_account`. 10 type TestHelpersTreasuryReceivedDebitInitiatingPaymentMethodDetailsUSBankAccountParams struct { 11 // The bank account holder's name. 12 AccountHolderName *string `form:"account_holder_name"` 13 // The bank account number. 14 AccountNumber *string `form:"account_number"` 15 // The bank account's routing number. 16 RoutingNumber *string `form:"routing_number"` 17 } 18 19 // Initiating payment method details for the object. 20 type TestHelpersTreasuryReceivedDebitInitiatingPaymentMethodDetailsParams struct { 21 // The source type. 22 Type *string `form:"type"` 23 // Optional fields for `us_bank_account`. 24 USBankAccount *TestHelpersTreasuryReceivedDebitInitiatingPaymentMethodDetailsUSBankAccountParams `form:"us_bank_account"` 25 } 26 27 // Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties. 28 type TestHelpersTreasuryReceivedDebitParams struct { 29 Params `form:"*"` 30 // Amount (in cents) to be transferred. 31 Amount *int64 `form:"amount"` 32 // 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). 33 Currency *string `form:"currency"` 34 // An arbitrary string attached to the object. Often useful for displaying to users. 35 Description *string `form:"description"` 36 // Specifies which fields in the response should be expanded. 37 Expand []*string `form:"expand"` 38 // The FinancialAccount to pull funds from. 39 FinancialAccount *string `form:"financial_account"` 40 // Initiating payment method details for the object. 41 InitiatingPaymentMethodDetails *TestHelpersTreasuryReceivedDebitInitiatingPaymentMethodDetailsParams `form:"initiating_payment_method_details"` 42 // Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. 43 Network *string `form:"network"` 44 } 45 46 // AddExpand appends a new field to expand. 47 func (p *TestHelpersTreasuryReceivedDebitParams) AddExpand(f string) { 48 p.Expand = append(p.Expand, &f) 49 }