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

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.



1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1693

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.



1679
1680
1681
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1679

def amount
  @amount
end

#cash_advancesObject

Cash advances in cents.



1681
1682
1683
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1681

def cash_advances
  @cash_advances
end

#currencyObject

Currency of the total amount.



1683
1684
1685
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1683

def currency
  @currency
end

#discountsObject

Discount details for the lodging.



1685
1686
1687
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1685

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the lodging.



1687
1688
1689
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1687

def extra_charges
  @extra_charges
end

#prepaid_amountObject

Prepaid amount in cents.



1689
1690
1691
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1689

def prepaid_amount
  @prepaid_amount
end

#taxObject

Tax breakdown for the lodging reservation.



1691
1692
1693
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1691

def tax
  @tax
end