metronome-sdk 1.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +91 -0
  3. data/README.md +1 -1
  4. data/lib/metronome_sdk/errors.rb +25 -11
  5. data/lib/metronome_sdk/file_part.rb +10 -7
  6. data/lib/metronome_sdk/internal/body_cursor_page.rb +1 -1
  7. data/lib/metronome_sdk/internal/cursor_page.rb +1 -1
  8. data/lib/metronome_sdk/internal/cursor_page_without_limit.rb +1 -1
  9. data/lib/metronome_sdk/internal/transport/base_client.rb +11 -7
  10. data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +34 -31
  11. data/lib/metronome_sdk/internal/type/base_page.rb +1 -1
  12. data/lib/metronome_sdk/internal/type/enum.rb +25 -0
  13. data/lib/metronome_sdk/internal/type/file_input.rb +7 -4
  14. data/lib/metronome_sdk/internal/util.rb +8 -7
  15. data/lib/metronome_sdk/models/contract.rb +1 -0
  16. data/lib/metronome_sdk/models/contract_v2.rb +275 -6
  17. data/lib/metronome_sdk/models/contract_without_amendments.rb +2 -2
  18. data/lib/metronome_sdk/models/hierarchy_configuration.rb +123 -2
  19. data/lib/metronome_sdk/models/payment_gate_config.rb +1 -0
  20. data/lib/metronome_sdk/models/payment_gate_config_v2.rb +1 -0
  21. data/lib/metronome_sdk/models/subscription.rb +95 -1
  22. data/lib/metronome_sdk/models/v1/alert_archive_params.rb +8 -4
  23. data/lib/metronome_sdk/models/v1/alert_create_params.rb +38 -36
  24. data/lib/metronome_sdk/models/v1/contract_amend_params.rb +1 -0
  25. data/lib/metronome_sdk/models/v1/contract_create_params.rb +157 -9
  26. data/lib/metronome_sdk/models/v1/contract_list_balances_params.rb +9 -1
  27. data/lib/metronome_sdk/models/v1/customer_create_params.rb +11 -1
  28. data/lib/metronome_sdk/models/v1/customer_detail.rb +9 -1
  29. data/lib/metronome_sdk/models/v1/customer_preview_events_params.rb +19 -25
  30. data/lib/metronome_sdk/models/v1/customer_preview_events_response.rb +3 -3
  31. data/lib/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rb +1 -0
  32. data/lib/metronome_sdk/models/v1/customer_set_billing_configurations_params.rb +1 -0
  33. data/lib/metronome_sdk/models/v1/customers/alert_list_params.rb +3 -3
  34. data/lib/metronome_sdk/models/v1/customers/alert_reset_params.rb +2 -2
  35. data/lib/metronome_sdk/models/v1/customers/alert_retrieve_params.rb +12 -12
  36. data/lib/metronome_sdk/models/v1/customers/billing_config_create_params.rb +6 -1
  37. data/lib/metronome_sdk/models/v1/customers/billing_config_delete_params.rb +1 -0
  38. data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rb +1 -0
  39. data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rb +6 -1
  40. data/lib/metronome_sdk/models/v1/customers/commit_create_params.rb +1 -1
  41. data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +41 -38
  42. data/lib/metronome_sdk/models/v1/customers/invoice.rb +256 -16
  43. data/lib/metronome_sdk/models/v1/customers/invoice_retrieve_pdf_params.rb +30 -0
  44. data/lib/metronome_sdk/models/v1/payment.rb +157 -0
  45. data/lib/metronome_sdk/models/v1/payment_attempt_params.rb +28 -0
  46. data/lib/metronome_sdk/models/v1/payment_attempt_response.rb +18 -0
  47. data/lib/metronome_sdk/models/v1/payment_cancel_params.rb +28 -0
  48. data/lib/metronome_sdk/models/v1/payment_cancel_response.rb +18 -0
  49. data/lib/metronome_sdk/models/v1/payment_list_params.rb +53 -0
  50. data/lib/metronome_sdk/models/v1/payment_status.rb +19 -0
  51. data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rb +65 -0
  52. data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rb +12 -0
  53. data/lib/metronome_sdk/models/v1/settings/billing_provider_create_params.rb +73 -0
  54. data/lib/metronome_sdk/models/v1/settings/billing_provider_create_response.rb +31 -0
  55. data/lib/metronome_sdk/models/v1/settings/billing_provider_list_params.rb +26 -0
  56. data/lib/metronome_sdk/models/v1/settings/billing_provider_list_response.rb +105 -0
  57. data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +9 -1
  58. data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +9 -1
  59. data/lib/metronome_sdk/models/v2/contract_edit_params.rb +219 -9
  60. data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +195 -8
  61. data/lib/metronome_sdk/resources/v1/alerts.rb +57 -53
  62. data/lib/metronome_sdk/resources/v1/contracts.rb +8 -5
  63. data/lib/metronome_sdk/resources/v1/credit_grants.rb +10 -5
  64. data/lib/metronome_sdk/resources/v1/customers/alerts.rb +70 -51
  65. data/lib/metronome_sdk/resources/v1/customers/billing_config.rb +7 -4
  66. data/lib/metronome_sdk/resources/v1/customers/commits.rb +2 -1
  67. data/lib/metronome_sdk/resources/v1/customers/invoices.rb +57 -1
  68. data/lib/metronome_sdk/resources/v1/customers/plans.rb +8 -4
  69. data/lib/metronome_sdk/resources/v1/customers.rb +13 -8
  70. data/lib/metronome_sdk/resources/v1/payments.rb +102 -0
  71. data/lib/metronome_sdk/resources/v1/plans.rb +8 -4
  72. data/lib/metronome_sdk/resources/v1/settings/billing_providers.rb +75 -0
  73. data/lib/metronome_sdk/resources/v1/settings.rb +55 -0
  74. data/lib/metronome_sdk/resources/v1/usage.rb +4 -2
  75. data/lib/metronome_sdk/resources/v1.rb +8 -0
  76. data/lib/metronome_sdk/resources/v2/contracts.rb +9 -3
  77. data/lib/metronome_sdk/version.rb +1 -1
  78. data/lib/metronome_sdk.rb +17 -0
  79. data/rbi/metronome_sdk/errors.rbi +29 -2
  80. data/rbi/metronome_sdk/file_part.rbi +1 -1
  81. data/rbi/metronome_sdk/internal/transport/base_client.rbi +4 -5
  82. data/rbi/metronome_sdk/internal/type/base_page.rbi +1 -1
  83. data/rbi/metronome_sdk/internal/util.rbi +1 -1
  84. data/rbi/metronome_sdk/models/contract.rbi +5 -0
  85. data/rbi/metronome_sdk/models/contract_v2.rbi +635 -10
  86. data/rbi/metronome_sdk/models/contract_without_amendments.rbi +2 -2
  87. data/rbi/metronome_sdk/models/hierarchy_configuration.rbi +286 -6
  88. data/rbi/metronome_sdk/models/payment_gate_config.rbi +5 -0
  89. data/rbi/metronome_sdk/models/payment_gate_config_v2.rbi +5 -0
  90. data/rbi/metronome_sdk/models/subscription.rbi +190 -0
  91. data/rbi/metronome_sdk/models/v1/alert_archive_params.rbi +6 -4
  92. data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +51 -47
  93. data/rbi/metronome_sdk/models/v1/contract_amend_params.rbi +5 -0
  94. data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +326 -10
  95. data/rbi/metronome_sdk/models/v1/contract_list_balances_params.rbi +11 -0
  96. data/rbi/metronome_sdk/models/v1/customer_create_params.rbi +11 -0
  97. data/rbi/metronome_sdk/models/v1/customer_detail.rbi +8 -0
  98. data/rbi/metronome_sdk/models/v1/customer_preview_events_params.rbi +24 -32
  99. data/rbi/metronome_sdk/models/v1/customer_preview_events_response.rbi +10 -9
  100. data/rbi/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbi +5 -0
  101. data/rbi/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbi +5 -0
  102. data/rbi/metronome_sdk/models/v1/customers/alert_list_params.rbi +4 -4
  103. data/rbi/metronome_sdk/models/v1/customers/alert_reset_params.rbi +2 -2
  104. data/rbi/metronome_sdk/models/v1/customers/alert_retrieve_params.rbi +14 -14
  105. data/rbi/metronome_sdk/models/v1/customers/billing_config_create_params.rbi +11 -0
  106. data/rbi/metronome_sdk/models/v1/customers/billing_config_delete_params.rbi +5 -0
  107. data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rbi +5 -0
  108. data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbi +6 -0
  109. data/rbi/metronome_sdk/models/v1/customers/commit_create_params.rbi +2 -2
  110. data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +53 -44
  111. data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +462 -38
  112. data/rbi/metronome_sdk/models/v1/customers/invoice_retrieve_pdf_params.rbi +50 -0
  113. data/rbi/metronome_sdk/models/v1/payment.rbi +324 -0
  114. data/rbi/metronome_sdk/models/v1/payment_attempt_params.rbi +48 -0
  115. data/rbi/metronome_sdk/models/v1/payment_attempt_response.rbi +35 -0
  116. data/rbi/metronome_sdk/models/v1/payment_cancel_params.rbi +48 -0
  117. data/rbi/metronome_sdk/models/v1/payment_cancel_response.rbi +35 -0
  118. data/rbi/metronome_sdk/models/v1/payment_list_params.rbi +91 -0
  119. data/rbi/metronome_sdk/models/v1/payment_status.rbi +33 -0
  120. data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbi +115 -0
  121. data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rbi +25 -0
  122. data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_params.rbi +157 -0
  123. data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_response.rbi +75 -0
  124. data/rbi/metronome_sdk/models/v1/settings/billing_provider_list_params.rbi +50 -0
  125. data/rbi/metronome_sdk/models/v1/settings/billing_provider_list_response.rbi +245 -0
  126. data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +18 -0
  127. data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +18 -0
  128. data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +536 -12
  129. data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +462 -14
  130. data/rbi/metronome_sdk/resources/v1/alerts.rbi +68 -64
  131. data/rbi/metronome_sdk/resources/v1/contracts.rbi +8 -4
  132. data/rbi/metronome_sdk/resources/v1/credit_grants.rbi +10 -5
  133. data/rbi/metronome_sdk/resources/v1/customers/alerts.rbi +73 -54
  134. data/rbi/metronome_sdk/resources/v1/customers/billing_config.rbi +8 -4
  135. data/rbi/metronome_sdk/resources/v1/customers/commits.rbi +3 -2
  136. data/rbi/metronome_sdk/resources/v1/customers/invoices.rbi +38 -1
  137. data/rbi/metronome_sdk/resources/v1/customers/plans.rbi +8 -4
  138. data/rbi/metronome_sdk/resources/v1/customers.rbi +17 -11
  139. data/rbi/metronome_sdk/resources/v1/payments.rbi +72 -0
  140. data/rbi/metronome_sdk/resources/v1/plans.rbi +8 -4
  141. data/rbi/metronome_sdk/resources/v1/settings/billing_providers.rbi +63 -0
  142. data/rbi/metronome_sdk/resources/v1/settings.rbi +47 -0
  143. data/rbi/metronome_sdk/resources/v1/usage.rbi +4 -2
  144. data/rbi/metronome_sdk/resources/v1.rbi +6 -0
  145. data/rbi/metronome_sdk/resources/v2/contracts.rbi +14 -0
  146. data/sig/metronome_sdk/errors.rbs +7 -0
  147. data/sig/metronome_sdk/file_part.rbs +1 -1
  148. data/sig/metronome_sdk/models/contract.rbs +2 -0
  149. data/sig/metronome_sdk/models/contract_v2.rbs +241 -12
  150. data/sig/metronome_sdk/models/hierarchy_configuration.rbs +87 -6
  151. data/sig/metronome_sdk/models/payment_gate_config.rbs +2 -1
  152. data/sig/metronome_sdk/models/payment_gate_config_v2.rbs +2 -1
  153. data/sig/metronome_sdk/models/subscription.rbs +80 -0
  154. data/sig/metronome_sdk/models/v1/contract_amend_params.rbs +2 -1
  155. data/sig/metronome_sdk/models/v1/contract_create_params.rbs +91 -5
  156. data/sig/metronome_sdk/models/v1/contract_list_balances_params.rbs +7 -0
  157. data/sig/metronome_sdk/models/v1/customer_create_params.rbs +2 -0
  158. data/sig/metronome_sdk/models/v1/customer_detail.rbs +5 -0
  159. data/sig/metronome_sdk/models/v1/customer_preview_events_params.rbs +0 -7
  160. data/sig/metronome_sdk/models/v1/customer_preview_events_response.rbs +6 -4
  161. data/sig/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbs +2 -0
  162. data/sig/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbs +2 -0
  163. data/sig/metronome_sdk/models/v1/customers/billing_config_create_params.rbs +2 -0
  164. data/sig/metronome_sdk/models/v1/customers/billing_config_delete_params.rbs +2 -0
  165. data/sig/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rbs +2 -0
  166. data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +2 -0
  167. data/sig/metronome_sdk/models/v1/customers/invoice.rbs +244 -19
  168. data/sig/metronome_sdk/models/v1/customers/invoice_retrieve_pdf_params.rbs +32 -0
  169. data/sig/metronome_sdk/models/v1/payment.rbs +198 -0
  170. data/sig/metronome_sdk/models/v1/payment_attempt_params.rbs +30 -0
  171. data/sig/metronome_sdk/models/v1/payment_attempt_response.rbs +15 -0
  172. data/sig/metronome_sdk/models/v1/payment_cancel_params.rbs +30 -0
  173. data/sig/metronome_sdk/models/v1/payment_cancel_response.rbs +15 -0
  174. data/sig/metronome_sdk/models/v1/payment_list_params.rbs +56 -0
  175. data/sig/metronome_sdk/models/v1/payment_status.rbs +19 -0
  176. data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbs +54 -0
  177. data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rbs +13 -0
  178. data/sig/metronome_sdk/models/v1/settings/billing_provider_create_params.rbs +64 -0
  179. data/sig/metronome_sdk/models/v1/settings/billing_provider_create_response.rbs +34 -0
  180. data/sig/metronome_sdk/models/v1/settings/billing_provider_list_params.rbs +28 -0
  181. data/sig/metronome_sdk/models/v1/settings/billing_provider_list_response.rbs +102 -0
  182. data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +9 -0
  183. data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +9 -0
  184. data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +184 -7
  185. data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +221 -18
  186. data/sig/metronome_sdk/resources/v1/contracts.rbs +1 -0
  187. data/sig/metronome_sdk/resources/v1/customers/invoices.rbs +6 -0
  188. data/sig/metronome_sdk/resources/v1/payments.rbs +30 -0
  189. data/sig/metronome_sdk/resources/v1/settings/billing_providers.rbs +23 -0
  190. data/sig/metronome_sdk/resources/v1/settings.rbs +19 -0
  191. data/sig/metronome_sdk/resources/v1.rbs +4 -0
  192. data/sig/metronome_sdk/resources/v2/contracts.rbs +3 -0
  193. metadata +53 -2
@@ -9,21 +9,25 @@ module MetronomeSDK
9
9
  include MetronomeSDK::Internal::Type::RequestParameters
10
10
 
11
11
  # @!attribute id
12
- # The Metronome ID of the alert
12
+ # The Metronome ID of the threshold notification
13
13
  #
14
14
  # @return [String]
15
15
  required :id, String
16
16
 
17
17
  # @!attribute release_uniqueness_key
18
- # If true, resets the uniqueness key on this alert so it can be re-used
18
+ # If true, resets the uniqueness key on this threshold notification so it can be
19
+ # re-used
19
20
  #
20
21
  # @return [Boolean, nil]
21
22
  optional :release_uniqueness_key, MetronomeSDK::Internal::Type::Boolean
22
23
 
23
24
  # @!method initialize(id:, release_uniqueness_key: nil, request_options: {})
24
- # @param id [String] The Metronome ID of the alert
25
+ # Some parameter documentations has been truncated, see
26
+ # {MetronomeSDK::Models::V1::AlertArchiveParams} for more details.
25
27
  #
26
- # @param release_uniqueness_key [Boolean] If true, resets the uniqueness key on this alert so it can be re-used
28
+ # @param id [String] The Metronome ID of the threshold notification
29
+ #
30
+ # @param release_uniqueness_key [Boolean] If true, resets the uniqueness key on this threshold notification so it can be r
27
31
  #
28
32
  # @param request_options [MetronomeSDK::RequestOptions, Hash{Symbol=>Object}]
29
33
  end
@@ -9,41 +9,43 @@ module MetronomeSDK
9
9
  include MetronomeSDK::Internal::Type::RequestParameters
10
10
 
11
11
  # @!attribute alert_type
12
- # Type of the alert
12
+ # Type of the threshold notification
13
13
  #
14
14
  # @return [Symbol, MetronomeSDK::Models::V1::AlertCreateParams::AlertType]
15
15
  required :alert_type, enum: -> { MetronomeSDK::V1::AlertCreateParams::AlertType }
16
16
 
17
17
  # @!attribute name
18
- # Name of the alert
18
+ # Name of the threshold notification
19
19
  #
20
20
  # @return [String]
21
21
  required :name, String
22
22
 
23
23
  # @!attribute threshold
24
- # Threshold value of the alert policy. Depending upon the alert type, this number
25
- # may represent a financial amount, the days remaining, or a percentage reached.
24
+ # Threshold value of the notification policy. Depending upon the notification
25
+ # type, this number may represent a financial amount, the days remaining, or a
26
+ # percentage reached.
26
27
  #
27
28
  # @return [Float]
28
29
  required :threshold, Float
29
30
 
30
31
  # @!attribute billable_metric_id
31
- # For alerts of type `usage_threshold_reached`, specifies which billable metric to
32
- # track the usage for.
32
+ # For threshold notifications of type `usage_threshold_reached`, specifies which
33
+ # billable metric to track the usage for.
33
34
  #
34
35
  # @return [String, nil]
35
36
  optional :billable_metric_id, String
36
37
 
37
38
  # @!attribute credit_grant_type_filters
38
- # An array of strings, representing a way to filter the credit grant this alert
39
- # applies to, by looking at the credit_grant_type field on the credit grant. This
40
- # field is only defined for CreditPercentage and CreditBalance alerts
39
+ # An array of strings, representing a way to filter the credit grant this
40
+ # threshold notification applies to, by looking at the credit_grant_type field on
41
+ # the credit grant. This field is only defined for CreditPercentage and
42
+ # CreditBalance notifications
41
43
  #
42
44
  # @return [Array<String>, nil]
43
45
  optional :credit_grant_type_filters, MetronomeSDK::Internal::Type::ArrayOf[String]
44
46
 
45
47
  # @!attribute credit_type_id
46
- # ID of the credit's currency, defaults to USD. If the specific alert type
48
+ # ID of the credit's currency, defaults to USD. If the specific notification type
47
49
  # requires a pricing unit/currency, find the ID in the
48
50
  # [Metronome app](https://app.metronome.com/offering/pricing-units).
49
51
  #
@@ -51,46 +53,46 @@ module MetronomeSDK
51
53
  optional :credit_type_id, String
52
54
 
53
55
  # @!attribute custom_field_filters
54
- # A list of custom field filters for alert types that support advanced filtering.
55
- # Only present for contract invoices.
56
+ # A list of custom field filters for threshold notification types that support
57
+ # advanced filtering. Only present for contract invoices.
56
58
  #
57
59
  # @return [Array<MetronomeSDK::Models::V1::AlertCreateParams::CustomFieldFilter>, nil]
58
60
  optional :custom_field_filters,
59
61
  -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::AlertCreateParams::CustomFieldFilter] }
60
62
 
61
63
  # @!attribute customer_id
62
- # If provided, will create this alert for this specific customer. To create an
63
- # alert for all customers, do not specify a `customer_id`.
64
+ # If provided, will create this threshold notification for this specific customer.
65
+ # To create a notification for all customers, do not specify a `customer_id`.
64
66
  #
65
67
  # @return [String, nil]
66
68
  optional :customer_id, String
67
69
 
68
70
  # @!attribute evaluate_on_create
69
- # If true, the alert will evaluate immediately on customers that already meet the
70
- # alert threshold. If false, it will only evaluate on future customers that
71
- # trigger the alert threshold. Defaults to true.
71
+ # If true, the threshold notification will evaluate immediately on customers that
72
+ # already meet the notification threshold. If false, it will only evaluate on
73
+ # future customers that trigger the threshold. Defaults to true.
72
74
  #
73
75
  # @return [Boolean, nil]
74
76
  optional :evaluate_on_create, MetronomeSDK::Internal::Type::Boolean
75
77
 
76
78
  # @!attribute group_values
77
- # Only present for `spend_threshold_reached` alerts. Scope alert to a specific
78
- # group key on individual line items.
79
+ # Only present for `spend_threshold_reached` notifications. Scope notification to
80
+ # a specific group key on individual line items.
79
81
  #
80
82
  # @return [Array<MetronomeSDK::Models::V1::AlertCreateParams::GroupValue>, nil]
81
83
  optional :group_values,
82
84
  -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::AlertCreateParams::GroupValue] }
83
85
 
84
86
  # @!attribute invoice_types_filter
85
- # Only supported for invoice_total_reached alerts. A list of invoice types to
86
- # evaluate.
87
+ # Only supported for invoice_total_reached threshold notifications. A list of
88
+ # invoice types to evaluate.
87
89
  #
88
90
  # @return [Array<String>, nil]
89
91
  optional :invoice_types_filter, MetronomeSDK::Internal::Type::ArrayOf[String]
90
92
 
91
93
  # @!attribute plan_id
92
- # If provided, will create this alert for this specific plan. To create an alert
93
- # for all customers, do not specify a `plan_id`.
94
+ # If provided, will create this threshold notification for this specific plan. To
95
+ # create a notification for all customers, do not specify a `plan_id`.
94
96
  #
95
97
  # @return [String, nil]
96
98
  optional :plan_id, String
@@ -107,35 +109,35 @@ module MetronomeSDK
107
109
  # Some parameter documentations has been truncated, see
108
110
  # {MetronomeSDK::Models::V1::AlertCreateParams} for more details.
109
111
  #
110
- # @param alert_type [Symbol, MetronomeSDK::Models::V1::AlertCreateParams::AlertType] Type of the alert
112
+ # @param alert_type [Symbol, MetronomeSDK::Models::V1::AlertCreateParams::AlertType] Type of the threshold notification
111
113
  #
112
- # @param name [String] Name of the alert
114
+ # @param name [String] Name of the threshold notification
113
115
  #
114
- # @param threshold [Float] Threshold value of the alert policy. Depending upon the alert type, this number
116
+ # @param threshold [Float] Threshold value of the notification policy. Depending upon the notification typ
115
117
  #
116
- # @param billable_metric_id [String] For alerts of type `usage_threshold_reached`, specifies which billable metric to
118
+ # @param billable_metric_id [String] For threshold notifications of type `usage_threshold_reached`, specifies which b
117
119
  #
118
- # @param credit_grant_type_filters [Array<String>] An array of strings, representing a way to filter the credit grant this alert ap
120
+ # @param credit_grant_type_filters [Array<String>] An array of strings, representing a way to filter the credit grant this threshol
119
121
  #
120
- # @param credit_type_id [String] ID of the credit's currency, defaults to USD. If the specific alert type require
122
+ # @param credit_type_id [String] ID of the credit's currency, defaults to USD. If the specific notification type
121
123
  #
122
- # @param custom_field_filters [Array<MetronomeSDK::Models::V1::AlertCreateParams::CustomFieldFilter>] A list of custom field filters for alert types that support advanced filtering.
124
+ # @param custom_field_filters [Array<MetronomeSDK::Models::V1::AlertCreateParams::CustomFieldFilter>] A list of custom field filters for threshold notification types that support adv
123
125
  #
124
- # @param customer_id [String] If provided, will create this alert for this specific customer. To create an ale
126
+ # @param customer_id [String] If provided, will create this threshold notification for this specific customer.
125
127
  #
126
- # @param evaluate_on_create [Boolean] If true, the alert will evaluate immediately on customers that already meet the
128
+ # @param evaluate_on_create [Boolean] If true, the threshold notification will evaluate immediately on customers that
127
129
  #
128
- # @param group_values [Array<MetronomeSDK::Models::V1::AlertCreateParams::GroupValue>] Only present for `spend_threshold_reached` alerts. Scope alert to a specific gro
130
+ # @param group_values [Array<MetronomeSDK::Models::V1::AlertCreateParams::GroupValue>] Only present for `spend_threshold_reached` notifications. Scope notification to
129
131
  #
130
- # @param invoice_types_filter [Array<String>] Only supported for invoice_total_reached alerts. A list of invoice types to eval
132
+ # @param invoice_types_filter [Array<String>] Only supported for invoice_total_reached threshold notifications. A list of invo
131
133
  #
132
- # @param plan_id [String] If provided, will create this alert for this specific plan. To create an alert f
134
+ # @param plan_id [String] If provided, will create this threshold notification for this specific plan. To
133
135
  #
134
136
  # @param uniqueness_key [String] Prevents the creation of duplicates. If a request to create a record is made wit
135
137
  #
136
138
  # @param request_options [MetronomeSDK::RequestOptions, Hash{Symbol=>Object}]
137
139
 
138
- # Type of the alert
140
+ # Type of the threshold notification
139
141
  module AlertType
140
142
  extend MetronomeSDK::Internal::Type::Enum
141
143
 
@@ -702,6 +702,7 @@ module MetronomeSDK
702
702
  NONE = :NONE
703
703
  STRIPE = :STRIPE
704
704
  ANROK = :ANROK
705
+ AVALARA = :AVALARA
705
706
  PRECALCULATED = :PRECALCULATED
706
707
 
707
708
  # @!method self.values
@@ -927,6 +927,7 @@ module MetronomeSDK
927
927
  NONE = :NONE
928
928
  STRIPE = :STRIPE
929
929
  ANROK = :ANROK
930
+ AVALARA = :AVALARA
930
931
  PRECALCULATED = :PRECALCULATED
931
932
 
932
933
  # @!method self.values
@@ -1347,11 +1348,52 @@ module MetronomeSDK
1347
1348
  class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
1348
1349
  # @!attribute parent
1349
1350
  #
1350
- # @return [MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::Parent]
1351
- required :parent, -> { MetronomeSDK::V1::ContractCreateParams::HierarchyConfiguration::Parent }
1351
+ # @return [MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::Parent, nil]
1352
+ optional :parent, -> { MetronomeSDK::V1::ContractCreateParams::HierarchyConfiguration::Parent }
1352
1353
 
1353
- # @!method initialize(parent:)
1354
+ # @!attribute parent_behavior
1355
+ #
1356
+ # @return [MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior, nil]
1357
+ optional :parent_behavior,
1358
+ -> { MetronomeSDK::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior }
1359
+
1360
+ # @!attribute payer
1361
+ # Account hierarchy M3 - Indicates which customer should pay for the child's
1362
+ # invoice charges
1363
+ #
1364
+ # **SELF**: The child pays for its own invoice charges
1365
+ #
1366
+ # **PARENT**: The parent pays for the child's invoice charges
1367
+ #
1368
+ # @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::Payer, nil]
1369
+ optional :payer, enum: -> { MetronomeSDK::V1::ContractCreateParams::HierarchyConfiguration::Payer }
1370
+
1371
+ # @!attribute usage_statement_behavior
1372
+ # Account hierarchy M3 - Indicates the behavior of the child's invoice statements
1373
+ # on the parent's invoices.
1374
+ #
1375
+ # **CONSOLIDATE**: Child's invoice statements will be added to parent's
1376
+ # consolidated invoices
1377
+ #
1378
+ # **SEPARATE**: Child's invoice statements will appear not appear on parent's
1379
+ # consolidated invoices
1380
+ #
1381
+ # @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::UsageStatementBehavior, nil]
1382
+ optional :usage_statement_behavior,
1383
+ enum: -> { MetronomeSDK::V1::ContractCreateParams::HierarchyConfiguration::UsageStatementBehavior }
1384
+
1385
+ # @!method initialize(parent: nil, parent_behavior: nil, payer: nil, usage_statement_behavior: nil)
1386
+ # Some parameter documentations has been truncated, see
1387
+ # {MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration} for
1388
+ # more details.
1389
+ #
1354
1390
  # @param parent [MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::Parent]
1391
+ #
1392
+ # @param parent_behavior [MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior]
1393
+ #
1394
+ # @param payer [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::Payer] Account hierarchy M3 - Indicates which customer should pay for the child's invoi
1395
+ #
1396
+ # @param usage_statement_behavior [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::UsageStatementBehavior] Account hierarchy M3 - Indicates the behavior of the child's invoice statements
1355
1397
 
1356
1398
  # @see MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration#parent
1357
1399
  class Parent < MetronomeSDK::Internal::Type::BaseModel
@@ -1369,6 +1411,86 @@ module MetronomeSDK
1369
1411
  # @param contract_id [String]
1370
1412
  # @param customer_id [String]
1371
1413
  end
1414
+
1415
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration#parent_behavior
1416
+ class ParentBehavior < MetronomeSDK::Internal::Type::BaseModel
1417
+ # @!attribute invoice_consolidation_type
1418
+ # Account hierarchy M3 - Indicates the desired behavior of consolidated invoices
1419
+ # generated by the parent in a customer hierarchy
1420
+ #
1421
+ # **CONCATENATE**: Statements on the invoices of child customers will be appended
1422
+ # to the consolidated invoice
1423
+ #
1424
+ # **NONE**: Do not generate consolidated invoices
1425
+ #
1426
+ # @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior::InvoiceConsolidationType, nil]
1427
+ optional :invoice_consolidation_type,
1428
+ enum: -> { MetronomeSDK::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior::InvoiceConsolidationType }
1429
+
1430
+ # @!method initialize(invoice_consolidation_type: nil)
1431
+ # Some parameter documentations has been truncated, see
1432
+ # {MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior}
1433
+ # for more details.
1434
+ #
1435
+ # @param invoice_consolidation_type [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior::InvoiceConsolidationType] Account hierarchy M3 - Indicates the desired behavior of consolidated invoices g
1436
+
1437
+ # Account hierarchy M3 - Indicates the desired behavior of consolidated invoices
1438
+ # generated by the parent in a customer hierarchy
1439
+ #
1440
+ # **CONCATENATE**: Statements on the invoices of child customers will be appended
1441
+ # to the consolidated invoice
1442
+ #
1443
+ # **NONE**: Do not generate consolidated invoices
1444
+ #
1445
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration::ParentBehavior#invoice_consolidation_type
1446
+ module InvoiceConsolidationType
1447
+ extend MetronomeSDK::Internal::Type::Enum
1448
+
1449
+ CONCATENATE = :CONCATENATE
1450
+ NONE = :NONE
1451
+
1452
+ # @!method self.values
1453
+ # @return [Array<Symbol>]
1454
+ end
1455
+ end
1456
+
1457
+ # Account hierarchy M3 - Indicates which customer should pay for the child's
1458
+ # invoice charges
1459
+ #
1460
+ # **SELF**: The child pays for its own invoice charges
1461
+ #
1462
+ # **PARENT**: The parent pays for the child's invoice charges
1463
+ #
1464
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration#payer
1465
+ module Payer
1466
+ extend MetronomeSDK::Internal::Type::Enum
1467
+
1468
+ SELF = :SELF
1469
+ PARENT = :PARENT
1470
+
1471
+ # @!method self.values
1472
+ # @return [Array<Symbol>]
1473
+ end
1474
+
1475
+ # Account hierarchy M3 - Indicates the behavior of the child's invoice statements
1476
+ # on the parent's invoices.
1477
+ #
1478
+ # **CONSOLIDATE**: Child's invoice statements will be added to parent's
1479
+ # consolidated invoices
1480
+ #
1481
+ # **SEPARATE**: Child's invoice statements will appear not appear on parent's
1482
+ # consolidated invoices
1483
+ #
1484
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::HierarchyConfiguration#usage_statement_behavior
1485
+ module UsageStatementBehavior
1486
+ extend MetronomeSDK::Internal::Type::Enum
1487
+
1488
+ CONSOLIDATE = :CONSOLIDATE
1489
+ SEPARATE = :SEPARATE
1490
+
1491
+ # @!method self.values
1492
+ # @return [Array<Symbol>]
1493
+ end
1372
1494
  end
1373
1495
 
1374
1496
  # Defaults to LOWEST_MULTIPLIER, which applies the greatest discount to list
@@ -2125,20 +2247,26 @@ module MetronomeSDK
2125
2247
  required :subscription_id, String
2126
2248
 
2127
2249
  # @!attribute allocation
2128
- # If set to POOLED, allocation added per seat is pooled across the account.
2250
+ # If set to POOLED, allocation added per seat is pooled across the account. (BETA)
2251
+ # If set to INDIVIDUAL, each seat in the subscription will have its own
2252
+ # allocation.
2129
2253
  #
2130
2254
  # @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation, nil]
2131
2255
  optional :allocation,
2132
2256
  enum: -> { MetronomeSDK::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation }
2133
2257
 
2134
2258
  # @!method initialize(apply_seat_increase_config:, subscription_id:, allocation: nil)
2259
+ # Some parameter documentations has been truncated, see
2260
+ # {MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig}
2261
+ # for more details.
2262
+ #
2135
2263
  # Attach a subscription to the recurring commit/credit.
2136
2264
  #
2137
2265
  # @param apply_seat_increase_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig]
2138
2266
  #
2139
2267
  # @param subscription_id [String] ID of the subscription to configure on the recurring commit/credit.
2140
2268
  #
2141
- # @param allocation [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation] If set to POOLED, allocation added per seat is pooled across the account.
2269
+ # @param allocation [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation] If set to POOLED, allocation added per seat is pooled across the account. (BETA)
2142
2270
 
2143
2271
  # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig#apply_seat_increase_config
2144
2272
  class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
@@ -2152,7 +2280,9 @@ module MetronomeSDK
2152
2280
  # @param is_prorated [Boolean] Indicates whether a mid-period seat increase should be prorated.
2153
2281
  end
2154
2282
 
2155
- # If set to POOLED, allocation added per seat is pooled across the account.
2283
+ # If set to POOLED, allocation added per seat is pooled across the account. (BETA)
2284
+ # If set to INDIVIDUAL, each seat in the subscription will have its own
2285
+ # allocation.
2156
2286
  #
2157
2287
  # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig#allocation
2158
2288
  module Allocation
@@ -2466,20 +2596,26 @@ module MetronomeSDK
2466
2596
  required :subscription_id, String
2467
2597
 
2468
2598
  # @!attribute allocation
2469
- # If set to POOLED, allocation added per seat is pooled across the account.
2599
+ # If set to POOLED, allocation added per seat is pooled across the account. (BETA)
2600
+ # If set to INDIVIDUAL, each seat in the subscription will have its own
2601
+ # allocation.
2470
2602
  #
2471
2603
  # @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation, nil]
2472
2604
  optional :allocation,
2473
2605
  enum: -> { MetronomeSDK::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation }
2474
2606
 
2475
2607
  # @!method initialize(apply_seat_increase_config:, subscription_id:, allocation: nil)
2608
+ # Some parameter documentations has been truncated, see
2609
+ # {MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig}
2610
+ # for more details.
2611
+ #
2476
2612
  # Attach a subscription to the recurring commit/credit.
2477
2613
  #
2478
2614
  # @param apply_seat_increase_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig]
2479
2615
  #
2480
2616
  # @param subscription_id [String] ID of the subscription to configure on the recurring commit/credit.
2481
2617
  #
2482
- # @param allocation [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation] If set to POOLED, allocation added per seat is pooled across the account.
2618
+ # @param allocation [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation] If set to POOLED, allocation added per seat is pooled across the account. (BETA)
2483
2619
 
2484
2620
  # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig#apply_seat_increase_config
2485
2621
  class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
@@ -2493,7 +2629,9 @@ module MetronomeSDK
2493
2629
  # @param is_prorated [Boolean] Indicates whether a mid-period seat increase should be prorated.
2494
2630
  end
2495
2631
 
2496
- # If set to POOLED, allocation added per seat is pooled across the account.
2632
+ # If set to POOLED, allocation added per seat is pooled across the account. (BETA)
2633
+ # If set to INDIVIDUAL, each seat in the subscription will have its own
2634
+ # allocation.
2497
2635
  #
2498
2636
  # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig#allocation
2499
2637
  module Allocation
@@ -2936,6 +3074,11 @@ module MetronomeSDK
2936
3074
  # QUANTITY_ONLY. **QUANTITY_ONLY**: The subscription quantity is specified
2937
3075
  # directly on the subscription. `initial_quantity` must be provided with this
2938
3076
  # option. Compatible with recurring commits/credits that use POOLED allocation.
3077
+ # **SEAT_BASED**: (BETA) Use when you want to pass specific seat identifiers (e.g.
3078
+ # add user_123) to increment and decrement a subscription quantity, rather than
3079
+ # directly providing the quantity. You must use a **SEAT_BASED** subscription to
3080
+ # use a linked recurring credit with an allocation per seat. `seat_config` must be
3081
+ # provided with this option.
2939
3082
  #
2940
3083
  # @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::Subscription::QuantityManagementMode, nil]
2941
3084
  optional :quantity_management_mode,
@@ -3084,6 +3227,11 @@ module MetronomeSDK
3084
3227
  # QUANTITY_ONLY. **QUANTITY_ONLY**: The subscription quantity is specified
3085
3228
  # directly on the subscription. `initial_quantity` must be provided with this
3086
3229
  # option. Compatible with recurring commits/credits that use POOLED allocation.
3230
+ # **SEAT_BASED**: (BETA) Use when you want to pass specific seat identifiers (e.g.
3231
+ # add user_123) to increment and decrement a subscription quantity, rather than
3232
+ # directly providing the quantity. You must use a **SEAT_BASED** subscription to
3233
+ # use a linked recurring credit with an allocation per seat. `seat_config` must be
3234
+ # provided with this option.
3087
3235
  #
3088
3236
  # @see MetronomeSDK::Models::V1::ContractCreateParams::Subscription#quantity_management_mode
3089
3237
  module QuantityManagementMode
@@ -30,6 +30,12 @@ module MetronomeSDK
30
30
  # @return [Time, nil]
31
31
  optional :effective_before, Time
32
32
 
33
+ # @!attribute exclude_zero_balances
34
+ # Exclude balances with zero amounts from the response.
35
+ #
36
+ # @return [Boolean, nil]
37
+ optional :exclude_zero_balances, MetronomeSDK::Internal::Type::Boolean
38
+
33
39
  # @!attribute include_archived
34
40
  # Include archived credits and credits from archived contracts.
35
41
  #
@@ -74,7 +80,7 @@ module MetronomeSDK
74
80
  # @return [Time, nil]
75
81
  optional :starting_at, Time
76
82
 
77
- # @!method initialize(customer_id:, id: nil, covering_date: nil, effective_before: nil, include_archived: nil, include_balance: nil, include_contract_balances: nil, include_ledgers: nil, limit: nil, next_page: nil, starting_at: nil, request_options: {})
83
+ # @!method initialize(customer_id:, id: nil, covering_date: nil, effective_before: nil, exclude_zero_balances: nil, include_archived: nil, include_balance: nil, include_contract_balances: nil, include_ledgers: nil, limit: nil, next_page: nil, starting_at: nil, request_options: {})
78
84
  # Some parameter documentations has been truncated, see
79
85
  # {MetronomeSDK::Models::V1::ContractListBalancesParams} for more details.
80
86
  #
@@ -86,6 +92,8 @@ module MetronomeSDK
86
92
  #
87
93
  # @param effective_before [Time] Include only balances that have any access before the provided date (exclusive)
88
94
  #
95
+ # @param exclude_zero_balances [Boolean] Exclude balances with zero amounts from the response.
96
+ #
89
97
  # @param include_archived [Boolean] Include archived credits and credits from archived contracts.
90
98
  #
91
99
  # @param include_balance [Boolean] Include the balance of credits and commits in the response. Setting this flag ma
@@ -91,12 +91,18 @@ module MetronomeSDK
91
91
  optional :aws_region, enum: -> { MetronomeSDK::V1::CustomerCreateParams::BillingConfig::AwsRegion }
92
92
 
93
93
  # @!attribute stripe_collection_method
94
+ # The collection method for the customer's invoices. NOTE:
95
+ # `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
94
96
  #
95
97
  # @return [Symbol, MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig::StripeCollectionMethod, nil]
96
98
  optional :stripe_collection_method,
97
99
  enum: -> { MetronomeSDK::V1::CustomerCreateParams::BillingConfig::StripeCollectionMethod }
98
100
 
99
101
  # @!method initialize(billing_provider_customer_id:, billing_provider_type:, aws_is_subscription_product: nil, aws_product_code: nil, aws_region: nil, stripe_collection_method: nil)
102
+ # Some parameter documentations has been truncated, see
103
+ # {MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig} for more
104
+ # details.
105
+ #
100
106
  # @param billing_provider_customer_id [String]
101
107
  #
102
108
  # @param billing_provider_type [Symbol, MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig::BillingProviderType]
@@ -107,7 +113,7 @@ module MetronomeSDK
107
113
  #
108
114
  # @param aws_region [Symbol, MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig::AwsRegion]
109
115
  #
110
- # @param stripe_collection_method [Symbol, MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig::StripeCollectionMethod]
116
+ # @param stripe_collection_method [Symbol, MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig::StripeCollectionMethod] The collection method for the customer's invoices.
111
117
 
112
118
  # @see MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig#billing_provider_type
113
119
  module BillingProviderType
@@ -121,6 +127,7 @@ module MetronomeSDK
121
127
  QUICKBOOKS_ONLINE = :quickbooks_online
122
128
  WORKDAY = :workday
123
129
  GCP_MARKETPLACE = :gcp_marketplace
130
+ METRONOME = :metronome
124
131
 
125
132
  # @!method self.values
126
133
  # @return [Array<Symbol>]
@@ -160,6 +167,9 @@ module MetronomeSDK
160
167
  # @return [Array<Symbol>]
161
168
  end
162
169
 
170
+ # The collection method for the customer's invoices. NOTE:
171
+ # `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
172
+ #
163
173
  # @see MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig#stripe_collection_method
164
174
  module StripeCollectionMethod
165
175
  extend MetronomeSDK::Internal::Type::Enum
@@ -47,6 +47,12 @@ module MetronomeSDK
47
47
  # @return [String]
48
48
  required :name, String
49
49
 
50
+ # @!attribute updated_at
51
+ # RFC 3339 timestamp indicating when the customer was last updated.
52
+ #
53
+ # @return [Time]
54
+ required :updated_at, Time
55
+
50
56
  # @!attribute archived_at
51
57
  # RFC 3339 timestamp indicating when the customer was archived. Null if the
52
58
  # customer is active.
@@ -60,7 +66,7 @@ module MetronomeSDK
60
66
  # @return [MetronomeSDK::Models::V1::CustomerDetail::CurrentBillableStatus, nil]
61
67
  optional :current_billable_status, -> { MetronomeSDK::V1::CustomerDetail::CurrentBillableStatus }
62
68
 
63
- # @!method initialize(id:, created_at:, custom_fields:, customer_config:, external_id:, ingest_aliases:, name:, archived_at: nil, current_billable_status: nil)
69
+ # @!method initialize(id:, created_at:, custom_fields:, customer_config:, external_id:, ingest_aliases:, name:, updated_at:, archived_at: nil, current_billable_status: nil)
64
70
  # Some parameter documentations has been truncated, see
65
71
  # {MetronomeSDK::Models::V1::CustomerDetail} for more details.
66
72
  #
@@ -78,6 +84,8 @@ module MetronomeSDK
78
84
  #
79
85
  # @param name [String]
80
86
  #
87
+ # @param updated_at [Time] RFC 3339 timestamp indicating when the customer was last updated.
88
+ #
81
89
  # @param archived_at [Time, nil] RFC 3339 timestamp indicating when the customer was archived. Null if the custom
82
90
  #
83
91
  # @param current_billable_status [MetronomeSDK::Models::V1::CustomerDetail::CurrentBillableStatus] This field's availability is dependent on your client's configuration.