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

#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.



1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1743

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.



1729
1730
1731
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1729

def amount
  @amount
end

#cash_advancesObject

Cash advances in cents.



1731
1732
1733
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1731

def cash_advances
  @cash_advances
end

#currencyObject

Currency of the total amount.



1733
1734
1735
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1733

def currency
  @currency
end

#discountsObject

Discount details for the lodging.



1735
1736
1737
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1735

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the lodging.



1737
1738
1739
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1737

def extra_charges
  @extra_charges
end

#prepaid_amountObject

Prepaid amount in cents.



1739
1740
1741
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1739

def prepaid_amount
  @prepaid_amount
end

#taxObject

Tax breakdown for the lodging reservation.



1741
1742
1743
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1741

def tax
  @tax
end