Class: Stripe::V2::Billing::ContractUpdateParams::PricingOverrideAction::Add

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/contract_update_params.rb

Defined Under Namespace

Classes: EndsAt, MultiplyPricing, OverwritePrice, StartsAt

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(ends_at: nil, lookup_key: nil, metadata: nil, multiply_pricing: nil, overwrite_price: nil, priority: nil, starts_at: nil, type: nil) ⇒ Add

Returns a new instance of Add.



644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 644

def initialize(
  ends_at: nil,
  lookup_key: nil,
  metadata: nil,
  multiply_pricing: nil,
  overwrite_price: nil,
  priority: nil,
  starts_at: nil,
  type: nil
)
  @ends_at = ends_at
  @lookup_key = lookup_key
  @metadata = 
  @multiply_pricing = multiply_pricing
  @overwrite_price = overwrite_price
  @priority = priority
  @starts_at = starts_at
  @type = type
end

Instance Attribute Details

#ends_atObject

The end time for the pricing override.



628
629
630
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 628

def ends_at
  @ends_at
end

#lookup_keyObject

A lookup key for the pricing override.



630
631
632
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 630

def lookup_key
  @lookup_key
end

#metadataObject

Metadata for the pricing override.



632
633
634
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 632

def 
  @metadata
end

#multiply_pricingObject

A multiply_pricing override to add.



634
635
636
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 634

def multiply_pricing
  @multiply_pricing
end

#overwrite_priceObject

An overwrite price override to add.



636
637
638
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 636

def overwrite_price
  @overwrite_price
end

#priorityObject

The priority for the pricing override. The highest priority is 0 and the lowest is 100.



638
639
640
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 638

def priority
  @priority
end

#starts_atObject

The start time for the pricing override.



640
641
642
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 640

def starts_at
  @starts_at
end

#typeObject

The type of pricing override to add.



642
643
644
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 642

def type
  @type
end