Class: Stripe::InvoiceCreateParams::PaymentSettings::PaymentMethodOptions::Payto::MandateOptions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/invoice_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, purpose: nil) ⇒ MandateOptions

Returns a new instance of MandateOptions.



192
193
194
195
# File 'lib/stripe/params/invoice_create_params.rb', line 192

def initialize(amount: nil, purpose: nil)
  @amount = amount
  @purpose = purpose
end

Instance Attribute Details

#amountObject

The maximum amount that can be collected in a single invoice. If you don’t specify a maximum, then there is no limit.



188
189
190
# File 'lib/stripe/params/invoice_create_params.rb', line 188

def amount
  @amount
end

#purposeObject

The purpose for which payments are made. Has a default value based on your merchant category code.



190
191
192
# File 'lib/stripe/params/invoice_create_params.rb', line 190

def purpose
  @purpose
end