Class: Stripe::Treasury::ReceivedCredit::CreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/treasury/received_credit.rb

Defined Under Namespace

Classes: InitiatingPaymentMethodDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, currency: nil, description: nil, expand: nil, financial_account: nil, initiating_payment_method_details: nil, network: nil) ⇒ CreateParams

Returns a new instance of CreateParams.



201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# File 'lib/stripe/resources/treasury/received_credit.rb', line 201

def initialize(
  amount: nil,
  currency: nil,
  description: nil,
  expand: nil,
  financial_account: nil,
  initiating_payment_method_details: nil,
  network: nil
)
  @amount = amount
  @currency = currency
  @description = description
  @expand = expand
  @financial_account = 
  @initiating_payment_method_details = initiating_payment_method_details
  @network = network
end

Instance Attribute Details

#amountObject

Amount (in cents) to be transferred.



187
188
189
# File 'lib/stripe/resources/treasury/received_credit.rb', line 187

def amount
  @amount
end

#currencyObject

Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).



189
190
191
# File 'lib/stripe/resources/treasury/received_credit.rb', line 189

def currency
  @currency
end

#descriptionObject

An arbitrary string attached to the object. Often useful for displaying to users.



191
192
193
# File 'lib/stripe/resources/treasury/received_credit.rb', line 191

def description
  @description
end

#expandObject

Specifies which fields in the response should be expanded.



193
194
195
# File 'lib/stripe/resources/treasury/received_credit.rb', line 193

def expand
  @expand
end

#financial_accountObject

The FinancialAccount to send funds to.



195
196
197
# File 'lib/stripe/resources/treasury/received_credit.rb', line 195

def 
  @financial_account
end

#initiating_payment_method_detailsObject

Initiating payment method details for the object.



197
198
199
# File 'lib/stripe/resources/treasury/received_credit.rb', line 197

def initiating_payment_method_details
  @initiating_payment_method_details
end

#networkObject

Specifies the network rails to be used. If not set, will default to the PaymentMethod’s preferred network. See the [docs](stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.



199
200
201
# File 'lib/stripe/resources/treasury/received_credit.rb', line 199

def network
  @network
end