metronome-sdk 2.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.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +1 -1
  4. data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +30 -24
  5. data/lib/metronome_sdk/models/contract.rb +1 -0
  6. data/lib/metronome_sdk/models/contract_v2.rb +40 -21
  7. data/lib/metronome_sdk/models/hierarchy_configuration.rb +45 -21
  8. data/lib/metronome_sdk/models/subscription.rb +10 -0
  9. data/lib/metronome_sdk/models/v1/contract_create_params.rb +77 -27
  10. data/lib/metronome_sdk/models/v1/contract_list_balances_params.rb +9 -1
  11. data/lib/metronome_sdk/models/v1/customer_create_params.rb +11 -1
  12. data/lib/metronome_sdk/models/v1/customer_preview_events_params.rb +14 -10
  13. data/lib/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rb +1 -0
  14. data/lib/metronome_sdk/models/v1/customer_set_billing_configurations_params.rb +1 -0
  15. data/lib/metronome_sdk/models/v1/customers/billing_config_create_params.rb +6 -1
  16. data/lib/metronome_sdk/models/v1/customers/billing_config_delete_params.rb +1 -0
  17. data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rb +1 -0
  18. data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rb +6 -1
  19. data/lib/metronome_sdk/models/v1/customers/commit_create_params.rb +1 -1
  20. data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +1 -0
  21. data/lib/metronome_sdk/models/v1/customers/invoice.rb +126 -4
  22. data/lib/metronome_sdk/models/v1/payment.rb +7 -1
  23. data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rb +65 -0
  24. data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rb +12 -0
  25. data/lib/metronome_sdk/models/v1/settings/billing_provider_create_params.rb +73 -0
  26. data/lib/metronome_sdk/models/v1/settings/billing_provider_create_response.rb +31 -0
  27. data/lib/metronome_sdk/models/v1/settings/billing_provider_list_params.rb +26 -0
  28. data/lib/metronome_sdk/models/v1/settings/billing_provider_list_response.rb +105 -0
  29. data/lib/metronome_sdk/models/v2/contract_edit_params.rb +33 -6
  30. data/lib/metronome_sdk/resources/v1/contracts.rb +4 -2
  31. data/lib/metronome_sdk/resources/v1/credit_grants.rb +10 -5
  32. data/lib/metronome_sdk/resources/v1/customers/billing_config.rb +7 -4
  33. data/lib/metronome_sdk/resources/v1/customers/commits.rb +2 -1
  34. data/lib/metronome_sdk/resources/v1/customers/invoices.rb +2 -1
  35. data/lib/metronome_sdk/resources/v1/customers/plans.rb +8 -4
  36. data/lib/metronome_sdk/resources/v1/customers.rb +7 -5
  37. data/lib/metronome_sdk/resources/v1/plans.rb +8 -4
  38. data/lib/metronome_sdk/resources/v1/settings/billing_providers.rb +75 -0
  39. data/lib/metronome_sdk/resources/v1/settings.rb +55 -0
  40. data/lib/metronome_sdk/resources/v1.rb +4 -0
  41. data/lib/metronome_sdk/version.rb +1 -1
  42. data/lib/metronome_sdk.rb +8 -0
  43. data/rbi/metronome_sdk/models/contract.rbi +5 -0
  44. data/rbi/metronome_sdk/models/contract_v2.rbi +59 -27
  45. data/rbi/metronome_sdk/models/hierarchy_configuration.rbi +63 -27
  46. data/rbi/metronome_sdk/models/subscription.rbi +15 -0
  47. data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +96 -33
  48. data/rbi/metronome_sdk/models/v1/contract_list_balances_params.rbi +11 -0
  49. data/rbi/metronome_sdk/models/v1/customer_create_params.rbi +11 -0
  50. data/rbi/metronome_sdk/models/v1/customer_preview_events_params.rbi +18 -11
  51. data/rbi/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbi +5 -0
  52. data/rbi/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbi +5 -0
  53. data/rbi/metronome_sdk/models/v1/customers/billing_config_create_params.rbi +11 -0
  54. data/rbi/metronome_sdk/models/v1/customers/billing_config_delete_params.rbi +5 -0
  55. data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rbi +5 -0
  56. data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbi +6 -0
  57. data/rbi/metronome_sdk/models/v1/customers/commit_create_params.rbi +2 -2
  58. data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +5 -0
  59. data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +236 -0
  60. data/rbi/metronome_sdk/models/v1/payment.rbi +11 -3
  61. data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbi +115 -0
  62. data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rbi +25 -0
  63. data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_params.rbi +157 -0
  64. data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_response.rbi +75 -0
  65. data/rbi/metronome_sdk/models/v1/settings/billing_provider_list_params.rbi +50 -0
  66. data/rbi/metronome_sdk/models/v1/settings/billing_provider_list_response.rbi +245 -0
  67. data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +38 -6
  68. data/rbi/metronome_sdk/resources/v1/contracts.rbi +4 -1
  69. data/rbi/metronome_sdk/resources/v1/credit_grants.rbi +10 -5
  70. data/rbi/metronome_sdk/resources/v1/customers/billing_config.rbi +8 -4
  71. data/rbi/metronome_sdk/resources/v1/customers/commits.rbi +3 -2
  72. data/rbi/metronome_sdk/resources/v1/customers/invoices.rbi +2 -1
  73. data/rbi/metronome_sdk/resources/v1/customers/plans.rbi +8 -4
  74. data/rbi/metronome_sdk/resources/v1/customers.rbi +11 -8
  75. data/rbi/metronome_sdk/resources/v1/plans.rbi +8 -4
  76. data/rbi/metronome_sdk/resources/v1/settings/billing_providers.rbi +63 -0
  77. data/rbi/metronome_sdk/resources/v1/settings.rbi +47 -0
  78. data/rbi/metronome_sdk/resources/v1.rbi +3 -0
  79. data/sig/metronome_sdk/models/contract.rbs +2 -0
  80. data/sig/metronome_sdk/models/contract_v2.rbs +2 -0
  81. data/sig/metronome_sdk/models/v1/contract_list_balances_params.rbs +7 -0
  82. data/sig/metronome_sdk/models/v1/customer_create_params.rbs +2 -0
  83. data/sig/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbs +2 -0
  84. data/sig/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbs +2 -0
  85. data/sig/metronome_sdk/models/v1/customers/billing_config_create_params.rbs +2 -0
  86. data/sig/metronome_sdk/models/v1/customers/billing_config_delete_params.rbs +2 -0
  87. data/sig/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rbs +2 -0
  88. data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +2 -0
  89. data/sig/metronome_sdk/models/v1/customers/invoice.rbs +112 -0
  90. data/sig/metronome_sdk/models/v1/payment.rbs +10 -3
  91. data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbs +54 -0
  92. data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rbs +13 -0
  93. data/sig/metronome_sdk/models/v1/settings/billing_provider_create_params.rbs +64 -0
  94. data/sig/metronome_sdk/models/v1/settings/billing_provider_create_response.rbs +34 -0
  95. data/sig/metronome_sdk/models/v1/settings/billing_provider_list_params.rbs +28 -0
  96. data/sig/metronome_sdk/models/v1/settings/billing_provider_list_response.rbs +102 -0
  97. data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +2 -0
  98. data/sig/metronome_sdk/resources/v1/contracts.rbs +1 -0
  99. data/sig/metronome_sdk/resources/v1/settings/billing_providers.rbs +23 -0
  100. data/sig/metronome_sdk/resources/v1/settings.rbs +19 -0
  101. data/sig/metronome_sdk/resources/v1.rbs +2 -0
  102. metadata +26 -2
@@ -4,7 +4,8 @@ module MetronomeSDK
4
4
  module Resources
5
5
  class V1
6
6
  class CreditGrants
7
- # Create a new credit grant
7
+ # Create a new credit grant. This is a Plans (deprecated) endpoint. New clients
8
+ # should implement using Contracts.
8
9
  sig do
9
10
  params(
10
11
  customer_id: String,
@@ -65,7 +66,8 @@ module MetronomeSDK
65
66
  )
66
67
  end
67
68
 
68
- # List credit grants. This list does not included voided grants.
69
+ # List credit grants. This list does not included voided grants. This is a Plans
70
+ # (deprecated) endpoint. New clients should implement using Contracts.
69
71
  sig do
70
72
  params(
71
73
  limit: Integer,
@@ -105,7 +107,8 @@ module MetronomeSDK
105
107
  )
106
108
  end
107
109
 
108
- # Edit an existing credit grant
110
+ # Edit an existing credit grant. This is a Plans (deprecated) endpoint. New
111
+ # clients should implement using Contracts.
109
112
  sig do
110
113
  params(
111
114
  id: String,
@@ -130,7 +133,8 @@ module MetronomeSDK
130
133
 
131
134
  # Fetches a list of credit ledger entries. Returns lists of ledgers per customer.
132
135
  # Ledger entries are returned in chronological order. Ledger entries associated
133
- # with voided credit grants are not included.
136
+ # with voided credit grants are not included. This is a Plans (deprecated)
137
+ # endpoint. New clients should implement using Contracts.
134
138
  sig do
135
139
  params(
136
140
  next_page: String,
@@ -170,7 +174,8 @@ module MetronomeSDK
170
174
  )
171
175
  end
172
176
 
173
- # Void a credit grant
177
+ # Void a credit grant. This is a Plans (deprecated) endpoint. New clients should
178
+ # implement using Contracts.
174
179
  sig do
175
180
  params(
176
181
  id: String,
@@ -5,7 +5,8 @@ module MetronomeSDK
5
5
  class V1
6
6
  class Customers
7
7
  class BillingConfig
8
- # Set the billing configuration for a given customer.
8
+ # Set the billing configuration for a given customer. This is a Plans (deprecated)
9
+ # endpoint. New clients should implement using Contracts.
9
10
  sig do
10
11
  params(
11
12
  customer_id: String,
@@ -32,13 +33,15 @@ module MetronomeSDK
32
33
  aws_product_code: nil,
33
34
  # Body param:
34
35
  aws_region: nil,
35
- # Body param:
36
+ # Body param: The collection method for the customer's invoices. NOTE:
37
+ # `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
36
38
  stripe_collection_method: nil,
37
39
  request_options: {}
38
40
  )
39
41
  end
40
42
 
41
- # Fetch the billing configuration for the given customer.
43
+ # Fetch the billing configuration for the given customer. This is a Plans
44
+ # (deprecated) endpoint. New clients should implement using Contracts.
42
45
  sig do
43
46
  params(
44
47
  customer_id: String,
@@ -58,7 +61,8 @@ module MetronomeSDK
58
61
  end
59
62
 
60
63
  # Delete the billing configuration for a given customer. Note: this is unsupported
61
- # for Azure and AWS Marketplace customers.
64
+ # for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
65
+ # New clients should implement using Contracts.
62
66
  sig do
63
67
  params(
64
68
  customer_id: String,
@@ -34,7 +34,8 @@ module MetronomeSDK
34
34
  # #### Billing configuration:
35
35
  #
36
36
  # - invoice_contract_id is required for postpaid commits and for prepaid commits
37
- # with billing (only optional for free prepaid commits)
37
+ # with billing (only optional for free prepaid commits) unless do_not_invoice is
38
+ # set to true
38
39
  # - For postpaid commits: access_schedule and invoice_schedule must have matching
39
40
  # amounts
40
41
  # - For postpaid commits: only one schedule item is allowed in both schedules.
@@ -123,7 +124,7 @@ module MetronomeSDK
123
124
  description: nil,
124
125
  # The contract that this commit will be billed on. This is required for "POSTPAID"
125
126
  # commits and for "PREPAID" commits unless there is no invoice schedule above
126
- # (i.e., the commit is 'free').
127
+ # (i.e., the commit is 'free'), or if do_not_invoice is set to true.
127
128
  invoice_contract_id: nil,
128
129
  # Required for "POSTPAID" commits: the true up invoice will be generated at this
129
130
  # time and only one schedule item is allowed; the total must match
@@ -159,7 +159,8 @@ module MetronomeSDK
159
159
  )
160
160
  end
161
161
 
162
- # Add a one time charge to the specified invoice
162
+ # Add a one time charge to the specified invoice. This is a Plans (deprecated)
163
+ # endpoint. New clients should implement using Contracts.
163
164
  sig do
164
165
  params(
165
166
  customer_id: String,
@@ -5,7 +5,8 @@ module MetronomeSDK
5
5
  class V1
6
6
  class Customers
7
7
  class Plans
8
- # List the given customer's plans in reverse-chronological order.
8
+ # List the given customer's plans in reverse-chronological order. This is a Plans
9
+ # (deprecated) endpoint. New clients should implement using Contracts.
9
10
  sig do
10
11
  params(
11
12
  customer_id: String,
@@ -31,7 +32,8 @@ module MetronomeSDK
31
32
 
32
33
  # Associate an existing customer with a plan for a specified date range. See the
33
34
  # [price adjustments documentation](https://plans-docs.metronome.com/pricing/managing-plans/#price-adjustments)
34
- # for details on the price adjustments.
35
+ # for details on the price adjustments. This is a Plans (deprecated) endpoint. New
36
+ # clients should implement using Contracts.
35
37
  sig do
36
38
  params(
37
39
  customer_id: String,
@@ -82,7 +84,8 @@ module MetronomeSDK
82
84
  )
83
85
  end
84
86
 
85
- # Change the end date of a customer's plan.
87
+ # Change the end date of a customer's plan. This is a Plans (deprecated) endpoint.
88
+ # New clients should implement using Contracts.
86
89
  sig do
87
90
  params(
88
91
  customer_id: String,
@@ -116,7 +119,8 @@ module MetronomeSDK
116
119
 
117
120
  # Lists a customer plans adjustments. See the
118
121
  # [price adjustments documentation](https://plans-docs.metronome.com/pricing/managing-plans/#price-adjustments)
119
- # for details.
122
+ # for details. This is a Plans (deprecated) endpoint. New clients should implement
123
+ # using Contracts.
120
124
  sig do
121
125
  params(
122
126
  customer_id: String,
@@ -202,7 +202,8 @@ module MetronomeSDK
202
202
 
203
203
  # Fetch daily pending costs for the specified customer, broken down by credit type
204
204
  # and line items. Note: this is not supported for customers whose plan includes a
205
- # UNIQUE-type billable metric.
205
+ # UNIQUE-type billable metric. This is a Plans (deprecated) endpoint. New clients
206
+ # should implement using Contracts.
206
207
  sig do
207
208
  params(
208
209
  customer_id: String,
@@ -235,7 +236,8 @@ module MetronomeSDK
235
236
  # Preview how a set of events will affect a customer's invoices. Generates draft
236
237
  # invoices for a customer using their current contract configuration and the
237
238
  # provided events. This is useful for testing how new events will affect the
238
- # customer's invoices before they are actually processed.
239
+ # customer's invoices before they are actually processed. Customers on contracts
240
+ # with SQL billable metrics are not supported.
239
241
  sig do
240
242
  params(
241
243
  customer_id: String,
@@ -251,14 +253,15 @@ module MetronomeSDK
251
253
  def preview_events(
252
254
  # Path param:
253
255
  customer_id:,
254
- # Body param:
256
+ # Body param: Array of usage events to include in the preview calculation. Must
257
+ # contain at least one event in `merge` mode.
255
258
  events:,
256
- # Body param: If set to "replace", the preview will be generated as if those were
257
- # the only events for the specified customer. If set to "merge", the events will
258
- # be merged with any existing events for the specified customer. Defaults to
259
- # "replace".
259
+ # Body param: Controls how the provided events are combined with existing usage
260
+ # data. Use `replace` to calculate the preview as if these are the only events for
261
+ # the customer, ignoring all historical usage. Use `merge` to combine these events
262
+ # with the customer's existing usage. Defaults to `replace`.
260
263
  mode: nil,
261
- # Body param: If set, all zero quantity line items will be filtered out of the
264
+ # Body param: When `true`, line items with zero quantity are excluded from the
262
265
  # response.
263
266
  skip_zero_qty_line_items: nil,
264
267
  request_options: {}
@@ -4,7 +4,8 @@ module MetronomeSDK
4
4
  module Resources
5
5
  class V1
6
6
  class Plans
7
- # List all available plans.
7
+ # List all available plans. This is a Plans (deprecated) endpoint. New clients
8
+ # should implement using Contracts.
8
9
  sig do
9
10
  params(
10
11
  limit: Integer,
@@ -25,7 +26,8 @@ module MetronomeSDK
25
26
  )
26
27
  end
27
28
 
28
- # Fetch high level details of a specific plan.
29
+ # Fetch high level details of a specific plan. This is a Plans (deprecated)
30
+ # endpoint. New clients should implement using Contracts.
29
31
  sig do
30
32
  params(
31
33
  plan_id: String,
@@ -35,7 +37,8 @@ module MetronomeSDK
35
37
  def get_details(plan_id:, request_options: {})
36
38
  end
37
39
 
38
- # Fetches a list of charges of a specific plan.
40
+ # Fetches a list of charges of a specific plan. This is a Plans (deprecated)
41
+ # endpoint. New clients should implement using Contracts.
39
42
  sig do
40
43
  params(
41
44
  plan_id: String,
@@ -60,7 +63,8 @@ module MetronomeSDK
60
63
  end
61
64
 
62
65
  # Fetches a list of customers on a specific plan (by default, only currently
63
- # active plans are included)
66
+ # active plans are included). This is a Plans (deprecated) endpoint. New clients
67
+ # should implement using Contracts.
64
68
  sig do
65
69
  params(
66
70
  plan_id: String,
@@ -0,0 +1,63 @@
1
+ # typed: strong
2
+
3
+ module MetronomeSDK
4
+ module Resources
5
+ class V1
6
+ class Settings
7
+ class BillingProviders
8
+ # Set up account-level configuration for a billing provider. Once configured,
9
+ # individual contracts across customers can be mapped to this configuration using
10
+ # the returned delivery_method_id.
11
+ sig do
12
+ params(
13
+ billing_provider:
14
+ MetronomeSDK::V1::Settings::BillingProviderCreateParams::BillingProvider::OrSymbol,
15
+ configuration: T::Hash[Symbol, T.anything],
16
+ delivery_method:
17
+ MetronomeSDK::V1::Settings::BillingProviderCreateParams::DeliveryMethod::OrSymbol,
18
+ request_options: MetronomeSDK::RequestOptions::OrHash
19
+ ).returns(
20
+ MetronomeSDK::Models::V1::Settings::BillingProviderCreateResponse
21
+ )
22
+ end
23
+ def create(
24
+ # The billing provider set for this configuration.
25
+ billing_provider:,
26
+ # Account-level configuration for the billing provider. The structure of this
27
+ # object is specific to the billing provider and delivery provider combination.
28
+ # See examples below.
29
+ configuration:,
30
+ # The method to use for delivering invoices for this configuration.
31
+ delivery_method:,
32
+ request_options: {}
33
+ )
34
+ end
35
+
36
+ # Lists all configured billing providers and their delivery method configurations
37
+ # for your account. Returns provider details, delivery method IDs, and
38
+ # configuration settings needed for mapping individual customer contracts to
39
+ # billing integrations.
40
+ sig do
41
+ params(
42
+ next_page: T.nilable(String),
43
+ request_options: MetronomeSDK::RequestOptions::OrHash
44
+ ).returns(
45
+ MetronomeSDK::Models::V1::Settings::BillingProviderListResponse
46
+ )
47
+ end
48
+ def list(
49
+ # The cursor to the next page of results
50
+ next_page: nil,
51
+ request_options: {}
52
+ )
53
+ end
54
+
55
+ # @api private
56
+ sig { params(client: MetronomeSDK::Client).returns(T.attached_class) }
57
+ def self.new(client:)
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,47 @@
1
+ # typed: strong
2
+
3
+ module MetronomeSDK
4
+ module Resources
5
+ class V1
6
+ class Settings
7
+ sig { returns(MetronomeSDK::Resources::V1::Settings::BillingProviders) }
8
+ attr_reader :billing_providers
9
+
10
+ # Set the Avalara credentials for some specified `delivery_method_ids`, which can
11
+ # be found in the `/listConfiguredBillingProviders` response. This maps the
12
+ # Avalara credentials to the appropriate billing entity. These credentials are
13
+ # only used for PLG Invoicing today.
14
+ sig do
15
+ params(
16
+ avalara_environment:
17
+ MetronomeSDK::V1::SettingUpsertAvalaraCredentialsParams::AvalaraEnvironment::OrSymbol,
18
+ avalara_password: String,
19
+ avalara_username: String,
20
+ delivery_method_ids: T::Array[String],
21
+ request_options: MetronomeSDK::RequestOptions::OrHash
22
+ ).returns(
23
+ MetronomeSDK::Models::V1::SettingUpsertAvalaraCredentialsResponse
24
+ )
25
+ end
26
+ def upsert_avalara_credentials(
27
+ # The Avalara environment to use (SANDBOX or PRODUCTION).
28
+ avalara_environment:,
29
+ # The password for the Avalara account.
30
+ avalara_password:,
31
+ # The username for the Avalara account.
32
+ avalara_username:,
33
+ # The delivery method IDs of the billing provider configurations to update, can be
34
+ # found in the response of the `/listConfiguredBillingProviders` endpoint.
35
+ delivery_method_ids:,
36
+ request_options: {}
37
+ )
38
+ end
39
+
40
+ # @api private
41
+ sig { params(client: MetronomeSDK::Client).returns(T.attached_class) }
42
+ def self.new(client:)
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -45,6 +45,9 @@ module MetronomeSDK
45
45
  sig { returns(MetronomeSDK::Resources::V1::Payments) }
46
46
  attr_reader :payments
47
47
 
48
+ sig { returns(MetronomeSDK::Resources::V1::Settings) }
49
+ attr_reader :settings
50
+
48
51
  # @api private
49
52
  sig { params(client: MetronomeSDK::Client).returns(T.attached_class) }
50
53
  def self.new(client:)
@@ -353,6 +353,7 @@ module MetronomeSDK
353
353
  | :quickbooks_online
354
354
  | :workday
355
355
  | :gcp_marketplace
356
+ | :metronome
356
357
 
357
358
  module BillingProvider
358
359
  extend MetronomeSDK::Internal::Type::Enum
@@ -365,6 +366,7 @@ module MetronomeSDK
365
366
  QUICKBOOKS_ONLINE: :quickbooks_online
366
367
  WORKDAY: :workday
367
368
  GCP_MARKETPLACE: :gcp_marketplace
369
+ METRONOME: :metronome
368
370
 
369
371
  def self?.values: -> ::Array[MetronomeSDK::Models::Contract::CustomerBillingProviderConfiguration::billing_provider]
370
372
  end
@@ -2176,6 +2176,7 @@ module MetronomeSDK
2176
2176
  | :quickbooks_online
2177
2177
  | :workday
2178
2178
  | :gcp_marketplace
2179
+ | :metronome
2179
2180
 
2180
2181
  module BillingProvider
2181
2182
  extend MetronomeSDK::Internal::Type::Enum
@@ -2188,6 +2189,7 @@ module MetronomeSDK
2188
2189
  QUICKBOOKS_ONLINE: :quickbooks_online
2189
2190
  WORKDAY: :workday
2190
2191
  GCP_MARKETPLACE: :gcp_marketplace
2192
+ METRONOME: :metronome
2191
2193
 
2192
2194
  def self?.values: -> ::Array[MetronomeSDK::Models::ContractV2::CustomerBillingProviderConfiguration::billing_provider]
2193
2195
  end
@@ -7,6 +7,7 @@ module MetronomeSDK
7
7
  id: String,
8
8
  covering_date: Time,
9
9
  effective_before: Time,
10
+ exclude_zero_balances: bool,
10
11
  include_archived: bool,
11
12
  include_balance: bool,
12
13
  include_contract_balances: bool,
@@ -35,6 +36,10 @@ module MetronomeSDK
35
36
 
36
37
  def effective_before=: (Time) -> Time
37
38
 
39
+ attr_reader exclude_zero_balances: bool?
40
+
41
+ def exclude_zero_balances=: (bool) -> bool
42
+
38
43
  attr_reader include_archived: bool?
39
44
 
40
45
  def include_archived=: (bool) -> bool
@@ -68,6 +73,7 @@ module MetronomeSDK
68
73
  ?id: String,
69
74
  ?covering_date: Time,
70
75
  ?effective_before: Time,
76
+ ?exclude_zero_balances: bool,
71
77
  ?include_archived: bool,
72
78
  ?include_balance: bool,
73
79
  ?include_contract_balances: bool,
@@ -83,6 +89,7 @@ module MetronomeSDK
83
89
  id: String,
84
90
  covering_date: Time,
85
91
  effective_before: Time,
92
+ exclude_zero_balances: bool,
86
93
  include_archived: bool,
87
94
  include_balance: bool,
88
95
  include_contract_balances: bool,
@@ -124,6 +124,7 @@ module MetronomeSDK
124
124
  | :quickbooks_online
125
125
  | :workday
126
126
  | :gcp_marketplace
127
+ | :metronome
127
128
 
128
129
  module BillingProviderType
129
130
  extend MetronomeSDK::Internal::Type::Enum
@@ -136,6 +137,7 @@ module MetronomeSDK
136
137
  QUICKBOOKS_ONLINE: :quickbooks_online
137
138
  WORKDAY: :workday
138
139
  GCP_MARKETPLACE: :gcp_marketplace
140
+ METRONOME: :metronome
139
141
 
140
142
  def self?.values: -> ::Array[MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig::billing_provider_type]
141
143
  end
@@ -77,6 +77,7 @@ module MetronomeSDK
77
77
  | :quickbooks_online
78
78
  | :workday
79
79
  | :gcp_marketplace
80
+ | :metronome
80
81
 
81
82
  module BillingProvider
82
83
  extend MetronomeSDK::Internal::Type::Enum
@@ -89,6 +90,7 @@ module MetronomeSDK
89
90
  QUICKBOOKS_ONLINE: :quickbooks_online
90
91
  WORKDAY: :workday
91
92
  GCP_MARKETPLACE: :gcp_marketplace
93
+ METRONOME: :metronome
92
94
 
93
95
  def self?.values: -> ::Array[MetronomeSDK::Models::V1::CustomerRetrieveBillingConfigurationsResponse::Data::billing_provider]
94
96
  end
@@ -85,6 +85,7 @@ module MetronomeSDK
85
85
  | :quickbooks_online
86
86
  | :workday
87
87
  | :gcp_marketplace
88
+ | :metronome
88
89
 
89
90
  module BillingProvider
90
91
  extend MetronomeSDK::Internal::Type::Enum
@@ -97,6 +98,7 @@ module MetronomeSDK
97
98
  QUICKBOOKS_ONLINE: :quickbooks_online
98
99
  WORKDAY: :workday
99
100
  GCP_MARKETPLACE: :gcp_marketplace
101
+ METRONOME: :metronome
100
102
 
101
103
  def self?.values: -> ::Array[MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsParams::Data::billing_provider]
102
104
  end
@@ -68,6 +68,7 @@ module MetronomeSDK
68
68
  | :quickbooks_online
69
69
  | :workday
70
70
  | :gcp_marketplace
71
+ | :metronome
71
72
 
72
73
  module BillingProviderType
73
74
  extend MetronomeSDK::Internal::Type::Enum
@@ -80,6 +81,7 @@ module MetronomeSDK
80
81
  QUICKBOOKS_ONLINE: :quickbooks_online
81
82
  WORKDAY: :workday
82
83
  GCP_MARKETPLACE: :gcp_marketplace
84
+ METRONOME: :metronome
83
85
 
84
86
  def self?.values: -> ::Array[MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::billing_provider_type]
85
87
  end
@@ -38,6 +38,7 @@ module MetronomeSDK
38
38
  | :quickbooks_online
39
39
  | :workday
40
40
  | :gcp_marketplace
41
+ | :metronome
41
42
 
42
43
  module BillingProviderType
43
44
  extend MetronomeSDK::Internal::Type::Enum
@@ -50,6 +51,7 @@ module MetronomeSDK
50
51
  QUICKBOOKS_ONLINE: :quickbooks_online
51
52
  WORKDAY: :workday
52
53
  GCP_MARKETPLACE: :gcp_marketplace
54
+ METRONOME: :metronome
53
55
 
54
56
  def self?.values: -> ::Array[MetronomeSDK::Models::V1::Customers::BillingConfigDeleteParams::billing_provider_type]
55
57
  end
@@ -38,6 +38,7 @@ module MetronomeSDK
38
38
  | :quickbooks_online
39
39
  | :workday
40
40
  | :gcp_marketplace
41
+ | :metronome
41
42
 
42
43
  module BillingProviderType
43
44
  extend MetronomeSDK::Internal::Type::Enum
@@ -50,6 +51,7 @@ module MetronomeSDK
50
51
  QUICKBOOKS_ONLINE: :quickbooks_online
51
52
  WORKDAY: :workday
52
53
  GCP_MARKETPLACE: :gcp_marketplace
54
+ METRONOME: :metronome
53
55
 
54
56
  def self?.values: -> ::Array[MetronomeSDK::Models::V1::Customers::BillingConfigRetrieveParams::billing_provider_type]
55
57
  end
@@ -150,6 +150,7 @@ module MetronomeSDK
150
150
  | :low_remaining_contract_credit_balance_reached
151
151
  | :low_remaining_contract_credit_percentage_reached
152
152
  | :low_remaining_contract_credit_and_commit_balance_reached
153
+ | :low_remaining_seat_balance_reached
153
154
  | :invoice_total_reached
154
155
 
155
156
  module Type
@@ -168,6 +169,7 @@ module MetronomeSDK
168
169
  LOW_REMAINING_CONTRACT_CREDIT_BALANCE_REACHED: :low_remaining_contract_credit_balance_reached
169
170
  LOW_REMAINING_CONTRACT_CREDIT_PERCENTAGE_REACHED: :low_remaining_contract_credit_percentage_reached
170
171
  LOW_REMAINING_CONTRACT_CREDIT_AND_COMMIT_BALANCE_REACHED: :low_remaining_contract_credit_and_commit_balance_reached
172
+ LOW_REMAINING_SEAT_BALANCE_REACHED: :low_remaining_seat_balance_reached
171
173
  INVOICE_TOTAL_REACHED: :invoice_total_reached
172
174
 
173
175
  def self?.values: -> ::Array[MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::type_]