Class: Stripe::V2::Billing::Contract::PricingLines::Data

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/v2/billing/contract.rb

Defined Under Namespace

Classes: EndsAt, Pricing, StartsAt

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

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

#ends_atObject (readonly)

Timestamp when the pricing line ends.



290
291
292
# File 'lib/stripe/resources/v2/billing/contract.rb', line 290

def ends_at
  @ends_at
end

#idObject (readonly)

The id of the pricing line.



292
293
294
# File 'lib/stripe/resources/v2/billing/contract.rb', line 292

def id
  @id
end

#lookup_keyObject (readonly)

The user-provided lookup key for the pricing line.



294
295
296
# File 'lib/stripe/resources/v2/billing/contract.rb', line 294

def lookup_key
  @lookup_key
end

#metadataObject (readonly)

Set of key-value pairs.



296
297
298
# File 'lib/stripe/resources/v2/billing/contract.rb', line 296

def 
  @metadata
end

#pricingObject (readonly)

The pricing configuration for the pricing line.



298
299
300
# File 'lib/stripe/resources/v2/billing/contract.rb', line 298

def pricing
  @pricing
end

#starts_atObject (readonly)

Timestamp when the pricing line starts.



300
301
302
# File 'lib/stripe/resources/v2/billing/contract.rb', line 300

def starts_at
  @starts_at
end

Class Method Details

.field_encodingsObject



310
311
312
313
314
315
316
317
318
319
# File 'lib/stripe/resources/v2/billing/contract.rb', line 310

def self.field_encodings
  @field_encodings = {
    pricing: {
      kind: :object,
      fields: {
        price_details: { kind: :object, fields: { current_quantity: :decimal_string } },
      },
    },
  }
end

.field_remappingsObject



306
307
308
# File 'lib/stripe/resources/v2/billing/contract.rb', line 306

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



302
303
304
# File 'lib/stripe/resources/v2/billing/contract.rb', line 302

def self.inner_class_types
  @inner_class_types = { ends_at: EndsAt, pricing: Pricing, starts_at: StartsAt }
end