Class: MetronomeSDK::Models::V1::ContractCreateParams::Subscription::SubscriptionRate

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/contract_create_params.rb

Overview

See Also:

Defined Under Namespace

Modules: BillingFrequency

Instance Attribute Summary collapse

Instance Method Summary collapse

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(billing_frequency: , product_id: ) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::ContractCreateParams::Subscription::SubscriptionRate for more details.

Parameters:



# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 3200


Instance Attribute Details

#billing_frequencySymbol, MetronomeSDK::Models::V1::ContractCreateParams::Subscription::SubscriptionRate::BillingFrequency

Frequency to bill subscription with. Together with product_id, must match existing rate on the rate card.



3191
3192
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 3191

required :billing_frequency,
enum: -> { MetronomeSDK::V1::ContractCreateParams::Subscription::SubscriptionRate::BillingFrequency }

#product_idString

Must be subscription type product

Returns:

  • (String)


3198
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 3198

required :product_id, String