metronome-sdk 0.1.0 → 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 +14 -0
- data/README.md +1 -1
- data/lib/metronome_sdk/internal/transport/base_client.rb +1 -1
- data/lib/metronome_sdk/models/commit.rb +35 -5
- data/lib/metronome_sdk/models/contract_without_amendments.rb +128 -2
- data/lib/metronome_sdk/models/credit.rb +21 -3
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +9 -11
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +159 -12
- 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 +183 -24
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +570 -14
- data/lib/metronome_sdk/models/v2/contract_list_response.rb +194 -17
- data/lib/metronome_sdk/models/v2/contract_retrieve_response.rb +194 -17
- data/lib/metronome_sdk/resources/v1/alerts.rb +2 -2
- 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 +89 -15
- data/rbi/metronome_sdk/models/contract_without_amendments.rbi +304 -6
- data/rbi/metronome_sdk/models/credit.rbi +54 -9
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +16 -18
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +349 -15
- 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 +385 -27
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +1532 -42
- data/rbi/metronome_sdk/models/v2/contract_list_response.rbi +431 -37
- data/rbi/metronome_sdk/models/v2/contract_retrieve_response.rbi +431 -37
- data/rbi/metronome_sdk/resources/v1/alerts.rbi +5 -5
- 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 +50 -15
- data/sig/metronome_sdk/models/contract_without_amendments.rbs +120 -6
- data/sig/metronome_sdk/models/credit.rbs +30 -9
- data/sig/metronome_sdk/models/v1/alert_create_params.rbs +9 -9
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +130 -3
- 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 +130 -3
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +612 -6
- data/sig/metronome_sdk/models/v2/contract_list_response.rbs +205 -30
- data/sig/metronome_sdk/models/v2/contract_retrieve_response.rbs +205 -30
- data/sig/metronome_sdk/resources/v1/alerts.rbs +1 -1
- metadata +2 -2
@@ -2581,6 +2581,13 @@ module MetronomeSDK
|
|
2581
2581
|
MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateParams::RecurringCommit::Specifier]
|
2582
2582
|
}
|
2583
2583
|
|
2584
|
+
# @!attribute subscription_config
|
2585
|
+
# Attach a subscription to the recurring commit/credit.
|
2586
|
+
#
|
2587
|
+
# @return [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig, nil]
|
2588
|
+
optional :subscription_config,
|
2589
|
+
-> { MetronomeSDK::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig }
|
2590
|
+
|
2584
2591
|
# @!attribute temporary_id
|
2585
2592
|
# A temporary ID that can be used to reference the recurring commit for commit
|
2586
2593
|
# specific overrides.
|
@@ -2588,7 +2595,7 @@ module MetronomeSDK
|
|
2588
2595
|
# @return [String, nil]
|
2589
2596
|
optional :temporary_id, String
|
2590
2597
|
|
2591
|
-
# @!method initialize(access_amount:, commit_duration:, priority:, product_id:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, invoice_amount: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, rate_type: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, temporary_id: nil)
|
2598
|
+
# @!method initialize(access_amount:, commit_duration:, priority:, product_id:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, invoice_amount: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, rate_type: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, subscription_config: nil, temporary_id: nil)
|
2592
2599
|
# Some parameter documentations has been truncated, see
|
2593
2600
|
# {MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit} for more
|
2594
2601
|
# details.
|
@@ -2629,6 +2636,8 @@ module MetronomeSDK
|
|
2629
2636
|
#
|
2630
2637
|
# @param specifiers [Array<MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::Specifier>] List of filters that determine what kind of customer usage draws down a commit o
|
2631
2638
|
#
|
2639
|
+
# @param subscription_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig] Attach a subscription to the recurring commit/credit.
|
2640
|
+
#
|
2632
2641
|
# @param temporary_id [String] A temporary ID that can be used to reference the recurring commit for commit spe
|
2633
2642
|
|
2634
2643
|
# @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit#access_amount
|
@@ -2919,6 +2928,65 @@ module MetronomeSDK
|
|
2919
2928
|
#
|
2920
2929
|
# @param product_tags [Array<String>] If provided, the specifier will only apply to products with all the specified ta
|
2921
2930
|
end
|
2931
|
+
|
2932
|
+
# @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit#subscription_config
|
2933
|
+
class SubscriptionConfig < MetronomeSDK::Internal::Type::BaseModel
|
2934
|
+
# @!attribute apply_seat_increase_config
|
2935
|
+
#
|
2936
|
+
# @return [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig]
|
2937
|
+
required :apply_seat_increase_config,
|
2938
|
+
-> {
|
2939
|
+
MetronomeSDK::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig
|
2940
|
+
}
|
2941
|
+
|
2942
|
+
# @!attribute subscription_id
|
2943
|
+
# ID of the subscription to configure on the recurring commit/credit.
|
2944
|
+
#
|
2945
|
+
# @return [String]
|
2946
|
+
required :subscription_id, String
|
2947
|
+
|
2948
|
+
# @!attribute allocation
|
2949
|
+
# If set to POOLED, allocation added per seat is pooled across the account.
|
2950
|
+
#
|
2951
|
+
# @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation, nil]
|
2952
|
+
optional :allocation,
|
2953
|
+
enum: -> {
|
2954
|
+
MetronomeSDK::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation
|
2955
|
+
}
|
2956
|
+
|
2957
|
+
# @!method initialize(apply_seat_increase_config:, subscription_id:, allocation: nil)
|
2958
|
+
# Attach a subscription to the recurring commit/credit.
|
2959
|
+
#
|
2960
|
+
# @param apply_seat_increase_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig]
|
2961
|
+
#
|
2962
|
+
# @param subscription_id [String] ID of the subscription to configure on the recurring commit/credit.
|
2963
|
+
#
|
2964
|
+
# @param allocation [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation] If set to POOLED, allocation added per seat is pooled across the account.
|
2965
|
+
|
2966
|
+
# @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig#apply_seat_increase_config
|
2967
|
+
class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
|
2968
|
+
# @!attribute is_prorated
|
2969
|
+
# Indicates whether a mid-period seat increase should be prorated.
|
2970
|
+
#
|
2971
|
+
# @return [Boolean]
|
2972
|
+
required :is_prorated, MetronomeSDK::Internal::Type::Boolean
|
2973
|
+
|
2974
|
+
# @!method initialize(is_prorated:)
|
2975
|
+
# @param is_prorated [Boolean] Indicates whether a mid-period seat increase should be prorated.
|
2976
|
+
end
|
2977
|
+
|
2978
|
+
# If set to POOLED, allocation added per seat is pooled across the account.
|
2979
|
+
#
|
2980
|
+
# @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig#allocation
|
2981
|
+
module Allocation
|
2982
|
+
extend MetronomeSDK::Internal::Type::Enum
|
2983
|
+
|
2984
|
+
POOLED = :POOLED
|
2985
|
+
|
2986
|
+
# @!method self.values
|
2987
|
+
# @return [Array<Symbol>]
|
2988
|
+
end
|
2989
|
+
end
|
2922
2990
|
end
|
2923
2991
|
|
2924
2992
|
class RecurringCredit < MetronomeSDK::Internal::Type::BaseModel
|
@@ -3046,6 +3114,13 @@ module MetronomeSDK
|
|
3046
3114
|
MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateParams::RecurringCredit::Specifier]
|
3047
3115
|
}
|
3048
3116
|
|
3117
|
+
# @!attribute subscription_config
|
3118
|
+
# Attach a subscription to the recurring commit/credit.
|
3119
|
+
#
|
3120
|
+
# @return [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig, nil]
|
3121
|
+
optional :subscription_config,
|
3122
|
+
-> { MetronomeSDK::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig }
|
3123
|
+
|
3049
3124
|
# @!attribute temporary_id
|
3050
3125
|
# A temporary ID that can be used to reference the recurring commit for commit
|
3051
3126
|
# specific overrides.
|
@@ -3053,7 +3128,7 @@ module MetronomeSDK
|
|
3053
3128
|
# @return [String, nil]
|
3054
3129
|
optional :temporary_id, String
|
3055
3130
|
|
3056
|
-
# @!method initialize(access_amount:, commit_duration:, priority:, product_id:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, rate_type: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, temporary_id: nil)
|
3131
|
+
# @!method initialize(access_amount:, commit_duration:, priority:, product_id:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, rate_type: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, subscription_config: nil, temporary_id: nil)
|
3057
3132
|
# Some parameter documentations has been truncated, see
|
3058
3133
|
# {MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit} for more
|
3059
3134
|
# details.
|
@@ -3092,6 +3167,8 @@ module MetronomeSDK
|
|
3092
3167
|
#
|
3093
3168
|
# @param specifiers [Array<MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::Specifier>] List of filters that determine what kind of customer usage draws down a commit o
|
3094
3169
|
#
|
3170
|
+
# @param subscription_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig] Attach a subscription to the recurring commit/credit.
|
3171
|
+
#
|
3095
3172
|
# @param temporary_id [String] A temporary ID that can be used to reference the recurring commit for commit spe
|
3096
3173
|
|
3097
3174
|
# @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit#access_amount
|
@@ -3357,6 +3434,65 @@ module MetronomeSDK
|
|
3357
3434
|
#
|
3358
3435
|
# @param product_tags [Array<String>] If provided, the specifier will only apply to products with all the specified ta
|
3359
3436
|
end
|
3437
|
+
|
3438
|
+
# @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit#subscription_config
|
3439
|
+
class SubscriptionConfig < MetronomeSDK::Internal::Type::BaseModel
|
3440
|
+
# @!attribute apply_seat_increase_config
|
3441
|
+
#
|
3442
|
+
# @return [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig]
|
3443
|
+
required :apply_seat_increase_config,
|
3444
|
+
-> {
|
3445
|
+
MetronomeSDK::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig
|
3446
|
+
}
|
3447
|
+
|
3448
|
+
# @!attribute subscription_id
|
3449
|
+
# ID of the subscription to configure on the recurring commit/credit.
|
3450
|
+
#
|
3451
|
+
# @return [String]
|
3452
|
+
required :subscription_id, String
|
3453
|
+
|
3454
|
+
# @!attribute allocation
|
3455
|
+
# If set to POOLED, allocation added per seat is pooled across the account.
|
3456
|
+
#
|
3457
|
+
# @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation, nil]
|
3458
|
+
optional :allocation,
|
3459
|
+
enum: -> {
|
3460
|
+
MetronomeSDK::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation
|
3461
|
+
}
|
3462
|
+
|
3463
|
+
# @!method initialize(apply_seat_increase_config:, subscription_id:, allocation: nil)
|
3464
|
+
# Attach a subscription to the recurring commit/credit.
|
3465
|
+
#
|
3466
|
+
# @param apply_seat_increase_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig]
|
3467
|
+
#
|
3468
|
+
# @param subscription_id [String] ID of the subscription to configure on the recurring commit/credit.
|
3469
|
+
#
|
3470
|
+
# @param allocation [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation] If set to POOLED, allocation added per seat is pooled across the account.
|
3471
|
+
|
3472
|
+
# @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig#apply_seat_increase_config
|
3473
|
+
class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
|
3474
|
+
# @!attribute is_prorated
|
3475
|
+
# Indicates whether a mid-period seat increase should be prorated.
|
3476
|
+
#
|
3477
|
+
# @return [Boolean]
|
3478
|
+
required :is_prorated, MetronomeSDK::Internal::Type::Boolean
|
3479
|
+
|
3480
|
+
# @!method initialize(is_prorated:)
|
3481
|
+
# @param is_prorated [Boolean] Indicates whether a mid-period seat increase should be prorated.
|
3482
|
+
end
|
3483
|
+
|
3484
|
+
# If set to POOLED, allocation added per seat is pooled across the account.
|
3485
|
+
#
|
3486
|
+
# @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig#allocation
|
3487
|
+
module Allocation
|
3488
|
+
extend MetronomeSDK::Internal::Type::Enum
|
3489
|
+
|
3490
|
+
POOLED = :POOLED
|
3491
|
+
|
3492
|
+
# @!method self.values
|
3493
|
+
# @return [Array<Symbol>]
|
3494
|
+
end
|
3495
|
+
end
|
3360
3496
|
end
|
3361
3497
|
|
3362
3498
|
class ResellerRoyalty < MetronomeSDK::Internal::Type::BaseModel
|
@@ -4019,7 +4155,14 @@ module MetronomeSDK
|
|
4019
4155
|
# @return [Time, nil]
|
4020
4156
|
optional :starting_at, Time
|
4021
4157
|
|
4022
|
-
# @!
|
4158
|
+
# @!attribute temporary_id
|
4159
|
+
# A temporary ID used to reference the subscription in recurring commit/credit
|
4160
|
+
# subscription configs created within the same payload.
|
4161
|
+
#
|
4162
|
+
# @return [String, nil]
|
4163
|
+
optional :temporary_id, String
|
4164
|
+
|
4165
|
+
# @!method initialize(collection_schedule:, initial_quantity:, proration:, subscription_rate:, custom_fields: nil, description: nil, ending_before: nil, name: nil, starting_at: nil, temporary_id: nil)
|
4023
4166
|
# Some parameter documentations has been truncated, see
|
4024
4167
|
# {MetronomeSDK::Models::V1::ContractCreateParams::Subscription} for more details.
|
4025
4168
|
#
|
@@ -4040,6 +4183,8 @@ module MetronomeSDK
|
|
4040
4183
|
# @param name [String]
|
4041
4184
|
#
|
4042
4185
|
# @param starting_at [Time] Inclusive start time for the subscription. If not provided, defaults to contract
|
4186
|
+
#
|
4187
|
+
# @param temporary_id [String] A temporary ID used to reference the subscription in recurring commit/credit sub
|
4043
4188
|
|
4044
4189
|
# @see MetronomeSDK::Models::V1::ContractCreateParams::Subscription#collection_schedule
|
4045
4190
|
module CollectionSchedule
|
@@ -4055,10 +4200,11 @@ module MetronomeSDK
|
|
4055
4200
|
# @see MetronomeSDK::Models::V1::ContractCreateParams::Subscription#proration
|
4056
4201
|
class Proration < MetronomeSDK::Internal::Type::BaseModel
|
4057
4202
|
# @!attribute invoice_behavior
|
4058
|
-
# Indicates how mid-period quantity adjustments are invoiced.
|
4059
|
-
#
|
4060
|
-
#
|
4061
|
-
#
|
4203
|
+
# Indicates how mid-period quantity adjustments are invoiced.
|
4204
|
+
# **BILL_IMMEDIATELY**: Only available when collection schedule is `ADVANCE`. The
|
4205
|
+
# quantity increase will be billed immediately on the scheduled date.
|
4206
|
+
# **BILL_ON_NEXT_COLLECTION_DATE**: The quantity increase will be billed for
|
4207
|
+
# in-arrears at the end of the period.
|
4062
4208
|
#
|
4063
4209
|
# @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration::InvoiceBehavior, nil]
|
4064
4210
|
optional :invoice_behavior,
|
@@ -4077,14 +4223,15 @@ module MetronomeSDK
|
|
4077
4223
|
# {MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration} for
|
4078
4224
|
# more details.
|
4079
4225
|
#
|
4080
|
-
# @param invoice_behavior [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration::InvoiceBehavior] Indicates how mid-period quantity adjustments are invoiced.
|
4226
|
+
# @param invoice_behavior [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration::InvoiceBehavior] Indicates how mid-period quantity adjustments are invoiced.
|
4081
4227
|
#
|
4082
4228
|
# @param is_prorated [Boolean] Indicates if the partial period will be prorated or charged a full amount.
|
4083
4229
|
|
4084
|
-
# Indicates how mid-period quantity adjustments are invoiced.
|
4085
|
-
#
|
4086
|
-
#
|
4087
|
-
#
|
4230
|
+
# Indicates how mid-period quantity adjustments are invoiced.
|
4231
|
+
# **BILL_IMMEDIATELY**: Only available when collection schedule is `ADVANCE`. The
|
4232
|
+
# quantity increase will be billed immediately on the scheduled date.
|
4233
|
+
# **BILL_ON_NEXT_COLLECTION_DATE**: The quantity increase will be billed for
|
4234
|
+
# in-arrears at the end of the period.
|
4088
4235
|
#
|
4089
4236
|
# @see MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration#invoice_behavior
|
4090
4237
|
module InvoiceBehavior
|
@@ -105,6 +105,16 @@ module MetronomeSDK
|
|
105
105
|
MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupKeyFilter
|
106
106
|
}
|
107
107
|
|
108
|
+
# @!attribute group_values
|
109
|
+
# Only present for `spend_threshold_reached` alerts. Scope alert to a specific
|
110
|
+
# group key on individual line items.
|
111
|
+
#
|
112
|
+
# @return [Array<MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::GroupValue>, nil]
|
113
|
+
optional :group_values,
|
114
|
+
-> {
|
115
|
+
MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::Customers::CustomerAlert::Alert::GroupValue]
|
116
|
+
}
|
117
|
+
|
108
118
|
# @!attribute invoice_types_filter
|
109
119
|
# Only supported for invoice_total_reached alerts. A list of invoice types to
|
110
120
|
# evaluate.
|
@@ -120,7 +130,7 @@ module MetronomeSDK
|
|
120
130
|
# @return [String, nil]
|
121
131
|
optional :uniqueness_key, String
|
122
132
|
|
123
|
-
# @!method initialize(id:, name:, status:, threshold:, type:, updated_at:, credit_grant_type_filters: nil, credit_type: nil, custom_field_filters: nil, group_key_filter: nil, invoice_types_filter: nil, uniqueness_key: nil)
|
133
|
+
# @!method initialize(id:, name:, status:, threshold:, type:, updated_at:, credit_grant_type_filters: nil, credit_type: nil, custom_field_filters: nil, group_key_filter: nil, group_values: nil, invoice_types_filter: nil, uniqueness_key: nil)
|
124
134
|
# Some parameter documentations has been truncated, see
|
125
135
|
# {MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert} for more details.
|
126
136
|
#
|
@@ -144,6 +154,8 @@ module MetronomeSDK
|
|
144
154
|
#
|
145
155
|
# @param group_key_filter [MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::GroupKeyFilter] Scopes alert evaluation to a specific presentation group key on individual line
|
146
156
|
#
|
157
|
+
# @param group_values [Array<MetronomeSDK::Models::V1::Customers::CustomerAlert::Alert::GroupValue>] Only present for `spend_threshold_reached` alerts. Scope alert to a specific gro
|
158
|
+
#
|
147
159
|
# @param invoice_types_filter [Array<String>] Only supported for invoice_total_reached alerts. A list of invoice types to eval
|
148
160
|
#
|
149
161
|
# @param uniqueness_key [String] Prevents the creation of duplicates. If a request to create a record is made wit
|
@@ -245,6 +257,22 @@ module MetronomeSDK
|
|
245
257
|
# @param key [String]
|
246
258
|
# @param value [String]
|
247
259
|
end
|
260
|
+
|
261
|
+
class GroupValue < MetronomeSDK::Internal::Type::BaseModel
|
262
|
+
# @!attribute key
|
263
|
+
#
|
264
|
+
# @return [String]
|
265
|
+
required :key, String
|
266
|
+
|
267
|
+
# @!attribute value
|
268
|
+
#
|
269
|
+
# @return [String]
|
270
|
+
required :value, String
|
271
|
+
|
272
|
+
# @!method initialize(key:, value:)
|
273
|
+
# @param key [String]
|
274
|
+
# @param value [String]
|
275
|
+
end
|
248
276
|
end
|
249
277
|
|
250
278
|
# The status of the customer alert. If the alert is archived, null will be
|
@@ -148,6 +148,8 @@ module MetronomeSDK
|
|
148
148
|
USAGE_LINE_9 = :UsageLine_9
|
149
149
|
PRIMARY_GREEN = :Primary_green
|
150
150
|
PRIMARY_RED = :Primary_red
|
151
|
+
PROGRESS_BAR = :Progress_bar
|
152
|
+
PROGRESS_BAR_BACKGROUND = :Progress_bar_background
|
151
153
|
|
152
154
|
# @!method self.values
|
153
155
|
# @return [Array<Symbol>]
|
@@ -62,6 +62,8 @@ module MetronomeSDK
|
|
62
62
|
# or credit. A customer's usage needs to meet the condition of at least one of the
|
63
63
|
# specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
64
64
|
# be used together with `applicable_product_ids` or `applicable_product_tags`.
|
65
|
+
# Instead, to target usage by product or product tag, pass those values in the
|
66
|
+
# body of `specifiers`.
|
65
67
|
#
|
66
68
|
# @return [Array<MetronomeSDK::Models::V2::ContractEditCommitParams::Specifier>, nil]
|
67
69
|
optional :specifiers,
|
@@ -49,6 +49,8 @@ module MetronomeSDK
|
|
49
49
|
# or credit. A customer's usage needs to meet the condition of at least one of the
|
50
50
|
# specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
51
51
|
# be used together with `applicable_product_ids` or `applicable_product_tags`.
|
52
|
+
# Instead, to target usage by product or product tag, pass those values in the
|
53
|
+
# body of `specifiers`.
|
52
54
|
#
|
53
55
|
# @return [Array<MetronomeSDK::Models::V2::ContractEditCreditParams::Specifier>, nil]
|
54
56
|
optional :specifiers,
|