metronome-sdk 3.4.0 → 3.6.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 +84 -0
- data/README.md +1 -1
- data/lib/metronome_sdk/client.rb +15 -1
- data/lib/metronome_sdk/internal/transport/base_client.rb +2 -0
- data/lib/metronome_sdk/internal/util.rb +22 -7
- data/lib/metronome_sdk/models/base_threshold_commit.rb +10 -1
- data/lib/metronome_sdk/models/contract_v2.rb +443 -15
- data/lib/metronome_sdk/models/credit.rb +74 -4
- data/lib/metronome_sdk/models/override.rb +9 -8
- data/lib/metronome_sdk/models/prepaid_balance_threshold_configuration.rb +27 -1
- data/lib/metronome_sdk/models/prepaid_balance_threshold_configuration_v2.rb +28 -2
- data/lib/metronome_sdk/models/spend_threshold_configuration.rb +26 -1
- data/lib/metronome_sdk/models/spend_threshold_configuration_v2.rb +30 -4
- data/lib/metronome_sdk/models/update_base_threshold_commit.rb +11 -1
- data/lib/metronome_sdk/models/v1/alert_create_params.rb +1 -0
- data/lib/metronome_sdk/models/v1/contract_amend_params.rb +2 -189
- data/lib/metronome_sdk/models/v1/contract_create_params.rb +3 -191
- data/lib/metronome_sdk/models/v1/contract_list_seat_balances_params.rb +119 -0
- data/lib/metronome_sdk/models/v1/contract_list_seat_balances_response.rb +315 -0
- data/lib/metronome_sdk/models/v1/contracts/product_create_params.rb +31 -1
- data/lib/metronome_sdk/models/v1/contracts/product_update_params.rb +31 -1
- data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +1 -0
- data/lib/metronome_sdk/models/v1/customers/invoice.rb +8 -1
- data/lib/metronome_sdk/models/v1/customers/invoice_list_params.rb +29 -1
- data/lib/metronome_sdk/models/v1/package_create_params.rb +2 -30
- data/lib/metronome_sdk/models/v1/package_list_response.rb +28 -9
- data/lib/metronome_sdk/models/v1/package_retrieve_response.rb +29 -9
- data/lib/metronome_sdk/models/v2/contract_edit_params.rb +67 -20
- data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +496 -15
- data/lib/metronome_sdk/resources/v1/contracts/products.rb +6 -2
- data/lib/metronome_sdk/resources/v1/contracts.rb +76 -2
- data/lib/metronome_sdk/resources/v1/customers/invoices.rb +5 -1
- data/lib/metronome_sdk/resources/v1/packages.rb +1 -3
- data/lib/metronome_sdk/version.rb +1 -1
- data/lib/metronome_sdk.rb +3 -1
- data/rbi/metronome_sdk/internal/util.rbi +8 -0
- data/rbi/metronome_sdk/models/base_threshold_commit.rbi +24 -5
- data/rbi/metronome_sdk/models/contract_v2.rbi +916 -19
- data/rbi/metronome_sdk/models/credit.rbi +139 -3
- data/rbi/metronome_sdk/models/override.rbi +9 -12
- data/rbi/metronome_sdk/models/prepaid_balance_threshold_configuration.rbi +54 -3
- data/rbi/metronome_sdk/models/prepaid_balance_threshold_configuration_v2.rbi +55 -4
- data/rbi/metronome_sdk/models/spend_threshold_configuration.rbi +54 -3
- data/rbi/metronome_sdk/models/spend_threshold_configuration_v2.rbi +58 -9
- data/rbi/metronome_sdk/models/update_base_threshold_commit.rbi +22 -4
- data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/contract_amend_params.rbi +3 -416
- data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +5 -418
- data/rbi/metronome_sdk/models/v1/contract_list_seat_balances_params.rbi +179 -0
- data/rbi/metronome_sdk/models/v1/contract_list_seat_balances_response.rbi +714 -0
- data/rbi/metronome_sdk/models/v1/contracts/product_create_params.rbi +74 -0
- data/rbi/metronome_sdk/models/v1/contracts/product_update_params.rbi +74 -0
- data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +5 -0
- data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +9 -0
- data/rbi/metronome_sdk/models/v1/customers/invoice_list_params.rbi +75 -0
- data/rbi/metronome_sdk/models/v1/package_create_params.rbi +3 -76
- data/rbi/metronome_sdk/models/v1/package_list_response.rbi +72 -15
- data/rbi/metronome_sdk/models/v1/package_retrieve_response.rbi +72 -17
- data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +133 -28
- data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +1174 -145
- data/rbi/metronome_sdk/resources/v1/contracts/products.rbi +18 -0
- data/rbi/metronome_sdk/resources/v1/contracts.rbi +88 -3
- data/rbi/metronome_sdk/resources/v1/customers/invoices.rbi +7 -0
- data/rbi/metronome_sdk/resources/v1/packages.rbi +0 -3
- data/sig/metronome_sdk/internal/util.rbs +4 -0
- data/sig/metronome_sdk/models/base_threshold_commit.rbs +13 -3
- data/sig/metronome_sdk/models/contract_v2.rbs +401 -16
- data/sig/metronome_sdk/models/credit.rbs +69 -0
- data/sig/metronome_sdk/models/override.rbs +8 -10
- data/sig/metronome_sdk/models/prepaid_balance_threshold_configuration.rbs +22 -3
- data/sig/metronome_sdk/models/prepaid_balance_threshold_configuration_v2.rbs +23 -4
- data/sig/metronome_sdk/models/spend_threshold_configuration.rbs +22 -3
- data/sig/metronome_sdk/models/spend_threshold_configuration_v2.rbs +26 -7
- data/sig/metronome_sdk/models/update_base_threshold_commit.rbs +15 -2
- data/sig/metronome_sdk/models/v1/alert_create_params.rbs +3 -1
- data/sig/metronome_sdk/models/v1/contract_amend_params.rbs +3 -147
- data/sig/metronome_sdk/models/v1/contract_create_params.rbs +3 -147
- data/sig/metronome_sdk/models/v1/contract_list_seat_balances_params.rbs +96 -0
- data/sig/metronome_sdk/models/v1/contract_list_seat_balances_response.rbs +299 -0
- data/sig/metronome_sdk/models/v1/contracts/product_create_params.rbs +20 -0
- data/sig/metronome_sdk/models/v1/contracts/product_update_params.rbs +20 -0
- data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +3 -1
- data/sig/metronome_sdk/models/v1/customers/invoice.rbs +7 -0
- data/sig/metronome_sdk/models/v1/customers/invoice_list_params.rbs +29 -1
- data/sig/metronome_sdk/models/v1/package_create_params.rbs +3 -30
- data/sig/metronome_sdk/models/v1/package_list_response.rbs +33 -15
- data/sig/metronome_sdk/models/v1/package_retrieve_response.rbs +33 -15
- data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +33 -10
- data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +409 -19
- data/sig/metronome_sdk/resources/v1/contracts/products.rbs +2 -0
- data/sig/metronome_sdk/resources/v1/contracts.rbs +15 -0
- data/sig/metronome_sdk/resources/v1/customers/invoices.rbs +2 -0
- data/sig/metronome_sdk/resources/v1/packages.rbs +0 -1
- metadata +8 -2
|
@@ -3,6 +3,7 @@ module MetronomeSDK
|
|
|
3
3
|
type override =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
created_at: Time,
|
|
6
7
|
starting_at: Time,
|
|
7
8
|
applicable_product_tags: ::Array[String],
|
|
8
9
|
credit_type: MetronomeSDK::CreditTypeData,
|
|
@@ -28,6 +29,8 @@ module MetronomeSDK
|
|
|
28
29
|
class Override < MetronomeSDK::Internal::Type::BaseModel
|
|
29
30
|
attr_accessor id: String
|
|
30
31
|
|
|
32
|
+
attr_accessor created_at: Time
|
|
33
|
+
|
|
31
34
|
attr_accessor starting_at: Time
|
|
32
35
|
|
|
33
36
|
attr_reader applicable_product_tags: ::Array[String]?
|
|
@@ -124,6 +127,7 @@ module MetronomeSDK
|
|
|
124
127
|
|
|
125
128
|
def initialize: (
|
|
126
129
|
id: String,
|
|
130
|
+
created_at: Time,
|
|
127
131
|
starting_at: Time,
|
|
128
132
|
?applicable_product_tags: ::Array[String],
|
|
129
133
|
?credit_type: MetronomeSDK::CreditTypeData,
|
|
@@ -148,6 +152,7 @@ module MetronomeSDK
|
|
|
148
152
|
|
|
149
153
|
def to_hash: -> {
|
|
150
154
|
id: String,
|
|
155
|
+
created_at: Time,
|
|
151
156
|
starting_at: Time,
|
|
152
157
|
applicable_product_tags: ::Array[String],
|
|
153
158
|
credit_type: MetronomeSDK::CreditTypeData,
|
|
@@ -178,8 +183,7 @@ module MetronomeSDK
|
|
|
178
183
|
pricing_group_values: ::Hash[Symbol, String],
|
|
179
184
|
product_id: String,
|
|
180
185
|
product_tags: ::Array[String],
|
|
181
|
-
recurring_commit_ids: ::Array[String]
|
|
182
|
-
recurring_credit_ids: ::Array[String]
|
|
186
|
+
recurring_commit_ids: ::Array[String]
|
|
183
187
|
}
|
|
184
188
|
|
|
185
189
|
class OverrideSpecifier < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -217,10 +221,6 @@ module MetronomeSDK
|
|
|
217
221
|
|
|
218
222
|
def recurring_commit_ids=: (::Array[String]) -> ::Array[String]
|
|
219
223
|
|
|
220
|
-
attr_reader recurring_credit_ids: ::Array[String]?
|
|
221
|
-
|
|
222
|
-
def recurring_credit_ids=: (::Array[String]) -> ::Array[String]
|
|
223
|
-
|
|
224
224
|
def initialize: (
|
|
225
225
|
?billing_frequency: MetronomeSDK::Models::Override::OverrideSpecifier::billing_frequency,
|
|
226
226
|
?commit_ids: ::Array[String],
|
|
@@ -228,8 +228,7 @@ module MetronomeSDK
|
|
|
228
228
|
?pricing_group_values: ::Hash[Symbol, String],
|
|
229
229
|
?product_id: String,
|
|
230
230
|
?product_tags: ::Array[String],
|
|
231
|
-
?recurring_commit_ids: ::Array[String]
|
|
232
|
-
?recurring_credit_ids: ::Array[String]
|
|
231
|
+
?recurring_commit_ids: ::Array[String]
|
|
233
232
|
) -> void
|
|
234
233
|
|
|
235
234
|
def to_hash: -> {
|
|
@@ -239,8 +238,7 @@ module MetronomeSDK
|
|
|
239
238
|
pricing_group_values: ::Hash[Symbol, String],
|
|
240
239
|
product_id: String,
|
|
241
240
|
product_tags: ::Array[String],
|
|
242
|
-
recurring_commit_ids: ::Array[String]
|
|
243
|
-
recurring_credit_ids: ::Array[String]
|
|
241
|
+
recurring_commit_ids: ::Array[String]
|
|
244
242
|
}
|
|
245
243
|
|
|
246
244
|
type billing_frequency = :MONTHLY | :QUARTERLY | :ANNUAL | :WEEKLY
|
|
@@ -7,7 +7,8 @@ module MetronomeSDK
|
|
|
7
7
|
payment_gate_config: MetronomeSDK::PaymentGateConfig,
|
|
8
8
|
recharge_to_amount: Float,
|
|
9
9
|
threshold_amount: Float,
|
|
10
|
-
custom_credit_type_id: String
|
|
10
|
+
custom_credit_type_id: String,
|
|
11
|
+
discount_configuration: MetronomeSDK::PrepaidBalanceThresholdConfiguration::DiscountConfiguration
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
class PrepaidBalanceThresholdConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -25,13 +26,20 @@ module MetronomeSDK
|
|
|
25
26
|
|
|
26
27
|
def custom_credit_type_id=: (String) -> String
|
|
27
28
|
|
|
29
|
+
attr_reader discount_configuration: MetronomeSDK::PrepaidBalanceThresholdConfiguration::DiscountConfiguration?
|
|
30
|
+
|
|
31
|
+
def discount_configuration=: (
|
|
32
|
+
MetronomeSDK::PrepaidBalanceThresholdConfiguration::DiscountConfiguration
|
|
33
|
+
) -> MetronomeSDK::PrepaidBalanceThresholdConfiguration::DiscountConfiguration
|
|
34
|
+
|
|
28
35
|
def initialize: (
|
|
29
36
|
commit: MetronomeSDK::PrepaidBalanceThresholdConfiguration::Commit,
|
|
30
37
|
is_enabled: bool,
|
|
31
38
|
payment_gate_config: MetronomeSDK::PaymentGateConfig,
|
|
32
39
|
recharge_to_amount: Float,
|
|
33
40
|
threshold_amount: Float,
|
|
34
|
-
?custom_credit_type_id: String
|
|
41
|
+
?custom_credit_type_id: String,
|
|
42
|
+
?discount_configuration: MetronomeSDK::PrepaidBalanceThresholdConfiguration::DiscountConfiguration
|
|
35
43
|
) -> void
|
|
36
44
|
|
|
37
45
|
def to_hash: -> {
|
|
@@ -40,7 +48,8 @@ module MetronomeSDK
|
|
|
40
48
|
payment_gate_config: MetronomeSDK::PaymentGateConfig,
|
|
41
49
|
recharge_to_amount: Float,
|
|
42
50
|
threshold_amount: Float,
|
|
43
|
-
custom_credit_type_id: String
|
|
51
|
+
custom_credit_type_id: String,
|
|
52
|
+
discount_configuration: MetronomeSDK::PrepaidBalanceThresholdConfiguration::DiscountConfiguration
|
|
44
53
|
}
|
|
45
54
|
|
|
46
55
|
type commit =
|
|
@@ -77,6 +86,16 @@ module MetronomeSDK
|
|
|
77
86
|
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
78
87
|
}
|
|
79
88
|
end
|
|
89
|
+
|
|
90
|
+
type discount_configuration = { payment_fraction: Float }
|
|
91
|
+
|
|
92
|
+
class DiscountConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
93
|
+
attr_accessor payment_fraction: Float
|
|
94
|
+
|
|
95
|
+
def initialize: (payment_fraction: Float) -> void
|
|
96
|
+
|
|
97
|
+
def to_hash: -> { payment_fraction: Float }
|
|
98
|
+
end
|
|
80
99
|
end
|
|
81
100
|
end
|
|
82
101
|
end
|
|
@@ -7,7 +7,8 @@ module MetronomeSDK
|
|
|
7
7
|
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
8
8
|
recharge_to_amount: Float,
|
|
9
9
|
threshold_amount: Float,
|
|
10
|
-
custom_credit_type_id: String
|
|
10
|
+
custom_credit_type_id: String,
|
|
11
|
+
discount_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2::DiscountConfiguration
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
class PrepaidBalanceThresholdConfigurationV2 < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -25,13 +26,20 @@ module MetronomeSDK
|
|
|
25
26
|
|
|
26
27
|
def custom_credit_type_id=: (String) -> String
|
|
27
28
|
|
|
29
|
+
attr_reader discount_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2::DiscountConfiguration?
|
|
30
|
+
|
|
31
|
+
def discount_configuration=: (
|
|
32
|
+
MetronomeSDK::PrepaidBalanceThresholdConfigurationV2::DiscountConfiguration
|
|
33
|
+
) -> MetronomeSDK::PrepaidBalanceThresholdConfigurationV2::DiscountConfiguration
|
|
34
|
+
|
|
28
35
|
def initialize: (
|
|
29
36
|
commit: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2::Commit,
|
|
30
37
|
is_enabled: bool,
|
|
31
38
|
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
32
39
|
recharge_to_amount: Float,
|
|
33
40
|
threshold_amount: Float,
|
|
34
|
-
?custom_credit_type_id: String
|
|
41
|
+
?custom_credit_type_id: String,
|
|
42
|
+
?discount_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2::DiscountConfiguration
|
|
35
43
|
) -> void
|
|
36
44
|
|
|
37
45
|
def to_hash: -> {
|
|
@@ -40,7 +48,8 @@ module MetronomeSDK
|
|
|
40
48
|
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
41
49
|
recharge_to_amount: Float,
|
|
42
50
|
threshold_amount: Float,
|
|
43
|
-
custom_credit_type_id: String
|
|
51
|
+
custom_credit_type_id: String,
|
|
52
|
+
discount_configuration: MetronomeSDK::PrepaidBalanceThresholdConfigurationV2::DiscountConfiguration
|
|
44
53
|
}
|
|
45
54
|
|
|
46
55
|
type commit =
|
|
@@ -50,7 +59,7 @@ module MetronomeSDK
|
|
|
50
59
|
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
51
60
|
}
|
|
52
61
|
|
|
53
|
-
class Commit < MetronomeSDK::Models::
|
|
62
|
+
class Commit < MetronomeSDK::Models::BaseThresholdCommit
|
|
54
63
|
def applicable_product_ids: -> ::Array[String]?
|
|
55
64
|
|
|
56
65
|
def applicable_product_ids=: (::Array[String] _) -> ::Array[String]
|
|
@@ -77,6 +86,16 @@ module MetronomeSDK
|
|
|
77
86
|
specifiers: ::Array[MetronomeSDK::CommitSpecifierInput]
|
|
78
87
|
}
|
|
79
88
|
end
|
|
89
|
+
|
|
90
|
+
type discount_configuration = { payment_fraction: Float }
|
|
91
|
+
|
|
92
|
+
class DiscountConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
93
|
+
attr_accessor payment_fraction: Float
|
|
94
|
+
|
|
95
|
+
def initialize: (payment_fraction: Float) -> void
|
|
96
|
+
|
|
97
|
+
def to_hash: -> { payment_fraction: Float }
|
|
98
|
+
end
|
|
80
99
|
end
|
|
81
100
|
end
|
|
82
101
|
end
|
|
@@ -5,7 +5,8 @@ module MetronomeSDK
|
|
|
5
5
|
commit: MetronomeSDK::BaseThresholdCommit,
|
|
6
6
|
is_enabled: bool,
|
|
7
7
|
payment_gate_config: MetronomeSDK::PaymentGateConfig,
|
|
8
|
-
threshold_amount: Float
|
|
8
|
+
threshold_amount: Float,
|
|
9
|
+
discount_configuration: MetronomeSDK::SpendThresholdConfiguration::DiscountConfiguration
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
class SpendThresholdConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -17,19 +18,37 @@ module MetronomeSDK
|
|
|
17
18
|
|
|
18
19
|
attr_accessor threshold_amount: Float
|
|
19
20
|
|
|
21
|
+
attr_reader discount_configuration: MetronomeSDK::SpendThresholdConfiguration::DiscountConfiguration?
|
|
22
|
+
|
|
23
|
+
def discount_configuration=: (
|
|
24
|
+
MetronomeSDK::SpendThresholdConfiguration::DiscountConfiguration
|
|
25
|
+
) -> MetronomeSDK::SpendThresholdConfiguration::DiscountConfiguration
|
|
26
|
+
|
|
20
27
|
def initialize: (
|
|
21
28
|
commit: MetronomeSDK::BaseThresholdCommit,
|
|
22
29
|
is_enabled: bool,
|
|
23
30
|
payment_gate_config: MetronomeSDK::PaymentGateConfig,
|
|
24
|
-
threshold_amount: Float
|
|
31
|
+
threshold_amount: Float,
|
|
32
|
+
?discount_configuration: MetronomeSDK::SpendThresholdConfiguration::DiscountConfiguration
|
|
25
33
|
) -> void
|
|
26
34
|
|
|
27
35
|
def to_hash: -> {
|
|
28
36
|
commit: MetronomeSDK::BaseThresholdCommit,
|
|
29
37
|
is_enabled: bool,
|
|
30
38
|
payment_gate_config: MetronomeSDK::PaymentGateConfig,
|
|
31
|
-
threshold_amount: Float
|
|
39
|
+
threshold_amount: Float,
|
|
40
|
+
discount_configuration: MetronomeSDK::SpendThresholdConfiguration::DiscountConfiguration
|
|
32
41
|
}
|
|
42
|
+
|
|
43
|
+
type discount_configuration = { payment_fraction: Float }
|
|
44
|
+
|
|
45
|
+
class DiscountConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
46
|
+
attr_accessor payment_fraction: Float
|
|
47
|
+
|
|
48
|
+
def initialize: (payment_fraction: Float) -> void
|
|
49
|
+
|
|
50
|
+
def to_hash: -> { payment_fraction: Float }
|
|
51
|
+
end
|
|
33
52
|
end
|
|
34
53
|
end
|
|
35
54
|
end
|
|
@@ -2,14 +2,15 @@ module MetronomeSDK
|
|
|
2
2
|
module Models
|
|
3
3
|
type spend_threshold_configuration_v2 =
|
|
4
4
|
{
|
|
5
|
-
commit: MetronomeSDK::
|
|
5
|
+
commit: MetronomeSDK::BaseThresholdCommit,
|
|
6
6
|
is_enabled: bool,
|
|
7
7
|
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
8
|
-
threshold_amount: Float
|
|
8
|
+
threshold_amount: Float,
|
|
9
|
+
discount_configuration: MetronomeSDK::SpendThresholdConfigurationV2::DiscountConfiguration
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
class SpendThresholdConfigurationV2 < MetronomeSDK::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor commit: MetronomeSDK::
|
|
13
|
+
attr_accessor commit: MetronomeSDK::BaseThresholdCommit
|
|
13
14
|
|
|
14
15
|
attr_accessor is_enabled: bool
|
|
15
16
|
|
|
@@ -17,19 +18,37 @@ module MetronomeSDK
|
|
|
17
18
|
|
|
18
19
|
attr_accessor threshold_amount: Float
|
|
19
20
|
|
|
21
|
+
attr_reader discount_configuration: MetronomeSDK::SpendThresholdConfigurationV2::DiscountConfiguration?
|
|
22
|
+
|
|
23
|
+
def discount_configuration=: (
|
|
24
|
+
MetronomeSDK::SpendThresholdConfigurationV2::DiscountConfiguration
|
|
25
|
+
) -> MetronomeSDK::SpendThresholdConfigurationV2::DiscountConfiguration
|
|
26
|
+
|
|
20
27
|
def initialize: (
|
|
21
|
-
commit: MetronomeSDK::
|
|
28
|
+
commit: MetronomeSDK::BaseThresholdCommit,
|
|
22
29
|
is_enabled: bool,
|
|
23
30
|
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
24
|
-
threshold_amount: Float
|
|
31
|
+
threshold_amount: Float,
|
|
32
|
+
?discount_configuration: MetronomeSDK::SpendThresholdConfigurationV2::DiscountConfiguration
|
|
25
33
|
) -> void
|
|
26
34
|
|
|
27
35
|
def to_hash: -> {
|
|
28
|
-
commit: MetronomeSDK::
|
|
36
|
+
commit: MetronomeSDK::BaseThresholdCommit,
|
|
29
37
|
is_enabled: bool,
|
|
30
38
|
payment_gate_config: MetronomeSDK::PaymentGateConfigV2,
|
|
31
|
-
threshold_amount: Float
|
|
39
|
+
threshold_amount: Float,
|
|
40
|
+
discount_configuration: MetronomeSDK::SpendThresholdConfigurationV2::DiscountConfiguration
|
|
32
41
|
}
|
|
42
|
+
|
|
43
|
+
type discount_configuration = { payment_fraction: Float }
|
|
44
|
+
|
|
45
|
+
class DiscountConfiguration < MetronomeSDK::Internal::Type::BaseModel
|
|
46
|
+
attr_accessor payment_fraction: Float
|
|
47
|
+
|
|
48
|
+
def initialize: (payment_fraction: Float) -> void
|
|
49
|
+
|
|
50
|
+
def to_hash: -> { payment_fraction: Float }
|
|
51
|
+
end
|
|
33
52
|
end
|
|
34
53
|
end
|
|
35
54
|
end
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module MetronomeSDK
|
|
2
2
|
module Models
|
|
3
3
|
type update_base_threshold_commit =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
description: String,
|
|
6
|
+
name: String,
|
|
7
|
+
priority: Float?,
|
|
8
|
+
product_id: String
|
|
9
|
+
}
|
|
5
10
|
|
|
6
11
|
class UpdateBaseThresholdCommit < MetronomeSDK::Internal::Type::BaseModel
|
|
7
12
|
attr_reader description: String?
|
|
@@ -12,6 +17,8 @@ module MetronomeSDK
|
|
|
12
17
|
|
|
13
18
|
def name=: (String) -> String
|
|
14
19
|
|
|
20
|
+
attr_accessor priority: Float?
|
|
21
|
+
|
|
15
22
|
attr_reader product_id: String?
|
|
16
23
|
|
|
17
24
|
def product_id=: (String) -> String
|
|
@@ -19,10 +26,16 @@ module MetronomeSDK
|
|
|
19
26
|
def initialize: (
|
|
20
27
|
?description: String,
|
|
21
28
|
?name: String,
|
|
29
|
+
?priority: Float?,
|
|
22
30
|
?product_id: String
|
|
23
31
|
) -> void
|
|
24
32
|
|
|
25
|
-
def to_hash: -> {
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
description: String,
|
|
35
|
+
name: String,
|
|
36
|
+
priority: Float?,
|
|
37
|
+
product_id: String
|
|
38
|
+
}
|
|
26
39
|
end
|
|
27
40
|
end
|
|
28
41
|
end
|
|
@@ -181,7 +181,8 @@ module MetronomeSDK
|
|
|
181
181
|
value: String
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
type entity =
|
|
184
|
+
type entity =
|
|
185
|
+
:Contract | :Commit | :ContractCredit | :ContractCreditOrCommit
|
|
185
186
|
|
|
186
187
|
module Entity
|
|
187
188
|
extend MetronomeSDK::Internal::Type::Enum
|
|
@@ -189,6 +190,7 @@ module MetronomeSDK
|
|
|
189
190
|
CONTRACT: :Contract
|
|
190
191
|
COMMIT: :Commit
|
|
191
192
|
CONTRACT_CREDIT: :ContractCredit
|
|
193
|
+
CONTRACT_CREDIT_OR_COMMIT: :ContractCreditOrCommit
|
|
192
194
|
|
|
193
195
|
def self?.values: -> ::Array[MetronomeSDK::Models::V1::AlertCreateParams::CustomFieldFilter::entity]
|
|
194
196
|
end
|
|
@@ -138,7 +138,6 @@ module MetronomeSDK
|
|
|
138
138
|
invoice_schedule: MetronomeSDK::V1::ContractAmendParams::Commit::InvoiceSchedule,
|
|
139
139
|
name: String,
|
|
140
140
|
netsuite_sales_order_id: String,
|
|
141
|
-
payment_gate_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig,
|
|
142
141
|
priority: Float,
|
|
143
142
|
rate_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::rate_type,
|
|
144
143
|
rollover_fraction: Float,
|
|
@@ -197,12 +196,6 @@ module MetronomeSDK
|
|
|
197
196
|
|
|
198
197
|
def netsuite_sales_order_id=: (String) -> String
|
|
199
198
|
|
|
200
|
-
attr_reader payment_gate_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig?
|
|
201
|
-
|
|
202
|
-
def payment_gate_config=: (
|
|
203
|
-
MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig
|
|
204
|
-
) -> MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig
|
|
205
|
-
|
|
206
199
|
attr_reader priority: Float?
|
|
207
200
|
|
|
208
201
|
def priority=: (Float) -> Float
|
|
@@ -240,7 +233,6 @@ module MetronomeSDK
|
|
|
240
233
|
?invoice_schedule: MetronomeSDK::V1::ContractAmendParams::Commit::InvoiceSchedule,
|
|
241
234
|
?name: String,
|
|
242
235
|
?netsuite_sales_order_id: String,
|
|
243
|
-
?payment_gate_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig,
|
|
244
236
|
?priority: Float,
|
|
245
237
|
?rate_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::rate_type,
|
|
246
238
|
?rollover_fraction: Float,
|
|
@@ -261,7 +253,6 @@ module MetronomeSDK
|
|
|
261
253
|
invoice_schedule: MetronomeSDK::V1::ContractAmendParams::Commit::InvoiceSchedule,
|
|
262
254
|
name: String,
|
|
263
255
|
netsuite_sales_order_id: String,
|
|
264
|
-
payment_gate_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig,
|
|
265
256
|
priority: Float,
|
|
266
257
|
rate_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::rate_type,
|
|
267
258
|
rollover_fraction: Float,
|
|
@@ -487,134 +478,6 @@ module MetronomeSDK
|
|
|
487
478
|
end
|
|
488
479
|
end
|
|
489
480
|
|
|
490
|
-
type payment_gate_config =
|
|
491
|
-
{
|
|
492
|
-
payment_gate_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::payment_gate_type,
|
|
493
|
-
precalculated_tax_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
494
|
-
stripe_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig,
|
|
495
|
-
tax_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::tax_type
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
class PaymentGateConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
499
|
-
attr_accessor payment_gate_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::payment_gate_type
|
|
500
|
-
|
|
501
|
-
attr_reader precalculated_tax_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::PrecalculatedTaxConfig?
|
|
502
|
-
|
|
503
|
-
def precalculated_tax_config=: (
|
|
504
|
-
MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::PrecalculatedTaxConfig
|
|
505
|
-
) -> MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::PrecalculatedTaxConfig
|
|
506
|
-
|
|
507
|
-
attr_reader stripe_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig?
|
|
508
|
-
|
|
509
|
-
def stripe_config=: (
|
|
510
|
-
MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig
|
|
511
|
-
) -> MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig
|
|
512
|
-
|
|
513
|
-
attr_reader tax_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::tax_type?
|
|
514
|
-
|
|
515
|
-
def tax_type=: (
|
|
516
|
-
MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::tax_type
|
|
517
|
-
) -> MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::tax_type
|
|
518
|
-
|
|
519
|
-
def initialize: (
|
|
520
|
-
payment_gate_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::payment_gate_type,
|
|
521
|
-
?precalculated_tax_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
522
|
-
?stripe_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig,
|
|
523
|
-
?tax_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::tax_type
|
|
524
|
-
) -> void
|
|
525
|
-
|
|
526
|
-
def to_hash: -> {
|
|
527
|
-
payment_gate_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::payment_gate_type,
|
|
528
|
-
precalculated_tax_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::PrecalculatedTaxConfig,
|
|
529
|
-
stripe_config: MetronomeSDK::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig,
|
|
530
|
-
tax_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::tax_type
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
type payment_gate_type = :NONE | :STRIPE | :EXTERNAL
|
|
534
|
-
|
|
535
|
-
module PaymentGateType
|
|
536
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
537
|
-
|
|
538
|
-
NONE: :NONE
|
|
539
|
-
STRIPE: :STRIPE
|
|
540
|
-
EXTERNAL: :EXTERNAL
|
|
541
|
-
|
|
542
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::payment_gate_type]
|
|
543
|
-
end
|
|
544
|
-
|
|
545
|
-
type precalculated_tax_config =
|
|
546
|
-
{ tax_amount: Float, tax_name: String }
|
|
547
|
-
|
|
548
|
-
class PrecalculatedTaxConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
549
|
-
attr_accessor tax_amount: Float
|
|
550
|
-
|
|
551
|
-
attr_reader tax_name: String?
|
|
552
|
-
|
|
553
|
-
def tax_name=: (String) -> String
|
|
554
|
-
|
|
555
|
-
def initialize: (tax_amount: Float, ?tax_name: String) -> void
|
|
556
|
-
|
|
557
|
-
def to_hash: -> { tax_amount: Float, tax_name: String }
|
|
558
|
-
end
|
|
559
|
-
|
|
560
|
-
type stripe_config =
|
|
561
|
-
{
|
|
562
|
-
payment_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig::payment_type,
|
|
563
|
-
invoice_metadata: ::Hash[Symbol, String],
|
|
564
|
-
on_session_payment: bool
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
class StripeConfig < MetronomeSDK::Internal::Type::BaseModel
|
|
568
|
-
attr_accessor payment_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig::payment_type
|
|
569
|
-
|
|
570
|
-
attr_reader invoice_metadata: ::Hash[Symbol, String]?
|
|
571
|
-
|
|
572
|
-
def invoice_metadata=: (
|
|
573
|
-
::Hash[Symbol, String]
|
|
574
|
-
) -> ::Hash[Symbol, String]
|
|
575
|
-
|
|
576
|
-
attr_reader on_session_payment: bool?
|
|
577
|
-
|
|
578
|
-
def on_session_payment=: (bool) -> bool
|
|
579
|
-
|
|
580
|
-
def initialize: (
|
|
581
|
-
payment_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig::payment_type,
|
|
582
|
-
?invoice_metadata: ::Hash[Symbol, String],
|
|
583
|
-
?on_session_payment: bool
|
|
584
|
-
) -> void
|
|
585
|
-
|
|
586
|
-
def to_hash: -> {
|
|
587
|
-
payment_type: MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig::payment_type,
|
|
588
|
-
invoice_metadata: ::Hash[Symbol, String],
|
|
589
|
-
on_session_payment: bool
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
type payment_type = :INVOICE | :PAYMENT_INTENT
|
|
593
|
-
|
|
594
|
-
module PaymentType
|
|
595
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
596
|
-
|
|
597
|
-
INVOICE: :INVOICE
|
|
598
|
-
PAYMENT_INTENT: :PAYMENT_INTENT
|
|
599
|
-
|
|
600
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig::payment_type]
|
|
601
|
-
end
|
|
602
|
-
end
|
|
603
|
-
|
|
604
|
-
type tax_type = :NONE | :STRIPE | :ANROK | :PRECALCULATED
|
|
605
|
-
|
|
606
|
-
module TaxType
|
|
607
|
-
extend MetronomeSDK::Internal::Type::Enum
|
|
608
|
-
|
|
609
|
-
NONE: :NONE
|
|
610
|
-
STRIPE: :STRIPE
|
|
611
|
-
ANROK: :ANROK
|
|
612
|
-
PRECALCULATED: :PRECALCULATED
|
|
613
|
-
|
|
614
|
-
def self?.values: -> ::Array[MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::tax_type]
|
|
615
|
-
end
|
|
616
|
-
end
|
|
617
|
-
|
|
618
481
|
type rate_type = :COMMIT_RATE | :LIST_RATE
|
|
619
482
|
|
|
620
483
|
module RateType
|
|
@@ -1111,8 +974,7 @@ module MetronomeSDK
|
|
|
1111
974
|
pricing_group_values: ::Hash[Symbol, String],
|
|
1112
975
|
product_id: String,
|
|
1113
976
|
product_tags: ::Array[String],
|
|
1114
|
-
recurring_commit_ids: ::Array[String]
|
|
1115
|
-
recurring_credit_ids: ::Array[String]
|
|
977
|
+
recurring_commit_ids: ::Array[String]
|
|
1116
978
|
}
|
|
1117
979
|
|
|
1118
980
|
class OverrideSpecifier < MetronomeSDK::Internal::Type::BaseModel
|
|
@@ -1150,10 +1012,6 @@ module MetronomeSDK
|
|
|
1150
1012
|
|
|
1151
1013
|
def recurring_commit_ids=: (::Array[String]) -> ::Array[String]
|
|
1152
1014
|
|
|
1153
|
-
attr_reader recurring_credit_ids: ::Array[String]?
|
|
1154
|
-
|
|
1155
|
-
def recurring_credit_ids=: (::Array[String]) -> ::Array[String]
|
|
1156
|
-
|
|
1157
1015
|
def initialize: (
|
|
1158
1016
|
?billing_frequency: MetronomeSDK::Models::V1::ContractAmendParams::Override::OverrideSpecifier::billing_frequency,
|
|
1159
1017
|
?commit_ids: ::Array[String],
|
|
@@ -1161,8 +1019,7 @@ module MetronomeSDK
|
|
|
1161
1019
|
?pricing_group_values: ::Hash[Symbol, String],
|
|
1162
1020
|
?product_id: String,
|
|
1163
1021
|
?product_tags: ::Array[String],
|
|
1164
|
-
?recurring_commit_ids: ::Array[String]
|
|
1165
|
-
?recurring_credit_ids: ::Array[String]
|
|
1022
|
+
?recurring_commit_ids: ::Array[String]
|
|
1166
1023
|
) -> void
|
|
1167
1024
|
|
|
1168
1025
|
def to_hash: -> {
|
|
@@ -1172,8 +1029,7 @@ module MetronomeSDK
|
|
|
1172
1029
|
pricing_group_values: ::Hash[Symbol, String],
|
|
1173
1030
|
product_id: String,
|
|
1174
1031
|
product_tags: ::Array[String],
|
|
1175
|
-
recurring_commit_ids: ::Array[String]
|
|
1176
|
-
recurring_credit_ids: ::Array[String]
|
|
1032
|
+
recurring_commit_ids: ::Array[String]
|
|
1177
1033
|
}
|
|
1178
1034
|
|
|
1179
1035
|
type billing_frequency = :MONTHLY | :QUARTERLY | :ANNUAL | :WEEKLY
|