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

attr_accessor, coerce_params, coerce_value, field_encodings, new, #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.



791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 791

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.



777
778
779
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 777

def amount
  @amount
end

#currencyObject

Currency of the amount.



779
780
781
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 779

def currency
  @currency
end

#discountsObject

Discount details for the rental.



781
782
783
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 781

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the rental.



783
784
785
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 783

def extra_charges
  @extra_charges
end

#rate_per_unitObject

Rate per unit for the rental.



785
786
787
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 785

def rate_per_unit
  @rate_per_unit
end

#rate_unitObject

Unit of measurement for the rate.



787
788
789
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 787

def rate_unit
  @rate_unit
end

#taxObject

Tax breakdown for the rental.



789
790
791
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 789

def tax
  @tax
end