Class: Stripe::PaymentIntentConfirmParams::PaymentDetails::CarRentalDatum::Total::ExtraCharge

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, type: nil) ⇒ ExtraCharge

Returns a new instance of ExtraCharge.



708
709
710
711
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 708

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

Instance Attribute Details

#amountObject

Amount of the extra charge in cents.



704
705
706
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 704

def amount
  @amount
end

#typeObject

Type of extra charge.



706
707
708
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 706

def type
  @type
end