Class: Stripe::V2::Billing::ContractUpdateParams::PricingLineAction::Add::Pricing::PriceDetails::QuantityChange
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractUpdateParams::PricingLineAction::Add::Pricing::PriceDetails::QuantityChange
- Defined in:
- lib/stripe/params/v2/billing/contract_update_params.rb
Defined Under Namespace
Classes: EffectiveAt
Instance Attribute Summary collapse
-
#effective_at ⇒ Object
When this quantity change takes effect.
-
#set ⇒ Object
The quantity to set.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(effective_at: nil, set: nil) ⇒ QuantityChange
constructor
A new instance of QuantityChange.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(effective_at: nil, set: nil) ⇒ QuantityChange
Returns a new instance of QuantityChange.
108 109 110 111 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 108 def initialize(effective_at: nil, set: nil) @effective_at = effective_at @set = set end |
Instance Attribute Details
#effective_at ⇒ Object
When this quantity change takes effect.
104 105 106 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 104 def effective_at @effective_at end |
#set ⇒ Object
The quantity to set.
106 107 108 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 106 def set @set end |
Class Method Details
.field_encodings ⇒ Object
113 114 115 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 113 def self.field_encodings @field_encodings = { set: :decimal_string } end |