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
@@ -470,7 +470,8 @@ module Orb
|
|
470
470
|
amount: String,
|
471
471
|
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence,
|
472
472
|
currency: String,
|
473
|
-
|
473
|
+
custom_expiration: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::CustomExpiration?,
|
474
|
+
expires_at_end_of_cadence: bool?
|
474
475
|
}
|
475
476
|
|
476
477
|
class AllocationPrice < Orb::Internal::Type::BaseModel
|
@@ -480,20 +481,24 @@ module Orb
|
|
480
481
|
|
481
482
|
attr_accessor currency: String
|
482
483
|
|
483
|
-
attr_accessor
|
484
|
+
attr_accessor custom_expiration: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::CustomExpiration?
|
485
|
+
|
486
|
+
attr_accessor expires_at_end_of_cadence: bool?
|
484
487
|
|
485
488
|
def initialize: (
|
486
489
|
amount: String,
|
487
490
|
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence,
|
488
491
|
currency: String,
|
489
|
-
|
492
|
+
?custom_expiration: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::CustomExpiration?,
|
493
|
+
?expires_at_end_of_cadence: bool?
|
490
494
|
) -> void
|
491
495
|
|
492
496
|
def to_hash: -> {
|
493
497
|
amount: String,
|
494
498
|
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence,
|
495
499
|
currency: String,
|
496
|
-
|
500
|
+
custom_expiration: Orb::SubscriptionCreateParams::AddPrice::AllocationPrice::CustomExpiration?,
|
501
|
+
expires_at_end_of_cadence: bool?
|
497
502
|
}
|
498
503
|
|
499
504
|
type cadence =
|
@@ -511,6 +516,39 @@ module Orb
|
|
511
516
|
|
512
517
|
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence]
|
513
518
|
end
|
519
|
+
|
520
|
+
type custom_expiration =
|
521
|
+
{
|
522
|
+
duration: Integer,
|
523
|
+
duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
524
|
+
}
|
525
|
+
|
526
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
527
|
+
attr_accessor duration: Integer
|
528
|
+
|
529
|
+
attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
530
|
+
|
531
|
+
def initialize: (
|
532
|
+
duration: Integer,
|
533
|
+
duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
534
|
+
) -> void
|
535
|
+
|
536
|
+
def to_hash: -> {
|
537
|
+
duration: Integer,
|
538
|
+
duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
539
|
+
}
|
540
|
+
|
541
|
+
type duration_unit = :day | :month
|
542
|
+
|
543
|
+
module DurationUnit
|
544
|
+
extend Orb::Internal::Type::Enum
|
545
|
+
|
546
|
+
DAY: :day
|
547
|
+
MONTH: :month
|
548
|
+
|
549
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit]
|
550
|
+
end
|
551
|
+
end
|
514
552
|
end
|
515
553
|
|
516
554
|
type discount =
|
@@ -7129,7 +7167,8 @@ module Orb
|
|
7129
7167
|
amount: String,
|
7130
7168
|
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence,
|
7131
7169
|
currency: String,
|
7132
|
-
|
7170
|
+
custom_expiration: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
7171
|
+
expires_at_end_of_cadence: bool?
|
7133
7172
|
}
|
7134
7173
|
|
7135
7174
|
class AllocationPrice < Orb::Internal::Type::BaseModel
|
@@ -7139,20 +7178,24 @@ module Orb
|
|
7139
7178
|
|
7140
7179
|
attr_accessor currency: String
|
7141
7180
|
|
7142
|
-
attr_accessor
|
7181
|
+
attr_accessor custom_expiration: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::CustomExpiration?
|
7182
|
+
|
7183
|
+
attr_accessor expires_at_end_of_cadence: bool?
|
7143
7184
|
|
7144
7185
|
def initialize: (
|
7145
7186
|
amount: String,
|
7146
7187
|
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence,
|
7147
7188
|
currency: String,
|
7148
|
-
|
7189
|
+
?custom_expiration: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
7190
|
+
?expires_at_end_of_cadence: bool?
|
7149
7191
|
) -> void
|
7150
7192
|
|
7151
7193
|
def to_hash: -> {
|
7152
7194
|
amount: String,
|
7153
7195
|
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence,
|
7154
7196
|
currency: String,
|
7155
|
-
|
7197
|
+
custom_expiration: Orb::SubscriptionCreateParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
7198
|
+
expires_at_end_of_cadence: bool?
|
7156
7199
|
}
|
7157
7200
|
|
7158
7201
|
type cadence =
|
@@ -7170,6 +7213,39 @@ module Orb
|
|
7170
7213
|
|
7171
7214
|
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence]
|
7172
7215
|
end
|
7216
|
+
|
7217
|
+
type custom_expiration =
|
7218
|
+
{
|
7219
|
+
duration: Integer,
|
7220
|
+
duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
7221
|
+
}
|
7222
|
+
|
7223
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
7224
|
+
attr_accessor duration: Integer
|
7225
|
+
|
7226
|
+
attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
7227
|
+
|
7228
|
+
def initialize: (
|
7229
|
+
duration: Integer,
|
7230
|
+
duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
7231
|
+
) -> void
|
7232
|
+
|
7233
|
+
def to_hash: -> {
|
7234
|
+
duration: Integer,
|
7235
|
+
duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
7236
|
+
}
|
7237
|
+
|
7238
|
+
type duration_unit = :day | :month
|
7239
|
+
|
7240
|
+
module DurationUnit
|
7241
|
+
extend Orb::Internal::Type::Enum
|
7242
|
+
|
7243
|
+
DAY: :day
|
7244
|
+
MONTH: :month
|
7245
|
+
|
7246
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit]
|
7247
|
+
end
|
7248
|
+
end
|
7173
7249
|
end
|
7174
7250
|
|
7175
7251
|
type discount =
|
@@ -142,7 +142,8 @@ module Orb
|
|
142
142
|
amount: String,
|
143
143
|
cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence,
|
144
144
|
currency: String,
|
145
|
-
|
145
|
+
custom_expiration: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::CustomExpiration?,
|
146
|
+
expires_at_end_of_cadence: bool?
|
146
147
|
}
|
147
148
|
|
148
149
|
class AllocationPrice < Orb::Internal::Type::BaseModel
|
@@ -152,20 +153,24 @@ module Orb
|
|
152
153
|
|
153
154
|
attr_accessor currency: String
|
154
155
|
|
155
|
-
attr_accessor
|
156
|
+
attr_accessor custom_expiration: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::CustomExpiration?
|
157
|
+
|
158
|
+
attr_accessor expires_at_end_of_cadence: bool?
|
156
159
|
|
157
160
|
def initialize: (
|
158
161
|
amount: String,
|
159
162
|
cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence,
|
160
163
|
currency: String,
|
161
|
-
|
164
|
+
?custom_expiration: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::CustomExpiration?,
|
165
|
+
?expires_at_end_of_cadence: bool?
|
162
166
|
) -> void
|
163
167
|
|
164
168
|
def to_hash: -> {
|
165
169
|
amount: String,
|
166
170
|
cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence,
|
167
171
|
currency: String,
|
168
|
-
|
172
|
+
custom_expiration: Orb::SubscriptionPriceIntervalsParams::Add::AllocationPrice::CustomExpiration?,
|
173
|
+
expires_at_end_of_cadence: bool?
|
169
174
|
}
|
170
175
|
|
171
176
|
type cadence =
|
@@ -183,6 +188,39 @@ module Orb
|
|
183
188
|
|
184
189
|
def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence]
|
185
190
|
end
|
191
|
+
|
192
|
+
type custom_expiration =
|
193
|
+
{
|
194
|
+
duration: Integer,
|
195
|
+
duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::CustomExpiration::duration_unit
|
196
|
+
}
|
197
|
+
|
198
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
199
|
+
attr_accessor duration: Integer
|
200
|
+
|
201
|
+
attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::CustomExpiration::duration_unit
|
202
|
+
|
203
|
+
def initialize: (
|
204
|
+
duration: Integer,
|
205
|
+
duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::CustomExpiration::duration_unit
|
206
|
+
) -> void
|
207
|
+
|
208
|
+
def to_hash: -> {
|
209
|
+
duration: Integer,
|
210
|
+
duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::CustomExpiration::duration_unit
|
211
|
+
}
|
212
|
+
|
213
|
+
type duration_unit = :day | :month
|
214
|
+
|
215
|
+
module DurationUnit
|
216
|
+
extend Orb::Internal::Type::Enum
|
217
|
+
|
218
|
+
DAY: :day
|
219
|
+
MONTH: :month
|
220
|
+
|
221
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::CustomExpiration::duration_unit]
|
222
|
+
end
|
223
|
+
end
|
186
224
|
end
|
187
225
|
|
188
226
|
type discount =
|
@@ -446,7 +446,8 @@ module Orb
|
|
446
446
|
amount: String,
|
447
447
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence,
|
448
448
|
currency: String,
|
449
|
-
|
449
|
+
custom_expiration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration?,
|
450
|
+
expires_at_end_of_cadence: bool?
|
450
451
|
}
|
451
452
|
|
452
453
|
class AllocationPrice < Orb::Internal::Type::BaseModel
|
@@ -456,20 +457,24 @@ module Orb
|
|
456
457
|
|
457
458
|
attr_accessor currency: String
|
458
459
|
|
459
|
-
attr_accessor
|
460
|
+
attr_accessor custom_expiration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration?
|
461
|
+
|
462
|
+
attr_accessor expires_at_end_of_cadence: bool?
|
460
463
|
|
461
464
|
def initialize: (
|
462
465
|
amount: String,
|
463
466
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence,
|
464
467
|
currency: String,
|
465
|
-
|
468
|
+
?custom_expiration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration?,
|
469
|
+
?expires_at_end_of_cadence: bool?
|
466
470
|
) -> void
|
467
471
|
|
468
472
|
def to_hash: -> {
|
469
473
|
amount: String,
|
470
474
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence,
|
471
475
|
currency: String,
|
472
|
-
|
476
|
+
custom_expiration: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration?,
|
477
|
+
expires_at_end_of_cadence: bool?
|
473
478
|
}
|
474
479
|
|
475
480
|
type cadence =
|
@@ -487,6 +492,39 @@ module Orb
|
|
487
492
|
|
488
493
|
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence]
|
489
494
|
end
|
495
|
+
|
496
|
+
type custom_expiration =
|
497
|
+
{
|
498
|
+
duration: Integer,
|
499
|
+
duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
500
|
+
}
|
501
|
+
|
502
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
503
|
+
attr_accessor duration: Integer
|
504
|
+
|
505
|
+
attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
506
|
+
|
507
|
+
def initialize: (
|
508
|
+
duration: Integer,
|
509
|
+
duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
510
|
+
) -> void
|
511
|
+
|
512
|
+
def to_hash: -> {
|
513
|
+
duration: Integer,
|
514
|
+
duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit
|
515
|
+
}
|
516
|
+
|
517
|
+
type duration_unit = :day | :month
|
518
|
+
|
519
|
+
module DurationUnit
|
520
|
+
extend Orb::Internal::Type::Enum
|
521
|
+
|
522
|
+
DAY: :day
|
523
|
+
MONTH: :month
|
524
|
+
|
525
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::CustomExpiration::duration_unit]
|
526
|
+
end
|
527
|
+
end
|
490
528
|
end
|
491
529
|
|
492
530
|
type discount =
|
@@ -7106,7 +7144,8 @@ module Orb
|
|
7106
7144
|
amount: String,
|
7107
7145
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence,
|
7108
7146
|
currency: String,
|
7109
|
-
|
7147
|
+
custom_expiration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
7148
|
+
expires_at_end_of_cadence: bool?
|
7110
7149
|
}
|
7111
7150
|
|
7112
7151
|
class AllocationPrice < Orb::Internal::Type::BaseModel
|
@@ -7116,20 +7155,24 @@ module Orb
|
|
7116
7155
|
|
7117
7156
|
attr_accessor currency: String
|
7118
7157
|
|
7119
|
-
attr_accessor
|
7158
|
+
attr_accessor custom_expiration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration?
|
7159
|
+
|
7160
|
+
attr_accessor expires_at_end_of_cadence: bool?
|
7120
7161
|
|
7121
7162
|
def initialize: (
|
7122
7163
|
amount: String,
|
7123
7164
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence,
|
7124
7165
|
currency: String,
|
7125
|
-
|
7166
|
+
?custom_expiration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
7167
|
+
?expires_at_end_of_cadence: bool?
|
7126
7168
|
) -> void
|
7127
7169
|
|
7128
7170
|
def to_hash: -> {
|
7129
7171
|
amount: String,
|
7130
7172
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence,
|
7131
7173
|
currency: String,
|
7132
|
-
|
7174
|
+
custom_expiration: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration?,
|
7175
|
+
expires_at_end_of_cadence: bool?
|
7133
7176
|
}
|
7134
7177
|
|
7135
7178
|
type cadence =
|
@@ -7147,6 +7190,39 @@ module Orb
|
|
7147
7190
|
|
7148
7191
|
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence]
|
7149
7192
|
end
|
7193
|
+
|
7194
|
+
type custom_expiration =
|
7195
|
+
{
|
7196
|
+
duration: Integer,
|
7197
|
+
duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
7198
|
+
}
|
7199
|
+
|
7200
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
7201
|
+
attr_accessor duration: Integer
|
7202
|
+
|
7203
|
+
attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
7204
|
+
|
7205
|
+
def initialize: (
|
7206
|
+
duration: Integer,
|
7207
|
+
duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
7208
|
+
) -> void
|
7209
|
+
|
7210
|
+
def to_hash: -> {
|
7211
|
+
duration: Integer,
|
7212
|
+
duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit
|
7213
|
+
}
|
7214
|
+
|
7215
|
+
type duration_unit = :day | :month
|
7216
|
+
|
7217
|
+
module DurationUnit
|
7218
|
+
extend Orb::Internal::Type::Enum
|
7219
|
+
|
7220
|
+
DAY: :day
|
7221
|
+
MONTH: :month
|
7222
|
+
|
7223
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::CustomExpiration::duration_unit]
|
7224
|
+
end
|
7225
|
+
end
|
7150
7226
|
end
|
7151
7227
|
|
7152
7228
|
type discount =
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orb-billing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|