Class: Stripe::V2::Billing::Contract::PricingLines::Data::Pricing::PriceDetails
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::V2::Billing::Contract::PricingLines::Data::Pricing::PriceDetails
- Defined in:
- lib/stripe/resources/v2/billing/contract.rb
Defined Under Namespace
Classes: PricingOverrides
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#current_quantity ⇒ Object
readonly
The current quantity on this pricing line.
-
#price ⇒ Object
readonly
The ID of the V1 price.
-
#pricing_overrides ⇒ Object
readonly
The overwrite_price overrides embedded directly on this pricing line.
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
#current_quantity ⇒ Object (readonly)
The current quantity on this pricing line.
239 240 241 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 239 def current_quantity @current_quantity end |
#price ⇒ Object (readonly)
The ID of the V1 price.
241 242 243 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 241 def price @price end |
#pricing_overrides ⇒ Object (readonly)
The overwrite_price overrides embedded directly on this pricing line.
243 244 245 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 243 def pricing_overrides @pricing_overrides end |
Class Method Details
.field_encodings ⇒ Object
253 254 255 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 253 def self.field_encodings @field_encodings = { current_quantity: :decimal_string } end |
.field_remappings ⇒ Object
249 250 251 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 249 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
245 246 247 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 245 def self.inner_class_types @inner_class_types = { pricing_overrides: PricingOverrides } end |