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
|
@@ -16,9 +16,10 @@ module Orb
|
|
|
16
16
|
sig { returns(String) }
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# When the migration takes effect. Can be a specific date/time, '
|
|
20
|
-
# scheduled to be at the end of the current billing
|
|
21
|
-
# when scheduled to be at the
|
|
19
|
+
# When the migration takes effect. Can be a specific date/time, 'start_of_term' or
|
|
20
|
+
# 'end_of_term' when scheduled to be at the start or end of the current billing
|
|
21
|
+
# period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
|
|
22
|
+
# start of the current or next invoice.
|
|
22
23
|
sig do
|
|
23
24
|
returns(
|
|
24
25
|
T.nilable(
|
|
@@ -51,6 +52,13 @@ module Orb
|
|
|
51
52
|
end
|
|
52
53
|
attr_accessor :status
|
|
53
54
|
|
|
55
|
+
# The plan version subscriptions are migrated to.
|
|
56
|
+
sig { returns(Integer) }
|
|
57
|
+
attr_accessor :target_plan_version_number
|
|
58
|
+
|
|
59
|
+
# A migration moves a plan's subscriptions onto one of the plan's versions. Each
|
|
60
|
+
# subscription is migrated asynchronously, either immediately or at a scheduled
|
|
61
|
+
# time, and the migration reports its overall status as it progresses.
|
|
54
62
|
sig do
|
|
55
63
|
params(
|
|
56
64
|
id: String,
|
|
@@ -66,15 +74,17 @@ module Orb
|
|
|
66
74
|
plan_id: String,
|
|
67
75
|
started_at: T.nilable(Time),
|
|
68
76
|
status:
|
|
69
|
-
Orb::Models::Plans::MigrationCancelResponse::Status::OrSymbol
|
|
77
|
+
Orb::Models::Plans::MigrationCancelResponse::Status::OrSymbol,
|
|
78
|
+
target_plan_version_number: Integer
|
|
70
79
|
).returns(T.attached_class)
|
|
71
80
|
end
|
|
72
81
|
def self.new(
|
|
73
82
|
# Unique identifier for this plan version change.
|
|
74
83
|
id:,
|
|
75
|
-
# When the migration takes effect. Can be a specific date/time, '
|
|
76
|
-
# scheduled to be at the end of the current billing
|
|
77
|
-
# when scheduled to be at the
|
|
84
|
+
# When the migration takes effect. Can be a specific date/time, 'start_of_term' or
|
|
85
|
+
# 'end_of_term' when scheduled to be at the start or end of the current billing
|
|
86
|
+
# period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
|
|
87
|
+
# start of the current or next invoice.
|
|
78
88
|
effective_time:,
|
|
79
89
|
# When the migration completed or was canceled, or null if it is still in
|
|
80
90
|
# progress.
|
|
@@ -86,7 +96,9 @@ module Orb
|
|
|
86
96
|
started_at:,
|
|
87
97
|
# Current status of the migration: 'not_started', 'in_progress', 'completed',
|
|
88
98
|
# 'action_needed', or 'canceled'.
|
|
89
|
-
status
|
|
99
|
+
status:,
|
|
100
|
+
# The plan version subscriptions are migrated to.
|
|
101
|
+
target_plan_version_number:
|
|
90
102
|
)
|
|
91
103
|
end
|
|
92
104
|
|
|
@@ -102,16 +114,18 @@ module Orb
|
|
|
102
114
|
plan_id: String,
|
|
103
115
|
started_at: T.nilable(Time),
|
|
104
116
|
status:
|
|
105
|
-
Orb::Models::Plans::MigrationCancelResponse::Status::TaggedSymbol
|
|
117
|
+
Orb::Models::Plans::MigrationCancelResponse::Status::TaggedSymbol,
|
|
118
|
+
target_plan_version_number: Integer
|
|
106
119
|
}
|
|
107
120
|
)
|
|
108
121
|
end
|
|
109
122
|
def to_hash
|
|
110
123
|
end
|
|
111
124
|
|
|
112
|
-
# When the migration takes effect. Can be a specific date/time, '
|
|
113
|
-
# scheduled to be at the end of the current billing
|
|
114
|
-
# when scheduled to be at the
|
|
125
|
+
# When the migration takes effect. Can be a specific date/time, 'start_of_term' or
|
|
126
|
+
# 'end_of_term' when scheduled to be at the start or end of the current billing
|
|
127
|
+
# period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
|
|
128
|
+
# start of the current or next invoice.
|
|
115
129
|
module EffectiveTime
|
|
116
130
|
extend Orb::Internal::Type::Union
|
|
117
131
|
|
|
@@ -143,11 +157,21 @@ module Orb
|
|
|
143
157
|
end
|
|
144
158
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
145
159
|
|
|
160
|
+
START_OF_TERM =
|
|
161
|
+
T.let(
|
|
162
|
+
:start_of_term,
|
|
163
|
+
Orb::Models::Plans::MigrationCancelResponse::EffectiveTime::TaggedSymbol
|
|
164
|
+
)
|
|
146
165
|
END_OF_TERM =
|
|
147
166
|
T.let(
|
|
148
167
|
:end_of_term,
|
|
149
168
|
Orb::Models::Plans::MigrationCancelResponse::EffectiveTime::TaggedSymbol
|
|
150
169
|
)
|
|
170
|
+
START_OF_INVOICE =
|
|
171
|
+
T.let(
|
|
172
|
+
:start_of_invoice,
|
|
173
|
+
Orb::Models::Plans::MigrationCancelResponse::EffectiveTime::TaggedSymbol
|
|
174
|
+
)
|
|
151
175
|
END_OF_INVOICE =
|
|
152
176
|
T.let(
|
|
153
177
|
:end_of_invoice,
|
|
@@ -16,9 +16,10 @@ module Orb
|
|
|
16
16
|
sig { returns(String) }
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# When the migration takes effect. Can be a specific date/time, '
|
|
20
|
-
# scheduled to be at the end of the current billing
|
|
21
|
-
# when scheduled to be at the
|
|
19
|
+
# When the migration takes effect. Can be a specific date/time, 'start_of_term' or
|
|
20
|
+
# 'end_of_term' when scheduled to be at the start or end of the current billing
|
|
21
|
+
# period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
|
|
22
|
+
# start of the current or next invoice.
|
|
22
23
|
sig do
|
|
23
24
|
returns(
|
|
24
25
|
T.nilable(
|
|
@@ -51,6 +52,13 @@ module Orb
|
|
|
51
52
|
end
|
|
52
53
|
attr_accessor :status
|
|
53
54
|
|
|
55
|
+
# The plan version subscriptions are migrated to.
|
|
56
|
+
sig { returns(Integer) }
|
|
57
|
+
attr_accessor :target_plan_version_number
|
|
58
|
+
|
|
59
|
+
# A migration moves a plan's subscriptions onto one of the plan's versions. Each
|
|
60
|
+
# subscription is migrated asynchronously, either immediately or at a scheduled
|
|
61
|
+
# time, and the migration reports its overall status as it progresses.
|
|
54
62
|
sig do
|
|
55
63
|
params(
|
|
56
64
|
id: String,
|
|
@@ -65,15 +73,17 @@ module Orb
|
|
|
65
73
|
ended_at: T.nilable(Time),
|
|
66
74
|
plan_id: String,
|
|
67
75
|
started_at: T.nilable(Time),
|
|
68
|
-
status: Orb::Models::Plans::MigrationListResponse::Status::OrSymbol
|
|
76
|
+
status: Orb::Models::Plans::MigrationListResponse::Status::OrSymbol,
|
|
77
|
+
target_plan_version_number: Integer
|
|
69
78
|
).returns(T.attached_class)
|
|
70
79
|
end
|
|
71
80
|
def self.new(
|
|
72
81
|
# Unique identifier for this plan version change.
|
|
73
82
|
id:,
|
|
74
|
-
# When the migration takes effect. Can be a specific date/time, '
|
|
75
|
-
# scheduled to be at the end of the current billing
|
|
76
|
-
# when scheduled to be at the
|
|
83
|
+
# When the migration takes effect. Can be a specific date/time, 'start_of_term' or
|
|
84
|
+
# 'end_of_term' when scheduled to be at the start or end of the current billing
|
|
85
|
+
# period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
|
|
86
|
+
# start of the current or next invoice.
|
|
77
87
|
effective_time:,
|
|
78
88
|
# When the migration completed or was canceled, or null if it is still in
|
|
79
89
|
# progress.
|
|
@@ -85,7 +95,9 @@ module Orb
|
|
|
85
95
|
started_at:,
|
|
86
96
|
# Current status of the migration: 'not_started', 'in_progress', 'completed',
|
|
87
97
|
# 'action_needed', or 'canceled'.
|
|
88
|
-
status
|
|
98
|
+
status:,
|
|
99
|
+
# The plan version subscriptions are migrated to.
|
|
100
|
+
target_plan_version_number:
|
|
89
101
|
)
|
|
90
102
|
end
|
|
91
103
|
|
|
@@ -101,16 +113,18 @@ module Orb
|
|
|
101
113
|
plan_id: String,
|
|
102
114
|
started_at: T.nilable(Time),
|
|
103
115
|
status:
|
|
104
|
-
Orb::Models::Plans::MigrationListResponse::Status::TaggedSymbol
|
|
116
|
+
Orb::Models::Plans::MigrationListResponse::Status::TaggedSymbol,
|
|
117
|
+
target_plan_version_number: Integer
|
|
105
118
|
}
|
|
106
119
|
)
|
|
107
120
|
end
|
|
108
121
|
def to_hash
|
|
109
122
|
end
|
|
110
123
|
|
|
111
|
-
# When the migration takes effect. Can be a specific date/time, '
|
|
112
|
-
# scheduled to be at the end of the current billing
|
|
113
|
-
# when scheduled to be at the
|
|
124
|
+
# When the migration takes effect. Can be a specific date/time, 'start_of_term' or
|
|
125
|
+
# 'end_of_term' when scheduled to be at the start or end of the current billing
|
|
126
|
+
# period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
|
|
127
|
+
# start of the current or next invoice.
|
|
114
128
|
module EffectiveTime
|
|
115
129
|
extend Orb::Internal::Type::Union
|
|
116
130
|
|
|
@@ -142,11 +156,21 @@ module Orb
|
|
|
142
156
|
end
|
|
143
157
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
144
158
|
|
|
159
|
+
START_OF_TERM =
|
|
160
|
+
T.let(
|
|
161
|
+
:start_of_term,
|
|
162
|
+
Orb::Models::Plans::MigrationListResponse::EffectiveTime::TaggedSymbol
|
|
163
|
+
)
|
|
145
164
|
END_OF_TERM =
|
|
146
165
|
T.let(
|
|
147
166
|
:end_of_term,
|
|
148
167
|
Orb::Models::Plans::MigrationListResponse::EffectiveTime::TaggedSymbol
|
|
149
168
|
)
|
|
169
|
+
START_OF_INVOICE =
|
|
170
|
+
T.let(
|
|
171
|
+
:start_of_invoice,
|
|
172
|
+
Orb::Models::Plans::MigrationListResponse::EffectiveTime::TaggedSymbol
|
|
173
|
+
)
|
|
150
174
|
END_OF_INVOICE =
|
|
151
175
|
T.let(
|
|
152
176
|
:end_of_invoice,
|
|
@@ -16,9 +16,10 @@ module Orb
|
|
|
16
16
|
sig { returns(String) }
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# When the migration takes effect. Can be a specific date/time, '
|
|
20
|
-
# scheduled to be at the end of the current billing
|
|
21
|
-
# when scheduled to be at the
|
|
19
|
+
# When the migration takes effect. Can be a specific date/time, 'start_of_term' or
|
|
20
|
+
# 'end_of_term' when scheduled to be at the start or end of the current billing
|
|
21
|
+
# period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
|
|
22
|
+
# start of the current or next invoice.
|
|
22
23
|
sig do
|
|
23
24
|
returns(
|
|
24
25
|
T.nilable(
|
|
@@ -51,6 +52,13 @@ module Orb
|
|
|
51
52
|
end
|
|
52
53
|
attr_accessor :status
|
|
53
54
|
|
|
55
|
+
# The plan version subscriptions are migrated to.
|
|
56
|
+
sig { returns(Integer) }
|
|
57
|
+
attr_accessor :target_plan_version_number
|
|
58
|
+
|
|
59
|
+
# A migration moves a plan's subscriptions onto one of the plan's versions. Each
|
|
60
|
+
# subscription is migrated asynchronously, either immediately or at a scheduled
|
|
61
|
+
# time, and the migration reports its overall status as it progresses.
|
|
54
62
|
sig do
|
|
55
63
|
params(
|
|
56
64
|
id: String,
|
|
@@ -66,15 +74,17 @@ module Orb
|
|
|
66
74
|
plan_id: String,
|
|
67
75
|
started_at: T.nilable(Time),
|
|
68
76
|
status:
|
|
69
|
-
Orb::Models::Plans::MigrationRetrieveResponse::Status::OrSymbol
|
|
77
|
+
Orb::Models::Plans::MigrationRetrieveResponse::Status::OrSymbol,
|
|
78
|
+
target_plan_version_number: Integer
|
|
70
79
|
).returns(T.attached_class)
|
|
71
80
|
end
|
|
72
81
|
def self.new(
|
|
73
82
|
# Unique identifier for this plan version change.
|
|
74
83
|
id:,
|
|
75
|
-
# When the migration takes effect. Can be a specific date/time, '
|
|
76
|
-
# scheduled to be at the end of the current billing
|
|
77
|
-
# when scheduled to be at the
|
|
84
|
+
# When the migration takes effect. Can be a specific date/time, 'start_of_term' or
|
|
85
|
+
# 'end_of_term' when scheduled to be at the start or end of the current billing
|
|
86
|
+
# period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
|
|
87
|
+
# start of the current or next invoice.
|
|
78
88
|
effective_time:,
|
|
79
89
|
# When the migration completed or was canceled, or null if it is still in
|
|
80
90
|
# progress.
|
|
@@ -86,7 +96,9 @@ module Orb
|
|
|
86
96
|
started_at:,
|
|
87
97
|
# Current status of the migration: 'not_started', 'in_progress', 'completed',
|
|
88
98
|
# 'action_needed', or 'canceled'.
|
|
89
|
-
status
|
|
99
|
+
status:,
|
|
100
|
+
# The plan version subscriptions are migrated to.
|
|
101
|
+
target_plan_version_number:
|
|
90
102
|
)
|
|
91
103
|
end
|
|
92
104
|
|
|
@@ -102,16 +114,18 @@ module Orb
|
|
|
102
114
|
plan_id: String,
|
|
103
115
|
started_at: T.nilable(Time),
|
|
104
116
|
status:
|
|
105
|
-
Orb::Models::Plans::MigrationRetrieveResponse::Status::TaggedSymbol
|
|
117
|
+
Orb::Models::Plans::MigrationRetrieveResponse::Status::TaggedSymbol,
|
|
118
|
+
target_plan_version_number: Integer
|
|
106
119
|
}
|
|
107
120
|
)
|
|
108
121
|
end
|
|
109
122
|
def to_hash
|
|
110
123
|
end
|
|
111
124
|
|
|
112
|
-
# When the migration takes effect. Can be a specific date/time, '
|
|
113
|
-
# scheduled to be at the end of the current billing
|
|
114
|
-
# when scheduled to be at the
|
|
125
|
+
# When the migration takes effect. Can be a specific date/time, 'start_of_term' or
|
|
126
|
+
# 'end_of_term' when scheduled to be at the start or end of the current billing
|
|
127
|
+
# period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
|
|
128
|
+
# start of the current or next invoice.
|
|
115
129
|
module EffectiveTime
|
|
116
130
|
extend Orb::Internal::Type::Union
|
|
117
131
|
|
|
@@ -143,11 +157,21 @@ module Orb
|
|
|
143
157
|
end
|
|
144
158
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
145
159
|
|
|
160
|
+
START_OF_TERM =
|
|
161
|
+
T.let(
|
|
162
|
+
:start_of_term,
|
|
163
|
+
Orb::Models::Plans::MigrationRetrieveResponse::EffectiveTime::TaggedSymbol
|
|
164
|
+
)
|
|
146
165
|
END_OF_TERM =
|
|
147
166
|
T.let(
|
|
148
167
|
:end_of_term,
|
|
149
168
|
Orb::Models::Plans::MigrationRetrieveResponse::EffectiveTime::TaggedSymbol
|
|
150
169
|
)
|
|
170
|
+
START_OF_INVOICE =
|
|
171
|
+
T.let(
|
|
172
|
+
:start_of_invoice,
|
|
173
|
+
Orb::Models::Plans::MigrationRetrieveResponse::EffectiveTime::TaggedSymbol
|
|
174
|
+
)
|
|
151
175
|
END_OF_INVOICE =
|
|
152
176
|
T.let(
|
|
153
177
|
:end_of_invoice,
|