Class: Stripe::ChargeCaptureParams::PaymentDetails::LodgingDatum::Total::ExtraCharge

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/charge_capture_params.rb

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, type: nil) ⇒ ExtraCharge

Returns a new instance of ExtraCharge.



1515
1516
1517
1518
# File 'lib/stripe/params/charge_capture_params.rb', line 1515

def initialize(amount: nil, type: nil)
  @amount = amount
  @type = type
end

Instance Attribute Details

#amountObject

Amount of the extra charge in cents.



1511
1512
1513
# File 'lib/stripe/params/charge_capture_params.rb', line 1511

def amount
  @amount
end

#typeObject

Type of extra charge.



1513
1514
1515
# File 'lib/stripe/params/charge_capture_params.rb', line 1513

def type
  @type
end