Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::CarRentalDatum::Total

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



689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 689

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.



675
676
677
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 675

def amount
  @amount
end

#currencyObject

Currency of the amount.



677
678
679
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 677

def currency
  @currency
end

#discountsObject

Discount details for the rental.



679
680
681
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 679

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the rental.



681
682
683
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 681

def extra_charges
  @extra_charges
end

#rate_per_unitObject

Rate per unit for the rental.



683
684
685
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 683

def rate_per_unit
  @rate_per_unit
end

#rate_unitObject

Unit of measurement for the rate.



685
686
687
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 685

def rate_unit
  @rate_unit
end

#taxObject

Tax breakdown for the rental.



687
688
689
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 687

def tax
  @tax
end