Class: Stripe::V2::Billing::ContractUpdateParams

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

Defined Under Namespace

Classes: LicenseQuantityAction, PricingLineAction, PricingOverrideAction

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, new, #to_h

Constructor Details

#initialize(include: nil, license_quantity_actions: nil, pricing_line_actions: nil, pricing_override_actions: nil) ⇒ ContractUpdateParams

Returns a new instance of ContractUpdateParams.



481
482
483
484
485
486
487
488
489
490
491
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 481

def initialize(
  include: nil,
  license_quantity_actions: nil,
  pricing_line_actions: nil,
  pricing_override_actions: nil
)
  @include = include
  @license_quantity_actions = license_quantity_actions
  @pricing_line_actions = pricing_line_actions
  @pricing_override_actions = pricing_override_actions
end

Instance Attribute Details

#includeObject

Additional fields to include in the response.



473
474
475
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 473

def include
  @include
end

#license_quantity_actionsObject

Schema-only: License quantity actions (implementation to follow).



475
476
477
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 475

def license_quantity_actions
  @license_quantity_actions
end

#pricing_line_actionsObject

Pricing line actions to apply.



477
478
479
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 477

def pricing_line_actions
  @pricing_line_actions
end

#pricing_override_actionsObject

Pricing override actions to apply.



479
480
481
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 479

def pricing_override_actions
  @pricing_override_actions
end

Class Method Details

.field_encodingsObject



493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 493

def self.field_encodings
  @field_encodings = {
    pricing_override_actions: {
      kind: :array,
      element: {
        kind: :object,
        fields: {
          add: {
            kind: :object,
            fields: {
              overwrite_price: {
                kind: :object,
                fields: {
                  tiers: {
                    kind: :array,
                    element: { kind: :object, fields: { up_to_decimal: :decimal_string } },
                  },
                },
              },
            },
          },
        },
      },
    },
  }
end