Class: Stripe::PaymentIntentConfirmParams::PaymentDetails::LodgingDatum::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, cash_advances: nil, currency: nil, discounts: nil, extra_charges: nil, prepaid_amount: nil, tax: nil) ⇒ Total

Returns a new instance of Total.



1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1869

def initialize(
  amount: nil,
  cash_advances: nil,
  currency: nil,
  discounts: nil,
  extra_charges: nil,
  prepaid_amount: nil,
  tax: nil
)
  @amount = amount
  @cash_advances = cash_advances
  @currency = currency
  @discounts = discounts
  @extra_charges = extra_charges
  @prepaid_amount = prepaid_amount
  @tax = tax
end

Instance Attribute Details

#amountObject

Total price of the lodging reservation in cents.



1855
1856
1857
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1855

def amount
  @amount
end

#cash_advancesObject

Cash advances in cents.



1857
1858
1859
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1857

def cash_advances
  @cash_advances
end

#currencyObject

Currency of the total amount.



1859
1860
1861
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1859

def currency
  @currency
end

#discountsObject

Discount details for the lodging.



1861
1862
1863
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1861

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the lodging.



1863
1864
1865
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1863

def extra_charges
  @extra_charges
end

#prepaid_amountObject

Prepaid amount in cents.



1865
1866
1867
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1865

def prepaid_amount
  @prepaid_amount
end

#taxObject

Tax breakdown for the lodging reservation.



1867
1868
1869
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1867

def tax
  @tax
end