metronome-sdk 0.1.0.pre.alpha.4 → 0.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 +30 -0
- data/README.md +1 -1
- data/lib/metronome_sdk/internal/cursor_page.rb +1 -1
- data/lib/metronome_sdk/internal/transport/base_client.rb +1 -1
- data/lib/metronome_sdk/models/commit.rb +81 -8
- data/lib/metronome_sdk/models/contract_without_amendments.rb +368 -2
- data/lib/metronome_sdk/models/credit.rb +67 -6
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +9 -11
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +399 -12
- data/lib/metronome_sdk/models/v1/contract_list_balances_params.rb +9 -1
- data/lib/metronome_sdk/models/v1/customers/commit_list_params.rb +9 -1
- data/lib/metronome_sdk/models/v1/customers/credit_list_params.rb +9 -1
- data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +29 -1
- data/lib/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rb +2 -0
- data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +2 -0
- data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +2 -0
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +417 -18
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +776 -12
- data/lib/metronome_sdk/models/v2/contract_list_response.rb +529 -22
- data/lib/metronome_sdk/models/v2/contract_retrieve_response.rb +529 -22
- data/lib/metronome_sdk/resources/v1/alerts.rb +2 -2
- data/lib/metronome_sdk/resources/v1/contracts.rb +3 -1
- data/lib/metronome_sdk/resources/v1/customers/commits.rb +3 -1
- data/lib/metronome_sdk/resources/v1/customers/credits.rb +3 -1
- data/lib/metronome_sdk/version.rb +1 -1
- data/rbi/metronome_sdk/internal/transport/base_client.rbi +1 -1
- data/rbi/metronome_sdk/models/commit.rbi +173 -15
- data/rbi/metronome_sdk/models/contract_without_amendments.rbi +888 -6
- data/rbi/metronome_sdk/models/credit.rbi +141 -12
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +16 -18
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +1160 -226
- data/rbi/metronome_sdk/models/v1/contract_list_balances_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customers/commit_list_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customers/credit_list_params.rbi +11 -0
- data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +60 -0
- data/rbi/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rbi +10 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +4 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +4 -0
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +1192 -234
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +2155 -87
- data/rbi/metronome_sdk/models/v2/contract_list_response.rbi +1260 -47
- data/rbi/metronome_sdk/models/v2/contract_retrieve_response.rbi +1260 -47
- data/rbi/metronome_sdk/resources/v1/alerts.rbi +5 -5
- data/rbi/metronome_sdk/resources/v1/contracts.rbi +3 -0
- data/rbi/metronome_sdk/resources/v1/customers/commits.rbi +3 -0
- data/rbi/metronome_sdk/resources/v1/customers/credits.rbi +3 -0
- data/rbi/metronome_sdk/resources/v2/contracts.rbi +4 -0
- data/sig/metronome_sdk/internal/transport/base_client.rbs +1 -1
- data/sig/metronome_sdk/models/commit.rbs +93 -15
- data/sig/metronome_sdk/models/contract_without_amendments.rbs +366 -6
- data/sig/metronome_sdk/models/credit.rbs +73 -9
- data/sig/metronome_sdk/models/v1/alert_create_params.rbs +9 -9
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +376 -3
- data/sig/metronome_sdk/models/v1/contract_list_balances_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/customers/commit_list_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/customers/credit_list_params.rbs +7 -0
- data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +21 -0
- data/sig/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rbs +4 -0
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +376 -3
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +858 -6
- data/sig/metronome_sdk/models/v2/contract_list_response.rbs +558 -30
- data/sig/metronome_sdk/models/v2/contract_retrieve_response.rbs +558 -30
- data/sig/metronome_sdk/resources/v1/alerts.rbs +1 -1
- data/sig/metronome_sdk/resources/v1/contracts.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/customers/commits.rbs +1 -0
- data/sig/metronome_sdk/resources/v1/customers/credits.rbs +1 -0
- metadata +4 -4
@@ -771,6 +771,13 @@ module MetronomeSDK
|
|
771
771
|
# @return [Time, nil]
|
772
772
|
optional :ending_before, Time
|
773
773
|
|
774
|
+
# @!attribute hierarchy_configuration
|
775
|
+
# Optional configuration for recurring commit/credit hierarchy access control
|
776
|
+
#
|
777
|
+
# @return [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration, nil]
|
778
|
+
optional :hierarchy_configuration,
|
779
|
+
-> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration }
|
780
|
+
|
774
781
|
# @!attribute invoice_amount
|
775
782
|
# The amount the customer should be billed for the commit. Not required.
|
776
783
|
#
|
@@ -829,7 +836,14 @@ module MetronomeSDK
|
|
829
836
|
MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::ContractWithoutAmendments::RecurringCommit::Specifier]
|
830
837
|
}
|
831
838
|
|
832
|
-
# @!
|
839
|
+
# @!attribute subscription_config
|
840
|
+
# Attach a subscription to the recurring commit/credit.
|
841
|
+
#
|
842
|
+
# @return [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig, nil]
|
843
|
+
optional :subscription_config,
|
844
|
+
-> { MetronomeSDK::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig }
|
845
|
+
|
846
|
+
# @!method initialize(id:, access_amount:, commit_duration:, priority:, product:, rate_type:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, contract: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, invoice_amount: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, subscription_config: nil)
|
833
847
|
# Some parameter documentations has been truncated, see
|
834
848
|
# {MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit} for more
|
835
849
|
# details.
|
@@ -858,6 +872,8 @@ module MetronomeSDK
|
|
858
872
|
#
|
859
873
|
# @param ending_before [Time] Determines when the contract will stop creating recurring commits. Optional
|
860
874
|
#
|
875
|
+
# @param hierarchy_configuration [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration] Optional configuration for recurring commit/credit hierarchy access control
|
876
|
+
#
|
861
877
|
# @param invoice_amount [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::InvoiceAmount] The amount the customer should be billed for the commit. Not required.
|
862
878
|
#
|
863
879
|
# @param name [String] Displayed on invoices. Will be passed through to the individual commits
|
@@ -871,6 +887,8 @@ module MetronomeSDK
|
|
871
887
|
# @param rollover_fraction [Float] Will be passed down to the individual commits. This controls how much of an indi
|
872
888
|
#
|
873
889
|
# @param specifiers [Array<MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::Specifier>] List of filters that determine what kind of customer usage draws down a commit o
|
890
|
+
#
|
891
|
+
# @param subscription_config [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig] Attach a subscription to the recurring commit/credit.
|
874
892
|
|
875
893
|
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit#access_amount
|
876
894
|
class AccessAmount < MetronomeSDK::Internal::Type::BaseModel
|
@@ -968,6 +986,117 @@ module MetronomeSDK
|
|
968
986
|
# @param id [String]
|
969
987
|
end
|
970
988
|
|
989
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit#hierarchy_configuration
|
990
|
+
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
991
|
+
# @!attribute child_access
|
992
|
+
#
|
993
|
+
# @return [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs]
|
994
|
+
required :child_access,
|
995
|
+
union: -> {
|
996
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess
|
997
|
+
}
|
998
|
+
|
999
|
+
# @!method initialize(child_access:)
|
1000
|
+
# Optional configuration for recurring commit/credit hierarchy access control
|
1001
|
+
#
|
1002
|
+
# @param child_access [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs]
|
1003
|
+
|
1004
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration#child_access
|
1005
|
+
module ChildAccess
|
1006
|
+
extend MetronomeSDK::Internal::Type::Union
|
1007
|
+
|
1008
|
+
variant -> {
|
1009
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
1010
|
+
}
|
1011
|
+
|
1012
|
+
variant -> {
|
1013
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
variant -> {
|
1017
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
1021
|
+
# @!attribute type
|
1022
|
+
#
|
1023
|
+
# @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::Type]
|
1024
|
+
required :type,
|
1025
|
+
enum: -> {
|
1026
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::Type
|
1027
|
+
}
|
1028
|
+
|
1029
|
+
# @!method initialize(type:)
|
1030
|
+
# @param type [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::Type]
|
1031
|
+
|
1032
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll#type
|
1033
|
+
module Type
|
1034
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1035
|
+
|
1036
|
+
ALL = :ALL
|
1037
|
+
|
1038
|
+
# @!method self.values
|
1039
|
+
# @return [Array<Symbol>]
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
1044
|
+
# @!attribute type
|
1045
|
+
#
|
1046
|
+
# @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::Type]
|
1047
|
+
required :type,
|
1048
|
+
enum: -> {
|
1049
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::Type
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
# @!method initialize(type:)
|
1053
|
+
# @param type [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::Type]
|
1054
|
+
|
1055
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone#type
|
1056
|
+
module Type
|
1057
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1058
|
+
|
1059
|
+
NONE = :NONE
|
1060
|
+
|
1061
|
+
# @!method self.values
|
1062
|
+
# @return [Array<Symbol>]
|
1063
|
+
end
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
1067
|
+
# @!attribute contract_ids
|
1068
|
+
#
|
1069
|
+
# @return [Array<String>]
|
1070
|
+
required :contract_ids, MetronomeSDK::Internal::Type::ArrayOf[String]
|
1071
|
+
|
1072
|
+
# @!attribute type
|
1073
|
+
#
|
1074
|
+
# @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::Type]
|
1075
|
+
required :type,
|
1076
|
+
enum: -> {
|
1077
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::Type
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
# @!method initialize(contract_ids:, type:)
|
1081
|
+
# @param contract_ids [Array<String>]
|
1082
|
+
# @param type [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::Type]
|
1083
|
+
|
1084
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs#type
|
1085
|
+
module Type
|
1086
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1087
|
+
|
1088
|
+
CONTRACT_IDS = :CONTRACT_IDS
|
1089
|
+
|
1090
|
+
# @!method self.values
|
1091
|
+
# @return [Array<Symbol>]
|
1092
|
+
end
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# @!method self.variants
|
1096
|
+
# @return [Array(MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs)]
|
1097
|
+
end
|
1098
|
+
end
|
1099
|
+
|
971
1100
|
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit#invoice_amount
|
972
1101
|
class InvoiceAmount < MetronomeSDK::Internal::Type::BaseModel
|
973
1102
|
# @!attribute credit_type_id
|
@@ -1065,6 +1194,60 @@ module MetronomeSDK
|
|
1065
1194
|
#
|
1066
1195
|
# @param product_tags [Array<String>] If provided, the specifier will only apply to products with all the specified ta
|
1067
1196
|
end
|
1197
|
+
|
1198
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit#subscription_config
|
1199
|
+
class SubscriptionConfig < MetronomeSDK::Internal::Type::BaseModel
|
1200
|
+
# @!attribute allocation
|
1201
|
+
#
|
1202
|
+
# @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig::Allocation]
|
1203
|
+
required :allocation,
|
1204
|
+
enum: -> {
|
1205
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig::Allocation
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
# @!attribute apply_seat_increase_config
|
1209
|
+
#
|
1210
|
+
# @return [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig]
|
1211
|
+
required :apply_seat_increase_config,
|
1212
|
+
-> {
|
1213
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig
|
1214
|
+
}
|
1215
|
+
|
1216
|
+
# @!attribute subscription_id
|
1217
|
+
#
|
1218
|
+
# @return [String]
|
1219
|
+
required :subscription_id, String
|
1220
|
+
|
1221
|
+
# @!method initialize(allocation:, apply_seat_increase_config:, subscription_id:)
|
1222
|
+
# Attach a subscription to the recurring commit/credit.
|
1223
|
+
#
|
1224
|
+
# @param allocation [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig::Allocation]
|
1225
|
+
# @param apply_seat_increase_config [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig]
|
1226
|
+
# @param subscription_id [String]
|
1227
|
+
|
1228
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig#allocation
|
1229
|
+
module Allocation
|
1230
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1231
|
+
|
1232
|
+
INDIVIDUAL = :INDIVIDUAL
|
1233
|
+
POOLED = :POOLED
|
1234
|
+
|
1235
|
+
# @!method self.values
|
1236
|
+
# @return [Array<Symbol>]
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCommit::SubscriptionConfig#apply_seat_increase_config
|
1240
|
+
class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
|
1241
|
+
# @!attribute is_prorated
|
1242
|
+
# Indicates whether a mid-period seat increase should be prorated.
|
1243
|
+
#
|
1244
|
+
# @return [Boolean]
|
1245
|
+
required :is_prorated, MetronomeSDK::Internal::Type::Boolean
|
1246
|
+
|
1247
|
+
# @!method initialize(is_prorated:)
|
1248
|
+
# @param is_prorated [Boolean] Indicates whether a mid-period seat increase should be prorated.
|
1249
|
+
end
|
1250
|
+
end
|
1068
1251
|
end
|
1069
1252
|
|
1070
1253
|
class RecurringCredit < MetronomeSDK::Internal::Type::BaseModel
|
@@ -1140,6 +1323,13 @@ module MetronomeSDK
|
|
1140
1323
|
# @return [Time, nil]
|
1141
1324
|
optional :ending_before, Time
|
1142
1325
|
|
1326
|
+
# @!attribute hierarchy_configuration
|
1327
|
+
# Optional configuration for recurring commit/credit hierarchy access control
|
1328
|
+
#
|
1329
|
+
# @return [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration, nil]
|
1330
|
+
optional :hierarchy_configuration,
|
1331
|
+
-> { MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration }
|
1332
|
+
|
1143
1333
|
# @!attribute name
|
1144
1334
|
# Displayed on invoices. Will be passed through to the individual commits
|
1145
1335
|
#
|
@@ -1189,7 +1379,14 @@ module MetronomeSDK
|
|
1189
1379
|
MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::ContractWithoutAmendments::RecurringCredit::Specifier]
|
1190
1380
|
}
|
1191
1381
|
|
1192
|
-
# @!
|
1382
|
+
# @!attribute subscription_config
|
1383
|
+
# Attach a subscription to the recurring commit/credit.
|
1384
|
+
#
|
1385
|
+
# @return [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig, nil]
|
1386
|
+
optional :subscription_config,
|
1387
|
+
-> { MetronomeSDK::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig }
|
1388
|
+
|
1389
|
+
# @!method initialize(id:, access_amount:, commit_duration:, priority:, product:, rate_type:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, contract: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, subscription_config: nil)
|
1193
1390
|
# Some parameter documentations has been truncated, see
|
1194
1391
|
# {MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit} for more
|
1195
1392
|
# details.
|
@@ -1218,6 +1415,8 @@ module MetronomeSDK
|
|
1218
1415
|
#
|
1219
1416
|
# @param ending_before [Time] Determines when the contract will stop creating recurring commits. Optional
|
1220
1417
|
#
|
1418
|
+
# @param hierarchy_configuration [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration] Optional configuration for recurring commit/credit hierarchy access control
|
1419
|
+
#
|
1221
1420
|
# @param name [String] Displayed on invoices. Will be passed through to the individual commits
|
1222
1421
|
#
|
1223
1422
|
# @param netsuite_sales_order_id [String] Will be passed down to the individual commits
|
@@ -1229,6 +1428,8 @@ module MetronomeSDK
|
|
1229
1428
|
# @param rollover_fraction [Float] Will be passed down to the individual commits. This controls how much of an indi
|
1230
1429
|
#
|
1231
1430
|
# @param specifiers [Array<MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::Specifier>] List of filters that determine what kind of customer usage draws down a commit o
|
1431
|
+
#
|
1432
|
+
# @param subscription_config [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig] Attach a subscription to the recurring commit/credit.
|
1232
1433
|
|
1233
1434
|
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit#access_amount
|
1234
1435
|
class AccessAmount < MetronomeSDK::Internal::Type::BaseModel
|
@@ -1326,6 +1527,117 @@ module MetronomeSDK
|
|
1326
1527
|
# @param id [String]
|
1327
1528
|
end
|
1328
1529
|
|
1530
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit#hierarchy_configuration
|
1531
|
+
class HierarchyConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
1532
|
+
# @!attribute child_access
|
1533
|
+
#
|
1534
|
+
# @return [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs]
|
1535
|
+
required :child_access,
|
1536
|
+
union: -> {
|
1537
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess
|
1538
|
+
}
|
1539
|
+
|
1540
|
+
# @!method initialize(child_access:)
|
1541
|
+
# Optional configuration for recurring commit/credit hierarchy access control
|
1542
|
+
#
|
1543
|
+
# @param child_access [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs]
|
1544
|
+
|
1545
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration#child_access
|
1546
|
+
module ChildAccess
|
1547
|
+
extend MetronomeSDK::Internal::Type::Union
|
1548
|
+
|
1549
|
+
variant -> {
|
1550
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll
|
1551
|
+
}
|
1552
|
+
|
1553
|
+
variant -> {
|
1554
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone
|
1555
|
+
}
|
1556
|
+
|
1557
|
+
variant -> {
|
1558
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs
|
1559
|
+
}
|
1560
|
+
|
1561
|
+
class CommitHierarchyChildAccessAll < MetronomeSDK::Internal::Type::BaseModel
|
1562
|
+
# @!attribute type
|
1563
|
+
#
|
1564
|
+
# @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::Type]
|
1565
|
+
required :type,
|
1566
|
+
enum: -> {
|
1567
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::Type
|
1568
|
+
}
|
1569
|
+
|
1570
|
+
# @!method initialize(type:)
|
1571
|
+
# @param type [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll::Type]
|
1572
|
+
|
1573
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll#type
|
1574
|
+
module Type
|
1575
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1576
|
+
|
1577
|
+
ALL = :ALL
|
1578
|
+
|
1579
|
+
# @!method self.values
|
1580
|
+
# @return [Array<Symbol>]
|
1581
|
+
end
|
1582
|
+
end
|
1583
|
+
|
1584
|
+
class CommitHierarchyChildAccessNone < MetronomeSDK::Internal::Type::BaseModel
|
1585
|
+
# @!attribute type
|
1586
|
+
#
|
1587
|
+
# @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::Type]
|
1588
|
+
required :type,
|
1589
|
+
enum: -> {
|
1590
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::Type
|
1591
|
+
}
|
1592
|
+
|
1593
|
+
# @!method initialize(type:)
|
1594
|
+
# @param type [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone::Type]
|
1595
|
+
|
1596
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone#type
|
1597
|
+
module Type
|
1598
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1599
|
+
|
1600
|
+
NONE = :NONE
|
1601
|
+
|
1602
|
+
# @!method self.values
|
1603
|
+
# @return [Array<Symbol>]
|
1604
|
+
end
|
1605
|
+
end
|
1606
|
+
|
1607
|
+
class CommitHierarchyChildAccessContractIDs < MetronomeSDK::Internal::Type::BaseModel
|
1608
|
+
# @!attribute contract_ids
|
1609
|
+
#
|
1610
|
+
# @return [Array<String>]
|
1611
|
+
required :contract_ids, MetronomeSDK::Internal::Type::ArrayOf[String]
|
1612
|
+
|
1613
|
+
# @!attribute type
|
1614
|
+
#
|
1615
|
+
# @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::Type]
|
1616
|
+
required :type,
|
1617
|
+
enum: -> {
|
1618
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::Type
|
1619
|
+
}
|
1620
|
+
|
1621
|
+
# @!method initialize(contract_ids:, type:)
|
1622
|
+
# @param contract_ids [Array<String>]
|
1623
|
+
# @param type [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs::Type]
|
1624
|
+
|
1625
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs#type
|
1626
|
+
module Type
|
1627
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1628
|
+
|
1629
|
+
CONTRACT_IDS = :CONTRACT_IDS
|
1630
|
+
|
1631
|
+
# @!method self.values
|
1632
|
+
# @return [Array<Symbol>]
|
1633
|
+
end
|
1634
|
+
end
|
1635
|
+
|
1636
|
+
# @!method self.variants
|
1637
|
+
# @return [Array(MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessAll, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessNone, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::HierarchyConfiguration::ChildAccess::CommitHierarchyChildAccessContractIDs)]
|
1638
|
+
end
|
1639
|
+
end
|
1640
|
+
|
1329
1641
|
# Determines whether the first and last commit will be prorated. If not provided,
|
1330
1642
|
# the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).
|
1331
1643
|
#
|
@@ -1398,6 +1710,60 @@ module MetronomeSDK
|
|
1398
1710
|
#
|
1399
1711
|
# @param product_tags [Array<String>] If provided, the specifier will only apply to products with all the specified ta
|
1400
1712
|
end
|
1713
|
+
|
1714
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit#subscription_config
|
1715
|
+
class SubscriptionConfig < MetronomeSDK::Internal::Type::BaseModel
|
1716
|
+
# @!attribute allocation
|
1717
|
+
#
|
1718
|
+
# @return [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig::Allocation]
|
1719
|
+
required :allocation,
|
1720
|
+
enum: -> {
|
1721
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig::Allocation
|
1722
|
+
}
|
1723
|
+
|
1724
|
+
# @!attribute apply_seat_increase_config
|
1725
|
+
#
|
1726
|
+
# @return [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig]
|
1727
|
+
required :apply_seat_increase_config,
|
1728
|
+
-> {
|
1729
|
+
MetronomeSDK::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig
|
1730
|
+
}
|
1731
|
+
|
1732
|
+
# @!attribute subscription_id
|
1733
|
+
#
|
1734
|
+
# @return [String]
|
1735
|
+
required :subscription_id, String
|
1736
|
+
|
1737
|
+
# @!method initialize(allocation:, apply_seat_increase_config:, subscription_id:)
|
1738
|
+
# Attach a subscription to the recurring commit/credit.
|
1739
|
+
#
|
1740
|
+
# @param allocation [Symbol, MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig::Allocation]
|
1741
|
+
# @param apply_seat_increase_config [MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig]
|
1742
|
+
# @param subscription_id [String]
|
1743
|
+
|
1744
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig#allocation
|
1745
|
+
module Allocation
|
1746
|
+
extend MetronomeSDK::Internal::Type::Enum
|
1747
|
+
|
1748
|
+
INDIVIDUAL = :INDIVIDUAL
|
1749
|
+
POOLED = :POOLED
|
1750
|
+
|
1751
|
+
# @!method self.values
|
1752
|
+
# @return [Array<Symbol>]
|
1753
|
+
end
|
1754
|
+
|
1755
|
+
# @see MetronomeSDK::Models::ContractWithoutAmendments::RecurringCredit::SubscriptionConfig#apply_seat_increase_config
|
1756
|
+
class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
|
1757
|
+
# @!attribute is_prorated
|
1758
|
+
# Indicates whether a mid-period seat increase should be prorated.
|
1759
|
+
#
|
1760
|
+
# @return [Boolean]
|
1761
|
+
required :is_prorated, MetronomeSDK::Internal::Type::Boolean
|
1762
|
+
|
1763
|
+
# @!method initialize(is_prorated:)
|
1764
|
+
# @param is_prorated [Boolean] Indicates whether a mid-period seat increase should be prorated.
|
1765
|
+
end
|
1766
|
+
end
|
1401
1767
|
end
|
1402
1768
|
|
1403
1769
|
class ResellerRoyalty < MetronomeSDK::Internal::Type::BaseModel
|
@@ -77,7 +77,7 @@ module MetronomeSDK
|
|
77
77
|
# A list of ordered events that impact the balance of a credit. For example, an
|
78
78
|
# invoice deduction or an expiration.
|
79
79
|
#
|
80
|
-
# @return [Array<MetronomeSDK::Models::Credit::Ledger::CreditSegmentStartLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditAutomatedInvoiceDeductionLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditExpirationLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCreditedLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditManualLedgerEntry>, nil]
|
80
|
+
# @return [Array<MetronomeSDK::Models::Credit::Ledger::CreditSegmentStartLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditAutomatedInvoiceDeductionLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditExpirationLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCreditedLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditManualLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry>, nil]
|
81
81
|
optional :ledger, -> { MetronomeSDK::Internal::Type::ArrayOf[union: MetronomeSDK::Credit::Ledger] }
|
82
82
|
|
83
83
|
# @!attribute name
|
@@ -154,7 +154,7 @@ module MetronomeSDK
|
|
154
154
|
#
|
155
155
|
# @param hierarchy_configuration [MetronomeSDK::Models::Credit::HierarchyConfiguration] Optional configuration for credit hierarchy access control
|
156
156
|
#
|
157
|
-
# @param ledger [Array<MetronomeSDK::Models::Credit::Ledger::CreditSegmentStartLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditAutomatedInvoiceDeductionLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditExpirationLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCreditedLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditManualLedgerEntry>] A list of ordered events that impact the balance of a credit. For example, an in
|
157
|
+
# @param ledger [Array<MetronomeSDK::Models::Credit::Ledger::CreditSegmentStartLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditAutomatedInvoiceDeductionLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditExpirationLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCreditedLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditManualLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry>] A list of ordered events that impact the balance of a credit. For example, an in
|
158
158
|
#
|
159
159
|
# @param name [String]
|
160
160
|
#
|
@@ -331,6 +331,8 @@ module MetronomeSDK
|
|
331
331
|
|
332
332
|
variant -> { MetronomeSDK::Credit::Ledger::CreditManualLedgerEntry }
|
333
333
|
|
334
|
+
variant -> { MetronomeSDK::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry }
|
335
|
+
|
334
336
|
class CreditSegmentStartLedgerEntry < MetronomeSDK::Internal::Type::BaseModel
|
335
337
|
# @!attribute amount
|
336
338
|
#
|
@@ -396,12 +398,18 @@ module MetronomeSDK
|
|
396
398
|
required :type,
|
397
399
|
enum: -> { MetronomeSDK::Credit::Ledger::CreditAutomatedInvoiceDeductionLedgerEntry::Type }
|
398
400
|
|
399
|
-
# @!
|
401
|
+
# @!attribute contract_id
|
402
|
+
#
|
403
|
+
# @return [String, nil]
|
404
|
+
optional :contract_id, String
|
405
|
+
|
406
|
+
# @!method initialize(amount:, invoice_id:, segment_id:, timestamp:, type:, contract_id: nil)
|
400
407
|
# @param amount [Float]
|
401
408
|
# @param invoice_id [String]
|
402
409
|
# @param segment_id [String]
|
403
410
|
# @param timestamp [Time]
|
404
411
|
# @param type [Symbol, MetronomeSDK::Models::Credit::Ledger::CreditAutomatedInvoiceDeductionLedgerEntry::Type]
|
412
|
+
# @param contract_id [String]
|
405
413
|
|
406
414
|
# @see MetronomeSDK::Models::Credit::Ledger::CreditAutomatedInvoiceDeductionLedgerEntry#type
|
407
415
|
module Type
|
@@ -478,12 +486,18 @@ module MetronomeSDK
|
|
478
486
|
# @return [Symbol, MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry::Type]
|
479
487
|
required :type, enum: -> { MetronomeSDK::Credit::Ledger::CreditCanceledLedgerEntry::Type }
|
480
488
|
|
481
|
-
# @!
|
489
|
+
# @!attribute contract_id
|
490
|
+
#
|
491
|
+
# @return [String, nil]
|
492
|
+
optional :contract_id, String
|
493
|
+
|
494
|
+
# @!method initialize(amount:, invoice_id:, segment_id:, timestamp:, type:, contract_id: nil)
|
482
495
|
# @param amount [Float]
|
483
496
|
# @param invoice_id [String]
|
484
497
|
# @param segment_id [String]
|
485
498
|
# @param timestamp [Time]
|
486
499
|
# @param type [Symbol, MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry::Type]
|
500
|
+
# @param contract_id [String]
|
487
501
|
|
488
502
|
# @see MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry#type
|
489
503
|
module Type
|
@@ -522,12 +536,18 @@ module MetronomeSDK
|
|
522
536
|
# @return [Symbol, MetronomeSDK::Models::Credit::Ledger::CreditCreditedLedgerEntry::Type]
|
523
537
|
required :type, enum: -> { MetronomeSDK::Credit::Ledger::CreditCreditedLedgerEntry::Type }
|
524
538
|
|
525
|
-
# @!
|
539
|
+
# @!attribute contract_id
|
540
|
+
#
|
541
|
+
# @return [String, nil]
|
542
|
+
optional :contract_id, String
|
543
|
+
|
544
|
+
# @!method initialize(amount:, invoice_id:, segment_id:, timestamp:, type:, contract_id: nil)
|
526
545
|
# @param amount [Float]
|
527
546
|
# @param invoice_id [String]
|
528
547
|
# @param segment_id [String]
|
529
548
|
# @param timestamp [Time]
|
530
549
|
# @param type [Symbol, MetronomeSDK::Models::Credit::Ledger::CreditCreditedLedgerEntry::Type]
|
550
|
+
# @param contract_id [String]
|
531
551
|
|
532
552
|
# @see MetronomeSDK::Models::Credit::Ledger::CreditCreditedLedgerEntry#type
|
533
553
|
module Type
|
@@ -578,8 +598,49 @@ module MetronomeSDK
|
|
578
598
|
end
|
579
599
|
end
|
580
600
|
|
601
|
+
class CreditSeatBasedAdjustmentLedgerEntry < MetronomeSDK::Internal::Type::BaseModel
|
602
|
+
# @!attribute amount
|
603
|
+
#
|
604
|
+
# @return [Float]
|
605
|
+
required :amount, Float
|
606
|
+
|
607
|
+
# @!attribute segment_id
|
608
|
+
#
|
609
|
+
# @return [String]
|
610
|
+
required :segment_id, String
|
611
|
+
|
612
|
+
# @!attribute timestamp
|
613
|
+
#
|
614
|
+
# @return [Time]
|
615
|
+
required :timestamp, Time
|
616
|
+
|
617
|
+
# @!attribute type
|
618
|
+
#
|
619
|
+
# @return [Symbol, MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry::Type]
|
620
|
+
required :type,
|
621
|
+
enum: -> {
|
622
|
+
MetronomeSDK::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry::Type
|
623
|
+
}
|
624
|
+
|
625
|
+
# @!method initialize(amount:, segment_id:, timestamp:, type:)
|
626
|
+
# @param amount [Float]
|
627
|
+
# @param segment_id [String]
|
628
|
+
# @param timestamp [Time]
|
629
|
+
# @param type [Symbol, MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry::Type]
|
630
|
+
|
631
|
+
# @see MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry#type
|
632
|
+
module Type
|
633
|
+
extend MetronomeSDK::Internal::Type::Enum
|
634
|
+
|
635
|
+
CREDIT_SEAT_BASED_ADJUSTMENT = :CREDIT_SEAT_BASED_ADJUSTMENT
|
636
|
+
|
637
|
+
# @!method self.values
|
638
|
+
# @return [Array<Symbol>]
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
581
642
|
# @!method self.variants
|
582
|
-
# @return [Array(MetronomeSDK::Models::Credit::Ledger::CreditSegmentStartLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditAutomatedInvoiceDeductionLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditExpirationLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCreditedLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditManualLedgerEntry)]
|
643
|
+
# @return [Array(MetronomeSDK::Models::Credit::Ledger::CreditSegmentStartLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditAutomatedInvoiceDeductionLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditExpirationLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCanceledLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditCreditedLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditManualLedgerEntry, MetronomeSDK::Models::Credit::Ledger::CreditSeatBasedAdjustmentLedgerEntry)]
|
583
644
|
end
|
584
645
|
|
585
646
|
# @see MetronomeSDK::Models::Credit#rate_type
|
@@ -75,12 +75,13 @@ module MetronomeSDK
|
|
75
75
|
# @return [Boolean, nil]
|
76
76
|
optional :evaluate_on_create, MetronomeSDK::Internal::Type::Boolean
|
77
77
|
|
78
|
-
# @!attribute
|
79
|
-
#
|
80
|
-
#
|
78
|
+
# @!attribute group_values
|
79
|
+
# Only present for `spend_threshold_reached` alerts. Scope alert to a specific
|
80
|
+
# group key on individual line items.
|
81
81
|
#
|
82
|
-
# @return [MetronomeSDK::Models::V1::AlertCreateParams::
|
83
|
-
optional :
|
82
|
+
# @return [Array<MetronomeSDK::Models::V1::AlertCreateParams::GroupValue>, nil]
|
83
|
+
optional :group_values,
|
84
|
+
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::AlertCreateParams::GroupValue] }
|
84
85
|
|
85
86
|
# @!attribute invoice_types_filter
|
86
87
|
# Only supported for invoice_total_reached alerts. A list of invoice types to
|
@@ -104,7 +105,7 @@ module MetronomeSDK
|
|
104
105
|
# @return [String, nil]
|
105
106
|
optional :uniqueness_key, String
|
106
107
|
|
107
|
-
# @!method initialize(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,
|
108
|
+
# @!method initialize(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: {})
|
108
109
|
# Some parameter documentations has been truncated, see
|
109
110
|
# {MetronomeSDK::Models::V1::AlertCreateParams} for more details.
|
110
111
|
#
|
@@ -126,7 +127,7 @@ module MetronomeSDK
|
|
126
127
|
#
|
127
128
|
# @param evaluate_on_create [Boolean] If true, the alert will evaluate immediately on customers that already meet the
|
128
129
|
#
|
129
|
-
# @param
|
130
|
+
# @param group_values [Array<MetronomeSDK::Models::V1::AlertCreateParams::GroupValue>] Only present for `spend_threshold_reached` alerts. Scope alert to a specific gro
|
130
131
|
#
|
131
132
|
# @param invoice_types_filter [Array<String>] Only supported for invoice_total_reached alerts. A list of invoice types to eval
|
132
133
|
#
|
@@ -195,7 +196,7 @@ module MetronomeSDK
|
|
195
196
|
end
|
196
197
|
end
|
197
198
|
|
198
|
-
class
|
199
|
+
class GroupValue < MetronomeSDK::Internal::Type::BaseModel
|
199
200
|
# @!attribute key
|
200
201
|
#
|
201
202
|
# @return [String]
|
@@ -207,9 +208,6 @@ module MetronomeSDK
|
|
207
208
|
required :value, String
|
208
209
|
|
209
210
|
# @!method initialize(key:, value:)
|
210
|
-
# Scopes alert evaluation to a specific presentation group key on individual line
|
211
|
-
# items. Only present for spend alerts.
|
212
|
-
#
|
213
211
|
# @param key [String]
|
214
212
|
# @param value [String]
|
215
213
|
end
|