orb-billing 1.54.0 → 1.56.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 +17 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +7 -0
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +496 -6
- data/lib/orb/models/beta_create_plan_version_params.rb +496 -6
- data/lib/orb/models/changed_subscription_resources.rb +2 -2
- data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +4 -4
- data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +4 -4
- data/lib/orb/models/credit_block_list_invoices_response.rb +4 -4
- data/lib/orb/models/credit_block_retrieve_response.rb +4 -4
- data/lib/orb/models/credit_block_update_response.rb +4 -4
- data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +4 -4
- data/lib/orb/models/dimensional_price_groups/price_create_response.rb +2 -2
- data/lib/orb/models/invoice.rb +2 -2
- data/lib/orb/models/invoice_edited_webhook_event.rb +2 -2
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +2 -2
- data/lib/orb/models/invoice_line_item_create_response.rb +2 -2
- data/lib/orb/models/metric_update_params.rb +4 -3
- data/lib/orb/models/migration_cancel_params.rb +20 -0
- data/lib/orb/models/migration_cancel_response.rb +133 -0
- data/lib/orb/models/migration_create_params.rb +159 -0
- data/lib/orb/models/migration_create_response.rb +133 -0
- data/lib/orb/models/migration_list_params.rb +48 -0
- data/lib/orb/models/migration_list_response.rb +133 -0
- data/lib/orb/models/migration_retrieve_params.rb +20 -0
- data/lib/orb/models/migration_retrieve_response.rb +133 -0
- data/lib/orb/models/migration_subscription.rb +75 -0
- data/lib/orb/models/migrations/subscription_list_params.rb +74 -0
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +2 -2
- data/lib/orb/models/plan_create_params.rb +246 -3
- data/lib/orb/models/plan_version.rb +2 -2
- data/lib/orb/models/plans/migration_cancel_response.rb +28 -8
- data/lib/orb/models/plans/migration_list_response.rb +28 -8
- data/lib/orb/models/plans/migration_retrieve_response.rb +28 -8
- data/lib/orb/models/price.rb +416 -1
- data/lib/orb/models/price_create_params.rb +231 -3
- data/lib/orb/models/price_edited_webhook_event.rb +2 -2
- data/lib/orb/models/price_evaluate_multiple_params.rb +238 -3
- data/lib/orb/models/price_evaluate_preview_events_params.rb +238 -3
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription_create_params.rb +495 -6
- data/lib/orb/models/subscription_price_intervals_params.rb +238 -3
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +496 -6
- data/lib/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rb +4 -4
- data/lib/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rb +4 -4
- data/lib/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rb +4 -4
- data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +2 -2
- data/lib/orb/models/webhooks/price_edited_standard_webhook_event.rb +2 -2
- data/lib/orb/models.rb +12 -0
- data/lib/orb/resources/credit_blocks.rb +1 -1
- data/lib/orb/resources/dimensional_price_groups/prices.rb +1 -1
- data/lib/orb/resources/metrics.rb +11 -10
- data/lib/orb/resources/migrations/subscriptions.rb +60 -0
- data/lib/orb/resources/migrations.rb +153 -0
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +5 -5
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +12 -0
- data/rbi/orb/client.rbi +6 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +2939 -2129
- data/rbi/orb/models/beta_create_plan_version_params.rbi +2937 -2127
- data/rbi/orb/models/changed_subscription_resources.rbi +2 -1
- data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +5 -5
- data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +5 -5
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +5 -5
- data/rbi/orb/models/credit_block_retrieve_response.rbi +5 -5
- data/rbi/orb/models/credit_block_update_response.rbi +5 -5
- data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +5 -5
- data/rbi/orb/models/dimensional_price_groups/price_create_response.rbi +2 -1
- data/rbi/orb/models/invoice.rbi +2 -1
- data/rbi/orb/models/invoice_edited_webhook_event.rbi +2 -1
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +2 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +2 -1
- data/rbi/orb/models/metric_update_params.rbi +6 -4
- data/rbi/orb/models/migration_cancel_params.rbi +35 -0
- data/rbi/orb/models/migration_cancel_response.rbi +218 -0
- data/rbi/orb/models/migration_create_params.rbi +248 -0
- data/rbi/orb/models/migration_create_response.rbi +218 -0
- data/rbi/orb/models/migration_list_params.rbi +66 -0
- data/rbi/orb/models/migration_list_response.rbi +214 -0
- data/rbi/orb/models/migration_retrieve_params.rbi +35 -0
- data/rbi/orb/models/migration_retrieve_response.rbi +221 -0
- data/rbi/orb/models/migration_subscription.rbi +112 -0
- data/rbi/orb/models/migrations/subscription_list_params.rbi +147 -0
- data/rbi/orb/models/per_price_cost.rbi +2 -1
- data/rbi/orb/models/plan.rbi +2 -1
- data/rbi/orb/models/plan_create_params.rbi +409 -4
- data/rbi/orb/models/plan_version.rbi +2 -1
- data/rbi/orb/models/plans/migration_cancel_response.rbi +36 -12
- data/rbi/orb/models/plans/migration_list_response.rbi +36 -12
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +36 -12
- data/rbi/orb/models/price.rbi +716 -1
- data/rbi/orb/models/price_create_params.rbi +397 -4
- data/rbi/orb/models/price_edited_webhook_event.rbi +2 -1
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +397 -4
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +397 -4
- data/rbi/orb/models/price_interval.rbi +2 -1
- data/rbi/orb/models/subscription_create_params.rbi +2676 -1866
- data/rbi/orb/models/subscription_price_intervals_params.rbi +397 -4
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2686 -1876
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbi +5 -5
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbi +5 -5
- data/rbi/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbi +5 -5
- data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +2 -1
- data/rbi/orb/models/webhooks/price_edited_standard_webhook_event.rbi +2 -1
- data/rbi/orb/models.rbi +12 -0
- data/rbi/orb/resources/credit_blocks.rbi +1 -1
- data/rbi/orb/resources/metrics.rbi +13 -11
- data/rbi/orb/resources/migrations/subscriptions.rbi +54 -0
- data/rbi/orb/resources/migrations.rbi +130 -0
- data/rbi/orb/resources/prices.rbi +2 -1
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +322 -0
- data/sig/orb/models/beta_create_plan_version_params.rbs +322 -0
- data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +2 -2
- data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +2 -2
- data/sig/orb/models/credit_block_list_invoices_response.rbs +2 -2
- data/sig/orb/models/credit_block_retrieve_response.rbs +2 -2
- data/sig/orb/models/credit_block_update_response.rbs +2 -2
- data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +2 -2
- data/sig/orb/models/migration_cancel_params.rbs +23 -0
- data/sig/orb/models/migration_cancel_response.rbs +84 -0
- data/sig/orb/models/migration_create_params.rbs +126 -0
- data/sig/orb/models/migration_create_response.rbs +84 -0
- data/sig/orb/models/migration_list_params.rbs +43 -0
- data/sig/orb/models/migration_list_response.rbs +84 -0
- data/sig/orb/models/migration_retrieve_params.rbs +23 -0
- data/sig/orb/models/migration_retrieve_response.rbs +84 -0
- data/sig/orb/models/migration_subscription.rbs +54 -0
- data/sig/orb/models/migrations/subscription_list_params.rbs +64 -0
- data/sig/orb/models/plan_create_params.rbs +161 -0
- data/sig/orb/models/plans/migration_cancel_response.rbs +17 -4
- data/sig/orb/models/plans/migration_list_response.rbs +17 -4
- data/sig/orb/models/plans/migration_retrieve_response.rbs +17 -4
- data/sig/orb/models/price.rbs +305 -0
- data/sig/orb/models/price_create_params.rbs +151 -0
- data/sig/orb/models/price_evaluate_multiple_params.rbs +156 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +156 -0
- data/sig/orb/models/subscription_create_params.rbs +322 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +156 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +322 -0
- data/sig/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbs +2 -2
- data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs +2 -2
- data/sig/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbs +2 -2
- data/sig/orb/models.rbs +12 -0
- data/sig/orb/resources/migrations/subscriptions.rbs +18 -0
- data/sig/orb/resources/migrations.rbs +44 -0
- metadata +37 -1
|
@@ -265,14 +265,14 @@ module Orb
|
|
|
265
265
|
end
|
|
266
266
|
end
|
|
267
267
|
|
|
268
|
-
type status = :active | :pending_payment | :
|
|
268
|
+
type status = :active | :pending_payment | :deleted
|
|
269
269
|
|
|
270
270
|
module Status
|
|
271
271
|
extend Orb::Internal::Type::Enum
|
|
272
272
|
|
|
273
273
|
ACTIVE: :active
|
|
274
274
|
PENDING_PAYMENT: :pending_payment
|
|
275
|
-
|
|
275
|
+
DELETED: :deleted
|
|
276
276
|
|
|
277
277
|
def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::status]
|
|
278
278
|
end
|
|
@@ -265,14 +265,14 @@ module Orb
|
|
|
265
265
|
end
|
|
266
266
|
end
|
|
267
267
|
|
|
268
|
-
type status = :active | :pending_payment | :
|
|
268
|
+
type status = :active | :pending_payment | :deleted
|
|
269
269
|
|
|
270
270
|
module Status
|
|
271
271
|
extend Orb::Internal::Type::Enum
|
|
272
272
|
|
|
273
273
|
ACTIVE: :active
|
|
274
274
|
PENDING_PAYMENT: :pending_payment
|
|
275
|
-
|
|
275
|
+
DELETED: :deleted
|
|
276
276
|
|
|
277
277
|
def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Block::status]
|
|
278
278
|
end
|
|
@@ -158,14 +158,14 @@ module Orb
|
|
|
158
158
|
end
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
-
type status = :active | :pending_payment | :
|
|
161
|
+
type status = :active | :pending_payment | :deleted
|
|
162
162
|
|
|
163
163
|
module Status
|
|
164
164
|
extend Orb::Internal::Type::Enum
|
|
165
165
|
|
|
166
166
|
ACTIVE: :active
|
|
167
167
|
PENDING_PAYMENT: :pending_payment
|
|
168
|
-
|
|
168
|
+
DELETED: :deleted
|
|
169
169
|
|
|
170
170
|
def self?.values: -> ::Array[Orb::Models::CreditBlockListInvoicesResponse::Block::status]
|
|
171
171
|
end
|
|
@@ -137,14 +137,14 @@ module Orb
|
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
type status = :active | :pending_payment | :
|
|
140
|
+
type status = :active | :pending_payment | :deleted
|
|
141
141
|
|
|
142
142
|
module Status
|
|
143
143
|
extend Orb::Internal::Type::Enum
|
|
144
144
|
|
|
145
145
|
ACTIVE: :active
|
|
146
146
|
PENDING_PAYMENT: :pending_payment
|
|
147
|
-
|
|
147
|
+
DELETED: :deleted
|
|
148
148
|
|
|
149
149
|
def self?.values: -> ::Array[Orb::Models::CreditBlockRetrieveResponse::status]
|
|
150
150
|
end
|
|
@@ -137,14 +137,14 @@ module Orb
|
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
type status = :active | :pending_payment | :
|
|
140
|
+
type status = :active | :pending_payment | :deleted
|
|
141
141
|
|
|
142
142
|
module Status
|
|
143
143
|
extend Orb::Internal::Type::Enum
|
|
144
144
|
|
|
145
145
|
ACTIVE: :active
|
|
146
146
|
PENDING_PAYMENT: :pending_payment
|
|
147
|
-
|
|
147
|
+
DELETED: :deleted
|
|
148
148
|
|
|
149
149
|
def self?.values: -> ::Array[Orb::Models::CreditBlockUpdateResponse::status]
|
|
150
150
|
end
|
|
@@ -211,14 +211,14 @@ module Orb
|
|
|
211
211
|
end
|
|
212
212
|
end
|
|
213
213
|
|
|
214
|
-
type status = :active | :pending_payment | :
|
|
214
|
+
type status = :active | :pending_payment | :deleted
|
|
215
215
|
|
|
216
216
|
module Status
|
|
217
217
|
extend Orb::Internal::Type::Enum
|
|
218
218
|
|
|
219
219
|
ACTIVE: :active
|
|
220
220
|
PENDING_PAYMENT: :pending_payment
|
|
221
|
-
|
|
221
|
+
DELETED: :deleted
|
|
222
222
|
|
|
223
223
|
def self?.values: -> ::Array[Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent::Properties::Block::status]
|
|
224
224
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type migration_cancel_params =
|
|
4
|
+
{ migration_id: String } & Orb::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class MigrationCancelParams < Orb::Internal::Type::BaseModel
|
|
7
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Orb::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor migration_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
migration_id: String,
|
|
14
|
+
?request_options: Orb::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
migration_id: String,
|
|
19
|
+
request_options: Orb::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type migration_cancel_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
effective_time: Orb::Models::MigrationCancelResponse::effective_time?,
|
|
7
|
+
ended_at: Time?,
|
|
8
|
+
plan_id: String,
|
|
9
|
+
started_at: Time?,
|
|
10
|
+
status: Orb::Models::MigrationCancelResponse::status,
|
|
11
|
+
target_plan_version_number: Integer
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class MigrationCancelResponse < Orb::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor effective_time: Orb::Models::MigrationCancelResponse::effective_time?
|
|
18
|
+
|
|
19
|
+
attr_accessor ended_at: Time?
|
|
20
|
+
|
|
21
|
+
attr_accessor plan_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor started_at: Time?
|
|
24
|
+
|
|
25
|
+
attr_accessor status: Orb::Models::MigrationCancelResponse::status
|
|
26
|
+
|
|
27
|
+
attr_accessor target_plan_version_number: Integer
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
id: String,
|
|
31
|
+
effective_time: Orb::Models::MigrationCancelResponse::effective_time?,
|
|
32
|
+
ended_at: Time?,
|
|
33
|
+
plan_id: String,
|
|
34
|
+
started_at: Time?,
|
|
35
|
+
status: Orb::Models::MigrationCancelResponse::status,
|
|
36
|
+
target_plan_version_number: Integer
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
id: String,
|
|
41
|
+
effective_time: Orb::Models::MigrationCancelResponse::effective_time?,
|
|
42
|
+
ended_at: Time?,
|
|
43
|
+
plan_id: String,
|
|
44
|
+
started_at: Time?,
|
|
45
|
+
status: Orb::Models::MigrationCancelResponse::status,
|
|
46
|
+
target_plan_version_number: Integer
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type effective_time =
|
|
50
|
+
Date
|
|
51
|
+
| Time
|
|
52
|
+
| :start_of_term
|
|
53
|
+
| :end_of_term
|
|
54
|
+
| :start_of_invoice
|
|
55
|
+
| :end_of_invoice
|
|
56
|
+
|
|
57
|
+
module EffectiveTime
|
|
58
|
+
extend Orb::Internal::Type::Union
|
|
59
|
+
|
|
60
|
+
def self?.variants: -> ::Array[Orb::Models::MigrationCancelResponse::effective_time]
|
|
61
|
+
|
|
62
|
+
START_OF_TERM: :start_of_term
|
|
63
|
+
END_OF_TERM: :end_of_term
|
|
64
|
+
START_OF_INVOICE: :start_of_invoice
|
|
65
|
+
END_OF_INVOICE: :end_of_invoice
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
type status =
|
|
69
|
+
:not_started | :in_progress | :completed | :action_needed | :canceled
|
|
70
|
+
|
|
71
|
+
module Status
|
|
72
|
+
extend Orb::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
NOT_STARTED: :not_started
|
|
75
|
+
IN_PROGRESS: :in_progress
|
|
76
|
+
COMPLETED: :completed
|
|
77
|
+
ACTION_NEEDED: :action_needed
|
|
78
|
+
CANCELED: :canceled
|
|
79
|
+
|
|
80
|
+
def self?.values: -> ::Array[Orb::Models::MigrationCancelResponse::status]
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type migration_create_params =
|
|
4
|
+
{
|
|
5
|
+
effective_time: Orb::Models::MigrationCreateParams::effective_time,
|
|
6
|
+
target_plan_version_number: Integer,
|
|
7
|
+
allow_invoice_credit_or_void: bool,
|
|
8
|
+
can_defer_billing: bool,
|
|
9
|
+
effective_date: Date?,
|
|
10
|
+
excluded_subscription_ids: ::Array[String]?,
|
|
11
|
+
external_plan_id: String?,
|
|
12
|
+
in_trial: bool?,
|
|
13
|
+
included_subscription_ids: ::Array[String]?,
|
|
14
|
+
plan_id: String?,
|
|
15
|
+
plan_version_numbers: ::Array[Integer]?,
|
|
16
|
+
reason: String?,
|
|
17
|
+
statuses: ::Array[Orb::Models::MigrationCreateParams::status]
|
|
18
|
+
}
|
|
19
|
+
& Orb::Internal::Type::request_parameters
|
|
20
|
+
|
|
21
|
+
class MigrationCreateParams < Orb::Internal::Type::BaseModel
|
|
22
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
23
|
+
include Orb::Internal::Type::RequestParameters
|
|
24
|
+
|
|
25
|
+
attr_accessor effective_time: Orb::Models::MigrationCreateParams::effective_time
|
|
26
|
+
|
|
27
|
+
attr_accessor target_plan_version_number: Integer
|
|
28
|
+
|
|
29
|
+
attr_reader allow_invoice_credit_or_void: bool?
|
|
30
|
+
|
|
31
|
+
def allow_invoice_credit_or_void=: (bool) -> bool
|
|
32
|
+
|
|
33
|
+
attr_reader can_defer_billing: bool?
|
|
34
|
+
|
|
35
|
+
def can_defer_billing=: (bool) -> bool
|
|
36
|
+
|
|
37
|
+
attr_accessor effective_date: Date?
|
|
38
|
+
|
|
39
|
+
attr_accessor excluded_subscription_ids: ::Array[String]?
|
|
40
|
+
|
|
41
|
+
attr_accessor external_plan_id: String?
|
|
42
|
+
|
|
43
|
+
attr_accessor in_trial: bool?
|
|
44
|
+
|
|
45
|
+
attr_accessor included_subscription_ids: ::Array[String]?
|
|
46
|
+
|
|
47
|
+
attr_accessor plan_id: String?
|
|
48
|
+
|
|
49
|
+
attr_accessor plan_version_numbers: ::Array[Integer]?
|
|
50
|
+
|
|
51
|
+
attr_accessor reason: String?
|
|
52
|
+
|
|
53
|
+
attr_reader statuses: ::Array[Orb::Models::MigrationCreateParams::status]?
|
|
54
|
+
|
|
55
|
+
def statuses=: (
|
|
56
|
+
::Array[Orb::Models::MigrationCreateParams::status]
|
|
57
|
+
) -> ::Array[Orb::Models::MigrationCreateParams::status]
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
effective_time: Orb::Models::MigrationCreateParams::effective_time,
|
|
61
|
+
target_plan_version_number: Integer,
|
|
62
|
+
?allow_invoice_credit_or_void: bool,
|
|
63
|
+
?can_defer_billing: bool,
|
|
64
|
+
?effective_date: Date?,
|
|
65
|
+
?excluded_subscription_ids: ::Array[String]?,
|
|
66
|
+
?external_plan_id: String?,
|
|
67
|
+
?in_trial: bool?,
|
|
68
|
+
?included_subscription_ids: ::Array[String]?,
|
|
69
|
+
?plan_id: String?,
|
|
70
|
+
?plan_version_numbers: ::Array[Integer]?,
|
|
71
|
+
?reason: String?,
|
|
72
|
+
?statuses: ::Array[Orb::Models::MigrationCreateParams::status],
|
|
73
|
+
?request_options: Orb::request_opts
|
|
74
|
+
) -> void
|
|
75
|
+
|
|
76
|
+
def to_hash: -> {
|
|
77
|
+
effective_time: Orb::Models::MigrationCreateParams::effective_time,
|
|
78
|
+
target_plan_version_number: Integer,
|
|
79
|
+
allow_invoice_credit_or_void: bool,
|
|
80
|
+
can_defer_billing: bool,
|
|
81
|
+
effective_date: Date?,
|
|
82
|
+
excluded_subscription_ids: ::Array[String]?,
|
|
83
|
+
external_plan_id: String?,
|
|
84
|
+
in_trial: bool?,
|
|
85
|
+
included_subscription_ids: ::Array[String]?,
|
|
86
|
+
plan_id: String?,
|
|
87
|
+
plan_version_numbers: ::Array[Integer]?,
|
|
88
|
+
reason: String?,
|
|
89
|
+
statuses: ::Array[Orb::Models::MigrationCreateParams::status],
|
|
90
|
+
request_options: Orb::RequestOptions
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
type effective_time =
|
|
94
|
+
:immediately
|
|
95
|
+
| :requested_date
|
|
96
|
+
| :start_of_term
|
|
97
|
+
| :end_of_term
|
|
98
|
+
| :start_of_invoice
|
|
99
|
+
| :end_of_invoice
|
|
100
|
+
|
|
101
|
+
module EffectiveTime
|
|
102
|
+
extend Orb::Internal::Type::Enum
|
|
103
|
+
|
|
104
|
+
IMMEDIATELY: :immediately
|
|
105
|
+
REQUESTED_DATE: :requested_date
|
|
106
|
+
START_OF_TERM: :start_of_term
|
|
107
|
+
END_OF_TERM: :end_of_term
|
|
108
|
+
START_OF_INVOICE: :start_of_invoice
|
|
109
|
+
END_OF_INVOICE: :end_of_invoice
|
|
110
|
+
|
|
111
|
+
def self?.values: -> ::Array[Orb::Models::MigrationCreateParams::effective_time]
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
type status = :active | :upcoming
|
|
115
|
+
|
|
116
|
+
module Status
|
|
117
|
+
extend Orb::Internal::Type::Enum
|
|
118
|
+
|
|
119
|
+
ACTIVE: :active
|
|
120
|
+
UPCOMING: :upcoming
|
|
121
|
+
|
|
122
|
+
def self?.values: -> ::Array[Orb::Models::MigrationCreateParams::status]
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type migration_create_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
effective_time: Orb::Models::MigrationCreateResponse::effective_time?,
|
|
7
|
+
ended_at: Time?,
|
|
8
|
+
plan_id: String,
|
|
9
|
+
started_at: Time?,
|
|
10
|
+
status: Orb::Models::MigrationCreateResponse::status,
|
|
11
|
+
target_plan_version_number: Integer
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class MigrationCreateResponse < Orb::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor effective_time: Orb::Models::MigrationCreateResponse::effective_time?
|
|
18
|
+
|
|
19
|
+
attr_accessor ended_at: Time?
|
|
20
|
+
|
|
21
|
+
attr_accessor plan_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor started_at: Time?
|
|
24
|
+
|
|
25
|
+
attr_accessor status: Orb::Models::MigrationCreateResponse::status
|
|
26
|
+
|
|
27
|
+
attr_accessor target_plan_version_number: Integer
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
id: String,
|
|
31
|
+
effective_time: Orb::Models::MigrationCreateResponse::effective_time?,
|
|
32
|
+
ended_at: Time?,
|
|
33
|
+
plan_id: String,
|
|
34
|
+
started_at: Time?,
|
|
35
|
+
status: Orb::Models::MigrationCreateResponse::status,
|
|
36
|
+
target_plan_version_number: Integer
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
id: String,
|
|
41
|
+
effective_time: Orb::Models::MigrationCreateResponse::effective_time?,
|
|
42
|
+
ended_at: Time?,
|
|
43
|
+
plan_id: String,
|
|
44
|
+
started_at: Time?,
|
|
45
|
+
status: Orb::Models::MigrationCreateResponse::status,
|
|
46
|
+
target_plan_version_number: Integer
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type effective_time =
|
|
50
|
+
Date
|
|
51
|
+
| Time
|
|
52
|
+
| :start_of_term
|
|
53
|
+
| :end_of_term
|
|
54
|
+
| :start_of_invoice
|
|
55
|
+
| :end_of_invoice
|
|
56
|
+
|
|
57
|
+
module EffectiveTime
|
|
58
|
+
extend Orb::Internal::Type::Union
|
|
59
|
+
|
|
60
|
+
def self?.variants: -> ::Array[Orb::Models::MigrationCreateResponse::effective_time]
|
|
61
|
+
|
|
62
|
+
START_OF_TERM: :start_of_term
|
|
63
|
+
END_OF_TERM: :end_of_term
|
|
64
|
+
START_OF_INVOICE: :start_of_invoice
|
|
65
|
+
END_OF_INVOICE: :end_of_invoice
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
type status =
|
|
69
|
+
:not_started | :in_progress | :completed | :action_needed | :canceled
|
|
70
|
+
|
|
71
|
+
module Status
|
|
72
|
+
extend Orb::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
NOT_STARTED: :not_started
|
|
75
|
+
IN_PROGRESS: :in_progress
|
|
76
|
+
COMPLETED: :completed
|
|
77
|
+
ACTION_NEEDED: :action_needed
|
|
78
|
+
CANCELED: :canceled
|
|
79
|
+
|
|
80
|
+
def self?.values: -> ::Array[Orb::Models::MigrationCreateResponse::status]
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type migration_list_params =
|
|
4
|
+
{
|
|
5
|
+
cursor: String?,
|
|
6
|
+
external_plan_id: String?,
|
|
7
|
+
limit: Integer,
|
|
8
|
+
plan_id: String?
|
|
9
|
+
}
|
|
10
|
+
& Orb::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class MigrationListParams < Orb::Internal::Type::BaseModel
|
|
13
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Orb::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor cursor: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor external_plan_id: String?
|
|
19
|
+
|
|
20
|
+
attr_reader limit: Integer?
|
|
21
|
+
|
|
22
|
+
def limit=: (Integer) -> Integer
|
|
23
|
+
|
|
24
|
+
attr_accessor plan_id: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
?cursor: String?,
|
|
28
|
+
?external_plan_id: String?,
|
|
29
|
+
?limit: Integer,
|
|
30
|
+
?plan_id: String?,
|
|
31
|
+
?request_options: Orb::request_opts
|
|
32
|
+
) -> void
|
|
33
|
+
|
|
34
|
+
def to_hash: -> {
|
|
35
|
+
cursor: String?,
|
|
36
|
+
external_plan_id: String?,
|
|
37
|
+
limit: Integer,
|
|
38
|
+
plan_id: String?,
|
|
39
|
+
request_options: Orb::RequestOptions
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type migration_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
effective_time: Orb::Models::MigrationListResponse::effective_time?,
|
|
7
|
+
ended_at: Time?,
|
|
8
|
+
plan_id: String,
|
|
9
|
+
started_at: Time?,
|
|
10
|
+
status: Orb::Models::MigrationListResponse::status,
|
|
11
|
+
target_plan_version_number: Integer
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class MigrationListResponse < Orb::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor effective_time: Orb::Models::MigrationListResponse::effective_time?
|
|
18
|
+
|
|
19
|
+
attr_accessor ended_at: Time?
|
|
20
|
+
|
|
21
|
+
attr_accessor plan_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor started_at: Time?
|
|
24
|
+
|
|
25
|
+
attr_accessor status: Orb::Models::MigrationListResponse::status
|
|
26
|
+
|
|
27
|
+
attr_accessor target_plan_version_number: Integer
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
id: String,
|
|
31
|
+
effective_time: Orb::Models::MigrationListResponse::effective_time?,
|
|
32
|
+
ended_at: Time?,
|
|
33
|
+
plan_id: String,
|
|
34
|
+
started_at: Time?,
|
|
35
|
+
status: Orb::Models::MigrationListResponse::status,
|
|
36
|
+
target_plan_version_number: Integer
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
id: String,
|
|
41
|
+
effective_time: Orb::Models::MigrationListResponse::effective_time?,
|
|
42
|
+
ended_at: Time?,
|
|
43
|
+
plan_id: String,
|
|
44
|
+
started_at: Time?,
|
|
45
|
+
status: Orb::Models::MigrationListResponse::status,
|
|
46
|
+
target_plan_version_number: Integer
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type effective_time =
|
|
50
|
+
Date
|
|
51
|
+
| Time
|
|
52
|
+
| :start_of_term
|
|
53
|
+
| :end_of_term
|
|
54
|
+
| :start_of_invoice
|
|
55
|
+
| :end_of_invoice
|
|
56
|
+
|
|
57
|
+
module EffectiveTime
|
|
58
|
+
extend Orb::Internal::Type::Union
|
|
59
|
+
|
|
60
|
+
def self?.variants: -> ::Array[Orb::Models::MigrationListResponse::effective_time]
|
|
61
|
+
|
|
62
|
+
START_OF_TERM: :start_of_term
|
|
63
|
+
END_OF_TERM: :end_of_term
|
|
64
|
+
START_OF_INVOICE: :start_of_invoice
|
|
65
|
+
END_OF_INVOICE: :end_of_invoice
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
type status =
|
|
69
|
+
:not_started | :in_progress | :completed | :action_needed | :canceled
|
|
70
|
+
|
|
71
|
+
module Status
|
|
72
|
+
extend Orb::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
NOT_STARTED: :not_started
|
|
75
|
+
IN_PROGRESS: :in_progress
|
|
76
|
+
COMPLETED: :completed
|
|
77
|
+
ACTION_NEEDED: :action_needed
|
|
78
|
+
CANCELED: :canceled
|
|
79
|
+
|
|
80
|
+
def self?.values: -> ::Array[Orb::Models::MigrationListResponse::status]
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type migration_retrieve_params =
|
|
4
|
+
{ migration_id: String } & Orb::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class MigrationRetrieveParams < Orb::Internal::Type::BaseModel
|
|
7
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Orb::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor migration_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
migration_id: String,
|
|
14
|
+
?request_options: Orb::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
migration_id: String,
|
|
19
|
+
request_options: Orb::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module Orb
|
|
2
|
+
module Models
|
|
3
|
+
type migration_retrieve_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
effective_time: Orb::Models::MigrationRetrieveResponse::effective_time?,
|
|
7
|
+
ended_at: Time?,
|
|
8
|
+
plan_id: String,
|
|
9
|
+
started_at: Time?,
|
|
10
|
+
status: Orb::Models::MigrationRetrieveResponse::status,
|
|
11
|
+
target_plan_version_number: Integer
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class MigrationRetrieveResponse < Orb::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor effective_time: Orb::Models::MigrationRetrieveResponse::effective_time?
|
|
18
|
+
|
|
19
|
+
attr_accessor ended_at: Time?
|
|
20
|
+
|
|
21
|
+
attr_accessor plan_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor started_at: Time?
|
|
24
|
+
|
|
25
|
+
attr_accessor status: Orb::Models::MigrationRetrieveResponse::status
|
|
26
|
+
|
|
27
|
+
attr_accessor target_plan_version_number: Integer
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
id: String,
|
|
31
|
+
effective_time: Orb::Models::MigrationRetrieveResponse::effective_time?,
|
|
32
|
+
ended_at: Time?,
|
|
33
|
+
plan_id: String,
|
|
34
|
+
started_at: Time?,
|
|
35
|
+
status: Orb::Models::MigrationRetrieveResponse::status,
|
|
36
|
+
target_plan_version_number: Integer
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
id: String,
|
|
41
|
+
effective_time: Orb::Models::MigrationRetrieveResponse::effective_time?,
|
|
42
|
+
ended_at: Time?,
|
|
43
|
+
plan_id: String,
|
|
44
|
+
started_at: Time?,
|
|
45
|
+
status: Orb::Models::MigrationRetrieveResponse::status,
|
|
46
|
+
target_plan_version_number: Integer
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type effective_time =
|
|
50
|
+
Date
|
|
51
|
+
| Time
|
|
52
|
+
| :start_of_term
|
|
53
|
+
| :end_of_term
|
|
54
|
+
| :start_of_invoice
|
|
55
|
+
| :end_of_invoice
|
|
56
|
+
|
|
57
|
+
module EffectiveTime
|
|
58
|
+
extend Orb::Internal::Type::Union
|
|
59
|
+
|
|
60
|
+
def self?.variants: -> ::Array[Orb::Models::MigrationRetrieveResponse::effective_time]
|
|
61
|
+
|
|
62
|
+
START_OF_TERM: :start_of_term
|
|
63
|
+
END_OF_TERM: :end_of_term
|
|
64
|
+
START_OF_INVOICE: :start_of_invoice
|
|
65
|
+
END_OF_INVOICE: :end_of_invoice
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
type status =
|
|
69
|
+
:not_started | :in_progress | :completed | :action_needed | :canceled
|
|
70
|
+
|
|
71
|
+
module Status
|
|
72
|
+
extend Orb::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
NOT_STARTED: :not_started
|
|
75
|
+
IN_PROGRESS: :in_progress
|
|
76
|
+
COMPLETED: :completed
|
|
77
|
+
ACTION_NEEDED: :action_needed
|
|
78
|
+
CANCELED: :canceled
|
|
79
|
+
|
|
80
|
+
def self?.values: -> ::Array[Orb::Models::MigrationRetrieveResponse::status]
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|