Class: MetronomeSDK::Models::V2::ContractEditCreditParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V2::ContractEditCreditParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/metronome_sdk/models/v2/contract_edit_credit_params.rb
Overview
Defined Under Namespace
Modules: RateType Classes: AccessSchedule
Instance Attribute Summary collapse
- #access_schedule ⇒ MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule?
-
#applicable_product_ids ⇒ Array<String>?
Which products the credit applies to.
-
#applicable_product_tags ⇒ Array<String>?
Which tags the credit applies to.
-
#credit_id ⇒ String
ID of the credit to edit.
-
#customer_id ⇒ String
ID of the customer whose credit is being edited.
-
#hierarchy_configuration ⇒ MetronomeSDK::Models::CommitHierarchyConfiguration?
Optional configuration for credit hierarchy access control.
-
#priority ⇒ Float?
If multiple commits are applicable, the one with the lower priority will apply first.
- #product_id ⇒ String?
-
#rate_type ⇒ Symbol, ...
If provided, updates the credit to use the specified rate type for current and future invoices.
-
#specifiers ⇒ Array<MetronomeSDK::Models::CommitSpecifierInput>?
List of filters that determine what kind of customer usage draws down a commit or credit.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
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(id: , amount: nil, ending_before: nil, starting_at: nil) ⇒ Object
|
|
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 184
|
Instance Attribute Details
#access_schedule ⇒ MetronomeSDK::Models::V2::ContractEditCreditParams::AccessSchedule?
26 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 26 optional :access_schedule, -> { MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule } |
#applicable_product_ids ⇒ Array<String>?
Which products the credit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the credit applies to all products.
33 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 33 optional :applicable_product_ids, MetronomeSDK::Internal::Type::ArrayOf[String], nil?: true |
#applicable_product_tags ⇒ Array<String>?
Which tags the credit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the credit applies to all products.
40 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 40 optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String], nil?: true |
#credit_id ⇒ String
ID of the credit to edit
15 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 15 required :credit_id, String |
#customer_id ⇒ String
ID of the customer whose credit is being edited
21 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 21 required :customer_id, String |
#hierarchy_configuration ⇒ MetronomeSDK::Models::CommitHierarchyConfiguration?
Optional configuration for credit hierarchy access control
46 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 46 optional :hierarchy_configuration, -> { MetronomeSDK::CommitHierarchyConfiguration } |
#priority ⇒ Float?
If multiple commits are applicable, the one with the lower priority will apply first.
53 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 53 optional :priority, Float, nil?: true |
#product_id ⇒ String?
58 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 58 optional :product_id, String |
#rate_type ⇒ Symbol, ...
If provided, updates the credit to use the specified rate type for current and future invoices. Previously finalized invoices will need to be voided and regenerated to reflect the rate type change.
66 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 66 optional :rate_type, enum: -> { MetronomeSDK::V2::ContractEditCreditParams::RateType } |
#specifiers ⇒ Array<MetronomeSDK::Models::CommitSpecifierInput>?
List of filters that determine what kind of customer usage draws down a commit or credit. A customer’s usage needs to meet the condition of at least one of the specifiers to contribute to a commit’s or credit’s drawdown. This field cannot be used together with ‘applicable_product_ids` or `applicable_product_tags`. Instead, to target usage by product or product tag, pass those values in the body of `specifiers`.
77 78 79 |
# File 'lib/metronome_sdk/models/v2/contract_edit_credit_params.rb', line 77 optional :specifiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::CommitSpecifierInput] }, nil?: true |