metronome-sdk 2.1.0 → 2.2.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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/metronome_sdk/internal/transport/base_client.rb +7 -1
  5. data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +18 -12
  6. data/lib/metronome_sdk/internal/util.rb +7 -2
  7. data/lib/metronome_sdk/models/contract_v2.rb +29 -2
  8. data/lib/metronome_sdk/models/subscription.rb +32 -5
  9. data/lib/metronome_sdk/models/v1/alert_create_params.rb +33 -1
  10. data/lib/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rb +10 -1
  11. data/lib/metronome_sdk/models/v1/contract_create_params.rb +136 -20
  12. data/lib/metronome_sdk/models/v1/customer_create_params.rb +94 -2
  13. data/lib/metronome_sdk/models/v1/customer_set_billing_configurations_response.rb +111 -0
  14. data/lib/metronome_sdk/models/v1/customers/alert_retrieve_params.rb +32 -1
  15. data/lib/metronome_sdk/models/v1/customers/billing_config_create_params.rb +15 -1
  16. data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rb +15 -1
  17. data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +33 -1
  18. data/lib/metronome_sdk/models/v1/customers/invoice.rb +20 -2
  19. data/lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb +8 -1
  20. data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rb +10 -1
  21. data/lib/metronome_sdk/models/v1/settings/billing_provider_create_params.rb +1 -0
  22. data/lib/metronome_sdk/models/v1/usage_search_response.rb +6 -3
  23. data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +17 -1
  24. data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +17 -1
  25. data/lib/metronome_sdk/models/v2/contract_edit_params.rb +285 -22
  26. data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +177 -3
  27. data/lib/metronome_sdk/resources/v1/alerts.rb +3 -1
  28. data/lib/metronome_sdk/resources/v1/contracts.rb +6 -2
  29. data/lib/metronome_sdk/resources/v1/customers/alerts.rb +3 -1
  30. data/lib/metronome_sdk/resources/v1/customers/billing_config.rb +5 -1
  31. data/lib/metronome_sdk/resources/v1/customers.rb +5 -3
  32. data/lib/metronome_sdk/resources/v1/settings.rb +3 -1
  33. data/lib/metronome_sdk/resources/v2/contracts.rb +10 -2
  34. data/lib/metronome_sdk/version.rb +1 -1
  35. data/lib/metronome_sdk.rb +3 -0
  36. data/manifest.yaml +2 -0
  37. data/rbi/metronome_sdk/internal/transport/base_client.rbi +5 -0
  38. data/rbi/metronome_sdk/internal/transport/pooled_net_requester.rbi +6 -2
  39. data/rbi/metronome_sdk/internal/type/base_model.rbi +8 -4
  40. data/rbi/metronome_sdk/models/contract_v2.rbi +63 -6
  41. data/rbi/metronome_sdk/models/subscription.rbi +55 -9
  42. data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +69 -0
  43. data/rbi/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rbi +13 -0
  44. data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +288 -24
  45. data/rbi/metronome_sdk/models/v1/customer_create_params.rbi +204 -0
  46. data/rbi/metronome_sdk/models/v1/customer_set_billing_configurations_response.rbi +281 -0
  47. data/rbi/metronome_sdk/models/v1/customers/alert_retrieve_params.rbi +67 -0
  48. data/rbi/metronome_sdk/models/v1/customers/billing_config_create_params.rbi +18 -0
  49. data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbi +18 -0
  50. data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +71 -0
  51. data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +32 -0
  52. data/rbi/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbi +9 -0
  53. data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbi +13 -0
  54. data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_params.rbi +5 -0
  55. data/rbi/metronome_sdk/models/v1/usage_search_response.rbi +11 -3
  56. data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +22 -0
  57. data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +22 -0
  58. data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +616 -27
  59. data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +367 -3
  60. data/rbi/metronome_sdk/resources/v1/alerts.rbi +5 -0
  61. data/rbi/metronome_sdk/resources/v1/contracts.rbi +9 -0
  62. data/rbi/metronome_sdk/resources/v1/customers/alerts.rbi +5 -0
  63. data/rbi/metronome_sdk/resources/v1/customers/billing_config.rbi +6 -0
  64. data/rbi/metronome_sdk/resources/v1/customers.rbi +8 -1
  65. data/rbi/metronome_sdk/resources/v1/settings.rbi +4 -0
  66. data/rbi/metronome_sdk/resources/v2/contracts.rbi +12 -0
  67. data/sig/metronome_sdk/internal/transport/base_client.rbs +2 -0
  68. data/sig/metronome_sdk/internal/transport/pooled_net_requester.rbs +4 -1
  69. data/sig/metronome_sdk/models/contract_v2.rbs +31 -6
  70. data/sig/metronome_sdk/models/subscription.rbs +22 -3
  71. data/sig/metronome_sdk/models/v1/alert_create_params.rbs +28 -0
  72. data/sig/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rbs +7 -0
  73. data/sig/metronome_sdk/models/v1/contract_create_params.rbs +104 -0
  74. data/sig/metronome_sdk/models/v1/customer_create_params.rbs +83 -0
  75. data/sig/metronome_sdk/models/v1/customer_set_billing_configurations_response.rbs +119 -0
  76. data/sig/metronome_sdk/models/v1/customers/alert_retrieve_params.rbs +26 -1
  77. data/sig/metronome_sdk/models/v1/customers/billing_config_create_params.rbs +14 -0
  78. data/sig/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbs +14 -0
  79. data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +30 -0
  80. data/sig/metronome_sdk/models/v1/customers/invoice.rbs +18 -0
  81. data/sig/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbs +7 -0
  82. data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbs +8 -1
  83. data/sig/metronome_sdk/models/v1/settings/billing_provider_create_params.rbs +3 -1
  84. data/sig/metronome_sdk/models/v1/usage_search_response.rbs +3 -1
  85. data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +14 -0
  86. data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +14 -0
  87. data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +232 -3
  88. data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +131 -3
  89. data/sig/metronome_sdk/resources/v1/alerts.rbs +1 -0
  90. data/sig/metronome_sdk/resources/v1/contracts.rbs +2 -0
  91. data/sig/metronome_sdk/resources/v1/customers/alerts.rbs +1 -0
  92. data/sig/metronome_sdk/resources/v1/customers/billing_config.rbs +2 -0
  93. data/sig/metronome_sdk/resources/v1/customers.rbs +2 -1
  94. data/sig/metronome_sdk/resources/v1/settings.rbs +1 -0
  95. data/sig/metronome_sdk/resources/v2/contracts.rbs +4 -0
  96. metadata +5 -2
@@ -118,6 +118,13 @@ module MetronomeSDK
118
118
  # @return [Array<String>, nil]
119
119
  optional :invoice_types_filter, MetronomeSDK::Internal::Type::ArrayOf[String]
120
120
 
121
+ # @!attribute seat_filter
122
+ # Only present for low_remaining_seat_balance_reached notifications. The seat
123
+ # group key or seat group key-value pair the alert is scoped to.
124
+ #
125
+ # @return [MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::SeatFilter, nil]
126
+ optional :seat_filter, -> { MetronomeSDK::V1::Customers::CustomerAlert::Alert::SeatFilter }
127
+
121
128
  # @!attribute uniqueness_key
122
129
  # Prevents the creation of duplicates. If a request to create a record is made
123
130
  # with a previously used uniqueness key, a new record will not be created and the
@@ -126,7 +133,7 @@ module MetronomeSDK
126
133
  # @return [String, nil]
127
134
  optional :uniqueness_key, String
128
135
 
129
- # @!method initialize(id:, name:, status:, threshold:, type:, updated_at:, credit_grant_type_filters: nil, credit_type: nil, custom_field_filters: nil, group_key_filter: nil, group_values: nil, invoice_types_filter: nil, uniqueness_key: nil)
136
+ # @!method initialize(id:, name:, status:, threshold:, type:, updated_at:, credit_grant_type_filters: nil, credit_type: nil, custom_field_filters: nil, group_key_filter: nil, group_values: nil, invoice_types_filter: nil, seat_filter: nil, uniqueness_key: nil)
130
137
  # Some parameter documentations has been truncated, see
131
138
  # {MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert} for more details.
132
139
  #
@@ -154,6 +161,8 @@ module MetronomeSDK
154
161
  #
155
162
  # @param invoice_types_filter [Array<String>] Only supported for invoice_total_reached threshold notifications. A list of invo
156
163
  #
164
+ # @param seat_filter [MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::SeatFilter] Only present for low_remaining_seat_balance_reached notifications. The seat grou
165
+ #
157
166
  # @param uniqueness_key [String] Prevents the creation of duplicates. If a request to create a record is made wit
158
167
 
159
168
  # Status of the threshold notification
@@ -268,6 +277,29 @@ module MetronomeSDK
268
277
  # @param key [String]
269
278
  # @param value [String]
270
279
  end
280
+
281
+ # @see MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert#seat_filter
282
+ class SeatFilter < MetronomeSDK::Internal::Type::BaseModel
283
+ # @!attribute seat_group_key
284
+ # The seat group key (e.g., "seat_id", "user_id") that the alert is scoped to.
285
+ #
286
+ # @return [String]
287
+ required :seat_group_key, String
288
+
289
+ # @!attribute seat_group_value
290
+ # The seat group value that the alert is scoped to.
291
+ #
292
+ # @return [String, nil]
293
+ optional :seat_group_value, String
294
+
295
+ # @!method initialize(seat_group_key:, seat_group_value: nil)
296
+ # Only present for low_remaining_seat_balance_reached notifications. The seat
297
+ # group key or seat group key-value pair the alert is scoped to.
298
+ #
299
+ # @param seat_group_key [String] The seat group key (e.g., "seat_id", "user_id") that the alert is scoped to.
300
+ #
301
+ # @param seat_group_value [String] The seat group value that the alert is scoped to.
302
+ end
271
303
  end
272
304
 
273
305
  # The status of the threshold notification. If the notification is archived, null
@@ -932,6 +932,12 @@ module MetronomeSDK
932
932
  # @return [String, nil]
933
933
  optional :billing_provider_error, String
934
934
 
935
+ # @!attribute external_payment_id
936
+ # The ID of the payment in the external system, if available.
937
+ #
938
+ # @return [String, nil]
939
+ optional :external_payment_id, String
940
+
935
941
  # @!attribute external_status
936
942
  #
937
943
  # @return [Symbol, MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::ExternalStatus, nil]
@@ -973,11 +979,13 @@ module MetronomeSDK
973
979
  optional :tax,
974
980
  -> { MetronomeSDK::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::Tax }
975
981
 
976
- # @!method initialize(billing_provider_type:, billing_provider_error: nil, external_status: nil, invoice_id: nil, invoiced_sub_total: nil, invoiced_total: nil, issued_at_timestamp: nil, pdf_url: nil, tax: nil)
982
+ # @!method initialize(billing_provider_type:, billing_provider_error: nil, external_payment_id: nil, external_status: nil, invoice_id: nil, invoiced_sub_total: nil, invoiced_total: nil, issued_at_timestamp: nil, pdf_url: nil, tax: nil)
977
983
  # @param billing_provider_type [Symbol, MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::BillingProviderType]
978
984
  #
979
985
  # @param billing_provider_error [String] Error message from the billing provider, if available.
980
986
  #
987
+ # @param external_payment_id [String] The ID of the payment in the external system, if available.
988
+ #
981
989
  # @param external_status [Symbol, MetronomeSDK::Models::V1::Customers::Invoice::CorrectionRecord::CorrectedExternalInvoice::ExternalStatus]
982
990
  #
983
991
  # @param invoice_id [String]
@@ -1017,6 +1025,7 @@ module MetronomeSDK
1017
1025
  DRAFT = :DRAFT
1018
1026
  FINALIZED = :FINALIZED
1019
1027
  PAID = :PAID
1028
+ PARTIALLY_PAID = :PARTIALLY_PAID
1020
1029
  UNCOLLECTIBLE = :UNCOLLECTIBLE
1021
1030
  VOID = :VOID
1022
1031
  DELETED = :DELETED
@@ -1076,6 +1085,12 @@ module MetronomeSDK
1076
1085
  # @return [String, nil]
1077
1086
  optional :billing_provider_error, String
1078
1087
 
1088
+ # @!attribute external_payment_id
1089
+ # The ID of the payment in the external system, if available.
1090
+ #
1091
+ # @return [String, nil]
1092
+ optional :external_payment_id, String
1093
+
1079
1094
  # @!attribute external_status
1080
1095
  #
1081
1096
  # @return [Symbol, MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::ExternalStatus, nil]
@@ -1116,11 +1131,13 @@ module MetronomeSDK
1116
1131
  # @return [MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::Tax, nil]
1117
1132
  optional :tax, -> { MetronomeSDK::V1::Customers::Invoice::ExternalInvoice::Tax }
1118
1133
 
1119
- # @!method initialize(billing_provider_type:, billing_provider_error: nil, external_status: nil, invoice_id: nil, invoiced_sub_total: nil, invoiced_total: nil, issued_at_timestamp: nil, pdf_url: nil, tax: nil)
1134
+ # @!method initialize(billing_provider_type:, billing_provider_error: nil, external_payment_id: nil, external_status: nil, invoice_id: nil, invoiced_sub_total: nil, invoiced_total: nil, issued_at_timestamp: nil, pdf_url: nil, tax: nil)
1120
1135
  # @param billing_provider_type [Symbol, MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::BillingProviderType]
1121
1136
  #
1122
1137
  # @param billing_provider_error [String] Error message from the billing provider, if available.
1123
1138
  #
1139
+ # @param external_payment_id [String] The ID of the payment in the external system, if available.
1140
+ #
1124
1141
  # @param external_status [Symbol, MetronomeSDK::Models::V1::Customers::Invoice::ExternalInvoice::ExternalStatus]
1125
1142
  #
1126
1143
  # @param invoice_id [String]
@@ -1160,6 +1177,7 @@ module MetronomeSDK
1160
1177
  DRAFT = :DRAFT
1161
1178
  FINALIZED = :FINALIZED
1162
1179
  PAID = :PAID
1180
+ PARTIALLY_PAID = :PARTIALLY_PAID
1163
1181
  UNCOLLECTIBLE = :UNCOLLECTIBLE
1164
1182
  VOID = :VOID
1165
1183
  DELETED = :DELETED
@@ -62,6 +62,11 @@ module MetronomeSDK
62
62
  required :adjustment_type,
63
63
  enum: -> { MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::Price::AdjustmentType }
64
64
 
65
+ # @!attribute quantity
66
+ #
67
+ # @return [Float, nil]
68
+ optional :quantity, Float
69
+
65
70
  # @!attribute tier
66
71
  # Used in pricing tiers. Indicates at what metric value the price applies.
67
72
  #
@@ -73,9 +78,11 @@ module MetronomeSDK
73
78
  # @return [Float, nil]
74
79
  optional :value, Float
75
80
 
76
- # @!method initialize(adjustment_type:, tier: nil, value: nil)
81
+ # @!method initialize(adjustment_type:, quantity: nil, tier: nil, value: nil)
77
82
  # @param adjustment_type [Symbol, MetronomeSDK::Models::V1::Customers::PlanListPriceAdjustmentsResponse::Price::AdjustmentType] Determines how the value will be applied.
78
83
  #
84
+ # @param quantity [Float]
85
+ #
79
86
  # @param tier [Float] Used in pricing tiers. Indicates at what metric value the price applies.
80
87
  #
81
88
  # @param value [Float]
@@ -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
- # @!method initialize(avalara_environment:, avalara_password:, avalara_username:, delivery_method_ids:, request_options: {})
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).
@@ -50,6 +50,7 @@ module MetronomeSDK
50
50
 
51
51
  AWS_MARKETPLACE = :aws_marketplace
52
52
  AZURE_MARKETPLACE = :azure_marketplace
53
+ GCP_MARKETPLACE = :gcp_marketplace
53
54
 
54
55
  # @!method self.values
55
56
  # @return [Array<Symbol>]
@@ -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]