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

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

Defined Under Namespace

Classes: Discounts, ExtraCharge, Tax

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, currency: nil, discounts: nil, extra_charges: nil, rate_per_unit: nil, rate_unit: nil, tax: nil) ⇒ Total

Returns a new instance of Total.



728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 728

def initialize(
  amount: nil,
  currency: nil,
  discounts: nil,
  extra_charges: nil,
  rate_per_unit: nil,
  rate_unit: nil,
  tax: nil
)
  @amount = amount
  @currency = currency
  @discounts = discounts
  @extra_charges = extra_charges
  @rate_per_unit = rate_per_unit
  @rate_unit = rate_unit
  @tax = tax
end

Instance Attribute Details

#amountObject

Total amount in cents.



714
715
716
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 714

def amount
  @amount
end

#currencyObject

Currency of the amount.



716
717
718
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 716

def currency
  @currency
end

#discountsObject

Discount details for the rental.



718
719
720
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 718

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the rental.



720
721
722
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 720

def extra_charges
  @extra_charges
end

#rate_per_unitObject

Rate per unit for the rental.



722
723
724
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 722

def rate_per_unit
  @rate_per_unit
end

#rate_unitObject

Unit of measurement for the rate.



724
725
726
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 724

def rate_unit
  @rate_unit
end

#taxObject

Tax breakdown for the rental.



726
727
728
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 726

def tax
  @tax
end