Class: Stripe::InvoiceCreateParams::PaymentSettings::PaymentMethodOptions::Pix

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

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(amount_includes_iof: nil, expires_after_seconds: nil) ⇒ Pix

Returns a new instance of Pix.



211
212
213
214
# File 'lib/stripe/params/invoice_create_params.rb', line 211

def initialize(amount_includes_iof: nil, expires_after_seconds: nil)
  @amount_includes_iof = amount_includes_iof
  @expires_after_seconds = expires_after_seconds
end

Instance Attribute Details

#amount_includes_iofObject

Determines if the amount includes the IOF tax. Defaults to never.



207
208
209
# File 'lib/stripe/params/invoice_create_params.rb', line 207

def amount_includes_iof
  @amount_includes_iof
end

#expires_after_secondsObject

The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.



209
210
211
# File 'lib/stripe/params/invoice_create_params.rb', line 209

def expires_after_seconds
  @expires_after_seconds
end