Class: Stripe::ChargeUpdateParams::PaymentDetails::LodgingDatum::Total

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



1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
# File 'lib/stripe/params/charge_update_params.rb', line 1570

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.



1556
1557
1558
# File 'lib/stripe/params/charge_update_params.rb', line 1556

def amount
  @amount
end

#cash_advancesObject

Cash advances in cents.



1558
1559
1560
# File 'lib/stripe/params/charge_update_params.rb', line 1558

def cash_advances
  @cash_advances
end

#currencyObject

Currency of the total amount.



1560
1561
1562
# File 'lib/stripe/params/charge_update_params.rb', line 1560

def currency
  @currency
end

#discountsObject

Discount details for the lodging.



1562
1563
1564
# File 'lib/stripe/params/charge_update_params.rb', line 1562

def discounts
  @discounts
end

#extra_chargesObject

Additional charges for the lodging.



1564
1565
1566
# File 'lib/stripe/params/charge_update_params.rb', line 1564

def extra_charges
  @extra_charges
end

#prepaid_amountObject

Prepaid amount in cents.



1566
1567
1568
# File 'lib/stripe/params/charge_update_params.rb', line 1566

def prepaid_amount
  @prepaid_amount
end

#taxObject

Tax breakdown for the lodging reservation.



1568
1569
1570
# File 'lib/stripe/params/charge_update_params.rb', line 1568

def tax
  @tax
end