Class: Stripe::V2::Billing::Contract::PricingOverride
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::V2::Billing::Contract::PricingOverride
- Defined in:
- lib/stripe/resources/v2/billing/contract.rb
Defined Under Namespace
Classes: EndsAt, Multiplier, OverwritePrice, StartsAt
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#ends_at ⇒ Object
readonly
Resolved timestamp when the pricing override ends.
-
#lookup_key ⇒ Object
readonly
The user-provided lookup key for the pricing override.
-
#multiplier ⇒ Object
readonly
Details for a multiplier override.
-
#overwrite_price ⇒ Object
readonly
Details for an overwrite_price override.
-
#pricing_override ⇒ Object
readonly
The ID of the pricing override.
-
#priority ⇒ Object
readonly
The priority of this override relative to others.
-
#starts_at ⇒ Object
readonly
Resolved timestamp when the pricing override starts.
-
#type ⇒ Object
readonly
The type of pricing override.
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
#ends_at ⇒ Object (readonly)
Resolved timestamp when the pricing override ends.
807 808 809 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 807 def ends_at @ends_at end |
#lookup_key ⇒ Object (readonly)
The user-provided lookup key for the pricing override.
809 810 811 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 809 def lookup_key @lookup_key end |
#multiplier ⇒ Object (readonly)
Details for a multiplier override.
811 812 813 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 811 def multiplier @multiplier end |
#overwrite_price ⇒ Object (readonly)
Details for an overwrite_price override.
813 814 815 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 813 def overwrite_price @overwrite_price end |
#pricing_override ⇒ Object (readonly)
The ID of the pricing override.
815 816 817 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 815 def pricing_override @pricing_override end |
#priority ⇒ Object (readonly)
The priority of this override relative to others. Lower number = higher priority.
817 818 819 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 817 def priority @priority end |
#starts_at ⇒ Object (readonly)
Resolved timestamp when the pricing override starts.
819 820 821 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 819 def starts_at @starts_at end |
#type ⇒ Object (readonly)
The type of pricing override.
821 822 823 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 821 def type @type end |
Class Method Details
.field_encodings ⇒ Object
836 837 838 839 840 841 842 843 844 845 846 847 848 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 836 def self.field_encodings @field_encodings = { overwrite_price: { kind: :object, fields: { tiers: { kind: :array, element: { kind: :object, fields: { up_to_decimal: :decimal_string } }, }, }, }, } end |
.field_remappings ⇒ Object
832 833 834 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 832 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
823 824 825 826 827 828 829 830 |
# File 'lib/stripe/resources/v2/billing/contract.rb', line 823 def self.inner_class_types @inner_class_types = { ends_at: EndsAt, multiplier: Multiplier, overwrite_price: OverwritePrice, starts_at: StartsAt, } end |