Class: Stripe::V2::Billing::Contract::PricingLines::Data::Pricing
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::V2::Billing::Contract::PricingLines::Data::Pricing
- Defined in:
- lib/stripe/resources/v2/billing/contract.rb
Defined Under Namespace
Classes: PriceDetails
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#price_details ⇒ Object
readonly
V1 price details.
-
#type ⇒ Object
readonly
The type of pricing.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#price_details ⇒ Object (readonly)
V1 price details. Present when type is price.
258 259 260 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 258 def price_details @price_details end |
#type ⇒ Object (readonly)
The type of pricing.
260 261 262 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 260 def type @type end |
Class Method Details
.field_encodings ⇒ Object
270 271 272 273 274 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 270 def self.field_encodings @field_encodings = { price_details: { kind: :object, fields: { current_quantity: :decimal_string } }, } end |
.field_remappings ⇒ Object
266 267 268 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 266 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
262 263 264 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 262 def self.inner_class_types @inner_class_types = { price_details: PriceDetails } end |