orb-billing 0.7.0 → 0.8.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 +13 -0
- data/README.md +1 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +100 -10
- data/lib/orb/models/beta_create_plan_version_params.rb +96 -10
- data/lib/orb/models/price.rb +1114 -28
- data/lib/orb/models/subscription_create_params.rb +96 -10
- data/lib/orb/models/subscription_price_intervals_params.rb +48 -5
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +100 -10
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +226 -12
- data/rbi/orb/models/beta_create_plan_version_params.rbi +226 -12
- data/rbi/orb/models/price.rbi +3220 -184
- data/rbi/orb/models/subscription_create_params.rbi +226 -12
- data/rbi/orb/models/subscription_price_intervals_params.rbi +113 -6
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +226 -12
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +84 -8
- data/sig/orb/models/beta_create_plan_version_params.rbs +84 -8
- data/sig/orb/models/price.rbs +1430 -86
- data/sig/orb/models/subscription_create_params.rbs +84 -8
- data/sig/orb/models/subscription_price_intervals_params.rbs +42 -4
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +84 -8
- metadata +2 -2
@@ -1185,9 +1185,29 @@ module Orb
|
|
1185
1185
|
sig { returns(String) }
|
1186
1186
|
attr_accessor :currency
|
1187
1187
|
|
1188
|
+
# The custom expiration for the allocation.
|
1189
|
+
sig do
|
1190
|
+
returns(
|
1191
|
+
T.nilable(
|
1192
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration
|
1193
|
+
)
|
1194
|
+
)
|
1195
|
+
end
|
1196
|
+
attr_reader :custom_expiration
|
1197
|
+
|
1198
|
+
sig do
|
1199
|
+
params(
|
1200
|
+
custom_expiration:
|
1201
|
+
T.nilable(
|
1202
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::OrHash
|
1203
|
+
)
|
1204
|
+
).void
|
1205
|
+
end
|
1206
|
+
attr_writer :custom_expiration
|
1207
|
+
|
1188
1208
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
1189
|
-
# over to the next period.
|
1190
|
-
sig { returns(T::Boolean) }
|
1209
|
+
# over to the next period. Set to null if using custom_expiration.
|
1210
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1191
1211
|
attr_accessor :expires_at_end_of_cadence
|
1192
1212
|
|
1193
1213
|
# The definition of a new allocation price to create and add to the subscription.
|
@@ -1197,7 +1217,11 @@ module Orb
|
|
1197
1217
|
cadence:
|
1198
1218
|
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol,
|
1199
1219
|
currency: String,
|
1200
|
-
|
1220
|
+
custom_expiration:
|
1221
|
+
T.nilable(
|
1222
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::OrHash
|
1223
|
+
),
|
1224
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
1201
1225
|
).returns(T.attached_class)
|
1202
1226
|
end
|
1203
1227
|
def self.new(
|
@@ -1208,9 +1232,11 @@ module Orb
|
|
1208
1232
|
# An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
1209
1233
|
# this price.
|
1210
1234
|
currency:,
|
1235
|
+
# The custom expiration for the allocation.
|
1236
|
+
custom_expiration: nil,
|
1211
1237
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
1212
|
-
# over to the next period.
|
1213
|
-
expires_at_end_of_cadence:
|
1238
|
+
# over to the next period. Set to null if using custom_expiration.
|
1239
|
+
expires_at_end_of_cadence: nil
|
1214
1240
|
)
|
1215
1241
|
end
|
1216
1242
|
|
@@ -1221,7 +1247,11 @@ module Orb
|
|
1221
1247
|
cadence:
|
1222
1248
|
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol,
|
1223
1249
|
currency: String,
|
1224
|
-
|
1250
|
+
custom_expiration:
|
1251
|
+
T.nilable(
|
1252
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration
|
1253
|
+
),
|
1254
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
1225
1255
|
}
|
1226
1256
|
)
|
1227
1257
|
end
|
@@ -1282,6 +1312,83 @@ module Orb
|
|
1282
1312
|
def self.values
|
1283
1313
|
end
|
1284
1314
|
end
|
1315
|
+
|
1316
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
1317
|
+
OrHash =
|
1318
|
+
T.type_alias do
|
1319
|
+
T.any(
|
1320
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration,
|
1321
|
+
Orb::Internal::AnyHash
|
1322
|
+
)
|
1323
|
+
end
|
1324
|
+
|
1325
|
+
sig { returns(Integer) }
|
1326
|
+
attr_accessor :duration
|
1327
|
+
|
1328
|
+
sig do
|
1329
|
+
returns(
|
1330
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
1331
|
+
)
|
1332
|
+
end
|
1333
|
+
attr_accessor :duration_unit
|
1334
|
+
|
1335
|
+
# The custom expiration for the allocation.
|
1336
|
+
sig do
|
1337
|
+
params(
|
1338
|
+
duration: Integer,
|
1339
|
+
duration_unit:
|
1340
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
1341
|
+
).returns(T.attached_class)
|
1342
|
+
end
|
1343
|
+
def self.new(duration:, duration_unit:)
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
sig do
|
1347
|
+
override.returns(
|
1348
|
+
{
|
1349
|
+
duration: Integer,
|
1350
|
+
duration_unit:
|
1351
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
1352
|
+
}
|
1353
|
+
)
|
1354
|
+
end
|
1355
|
+
def to_hash
|
1356
|
+
end
|
1357
|
+
|
1358
|
+
module DurationUnit
|
1359
|
+
extend Orb::Internal::Type::Enum
|
1360
|
+
|
1361
|
+
TaggedSymbol =
|
1362
|
+
T.type_alias do
|
1363
|
+
T.all(
|
1364
|
+
Symbol,
|
1365
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit
|
1366
|
+
)
|
1367
|
+
end
|
1368
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1369
|
+
|
1370
|
+
DAY =
|
1371
|
+
T.let(
|
1372
|
+
:day,
|
1373
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
1374
|
+
)
|
1375
|
+
MONTH =
|
1376
|
+
T.let(
|
1377
|
+
:month,
|
1378
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
1379
|
+
)
|
1380
|
+
|
1381
|
+
sig do
|
1382
|
+
override.returns(
|
1383
|
+
T::Array[
|
1384
|
+
Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
1385
|
+
]
|
1386
|
+
)
|
1387
|
+
end
|
1388
|
+
def self.values
|
1389
|
+
end
|
1390
|
+
end
|
1391
|
+
end
|
1285
1392
|
end
|
1286
1393
|
|
1287
1394
|
class Discount < Orb::Internal::Type::BaseModel
|
@@ -17984,9 +18091,29 @@ module Orb
|
|
17984
18091
|
sig { returns(String) }
|
17985
18092
|
attr_accessor :currency
|
17986
18093
|
|
18094
|
+
# The custom expiration for the allocation.
|
18095
|
+
sig do
|
18096
|
+
returns(
|
18097
|
+
T.nilable(
|
18098
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration
|
18099
|
+
)
|
18100
|
+
)
|
18101
|
+
end
|
18102
|
+
attr_reader :custom_expiration
|
18103
|
+
|
18104
|
+
sig do
|
18105
|
+
params(
|
18106
|
+
custom_expiration:
|
18107
|
+
T.nilable(
|
18108
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::OrHash
|
18109
|
+
)
|
18110
|
+
).void
|
18111
|
+
end
|
18112
|
+
attr_writer :custom_expiration
|
18113
|
+
|
17987
18114
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
17988
|
-
# over to the next period.
|
17989
|
-
sig { returns(T::Boolean) }
|
18115
|
+
# over to the next period. Set to null if using custom_expiration.
|
18116
|
+
sig { returns(T.nilable(T::Boolean)) }
|
17990
18117
|
attr_accessor :expires_at_end_of_cadence
|
17991
18118
|
|
17992
18119
|
# The definition of a new allocation price to create and add to the subscription.
|
@@ -17996,7 +18123,11 @@ module Orb
|
|
17996
18123
|
cadence:
|
17997
18124
|
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol,
|
17998
18125
|
currency: String,
|
17999
|
-
|
18126
|
+
custom_expiration:
|
18127
|
+
T.nilable(
|
18128
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::OrHash
|
18129
|
+
),
|
18130
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
18000
18131
|
).returns(T.attached_class)
|
18001
18132
|
end
|
18002
18133
|
def self.new(
|
@@ -18007,9 +18138,11 @@ module Orb
|
|
18007
18138
|
# An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
18008
18139
|
# this price.
|
18009
18140
|
currency:,
|
18141
|
+
# The custom expiration for the allocation.
|
18142
|
+
custom_expiration: nil,
|
18010
18143
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
18011
|
-
# over to the next period.
|
18012
|
-
expires_at_end_of_cadence:
|
18144
|
+
# over to the next period. Set to null if using custom_expiration.
|
18145
|
+
expires_at_end_of_cadence: nil
|
18013
18146
|
)
|
18014
18147
|
end
|
18015
18148
|
|
@@ -18020,7 +18153,11 @@ module Orb
|
|
18020
18153
|
cadence:
|
18021
18154
|
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol,
|
18022
18155
|
currency: String,
|
18023
|
-
|
18156
|
+
custom_expiration:
|
18157
|
+
T.nilable(
|
18158
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration
|
18159
|
+
),
|
18160
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
18024
18161
|
}
|
18025
18162
|
)
|
18026
18163
|
end
|
@@ -18081,6 +18218,83 @@ module Orb
|
|
18081
18218
|
def self.values
|
18082
18219
|
end
|
18083
18220
|
end
|
18221
|
+
|
18222
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
18223
|
+
OrHash =
|
18224
|
+
T.type_alias do
|
18225
|
+
T.any(
|
18226
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration,
|
18227
|
+
Orb::Internal::AnyHash
|
18228
|
+
)
|
18229
|
+
end
|
18230
|
+
|
18231
|
+
sig { returns(Integer) }
|
18232
|
+
attr_accessor :duration
|
18233
|
+
|
18234
|
+
sig do
|
18235
|
+
returns(
|
18236
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
18237
|
+
)
|
18238
|
+
end
|
18239
|
+
attr_accessor :duration_unit
|
18240
|
+
|
18241
|
+
# The custom expiration for the allocation.
|
18242
|
+
sig do
|
18243
|
+
params(
|
18244
|
+
duration: Integer,
|
18245
|
+
duration_unit:
|
18246
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
18247
|
+
).returns(T.attached_class)
|
18248
|
+
end
|
18249
|
+
def self.new(duration:, duration_unit:)
|
18250
|
+
end
|
18251
|
+
|
18252
|
+
sig do
|
18253
|
+
override.returns(
|
18254
|
+
{
|
18255
|
+
duration: Integer,
|
18256
|
+
duration_unit:
|
18257
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
18258
|
+
}
|
18259
|
+
)
|
18260
|
+
end
|
18261
|
+
def to_hash
|
18262
|
+
end
|
18263
|
+
|
18264
|
+
module DurationUnit
|
18265
|
+
extend Orb::Internal::Type::Enum
|
18266
|
+
|
18267
|
+
TaggedSymbol =
|
18268
|
+
T.type_alias do
|
18269
|
+
T.all(
|
18270
|
+
Symbol,
|
18271
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit
|
18272
|
+
)
|
18273
|
+
end
|
18274
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
18275
|
+
|
18276
|
+
DAY =
|
18277
|
+
T.let(
|
18278
|
+
:day,
|
18279
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
18280
|
+
)
|
18281
|
+
MONTH =
|
18282
|
+
T.let(
|
18283
|
+
:month,
|
18284
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
18285
|
+
)
|
18286
|
+
|
18287
|
+
sig do
|
18288
|
+
override.returns(
|
18289
|
+
T::Array[
|
18290
|
+
Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
18291
|
+
]
|
18292
|
+
)
|
18293
|
+
end
|
18294
|
+
def self.values
|
18295
|
+
end
|
18296
|
+
end
|
18297
|
+
end
|
18084
18298
|
end
|
18085
18299
|
|
18086
18300
|
class Discount < Orb::Internal::Type::BaseModel
|
@@ -299,7 +299,8 @@ module Orb
|
|
299
299
|
amount: String,
|
300
300
|
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::cadence,
|
301
301
|
currency: String,
|
302
|
-
|
302
|
+
custom_expiration: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration?,
|
303
|
+
expires_at_end_of_cadence: bool?
|
303
304
|
}
|
304
305
|
|
305
306
|
class AllocationPrice < Orb::Internal::Type::BaseModel
|
@@ -309,20 +310,24 @@ module Orb
|
|
309
310
|
|
310
311
|
attr_accessor currency: String
|
311
312
|
|
312
|
-
attr_accessor
|
313
|
+
attr_accessor custom_expiration: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration?
|
314
|
+
|
315
|
+
attr_accessor expires_at_end_of_cadence: bool?
|
313
316
|
|
314
317
|
def initialize: (
|
315
318
|
amount: String,
|
316
319
|
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::cadence,
|
317
320
|
currency: String,
|
318
|
-
|
321
|
+
?custom_expiration: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration?,
|
322
|
+
?expires_at_end_of_cadence: bool?
|
319
323
|
) -> void
|
320
324
|
|
321
325
|
def to_hash: -> {
|
322
326
|
amount: String,
|
323
327
|
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::cadence,
|
324
328
|
currency: String,
|
325
|
-
|
329
|
+
custom_expiration: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration?,
|
330
|
+
expires_at_end_of_cadence: bool?
|
326
331
|
}
|
327
332
|
|
328
333
|
type cadence =
|
@@ -345,6 +350,39 @@ module Orb
|
|
345
350
|
|
346
351
|
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::cadence]
|
347
352
|
end
|
353
|
+
|
354
|
+
type custom_expiration =
|
355
|
+
{
|
356
|
+
duration: Integer,
|
357
|
+
duration_unit: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
358
|
+
}
|
359
|
+
|
360
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
361
|
+
attr_accessor duration: Integer
|
362
|
+
|
363
|
+
attr_accessor duration_unit: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
364
|
+
|
365
|
+
def initialize: (
|
366
|
+
duration: Integer,
|
367
|
+
duration_unit: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
368
|
+
) -> void
|
369
|
+
|
370
|
+
def to_hash: -> {
|
371
|
+
duration: Integer,
|
372
|
+
duration_unit: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
373
|
+
}
|
374
|
+
|
375
|
+
type duration_unit = :day | :month
|
376
|
+
|
377
|
+
module DurationUnit
|
378
|
+
extend Orb::Internal::Type::Enum
|
379
|
+
|
380
|
+
DAY: :day
|
381
|
+
MONTH: :month
|
382
|
+
|
383
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit]
|
384
|
+
end
|
385
|
+
end
|
348
386
|
end
|
349
387
|
|
350
388
|
type price =
|
@@ -6737,7 +6775,8 @@ module Orb
|
|
6737
6775
|
amount: String,
|
6738
6776
|
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::cadence,
|
6739
6777
|
currency: String,
|
6740
|
-
|
6778
|
+
custom_expiration: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
6779
|
+
expires_at_end_of_cadence: bool?
|
6741
6780
|
}
|
6742
6781
|
|
6743
6782
|
class AllocationPrice < Orb::Internal::Type::BaseModel
|
@@ -6747,20 +6786,24 @@ module Orb
|
|
6747
6786
|
|
6748
6787
|
attr_accessor currency: String
|
6749
6788
|
|
6750
|
-
attr_accessor
|
6789
|
+
attr_accessor custom_expiration: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration?
|
6790
|
+
|
6791
|
+
attr_accessor expires_at_end_of_cadence: bool?
|
6751
6792
|
|
6752
6793
|
def initialize: (
|
6753
6794
|
amount: String,
|
6754
6795
|
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::cadence,
|
6755
6796
|
currency: String,
|
6756
|
-
|
6797
|
+
?custom_expiration: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
6798
|
+
?expires_at_end_of_cadence: bool?
|
6757
6799
|
) -> void
|
6758
6800
|
|
6759
6801
|
def to_hash: -> {
|
6760
6802
|
amount: String,
|
6761
6803
|
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::cadence,
|
6762
6804
|
currency: String,
|
6763
|
-
|
6805
|
+
custom_expiration: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
6806
|
+
expires_at_end_of_cadence: bool?
|
6764
6807
|
}
|
6765
6808
|
|
6766
6809
|
type cadence =
|
@@ -6783,6 +6826,39 @@ module Orb
|
|
6783
6826
|
|
6784
6827
|
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::cadence]
|
6785
6828
|
end
|
6829
|
+
|
6830
|
+
type custom_expiration =
|
6831
|
+
{
|
6832
|
+
duration: Integer,
|
6833
|
+
duration_unit: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
6834
|
+
}
|
6835
|
+
|
6836
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
6837
|
+
attr_accessor duration: Integer
|
6838
|
+
|
6839
|
+
attr_accessor duration_unit: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
6840
|
+
|
6841
|
+
def initialize: (
|
6842
|
+
duration: Integer,
|
6843
|
+
duration_unit: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
6844
|
+
) -> void
|
6845
|
+
|
6846
|
+
def to_hash: -> {
|
6847
|
+
duration: Integer,
|
6848
|
+
duration_unit: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
6849
|
+
}
|
6850
|
+
|
6851
|
+
type duration_unit = :day | :month
|
6852
|
+
|
6853
|
+
module DurationUnit
|
6854
|
+
extend Orb::Internal::Type::Enum
|
6855
|
+
|
6856
|
+
DAY: :day
|
6857
|
+
MONTH: :month
|
6858
|
+
|
6859
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit]
|
6860
|
+
end
|
6861
|
+
end
|
6786
6862
|
end
|
6787
6863
|
|
6788
6864
|
type price =
|
@@ -298,7 +298,8 @@ module Orb
|
|
298
298
|
amount: String,
|
299
299
|
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::cadence,
|
300
300
|
currency: String,
|
301
|
-
|
301
|
+
custom_expiration: Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration?,
|
302
|
+
expires_at_end_of_cadence: bool?
|
302
303
|
}
|
303
304
|
|
304
305
|
class AllocationPrice < Orb::Internal::Type::BaseModel
|
@@ -308,20 +309,24 @@ module Orb
|
|
308
309
|
|
309
310
|
attr_accessor currency: String
|
310
311
|
|
311
|
-
attr_accessor
|
312
|
+
attr_accessor custom_expiration: Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration?
|
313
|
+
|
314
|
+
attr_accessor expires_at_end_of_cadence: bool?
|
312
315
|
|
313
316
|
def initialize: (
|
314
317
|
amount: String,
|
315
318
|
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::cadence,
|
316
319
|
currency: String,
|
317
|
-
|
320
|
+
?custom_expiration: Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration?,
|
321
|
+
?expires_at_end_of_cadence: bool?
|
318
322
|
) -> void
|
319
323
|
|
320
324
|
def to_hash: -> {
|
321
325
|
amount: String,
|
322
326
|
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::cadence,
|
323
327
|
currency: String,
|
324
|
-
|
328
|
+
custom_expiration: Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration?,
|
329
|
+
expires_at_end_of_cadence: bool?
|
325
330
|
}
|
326
331
|
|
327
332
|
type cadence =
|
@@ -339,6 +344,39 @@ module Orb
|
|
339
344
|
|
340
345
|
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::cadence]
|
341
346
|
end
|
347
|
+
|
348
|
+
type custom_expiration =
|
349
|
+
{
|
350
|
+
duration: Integer,
|
351
|
+
duration_unit: Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
352
|
+
}
|
353
|
+
|
354
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
355
|
+
attr_accessor duration: Integer
|
356
|
+
|
357
|
+
attr_accessor duration_unit: Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
358
|
+
|
359
|
+
def initialize: (
|
360
|
+
duration: Integer,
|
361
|
+
duration_unit: Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
362
|
+
) -> void
|
363
|
+
|
364
|
+
def to_hash: -> {
|
365
|
+
duration: Integer,
|
366
|
+
duration_unit: Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
367
|
+
}
|
368
|
+
|
369
|
+
type duration_unit = :day | :month
|
370
|
+
|
371
|
+
module DurationUnit
|
372
|
+
extend Orb::Internal::Type::Enum
|
373
|
+
|
374
|
+
DAY: :day
|
375
|
+
MONTH: :month
|
376
|
+
|
377
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit]
|
378
|
+
end
|
379
|
+
end
|
342
380
|
end
|
343
381
|
|
344
382
|
type price =
|
@@ -6725,7 +6763,8 @@ module Orb
|
|
6725
6763
|
amount: String,
|
6726
6764
|
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::cadence,
|
6727
6765
|
currency: String,
|
6728
|
-
|
6766
|
+
custom_expiration: Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
6767
|
+
expires_at_end_of_cadence: bool?
|
6729
6768
|
}
|
6730
6769
|
|
6731
6770
|
class AllocationPrice < Orb::Internal::Type::BaseModel
|
@@ -6735,20 +6774,24 @@ module Orb
|
|
6735
6774
|
|
6736
6775
|
attr_accessor currency: String
|
6737
6776
|
|
6738
|
-
attr_accessor
|
6777
|
+
attr_accessor custom_expiration: Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration?
|
6778
|
+
|
6779
|
+
attr_accessor expires_at_end_of_cadence: bool?
|
6739
6780
|
|
6740
6781
|
def initialize: (
|
6741
6782
|
amount: String,
|
6742
6783
|
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::cadence,
|
6743
6784
|
currency: String,
|
6744
|
-
|
6785
|
+
?custom_expiration: Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
6786
|
+
?expires_at_end_of_cadence: bool?
|
6745
6787
|
) -> void
|
6746
6788
|
|
6747
6789
|
def to_hash: -> {
|
6748
6790
|
amount: String,
|
6749
6791
|
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::cadence,
|
6750
6792
|
currency: String,
|
6751
|
-
|
6793
|
+
custom_expiration: Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
6794
|
+
expires_at_end_of_cadence: bool?
|
6752
6795
|
}
|
6753
6796
|
|
6754
6797
|
type cadence =
|
@@ -6766,6 +6809,39 @@ module Orb
|
|
6766
6809
|
|
6767
6810
|
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::cadence]
|
6768
6811
|
end
|
6812
|
+
|
6813
|
+
type custom_expiration =
|
6814
|
+
{
|
6815
|
+
duration: Integer,
|
6816
|
+
duration_unit: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
6817
|
+
}
|
6818
|
+
|
6819
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
6820
|
+
attr_accessor duration: Integer
|
6821
|
+
|
6822
|
+
attr_accessor duration_unit: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
6823
|
+
|
6824
|
+
def initialize: (
|
6825
|
+
duration: Integer,
|
6826
|
+
duration_unit: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
6827
|
+
) -> void
|
6828
|
+
|
6829
|
+
def to_hash: -> {
|
6830
|
+
duration: Integer,
|
6831
|
+
duration_unit: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
6832
|
+
}
|
6833
|
+
|
6834
|
+
type duration_unit = :day | :month
|
6835
|
+
|
6836
|
+
module DurationUnit
|
6837
|
+
extend Orb::Internal::Type::Enum
|
6838
|
+
|
6839
|
+
DAY: :day
|
6840
|
+
MONTH: :month
|
6841
|
+
|
6842
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit]
|
6843
|
+
end
|
6844
|
+
end
|
6769
6845
|
end
|
6770
6846
|
|
6771
6847
|
type price =
|