Class: MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier
- Defined in:
- lib/metronome_sdk/models/contract_without_amendments.rb
Defined Under Namespace
Modules: Discounted, Source, SpendType
Instance Attribute Summary collapse
- #discounted ⇒ Symbol, ...
- #sources ⇒ Array<Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Source>
- #spend_type ⇒ Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::SpendType
Class Method 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(alias_:, applicable_spend_specifiers:, credit_type_id:, reset_frequency:, accumulated_spend: nil) ⇒ Object
1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1082 class ApplicableSpendSpecifier < MetronomeSDK::Internal::Type::BaseModel # @!attribute sources # # @return [Array<Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Source>] required :sources, -> { MetronomeSDK::Internal::Type::ArrayOf[enum: MetronomeSDK::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Source] } # @!attribute spend_type # # @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::SpendType] required :spend_type, enum: -> { MetronomeSDK::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::SpendType } # @!attribute discounted # # @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Discounted, nil] optional :discounted, enum: -> { MetronomeSDK::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Discounted } # @!method initialize(sources:, spend_type:, discounted: nil) # @param sources [Array<Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Source>] # @param spend_type [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::SpendType] # @param discounted [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Discounted] module Source extend MetronomeSDK::Internal::Type::Enum THRESHOLD_RECHARGE = :THRESHOLD_RECHARGE MANUAL = :MANUAL # @!method self.values # @return [Array<Symbol>] end # @see MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier#spend_type module SpendType extend MetronomeSDK::Internal::Type::Enum COMMIT_PURCHASE = :COMMIT_PURCHASE # @!method self.values # @return [Array<Symbol>] end # @see MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier#discounted module Discounted extend MetronomeSDK::Internal::Type::Enum ANY = :ANY DISCOUNTED_ONLY = :DISCOUNTED_ONLY UNDISCOUNTED_ONLY = :UNDISCOUNTED_ONLY # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#discounted ⇒ Symbol, ...
1098 1099 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1098 optional :discounted, enum: -> { MetronomeSDK::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Discounted } |
#sources ⇒ Array<Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Source>
1086 1087 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1086 required :sources, -> { MetronomeSDK::Internal::Type::ArrayOf[enum: MetronomeSDK::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::Source] } |
#spend_type ⇒ Symbol, MetronomeSDK::Models::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::SpendType
1092 1093 |
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1092 required :spend_type, enum: -> { MetronomeSDK::ContractWithoutAmendments::SpendTracker::ApplicableSpendSpecifier::SpendType } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1112
|