metronome-sdk 2.1.0 → 3.0.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 +65 -0
- data/README.md +10 -1
- data/lib/metronome_sdk/internal/transport/base_client.rb +7 -1
- data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +18 -12
- data/lib/metronome_sdk/internal/util.rb +7 -2
- data/lib/metronome_sdk/models/commit.rb +69 -1
- data/lib/metronome_sdk/models/contract_v2.rb +45 -2
- data/lib/metronome_sdk/models/credit.rb +69 -1
- data/lib/metronome_sdk/models/rate.rb +1 -11
- data/lib/metronome_sdk/models/subscription.rb +32 -5
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +33 -1
- data/lib/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rb +10 -1
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +136 -20
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_many_params.rb +1 -11
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_params.rb +1 -11
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb +1 -11
- data/lib/metronome_sdk/models/v1/custom_field_add_key_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_delete_values_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_list_keys_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_list_keys_response.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_remove_key_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_set_values_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/customer_create_params.rb +94 -2
- data/lib/metronome_sdk/models/v1/customer_set_billing_configurations_response.rb +111 -0
- data/lib/metronome_sdk/models/v1/customers/alert_retrieve_params.rb +32 -1
- data/lib/metronome_sdk/models/v1/customers/billing_config_create_params.rb +15 -1
- data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rb +15 -1
- data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +33 -1
- data/lib/metronome_sdk/models/v1/customers/invoice.rb +71 -3
- data/lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb +8 -1
- data/lib/metronome_sdk/models/v1/payment.rb +40 -1
- data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rb +10 -1
- data/lib/metronome_sdk/models/v1/settings/billing_provider_create_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/usage_search_response.rb +6 -3
- data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +17 -1
- data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +17 -1
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +285 -22
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +177 -3
- data/lib/metronome_sdk/resources/v1/alerts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/contracts/rate_cards/rates.rb +1 -3
- data/lib/metronome_sdk/resources/v1/contracts/rate_cards.rb +1 -1
- data/lib/metronome_sdk/resources/v1/contracts.rb +6 -2
- data/lib/metronome_sdk/resources/v1/customers/alerts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/customers/billing_config.rb +8 -4
- data/lib/metronome_sdk/resources/v1/customers/invoices.rb +7 -7
- data/lib/metronome_sdk/resources/v1/customers/plans.rb +5 -5
- data/lib/metronome_sdk/resources/v1/customers.rb +12 -10
- data/lib/metronome_sdk/resources/v1/plans.rb +2 -2
- data/lib/metronome_sdk/resources/v1/settings.rb +3 -1
- data/lib/metronome_sdk/resources/v1/usage.rb +7 -7
- data/lib/metronome_sdk/resources/v2/contracts.rb +10 -2
- data/lib/metronome_sdk/version.rb +1 -1
- data/lib/metronome_sdk.rb +3 -0
- data/manifest.yaml +2 -0
- data/rbi/metronome_sdk/internal/transport/base_client.rbi +5 -0
- data/rbi/metronome_sdk/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/metronome_sdk/internal/type/base_model.rbi +8 -4
- data/rbi/metronome_sdk/models/commit.rbi +171 -0
- data/rbi/metronome_sdk/models/contract_v2.rbi +85 -6
- data/rbi/metronome_sdk/models/credit.rbi +171 -0
- data/rbi/metronome_sdk/models/rate.rbi +3 -18
- data/rbi/metronome_sdk/models/subscription.rbi +55 -9
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +69 -0
- data/rbi/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rbi +13 -0
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +288 -24
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_add_many_params.rbi +3 -18
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_add_params.rbi +0 -15
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rbi +3 -18
- data/rbi/metronome_sdk/models/v1/custom_field_add_key_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_delete_values_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_list_keys_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_list_keys_response.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_remove_key_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_set_values_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/customer_create_params.rbi +204 -0
- data/rbi/metronome_sdk/models/v1/customer_set_billing_configurations_response.rbi +281 -0
- data/rbi/metronome_sdk/models/v1/customers/alert_retrieve_params.rbi +67 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_create_params.rbi +18 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbi +18 -0
- data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +71 -0
- data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +121 -0
- data/rbi/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbi +9 -0
- data/rbi/metronome_sdk/models/v1/payment.rbi +79 -0
- data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbi +13 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/usage_search_response.rbi +11 -3
- data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +22 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +22 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +616 -27
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +367 -3
- data/rbi/metronome_sdk/resources/v1/alerts.rbi +5 -0
- data/rbi/metronome_sdk/resources/v1/contracts/rate_cards/rates.rbi +0 -5
- data/rbi/metronome_sdk/resources/v1/contracts/rate_cards.rbi +1 -1
- data/rbi/metronome_sdk/resources/v1/contracts.rbi +9 -0
- data/rbi/metronome_sdk/resources/v1/customers/alerts.rbi +5 -0
- data/rbi/metronome_sdk/resources/v1/customers/billing_config.rbi +9 -3
- data/rbi/metronome_sdk/resources/v1/customers/invoices.rbi +7 -7
- data/rbi/metronome_sdk/resources/v1/customers/plans.rbi +5 -5
- data/rbi/metronome_sdk/resources/v1/customers.rbi +15 -8
- data/rbi/metronome_sdk/resources/v1/plans.rbi +2 -2
- data/rbi/metronome_sdk/resources/v1/settings.rbi +4 -0
- data/rbi/metronome_sdk/resources/v1/usage.rbi +7 -7
- data/rbi/metronome_sdk/resources/v2/contracts.rbi +12 -0
- data/sig/metronome_sdk/internal/transport/base_client.rbs +2 -0
- data/sig/metronome_sdk/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/metronome_sdk/models/commit.rbs +74 -0
- data/sig/metronome_sdk/models/contract_v2.rbs +45 -6
- data/sig/metronome_sdk/models/credit.rbs +74 -0
- data/sig/metronome_sdk/models/rate.rbs +3 -10
- data/sig/metronome_sdk/models/subscription.rbs +22 -3
- data/sig/metronome_sdk/models/v1/alert_create_params.rbs +28 -0
- data/sig/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +104 -0
- data/sig/metronome_sdk/models/v1/contracts/rate_cards/rate_add_many_params.rbs +3 -10
- data/sig/metronome_sdk/models/v1/contracts/rate_cards/rate_add_params.rbs +1 -8
- data/sig/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rbs +3 -10
- data/sig/metronome_sdk/models/v1/custom_field_add_key_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_delete_values_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_list_keys_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_list_keys_response.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_remove_key_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_set_values_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/customer_create_params.rbs +83 -0
- data/sig/metronome_sdk/models/v1/customer_set_billing_configurations_response.rbs +119 -0
- data/sig/metronome_sdk/models/v1/customers/alert_retrieve_params.rbs +26 -1
- data/sig/metronome_sdk/models/v1/customers/billing_config_create_params.rbs +14 -0
- data/sig/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbs +14 -0
- data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +30 -0
- data/sig/metronome_sdk/models/v1/customers/invoice.rbs +64 -0
- data/sig/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbs +7 -0
- data/sig/metronome_sdk/models/v1/payment.rbs +45 -0
- data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbs +8 -1
- data/sig/metronome_sdk/models/v1/settings/billing_provider_create_params.rbs +3 -1
- data/sig/metronome_sdk/models/v1/usage_search_response.rbs +3 -1
- data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +14 -0
- data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +14 -0
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +232 -3
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +131 -3
- data/sig/metronome_sdk/resources/v1/alerts.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/contracts/rate_cards/rates.rbs +0 -1
- data/sig/metronome_sdk/resources/v1/contracts.rbs +2 -0
- data/sig/metronome_sdk/resources/v1/customers/alerts.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/customers/billing_config.rbs +2 -0
- data/sig/metronome_sdk/resources/v1/customers.rbs +2 -1
- data/sig/metronome_sdk/resources/v1/settings.rbs +1 -0
- data/sig/metronome_sdk/resources/v2/contracts.rbs +4 -0
- metadata +19 -2
|
@@ -55,6 +55,12 @@ module MetronomeSDK
|
|
|
55
55
|
# @return [MetronomeSDK::Models::V1::Payment::PaymentGateway, nil]
|
|
56
56
|
optional :payment_gateway, -> { MetronomeSDK::V1::Payment::PaymentGateway }
|
|
57
57
|
|
|
58
|
+
# @!attribute revenue_system_payments
|
|
59
|
+
#
|
|
60
|
+
# @return [Array<MetronomeSDK::Models::V1::Payment::RevenueSystemPayment>, nil]
|
|
61
|
+
optional :revenue_system_payments,
|
|
62
|
+
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::Payment::RevenueSystemPayment] }
|
|
63
|
+
|
|
58
64
|
# @!attribute status
|
|
59
65
|
#
|
|
60
66
|
# @return [Symbol, MetronomeSDK::Models::V1::PaymentStatus, nil]
|
|
@@ -65,7 +71,7 @@ module MetronomeSDK
|
|
|
65
71
|
# @return [Time, nil]
|
|
66
72
|
optional :updated_at, Time
|
|
67
73
|
|
|
68
|
-
# @!method initialize(id:, amount: nil, amount_paid: nil, contract_id: nil, created_at: nil, customer_id: nil, error_message: nil, fiat_credit_type: nil, invoice_id: nil, payment_gateway: nil, status: nil, updated_at: nil)
|
|
74
|
+
# @!method initialize(id:, amount: nil, amount_paid: nil, contract_id: nil, created_at: nil, customer_id: nil, error_message: nil, fiat_credit_type: nil, invoice_id: nil, payment_gateway: nil, revenue_system_payments: nil, status: nil, updated_at: nil)
|
|
69
75
|
# @param id [String]
|
|
70
76
|
# @param amount [Float]
|
|
71
77
|
# @param amount_paid [Float]
|
|
@@ -76,6 +82,7 @@ module MetronomeSDK
|
|
|
76
82
|
# @param fiat_credit_type [MetronomeSDK::Models::CreditTypeData]
|
|
77
83
|
# @param invoice_id [String]
|
|
78
84
|
# @param payment_gateway [MetronomeSDK::Models::V1::Payment::PaymentGateway]
|
|
85
|
+
# @param revenue_system_payments [Array<MetronomeSDK::Models::V1::Payment::RevenueSystemPayment>]
|
|
79
86
|
# @param status [Symbol, MetronomeSDK::Models::V1::PaymentStatus]
|
|
80
87
|
# @param updated_at [Time]
|
|
81
88
|
|
|
@@ -151,6 +158,38 @@ module MetronomeSDK
|
|
|
151
158
|
# @return [Array<Symbol>]
|
|
152
159
|
end
|
|
153
160
|
end
|
|
161
|
+
|
|
162
|
+
class RevenueSystemPayment < MetronomeSDK::Internal::Type::BaseModel
|
|
163
|
+
# @!attribute revenue_system_provider
|
|
164
|
+
#
|
|
165
|
+
# @return [String]
|
|
166
|
+
required :revenue_system_provider, String
|
|
167
|
+
|
|
168
|
+
# @!attribute sync_status
|
|
169
|
+
#
|
|
170
|
+
# @return [String]
|
|
171
|
+
required :sync_status, String
|
|
172
|
+
|
|
173
|
+
# @!attribute error_message
|
|
174
|
+
# The error message from the revenue system, if available.
|
|
175
|
+
#
|
|
176
|
+
# @return [String, nil]
|
|
177
|
+
optional :error_message, String
|
|
178
|
+
|
|
179
|
+
# @!attribute revenue_system_external_payment_id
|
|
180
|
+
#
|
|
181
|
+
# @return [String, nil]
|
|
182
|
+
optional :revenue_system_external_payment_id, String
|
|
183
|
+
|
|
184
|
+
# @!method initialize(revenue_system_provider:, sync_status:, error_message: nil, revenue_system_external_payment_id: nil)
|
|
185
|
+
# @param revenue_system_provider [String]
|
|
186
|
+
#
|
|
187
|
+
# @param sync_status [String]
|
|
188
|
+
#
|
|
189
|
+
# @param error_message [String] The error message from the revenue system, if available.
|
|
190
|
+
#
|
|
191
|
+
# @param revenue_system_external_payment_id [String]
|
|
192
|
+
end
|
|
154
193
|
end
|
|
155
194
|
end
|
|
156
195
|
end
|
|
@@ -34,7 +34,14 @@ module MetronomeSDK
|
|
|
34
34
|
# @return [Array<String>]
|
|
35
35
|
required :delivery_method_ids, MetronomeSDK::Internal::Type::ArrayOf[String]
|
|
36
36
|
|
|
37
|
-
# @!
|
|
37
|
+
# @!attribute commit_transactions
|
|
38
|
+
# Commit transactions if you want Metronome tax calculations used for reporting
|
|
39
|
+
# and tax filings.
|
|
40
|
+
#
|
|
41
|
+
# @return [Boolean, nil]
|
|
42
|
+
optional :commit_transactions, MetronomeSDK::Internal::Type::Boolean
|
|
43
|
+
|
|
44
|
+
# @!method initialize(avalara_environment:, avalara_password:, avalara_username:, delivery_method_ids:, commit_transactions: nil, request_options: {})
|
|
38
45
|
# Some parameter documentations has been truncated, see
|
|
39
46
|
# {MetronomeSDK::Models::V1::SettingUpsertAvalaraCredentialsParams} for more
|
|
40
47
|
# details.
|
|
@@ -47,6 +54,8 @@ module MetronomeSDK
|
|
|
47
54
|
#
|
|
48
55
|
# @param delivery_method_ids [Array<String>] The delivery method IDs of the billing provider configurations to update, can be
|
|
49
56
|
#
|
|
57
|
+
# @param commit_transactions [Boolean] Commit transactions if you want Metronome tax calculations used for reporting an
|
|
58
|
+
#
|
|
50
59
|
# @param request_options [MetronomeSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
51
60
|
|
|
52
61
|
# The Avalara environment to use (SANDBOX or PRODUCTION).
|
|
@@ -110,7 +110,8 @@ module MetronomeSDK
|
|
|
110
110
|
optional :aggregation_key, String
|
|
111
111
|
|
|
112
112
|
# @!attribute aggregation_type
|
|
113
|
-
# Specifies the type of aggregation performed on matching events.
|
|
113
|
+
# Specifies the type of aggregation performed on matching events. Includes
|
|
114
|
+
# "custom_sql" for events search endpoint responses.
|
|
114
115
|
#
|
|
115
116
|
# @return [Symbol, MetronomeSDK::Models::V1::UsageSearchResponseItem::MatchedBillableMetric::AggregationType, nil]
|
|
116
117
|
optional :aggregation_type,
|
|
@@ -183,7 +184,7 @@ module MetronomeSDK
|
|
|
183
184
|
#
|
|
184
185
|
# @param aggregation_key [String] A key that specifies which property of the event is used to aggregate data. This
|
|
185
186
|
#
|
|
186
|
-
# @param aggregation_type [Symbol, MetronomeSDK::Models::V1::UsageSearchResponseItem::MatchedBillableMetric::AggregationType] Specifies the type of aggregation performed on matching events.
|
|
187
|
+
# @param aggregation_type [Symbol, MetronomeSDK::Models::V1::UsageSearchResponseItem::MatchedBillableMetric::AggregationType] Specifies the type of aggregation performed on matching events. Includes "custom
|
|
187
188
|
#
|
|
188
189
|
# @param archived_at [Time] RFC 3339 timestamp indicating when the billable metric was archived. If not prov
|
|
189
190
|
#
|
|
@@ -201,7 +202,8 @@ module MetronomeSDK
|
|
|
201
202
|
#
|
|
202
203
|
# @param sql [String] The SQL query associated with the billable metric
|
|
203
204
|
|
|
204
|
-
# Specifies the type of aggregation performed on matching events.
|
|
205
|
+
# Specifies the type of aggregation performed on matching events. Includes
|
|
206
|
+
# "custom_sql" for events search endpoint responses.
|
|
205
207
|
#
|
|
206
208
|
# @see MetronomeSDK::Models::V1::UsageSearchResponseItem::MatchedBillableMetric#aggregation_type
|
|
207
209
|
module AggregationType
|
|
@@ -212,6 +214,7 @@ module MetronomeSDK
|
|
|
212
214
|
MAX = :MAX
|
|
213
215
|
SUM = :SUM
|
|
214
216
|
UNIQUE = :UNIQUE
|
|
217
|
+
CUSTOM_SQL = :custom_sql
|
|
215
218
|
|
|
216
219
|
# @!method self.values
|
|
217
220
|
# @return [Array<Symbol>]
|
|
@@ -41,6 +41,12 @@ module MetronomeSDK
|
|
|
41
41
|
# @return [Array<String>, nil]
|
|
42
42
|
optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String], nil?: true
|
|
43
43
|
|
|
44
|
+
# @!attribute description
|
|
45
|
+
# Updated description for the commit
|
|
46
|
+
#
|
|
47
|
+
# @return [String, nil]
|
|
48
|
+
optional :description, String
|
|
49
|
+
|
|
44
50
|
# @!attribute hierarchy_configuration
|
|
45
51
|
# Optional configuration for commit hierarchy access control
|
|
46
52
|
#
|
|
@@ -58,6 +64,12 @@ module MetronomeSDK
|
|
|
58
64
|
# @return [MetronomeSDK::Models::V2::ContractEditCommitParams::InvoiceSchedule, nil]
|
|
59
65
|
optional :invoice_schedule, -> { MetronomeSDK::V2::ContractEditCommitParams::InvoiceSchedule }
|
|
60
66
|
|
|
67
|
+
# @!attribute name
|
|
68
|
+
# Updated name for the commit
|
|
69
|
+
#
|
|
70
|
+
# @return [String, nil]
|
|
71
|
+
optional :name, String
|
|
72
|
+
|
|
61
73
|
# @!attribute priority
|
|
62
74
|
# If multiple commits are applicable, the one with the lower priority will apply
|
|
63
75
|
# first.
|
|
@@ -91,7 +103,7 @@ module MetronomeSDK
|
|
|
91
103
|
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::CommitSpecifierInput] },
|
|
92
104
|
nil?: true
|
|
93
105
|
|
|
94
|
-
# @!method initialize(commit_id:, customer_id:, access_schedule: nil, applicable_product_ids: nil, applicable_product_tags: nil, hierarchy_configuration: nil, invoice_contract_id: nil, invoice_schedule: nil, priority: nil, product_id: nil, rate_type: nil, specifiers: nil, request_options: {})
|
|
106
|
+
# @!method initialize(commit_id:, customer_id:, access_schedule: nil, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, hierarchy_configuration: nil, invoice_contract_id: nil, invoice_schedule: nil, name: nil, priority: nil, product_id: nil, rate_type: nil, specifiers: nil, request_options: {})
|
|
95
107
|
# Some parameter documentations has been truncated, see
|
|
96
108
|
# {MetronomeSDK::Models::V2::ContractEditCommitParams} for more details.
|
|
97
109
|
#
|
|
@@ -105,12 +117,16 @@ module MetronomeSDK
|
|
|
105
117
|
#
|
|
106
118
|
# @param applicable_product_tags [Array<String>, nil] Which tags the commit applies to. If applicable*product_ids, applicable_product*
|
|
107
119
|
#
|
|
120
|
+
# @param description [String] Updated description for the commit
|
|
121
|
+
#
|
|
108
122
|
# @param hierarchy_configuration [MetronomeSDK::Models::CommitHierarchyConfiguration] Optional configuration for commit hierarchy access control
|
|
109
123
|
#
|
|
110
124
|
# @param invoice_contract_id [String] ID of contract to use for invoicing
|
|
111
125
|
#
|
|
112
126
|
# @param invoice_schedule [MetronomeSDK::Models::V2::ContractEditCommitParams::InvoiceSchedule]
|
|
113
127
|
#
|
|
128
|
+
# @param name [String] Updated name for the commit
|
|
129
|
+
#
|
|
114
130
|
# @param priority [Float, nil] If multiple commits are applicable, the one with the lower priority will apply f
|
|
115
131
|
#
|
|
116
132
|
# @param product_id [String]
|
|
@@ -39,12 +39,24 @@ module MetronomeSDK
|
|
|
39
39
|
# @return [Array<String>, nil]
|
|
40
40
|
optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String], nil?: true
|
|
41
41
|
|
|
42
|
+
# @!attribute description
|
|
43
|
+
# Updated description for the credit
|
|
44
|
+
#
|
|
45
|
+
# @return [String, nil]
|
|
46
|
+
optional :description, String
|
|
47
|
+
|
|
42
48
|
# @!attribute hierarchy_configuration
|
|
43
49
|
# Optional configuration for credit hierarchy access control
|
|
44
50
|
#
|
|
45
51
|
# @return [MetronomeSDK::Models::CommitHierarchyConfiguration, nil]
|
|
46
52
|
optional :hierarchy_configuration, -> { MetronomeSDK::CommitHierarchyConfiguration }
|
|
47
53
|
|
|
54
|
+
# @!attribute name
|
|
55
|
+
# Updated name for the credit
|
|
56
|
+
#
|
|
57
|
+
# @return [String, nil]
|
|
58
|
+
optional :name, String
|
|
59
|
+
|
|
48
60
|
# @!attribute priority
|
|
49
61
|
# If multiple commits are applicable, the one with the lower priority will apply
|
|
50
62
|
# first.
|
|
@@ -78,7 +90,7 @@ module MetronomeSDK
|
|
|
78
90
|
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::CommitSpecifierInput] },
|
|
79
91
|
nil?: true
|
|
80
92
|
|
|
81
|
-
# @!method initialize(credit_id:, customer_id:, access_schedule: nil, applicable_product_ids: nil, applicable_product_tags: nil, hierarchy_configuration: nil, priority: nil, product_id: nil, rate_type: nil, specifiers: nil, request_options: {})
|
|
93
|
+
# @!method initialize(credit_id:, customer_id:, access_schedule: nil, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, hierarchy_configuration: nil, name: nil, priority: nil, product_id: nil, rate_type: nil, specifiers: nil, request_options: {})
|
|
82
94
|
# Some parameter documentations has been truncated, see
|
|
83
95
|
# {MetronomeSDK::Models::V2::ContractEditCreditParams} for more details.
|
|
84
96
|
#
|
|
@@ -92,8 +104,12 @@ module MetronomeSDK
|
|
|
92
104
|
#
|
|
93
105
|
# @param applicable_product_tags [Array<String>, nil] Which tags the credit applies to. If both applicable*product_ids and applicable*
|
|
94
106
|
#
|
|
107
|
+
# @param description [String] Updated description for the credit
|
|
108
|
+
#
|
|
95
109
|
# @param hierarchy_configuration [MetronomeSDK::Models::CommitHierarchyConfiguration] Optional configuration for credit hierarchy access control
|
|
96
110
|
#
|
|
111
|
+
# @param name [String] Updated name for the credit
|
|
112
|
+
#
|
|
97
113
|
# @param priority [Float, nil] If multiple commits are applicable, the one with the lower priority will apply f
|
|
98
114
|
#
|
|
99
115
|
# @param product_id [String]
|