metronome-sdk 2.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +75 -0
- data/README.md +1 -1
- data/lib/metronome_sdk/internal/transport/base_client.rb +7 -1
- data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +38 -26
- data/lib/metronome_sdk/internal/util.rb +7 -2
- data/lib/metronome_sdk/models/contract.rb +1 -0
- data/lib/metronome_sdk/models/contract_v2.rb +69 -23
- data/lib/metronome_sdk/models/hierarchy_configuration.rb +45 -21
- data/lib/metronome_sdk/models/subscription.rb +38 -1
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +33 -1
- data/lib/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rb +10 -1
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +195 -29
- data/lib/metronome_sdk/models/v1/contract_list_balances_params.rb +9 -1
- data/lib/metronome_sdk/models/v1/customer_create_params.rb +105 -3
- data/lib/metronome_sdk/models/v1/customer_preview_events_params.rb +14 -10
- data/lib/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rb +1 -0
- data/lib/metronome_sdk/models/v1/customer_set_billing_configurations_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/customer_set_billing_configurations_response.rb +111 -0
- data/lib/metronome_sdk/models/v1/customers/alert_retrieve_params.rb +32 -1
- data/lib/metronome_sdk/models/v1/customers/billing_config_create_params.rb +21 -2
- data/lib/metronome_sdk/models/v1/customers/billing_config_delete_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rb +21 -2
- data/lib/metronome_sdk/models/v1/customers/commit_create_params.rb +1 -1
- data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +34 -1
- data/lib/metronome_sdk/models/v1/customers/invoice.rb +144 -4
- data/lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb +8 -1
- data/lib/metronome_sdk/models/v1/payment.rb +7 -1
- data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rb +74 -0
- data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rb +12 -0
- data/lib/metronome_sdk/models/v1/settings/billing_provider_create_params.rb +74 -0
- data/lib/metronome_sdk/models/v1/settings/billing_provider_create_response.rb +31 -0
- data/lib/metronome_sdk/models/v1/settings/billing_provider_list_params.rb +26 -0
- data/lib/metronome_sdk/models/v1/settings/billing_provider_list_response.rb +105 -0
- data/lib/metronome_sdk/models/v1/usage_search_response.rb +6 -3
- data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +17 -1
- data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +17 -1
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +300 -10
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +177 -3
- data/lib/metronome_sdk/resources/v1/alerts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/contracts.rb +10 -4
- data/lib/metronome_sdk/resources/v1/credit_grants.rb +10 -5
- data/lib/metronome_sdk/resources/v1/customers/alerts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/customers/billing_config.rb +12 -5
- data/lib/metronome_sdk/resources/v1/customers/commits.rb +2 -1
- data/lib/metronome_sdk/resources/v1/customers/invoices.rb +2 -1
- data/lib/metronome_sdk/resources/v1/customers/plans.rb +8 -4
- data/lib/metronome_sdk/resources/v1/customers.rb +12 -8
- data/lib/metronome_sdk/resources/v1/plans.rb +8 -4
- data/lib/metronome_sdk/resources/v1/settings/billing_providers.rb +75 -0
- data/lib/metronome_sdk/resources/v1/settings.rb +57 -0
- data/lib/metronome_sdk/resources/v1.rb +4 -0
- data/lib/metronome_sdk/resources/v2/contracts.rb +10 -2
- data/lib/metronome_sdk/version.rb +1 -1
- data/lib/metronome_sdk.rb +11 -0
- data/manifest.yaml +2 -0
- data/rbi/metronome_sdk/internal/transport/base_client.rbi +5 -0
- data/rbi/metronome_sdk/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/metronome_sdk/internal/type/base_model.rbi +8 -4
- data/rbi/metronome_sdk/models/contract.rbi +5 -0
- data/rbi/metronome_sdk/models/contract_v2.rbi +122 -33
- data/rbi/metronome_sdk/models/hierarchy_configuration.rbi +63 -27
- data/rbi/metronome_sdk/models/subscription.rbi +64 -3
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +69 -0
- data/rbi/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rbi +13 -0
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +360 -33
- data/rbi/metronome_sdk/models/v1/contract_list_balances_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customer_create_params.rbi +215 -0
- data/rbi/metronome_sdk/models/v1/customer_preview_events_params.rbi +18 -11
- data/rbi/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/customer_set_billing_configurations_response.rbi +281 -0
- data/rbi/metronome_sdk/models/v1/customers/alert_retrieve_params.rbi +67 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_create_params.rbi +29 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_delete_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbi +24 -0
- data/rbi/metronome_sdk/models/v1/customers/commit_create_params.rbi +2 -2
- data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +76 -0
- data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +268 -0
- data/rbi/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbi +9 -0
- data/rbi/metronome_sdk/models/v1/payment.rbi +11 -3
- data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbi +128 -0
- data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rbi +25 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_params.rbi +162 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_response.rbi +75 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_list_params.rbi +50 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_list_response.rbi +245 -0
- data/rbi/metronome_sdk/models/v1/usage_search_response.rbi +11 -3
- data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +22 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +22 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +630 -9
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +367 -3
- data/rbi/metronome_sdk/resources/v1/alerts.rbi +5 -0
- data/rbi/metronome_sdk/resources/v1/contracts.rbi +13 -1
- data/rbi/metronome_sdk/resources/v1/credit_grants.rbi +10 -5
- data/rbi/metronome_sdk/resources/v1/customers/alerts.rbi +5 -0
- data/rbi/metronome_sdk/resources/v1/customers/billing_config.rbi +14 -4
- data/rbi/metronome_sdk/resources/v1/customers/commits.rbi +3 -2
- data/rbi/metronome_sdk/resources/v1/customers/invoices.rbi +2 -1
- data/rbi/metronome_sdk/resources/v1/customers/plans.rbi +8 -4
- data/rbi/metronome_sdk/resources/v1/customers.rbi +19 -9
- data/rbi/metronome_sdk/resources/v1/plans.rbi +8 -4
- data/rbi/metronome_sdk/resources/v1/settings/billing_providers.rbi +63 -0
- data/rbi/metronome_sdk/resources/v1/settings.rbi +51 -0
- data/rbi/metronome_sdk/resources/v1.rbi +3 -0
- data/rbi/metronome_sdk/resources/v2/contracts.rbi +12 -0
- data/sig/metronome_sdk/internal/transport/base_client.rbs +2 -0
- data/sig/metronome_sdk/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/metronome_sdk/models/contract.rbs +2 -0
- data/sig/metronome_sdk/models/contract_v2.rbs +33 -6
- data/sig/metronome_sdk/models/subscription.rbs +22 -3
- data/sig/metronome_sdk/models/v1/alert_create_params.rbs +28 -0
- data/sig/metronome_sdk/models/v1/contract_add_manual_balance_entry_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +104 -0
- data/sig/metronome_sdk/models/v1/contract_list_balances_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/customer_create_params.rbs +85 -0
- data/sig/metronome_sdk/models/v1/customer_retrieve_billing_configurations_response.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customer_set_billing_configurations_params.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customer_set_billing_configurations_response.rbs +119 -0
- data/sig/metronome_sdk/models/v1/customers/alert_retrieve_params.rbs +26 -1
- data/sig/metronome_sdk/models/v1/customers/billing_config_create_params.rbs +16 -0
- data/sig/metronome_sdk/models/v1/customers/billing_config_delete_params.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customers/billing_config_retrieve_params.rbs +2 -0
- data/sig/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbs +14 -0
- data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +32 -0
- data/sig/metronome_sdk/models/v1/customers/invoice.rbs +130 -0
- data/sig/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbs +7 -0
- data/sig/metronome_sdk/models/v1/payment.rbs +10 -3
- data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbs +61 -0
- data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_response.rbs +13 -0
- data/sig/metronome_sdk/models/v1/settings/billing_provider_create_params.rbs +66 -0
- data/sig/metronome_sdk/models/v1/settings/billing_provider_create_response.rbs +34 -0
- data/sig/metronome_sdk/models/v1/settings/billing_provider_list_params.rbs +28 -0
- data/sig/metronome_sdk/models/v1/settings/billing_provider_list_response.rbs +102 -0
- data/sig/metronome_sdk/models/v1/usage_search_response.rbs +3 -1
- data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +14 -0
- data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +14 -0
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +234 -3
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +131 -3
- data/sig/metronome_sdk/resources/v1/alerts.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/contracts.rbs +3 -0
- data/sig/metronome_sdk/resources/v1/customers/alerts.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/customers/billing_config.rbs +2 -0
- data/sig/metronome_sdk/resources/v1/customers.rbs +2 -1
- data/sig/metronome_sdk/resources/v1/settings/billing_providers.rbs +23 -0
- data/sig/metronome_sdk/resources/v1/settings.rbs +20 -0
- data/sig/metronome_sdk/resources/v1.rbs +2 -0
- data/sig/metronome_sdk/resources/v2/contracts.rbs +4 -0
- metadata +29 -2
|
@@ -1854,6 +1854,11 @@ module MetronomeSDK
|
|
|
1854
1854
|
# @return [Array<String>, nil]
|
|
1855
1855
|
optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String], nil?: true
|
|
1856
1856
|
|
|
1857
|
+
# @!attribute description
|
|
1858
|
+
#
|
|
1859
|
+
# @return [String, nil]
|
|
1860
|
+
optional :description, String
|
|
1861
|
+
|
|
1857
1862
|
# @!attribute hierarchy_configuration
|
|
1858
1863
|
# Optional configuration for commit hierarchy access control
|
|
1859
1864
|
#
|
|
@@ -1913,7 +1918,7 @@ module MetronomeSDK
|
|
|
1913
1918
|
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::CommitSpecifierInput] },
|
|
1914
1919
|
nil?: true
|
|
1915
1920
|
|
|
1916
|
-
# @!method initialize(id:, access_schedule: nil, applicable_product_ids: nil, applicable_product_tags: nil, hierarchy_configuration: nil, invoice_schedule: nil, name: nil, netsuite_sales_order_id: nil, priority: nil, product_id: nil, rate_type: nil, rollover_fraction: nil, specifiers: nil)
|
|
1921
|
+
# @!method initialize(id:, access_schedule: nil, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, hierarchy_configuration: nil, invoice_schedule: nil, name: nil, netsuite_sales_order_id: nil, priority: nil, product_id: nil, rate_type: nil, rollover_fraction: nil, specifiers: nil)
|
|
1917
1922
|
# Some parameter documentations has been truncated, see
|
|
1918
1923
|
# {MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit}
|
|
1919
1924
|
# for more details.
|
|
@@ -1926,6 +1931,8 @@ module MetronomeSDK
|
|
|
1926
1931
|
#
|
|
1927
1932
|
# @param applicable_product_tags [Array<String>, nil] Which tags the commit applies to. If applicable*product_ids, applicable_product*
|
|
1928
1933
|
#
|
|
1934
|
+
# @param description [String]
|
|
1935
|
+
#
|
|
1929
1936
|
# @param hierarchy_configuration [MetronomeSDK::Models::CommitHierarchyConfiguration] Optional configuration for commit hierarchy access control
|
|
1930
1937
|
#
|
|
1931
1938
|
# @param invoice_schedule [MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::InvoiceSchedule]
|
|
@@ -2187,6 +2194,11 @@ module MetronomeSDK
|
|
|
2187
2194
|
optional :access_schedule,
|
|
2188
2195
|
-> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::AccessSchedule }
|
|
2189
2196
|
|
|
2197
|
+
# @!attribute description
|
|
2198
|
+
#
|
|
2199
|
+
# @return [String, nil]
|
|
2200
|
+
optional :description, String
|
|
2201
|
+
|
|
2190
2202
|
# @!attribute hierarchy_configuration
|
|
2191
2203
|
# Optional configuration for credit hierarchy access control
|
|
2192
2204
|
#
|
|
@@ -2222,7 +2234,7 @@ module MetronomeSDK
|
|
|
2222
2234
|
# @return [Float, nil]
|
|
2223
2235
|
optional :rollover_fraction, Float, nil?: true
|
|
2224
2236
|
|
|
2225
|
-
# @!method initialize(id:, access_schedule: nil, hierarchy_configuration: nil, name: nil, netsuite_sales_order_id: nil, priority: nil, rate_type: nil, rollover_fraction: nil)
|
|
2237
|
+
# @!method initialize(id:, access_schedule: nil, description: nil, hierarchy_configuration: nil, name: nil, netsuite_sales_order_id: nil, priority: nil, rate_type: nil, rollover_fraction: nil)
|
|
2226
2238
|
# Some parameter documentations has been truncated, see
|
|
2227
2239
|
# {MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit}
|
|
2228
2240
|
# for more details.
|
|
@@ -2231,6 +2243,8 @@ module MetronomeSDK
|
|
|
2231
2243
|
#
|
|
2232
2244
|
# @param access_schedule [MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::AccessSchedule]
|
|
2233
2245
|
#
|
|
2246
|
+
# @param description [String]
|
|
2247
|
+
#
|
|
2234
2248
|
# @param hierarchy_configuration [MetronomeSDK::Models::CommitHierarchyConfiguration] Optional configuration for credit hierarchy access control
|
|
2235
2249
|
#
|
|
2236
2250
|
# @param name [String]
|
|
@@ -3051,10 +3065,21 @@ module MetronomeSDK
|
|
|
3051
3065
|
optional :quantity_updates,
|
|
3052
3066
|
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::QuantityUpdate] }
|
|
3053
3067
|
|
|
3054
|
-
# @!
|
|
3068
|
+
# @!attribute seat_updates
|
|
3069
|
+
# Manage subscription seats for subscriptions in SEAT_BASED mode.
|
|
3070
|
+
#
|
|
3071
|
+
# @return [MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates, nil]
|
|
3072
|
+
optional :seat_updates,
|
|
3073
|
+
-> { MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates }
|
|
3074
|
+
|
|
3075
|
+
# @!method initialize(id:, ending_before: nil, quantity_updates: nil, seat_updates: nil)
|
|
3055
3076
|
# @param id [String]
|
|
3077
|
+
#
|
|
3056
3078
|
# @param ending_before [Time]
|
|
3079
|
+
#
|
|
3057
3080
|
# @param quantity_updates [Array<MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::QuantityUpdate>]
|
|
3081
|
+
#
|
|
3082
|
+
# @param seat_updates [MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates] Manage subscription seats for subscriptions in SEAT_BASED mode.
|
|
3058
3083
|
|
|
3059
3084
|
class QuantityUpdate < MetronomeSDK::Internal::Type::BaseModel
|
|
3060
3085
|
# @!attribute starting_at
|
|
@@ -3077,6 +3102,155 @@ module MetronomeSDK
|
|
|
3077
3102
|
# @param quantity [Float]
|
|
3078
3103
|
# @param quantity_delta [Float]
|
|
3079
3104
|
end
|
|
3105
|
+
|
|
3106
|
+
# @see MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription#seat_updates
|
|
3107
|
+
class SeatUpdates < MetronomeSDK::Internal::Type::BaseModel
|
|
3108
|
+
# @!attribute add_seat_ids
|
|
3109
|
+
# Adds seat IDs to the subscription. If there are unassigned seats, the new seat
|
|
3110
|
+
# IDs will fill these unassigned seats and not increase the total subscription
|
|
3111
|
+
# quantity. Otherwise, if there are more new seat IDs than unassigned seats, the
|
|
3112
|
+
# total subscription quantity will increase.
|
|
3113
|
+
#
|
|
3114
|
+
# @return [Array<MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddSeatID>, nil]
|
|
3115
|
+
optional :add_seat_ids,
|
|
3116
|
+
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddSeatID] }
|
|
3117
|
+
|
|
3118
|
+
# @!attribute add_unassigned_seats
|
|
3119
|
+
# Adds unassigned seats to the subscription. This will increase the total
|
|
3120
|
+
# subscription quantity.
|
|
3121
|
+
#
|
|
3122
|
+
# @return [Array<MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddUnassignedSeat>, nil]
|
|
3123
|
+
optional :add_unassigned_seats,
|
|
3124
|
+
-> do
|
|
3125
|
+
MetronomeSDK::Internal::Type::ArrayOf[
|
|
3126
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddUnassignedSeat
|
|
3127
|
+
]
|
|
3128
|
+
end
|
|
3129
|
+
|
|
3130
|
+
# @!attribute remove_seat_ids
|
|
3131
|
+
# Removes seat IDs from the subscription, if possible. If a seat ID is removed,
|
|
3132
|
+
# the total subscription quantity will decrease. Otherwise, if the seat ID is not
|
|
3133
|
+
# found on the subscription, this is a no-op.
|
|
3134
|
+
#
|
|
3135
|
+
# @return [Array<MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveSeatID>, nil]
|
|
3136
|
+
optional :remove_seat_ids,
|
|
3137
|
+
-> do
|
|
3138
|
+
MetronomeSDK::Internal::Type::ArrayOf[
|
|
3139
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveSeatID
|
|
3140
|
+
]
|
|
3141
|
+
end
|
|
3142
|
+
|
|
3143
|
+
# @!attribute remove_unassigned_seats
|
|
3144
|
+
# Removes unassigned seats from the subscription. This will decrease the total
|
|
3145
|
+
# subscription quantity if there are are unassigned seats.
|
|
3146
|
+
#
|
|
3147
|
+
# @return [Array<MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveUnassignedSeat>, nil]
|
|
3148
|
+
optional :remove_unassigned_seats,
|
|
3149
|
+
-> do
|
|
3150
|
+
MetronomeSDK::Internal::Type::ArrayOf[
|
|
3151
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveUnassignedSeat
|
|
3152
|
+
]
|
|
3153
|
+
end
|
|
3154
|
+
|
|
3155
|
+
# @!method initialize(add_seat_ids: nil, add_unassigned_seats: nil, remove_seat_ids: nil, remove_unassigned_seats: nil)
|
|
3156
|
+
# Some parameter documentations has been truncated, see
|
|
3157
|
+
# {MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates}
|
|
3158
|
+
# for more details.
|
|
3159
|
+
#
|
|
3160
|
+
# Manage subscription seats for subscriptions in SEAT_BASED mode.
|
|
3161
|
+
#
|
|
3162
|
+
# @param add_seat_ids [Array<MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddSeatID>] Adds seat IDs to the subscription. If there are unassigned seats, the new seat
|
|
3163
|
+
#
|
|
3164
|
+
# @param add_unassigned_seats [Array<MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddUnassignedSeat>] Adds unassigned seats to the subscription. This will increase the total subscrip
|
|
3165
|
+
#
|
|
3166
|
+
# @param remove_seat_ids [Array<MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveSeatID>] Removes seat IDs from the subscription, if possible. If a seat ID is removed, t
|
|
3167
|
+
#
|
|
3168
|
+
# @param remove_unassigned_seats [Array<MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveUnassignedSeat>] Removes unassigned seats from the subscription. This will decrease the total sub
|
|
3169
|
+
|
|
3170
|
+
class AddSeatID < MetronomeSDK::Internal::Type::BaseModel
|
|
3171
|
+
# @!attribute seat_ids
|
|
3172
|
+
#
|
|
3173
|
+
# @return [Array<String>]
|
|
3174
|
+
required :seat_ids, MetronomeSDK::Internal::Type::ArrayOf[String]
|
|
3175
|
+
|
|
3176
|
+
# @!attribute starting_at
|
|
3177
|
+
# Assigned seats will be added/removed starting at this date.
|
|
3178
|
+
#
|
|
3179
|
+
# @return [Time]
|
|
3180
|
+
required :starting_at, Time
|
|
3181
|
+
|
|
3182
|
+
# @!method initialize(seat_ids:, starting_at:)
|
|
3183
|
+
# @param seat_ids [Array<String>]
|
|
3184
|
+
#
|
|
3185
|
+
# @param starting_at [Time] Assigned seats will be added/removed starting at this date.
|
|
3186
|
+
end
|
|
3187
|
+
|
|
3188
|
+
class AddUnassignedSeat < MetronomeSDK::Internal::Type::BaseModel
|
|
3189
|
+
# @!attribute quantity
|
|
3190
|
+
# The number of unassigned seats on the subscription will increase/decrease by
|
|
3191
|
+
# this delta. Must be greater than 0.
|
|
3192
|
+
#
|
|
3193
|
+
# @return [Float]
|
|
3194
|
+
required :quantity, Float
|
|
3195
|
+
|
|
3196
|
+
# @!attribute starting_at
|
|
3197
|
+
# Unassigned seats will be updated starting at this date.
|
|
3198
|
+
#
|
|
3199
|
+
# @return [Time]
|
|
3200
|
+
required :starting_at, Time
|
|
3201
|
+
|
|
3202
|
+
# @!method initialize(quantity:, starting_at:)
|
|
3203
|
+
# Some parameter documentations has been truncated, see
|
|
3204
|
+
# {MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddUnassignedSeat}
|
|
3205
|
+
# for more details.
|
|
3206
|
+
#
|
|
3207
|
+
# @param quantity [Float] The number of unassigned seats on the subscription will increase/decrease by thi
|
|
3208
|
+
#
|
|
3209
|
+
# @param starting_at [Time] Unassigned seats will be updated starting at this date.
|
|
3210
|
+
end
|
|
3211
|
+
|
|
3212
|
+
class RemoveSeatID < MetronomeSDK::Internal::Type::BaseModel
|
|
3213
|
+
# @!attribute seat_ids
|
|
3214
|
+
#
|
|
3215
|
+
# @return [Array<String>]
|
|
3216
|
+
required :seat_ids, MetronomeSDK::Internal::Type::ArrayOf[String]
|
|
3217
|
+
|
|
3218
|
+
# @!attribute starting_at
|
|
3219
|
+
# Assigned seats will be added/removed starting at this date.
|
|
3220
|
+
#
|
|
3221
|
+
# @return [Time]
|
|
3222
|
+
required :starting_at, Time
|
|
3223
|
+
|
|
3224
|
+
# @!method initialize(seat_ids:, starting_at:)
|
|
3225
|
+
# @param seat_ids [Array<String>]
|
|
3226
|
+
#
|
|
3227
|
+
# @param starting_at [Time] Assigned seats will be added/removed starting at this date.
|
|
3228
|
+
end
|
|
3229
|
+
|
|
3230
|
+
class RemoveUnassignedSeat < MetronomeSDK::Internal::Type::BaseModel
|
|
3231
|
+
# @!attribute quantity
|
|
3232
|
+
# The number of unassigned seats on the subscription will increase/decrease by
|
|
3233
|
+
# this delta. Must be greater than 0.
|
|
3234
|
+
#
|
|
3235
|
+
# @return [Float]
|
|
3236
|
+
required :quantity, Float
|
|
3237
|
+
|
|
3238
|
+
# @!attribute starting_at
|
|
3239
|
+
# Unassigned seats will be updated starting at this date.
|
|
3240
|
+
#
|
|
3241
|
+
# @return [Time]
|
|
3242
|
+
required :starting_at, Time
|
|
3243
|
+
|
|
3244
|
+
# @!method initialize(quantity:, starting_at:)
|
|
3245
|
+
# Some parameter documentations has been truncated, see
|
|
3246
|
+
# {MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveUnassignedSeat}
|
|
3247
|
+
# for more details.
|
|
3248
|
+
#
|
|
3249
|
+
# @param quantity [Float] The number of unassigned seats on the subscription will increase/decrease by thi
|
|
3250
|
+
#
|
|
3251
|
+
# @param starting_at [Time] Unassigned seats will be updated starting at this date.
|
|
3252
|
+
end
|
|
3253
|
+
end
|
|
3080
3254
|
end
|
|
3081
3255
|
end
|
|
3082
3256
|
end
|
|
@@ -53,7 +53,7 @@ module MetronomeSDK
|
|
|
53
53
|
# threshold notification evaluations in real-time as usage events stream in,
|
|
54
54
|
# unlike competitors who rely on periodic polling or batch evaluation cycles
|
|
55
55
|
#
|
|
56
|
-
# @overload create(alert_type:, name:, threshold:, billable_metric_id: nil, credit_grant_type_filters: nil, credit_type_id: nil, custom_field_filters: nil, customer_id: nil, evaluate_on_create: nil, group_values: nil, invoice_types_filter: nil, plan_id: nil, uniqueness_key: nil, request_options: {})
|
|
56
|
+
# @overload create(alert_type:, name:, threshold:, billable_metric_id: nil, credit_grant_type_filters: nil, credit_type_id: nil, custom_field_filters: nil, customer_id: nil, evaluate_on_create: nil, group_values: nil, invoice_types_filter: nil, plan_id: nil, seat_filter: nil, uniqueness_key: nil, request_options: {})
|
|
57
57
|
#
|
|
58
58
|
# @param alert_type [Symbol, MetronomeSDK::Models::V1::AlertCreateParams::AlertType] Type of the threshold notification
|
|
59
59
|
#
|
|
@@ -79,6 +79,8 @@ module MetronomeSDK
|
|
|
79
79
|
#
|
|
80
80
|
# @param plan_id [String] If provided, will create this threshold notification for this specific plan. To
|
|
81
81
|
#
|
|
82
|
+
# @param seat_filter [MetronomeSDK::Models::V1::AlertCreateParams::SeatFilter] Required for `low_remaining_seat_balance_reached` notifications. The alert is sc
|
|
83
|
+
#
|
|
82
84
|
# @param uniqueness_key [String] Prevents the creation of duplicates. If a request to create a record is made wit
|
|
83
85
|
#
|
|
84
86
|
# @param request_options [MetronomeSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -140,7 +140,7 @@ module MetronomeSDK
|
|
|
140
140
|
# `usage_filters` to route the correct usage to each contract.
|
|
141
141
|
# [Read more about usage filters](https://docs.metronome.com/manage-product-access/provision-customer/#create-a-usage-filter).
|
|
142
142
|
#
|
|
143
|
-
# @overload create(customer_id:, starting_at:, billing_provider_configuration: nil, commits: nil, credits: nil, custom_fields: nil, discounts: nil, ending_before: nil, hierarchy_configuration: nil, multiplier_override_prioritization: nil, name: nil, net_payment_terms_days: nil, netsuite_sales_order_id: nil, overrides: nil, prepaid_balance_threshold_configuration: nil, priority: nil, professional_services: nil, rate_card_alias: nil, rate_card_id: nil, recurring_commits: nil, recurring_credits: nil, reseller_royalties: nil, salesforce_opportunity_id: nil, scheduled_charges: nil, scheduled_charges_on_usage_invoices: nil, spend_threshold_configuration: nil, subscriptions: nil, total_contract_value: nil, transition: nil, uniqueness_key: nil, usage_filter: nil, usage_statement_schedule: nil, request_options: {})
|
|
143
|
+
# @overload create(customer_id:, starting_at:, billing_provider_configuration: nil, commits: nil, credits: nil, custom_fields: nil, discounts: nil, ending_before: nil, hierarchy_configuration: nil, multiplier_override_prioritization: nil, name: nil, net_payment_terms_days: nil, netsuite_sales_order_id: nil, overrides: nil, prepaid_balance_threshold_configuration: nil, priority: nil, professional_services: nil, rate_card_alias: nil, rate_card_id: nil, recurring_commits: nil, recurring_credits: nil, reseller_royalties: nil, revenue_system_configuration: nil, salesforce_opportunity_id: nil, scheduled_charges: nil, scheduled_charges_on_usage_invoices: nil, spend_threshold_configuration: nil, subscriptions: nil, total_contract_value: nil, transition: nil, uniqueness_key: nil, usage_filter: nil, usage_statement_schedule: nil, request_options: {})
|
|
144
144
|
#
|
|
145
145
|
# @param customer_id [String]
|
|
146
146
|
#
|
|
@@ -186,6 +186,8 @@ module MetronomeSDK
|
|
|
186
186
|
#
|
|
187
187
|
# @param reseller_royalties [Array<MetronomeSDK::Models::V1::ContractCreateParams::ResellerRoyalty>] This field's availability is dependent on your client's configuration.
|
|
188
188
|
#
|
|
189
|
+
# @param revenue_system_configuration [MetronomeSDK::Models::V1::ContractCreateParams::RevenueSystemConfiguration] The revenue system configuration associated with a contract. Provide either an I
|
|
190
|
+
#
|
|
189
191
|
# @param salesforce_opportunity_id [String] This field's availability is dependent on your client's configuration.
|
|
190
192
|
#
|
|
191
193
|
# @param scheduled_charges [Array<MetronomeSDK::Models::V1::ContractCreateParams::ScheduledCharge>]
|
|
@@ -318,7 +320,7 @@ module MetronomeSDK
|
|
|
318
320
|
# upstream of the commit, whether that is via contract editing, rate editing, or
|
|
319
321
|
# other actions that cause an invoice to be recalculated.
|
|
320
322
|
#
|
|
321
|
-
# @overload add_manual_balance_entry(id:, amount:, customer_id:, reason:, segment_id:, contract_id: nil, timestamp: nil, request_options: {})
|
|
323
|
+
# @overload add_manual_balance_entry(id:, amount:, customer_id:, reason:, segment_id:, contract_id: nil, per_group_amounts: nil, timestamp: nil, request_options: {})
|
|
322
324
|
#
|
|
323
325
|
# @param id [String] ID of the balance (commit or credit) to update.
|
|
324
326
|
#
|
|
@@ -332,6 +334,8 @@ module MetronomeSDK
|
|
|
332
334
|
#
|
|
333
335
|
# @param contract_id [String] ID of the contract to update. Leave blank to update a customer level balance.
|
|
334
336
|
#
|
|
337
|
+
# @param per_group_amounts [Hash{Symbol=>Float}] If using individually configured commits/credits attached to seat managed subscr
|
|
338
|
+
#
|
|
335
339
|
# @param timestamp [Time] RFC 3339 timestamp indicating when the manual adjustment takes place. If not pro
|
|
336
340
|
#
|
|
337
341
|
# @param request_options [MetronomeSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -352,7 +356,7 @@ module MetronomeSDK
|
|
|
352
356
|
|
|
353
357
|
# Amendments will be replaced by Contract editing. New clients should implement
|
|
354
358
|
# using the `editContract` endpoint. Read more about the migration to contract
|
|
355
|
-
# editing [here](
|
|
359
|
+
# editing [here](/guides/implement-metronome/migrate-amendments-to-edits/) and
|
|
356
360
|
# reach out to your Metronome representative for more details. Once contract
|
|
357
361
|
# editing is enabled, access to this endpoint will be removed.
|
|
358
362
|
#
|
|
@@ -514,7 +518,7 @@ module MetronomeSDK
|
|
|
514
518
|
# segments
|
|
515
519
|
# - Manual adjustments: Includes all manual ledger entries, even future-dated ones
|
|
516
520
|
#
|
|
517
|
-
# @overload list_balances(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: {})
|
|
521
|
+
# @overload list_balances(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: {})
|
|
518
522
|
#
|
|
519
523
|
# @param customer_id [String]
|
|
520
524
|
#
|
|
@@ -524,6 +528,8 @@ module MetronomeSDK
|
|
|
524
528
|
#
|
|
525
529
|
# @param effective_before [Time] Include only balances that have any access before the provided date (exclusive)
|
|
526
530
|
#
|
|
531
|
+
# @param exclude_zero_balances [Boolean] Exclude balances with zero amounts from the response.
|
|
532
|
+
#
|
|
527
533
|
# @param include_archived [Boolean] Include archived credits and credits from archived contracts.
|
|
528
534
|
#
|
|
529
535
|
# @param include_balance [Boolean] Include the balance of credits and commits in the response. Setting this flag ma
|
|
@@ -7,7 +7,8 @@ module MetronomeSDK
|
|
|
7
7
|
# Some parameter documentations has been truncated, see
|
|
8
8
|
# {MetronomeSDK::Models::V1::CreditGrantCreateParams} for more details.
|
|
9
9
|
#
|
|
10
|
-
# Create a new credit grant
|
|
10
|
+
# Create a new credit grant. This is a Plans (deprecated) endpoint. New clients
|
|
11
|
+
# should implement using Contracts.
|
|
11
12
|
#
|
|
12
13
|
# @overload create(customer_id:, expires_at:, grant_amount:, name:, paid_amount:, priority:, credit_grant_type: nil, custom_fields: nil, effective_at: nil, invoice_date: nil, product_ids: nil, reason: nil, rollover_settings: nil, uniqueness_key: nil, request_options: {})
|
|
13
14
|
#
|
|
@@ -58,7 +59,8 @@ module MetronomeSDK
|
|
|
58
59
|
# Some parameter documentations has been truncated, see
|
|
59
60
|
# {MetronomeSDK::Models::V1::CreditGrantListParams} for more details.
|
|
60
61
|
#
|
|
61
|
-
# List credit grants. This list does not included voided grants.
|
|
62
|
+
# List credit grants. This list does not included voided grants. This is a Plans
|
|
63
|
+
# (deprecated) endpoint. New clients should implement using Contracts.
|
|
62
64
|
#
|
|
63
65
|
# @overload list(limit: nil, next_page: nil, credit_grant_ids: nil, credit_type_ids: nil, customer_ids: nil, effective_before: nil, not_expiring_before: nil, request_options: {})
|
|
64
66
|
#
|
|
@@ -95,7 +97,8 @@ module MetronomeSDK
|
|
|
95
97
|
)
|
|
96
98
|
end
|
|
97
99
|
|
|
98
|
-
# Edit an existing credit grant
|
|
100
|
+
# Edit an existing credit grant. This is a Plans (deprecated) endpoint. New
|
|
101
|
+
# clients should implement using Contracts.
|
|
99
102
|
#
|
|
100
103
|
# @overload edit(id:, credit_grant_type: nil, expires_at: nil, name: nil, request_options: {})
|
|
101
104
|
#
|
|
@@ -128,7 +131,8 @@ module MetronomeSDK
|
|
|
128
131
|
#
|
|
129
132
|
# Fetches a list of credit ledger entries. Returns lists of ledgers per customer.
|
|
130
133
|
# Ledger entries are returned in chronological order. Ledger entries associated
|
|
131
|
-
# with voided credit grants are not included.
|
|
134
|
+
# with voided credit grants are not included. This is a Plans (deprecated)
|
|
135
|
+
# endpoint. New clients should implement using Contracts.
|
|
132
136
|
#
|
|
133
137
|
# @overload list_entries(next_page: nil, sort: nil, credit_type_ids: nil, customer_ids: nil, ending_before: nil, starting_on: nil, request_options: {})
|
|
134
138
|
#
|
|
@@ -164,7 +168,8 @@ module MetronomeSDK
|
|
|
164
168
|
)
|
|
165
169
|
end
|
|
166
170
|
|
|
167
|
-
# Void a credit grant
|
|
171
|
+
# Void a credit grant. This is a Plans (deprecated) endpoint. New clients should
|
|
172
|
+
# implement using Contracts.
|
|
168
173
|
#
|
|
169
174
|
# @overload void(id:, release_uniqueness_key: nil, void_credit_purchase_invoice: nil, request_options: {})
|
|
170
175
|
#
|
|
@@ -64,7 +64,7 @@ module MetronomeSDK
|
|
|
64
64
|
# - Error handling: Returns 404 if either the customer or alert_id doesn't exist
|
|
65
65
|
# or isn't accessible to your organization
|
|
66
66
|
#
|
|
67
|
-
# @overload retrieve(alert_id:, customer_id:, group_values: nil, plans_or_contracts: nil, request_options: {})
|
|
67
|
+
# @overload retrieve(alert_id:, customer_id:, group_values: nil, plans_or_contracts: nil, seat_filter: nil, request_options: {})
|
|
68
68
|
#
|
|
69
69
|
# @param alert_id [String] The Metronome ID of the threshold notification
|
|
70
70
|
#
|
|
@@ -74,6 +74,8 @@ module MetronomeSDK
|
|
|
74
74
|
#
|
|
75
75
|
# @param plans_or_contracts [Symbol, MetronomeSDK::Models::V1::Customers::AlertRetrieveParams::PlansOrContracts] When parallel threshold notifications are enabled during migration, this flag de
|
|
76
76
|
#
|
|
77
|
+
# @param seat_filter [MetronomeSDK::Models::V1::Customers::AlertRetrieveParams::SeatFilter] Only allowed for `low_remaining_seat_balance_reached` notifications. This filter
|
|
78
|
+
#
|
|
77
79
|
# @param request_options [MetronomeSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
78
80
|
#
|
|
79
81
|
# @return [MetronomeSDK::Models::V1::Customers::AlertRetrieveResponse]
|
|
@@ -9,9 +9,10 @@ module MetronomeSDK
|
|
|
9
9
|
# {MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams} for more
|
|
10
10
|
# details.
|
|
11
11
|
#
|
|
12
|
-
# Set the billing configuration for a given customer.
|
|
12
|
+
# Set the billing configuration for a given customer. This is a Plans (deprecated)
|
|
13
|
+
# endpoint. New clients should implement using Contracts.
|
|
13
14
|
#
|
|
14
|
-
# @overload create(customer_id:, billing_provider_type:, billing_provider_customer_id:, aws_product_code: nil, aws_region: nil, stripe_collection_method: nil, request_options: {})
|
|
15
|
+
# @overload create(customer_id:, billing_provider_type:, billing_provider_customer_id:, aws_customer_account_id: nil, aws_customer_id: nil, aws_product_code: nil, aws_region: nil, stripe_collection_method: nil, request_options: {})
|
|
15
16
|
#
|
|
16
17
|
# @param customer_id [String] Path param:
|
|
17
18
|
#
|
|
@@ -19,11 +20,15 @@ module MetronomeSDK
|
|
|
19
20
|
#
|
|
20
21
|
# @param billing_provider_customer_id [String] Body param: The customer ID in the billing provider's system. For Azure, this is
|
|
21
22
|
#
|
|
23
|
+
# @param aws_customer_account_id [String] Body param:
|
|
24
|
+
#
|
|
25
|
+
# @param aws_customer_id [String] Body param:
|
|
26
|
+
#
|
|
22
27
|
# @param aws_product_code [String] Body param:
|
|
23
28
|
#
|
|
24
29
|
# @param aws_region [Symbol, MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::AwsRegion] Body param:
|
|
25
30
|
#
|
|
26
|
-
# @param stripe_collection_method [Symbol, MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::StripeCollectionMethod] Body param:
|
|
31
|
+
# @param stripe_collection_method [Symbol, MetronomeSDK::Models::V1::Customers::BillingConfigCreateParams::StripeCollectionMethod] Body param: The collection method for the customer's invoices.
|
|
27
32
|
#
|
|
28
33
|
# @param request_options [MetronomeSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
29
34
|
#
|
|
@@ -49,7 +54,8 @@ module MetronomeSDK
|
|
|
49
54
|
)
|
|
50
55
|
end
|
|
51
56
|
|
|
52
|
-
# Fetch the billing configuration for the given customer.
|
|
57
|
+
# Fetch the billing configuration for the given customer. This is a Plans
|
|
58
|
+
# (deprecated) endpoint. New clients should implement using Contracts.
|
|
53
59
|
#
|
|
54
60
|
# @overload retrieve(customer_id:, billing_provider_type:, request_options: {})
|
|
55
61
|
#
|
|
@@ -81,7 +87,8 @@ module MetronomeSDK
|
|
|
81
87
|
end
|
|
82
88
|
|
|
83
89
|
# Delete the billing configuration for a given customer. Note: this is unsupported
|
|
84
|
-
# for Azure and AWS Marketplace customers.
|
|
90
|
+
# for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
|
|
91
|
+
# New clients should implement using Contracts.
|
|
85
92
|
#
|
|
86
93
|
# @overload delete(customer_id:, billing_provider_type:, request_options: {})
|
|
87
94
|
#
|
|
@@ -37,7 +37,8 @@ module MetronomeSDK
|
|
|
37
37
|
# #### Billing configuration:
|
|
38
38
|
#
|
|
39
39
|
# - invoice_contract_id is required for postpaid commits and for prepaid commits
|
|
40
|
-
# with billing (only optional for free prepaid commits)
|
|
40
|
+
# with billing (only optional for free prepaid commits) unless do_not_invoice is
|
|
41
|
+
# set to true
|
|
41
42
|
# - For postpaid commits: access_schedule and invoice_schedule must have matching
|
|
42
43
|
# amounts
|
|
43
44
|
# - For postpaid commits: only one schedule item is allowed in both schedules.
|
|
@@ -175,7 +175,8 @@ module MetronomeSDK
|
|
|
175
175
|
# Some parameter documentations has been truncated, see
|
|
176
176
|
# {MetronomeSDK::Models::V1::Customers::InvoiceAddChargeParams} for more details.
|
|
177
177
|
#
|
|
178
|
-
# Add a one time charge to the specified invoice
|
|
178
|
+
# Add a one time charge to the specified invoice. This is a Plans (deprecated)
|
|
179
|
+
# endpoint. New clients should implement using Contracts.
|
|
179
180
|
#
|
|
180
181
|
# @overload add_charge(customer_id:, charge_id:, customer_plan_id:, description:, invoice_start_timestamp:, price:, quantity:, request_options: {})
|
|
181
182
|
#
|
|
@@ -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
|
#
|
|
10
11
|
# @overload list(customer_id:, limit: nil, next_page: nil, request_options: {})
|
|
11
12
|
#
|
|
@@ -41,7 +42,8 @@ module MetronomeSDK
|
|
|
41
42
|
#
|
|
42
43
|
# Associate an existing customer with a plan for a specified date range. See the
|
|
43
44
|
# [price adjustments documentation](https://plans-docs.metronome.com/pricing/managing-plans/#price-adjustments)
|
|
44
|
-
# for details on the price adjustments.
|
|
45
|
+
# for details on the price adjustments. This is a Plans (deprecated) endpoint. New
|
|
46
|
+
# clients should implement using Contracts.
|
|
45
47
|
#
|
|
46
48
|
# @overload add(customer_id:, plan_id:, starting_on:, ending_before: nil, net_payment_terms_days: nil, overage_rate_adjustments: nil, price_adjustments: nil, trial_spec: nil, request_options: {})
|
|
47
49
|
#
|
|
@@ -84,7 +86,8 @@ module MetronomeSDK
|
|
|
84
86
|
# Some parameter documentations has been truncated, see
|
|
85
87
|
# {MetronomeSDK::Models::V1::Customers::PlanEndParams} for more details.
|
|
86
88
|
#
|
|
87
|
-
# Change the end date of a customer's plan.
|
|
89
|
+
# Change the end date of a customer's plan. This is a Plans (deprecated) endpoint.
|
|
90
|
+
# New clients should implement using Contracts.
|
|
88
91
|
#
|
|
89
92
|
# @overload end_(customer_id:, customer_plan_id:, ending_before: nil, void_invoices: nil, void_stripe_invoices: nil, request_options: {})
|
|
90
93
|
#
|
|
@@ -124,7 +127,8 @@ module MetronomeSDK
|
|
|
124
127
|
|
|
125
128
|
# Lists a customer plans adjustments. See the
|
|
126
129
|
# [price adjustments documentation](https://plans-docs.metronome.com/pricing/managing-plans/#price-adjustments)
|
|
127
|
-
# for details.
|
|
130
|
+
# for details. This is a Plans (deprecated) endpoint. New clients should implement
|
|
131
|
+
# using Contracts.
|
|
128
132
|
#
|
|
129
133
|
# @overload list_price_adjustments(customer_id:, customer_plan_id:, limit: nil, next_page: nil, request_options: {})
|
|
130
134
|
#
|
|
@@ -63,7 +63,7 @@ module MetronomeSDK
|
|
|
63
63
|
# For details on different billing configurations for different systems, review
|
|
64
64
|
# the `/setCustomerBillingConfiguration` end-point.
|
|
65
65
|
#
|
|
66
|
-
# @overload create(name:, billing_config: nil, custom_fields: nil, customer_billing_provider_configurations: nil, external_id: nil, ingest_aliases: nil, request_options: {})
|
|
66
|
+
# @overload create(name:, billing_config: nil, custom_fields: nil, customer_billing_provider_configurations: nil, customer_revenue_system_configurations: nil, external_id: nil, ingest_aliases: nil, request_options: {})
|
|
67
67
|
#
|
|
68
68
|
# @param name [String] This will be truncated to 160 characters if the provided name is longer.
|
|
69
69
|
#
|
|
@@ -73,6 +73,8 @@ module MetronomeSDK
|
|
|
73
73
|
#
|
|
74
74
|
# @param customer_billing_provider_configurations [Array<MetronomeSDK::Models::V1::CustomerCreateParams::CustomerBillingProviderConfiguration>]
|
|
75
75
|
#
|
|
76
|
+
# @param customer_revenue_system_configurations [Array<MetronomeSDK::Models::V1::CustomerCreateParams::CustomerRevenueSystemConfiguration>]
|
|
77
|
+
#
|
|
76
78
|
# @param external_id [String] (deprecated, use ingest_aliases instead) an alias that can be used to refer to t
|
|
77
79
|
#
|
|
78
80
|
# @param ingest_aliases [Array<String>] Aliases that can be used to refer to this customer in usage events
|
|
@@ -240,7 +242,8 @@ module MetronomeSDK
|
|
|
240
242
|
|
|
241
243
|
# Fetch daily pending costs for the specified customer, broken down by credit type
|
|
242
244
|
# and line items. Note: this is not supported for customers whose plan includes a
|
|
243
|
-
# UNIQUE-type billable metric.
|
|
245
|
+
# UNIQUE-type billable metric. This is a Plans (deprecated) endpoint. New clients
|
|
246
|
+
# should implement using Contracts.
|
|
244
247
|
#
|
|
245
248
|
# @overload list_costs(customer_id:, ending_before:, starting_on:, limit: nil, next_page: nil, request_options: {})
|
|
246
249
|
#
|
|
@@ -281,17 +284,18 @@ module MetronomeSDK
|
|
|
281
284
|
# Preview how a set of events will affect a customer's invoices. Generates draft
|
|
282
285
|
# invoices for a customer using their current contract configuration and the
|
|
283
286
|
# provided events. This is useful for testing how new events will affect the
|
|
284
|
-
# customer's invoices before they are actually processed.
|
|
287
|
+
# customer's invoices before they are actually processed. Customers on contracts
|
|
288
|
+
# with SQL billable metrics are not supported.
|
|
285
289
|
#
|
|
286
290
|
# @overload preview_events(customer_id:, events:, mode: nil, skip_zero_qty_line_items: nil, request_options: {})
|
|
287
291
|
#
|
|
288
292
|
# @param customer_id [String] Path param:
|
|
289
293
|
#
|
|
290
|
-
# @param events [Array<MetronomeSDK::Models::V1::CustomerPreviewEventsParams::Event>] Body param:
|
|
294
|
+
# @param events [Array<MetronomeSDK::Models::V1::CustomerPreviewEventsParams::Event>] Body param: Array of usage events to include in the preview calculation. Must co
|
|
291
295
|
#
|
|
292
|
-
# @param mode [Symbol, MetronomeSDK::Models::V1::CustomerPreviewEventsParams::Mode] Body param:
|
|
296
|
+
# @param mode [Symbol, MetronomeSDK::Models::V1::CustomerPreviewEventsParams::Mode] Body param: Controls how the provided events are combined with existing usage da
|
|
293
297
|
#
|
|
294
|
-
# @param skip_zero_qty_line_items [Boolean] Body param:
|
|
298
|
+
# @param skip_zero_qty_line_items [Boolean] Body param: When `true`, line items with zero quantity are excluded from the res
|
|
295
299
|
#
|
|
296
300
|
# @param request_options [MetronomeSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
297
301
|
#
|
|
@@ -384,7 +388,7 @@ module MetronomeSDK
|
|
|
384
388
|
# @param data [Array<MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsParams::Data>]
|
|
385
389
|
# @param request_options [MetronomeSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
386
390
|
#
|
|
387
|
-
# @return [
|
|
391
|
+
# @return [MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse]
|
|
388
392
|
#
|
|
389
393
|
# @see MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsParams
|
|
390
394
|
def set_billing_configurations(params)
|
|
@@ -393,7 +397,7 @@ module MetronomeSDK
|
|
|
393
397
|
method: :post,
|
|
394
398
|
path: "v1/setCustomerBillingProviderConfigurations",
|
|
395
399
|
body: parsed,
|
|
396
|
-
model:
|
|
400
|
+
model: MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse,
|
|
397
401
|
options: options
|
|
398
402
|
)
|
|
399
403
|
end
|
|
@@ -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
|
#
|
|
9
10
|
# @overload list(limit: nil, next_page: nil, request_options: {})
|
|
10
11
|
#
|
|
@@ -29,7 +30,8 @@ module MetronomeSDK
|
|
|
29
30
|
)
|
|
30
31
|
end
|
|
31
32
|
|
|
32
|
-
# Fetch high level details of a specific plan.
|
|
33
|
+
# Fetch high level details of a specific plan. This is a Plans (deprecated)
|
|
34
|
+
# endpoint. New clients should implement using Contracts.
|
|
33
35
|
#
|
|
34
36
|
# @overload get_details(plan_id:, request_options: {})
|
|
35
37
|
#
|
|
@@ -53,7 +55,8 @@ module MetronomeSDK
|
|
|
53
55
|
)
|
|
54
56
|
end
|
|
55
57
|
|
|
56
|
-
# Fetches a list of charges of a specific plan.
|
|
58
|
+
# Fetches a list of charges of a specific plan. This is a Plans (deprecated)
|
|
59
|
+
# endpoint. New clients should implement using Contracts.
|
|
57
60
|
#
|
|
58
61
|
# @overload list_charges(plan_id:, limit: nil, next_page: nil, request_options: {})
|
|
59
62
|
#
|
|
@@ -88,7 +91,8 @@ module MetronomeSDK
|
|
|
88
91
|
# {MetronomeSDK::Models::V1::PlanListCustomersParams} for more details.
|
|
89
92
|
#
|
|
90
93
|
# Fetches a list of customers on a specific plan (by default, only currently
|
|
91
|
-
# active plans are included)
|
|
94
|
+
# active plans are included). This is a Plans (deprecated) endpoint. New clients
|
|
95
|
+
# should implement using Contracts.
|
|
92
96
|
#
|
|
93
97
|
# @overload list_customers(plan_id:, limit: nil, next_page: nil, status: nil, request_options: {})
|
|
94
98
|
#
|