Class: MetronomeSDK::Models::V1::ContractCreateParams::UsageStatementSchedule
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::ContractCreateParams::UsageStatementSchedule
- Defined in:
- lib/metronome_sdk/models/v1/contract_create_params.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#billing_anchor_date ⇒ Time?
Required when using CUSTOM_DATE.
-
#day ⇒ Symbol, ...
If not provided, defaults to the first day of the month.
- #frequency ⇒ Symbol, MetronomeSDK::Models::V1::ContractCreateParams::UsageStatementSchedule::Frequency
-
#invoice_generation_starting_at ⇒ Time?
The date Metronome should start generating usage invoices.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(frequency: , billing_anchor_date: nil, day: nil, invoice_generation_starting_at: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see UsageStatementSchedule for more details.
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(frequency: , billing_anchor_date: nil, day: nil, invoice_generation_starting_at: nil) ⇒ Object
Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::ContractCreateParams::UsageStatementSchedule for more details.
|
|
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 3354
|
Instance Attribute Details
#billing_anchor_date ⇒ Time?
Required when using CUSTOM_DATE. This option lets you set a historical billing anchor date, aligning future billing cycles with a chosen cadence. For example, if a contract starts on 2024-09-15 and you set the anchor date to 2024-09-10 with a MONTHLY frequency, the first usage statement will cover 09-15 to 10-10. Subsequent statements will follow the 10th of each month.
3337 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 3337 optional :billing_anchor_date, Time |
#day ⇒ Symbol, ...
If not provided, defaults to the first day of the month.
3343 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 3343 optional :day, enum: -> { MetronomeSDK::V1::ContractCreateParams::UsageStatementSchedule::Day } |
#frequency ⇒ Symbol, MetronomeSDK::Models::V1::ContractCreateParams::UsageStatementSchedule::Frequency
3326 3327 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 3326 required :frequency, enum: -> { MetronomeSDK::V1::ContractCreateParams::UsageStatementSchedule::Frequency } |
#invoice_generation_starting_at ⇒ Time?
The date Metronome should start generating usage invoices. If unspecified, contract start date will be used. This is useful to set if you want to import historical invoices via our ‘Create Historical Invoices’ API rather than having Metronome automatically generate them.
3352 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 3352 optional :invoice_generation_starting_at, Time |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 3376
|