metronome-sdk 3.8.0 → 3.10.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 +34 -0
- data/README.md +1 -1
- data/lib/metronome_sdk/models/commit.rb +9 -1
- data/lib/metronome_sdk/models/contract.rb +46 -16
- data/lib/metronome_sdk/models/contract_v2.rb +378 -15
- data/lib/metronome_sdk/models/contract_without_amendments.rb +8 -5
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +8 -5
- data/lib/metronome_sdk/models/v1/contract_create_response.rb +73 -18
- data/lib/metronome_sdk/models/v1/contracts/rate_card_update_params.rb +27 -1
- data/lib/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rb +32 -5
- data/lib/metronome_sdk/models/v1/package_create_params.rb +8 -4
- data/lib/metronome_sdk/models/v1/package_list_response.rb +8 -4
- data/lib/metronome_sdk/models/v1/package_retrieve_response.rb +8 -4
- data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +11 -1
- data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +11 -1
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +14 -8
- data/lib/metronome_sdk/models/v2/contract_edit_response.rb +8 -4
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +8 -4
- data/lib/metronome_sdk/resources/v1/contracts/rate_cards.rb +11 -14
- data/lib/metronome_sdk/resources/v1/dashboards.rb +6 -9
- data/lib/metronome_sdk/resources/v2/contracts.rb +6 -2
- data/lib/metronome_sdk/version.rb +1 -1
- data/rbi/metronome_sdk/models/commit.rbi +11 -0
- data/rbi/metronome_sdk/models/contract.rbi +47 -22
- data/rbi/metronome_sdk/models/contract_v2.rbi +711 -19
- data/rbi/metronome_sdk/models/contract_without_amendments.rbi +12 -11
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +12 -11
- data/rbi/metronome_sdk/models/v1/contract_create_response.rbi +72 -43
- data/rbi/metronome_sdk/models/v1/contracts/rate_card_update_params.rbi +67 -0
- data/rbi/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rbi +96 -5
- data/rbi/metronome_sdk/models/v1/package_create_params.rbi +12 -6
- data/rbi/metronome_sdk/models/v1/package_list_response.rbi +12 -6
- data/rbi/metronome_sdk/models/v1/package_retrieve_response.rbi +12 -6
- data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +12 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +12 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +28 -18
- data/rbi/metronome_sdk/models/v2/contract_edit_response.rbi +12 -6
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +12 -6
- data/rbi/metronome_sdk/resources/v1/contracts/rate_cards.rbi +15 -13
- data/rbi/metronome_sdk/resources/v1/dashboards.rbi +6 -9
- data/rbi/metronome_sdk/resources/v2/contracts.rbi +10 -0
- data/sig/metronome_sdk/models/commit.rbs +7 -0
- data/sig/metronome_sdk/models/contract.rbs +22 -11
- data/sig/metronome_sdk/models/contract_v2.rbs +289 -5
- data/sig/metronome_sdk/models/contract_without_amendments.rbs +1 -2
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +1 -2
- data/sig/metronome_sdk/models/v1/contract_create_response.rbs +31 -17
- data/sig/metronome_sdk/models/v1/contracts/rate_card_update_params.rbs +28 -0
- data/sig/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rbs +39 -4
- data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +5 -0
- data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +5 -0
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +12 -14
- data/sig/metronome_sdk/resources/v1/contracts/rate_cards.rbs +1 -0
- data/sig/metronome_sdk/resources/v2/contracts.rbs +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b696954210f4bfed05c1d32c78ae7c38101e515f542781ff37cc49ef5b8aa64e
|
|
4
|
+
data.tar.gz: 6645acf1a6a3b40d2515f909f591ea74837837c5fcea90af965a363eb4e67e40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa99380e1a02c6e89b1633b002eecd1a3f20ae850141c302ed1dda4520eef09bf3de437944db64e381a0817afa963648a2b8d53d4d91e767621972015b274a94
|
|
7
|
+
data.tar.gz: 5ead08a83536b93ce7b43d66964e8f132632c4a6846059a08be8e3d2f2b6af6389988a0a709af4b19d9094d902a20bd4cc28384a8a815f465fb33314c1834dac
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.10.0 (2026-07-23)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.9.0...v3.10.0](https://github.com/Metronome-Industries/metronome-ruby/compare/v3.9.0...v3.10.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* [ORCH-2018] fixes type issues created from breaking gql changes ([f21c903](https://github.com/Metronome-Industries/metronome-ruby/commit/f21c90353a4ad56440c447b713624df8b1583f3f))
|
|
10
|
+
* Add add_credit_type_conversions field to update_rate_card ([f9d1ca5](https://github.com/Metronome-Industries/metronome-ruby/commit/f9d1ca5a365285e27b63f89a1720e98e2685f3e4))
|
|
11
|
+
* Add cost_basis to commits ([276ba9b](https://github.com/Metronome-Industries/metronome-ruby/commit/276ba9b96f7784fa142a6ed5caf1fbe9edf32df5))
|
|
12
|
+
* Add daily recurring commit description to docs ([22ce79a](https://github.com/Metronome-Industries/metronome-ruby/commit/22ce79af31f1e1585ee16d53ea8103e23b9141ee))
|
|
13
|
+
* add stlc SDK generation workflow to api repo ([fe49163](https://github.com/Metronome-Industries/metronome-ruby/commit/fe49163f7be32e3eb9248c19b77d8d73a9c53687))
|
|
14
|
+
* Docs: embeddable dashboard doc updates ([6cdc3fb](https://github.com/Metronome-Industries/metronome-ruby/commit/6cdc3fbb56a486febbcb27b6c40b2169b965df93))
|
|
15
|
+
* Kmd/remove supersede from contract transition ([260c042](https://github.com/Metronome-Industries/metronome-ruby/commit/260c042cf1c63a78a9eb4687b78d11c07544af45))
|
|
16
|
+
* Plumb applicable_contract_ids in edit customer commit ([b35217d](https://github.com/Metronome-Industries/metronome-ruby/commit/b35217d2002003b7bbe3432a3bc2bcff3599999f))
|
|
17
|
+
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([702930f](https://github.com/Metronome-Industries/metronome-ruby/commit/702930fbea60e526f6bdbd68bc1d3fceb7c1355b))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* remove webhook config that overwrites custom code ([d015d08](https://github.com/Metronome-Industries/metronome-ruby/commit/d015d08d5b3b8279626635a9e4136cce74fc5bbb))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Chores
|
|
26
|
+
|
|
27
|
+
* update tracking files for promote workflow ([3b6573c](https://github.com/Metronome-Industries/metronome-ruby/commit/3b6573c4116bbe414677ac23afa186ad5f106b40))
|
|
28
|
+
|
|
29
|
+
## 3.9.0 (2026-07-02)
|
|
30
|
+
|
|
31
|
+
Full Changelog: [v3.8.0...v3.9.0](https://github.com/Metronome-Industries/metronome-ruby/compare/v3.8.0...v3.9.0)
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* [ORCH-1875] add billing config schedule to api ([d99c67a](https://github.com/Metronome-Industries/metronome-ruby/commit/d99c67a326f711abccba75cac0d8bb840a79583d))
|
|
36
|
+
|
|
3
37
|
## 3.8.0 (2026-06-29)
|
|
4
38
|
|
|
5
39
|
Full Changelog: [v3.7.0...v3.8.0](https://github.com/Metronome-Industries/metronome-ruby/compare/v3.7.0...v3.8.0)
|
data/README.md
CHANGED
|
@@ -81,6 +81,12 @@ module MetronomeSDK
|
|
|
81
81
|
# @return [MetronomeSDK::Models::Commit::Contract, nil]
|
|
82
82
|
optional :contract, -> { MetronomeSDK::Commit::Contract }
|
|
83
83
|
|
|
84
|
+
# @!attribute cost_basis
|
|
85
|
+
# The ratio of the amount paid for the commit to the amount of credit granted.
|
|
86
|
+
#
|
|
87
|
+
# @return [Float, nil]
|
|
88
|
+
optional :cost_basis, Float
|
|
89
|
+
|
|
84
90
|
# @!attribute created_by
|
|
85
91
|
# The actor who created this commit. Omitted for system-generated commits such as
|
|
86
92
|
# recurring commits, rollover commits, and threshold commits.
|
|
@@ -200,7 +206,7 @@ module MetronomeSDK
|
|
|
200
206
|
# @return [String, nil]
|
|
201
207
|
optional :uniqueness_key, String
|
|
202
208
|
|
|
203
|
-
# @!method initialize(id:, created_at:, product:, type:, access_schedule: nil, amount: nil, applicable_contract_ids: nil, applicable_product_ids: nil, applicable_product_tags: nil, archived_at: nil, balance: nil, contract: nil, created_by: nil, custom_fields: nil, description: nil, hierarchy_configuration: nil, invoice_contract: nil, invoice_schedule: nil, ledger: nil, name: nil, netsuite_sales_order_id: nil, priority: nil, rate_type: nil, recurring_commit_id: nil, rolled_over_from: nil, rollover_fraction: nil, salesforce_opportunity_id: nil, specifiers: nil, spend_tracker_attributes: nil, subscription_config: nil, uniqueness_key: nil)
|
|
209
|
+
# @!method initialize(id:, created_at:, product:, type:, access_schedule: nil, amount: nil, applicable_contract_ids: nil, applicable_product_ids: nil, applicable_product_tags: nil, archived_at: nil, balance: nil, contract: nil, cost_basis: nil, created_by: nil, custom_fields: nil, description: nil, hierarchy_configuration: nil, invoice_contract: nil, invoice_schedule: nil, ledger: nil, name: nil, netsuite_sales_order_id: nil, priority: nil, rate_type: nil, recurring_commit_id: nil, rolled_over_from: nil, rollover_fraction: nil, salesforce_opportunity_id: nil, specifiers: nil, spend_tracker_attributes: nil, subscription_config: nil, uniqueness_key: nil)
|
|
204
210
|
# Some parameter documentations has been truncated, see
|
|
205
211
|
# {MetronomeSDK::Models::Commit} for more details.
|
|
206
212
|
#
|
|
@@ -228,6 +234,8 @@ module MetronomeSDK
|
|
|
228
234
|
#
|
|
229
235
|
# @param contract [MetronomeSDK::Models::Commit::Contract]
|
|
230
236
|
#
|
|
237
|
+
# @param cost_basis [Float] The ratio of the amount paid for the commit to the amount of credit granted.
|
|
238
|
+
#
|
|
231
239
|
# @param created_by [String] The actor who created this commit. Omitted for system-generated commits such as
|
|
232
240
|
#
|
|
233
241
|
# @param custom_fields [Hash{Symbol=>String}] Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
|
|
@@ -42,7 +42,6 @@ module MetronomeSDK
|
|
|
42
42
|
optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]
|
|
43
43
|
|
|
44
44
|
# @!attribute customer_billing_provider_configuration
|
|
45
|
-
# The billing provider configuration associated with a contract.
|
|
46
45
|
#
|
|
47
46
|
# @return [MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration, nil]
|
|
48
47
|
optional :customer_billing_provider_configuration,
|
|
@@ -115,7 +114,7 @@ module MetronomeSDK
|
|
|
115
114
|
#
|
|
116
115
|
# @param custom_fields [Hash{Symbol=>String}] Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
|
|
117
116
|
#
|
|
118
|
-
# @param customer_billing_provider_configuration [MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration]
|
|
117
|
+
# @param customer_billing_provider_configuration [MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration]
|
|
119
118
|
#
|
|
120
119
|
# @param package_id [String] ID of the package this contract was created from, if applicable.
|
|
121
120
|
#
|
|
@@ -316,52 +315,81 @@ module MetronomeSDK
|
|
|
316
315
|
|
|
317
316
|
# @see MetronomeSDK::Models::Contract#customer_billing_provider_configuration
|
|
318
317
|
class CustomerBillingProviderConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
318
|
+
# @!attribute id
|
|
319
|
+
# ID of this configuration; can be provided as the
|
|
320
|
+
# billing_provider_configuration_id when creating a contract.
|
|
321
|
+
#
|
|
322
|
+
# @return [String]
|
|
323
|
+
required :id, String
|
|
324
|
+
|
|
319
325
|
# @!attribute archived_at
|
|
320
326
|
#
|
|
321
327
|
# @return [Time, nil]
|
|
322
328
|
required :archived_at, Time, nil?: true
|
|
323
329
|
|
|
324
330
|
# @!attribute billing_provider
|
|
331
|
+
# The billing provider set for this configuration.
|
|
325
332
|
#
|
|
326
333
|
# @return [Symbol, MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration::BillingProvider]
|
|
327
334
|
required :billing_provider,
|
|
328
335
|
enum: -> { MetronomeSDK::Contract::CustomerBillingProviderConfiguration::BillingProvider }
|
|
329
336
|
|
|
337
|
+
# @!attribute configuration
|
|
338
|
+
# Configuration for the billing provider. The structure of this object is specific
|
|
339
|
+
# to the billing provider.
|
|
340
|
+
#
|
|
341
|
+
# @return [Hash{Symbol=>Object}]
|
|
342
|
+
required :configuration, MetronomeSDK::Internal::Type::HashOf[MetronomeSDK::Internal::Type::Unknown]
|
|
343
|
+
|
|
344
|
+
# @!attribute customer_id
|
|
345
|
+
#
|
|
346
|
+
# @return [String]
|
|
347
|
+
required :customer_id, String
|
|
348
|
+
|
|
330
349
|
# @!attribute delivery_method
|
|
350
|
+
# The method to use for delivering invoices to this customer.
|
|
331
351
|
#
|
|
332
352
|
# @return [Symbol, MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration::DeliveryMethod]
|
|
333
353
|
required :delivery_method,
|
|
334
354
|
enum: -> { MetronomeSDK::Contract::CustomerBillingProviderConfiguration::DeliveryMethod }
|
|
335
355
|
|
|
336
|
-
# @!attribute
|
|
356
|
+
# @!attribute delivery_method_configuration
|
|
357
|
+
# Configuration for the delivery method. The structure of this object is specific
|
|
358
|
+
# to the delivery method.
|
|
337
359
|
#
|
|
338
|
-
# @return [
|
|
339
|
-
|
|
360
|
+
# @return [Hash{Symbol=>Object}]
|
|
361
|
+
required :delivery_method_configuration,
|
|
362
|
+
MetronomeSDK::Internal::Type::HashOf[MetronomeSDK::Internal::Type::Unknown]
|
|
340
363
|
|
|
341
|
-
# @!attribute
|
|
342
|
-
#
|
|
343
|
-
# to the billing provider.
|
|
364
|
+
# @!attribute delivery_method_id
|
|
365
|
+
# ID of the delivery method to use for this customer.
|
|
344
366
|
#
|
|
345
|
-
# @return [
|
|
346
|
-
|
|
367
|
+
# @return [String]
|
|
368
|
+
required :delivery_method_id, String
|
|
347
369
|
|
|
348
|
-
# @!method initialize(archived_at:, billing_provider:, delivery_method:,
|
|
370
|
+
# @!method initialize(id:, archived_at:, billing_provider:, configuration:, customer_id:, delivery_method:, delivery_method_configuration:, delivery_method_id:)
|
|
349
371
|
# Some parameter documentations has been truncated, see
|
|
350
372
|
# {MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration} for more
|
|
351
373
|
# details.
|
|
352
374
|
#
|
|
353
|
-
#
|
|
375
|
+
# @param id [String] ID of this configuration; can be provided as the billing*provider_configuration*
|
|
354
376
|
#
|
|
355
377
|
# @param archived_at [Time, nil]
|
|
356
378
|
#
|
|
357
|
-
# @param billing_provider [Symbol, MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration::BillingProvider]
|
|
379
|
+
# @param billing_provider [Symbol, MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration::BillingProvider] The billing provider set for this configuration.
|
|
358
380
|
#
|
|
359
|
-
# @param
|
|
381
|
+
# @param configuration [Hash{Symbol=>Object}] Configuration for the billing provider. The structure of this object is specific
|
|
360
382
|
#
|
|
361
|
-
# @param
|
|
383
|
+
# @param customer_id [String]
|
|
362
384
|
#
|
|
363
|
-
# @param
|
|
385
|
+
# @param delivery_method [Symbol, MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration::DeliveryMethod] The method to use for delivering invoices to this customer.
|
|
386
|
+
#
|
|
387
|
+
# @param delivery_method_configuration [Hash{Symbol=>Object}] Configuration for the delivery method. The structure of this object is specific
|
|
388
|
+
#
|
|
389
|
+
# @param delivery_method_id [String] ID of the delivery method to use for this customer.
|
|
364
390
|
|
|
391
|
+
# The billing provider set for this configuration.
|
|
392
|
+
#
|
|
365
393
|
# @see MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration#billing_provider
|
|
366
394
|
module BillingProvider
|
|
367
395
|
extend MetronomeSDK::Internal::Type::Enum
|
|
@@ -380,6 +408,8 @@ module MetronomeSDK
|
|
|
380
408
|
# @return [Array<Symbol>]
|
|
381
409
|
end
|
|
382
410
|
|
|
411
|
+
# The method to use for delivering invoices to this customer.
|
|
412
|
+
#
|
|
383
413
|
# @see MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration#delivery_method
|
|
384
414
|
module DeliveryMethod
|
|
385
415
|
extend MetronomeSDK::Internal::Type::Enum
|