Class: MetronomeSDK::Models::V1::Customers::PlanAddParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::Customers::PlanAddParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/metronome_sdk/models/v1/customers/plan_add_params.rb
Overview
Defined Under Namespace
Classes: OverageRateAdjustment, PriceAdjustment, TrialSpec
Instance Attribute Summary collapse
- #customer_id ⇒ String
-
#ending_before ⇒ Time?
RFC 3339 timestamp for when the plan ends (exclusive) for this customer.
-
#net_payment_terms_days ⇒ Float?
Number of days after issuance of invoice after which the invoice is due (e.g. Net 30).
-
#overage_rate_adjustments ⇒ Array<MetronomeSDK::Models::V1::Customers::PlanAddParams::OverageRateAdjustment>?
An optional list of overage rates that override the rates of the original plan configuration.
- #plan_id ⇒ String
-
#price_adjustments ⇒ Array<MetronomeSDK::Models::V1::Customers::PlanAddParams::PriceAdjustment>?
A list of price adjustments can be applied on top of the pricing in the plans.
-
#starting_on ⇒ Time
RFC 3339 timestamp for when the plan becomes active for this customer.
-
#trial_spec ⇒ MetronomeSDK::Models::V1::Customers::PlanAddParams::TrialSpec?
A custom trial can be set for the customer’s plan.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(custom_credit_type_id: , fiat_currency_credit_type_id: , to_fiat_conversion_factor: ) ⇒ Object constructor
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(custom_credit_type_id: , fiat_currency_credit_type_id: , to_fiat_conversion_factor: ) ⇒ Object
|
|
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 108
|
Instance Attribute Details
#customer_id ⇒ String
15 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 15 required :customer_id, String |
#ending_before ⇒ Time?
RFC 3339 timestamp for when the plan ends (exclusive) for this customer. Must be at 0:00 UTC (midnight).
34 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 34 optional :ending_before, Time |
#net_payment_terms_days ⇒ Float?
Number of days after issuance of invoice after which the invoice is due (e.g. Net 30).
41 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 41 optional :net_payment_terms_days, Float |
#overage_rate_adjustments ⇒ Array<MetronomeSDK::Models::V1::Customers::PlanAddParams::OverageRateAdjustment>?
An optional list of overage rates that override the rates of the original plan configuration. These new rates will apply to all pricing ramps.
48 49 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 48 optional :overage_rate_adjustments, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::Customers::PlanAddParams::OverageRateAdjustment] } |
#plan_id ⇒ String
20 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 20 required :plan_id, String |
#price_adjustments ⇒ Array<MetronomeSDK::Models::V1::Customers::PlanAddParams::PriceAdjustment>?
A list of price adjustments can be applied on top of the pricing in the plans. See the [price adjustments documentation](plans-docs.metronome.com/pricing/managing-plans/#price-adjustments) for details.
58 59 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 58 optional :price_adjustments, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::Customers::PlanAddParams::PriceAdjustment] } |
#starting_on ⇒ Time
RFC 3339 timestamp for when the plan becomes active for this customer. Must be at 0:00 UTC (midnight).
27 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 27 required :starting_on, Time |
#trial_spec ⇒ MetronomeSDK::Models::V1::Customers::PlanAddParams::TrialSpec?
A custom trial can be set for the customer’s plan. See the [trial configuration documentation](docs.metronome.com/provisioning/configure-trials/) for details.
67 |
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 67 optional :trial_spec, -> { MetronomeSDK::V1::Customers::PlanAddParams::TrialSpec } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 181
|