Class: MetronomeSDK::Models::V1::ContractCreateParams::Credit
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::ContractCreateParams::Credit
- Defined in:
- lib/metronome_sdk/models/v1/contract_create_params.rb
Defined Under Namespace
Modules: RateType Classes: AccessSchedule
Instance Attribute Summary collapse
-
#access_schedule ⇒ MetronomeSDK::Models::V1::ContractCreateParams::Credit::AccessSchedule
Schedule for distributing the credit to the customer.
-
#applicable_product_ids ⇒ Array<String>?
Which products the credit applies to.
-
#applicable_product_tags ⇒ Array<String>?
Which tags the credit applies to.
-
#custom_fields ⇒ Hash{Symbol=>String}?
Custom fields to be added eg.
-
#description ⇒ String?
Used only in UI/API.
-
#hierarchy_configuration ⇒ MetronomeSDK::Models::CommitHierarchyConfiguration?
Optional configuration for credit hierarchy access control.
-
#name ⇒ String?
displayed on invoices.
-
#netsuite_sales_order_id ⇒ String?
This field’s availability is dependent on your client’s configuration.
-
#priority ⇒ Float?
If multiple credits are applicable, the one with the lower priority will apply first.
- #product_id ⇒ String
- #rate_type ⇒ Symbol, ...
-
#specifiers ⇒ Array<MetronomeSDK::Models::CommitSpecifierInput>?
List of filters that determine what kind of customer usage draws down a commit or credit.
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(amount: , ending_before: , starting_at: ) ⇒ Object
|
|
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1027
|
Instance Attribute Details
#access_schedule ⇒ MetronomeSDK::Models::V1::ContractCreateParams::Credit::AccessSchedule
Schedule for distributing the credit to the customer.
955 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 955 required :access_schedule, -> { MetronomeSDK::V1::ContractCreateParams::Credit::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.
967 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 967 optional :applicable_product_ids, MetronomeSDK::Internal::Type::ArrayOf[String] |
#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.
974 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 974 optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String] |
#custom_fields ⇒ Hash{Symbol=>String}?
Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }
980 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 980 optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String] |
#description ⇒ String?
Used only in UI/API. It is not exposed to end customers.
986 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 986 optional :description, String |
#hierarchy_configuration ⇒ MetronomeSDK::Models::CommitHierarchyConfiguration?
Optional configuration for credit hierarchy access control
992 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 992 optional :hierarchy_configuration, -> { MetronomeSDK::CommitHierarchyConfiguration } |
#name ⇒ String?
displayed on invoices
998 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 998 optional :name, String |
#netsuite_sales_order_id ⇒ String?
This field’s availability is dependent on your client’s configuration.
1004 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1004 optional :netsuite_sales_order_id, String |
#priority ⇒ Float?
If multiple credits are applicable, the one with the lower priority will apply first.
1011 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1011 optional :priority, Float |
#product_id ⇒ String
960 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 960 required :product_id, String |
#rate_type ⇒ Symbol, ...
1016 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1016 optional :rate_type, enum: -> { MetronomeSDK::V1::ContractCreateParams::Credit::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`.
1025 |
# File 'lib/metronome_sdk/models/v1/contract_create_params.rb', line 1025 optional :specifiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::CommitSpecifierInput] } |