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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38014623b9d35e9a21f898d52dd9b6ae72add7d81d6b2e7b770c52fe0a8b20e4
|
4
|
+
data.tar.gz: 9e4077b061466a1143aae81ca11a13ed72197f49fe789a878785401b2881db5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4e090684580441ec584194c11f958ef16cad342df8297fc195ac48157e3c382b2cc7c4ea2004e4c8a6e73d005057e9fbd5ace348965da03d1155c4f6efc31ac
|
7
|
+
data.tar.gz: b37691fc91a2d572a8d45e3f8dc8c490da23ff3c4f6f1b9304318be291a4f040dfb243ae758d6a56ed8ce5b2ea422dba066424cb795769be90733e8b7c15e69e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.8.0 (2025-05-29)
|
4
|
+
|
5
|
+
Full Changelog: [v0.7.0...v0.8.0](https://github.com/orbcorp/orb-ruby/compare/v0.7.0...v0.8.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([a2e8bcf](https://github.com/orbcorp/orb-ruby/commit/a2e8bcf1773986a845af2abcf055036a043b06bd))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* **internal:** version bump ([2e01a85](https://github.com/orbcorp/orb-ruby/commit/2e01a85a81d448e5ee4f15effb9edb5580634417))
|
15
|
+
|
3
16
|
## 0.7.0 (2025-05-28)
|
4
17
|
|
5
18
|
Full Changelog: [v0.6.0...v0.7.0](https://github.com/orbcorp/orb-ruby/compare/v0.6.0...v0.7.0)
|
data/README.md
CHANGED
@@ -408,14 +408,24 @@ module Orb
|
|
408
408
|
# @return [String]
|
409
409
|
required :currency, String
|
410
410
|
|
411
|
+
# @!attribute custom_expiration
|
412
|
+
# The custom expiration for the allocation.
|
413
|
+
#
|
414
|
+
# @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration, nil]
|
415
|
+
optional :custom_expiration,
|
416
|
+
-> {
|
417
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration
|
418
|
+
},
|
419
|
+
nil?: true
|
420
|
+
|
411
421
|
# @!attribute expires_at_end_of_cadence
|
412
422
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
413
|
-
# over to the next period.
|
423
|
+
# over to the next period. Set to null if using custom_expiration.
|
414
424
|
#
|
415
|
-
# @return [Boolean]
|
416
|
-
|
425
|
+
# @return [Boolean, nil]
|
426
|
+
optional :expires_at_end_of_cadence, Orb::Internal::Type::Boolean, nil?: true
|
417
427
|
|
418
|
-
# @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:)
|
428
|
+
# @!method initialize(amount:, cadence:, currency:, custom_expiration: nil, expires_at_end_of_cadence: nil)
|
419
429
|
# Some parameter documentations has been truncated, see
|
420
430
|
# {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice}
|
421
431
|
# for more details.
|
@@ -428,7 +438,9 @@ module Orb
|
|
428
438
|
#
|
429
439
|
# @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
430
440
|
#
|
431
|
-
# @param
|
441
|
+
# @param custom_expiration [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration, nil] The custom expiration for the allocation.
|
442
|
+
#
|
443
|
+
# @param expires_at_end_of_cadence [Boolean, nil] Whether the allocated amount should expire at the end of the cadence or roll ove
|
432
444
|
|
433
445
|
# The cadence at which to allocate the amount to the customer.
|
434
446
|
#
|
@@ -446,6 +458,39 @@ module Orb
|
|
446
458
|
# @!method self.values
|
447
459
|
# @return [Array<Symbol>]
|
448
460
|
end
|
461
|
+
|
462
|
+
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice#custom_expiration
|
463
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
464
|
+
# @!attribute duration
|
465
|
+
#
|
466
|
+
# @return [Integer]
|
467
|
+
required :duration, Integer
|
468
|
+
|
469
|
+
# @!attribute duration_unit
|
470
|
+
#
|
471
|
+
# @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit]
|
472
|
+
required :duration_unit,
|
473
|
+
enum: -> {
|
474
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit
|
475
|
+
}
|
476
|
+
|
477
|
+
# @!method initialize(duration:, duration_unit:)
|
478
|
+
# The custom expiration for the allocation.
|
479
|
+
#
|
480
|
+
# @param duration [Integer]
|
481
|
+
# @param duration_unit [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit]
|
482
|
+
|
483
|
+
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration#duration_unit
|
484
|
+
module DurationUnit
|
485
|
+
extend Orb::Internal::Type::Enum
|
486
|
+
|
487
|
+
DAY = :day
|
488
|
+
MONTH = :month
|
489
|
+
|
490
|
+
# @!method self.values
|
491
|
+
# @return [Array<Symbol>]
|
492
|
+
end
|
493
|
+
end
|
449
494
|
end
|
450
495
|
|
451
496
|
# The price to add to the plan
|
@@ -9349,14 +9394,24 @@ module Orb
|
|
9349
9394
|
# @return [String]
|
9350
9395
|
required :currency, String
|
9351
9396
|
|
9397
|
+
# @!attribute custom_expiration
|
9398
|
+
# The custom expiration for the allocation.
|
9399
|
+
#
|
9400
|
+
# @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration, nil]
|
9401
|
+
optional :custom_expiration,
|
9402
|
+
-> {
|
9403
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration
|
9404
|
+
},
|
9405
|
+
nil?: true
|
9406
|
+
|
9352
9407
|
# @!attribute expires_at_end_of_cadence
|
9353
9408
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
9354
|
-
# over to the next period.
|
9409
|
+
# over to the next period. Set to null if using custom_expiration.
|
9355
9410
|
#
|
9356
|
-
# @return [Boolean]
|
9357
|
-
|
9411
|
+
# @return [Boolean, nil]
|
9412
|
+
optional :expires_at_end_of_cadence, Orb::Internal::Type::Boolean, nil?: true
|
9358
9413
|
|
9359
|
-
# @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:)
|
9414
|
+
# @!method initialize(amount:, cadence:, currency:, custom_expiration: nil, expires_at_end_of_cadence: nil)
|
9360
9415
|
# Some parameter documentations has been truncated, see
|
9361
9416
|
# {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice}
|
9362
9417
|
# for more details.
|
@@ -9369,7 +9424,9 @@ module Orb
|
|
9369
9424
|
#
|
9370
9425
|
# @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
9371
9426
|
#
|
9372
|
-
# @param
|
9427
|
+
# @param custom_expiration [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration, nil] The custom expiration for the allocation.
|
9428
|
+
#
|
9429
|
+
# @param expires_at_end_of_cadence [Boolean, nil] Whether the allocated amount should expire at the end of the cadence or roll ove
|
9373
9430
|
|
9374
9431
|
# The cadence at which to allocate the amount to the customer.
|
9375
9432
|
#
|
@@ -9387,6 +9444,39 @@ module Orb
|
|
9387
9444
|
# @!method self.values
|
9388
9445
|
# @return [Array<Symbol>]
|
9389
9446
|
end
|
9447
|
+
|
9448
|
+
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice#custom_expiration
|
9449
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
9450
|
+
# @!attribute duration
|
9451
|
+
#
|
9452
|
+
# @return [Integer]
|
9453
|
+
required :duration, Integer
|
9454
|
+
|
9455
|
+
# @!attribute duration_unit
|
9456
|
+
#
|
9457
|
+
# @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit]
|
9458
|
+
required :duration_unit,
|
9459
|
+
enum: -> {
|
9460
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit
|
9461
|
+
}
|
9462
|
+
|
9463
|
+
# @!method initialize(duration:, duration_unit:)
|
9464
|
+
# The custom expiration for the allocation.
|
9465
|
+
#
|
9466
|
+
# @param duration [Integer]
|
9467
|
+
# @param duration_unit [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit]
|
9468
|
+
|
9469
|
+
# @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration#duration_unit
|
9470
|
+
module DurationUnit
|
9471
|
+
extend Orb::Internal::Type::Enum
|
9472
|
+
|
9473
|
+
DAY = :day
|
9474
|
+
MONTH = :month
|
9475
|
+
|
9476
|
+
# @!method self.values
|
9477
|
+
# @return [Array<Symbol>]
|
9478
|
+
end
|
9479
|
+
end
|
9390
9480
|
end
|
9391
9481
|
|
9392
9482
|
# The price to add to the plan
|
@@ -381,14 +381,22 @@ module Orb
|
|
381
381
|
# @return [String]
|
382
382
|
required :currency, String
|
383
383
|
|
384
|
+
# @!attribute custom_expiration
|
385
|
+
# The custom expiration for the allocation.
|
386
|
+
#
|
387
|
+
# @return [Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration, nil]
|
388
|
+
optional :custom_expiration,
|
389
|
+
-> { Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration },
|
390
|
+
nil?: true
|
391
|
+
|
384
392
|
# @!attribute expires_at_end_of_cadence
|
385
393
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
386
|
-
# over to the next period.
|
394
|
+
# over to the next period. Set to null if using custom_expiration.
|
387
395
|
#
|
388
|
-
# @return [Boolean]
|
389
|
-
|
396
|
+
# @return [Boolean, nil]
|
397
|
+
optional :expires_at_end_of_cadence, Orb::Internal::Type::Boolean, nil?: true
|
390
398
|
|
391
|
-
# @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:)
|
399
|
+
# @!method initialize(amount:, cadence:, currency:, custom_expiration: nil, expires_at_end_of_cadence: nil)
|
392
400
|
# Some parameter documentations has been truncated, see
|
393
401
|
# {Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice} for more
|
394
402
|
# details.
|
@@ -401,7 +409,9 @@ module Orb
|
|
401
409
|
#
|
402
410
|
# @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
403
411
|
#
|
404
|
-
# @param
|
412
|
+
# @param custom_expiration [Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration, nil] The custom expiration for the allocation.
|
413
|
+
#
|
414
|
+
# @param expires_at_end_of_cadence [Boolean, nil] Whether the allocated amount should expire at the end of the cadence or roll ove
|
405
415
|
|
406
416
|
# The cadence at which to allocate the amount to the customer.
|
407
417
|
#
|
@@ -419,6 +429,39 @@ module Orb
|
|
419
429
|
# @!method self.values
|
420
430
|
# @return [Array<Symbol>]
|
421
431
|
end
|
432
|
+
|
433
|
+
# @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice#custom_expiration
|
434
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
435
|
+
# @!attribute duration
|
436
|
+
#
|
437
|
+
# @return [Integer]
|
438
|
+
required :duration, Integer
|
439
|
+
|
440
|
+
# @!attribute duration_unit
|
441
|
+
#
|
442
|
+
# @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit]
|
443
|
+
required :duration_unit,
|
444
|
+
enum: -> {
|
445
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit
|
446
|
+
}
|
447
|
+
|
448
|
+
# @!method initialize(duration:, duration_unit:)
|
449
|
+
# The custom expiration for the allocation.
|
450
|
+
#
|
451
|
+
# @param duration [Integer]
|
452
|
+
# @param duration_unit [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit]
|
453
|
+
|
454
|
+
# @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration#duration_unit
|
455
|
+
module DurationUnit
|
456
|
+
extend Orb::Internal::Type::Enum
|
457
|
+
|
458
|
+
DAY = :day
|
459
|
+
MONTH = :month
|
460
|
+
|
461
|
+
# @!method self.values
|
462
|
+
# @return [Array<Symbol>]
|
463
|
+
end
|
464
|
+
end
|
422
465
|
end
|
423
466
|
|
424
467
|
# The price to add to the plan
|
@@ -9235,14 +9278,22 @@ module Orb
|
|
9235
9278
|
# @return [String]
|
9236
9279
|
required :currency, String
|
9237
9280
|
|
9281
|
+
# @!attribute custom_expiration
|
9282
|
+
# The custom expiration for the allocation.
|
9283
|
+
#
|
9284
|
+
# @return [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration, nil]
|
9285
|
+
optional :custom_expiration,
|
9286
|
+
-> { Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration },
|
9287
|
+
nil?: true
|
9288
|
+
|
9238
9289
|
# @!attribute expires_at_end_of_cadence
|
9239
9290
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
9240
|
-
# over to the next period.
|
9291
|
+
# over to the next period. Set to null if using custom_expiration.
|
9241
9292
|
#
|
9242
|
-
# @return [Boolean]
|
9243
|
-
|
9293
|
+
# @return [Boolean, nil]
|
9294
|
+
optional :expires_at_end_of_cadence, Orb::Internal::Type::Boolean, nil?: true
|
9244
9295
|
|
9245
|
-
# @!method initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:)
|
9296
|
+
# @!method initialize(amount:, cadence:, currency:, custom_expiration: nil, expires_at_end_of_cadence: nil)
|
9246
9297
|
# Some parameter documentations has been truncated, see
|
9247
9298
|
# {Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice} for
|
9248
9299
|
# more details.
|
@@ -9255,7 +9306,9 @@ module Orb
|
|
9255
9306
|
#
|
9256
9307
|
# @param currency [String] An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
9257
9308
|
#
|
9258
|
-
# @param
|
9309
|
+
# @param custom_expiration [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration, nil] The custom expiration for the allocation.
|
9310
|
+
#
|
9311
|
+
# @param expires_at_end_of_cadence [Boolean, nil] Whether the allocated amount should expire at the end of the cadence or roll ove
|
9259
9312
|
|
9260
9313
|
# The cadence at which to allocate the amount to the customer.
|
9261
9314
|
#
|
@@ -9273,6 +9326,39 @@ module Orb
|
|
9273
9326
|
# @!method self.values
|
9274
9327
|
# @return [Array<Symbol>]
|
9275
9328
|
end
|
9329
|
+
|
9330
|
+
# @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice#custom_expiration
|
9331
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
9332
|
+
# @!attribute duration
|
9333
|
+
#
|
9334
|
+
# @return [Integer]
|
9335
|
+
required :duration, Integer
|
9336
|
+
|
9337
|
+
# @!attribute duration_unit
|
9338
|
+
#
|
9339
|
+
# @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit]
|
9340
|
+
required :duration_unit,
|
9341
|
+
enum: -> {
|
9342
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit
|
9343
|
+
}
|
9344
|
+
|
9345
|
+
# @!method initialize(duration:, duration_unit:)
|
9346
|
+
# The custom expiration for the allocation.
|
9347
|
+
#
|
9348
|
+
# @param duration [Integer]
|
9349
|
+
# @param duration_unit [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit]
|
9350
|
+
|
9351
|
+
# @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration#duration_unit
|
9352
|
+
module DurationUnit
|
9353
|
+
extend Orb::Internal::Type::Enum
|
9354
|
+
|
9355
|
+
DAY = :day
|
9356
|
+
MONTH = :month
|
9357
|
+
|
9358
|
+
# @!method self.values
|
9359
|
+
# @return [Array<Symbol>]
|
9360
|
+
end
|
9361
|
+
end
|
9276
9362
|
end
|
9277
9363
|
|
9278
9364
|
# The price to add to the plan
|