metronome-sdk 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +91 -0
- data/README.md +1 -1
- data/lib/metronome_sdk/errors.rb +25 -11
- data/lib/metronome_sdk/file_part.rb +10 -7
- data/lib/metronome_sdk/internal/body_cursor_page.rb +1 -1
- data/lib/metronome_sdk/internal/cursor_page.rb +1 -1
- data/lib/metronome_sdk/internal/cursor_page_without_limit.rb +1 -1
- data/lib/metronome_sdk/internal/transport/base_client.rb +11 -7
- data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +34 -31
- data/lib/metronome_sdk/internal/type/base_page.rb +1 -1
- data/lib/metronome_sdk/internal/type/enum.rb +25 -0
- data/lib/metronome_sdk/internal/type/file_input.rb +7 -4
- data/lib/metronome_sdk/internal/util.rb +8 -7
- data/lib/metronome_sdk/models/contract.rb +1 -0
- data/lib/metronome_sdk/models/contract_v2.rb +275 -6
- data/lib/metronome_sdk/models/contract_without_amendments.rb +2 -2
- data/lib/metronome_sdk/models/hierarchy_configuration.rb +123 -2
- data/lib/metronome_sdk/models/payment_gate_config.rb +1 -0
- data/lib/metronome_sdk/models/payment_gate_config_v2.rb +1 -0
- data/lib/metronome_sdk/models/subscription.rb +95 -1
- data/lib/metronome_sdk/models/v1/alert_archive_params.rb +8 -4
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +38 -36
- data/lib/metronome_sdk/models/v1/contract_amend_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +157 -9
- data/lib/metronome_sdk/models/v1/contract_list_balances_params.rb +9 -1
- data/lib/metronome_sdk/models/v1/customer_create_params.rb +11 -1
- data/lib/metronome_sdk/models/v1/customer_detail.rb +9 -1
- data/lib/metronome_sdk/models/v1/customer_preview_events_params.rb +19 -25
- data/lib/metronome_sdk/models/v1/customer_preview_events_response.rb +3 -3
- data/lib/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rb +1 -0
- data/lib/metronome_sdk/models/v1/customer_set_billing_configurations_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/customers/alert_list_params.rb +3 -3
- data/lib/metronome_sdk/models/v1/customers/alert_reset_params.rb +2 -2
- data/lib/metronome_sdk/models/v1/customers/alert_retrieve_params.rb +12 -12
- data/lib/metronome_sdk/models/v1/customers/billing_config_create_params.rb +6 -1
- data/lib/metronome_sdk/models/v1/customers/billing_config_delete_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rb +6 -1
- data/lib/metronome_sdk/models/v1/customers/commit_create_params.rb +1 -1
- data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +41 -38
- data/lib/metronome_sdk/models/v1/customers/invoice.rb +256 -16
- data/lib/metronome_sdk/models/v1/customers/invoice_retrieve_pdf_params.rb +30 -0
- data/lib/metronome_sdk/models/v1/payment.rb +157 -0
- data/lib/metronome_sdk/models/v1/payment_attempt_params.rb +28 -0
- data/lib/metronome_sdk/models/v1/payment_attempt_response.rb +18 -0
- data/lib/metronome_sdk/models/v1/payment_cancel_params.rb +28 -0
- data/lib/metronome_sdk/models/v1/payment_cancel_response.rb +18 -0
- data/lib/metronome_sdk/models/v1/payment_list_params.rb +53 -0
- data/lib/metronome_sdk/models/v1/payment_status.rb +19 -0
- data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rb +65 -0
- data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rb +12 -0
- data/lib/metronome_sdk/models/v1/settings/billing_provider_create_params.rb +73 -0
- data/lib/metronome_sdk/models/v1/settings/billing_provider_create_response.rb +31 -0
- data/lib/metronome_sdk/models/v1/settings/billing_provider_list_params.rb +26 -0
- data/lib/metronome_sdk/models/v1/settings/billing_provider_list_response.rb +105 -0
- data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +9 -1
- data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +9 -1
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +219 -9
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +195 -8
- data/lib/metronome_sdk/resources/v1/alerts.rb +57 -53
- data/lib/metronome_sdk/resources/v1/contracts.rb +8 -5
- data/lib/metronome_sdk/resources/v1/credit_grants.rb +10 -5
- data/lib/metronome_sdk/resources/v1/customers/alerts.rb +70 -51
- data/lib/metronome_sdk/resources/v1/customers/billing_config.rb +7 -4
- data/lib/metronome_sdk/resources/v1/customers/commits.rb +2 -1
- data/lib/metronome_sdk/resources/v1/customers/invoices.rb +57 -1
- data/lib/metronome_sdk/resources/v1/customers/plans.rb +8 -4
- data/lib/metronome_sdk/resources/v1/customers.rb +13 -8
- data/lib/metronome_sdk/resources/v1/payments.rb +102 -0
- data/lib/metronome_sdk/resources/v1/plans.rb +8 -4
- data/lib/metronome_sdk/resources/v1/settings/billing_providers.rb +75 -0
- data/lib/metronome_sdk/resources/v1/settings.rb +55 -0
- data/lib/metronome_sdk/resources/v1/usage.rb +4 -2
- data/lib/metronome_sdk/resources/v1.rb +8 -0
- data/lib/metronome_sdk/resources/v2/contracts.rb +9 -3
- data/lib/metronome_sdk/version.rb +1 -1
- data/lib/metronome_sdk.rb +17 -0
- data/rbi/metronome_sdk/errors.rbi +29 -2
- data/rbi/metronome_sdk/file_part.rbi +1 -1
- data/rbi/metronome_sdk/internal/transport/base_client.rbi +4 -5
- data/rbi/metronome_sdk/internal/type/base_page.rbi +1 -1
- data/rbi/metronome_sdk/internal/util.rbi +1 -1
- data/rbi/metronome_sdk/models/contract.rbi +5 -0
- data/rbi/metronome_sdk/models/contract_v2.rbi +635 -10
- data/rbi/metronome_sdk/models/contract_without_amendments.rbi +2 -2
- data/rbi/metronome_sdk/models/hierarchy_configuration.rbi +286 -6
- data/rbi/metronome_sdk/models/payment_gate_config.rbi +5 -0
- data/rbi/metronome_sdk/models/payment_gate_config_v2.rbi +5 -0
- data/rbi/metronome_sdk/models/subscription.rbi +190 -0
- data/rbi/metronome_sdk/models/v1/alert_archive_params.rbi +6 -4
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +51 -47
- data/rbi/metronome_sdk/models/v1/contract_amend_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +326 -10
- data/rbi/metronome_sdk/models/v1/contract_list_balances_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customer_create_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customer_detail.rbi +8 -0
- data/rbi/metronome_sdk/models/v1/customer_preview_events_params.rbi +24 -32
- data/rbi/metronome_sdk/models/v1/customer_preview_events_response.rbi +10 -9
- data/rbi/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/customers/alert_list_params.rbi +4 -4
- data/rbi/metronome_sdk/models/v1/customers/alert_reset_params.rbi +2 -2
- data/rbi/metronome_sdk/models/v1/customers/alert_retrieve_params.rbi +14 -14
- data/rbi/metronome_sdk/models/v1/customers/billing_config_create_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_delete_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbi +6 -0
- data/rbi/metronome_sdk/models/v1/customers/commit_create_params.rbi +2 -2
- data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +53 -44
- data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +462 -38
- data/rbi/metronome_sdk/models/v1/customers/invoice_retrieve_pdf_params.rbi +50 -0
- data/rbi/metronome_sdk/models/v1/payment.rbi +324 -0
- data/rbi/metronome_sdk/models/v1/payment_attempt_params.rbi +48 -0
- data/rbi/metronome_sdk/models/v1/payment_attempt_response.rbi +35 -0
- data/rbi/metronome_sdk/models/v1/payment_cancel_params.rbi +48 -0
- data/rbi/metronome_sdk/models/v1/payment_cancel_response.rbi +35 -0
- data/rbi/metronome_sdk/models/v1/payment_list_params.rbi +91 -0
- data/rbi/metronome_sdk/models/v1/payment_status.rbi +33 -0
- data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbi +115 -0
- data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rbi +25 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_params.rbi +157 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_response.rbi +75 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_list_params.rbi +50 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_list_response.rbi +245 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +18 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +18 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +536 -12
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +462 -14
- data/rbi/metronome_sdk/resources/v1/alerts.rbi +68 -64
- data/rbi/metronome_sdk/resources/v1/contracts.rbi +8 -4
- data/rbi/metronome_sdk/resources/v1/credit_grants.rbi +10 -5
- data/rbi/metronome_sdk/resources/v1/customers/alerts.rbi +73 -54
- data/rbi/metronome_sdk/resources/v1/customers/billing_config.rbi +8 -4
- data/rbi/metronome_sdk/resources/v1/customers/commits.rbi +3 -2
- data/rbi/metronome_sdk/resources/v1/customers/invoices.rbi +38 -1
- data/rbi/metronome_sdk/resources/v1/customers/plans.rbi +8 -4
- data/rbi/metronome_sdk/resources/v1/customers.rbi +17 -11
- data/rbi/metronome_sdk/resources/v1/payments.rbi +72 -0
- data/rbi/metronome_sdk/resources/v1/plans.rbi +8 -4
- data/rbi/metronome_sdk/resources/v1/settings/billing_providers.rbi +63 -0
- data/rbi/metronome_sdk/resources/v1/settings.rbi +47 -0
- data/rbi/metronome_sdk/resources/v1/usage.rbi +4 -2
- data/rbi/metronome_sdk/resources/v1.rbi +6 -0
- data/rbi/metronome_sdk/resources/v2/contracts.rbi +14 -0
- data/sig/metronome_sdk/errors.rbs +7 -0
- data/sig/metronome_sdk/file_part.rbs +1 -1
- data/sig/metronome_sdk/models/contract.rbs +2 -0
- data/sig/metronome_sdk/models/contract_v2.rbs +241 -12
- data/sig/metronome_sdk/models/hierarchy_configuration.rbs +87 -6
- data/sig/metronome_sdk/models/payment_gate_config.rbs +2 -1
- data/sig/metronome_sdk/models/payment_gate_config_v2.rbs +2 -1
- data/sig/metronome_sdk/models/subscription.rbs +80 -0
- data/sig/metronome_sdk/models/v1/contract_amend_params.rbs +2 -1
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +91 -5
- data/sig/metronome_sdk/models/v1/contract_list_balances_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/customer_create_params.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customer_detail.rbs +5 -0
- data/sig/metronome_sdk/models/v1/customer_preview_events_params.rbs +0 -7
- data/sig/metronome_sdk/models/v1/customer_preview_events_response.rbs +6 -4
- data/sig/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customers/billing_config_create_params.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customers/billing_config_delete_params.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customers/invoice.rbs +244 -19
- data/sig/metronome_sdk/models/v1/customers/invoice_retrieve_pdf_params.rbs +32 -0
- data/sig/metronome_sdk/models/v1/payment.rbs +198 -0
- data/sig/metronome_sdk/models/v1/payment_attempt_params.rbs +30 -0
- data/sig/metronome_sdk/models/v1/payment_attempt_response.rbs +15 -0
- data/sig/metronome_sdk/models/v1/payment_cancel_params.rbs +30 -0
- data/sig/metronome_sdk/models/v1/payment_cancel_response.rbs +15 -0
- data/sig/metronome_sdk/models/v1/payment_list_params.rbs +56 -0
- data/sig/metronome_sdk/models/v1/payment_status.rbs +19 -0
- data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbs +54 -0
- data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rbs +13 -0
- data/sig/metronome_sdk/models/v1/settings/billing_provider_create_params.rbs +64 -0
- data/sig/metronome_sdk/models/v1/settings/billing_provider_create_response.rbs +34 -0
- data/sig/metronome_sdk/models/v1/settings/billing_provider_list_params.rbs +28 -0
- data/sig/metronome_sdk/models/v1/settings/billing_provider_list_response.rbs +102 -0
- data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +9 -0
- data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +9 -0
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +184 -7
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +221 -18
- data/sig/metronome_sdk/resources/v1/contracts.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/customers/invoices.rbs +6 -0
- data/sig/metronome_sdk/resources/v1/payments.rbs +30 -0
- data/sig/metronome_sdk/resources/v1/settings/billing_providers.rbs +23 -0
- data/sig/metronome_sdk/resources/v1/settings.rbs +19 -0
- data/sig/metronome_sdk/resources/v1.rbs +4 -0
- data/sig/metronome_sdk/resources/v2/contracts.rbs +3 -0
- metadata +53 -2
|
@@ -25,8 +25,8 @@ module MetronomeSDK
|
|
|
25
25
|
end
|
|
26
26
|
attr_writer :alert
|
|
27
27
|
|
|
28
|
-
# The status of the
|
|
29
|
-
# returned.
|
|
28
|
+
# The status of the threshold notification. If the notification is archived, null
|
|
29
|
+
# will be returned.
|
|
30
30
|
sig do
|
|
31
31
|
returns(
|
|
32
32
|
T.nilable(
|
|
@@ -36,7 +36,7 @@ module MetronomeSDK
|
|
|
36
36
|
end
|
|
37
37
|
attr_accessor :customer_status
|
|
38
38
|
|
|
39
|
-
# If present, indicates the reason the
|
|
39
|
+
# If present, indicates the reason the threshold notification was triggered.
|
|
40
40
|
sig { returns(T.nilable(String)) }
|
|
41
41
|
attr_accessor :triggered_by
|
|
42
42
|
|
|
@@ -52,10 +52,10 @@ module MetronomeSDK
|
|
|
52
52
|
end
|
|
53
53
|
def self.new(
|
|
54
54
|
alert:,
|
|
55
|
-
# The status of the
|
|
56
|
-
# returned.
|
|
55
|
+
# The status of the threshold notification. If the notification is archived, null
|
|
56
|
+
# will be returned.
|
|
57
57
|
customer_status:,
|
|
58
|
-
# If present, indicates the reason the
|
|
58
|
+
# If present, indicates the reason the threshold notification was triggered.
|
|
59
59
|
triggered_by: nil
|
|
60
60
|
)
|
|
61
61
|
end
|
|
@@ -84,15 +84,15 @@ module MetronomeSDK
|
|
|
84
84
|
)
|
|
85
85
|
end
|
|
86
86
|
|
|
87
|
-
# the Metronome ID of the
|
|
87
|
+
# the Metronome ID of the threshold notification
|
|
88
88
|
sig { returns(String) }
|
|
89
89
|
attr_accessor :id
|
|
90
90
|
|
|
91
|
-
# Name of the
|
|
91
|
+
# Name of the threshold notification
|
|
92
92
|
sig { returns(String) }
|
|
93
93
|
attr_accessor :name
|
|
94
94
|
|
|
95
|
-
# Status of the
|
|
95
|
+
# Status of the threshold notification
|
|
96
96
|
sig do
|
|
97
97
|
returns(
|
|
98
98
|
MetronomeSDK::V1::Customers::CustomerAlert::Alert::Status::TaggedSymbol
|
|
@@ -100,11 +100,11 @@ module MetronomeSDK
|
|
|
100
100
|
end
|
|
101
101
|
attr_accessor :status
|
|
102
102
|
|
|
103
|
-
# Threshold value of the
|
|
103
|
+
# Threshold value of the notification policy
|
|
104
104
|
sig { returns(Float) }
|
|
105
105
|
attr_accessor :threshold
|
|
106
106
|
|
|
107
|
-
# Type of the
|
|
107
|
+
# Type of the threshold notification
|
|
108
108
|
sig do
|
|
109
109
|
returns(
|
|
110
110
|
MetronomeSDK::V1::Customers::CustomerAlert::Alert::Type::TaggedSymbol
|
|
@@ -112,13 +112,14 @@ module MetronomeSDK
|
|
|
112
112
|
end
|
|
113
113
|
attr_accessor :type
|
|
114
114
|
|
|
115
|
-
# Timestamp for when the
|
|
115
|
+
# Timestamp for when the threshold notification was last updated
|
|
116
116
|
sig { returns(Time) }
|
|
117
117
|
attr_accessor :updated_at
|
|
118
118
|
|
|
119
|
-
# An array of strings, representing a way to filter the credit grant this
|
|
120
|
-
# applies to, by looking at the credit_grant_type field on
|
|
121
|
-
# field is only defined for CreditPercentage and
|
|
119
|
+
# An array of strings, representing a way to filter the credit grant this
|
|
120
|
+
# threshold notification applies to, by looking at the credit_grant_type field on
|
|
121
|
+
# the credit grant. This field is only defined for CreditPercentage and
|
|
122
|
+
# CreditBalance notifications
|
|
122
123
|
sig { returns(T.nilable(T::Array[String])) }
|
|
123
124
|
attr_reader :credit_grant_type_filters
|
|
124
125
|
|
|
@@ -135,7 +136,8 @@ module MetronomeSDK
|
|
|
135
136
|
end
|
|
136
137
|
attr_writer :credit_type
|
|
137
138
|
|
|
138
|
-
# A list of custom field filters for
|
|
139
|
+
# A list of custom field filters for notification types that support advanced
|
|
140
|
+
# filtering
|
|
139
141
|
sig do
|
|
140
142
|
returns(
|
|
141
143
|
T.nilable(
|
|
@@ -157,8 +159,8 @@ module MetronomeSDK
|
|
|
157
159
|
end
|
|
158
160
|
attr_writer :custom_field_filters
|
|
159
161
|
|
|
160
|
-
# Scopes
|
|
161
|
-
# items. Only present for spend
|
|
162
|
+
# Scopes threshold notification evaluation to a specific presentation group key on
|
|
163
|
+
# individual line items. Only present for spend notifications.
|
|
162
164
|
sig do
|
|
163
165
|
returns(
|
|
164
166
|
T.nilable(
|
|
@@ -176,8 +178,8 @@ module MetronomeSDK
|
|
|
176
178
|
end
|
|
177
179
|
attr_writer :group_key_filter
|
|
178
180
|
|
|
179
|
-
# Only present for `spend_threshold_reached`
|
|
180
|
-
# group key on individual line items.
|
|
181
|
+
# Only present for `spend_threshold_reached` notifications. Scope notification to
|
|
182
|
+
# a specific group key on individual line items.
|
|
181
183
|
sig do
|
|
182
184
|
returns(
|
|
183
185
|
T.nilable(
|
|
@@ -199,8 +201,8 @@ module MetronomeSDK
|
|
|
199
201
|
end
|
|
200
202
|
attr_writer :group_values
|
|
201
203
|
|
|
202
|
-
# Only supported for invoice_total_reached
|
|
203
|
-
# evaluate.
|
|
204
|
+
# Only supported for invoice_total_reached threshold notifications. A list of
|
|
205
|
+
# invoice types to evaluate.
|
|
204
206
|
sig { returns(T.nilable(T::Array[String])) }
|
|
205
207
|
attr_reader :invoice_types_filter
|
|
206
208
|
|
|
@@ -243,33 +245,35 @@ module MetronomeSDK
|
|
|
243
245
|
).returns(T.attached_class)
|
|
244
246
|
end
|
|
245
247
|
def self.new(
|
|
246
|
-
# the Metronome ID of the
|
|
248
|
+
# the Metronome ID of the threshold notification
|
|
247
249
|
id:,
|
|
248
|
-
# Name of the
|
|
250
|
+
# Name of the threshold notification
|
|
249
251
|
name:,
|
|
250
|
-
# Status of the
|
|
252
|
+
# Status of the threshold notification
|
|
251
253
|
status:,
|
|
252
|
-
# Threshold value of the
|
|
254
|
+
# Threshold value of the notification policy
|
|
253
255
|
threshold:,
|
|
254
|
-
# Type of the
|
|
256
|
+
# Type of the threshold notification
|
|
255
257
|
type:,
|
|
256
|
-
# Timestamp for when the
|
|
258
|
+
# Timestamp for when the threshold notification was last updated
|
|
257
259
|
updated_at:,
|
|
258
|
-
# An array of strings, representing a way to filter the credit grant this
|
|
259
|
-
# applies to, by looking at the credit_grant_type field on
|
|
260
|
-
# field is only defined for CreditPercentage and
|
|
260
|
+
# An array of strings, representing a way to filter the credit grant this
|
|
261
|
+
# threshold notification applies to, by looking at the credit_grant_type field on
|
|
262
|
+
# the credit grant. This field is only defined for CreditPercentage and
|
|
263
|
+
# CreditBalance notifications
|
|
261
264
|
credit_grant_type_filters: nil,
|
|
262
265
|
credit_type: nil,
|
|
263
|
-
# A list of custom field filters for
|
|
266
|
+
# A list of custom field filters for notification types that support advanced
|
|
267
|
+
# filtering
|
|
264
268
|
custom_field_filters: nil,
|
|
265
|
-
# Scopes
|
|
266
|
-
# items. Only present for spend
|
|
269
|
+
# Scopes threshold notification evaluation to a specific presentation group key on
|
|
270
|
+
# individual line items. Only present for spend notifications.
|
|
267
271
|
group_key_filter: nil,
|
|
268
|
-
# Only present for `spend_threshold_reached`
|
|
269
|
-
# group key on individual line items.
|
|
272
|
+
# Only present for `spend_threshold_reached` notifications. Scope notification to
|
|
273
|
+
# a specific group key on individual line items.
|
|
270
274
|
group_values: nil,
|
|
271
|
-
# Only supported for invoice_total_reached
|
|
272
|
-
# evaluate.
|
|
275
|
+
# Only supported for invoice_total_reached threshold notifications. A list of
|
|
276
|
+
# invoice types to evaluate.
|
|
273
277
|
invoice_types_filter: nil,
|
|
274
278
|
# Prevents the creation of duplicates. If a request to create a record is made
|
|
275
279
|
# with a previously used uniqueness key, a new record will not be created and the
|
|
@@ -309,7 +313,7 @@ module MetronomeSDK
|
|
|
309
313
|
def to_hash
|
|
310
314
|
end
|
|
311
315
|
|
|
312
|
-
# Status of the
|
|
316
|
+
# Status of the threshold notification
|
|
313
317
|
module Status
|
|
314
318
|
extend MetronomeSDK::Internal::Type::Enum
|
|
315
319
|
|
|
@@ -349,7 +353,7 @@ module MetronomeSDK
|
|
|
349
353
|
end
|
|
350
354
|
end
|
|
351
355
|
|
|
352
|
-
# Type of the
|
|
356
|
+
# Type of the threshold notification
|
|
353
357
|
module Type
|
|
354
358
|
extend MetronomeSDK::Internal::Type::Enum
|
|
355
359
|
|
|
@@ -427,6 +431,11 @@ module MetronomeSDK
|
|
|
427
431
|
:low_remaining_contract_credit_and_commit_balance_reached,
|
|
428
432
|
MetronomeSDK::V1::Customers::CustomerAlert::Alert::Type::TaggedSymbol
|
|
429
433
|
)
|
|
434
|
+
LOW_REMAINING_SEAT_BALANCE_REACHED =
|
|
435
|
+
T.let(
|
|
436
|
+
:low_remaining_seat_balance_reached,
|
|
437
|
+
MetronomeSDK::V1::Customers::CustomerAlert::Alert::Type::TaggedSymbol
|
|
438
|
+
)
|
|
430
439
|
INVOICE_TOTAL_REACHED =
|
|
431
440
|
T.let(
|
|
432
441
|
:invoice_total_reached,
|
|
@@ -545,8 +554,8 @@ module MetronomeSDK
|
|
|
545
554
|
sig { returns(String) }
|
|
546
555
|
attr_accessor :value
|
|
547
556
|
|
|
548
|
-
# Scopes
|
|
549
|
-
# items. Only present for spend
|
|
557
|
+
# Scopes threshold notification evaluation to a specific presentation group key on
|
|
558
|
+
# individual line items. Only present for spend notifications.
|
|
550
559
|
sig do
|
|
551
560
|
params(key: String, value: String).returns(T.attached_class)
|
|
552
561
|
end
|
|
@@ -588,8 +597,8 @@ module MetronomeSDK
|
|
|
588
597
|
end
|
|
589
598
|
end
|
|
590
599
|
|
|
591
|
-
# The status of the
|
|
592
|
-
# returned.
|
|
600
|
+
# The status of the threshold notification. If the notification is archived, null
|
|
601
|
+
# will be returned.
|
|
593
602
|
module CustomerStatus
|
|
594
603
|
extend MetronomeSDK::Internal::Type::Enum
|
|
595
604
|
|