Class: Stripe::PaymentIntentCreateParams::PaymentDetails::LodgingDatum::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

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.



1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1772

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.



1758
1759
1760
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1758

def amount
  @amount
end

#cash_advancesObject

Cash advances in cents.



1760
1761
1762
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1760

def cash_advances
  @cash_advances
end

#currencyObject

Currency of the total amount.



1762
1763
1764
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1762

def currency
  @currency
end

#discountsObject

Discount details for the lodging.



1764
1765
1766
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1764

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the lodging.



1766
1767
1768
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1766

def extra_charges
  @extra_charges
end

#prepaid_amountObject

Prepaid amount in cents.



1768
1769
1770
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1768

def prepaid_amount
  @prepaid_amount
end

#taxObject

Tax breakdown for the lodging reservation.



1770
1771
1772
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1770

def tax
  @tax
end