Class: Stripe::PaymentIntentCreateParams::PaymentDetails::CarRentalDatum::Total

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_create_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.



755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
# File 'lib/stripe/params/payment_intent_create_params.rb', line 755

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.



741
742
743
# File 'lib/stripe/params/payment_intent_create_params.rb', line 741

def amount
  @amount
end

#currencyObject

Currency of the amount.



743
744
745
# File 'lib/stripe/params/payment_intent_create_params.rb', line 743

def currency
  @currency
end

#discountsObject

Discount details for the rental.



745
746
747
# File 'lib/stripe/params/payment_intent_create_params.rb', line 745

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the rental.



747
748
749
# File 'lib/stripe/params/payment_intent_create_params.rb', line 747

def extra_charges
  @extra_charges
end

#rate_per_unitObject

Rate per unit for the rental.



749
750
751
# File 'lib/stripe/params/payment_intent_create_params.rb', line 749

def rate_per_unit
  @rate_per_unit
end

#rate_unitObject

Unit of measurement for the rate.



751
752
753
# File 'lib/stripe/params/payment_intent_create_params.rb', line 751

def rate_unit
  @rate_unit
end

#taxObject

Tax breakdown for the rental.



753
754
755
# File 'lib/stripe/params/payment_intent_create_params.rb', line 753

def tax
  @tax
end