Class: Stripe::V2::Billing::ContractCreateParams::ContractLine::Override::ServiceAction::Add::CreditGrant::Amount
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractCreateParams::ContractLine::Override::ServiceAction::Add::CreditGrant::Amount
- Defined in:
- lib/stripe/params/v2/billing/contract_create_params.rb
Instance Attribute Summary collapse
-
#monetary ⇒ Object
The monetary amount of the credit grant.
-
#type ⇒ Object
The type of the credit grant amount.
Instance Method Summary collapse
-
#initialize(monetary: nil, type: nil) ⇒ Amount
constructor
A new instance of Amount.
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.
135 136 137 138 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 135 def initialize(monetary: nil, type: nil) @monetary = monetary @type = type end |
Instance Attribute Details
#monetary ⇒ Object
The monetary amount of the credit grant. Required if ‘type` is `monetary`.
131 132 133 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 131 def monetary @monetary end |
#type ⇒ Object
The type of the credit grant amount.
133 134 135 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 133 def type @type end |