Class: Stripe::V2::Billing::ContractUpdateParams::PricingLineAction::Add
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractUpdateParams::PricingLineAction::Add
- Defined in:
- lib/stripe/params/v2/billing/contract_update_params.rb
Defined Under Namespace
Classes: EndsAt, Pricing, StartsAt
Instance Attribute Summary collapse
-
#ends_at ⇒ Object
The end time for the pricing line.
-
#lookup_key ⇒ Object
A lookup key for the pricing line.
-
#metadata ⇒ Object
Metadata for the pricing line.
-
#pricing ⇒ Object
The pricing configuration for the pricing line.
-
#starts_at ⇒ Object
The start time for the pricing line.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ends_at: nil, lookup_key: nil, metadata: nil, pricing: nil, starts_at: nil) ⇒ Add
constructor
A new instance of Add.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(ends_at: nil, lookup_key: nil, metadata: nil, pricing: nil, starts_at: nil) ⇒ Add
Returns a new instance of Add.
187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 187 def initialize( ends_at: nil, lookup_key: nil, metadata: nil, pricing: nil, starts_at: nil ) @ends_at = ends_at @lookup_key = lookup_key @metadata = @pricing = pricing @starts_at = starts_at end |
Instance Attribute Details
#ends_at ⇒ Object
The end time for the pricing line.
177 178 179 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 177 def ends_at @ends_at end |
#lookup_key ⇒ Object
A lookup key for the pricing line.
179 180 181 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 179 def lookup_key @lookup_key end |
#metadata ⇒ Object
Metadata for the pricing line.
181 182 183 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 181 def @metadata end |
#pricing ⇒ Object
The pricing configuration for the pricing line.
183 184 185 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 183 def pricing @pricing end |
#starts_at ⇒ Object
The start time for the pricing line.
185 186 187 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 185 def starts_at @starts_at end |
Class Method Details
.field_encodings ⇒ Object
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 201 def self.field_encodings @field_encodings = { pricing: { kind: :object, fields: { price_details: { kind: :object, fields: { quantity_changes: { kind: :array, element: { kind: :object, fields: { set: :decimal_string } }, }, }, }, }, }, } end |