Class: Stripe::PaymentIntentUpdateParams::PaymentDetails::LodgingDatum::Total

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



1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1919

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.



1905
1906
1907
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1905

def amount
  @amount
end

#cash_advancesObject

Cash advances in cents.



1907
1908
1909
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1907

def cash_advances
  @cash_advances
end

#currencyObject

Currency of the total amount.



1909
1910
1911
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1909

def currency
  @currency
end

#discountsObject

Discount details for the lodging.



1911
1912
1913
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1911

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the lodging.



1913
1914
1915
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1913

def extra_charges
  @extra_charges
end

#prepaid_amountObject

Prepaid amount in cents.



1915
1916
1917
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1915

def prepaid_amount
  @prepaid_amount
end

#taxObject

Tax breakdown for the lodging reservation.



1917
1918
1919
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1917

def tax
  @tax
end