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.



260
261
262
263
# File 'lib/stripe/params/invoice_create_params.rb', line 260

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`.



256
257
258
# File 'lib/stripe/params/invoice_create_params.rb', line 256

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.



258
259
260
# File 'lib/stripe/params/invoice_create_params.rb', line 258

def expires_after_seconds
  @expires_after_seconds
end