Class: Stripe::V2::Billing::ContractCreateParams::ContractLine::Override::ServiceAction::Replace::CreditGrant::Amount

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/contract_create_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(monetary: nil, type: nil) ⇒ Amount

Returns a new instance of Amount.



228
229
230
231
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 228

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

Instance Attribute Details

#monetaryObject

The monetary amount of the credit grant. Required if ‘type` is `monetary`.



224
225
226
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 224

def monetary
  @monetary
end

#typeObject

The type of the credit grant amount.



226
227
228
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 226

def type
  @type
end