metronome-sdk 2.1.0 → 3.0.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 +65 -0
- data/README.md +10 -1
- data/lib/metronome_sdk/internal/transport/base_client.rb +7 -1
- data/lib/metronome_sdk/internal/transport/pooled_net_requester.rb +18 -12
- data/lib/metronome_sdk/internal/util.rb +7 -2
- data/lib/metronome_sdk/models/commit.rb +69 -1
- data/lib/metronome_sdk/models/contract_v2.rb +45 -2
- data/lib/metronome_sdk/models/credit.rb +69 -1
- data/lib/metronome_sdk/models/rate.rb +1 -11
- data/lib/metronome_sdk/models/subscription.rb +32 -5
- 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 +136 -20
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_many_params.rb +1 -11
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_params.rb +1 -11
- data/lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb +1 -11
- data/lib/metronome_sdk/models/v1/custom_field_add_key_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_delete_values_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_list_keys_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_list_keys_response.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_remove_key_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/custom_field_set_values_params.rb +4 -0
- data/lib/metronome_sdk/models/v1/customer_create_params.rb +94 -2
- 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 +15 -1
- data/lib/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rb +15 -1
- data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +33 -1
- data/lib/metronome_sdk/models/v1/customers/invoice.rb +71 -3
- data/lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb +8 -1
- data/lib/metronome_sdk/models/v1/payment.rb +40 -1
- data/lib/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rb +10 -1
- data/lib/metronome_sdk/models/v1/settings/billing_provider_create_params.rb +1 -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 +285 -22
- 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/rate_cards/rates.rb +1 -3
- data/lib/metronome_sdk/resources/v1/contracts/rate_cards.rb +1 -1
- data/lib/metronome_sdk/resources/v1/contracts.rb +6 -2
- data/lib/metronome_sdk/resources/v1/customers/alerts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/customers/billing_config.rb +8 -4
- data/lib/metronome_sdk/resources/v1/customers/invoices.rb +7 -7
- data/lib/metronome_sdk/resources/v1/customers/plans.rb +5 -5
- data/lib/metronome_sdk/resources/v1/customers.rb +12 -10
- data/lib/metronome_sdk/resources/v1/plans.rb +2 -2
- data/lib/metronome_sdk/resources/v1/settings.rb +3 -1
- data/lib/metronome_sdk/resources/v1/usage.rb +7 -7
- data/lib/metronome_sdk/resources/v2/contracts.rb +10 -2
- data/lib/metronome_sdk/version.rb +1 -1
- data/lib/metronome_sdk.rb +3 -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/commit.rbi +171 -0
- data/rbi/metronome_sdk/models/contract_v2.rbi +85 -6
- data/rbi/metronome_sdk/models/credit.rbi +171 -0
- data/rbi/metronome_sdk/models/rate.rbi +3 -18
- data/rbi/metronome_sdk/models/subscription.rbi +55 -9
- 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 +288 -24
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_add_many_params.rbi +3 -18
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_add_params.rbi +0 -15
- data/rbi/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rbi +3 -18
- data/rbi/metronome_sdk/models/v1/custom_field_add_key_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_delete_values_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_list_keys_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_list_keys_response.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_remove_key_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/custom_field_set_values_params.rbi +20 -0
- data/rbi/metronome_sdk/models/v1/customer_create_params.rbi +204 -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 +18 -0
- data/rbi/metronome_sdk/models/v1/customers/billing_config_retrieve_response.rbi +18 -0
- data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +71 -0
- data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +121 -0
- data/rbi/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbi +9 -0
- data/rbi/metronome_sdk/models/v1/payment.rbi +79 -0
- data/rbi/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbi +13 -0
- data/rbi/metronome_sdk/models/v1/settings/billing_provider_create_params.rbi +5 -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 +616 -27
- 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/rate_cards/rates.rbi +0 -5
- data/rbi/metronome_sdk/resources/v1/contracts/rate_cards.rbi +1 -1
- data/rbi/metronome_sdk/resources/v1/contracts.rbi +9 -0
- data/rbi/metronome_sdk/resources/v1/customers/alerts.rbi +5 -0
- data/rbi/metronome_sdk/resources/v1/customers/billing_config.rbi +9 -3
- data/rbi/metronome_sdk/resources/v1/customers/invoices.rbi +7 -7
- data/rbi/metronome_sdk/resources/v1/customers/plans.rbi +5 -5
- data/rbi/metronome_sdk/resources/v1/customers.rbi +15 -8
- data/rbi/metronome_sdk/resources/v1/plans.rbi +2 -2
- data/rbi/metronome_sdk/resources/v1/settings.rbi +4 -0
- data/rbi/metronome_sdk/resources/v1/usage.rbi +7 -7
- 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/commit.rbs +74 -0
- data/sig/metronome_sdk/models/contract_v2.rbs +45 -6
- data/sig/metronome_sdk/models/credit.rbs +74 -0
- data/sig/metronome_sdk/models/rate.rbs +3 -10
- 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/contracts/rate_cards/rate_add_many_params.rbs +3 -10
- data/sig/metronome_sdk/models/v1/contracts/rate_cards/rate_add_params.rbs +1 -8
- data/sig/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rbs +3 -10
- data/sig/metronome_sdk/models/v1/custom_field_add_key_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_delete_values_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_list_keys_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_list_keys_response.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_remove_key_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/custom_field_set_values_params.rbs +8 -0
- data/sig/metronome_sdk/models/v1/customer_create_params.rbs +83 -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 +14 -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 +30 -0
- data/sig/metronome_sdk/models/v1/customers/invoice.rbs +64 -0
- data/sig/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbs +7 -0
- data/sig/metronome_sdk/models/v1/payment.rbs +45 -0
- data/sig/metronome_sdk/models/v1/setting_upsert_avalara_credentials_params.rbs +8 -1
- data/sig/metronome_sdk/models/v1/settings/billing_provider_create_params.rbs +3 -1
- 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 +232 -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/rate_cards/rates.rbs +0 -1
- data/sig/metronome_sdk/resources/v1/contracts.rbs +2 -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.rbs +1 -0
- data/sig/metronome_sdk/resources/v2/contracts.rbs +4 -0
- metadata +19 -2
|
@@ -4076,6 +4076,12 @@ module MetronomeSDK
|
|
|
4076
4076
|
sig { returns(T.nilable(T::Array[String])) }
|
|
4077
4077
|
attr_accessor :applicable_product_tags
|
|
4078
4078
|
|
|
4079
|
+
sig { returns(T.nilable(String)) }
|
|
4080
|
+
attr_reader :description
|
|
4081
|
+
|
|
4082
|
+
sig { params(description: String).void }
|
|
4083
|
+
attr_writer :description
|
|
4084
|
+
|
|
4079
4085
|
# Optional configuration for commit hierarchy access control
|
|
4080
4086
|
sig do
|
|
4081
4087
|
returns(T.nilable(MetronomeSDK::CommitHierarchyConfiguration))
|
|
@@ -4166,6 +4172,7 @@ module MetronomeSDK
|
|
|
4166
4172
|
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::AccessSchedule::OrHash,
|
|
4167
4173
|
applicable_product_ids: T.nilable(T::Array[String]),
|
|
4168
4174
|
applicable_product_tags: T.nilable(T::Array[String]),
|
|
4175
|
+
description: String,
|
|
4169
4176
|
hierarchy_configuration:
|
|
4170
4177
|
MetronomeSDK::CommitHierarchyConfiguration::OrHash,
|
|
4171
4178
|
invoice_schedule:
|
|
@@ -4194,6 +4201,7 @@ module MetronomeSDK
|
|
|
4194
4201
|
# applicable_product_tags or specifiers are not provided, the commit applies to
|
|
4195
4202
|
# all products.
|
|
4196
4203
|
applicable_product_tags: nil,
|
|
4204
|
+
description: nil,
|
|
4197
4205
|
# Optional configuration for commit hierarchy access control
|
|
4198
4206
|
hierarchy_configuration: nil,
|
|
4199
4207
|
invoice_schedule: nil,
|
|
@@ -4224,6 +4232,7 @@ module MetronomeSDK
|
|
|
4224
4232
|
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCommit::AccessSchedule,
|
|
4225
4233
|
applicable_product_ids: T.nilable(T::Array[String]),
|
|
4226
4234
|
applicable_product_tags: T.nilable(T::Array[String]),
|
|
4235
|
+
description: String,
|
|
4227
4236
|
hierarchy_configuration:
|
|
4228
4237
|
MetronomeSDK::CommitHierarchyConfiguration,
|
|
4229
4238
|
invoice_schedule:
|
|
@@ -4822,6 +4831,12 @@ module MetronomeSDK
|
|
|
4822
4831
|
end
|
|
4823
4832
|
attr_writer :access_schedule
|
|
4824
4833
|
|
|
4834
|
+
sig { returns(T.nilable(String)) }
|
|
4835
|
+
attr_reader :description
|
|
4836
|
+
|
|
4837
|
+
sig { params(description: String).void }
|
|
4838
|
+
attr_writer :description
|
|
4839
|
+
|
|
4825
4840
|
# Optional configuration for credit hierarchy access control
|
|
4826
4841
|
sig do
|
|
4827
4842
|
returns(T.nilable(MetronomeSDK::CommitHierarchyConfiguration))
|
|
@@ -4876,6 +4891,7 @@ module MetronomeSDK
|
|
|
4876
4891
|
id: String,
|
|
4877
4892
|
access_schedule:
|
|
4878
4893
|
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::AccessSchedule::OrHash,
|
|
4894
|
+
description: String,
|
|
4879
4895
|
hierarchy_configuration:
|
|
4880
4896
|
MetronomeSDK::CommitHierarchyConfiguration::OrHash,
|
|
4881
4897
|
name: String,
|
|
@@ -4889,6 +4905,7 @@ module MetronomeSDK
|
|
|
4889
4905
|
def self.new(
|
|
4890
4906
|
id:,
|
|
4891
4907
|
access_schedule: nil,
|
|
4908
|
+
description: nil,
|
|
4892
4909
|
# Optional configuration for credit hierarchy access control
|
|
4893
4910
|
hierarchy_configuration: nil,
|
|
4894
4911
|
name: nil,
|
|
@@ -4908,6 +4925,7 @@ module MetronomeSDK
|
|
|
4908
4925
|
id: String,
|
|
4909
4926
|
access_schedule:
|
|
4910
4927
|
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateCredit::AccessSchedule,
|
|
4928
|
+
description: String,
|
|
4911
4929
|
hierarchy_configuration:
|
|
4912
4930
|
MetronomeSDK::CommitHierarchyConfiguration,
|
|
4913
4931
|
name: String,
|
|
@@ -6717,6 +6735,24 @@ module MetronomeSDK
|
|
|
6717
6735
|
end
|
|
6718
6736
|
attr_writer :quantity_updates
|
|
6719
6737
|
|
|
6738
|
+
# Manage subscription seats for subscriptions in SEAT_BASED mode.
|
|
6739
|
+
sig do
|
|
6740
|
+
returns(
|
|
6741
|
+
T.nilable(
|
|
6742
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates
|
|
6743
|
+
)
|
|
6744
|
+
)
|
|
6745
|
+
end
|
|
6746
|
+
attr_reader :seat_updates
|
|
6747
|
+
|
|
6748
|
+
sig do
|
|
6749
|
+
params(
|
|
6750
|
+
seat_updates:
|
|
6751
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::OrHash
|
|
6752
|
+
).void
|
|
6753
|
+
end
|
|
6754
|
+
attr_writer :seat_updates
|
|
6755
|
+
|
|
6720
6756
|
sig do
|
|
6721
6757
|
params(
|
|
6722
6758
|
id: String,
|
|
@@ -6724,10 +6760,18 @@ module MetronomeSDK
|
|
|
6724
6760
|
quantity_updates:
|
|
6725
6761
|
T::Array[
|
|
6726
6762
|
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::QuantityUpdate::OrHash
|
|
6727
|
-
]
|
|
6763
|
+
],
|
|
6764
|
+
seat_updates:
|
|
6765
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::OrHash
|
|
6728
6766
|
).returns(T.attached_class)
|
|
6729
6767
|
end
|
|
6730
|
-
def self.new(
|
|
6768
|
+
def self.new(
|
|
6769
|
+
id:,
|
|
6770
|
+
ending_before: nil,
|
|
6771
|
+
quantity_updates: nil,
|
|
6772
|
+
# Manage subscription seats for subscriptions in SEAT_BASED mode.
|
|
6773
|
+
seat_updates: nil
|
|
6774
|
+
)
|
|
6731
6775
|
end
|
|
6732
6776
|
|
|
6733
6777
|
sig do
|
|
@@ -6738,7 +6782,9 @@ module MetronomeSDK
|
|
|
6738
6782
|
quantity_updates:
|
|
6739
6783
|
T::Array[
|
|
6740
6784
|
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::QuantityUpdate
|
|
6741
|
-
]
|
|
6785
|
+
],
|
|
6786
|
+
seat_updates:
|
|
6787
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates
|
|
6742
6788
|
}
|
|
6743
6789
|
)
|
|
6744
6790
|
end
|
|
@@ -6787,6 +6833,324 @@ module MetronomeSDK
|
|
|
6787
6833
|
def to_hash
|
|
6788
6834
|
end
|
|
6789
6835
|
end
|
|
6836
|
+
|
|
6837
|
+
class SeatUpdates < MetronomeSDK::Internal::Type::BaseModel
|
|
6838
|
+
OrHash =
|
|
6839
|
+
T.type_alias do
|
|
6840
|
+
T.any(
|
|
6841
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates,
|
|
6842
|
+
MetronomeSDK::Internal::AnyHash
|
|
6843
|
+
)
|
|
6844
|
+
end
|
|
6845
|
+
|
|
6846
|
+
# Adds seat IDs to the subscription. If there are unassigned seats, the new seat
|
|
6847
|
+
# IDs will fill these unassigned seats and not increase the total subscription
|
|
6848
|
+
# quantity. Otherwise, if there are more new seat IDs than unassigned seats, the
|
|
6849
|
+
# total subscription quantity will increase.
|
|
6850
|
+
sig do
|
|
6851
|
+
returns(
|
|
6852
|
+
T.nilable(
|
|
6853
|
+
T::Array[
|
|
6854
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddSeatID
|
|
6855
|
+
]
|
|
6856
|
+
)
|
|
6857
|
+
)
|
|
6858
|
+
end
|
|
6859
|
+
attr_reader :add_seat_ids
|
|
6860
|
+
|
|
6861
|
+
sig do
|
|
6862
|
+
params(
|
|
6863
|
+
add_seat_ids:
|
|
6864
|
+
T::Array[
|
|
6865
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddSeatID::OrHash
|
|
6866
|
+
]
|
|
6867
|
+
).void
|
|
6868
|
+
end
|
|
6869
|
+
attr_writer :add_seat_ids
|
|
6870
|
+
|
|
6871
|
+
# Adds unassigned seats to the subscription. This will increase the total
|
|
6872
|
+
# subscription quantity.
|
|
6873
|
+
sig do
|
|
6874
|
+
returns(
|
|
6875
|
+
T.nilable(
|
|
6876
|
+
T::Array[
|
|
6877
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddUnassignedSeat
|
|
6878
|
+
]
|
|
6879
|
+
)
|
|
6880
|
+
)
|
|
6881
|
+
end
|
|
6882
|
+
attr_reader :add_unassigned_seats
|
|
6883
|
+
|
|
6884
|
+
sig do
|
|
6885
|
+
params(
|
|
6886
|
+
add_unassigned_seats:
|
|
6887
|
+
T::Array[
|
|
6888
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddUnassignedSeat::OrHash
|
|
6889
|
+
]
|
|
6890
|
+
).void
|
|
6891
|
+
end
|
|
6892
|
+
attr_writer :add_unassigned_seats
|
|
6893
|
+
|
|
6894
|
+
# Removes seat IDs from the subscription, if possible. If a seat ID is removed,
|
|
6895
|
+
# the total subscription quantity will decrease. Otherwise, if the seat ID is not
|
|
6896
|
+
# found on the subscription, this is a no-op.
|
|
6897
|
+
sig do
|
|
6898
|
+
returns(
|
|
6899
|
+
T.nilable(
|
|
6900
|
+
T::Array[
|
|
6901
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveSeatID
|
|
6902
|
+
]
|
|
6903
|
+
)
|
|
6904
|
+
)
|
|
6905
|
+
end
|
|
6906
|
+
attr_reader :remove_seat_ids
|
|
6907
|
+
|
|
6908
|
+
sig do
|
|
6909
|
+
params(
|
|
6910
|
+
remove_seat_ids:
|
|
6911
|
+
T::Array[
|
|
6912
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveSeatID::OrHash
|
|
6913
|
+
]
|
|
6914
|
+
).void
|
|
6915
|
+
end
|
|
6916
|
+
attr_writer :remove_seat_ids
|
|
6917
|
+
|
|
6918
|
+
# Removes unassigned seats from the subscription. This will decrease the total
|
|
6919
|
+
# subscription quantity if there are are unassigned seats.
|
|
6920
|
+
sig do
|
|
6921
|
+
returns(
|
|
6922
|
+
T.nilable(
|
|
6923
|
+
T::Array[
|
|
6924
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveUnassignedSeat
|
|
6925
|
+
]
|
|
6926
|
+
)
|
|
6927
|
+
)
|
|
6928
|
+
end
|
|
6929
|
+
attr_reader :remove_unassigned_seats
|
|
6930
|
+
|
|
6931
|
+
sig do
|
|
6932
|
+
params(
|
|
6933
|
+
remove_unassigned_seats:
|
|
6934
|
+
T::Array[
|
|
6935
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveUnassignedSeat::OrHash
|
|
6936
|
+
]
|
|
6937
|
+
).void
|
|
6938
|
+
end
|
|
6939
|
+
attr_writer :remove_unassigned_seats
|
|
6940
|
+
|
|
6941
|
+
# Manage subscription seats for subscriptions in SEAT_BASED mode.
|
|
6942
|
+
sig do
|
|
6943
|
+
params(
|
|
6944
|
+
add_seat_ids:
|
|
6945
|
+
T::Array[
|
|
6946
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddSeatID::OrHash
|
|
6947
|
+
],
|
|
6948
|
+
add_unassigned_seats:
|
|
6949
|
+
T::Array[
|
|
6950
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddUnassignedSeat::OrHash
|
|
6951
|
+
],
|
|
6952
|
+
remove_seat_ids:
|
|
6953
|
+
T::Array[
|
|
6954
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveSeatID::OrHash
|
|
6955
|
+
],
|
|
6956
|
+
remove_unassigned_seats:
|
|
6957
|
+
T::Array[
|
|
6958
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveUnassignedSeat::OrHash
|
|
6959
|
+
]
|
|
6960
|
+
).returns(T.attached_class)
|
|
6961
|
+
end
|
|
6962
|
+
def self.new(
|
|
6963
|
+
# Adds seat IDs to the subscription. If there are unassigned seats, the new seat
|
|
6964
|
+
# IDs will fill these unassigned seats and not increase the total subscription
|
|
6965
|
+
# quantity. Otherwise, if there are more new seat IDs than unassigned seats, the
|
|
6966
|
+
# total subscription quantity will increase.
|
|
6967
|
+
add_seat_ids: nil,
|
|
6968
|
+
# Adds unassigned seats to the subscription. This will increase the total
|
|
6969
|
+
# subscription quantity.
|
|
6970
|
+
add_unassigned_seats: nil,
|
|
6971
|
+
# Removes seat IDs from the subscription, if possible. If a seat ID is removed,
|
|
6972
|
+
# the total subscription quantity will decrease. Otherwise, if the seat ID is not
|
|
6973
|
+
# found on the subscription, this is a no-op.
|
|
6974
|
+
remove_seat_ids: nil,
|
|
6975
|
+
# Removes unassigned seats from the subscription. This will decrease the total
|
|
6976
|
+
# subscription quantity if there are are unassigned seats.
|
|
6977
|
+
remove_unassigned_seats: nil
|
|
6978
|
+
)
|
|
6979
|
+
end
|
|
6980
|
+
|
|
6981
|
+
sig do
|
|
6982
|
+
override.returns(
|
|
6983
|
+
{
|
|
6984
|
+
add_seat_ids:
|
|
6985
|
+
T::Array[
|
|
6986
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddSeatID
|
|
6987
|
+
],
|
|
6988
|
+
add_unassigned_seats:
|
|
6989
|
+
T::Array[
|
|
6990
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddUnassignedSeat
|
|
6991
|
+
],
|
|
6992
|
+
remove_seat_ids:
|
|
6993
|
+
T::Array[
|
|
6994
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveSeatID
|
|
6995
|
+
],
|
|
6996
|
+
remove_unassigned_seats:
|
|
6997
|
+
T::Array[
|
|
6998
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveUnassignedSeat
|
|
6999
|
+
]
|
|
7000
|
+
}
|
|
7001
|
+
)
|
|
7002
|
+
end
|
|
7003
|
+
def to_hash
|
|
7004
|
+
end
|
|
7005
|
+
|
|
7006
|
+
class AddSeatID < MetronomeSDK::Internal::Type::BaseModel
|
|
7007
|
+
OrHash =
|
|
7008
|
+
T.type_alias do
|
|
7009
|
+
T.any(
|
|
7010
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddSeatID,
|
|
7011
|
+
MetronomeSDK::Internal::AnyHash
|
|
7012
|
+
)
|
|
7013
|
+
end
|
|
7014
|
+
|
|
7015
|
+
sig { returns(T::Array[String]) }
|
|
7016
|
+
attr_accessor :seat_ids
|
|
7017
|
+
|
|
7018
|
+
# Assigned seats will be added/removed starting at this date.
|
|
7019
|
+
sig { returns(Time) }
|
|
7020
|
+
attr_accessor :starting_at
|
|
7021
|
+
|
|
7022
|
+
sig do
|
|
7023
|
+
params(seat_ids: T::Array[String], starting_at: Time).returns(
|
|
7024
|
+
T.attached_class
|
|
7025
|
+
)
|
|
7026
|
+
end
|
|
7027
|
+
def self.new(
|
|
7028
|
+
seat_ids:,
|
|
7029
|
+
# Assigned seats will be added/removed starting at this date.
|
|
7030
|
+
starting_at:
|
|
7031
|
+
)
|
|
7032
|
+
end
|
|
7033
|
+
|
|
7034
|
+
sig do
|
|
7035
|
+
override.returns(
|
|
7036
|
+
{ seat_ids: T::Array[String], starting_at: Time }
|
|
7037
|
+
)
|
|
7038
|
+
end
|
|
7039
|
+
def to_hash
|
|
7040
|
+
end
|
|
7041
|
+
end
|
|
7042
|
+
|
|
7043
|
+
class AddUnassignedSeat < MetronomeSDK::Internal::Type::BaseModel
|
|
7044
|
+
OrHash =
|
|
7045
|
+
T.type_alias do
|
|
7046
|
+
T.any(
|
|
7047
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::AddUnassignedSeat,
|
|
7048
|
+
MetronomeSDK::Internal::AnyHash
|
|
7049
|
+
)
|
|
7050
|
+
end
|
|
7051
|
+
|
|
7052
|
+
# The number of unassigned seats on the subscription will increase/decrease by
|
|
7053
|
+
# this delta. Must be greater than 0.
|
|
7054
|
+
sig { returns(Float) }
|
|
7055
|
+
attr_accessor :quantity
|
|
7056
|
+
|
|
7057
|
+
# Unassigned seats will be updated starting at this date.
|
|
7058
|
+
sig { returns(Time) }
|
|
7059
|
+
attr_accessor :starting_at
|
|
7060
|
+
|
|
7061
|
+
sig do
|
|
7062
|
+
params(quantity: Float, starting_at: Time).returns(
|
|
7063
|
+
T.attached_class
|
|
7064
|
+
)
|
|
7065
|
+
end
|
|
7066
|
+
def self.new(
|
|
7067
|
+
# The number of unassigned seats on the subscription will increase/decrease by
|
|
7068
|
+
# this delta. Must be greater than 0.
|
|
7069
|
+
quantity:,
|
|
7070
|
+
# Unassigned seats will be updated starting at this date.
|
|
7071
|
+
starting_at:
|
|
7072
|
+
)
|
|
7073
|
+
end
|
|
7074
|
+
|
|
7075
|
+
sig { override.returns({ quantity: Float, starting_at: Time }) }
|
|
7076
|
+
def to_hash
|
|
7077
|
+
end
|
|
7078
|
+
end
|
|
7079
|
+
|
|
7080
|
+
class RemoveSeatID < MetronomeSDK::Internal::Type::BaseModel
|
|
7081
|
+
OrHash =
|
|
7082
|
+
T.type_alias do
|
|
7083
|
+
T.any(
|
|
7084
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveSeatID,
|
|
7085
|
+
MetronomeSDK::Internal::AnyHash
|
|
7086
|
+
)
|
|
7087
|
+
end
|
|
7088
|
+
|
|
7089
|
+
sig { returns(T::Array[String]) }
|
|
7090
|
+
attr_accessor :seat_ids
|
|
7091
|
+
|
|
7092
|
+
# Assigned seats will be added/removed starting at this date.
|
|
7093
|
+
sig { returns(Time) }
|
|
7094
|
+
attr_accessor :starting_at
|
|
7095
|
+
|
|
7096
|
+
sig do
|
|
7097
|
+
params(seat_ids: T::Array[String], starting_at: Time).returns(
|
|
7098
|
+
T.attached_class
|
|
7099
|
+
)
|
|
7100
|
+
end
|
|
7101
|
+
def self.new(
|
|
7102
|
+
seat_ids:,
|
|
7103
|
+
# Assigned seats will be added/removed starting at this date.
|
|
7104
|
+
starting_at:
|
|
7105
|
+
)
|
|
7106
|
+
end
|
|
7107
|
+
|
|
7108
|
+
sig do
|
|
7109
|
+
override.returns(
|
|
7110
|
+
{ seat_ids: T::Array[String], starting_at: Time }
|
|
7111
|
+
)
|
|
7112
|
+
end
|
|
7113
|
+
def to_hash
|
|
7114
|
+
end
|
|
7115
|
+
end
|
|
7116
|
+
|
|
7117
|
+
class RemoveUnassignedSeat < MetronomeSDK::Internal::Type::BaseModel
|
|
7118
|
+
OrHash =
|
|
7119
|
+
T.type_alias do
|
|
7120
|
+
T.any(
|
|
7121
|
+
MetronomeSDK::Models::V2::ContractGetEditHistoryResponse::Data::UpdateSubscription::SeatUpdates::RemoveUnassignedSeat,
|
|
7122
|
+
MetronomeSDK::Internal::AnyHash
|
|
7123
|
+
)
|
|
7124
|
+
end
|
|
7125
|
+
|
|
7126
|
+
# The number of unassigned seats on the subscription will increase/decrease by
|
|
7127
|
+
# this delta. Must be greater than 0.
|
|
7128
|
+
sig { returns(Float) }
|
|
7129
|
+
attr_accessor :quantity
|
|
7130
|
+
|
|
7131
|
+
# Unassigned seats will be updated starting at this date.
|
|
7132
|
+
sig { returns(Time) }
|
|
7133
|
+
attr_accessor :starting_at
|
|
7134
|
+
|
|
7135
|
+
sig do
|
|
7136
|
+
params(quantity: Float, starting_at: Time).returns(
|
|
7137
|
+
T.attached_class
|
|
7138
|
+
)
|
|
7139
|
+
end
|
|
7140
|
+
def self.new(
|
|
7141
|
+
# The number of unassigned seats on the subscription will increase/decrease by
|
|
7142
|
+
# this delta. Must be greater than 0.
|
|
7143
|
+
quantity:,
|
|
7144
|
+
# Unassigned seats will be updated starting at this date.
|
|
7145
|
+
starting_at:
|
|
7146
|
+
)
|
|
7147
|
+
end
|
|
7148
|
+
|
|
7149
|
+
sig { override.returns({ quantity: Float, starting_at: Time }) }
|
|
7150
|
+
def to_hash
|
|
7151
|
+
end
|
|
7152
|
+
end
|
|
7153
|
+
end
|
|
6790
7154
|
end
|
|
6791
7155
|
end
|
|
6792
7156
|
end
|
|
@@ -68,6 +68,8 @@ module MetronomeSDK
|
|
|
68
68
|
T::Array[MetronomeSDK::V1::AlertCreateParams::GroupValue::OrHash],
|
|
69
69
|
invoice_types_filter: T::Array[String],
|
|
70
70
|
plan_id: String,
|
|
71
|
+
seat_filter:
|
|
72
|
+
MetronomeSDK::V1::AlertCreateParams::SeatFilter::OrHash,
|
|
71
73
|
uniqueness_key: String,
|
|
72
74
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
|
73
75
|
).returns(MetronomeSDK::Models::V1::AlertCreateResponse)
|
|
@@ -112,6 +114,9 @@ module MetronomeSDK
|
|
|
112
114
|
# If provided, will create this threshold notification for this specific plan. To
|
|
113
115
|
# create a notification for all customers, do not specify a `plan_id`.
|
|
114
116
|
plan_id: nil,
|
|
117
|
+
# Required for `low_remaining_seat_balance_reached` notifications. The alert is
|
|
118
|
+
# scoped to this seat group key-value pair.
|
|
119
|
+
seat_filter: nil,
|
|
115
120
|
# Prevents the creation of duplicates. If a request to create a record is made
|
|
116
121
|
# with a previously used uniqueness key, a new record will not be created and the
|
|
117
122
|
# request will fail with a 409 error.
|
|
@@ -69,7 +69,6 @@ module MetronomeSDK
|
|
|
69
69
|
pricing_group_values: T::Hash[Symbol, String],
|
|
70
70
|
quantity: Float,
|
|
71
71
|
tiers: T::Array[MetronomeSDK::Tier::OrHash],
|
|
72
|
-
use_list_prices: T::Boolean,
|
|
73
72
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
|
74
73
|
).returns(
|
|
75
74
|
MetronomeSDK::Models::V1::Contracts::RateCards::RateAddResponse
|
|
@@ -113,10 +112,6 @@ module MetronomeSDK
|
|
|
113
112
|
quantity: nil,
|
|
114
113
|
# Only set for TIERED rate_type.
|
|
115
114
|
tiers: nil,
|
|
116
|
-
# Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed
|
|
117
|
-
# using list prices rather than the standard rates for this product on the
|
|
118
|
-
# contract.
|
|
119
|
-
use_list_prices: nil,
|
|
120
115
|
request_options: {}
|
|
121
116
|
)
|
|
122
117
|
end
|
|
@@ -184,6 +184,8 @@ module MetronomeSDK
|
|
|
184
184
|
T::Array[
|
|
185
185
|
MetronomeSDK::V1::ContractCreateParams::ResellerRoyalty::OrHash
|
|
186
186
|
],
|
|
187
|
+
revenue_system_configuration:
|
|
188
|
+
MetronomeSDK::V1::ContractCreateParams::RevenueSystemConfiguration::OrHash,
|
|
187
189
|
salesforce_opportunity_id: String,
|
|
188
190
|
scheduled_charges:
|
|
189
191
|
T::Array[
|
|
@@ -246,6 +248,9 @@ module MetronomeSDK
|
|
|
246
248
|
recurring_credits: nil,
|
|
247
249
|
# This field's availability is dependent on your client's configuration.
|
|
248
250
|
reseller_royalties: nil,
|
|
251
|
+
# The revenue system configuration associated with a contract. Provide either an
|
|
252
|
+
# ID or the provider and delivery method.
|
|
253
|
+
revenue_system_configuration: nil,
|
|
249
254
|
# This field's availability is dependent on your client's configuration.
|
|
250
255
|
salesforce_opportunity_id: nil,
|
|
251
256
|
scheduled_charges: nil,
|
|
@@ -363,6 +368,7 @@ module MetronomeSDK
|
|
|
363
368
|
reason: String,
|
|
364
369
|
segment_id: String,
|
|
365
370
|
contract_id: String,
|
|
371
|
+
per_group_amounts: T::Hash[Symbol, Float],
|
|
366
372
|
timestamp: Time,
|
|
367
373
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
|
368
374
|
).void
|
|
@@ -380,6 +386,9 @@ module MetronomeSDK
|
|
|
380
386
|
segment_id:,
|
|
381
387
|
# ID of the contract to update. Leave blank to update a customer level balance.
|
|
382
388
|
contract_id: nil,
|
|
389
|
+
# If using individually configured commits/credits attached to seat managed
|
|
390
|
+
# subscriptions, the amount to add for each seat. Must sum to total amount.
|
|
391
|
+
per_group_amounts: nil,
|
|
383
392
|
# RFC 3339 timestamp indicating when the manual adjustment takes place. If not
|
|
384
393
|
# provided, it will default to the start of the segment.
|
|
385
394
|
timestamp: nil,
|
|
@@ -70,6 +70,8 @@ module MetronomeSDK
|
|
|
70
70
|
],
|
|
71
71
|
plans_or_contracts:
|
|
72
72
|
MetronomeSDK::V1::Customers::AlertRetrieveParams::PlansOrContracts::OrSymbol,
|
|
73
|
+
seat_filter:
|
|
74
|
+
MetronomeSDK::V1::Customers::AlertRetrieveParams::SeatFilter::OrHash,
|
|
73
75
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
|
74
76
|
).returns(
|
|
75
77
|
MetronomeSDK::Models::V1::Customers::AlertRetrieveResponse
|
|
@@ -86,6 +88,9 @@ module MetronomeSDK
|
|
|
86
88
|
# When parallel threshold notifications are enabled during migration, this flag
|
|
87
89
|
# denotes whether to fetch notifications for plans or contracts.
|
|
88
90
|
plans_or_contracts: nil,
|
|
91
|
+
# Only allowed for `low_remaining_seat_balance_reached` notifications. This
|
|
92
|
+
# filters alerts by the seat group key-value pair.
|
|
93
|
+
seat_filter: nil,
|
|
89
94
|
request_options: {}
|
|
90
95
|
)
|
|
91
96
|
end
|
|
@@ -13,6 +13,8 @@ module MetronomeSDK
|
|
|
13
13
|
billing_provider_type:
|
|
14
14
|
MetronomeSDK::V1::Customers::BillingConfigCreateParams::BillingProviderType::OrSymbol,
|
|
15
15
|
billing_provider_customer_id: String,
|
|
16
|
+
aws_customer_account_id: String,
|
|
17
|
+
aws_customer_id: String,
|
|
16
18
|
aws_product_code: String,
|
|
17
19
|
aws_region:
|
|
18
20
|
MetronomeSDK::V1::Customers::BillingConfigCreateParams::AwsRegion::OrSymbol,
|
|
@@ -22,16 +24,20 @@ module MetronomeSDK
|
|
|
22
24
|
).void
|
|
23
25
|
end
|
|
24
26
|
def create(
|
|
25
|
-
# Path param
|
|
27
|
+
# Path param
|
|
26
28
|
customer_id:,
|
|
27
29
|
# Path param: The billing provider (e.g. stripe)
|
|
28
30
|
billing_provider_type:,
|
|
29
31
|
# Body param: The customer ID in the billing provider's system. For Azure, this is
|
|
30
32
|
# the subscription ID.
|
|
31
33
|
billing_provider_customer_id:,
|
|
32
|
-
# Body param
|
|
34
|
+
# Body param
|
|
35
|
+
aws_customer_account_id: nil,
|
|
36
|
+
# Body param
|
|
37
|
+
aws_customer_id: nil,
|
|
38
|
+
# Body param
|
|
33
39
|
aws_product_code: nil,
|
|
34
|
-
# Body param
|
|
40
|
+
# Body param
|
|
35
41
|
aws_region: nil,
|
|
36
42
|
# Body param: The collection method for the customer's invoices. NOTE:
|
|
37
43
|
# `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
|
|
@@ -56,9 +56,9 @@ module MetronomeSDK
|
|
|
56
56
|
)
|
|
57
57
|
end
|
|
58
58
|
def retrieve(
|
|
59
|
-
# Path param
|
|
59
|
+
# Path param
|
|
60
60
|
customer_id:,
|
|
61
|
-
# Path param
|
|
61
|
+
# Path param
|
|
62
62
|
invoice_id:,
|
|
63
63
|
# Query param: If set, all zero quantity line items will be filtered out of the
|
|
64
64
|
# response
|
|
@@ -133,7 +133,7 @@ module MetronomeSDK
|
|
|
133
133
|
)
|
|
134
134
|
end
|
|
135
135
|
def list(
|
|
136
|
-
# Path param
|
|
136
|
+
# Path param
|
|
137
137
|
customer_id:,
|
|
138
138
|
# Query param: Only return invoices for the specified credit type
|
|
139
139
|
credit_type_id: nil,
|
|
@@ -176,7 +176,7 @@ module MetronomeSDK
|
|
|
176
176
|
)
|
|
177
177
|
end
|
|
178
178
|
def add_charge(
|
|
179
|
-
# Path param
|
|
179
|
+
# Path param
|
|
180
180
|
customer_id:,
|
|
181
181
|
# Body param: The Metronome ID of the charge to add to the invoice. Note that the
|
|
182
182
|
# charge must be on a product that is not on the current plan, and the product
|
|
@@ -184,14 +184,14 @@ module MetronomeSDK
|
|
|
184
184
|
charge_id:,
|
|
185
185
|
# Body param: The Metronome ID of the customer plan to add the charge to.
|
|
186
186
|
customer_plan_id:,
|
|
187
|
-
# Body param
|
|
187
|
+
# Body param
|
|
188
188
|
description:,
|
|
189
189
|
# Body param: The start_timestamp of the invoice to add the charge to.
|
|
190
190
|
invoice_start_timestamp:,
|
|
191
191
|
# Body param: The price of the charge. This price will match the currency on the
|
|
192
192
|
# invoice, e.g. USD cents.
|
|
193
193
|
price:,
|
|
194
|
-
# Body param
|
|
194
|
+
# Body param
|
|
195
195
|
quantity:,
|
|
196
196
|
request_options: {}
|
|
197
197
|
)
|
|
@@ -257,7 +257,7 @@ module MetronomeSDK
|
|
|
257
257
|
)
|
|
258
258
|
end
|
|
259
259
|
def list_breakdowns(
|
|
260
|
-
# Path param
|
|
260
|
+
# Path param
|
|
261
261
|
customer_id:,
|
|
262
262
|
# Query param: RFC 3339 timestamp. Breakdowns will only be returned for time
|
|
263
263
|
# windows that end on or before this time.
|
|
@@ -20,7 +20,7 @@ module MetronomeSDK
|
|
|
20
20
|
)
|
|
21
21
|
end
|
|
22
22
|
def list(
|
|
23
|
-
# Path param
|
|
23
|
+
# Path param
|
|
24
24
|
customer_id:,
|
|
25
25
|
# Query param: Max number of results that should be returned
|
|
26
26
|
limit: nil,
|
|
@@ -55,9 +55,9 @@ module MetronomeSDK
|
|
|
55
55
|
).returns(MetronomeSDK::Models::V1::Customers::PlanAddResponse)
|
|
56
56
|
end
|
|
57
57
|
def add(
|
|
58
|
-
# Path param
|
|
58
|
+
# Path param
|
|
59
59
|
customer_id:,
|
|
60
|
-
# Body param
|
|
60
|
+
# Body param
|
|
61
61
|
plan_id:,
|
|
62
62
|
# Body param: RFC 3339 timestamp for when the plan becomes active for this
|
|
63
63
|
# customer. Must be at 0:00 UTC (midnight).
|
|
@@ -97,7 +97,7 @@ module MetronomeSDK
|
|
|
97
97
|
).returns(MetronomeSDK::Models::V1::Customers::PlanEndResponse)
|
|
98
98
|
end
|
|
99
99
|
def end_(
|
|
100
|
-
# Path param
|
|
100
|
+
# Path param
|
|
101
101
|
customer_id:,
|
|
102
102
|
# Path param: the ID of a customer-plan relationship
|
|
103
103
|
customer_plan_id:,
|
|
@@ -135,7 +135,7 @@ module MetronomeSDK
|
|
|
135
135
|
)
|
|
136
136
|
end
|
|
137
137
|
def list_price_adjustments(
|
|
138
|
-
# Path param
|
|
138
|
+
# Path param
|
|
139
139
|
customer_id:,
|
|
140
140
|
# Path param: the ID of a customer-plan relationship
|
|
141
141
|
customer_plan_id:,
|