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.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/orb/client.rb +7 -0
  5. data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +496 -6
  6. data/lib/orb/models/beta_create_plan_version_params.rb +496 -6
  7. data/lib/orb/models/changed_subscription_resources.rb +2 -2
  8. data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +4 -4
  9. data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +4 -4
  10. data/lib/orb/models/credit_block_list_invoices_response.rb +4 -4
  11. data/lib/orb/models/credit_block_retrieve_response.rb +4 -4
  12. data/lib/orb/models/credit_block_update_response.rb +4 -4
  13. data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +4 -4
  14. data/lib/orb/models/dimensional_price_groups/price_create_response.rb +2 -2
  15. data/lib/orb/models/invoice.rb +2 -2
  16. data/lib/orb/models/invoice_edited_webhook_event.rb +2 -2
  17. data/lib/orb/models/invoice_fetch_upcoming_response.rb +2 -2
  18. data/lib/orb/models/invoice_line_item_create_response.rb +2 -2
  19. data/lib/orb/models/metric_update_params.rb +4 -3
  20. data/lib/orb/models/migration_cancel_params.rb +20 -0
  21. data/lib/orb/models/migration_cancel_response.rb +133 -0
  22. data/lib/orb/models/migration_create_params.rb +159 -0
  23. data/lib/orb/models/migration_create_response.rb +133 -0
  24. data/lib/orb/models/migration_list_params.rb +48 -0
  25. data/lib/orb/models/migration_list_response.rb +133 -0
  26. data/lib/orb/models/migration_retrieve_params.rb +20 -0
  27. data/lib/orb/models/migration_retrieve_response.rb +133 -0
  28. data/lib/orb/models/migration_subscription.rb +75 -0
  29. data/lib/orb/models/migrations/subscription_list_params.rb +74 -0
  30. data/lib/orb/models/per_price_cost.rb +2 -2
  31. data/lib/orb/models/plan.rb +2 -2
  32. data/lib/orb/models/plan_create_params.rb +246 -3
  33. data/lib/orb/models/plan_version.rb +2 -2
  34. data/lib/orb/models/plans/migration_cancel_response.rb +28 -8
  35. data/lib/orb/models/plans/migration_list_response.rb +28 -8
  36. data/lib/orb/models/plans/migration_retrieve_response.rb +28 -8
  37. data/lib/orb/models/price.rb +416 -1
  38. data/lib/orb/models/price_create_params.rb +231 -3
  39. data/lib/orb/models/price_edited_webhook_event.rb +2 -2
  40. data/lib/orb/models/price_evaluate_multiple_params.rb +238 -3
  41. data/lib/orb/models/price_evaluate_preview_events_params.rb +238 -3
  42. data/lib/orb/models/price_interval.rb +2 -2
  43. data/lib/orb/models/subscription_create_params.rb +495 -6
  44. data/lib/orb/models/subscription_price_intervals_params.rb +238 -3
  45. data/lib/orb/models/subscription_schedule_plan_change_params.rb +496 -6
  46. data/lib/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rb +4 -4
  47. data/lib/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rb +4 -4
  48. data/lib/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rb +4 -4
  49. data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +2 -2
  50. data/lib/orb/models/webhooks/price_edited_standard_webhook_event.rb +2 -2
  51. data/lib/orb/models.rb +12 -0
  52. data/lib/orb/resources/credit_blocks.rb +1 -1
  53. data/lib/orb/resources/dimensional_price_groups/prices.rb +1 -1
  54. data/lib/orb/resources/metrics.rb +11 -10
  55. data/lib/orb/resources/migrations/subscriptions.rb +60 -0
  56. data/lib/orb/resources/migrations.rb +153 -0
  57. data/lib/orb/resources/prices/external_price_id.rb +2 -2
  58. data/lib/orb/resources/prices.rb +5 -5
  59. data/lib/orb/version.rb +1 -1
  60. data/lib/orb.rb +12 -0
  61. data/rbi/orb/client.rbi +6 -0
  62. data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +2939 -2129
  63. data/rbi/orb/models/beta_create_plan_version_params.rbi +2937 -2127
  64. data/rbi/orb/models/changed_subscription_resources.rbi +2 -1
  65. data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +5 -5
  66. data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +5 -5
  67. data/rbi/orb/models/credit_block_list_invoices_response.rbi +5 -5
  68. data/rbi/orb/models/credit_block_retrieve_response.rbi +5 -5
  69. data/rbi/orb/models/credit_block_update_response.rbi +5 -5
  70. data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +5 -5
  71. data/rbi/orb/models/dimensional_price_groups/price_create_response.rbi +2 -1
  72. data/rbi/orb/models/invoice.rbi +2 -1
  73. data/rbi/orb/models/invoice_edited_webhook_event.rbi +2 -1
  74. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +2 -1
  75. data/rbi/orb/models/invoice_line_item_create_response.rbi +2 -1
  76. data/rbi/orb/models/metric_update_params.rbi +6 -4
  77. data/rbi/orb/models/migration_cancel_params.rbi +35 -0
  78. data/rbi/orb/models/migration_cancel_response.rbi +218 -0
  79. data/rbi/orb/models/migration_create_params.rbi +248 -0
  80. data/rbi/orb/models/migration_create_response.rbi +218 -0
  81. data/rbi/orb/models/migration_list_params.rbi +66 -0
  82. data/rbi/orb/models/migration_list_response.rbi +214 -0
  83. data/rbi/orb/models/migration_retrieve_params.rbi +35 -0
  84. data/rbi/orb/models/migration_retrieve_response.rbi +221 -0
  85. data/rbi/orb/models/migration_subscription.rbi +112 -0
  86. data/rbi/orb/models/migrations/subscription_list_params.rbi +147 -0
  87. data/rbi/orb/models/per_price_cost.rbi +2 -1
  88. data/rbi/orb/models/plan.rbi +2 -1
  89. data/rbi/orb/models/plan_create_params.rbi +409 -4
  90. data/rbi/orb/models/plan_version.rbi +2 -1
  91. data/rbi/orb/models/plans/migration_cancel_response.rbi +36 -12
  92. data/rbi/orb/models/plans/migration_list_response.rbi +36 -12
  93. data/rbi/orb/models/plans/migration_retrieve_response.rbi +36 -12
  94. data/rbi/orb/models/price.rbi +716 -1
  95. data/rbi/orb/models/price_create_params.rbi +397 -4
  96. data/rbi/orb/models/price_edited_webhook_event.rbi +2 -1
  97. data/rbi/orb/models/price_evaluate_multiple_params.rbi +397 -4
  98. data/rbi/orb/models/price_evaluate_preview_events_params.rbi +397 -4
  99. data/rbi/orb/models/price_interval.rbi +2 -1
  100. data/rbi/orb/models/subscription_create_params.rbi +2676 -1866
  101. data/rbi/orb/models/subscription_price_intervals_params.rbi +397 -4
  102. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +2686 -1876
  103. data/rbi/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbi +5 -5
  104. data/rbi/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbi +5 -5
  105. data/rbi/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbi +5 -5
  106. data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +2 -1
  107. data/rbi/orb/models/webhooks/price_edited_standard_webhook_event.rbi +2 -1
  108. data/rbi/orb/models.rbi +12 -0
  109. data/rbi/orb/resources/credit_blocks.rbi +1 -1
  110. data/rbi/orb/resources/metrics.rbi +13 -11
  111. data/rbi/orb/resources/migrations/subscriptions.rbi +54 -0
  112. data/rbi/orb/resources/migrations.rbi +130 -0
  113. data/rbi/orb/resources/prices.rbi +2 -1
  114. data/sig/orb/client.rbs +2 -0
  115. data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +322 -0
  116. data/sig/orb/models/beta_create_plan_version_params.rbs +322 -0
  117. data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +2 -2
  118. data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +2 -2
  119. data/sig/orb/models/credit_block_list_invoices_response.rbs +2 -2
  120. data/sig/orb/models/credit_block_retrieve_response.rbs +2 -2
  121. data/sig/orb/models/credit_block_update_response.rbs +2 -2
  122. data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +2 -2
  123. data/sig/orb/models/migration_cancel_params.rbs +23 -0
  124. data/sig/orb/models/migration_cancel_response.rbs +84 -0
  125. data/sig/orb/models/migration_create_params.rbs +126 -0
  126. data/sig/orb/models/migration_create_response.rbs +84 -0
  127. data/sig/orb/models/migration_list_params.rbs +43 -0
  128. data/sig/orb/models/migration_list_response.rbs +84 -0
  129. data/sig/orb/models/migration_retrieve_params.rbs +23 -0
  130. data/sig/orb/models/migration_retrieve_response.rbs +84 -0
  131. data/sig/orb/models/migration_subscription.rbs +54 -0
  132. data/sig/orb/models/migrations/subscription_list_params.rbs +64 -0
  133. data/sig/orb/models/plan_create_params.rbs +161 -0
  134. data/sig/orb/models/plans/migration_cancel_response.rbs +17 -4
  135. data/sig/orb/models/plans/migration_list_response.rbs +17 -4
  136. data/sig/orb/models/plans/migration_retrieve_response.rbs +17 -4
  137. data/sig/orb/models/price.rbs +305 -0
  138. data/sig/orb/models/price_create_params.rbs +151 -0
  139. data/sig/orb/models/price_evaluate_multiple_params.rbs +156 -0
  140. data/sig/orb/models/price_evaluate_preview_events_params.rbs +156 -0
  141. data/sig/orb/models/subscription_create_params.rbs +322 -0
  142. data/sig/orb/models/subscription_price_intervals_params.rbs +156 -0
  143. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +322 -0
  144. data/sig/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbs +2 -2
  145. data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs +2 -2
  146. data/sig/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbs +2 -2
  147. data/sig/orb/models.rbs +12 -0
  148. data/sig/orb/resources/migrations/subscriptions.rbs +18 -0
  149. data/sig/orb/resources/migrations.rbs +44 -0
  150. 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, 'end_of_term' when
20
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
21
- # when scheduled to be at the start of the next invoice.
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, 'end_of_term' when
76
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
77
- # when scheduled to be at the start of the next invoice.
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, 'end_of_term' when
113
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
114
- # when scheduled to be at the start of the next invoice.
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, 'end_of_term' when
20
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
21
- # when scheduled to be at the start of the next invoice.
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, 'end_of_term' when
75
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
76
- # when scheduled to be at the start of the next invoice.
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, 'end_of_term' when
112
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
113
- # when scheduled to be at the start of the next invoice.
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, 'end_of_term' when
20
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
21
- # when scheduled to be at the start of the next invoice.
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, 'end_of_term' when
76
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
77
- # when scheduled to be at the start of the next invoice.
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, 'end_of_term' when
113
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
114
- # when scheduled to be at the start of the next invoice.
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,