Class: Stripe::V2::Billing::Contract::PricingOverrides::Data

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

Defined Under Namespace

Classes: EndsAt, MultiplyPricing, 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?, field_encodings, #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)

Resolved timestamp when the pricing override ends.



411
412
413
# File 'lib/stripe/resources/v2/billing/contract.rb', line 411

def ends_at
  @ends_at
end

#idObject (readonly)

The ID of the pricing override.



413
414
415
# File 'lib/stripe/resources/v2/billing/contract.rb', line 413

def id
  @id
end

#lookup_keyObject (readonly)

The user-provided lookup key for the pricing override.



415
416
417
# File 'lib/stripe/resources/v2/billing/contract.rb', line 415

def lookup_key
  @lookup_key
end

#multiply_pricingObject (readonly)

Details for a multiply_pricing override.



417
418
419
# File 'lib/stripe/resources/v2/billing/contract.rb', line 417

def multiply_pricing
  @multiply_pricing
end

#priorityObject (readonly)

The priority of this override relative to others. Lower number = higher priority.



419
420
421
# File 'lib/stripe/resources/v2/billing/contract.rb', line 419

def priority
  @priority
end

#starts_atObject (readonly)

Resolved timestamp when the pricing override starts.



421
422
423
# File 'lib/stripe/resources/v2/billing/contract.rb', line 421

def starts_at
  @starts_at
end

#typeObject (readonly)

The type of pricing override.



423
424
425
# File 'lib/stripe/resources/v2/billing/contract.rb', line 423

def type
  @type
end

Class Method Details

.field_remappingsObject



433
434
435
# File 'lib/stripe/resources/v2/billing/contract.rb', line 433

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



425
426
427
428
429
430
431
# File 'lib/stripe/resources/v2/billing/contract.rb', line 425

def self.inner_class_types
  @inner_class_types = {
    ends_at: EndsAt,
    multiply_pricing: MultiplyPricing,
    starts_at: StartsAt,
  }
end