Class: MetronomeSDK::Models::V1::Contracts::RateCardRetrieveRateScheduleResponse::Data
Defined Under Namespace
Modules: BillingFrequency
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#initialize(entitled: , product_custom_fields: , product_id: , product_name: , product_tags: , rate: , starting_at: , billing_frequency: nil, commit_rate: nil, ending_before: nil, pricing_group_values: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Data for more details.
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(entitled: , product_custom_fields: , product_id: , product_name: , product_tags: , rate: , starting_at: , billing_frequency: nil, commit_rate: nil, ending_before: nil, pricing_group_values: nil) ⇒ Object
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 24
class Data < MetronomeSDK::Internal::Type::BaseModel
required :entitled, MetronomeSDK::Internal::Type::Boolean
required :product_custom_fields, MetronomeSDK::Internal::Type::HashOf[String]
required :product_id, String
required :product_name, String
required :product_tags, MetronomeSDK::Internal::Type::ArrayOf[String]
required :rate, -> { MetronomeSDK::Rate }
required :starting_at, Time
optional :billing_frequency,
enum: -> { MetronomeSDK::Models::V1::Contracts::RateCardRetrieveRateScheduleResponse::Data::BillingFrequency }
optional :commit_rate, -> { MetronomeSDK::CommitRate }
optional :ending_before, Time
optional :pricing_group_values, MetronomeSDK::Internal::Type::HashOf[String]
module BillingFrequency
extend MetronomeSDK::Internal::Type::Enum
MONTHLY = :MONTHLY
QUARTERLY = :QUARTERLY
ANNUAL = :ANNUAL
WEEKLY = :WEEKLY
end
end
|
Instance Attribute Details
#billing_frequency ⇒ Symbol, ...
64
65
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 64
optional :billing_frequency,
enum: -> { MetronomeSDK::Models::V1::Contracts::RateCardRetrieveRateScheduleResponse::Data::BillingFrequency }
|
A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.
72
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 72
optional :commit_rate, -> { MetronomeSDK::CommitRate }
|
#ending_before ⇒ Time?
77
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 77
optional :ending_before, Time
|
#entitled ⇒ Boolean
28
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 28
required :entitled, MetronomeSDK::Internal::Type::Boolean
|
#pricing_group_values ⇒ Hash{Symbol=>String}?
82
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 82
optional :pricing_group_values, MetronomeSDK::Internal::Type::HashOf[String]
|
#product_custom_fields ⇒ Hash{Symbol=>String}
Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }
34
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 34
required :product_custom_fields, MetronomeSDK::Internal::Type::HashOf[String]
|
#product_id ⇒ String
39
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 39
required :product_id, String
|
#product_name ⇒ String
44
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 44
required :product_name, String
|
49
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 49
required :product_tags, MetronomeSDK::Internal::Type::ArrayOf[String]
|
54
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 54
required :rate, -> { MetronomeSDK::Rate }
|
#starting_at ⇒ Time
59
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_retrieve_rate_schedule_response.rb', line 59
required :starting_at, Time
|