orb-billing 1.56.0 → 1.58.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 +15 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +0 -8
- data/lib/orb/models/migration_create_params.rb +10 -1
- data/lib/orb/models/plan.rb +9 -1
- data/lib/orb/models/{beta_create_plan_version_params.rb → plan_create_plan_version_params.rb} +430 -430
- data/lib/orb/models/{beta_fetch_plan_version_params.rb → plan_fetch_plan_version_params.rb} +2 -2
- data/lib/orb/models/{beta_set_default_plan_version_params.rb → plan_set_default_plan_version_params.rb} +2 -2
- data/lib/orb/models/plan_version.rb +1 -1
- data/lib/orb/models/plans/draft_discard_params.rb +22 -0
- data/lib/orb/models/plans/draft_fetch_params.rb +22 -0
- data/lib/orb/models/plans/draft_publish_params.rb +31 -0
- data/lib/orb/models/plans/draft_save_params.rb +7522 -0
- data/lib/orb/models/plans/external_plan_id/draft_discard_params.rb +24 -0
- data/lib/orb/models/plans/external_plan_id/draft_fetch_params.rb +24 -0
- data/lib/orb/models/plans/external_plan_id/draft_publish_params.rb +33 -0
- data/lib/orb/models/plans/external_plan_id/draft_save_params.rb +7595 -0
- data/lib/orb/models/{beta → plans}/external_plan_id_create_plan_version_params.rb +430 -430
- data/lib/orb/models/{beta → plans}/external_plan_id_fetch_plan_version_params.rb +2 -2
- data/lib/orb/models/{beta → plans}/external_plan_id_set_default_plan_version_params.rb +2 -2
- data/lib/orb/models/plans/plan_version_draft.rb +279 -0
- data/lib/orb/models.rb +6 -8
- data/lib/orb/resources/migrations.rb +3 -1
- data/lib/orb/resources/plans/draft.rb +124 -0
- data/lib/orb/resources/plans/external_plan_id/draft.rb +126 -0
- data/lib/orb/resources/plans/external_plan_id.rb +96 -0
- data/lib/orb/resources/plans.rb +96 -0
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +17 -8
- data/rbi/orb/client.rbi +0 -7
- data/rbi/orb/models/migration_create_params.rbi +13 -0
- data/rbi/orb/models/plan.rbi +8 -0
- data/rbi/orb/models/{beta_create_plan_version_params.rbi → plan_create_plan_version_params.rbi} +744 -744
- data/rbi/orb/models/{beta_fetch_plan_version_params.rbi → plan_fetch_plan_version_params.rbi} +2 -2
- data/rbi/orb/models/{beta_set_default_plan_version_params.rbi → plan_set_default_plan_version_params.rbi} +2 -2
- data/rbi/orb/models/plans/draft_discard_params.rbi +37 -0
- data/rbi/orb/models/plans/draft_fetch_params.rbi +37 -0
- data/rbi/orb/models/plans/draft_publish_params.rbi +54 -0
- data/rbi/orb/models/plans/draft_save_params.rbi +13143 -0
- data/rbi/orb/models/plans/external_plan_id/draft_discard_params.rbi +42 -0
- data/rbi/orb/models/plans/external_plan_id/draft_fetch_params.rbi +42 -0
- data/rbi/orb/models/plans/external_plan_id/draft_publish_params.rbi +59 -0
- data/rbi/orb/models/plans/external_plan_id/draft_save_params.rbi +13256 -0
- data/rbi/orb/models/{beta → plans}/external_plan_id_create_plan_version_params.rbi +744 -744
- data/rbi/orb/models/{beta → plans}/external_plan_id_fetch_plan_version_params.rbi +2 -2
- data/rbi/orb/models/{beta → plans}/external_plan_id_set_default_plan_version_params.rbi +2 -2
- data/rbi/orb/models/plans/plan_version_draft.rbi +502 -0
- data/rbi/orb/models.rbi +6 -8
- data/rbi/orb/resources/migrations.rbi +4 -0
- data/rbi/orb/resources/{beta/external_plan_id.rbi → plans/draft.rbi} +58 -59
- data/rbi/orb/resources/plans/external_plan_id/draft.rbi +126 -0
- data/rbi/orb/resources/plans/external_plan_id.rbi +102 -0
- data/rbi/orb/resources/plans.rbi +94 -0
- data/sig/orb/client.rbs +0 -2
- data/sig/orb/models/migration_create_params.rbs +7 -0
- data/sig/orb/models/plan.rbs +5 -0
- data/sig/orb/models/{beta_create_plan_version_params.rbs → plan_create_plan_version_params.rbs} +448 -448
- data/sig/orb/models/{beta_fetch_plan_version_params.rbs → plan_fetch_plan_version_params.rbs} +2 -2
- data/sig/orb/models/{beta_set_default_plan_version_params.rbs → plan_set_default_plan_version_params.rbs} +2 -2
- data/sig/orb/models/plans/draft_discard_params.rbs +25 -0
- data/sig/orb/models/plans/draft_fetch_params.rbs +25 -0
- data/sig/orb/models/plans/draft_publish_params.rbs +32 -0
- data/sig/orb/models/plans/draft_save_params.rbs +5210 -0
- data/sig/orb/models/plans/external_plan_id/draft_discard_params.rbs +27 -0
- data/sig/orb/models/plans/external_plan_id/draft_fetch_params.rbs +27 -0
- data/sig/orb/models/plans/external_plan_id/draft_publish_params.rbs +34 -0
- data/sig/orb/models/plans/external_plan_id/draft_save_params.rbs +5215 -0
- data/sig/orb/models/{beta → plans}/external_plan_id_create_plan_version_params.rbs +447 -447
- data/sig/orb/models/{beta → plans}/external_plan_id_fetch_plan_version_params.rbs +1 -1
- data/sig/orb/models/{beta → plans}/external_plan_id_set_default_plan_version_params.rbs +1 -1
- data/sig/orb/models/plans/plan_version_draft.rbs +205 -0
- data/sig/orb/models.rbs +6 -8
- data/sig/orb/resources/migrations.rbs +1 -0
- data/sig/orb/resources/plans/draft.rbs +37 -0
- data/sig/orb/resources/plans/external_plan_id/draft.rbs +39 -0
- data/sig/orb/resources/plans/external_plan_id.rbs +27 -0
- data/sig/orb/resources/plans.rbs +27 -0
- metadata +2038 -2005
- data/lib/orb/resources/beta/external_plan_id.rb +0 -108
- data/lib/orb/resources/beta.rb +0 -114
- data/rbi/orb/resources/beta.rbi +0 -110
- data/sig/orb/resources/beta/external_plan_id.rbs +0 -34
- data/sig/orb/resources/beta.rbs +0 -34
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 629a059d81d3aedec7fc98e36ec90962008b53a532ba2248bef9321e5e4c29be
|
|
4
|
+
data.tar.gz: 9e9b6f5acf7ff206bf88da4f54e7eb51c61ede8d804690a4e863cacd1c65d3a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b90de9b8aed6b595836218a746a23188f0178881c47dbac248b8e7fe2c4f9e670418fcbd469a3fd08a7a46689d4d4d419601d91de88ad3ae9f1dc0c0ef9d2e2
|
|
7
|
+
data.tar.gz: 21f31614d8b23286c41e2741618230457178fd378d91f6223e298edfc637718ca01e1c1dafdc70203afac1e4ea2833a78f6f837426bb79697578cd09cf1df9d1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.58.0](https://github.com/orbcorp/orb-ruby/compare/v1.57.0...v1.58.0) (2026-11-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** add plan.migration_scheduled webhook when a plan migration is created ([5bda9b3](https://github.com/orbcorp/orb-ruby/commit/5bda9b3b6e9e4d868ebbd529a8ba4601cb5d76b7))
|
|
9
|
+
* **api:** add skip_grace_period option to plan version migrations ([5bda9b3](https://github.com/orbcorp/orb-ruby/commit/5bda9b3b6e9e4d868ebbd529a8ba4601cb5d76b7))
|
|
10
|
+
|
|
11
|
+
## [1.57.0](https://github.com/orbcorp/orb-ruby/compare/v1.56.0...v1.57.0) (2026-11-14)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **api:** api update ([cbac7e8](https://github.com/orbcorp/orb-ruby/commit/cbac7e867077069a9d12302b97453b3112533372))
|
|
17
|
+
|
|
3
18
|
## [1.56.0](https://github.com/orbcorp/orb-ruby/compare/v1.55.0...v1.56.0) (2026-11-13)
|
|
4
19
|
|
|
5
20
|
|
data/README.md
CHANGED
data/lib/orb/client.rb
CHANGED
|
@@ -27,13 +27,6 @@ module Orb
|
|
|
27
27
|
# @return [Orb::Resources::TopLevel]
|
|
28
28
|
attr_reader :top_level
|
|
29
29
|
|
|
30
|
-
# The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
|
|
31
|
-
# subscribed to by a customer. Plans define the billing behavior of the
|
|
32
|
-
# subscription. You can see more about how to configure prices in the
|
|
33
|
-
# [Price resource](/reference/price).
|
|
34
|
-
# @return [Orb::Resources::Beta]
|
|
35
|
-
attr_reader :beta
|
|
36
|
-
|
|
37
30
|
# A coupon represents a reusable discount configuration that can be applied either
|
|
38
31
|
# as a fixed or percentage amount to an invoice or subscription. Coupons are
|
|
39
32
|
# activated using a redemption code, which applies the discount to a subscription
|
|
@@ -235,7 +228,6 @@ module Orb
|
|
|
235
228
|
|
|
236
229
|
@webhooks = Orb::Resources::Webhooks.new(client: self)
|
|
237
230
|
@top_level = Orb::Resources::TopLevel.new(client: self)
|
|
238
|
-
@beta = Orb::Resources::Beta.new(client: self)
|
|
239
231
|
@coupons = Orb::Resources::Coupons.new(client: self)
|
|
240
232
|
@credit_notes = Orb::Resources::CreditNotes.new(client: self)
|
|
241
233
|
@customers = Orb::Resources::Customers.new(client: self)
|
|
@@ -88,13 +88,20 @@ module Orb
|
|
|
88
88
|
# @return [String, nil]
|
|
89
89
|
optional :reason, String, nil?: true
|
|
90
90
|
|
|
91
|
+
# @!attribute skip_grace_period
|
|
92
|
+
# A new migration waits 5 minutes before it changes any subscriptions, so it can
|
|
93
|
+
# be canceled. When true, it starts right away instead.
|
|
94
|
+
#
|
|
95
|
+
# @return [Boolean, nil]
|
|
96
|
+
optional :skip_grace_period, Orb::Internal::Type::Boolean
|
|
97
|
+
|
|
91
98
|
# @!attribute statuses
|
|
92
99
|
# Migrate subscriptions with these statuses. Defaults to active subscriptions.
|
|
93
100
|
#
|
|
94
101
|
# @return [Array<Symbol, Orb::Models::MigrationCreateParams::Status>, nil]
|
|
95
102
|
optional :statuses, -> { Orb::Internal::Type::ArrayOf[enum: Orb::MigrationCreateParams::Status] }
|
|
96
103
|
|
|
97
|
-
# @!method initialize(effective_time:, target_plan_version_number:, allow_invoice_credit_or_void: nil, can_defer_billing: nil, effective_date: nil, excluded_subscription_ids: nil, external_plan_id: nil, in_trial: nil, included_subscription_ids: nil, plan_id: nil, plan_version_numbers: nil, reason: nil, statuses: nil, request_options: {})
|
|
104
|
+
# @!method initialize(effective_time:, target_plan_version_number:, allow_invoice_credit_or_void: nil, can_defer_billing: nil, effective_date: nil, excluded_subscription_ids: nil, external_plan_id: nil, in_trial: nil, included_subscription_ids: nil, plan_id: nil, plan_version_numbers: nil, reason: nil, skip_grace_period: nil, statuses: nil, request_options: {})
|
|
98
105
|
# Some parameter documentations has been truncated, see
|
|
99
106
|
# {Orb::Models::MigrationCreateParams} for more details.
|
|
100
107
|
#
|
|
@@ -123,6 +130,8 @@ module Orb
|
|
|
123
130
|
#
|
|
124
131
|
# @param reason [String, nil] Why the migration was created.
|
|
125
132
|
#
|
|
133
|
+
# @param skip_grace_period [Boolean] A new migration waits 5 minutes before it changes any subscriptions, so it can b
|
|
134
|
+
#
|
|
126
135
|
# @param statuses [Array<Symbol, Orb::Models::MigrationCreateParams::Status>] Migrate subscriptions with these statuses. Defaults to active subscriptions.
|
|
127
136
|
#
|
|
128
137
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
data/lib/orb/models/plan.rb
CHANGED
|
@@ -74,6 +74,12 @@ module Orb
|
|
|
74
74
|
# @return [String, nil]
|
|
75
75
|
required :external_plan_id, String, nil?: true
|
|
76
76
|
|
|
77
|
+
# @!attribute has_draft
|
|
78
|
+
# Whether the plan has an unpublished draft version.
|
|
79
|
+
#
|
|
80
|
+
# @return [Boolean]
|
|
81
|
+
required :has_draft, Orb::Internal::Type::Boolean
|
|
82
|
+
|
|
77
83
|
# @!attribute invoicing_currency
|
|
78
84
|
# An ISO 4217 currency string for which this plan is billed in. Matches `currency`
|
|
79
85
|
# unless `currency` is a custom pricing unit.
|
|
@@ -161,7 +167,7 @@ module Orb
|
|
|
161
167
|
# @return [Integer]
|
|
162
168
|
required :version, Integer
|
|
163
169
|
|
|
164
|
-
# @!method initialize(id:, adjustments:, base_plan:, base_plan_id:, created_at:, currency:, default_invoice_memo:, description:, discount:, external_plan_id:, invoicing_currency:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, net_terms:, plan_phases:, prices:, product:, status:, trial_config:, version:)
|
|
170
|
+
# @!method initialize(id:, adjustments:, base_plan:, base_plan_id:, created_at:, currency:, default_invoice_memo:, description:, discount:, external_plan_id:, has_draft:, invoicing_currency:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, net_terms:, plan_phases:, prices:, product:, status:, trial_config:, version:)
|
|
165
171
|
# Some parameter documentations has been truncated, see {Orb::Models::Plan} for
|
|
166
172
|
# more details.
|
|
167
173
|
#
|
|
@@ -190,6 +196,8 @@ module Orb
|
|
|
190
196
|
#
|
|
191
197
|
# @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a
|
|
192
198
|
#
|
|
199
|
+
# @param has_draft [Boolean] Whether the plan has an unpublished draft version.
|
|
200
|
+
#
|
|
193
201
|
# @param invoicing_currency [String] An ISO 4217 currency string for which this plan is billed in. Matches `currency`
|
|
194
202
|
#
|
|
195
203
|
# @param maximum [Orb::Models::Maximum, nil]
|