metronome-sdk 2.1.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 +39 -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 +18 -12
- data/lib/metronome_sdk/internal/util.rb +7 -2
- data/lib/metronome_sdk/models/contract_v2.rb +29 -2
- 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/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 +20 -2
- data/lib/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rb +8 -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.rb +6 -2
- data/lib/metronome_sdk/resources/v1/customers/alerts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/customers/billing_config.rb +5 -1
- data/lib/metronome_sdk/resources/v1/customers.rb +5 -3
- data/lib/metronome_sdk/resources/v1/settings.rb +3 -1
- 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/contract_v2.rbi +63 -6
- 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/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 +32 -0
- data/rbi/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbi +9 -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.rbi +9 -0
- data/rbi/metronome_sdk/resources/v1/customers/alerts.rbi +5 -0
- data/rbi/metronome_sdk/resources/v1/customers/billing_config.rbi +6 -0
- data/rbi/metronome_sdk/resources/v1/customers.rbi +8 -1
- data/rbi/metronome_sdk/resources/v1/settings.rbi +4 -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_v2.rbs +31 -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/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 +18 -0
- data/sig/metronome_sdk/models/v1/customers/plan_list_price_adjustments_response.rbs +7 -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.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 +5 -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.
|
|
@@ -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,
|
|
@@ -30,6 +32,10 @@ module MetronomeSDK
|
|
|
30
32
|
# the subscription ID.
|
|
31
33
|
billing_provider_customer_id:,
|
|
32
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
40
|
# Body param:
|
|
35
41
|
aws_region: nil,
|
|
@@ -69,6 +69,10 @@ module MetronomeSDK
|
|
|
69
69
|
T::Array[
|
|
70
70
|
MetronomeSDK::V1::CustomerCreateParams::CustomerBillingProviderConfiguration::OrHash
|
|
71
71
|
],
|
|
72
|
+
customer_revenue_system_configurations:
|
|
73
|
+
T::Array[
|
|
74
|
+
MetronomeSDK::V1::CustomerCreateParams::CustomerRevenueSystemConfiguration::OrHash
|
|
75
|
+
],
|
|
72
76
|
external_id: String,
|
|
73
77
|
ingest_aliases: T::Array[String],
|
|
74
78
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
|
@@ -81,6 +85,7 @@ module MetronomeSDK
|
|
|
81
85
|
# Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
|
|
82
86
|
custom_fields: nil,
|
|
83
87
|
customer_billing_provider_configurations: nil,
|
|
88
|
+
customer_revenue_system_configurations: nil,
|
|
84
89
|
# (deprecated, use ingest_aliases instead) an alias that can be used to refer to
|
|
85
90
|
# this customer in usage events
|
|
86
91
|
external_id: nil,
|
|
@@ -335,7 +340,9 @@ module MetronomeSDK
|
|
|
335
340
|
MetronomeSDK::V1::CustomerSetBillingConfigurationsParams::Data::OrHash
|
|
336
341
|
],
|
|
337
342
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
|
338
|
-
).
|
|
343
|
+
).returns(
|
|
344
|
+
MetronomeSDK::Models::V1::CustomerSetBillingConfigurationsResponse
|
|
345
|
+
)
|
|
339
346
|
end
|
|
340
347
|
def set_billing_configurations(data:, request_options: {})
|
|
341
348
|
end
|
|
@@ -18,6 +18,7 @@ module MetronomeSDK
|
|
|
18
18
|
avalara_password: String,
|
|
19
19
|
avalara_username: String,
|
|
20
20
|
delivery_method_ids: T::Array[String],
|
|
21
|
+
commit_transactions: T::Boolean,
|
|
21
22
|
request_options: MetronomeSDK::RequestOptions::OrHash
|
|
22
23
|
).returns(
|
|
23
24
|
MetronomeSDK::Models::V1::SettingUpsertAvalaraCredentialsResponse
|
|
@@ -33,6 +34,9 @@ module MetronomeSDK
|
|
|
33
34
|
# The delivery method IDs of the billing provider configurations to update, can be
|
|
34
35
|
# found in the response of the `/listConfiguredBillingProviders` endpoint.
|
|
35
36
|
delivery_method_ids:,
|
|
37
|
+
# Commit transactions if you want Metronome tax calculations used for reporting
|
|
38
|
+
# and tax filings.
|
|
39
|
+
commit_transactions: nil,
|
|
36
40
|
request_options: {}
|
|
37
41
|
)
|
|
38
42
|
end
|
|
@@ -300,11 +300,13 @@ module MetronomeSDK
|
|
|
300
300
|
MetronomeSDK::V2::ContractEditCommitParams::AccessSchedule::OrHash,
|
|
301
301
|
applicable_product_ids: T.nilable(T::Array[String]),
|
|
302
302
|
applicable_product_tags: T.nilable(T::Array[String]),
|
|
303
|
+
description: String,
|
|
303
304
|
hierarchy_configuration:
|
|
304
305
|
MetronomeSDK::CommitHierarchyConfiguration::OrHash,
|
|
305
306
|
invoice_contract_id: String,
|
|
306
307
|
invoice_schedule:
|
|
307
308
|
MetronomeSDK::V2::ContractEditCommitParams::InvoiceSchedule::OrHash,
|
|
309
|
+
name: String,
|
|
308
310
|
priority: T.nilable(Float),
|
|
309
311
|
product_id: String,
|
|
310
312
|
rate_type:
|
|
@@ -328,11 +330,15 @@ module MetronomeSDK
|
|
|
328
330
|
# applicable_product_tags or specifiers are not provided, the commit applies to
|
|
329
331
|
# all products.
|
|
330
332
|
applicable_product_tags: nil,
|
|
333
|
+
# Updated description for the commit
|
|
334
|
+
description: nil,
|
|
331
335
|
# Optional configuration for commit hierarchy access control
|
|
332
336
|
hierarchy_configuration: nil,
|
|
333
337
|
# ID of contract to use for invoicing
|
|
334
338
|
invoice_contract_id: nil,
|
|
335
339
|
invoice_schedule: nil,
|
|
340
|
+
# Updated name for the commit
|
|
341
|
+
name: nil,
|
|
336
342
|
# If multiple commits are applicable, the one with the lower priority will apply
|
|
337
343
|
# first.
|
|
338
344
|
priority: nil,
|
|
@@ -376,8 +382,10 @@ module MetronomeSDK
|
|
|
376
382
|
MetronomeSDK::V2::ContractEditCreditParams::AccessSchedule::OrHash,
|
|
377
383
|
applicable_product_ids: T.nilable(T::Array[String]),
|
|
378
384
|
applicable_product_tags: T.nilable(T::Array[String]),
|
|
385
|
+
description: String,
|
|
379
386
|
hierarchy_configuration:
|
|
380
387
|
MetronomeSDK::CommitHierarchyConfiguration::OrHash,
|
|
388
|
+
name: String,
|
|
381
389
|
priority: T.nilable(Float),
|
|
382
390
|
product_id: String,
|
|
383
391
|
rate_type:
|
|
@@ -399,8 +407,12 @@ module MetronomeSDK
|
|
|
399
407
|
# Which tags the credit applies to. If both applicable_product_ids and
|
|
400
408
|
# applicable_product_tags are not provided, the credit applies to all products.
|
|
401
409
|
applicable_product_tags: nil,
|
|
410
|
+
# Updated description for the credit
|
|
411
|
+
description: nil,
|
|
402
412
|
# Optional configuration for credit hierarchy access control
|
|
403
413
|
hierarchy_configuration: nil,
|
|
414
|
+
# Updated name for the credit
|
|
415
|
+
name: nil,
|
|
404
416
|
# If multiple commits are applicable, the one with the lower priority will apply
|
|
405
417
|
# first.
|
|
406
418
|
priority: nil,
|
|
@@ -17,7 +17,10 @@ module MetronomeSDK
|
|
|
17
17
|
|
|
18
18
|
DEFAULT_MAX_CONNECTIONS: Integer
|
|
19
19
|
|
|
20
|
-
def self.connect: (
|
|
20
|
+
def self.connect: (
|
|
21
|
+
cert_store: OpenSSL::X509::Store,
|
|
22
|
+
url: URI::Generic
|
|
23
|
+
) -> top
|
|
21
24
|
|
|
22
25
|
def self.calibrate_socket_timeout: (top conn, Float deadline) -> void
|
|
23
26
|
|