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
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Orb
4
+ module Models
5
+ class MigrationSubscription < Orb::Internal::Type::BaseModel
6
+ # @!attribute customer
7
+ #
8
+ # @return [Orb::Models::CustomerMinified]
9
+ required :customer, -> { Orb::CustomerMinified }
10
+
11
+ # @!attribute effective_date
12
+ # When the subscription is migrated to the target plan version. Null unless the
13
+ # status is 'scheduled' or 'completed'.
14
+ #
15
+ # @return [Time, nil]
16
+ required :effective_date, Time, nil?: true
17
+
18
+ # @!attribute failure_reason
19
+ # Why the subscription could not be migrated. Null unless the status is 'failed'.
20
+ #
21
+ # @return [String, nil]
22
+ required :failure_reason, String, nil?: true
23
+
24
+ # @!attribute status
25
+ # The subscription's status in the migration: 'scheduling' until the migration has
26
+ # processed it, 'scheduled' when it will be migrated to the target version at
27
+ # `effective_date`, 'completed' once it has been migrated, 'skipped' when the
28
+ # migration left it unchanged, or 'failed' when it could not be migrated (see
29
+ # `failure_reason`).
30
+ #
31
+ # @return [Symbol, Orb::Models::MigrationSubscription::Status]
32
+ required :status, enum: -> { Orb::MigrationSubscription::Status }
33
+
34
+ # @!attribute subscription_id
35
+ # The ID of the subscription.
36
+ #
37
+ # @return [String]
38
+ required :subscription_id, String
39
+
40
+ # @!method initialize(customer:, effective_date:, failure_reason:, status:, subscription_id:)
41
+ # Some parameter documentations has been truncated, see
42
+ # {Orb::Models::MigrationSubscription} for more details.
43
+ #
44
+ # @param customer [Orb::Models::CustomerMinified]
45
+ #
46
+ # @param effective_date [Time, nil] When the subscription is migrated to the target plan version. Null unless the st
47
+ #
48
+ # @param failure_reason [String, nil] Why the subscription could not be migrated. Null unless the status is 'failed'.
49
+ #
50
+ # @param status [Symbol, Orb::Models::MigrationSubscription::Status] The subscription's status in the migration: 'scheduling' until the migration has
51
+ #
52
+ # @param subscription_id [String] The ID of the subscription.
53
+
54
+ # The subscription's status in the migration: 'scheduling' until the migration has
55
+ # processed it, 'scheduled' when it will be migrated to the target version at
56
+ # `effective_date`, 'completed' once it has been migrated, 'skipped' when the
57
+ # migration left it unchanged, or 'failed' when it could not be migrated (see
58
+ # `failure_reason`).
59
+ #
60
+ # @see Orb::Models::MigrationSubscription#status
61
+ module Status
62
+ extend Orb::Internal::Type::Enum
63
+
64
+ SCHEDULING = :scheduling
65
+ SCHEDULED = :scheduled
66
+ COMPLETED = :completed
67
+ SKIPPED = :skipped
68
+ FAILED = :failed
69
+
70
+ # @!method self.values
71
+ # @return [Array<Symbol>]
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Orb
4
+ module Models
5
+ module Migrations
6
+ # @see Orb::Resources::Migrations::Subscriptions#list
7
+ class SubscriptionListParams < Orb::Internal::Type::BaseModel
8
+ extend Orb::Internal::Type::RequestParameters::Converter
9
+ include Orb::Internal::Type::RequestParameters
10
+
11
+ # @!attribute migration_id
12
+ #
13
+ # @return [String]
14
+ required :migration_id, String
15
+
16
+ # @!attribute cursor
17
+ # Cursor for pagination. This can be populated by the `next_cursor` value returned
18
+ # from the initial request.
19
+ #
20
+ # @return [String, nil]
21
+ optional :cursor, String, nil?: true
22
+
23
+ # @!attribute limit
24
+ # The number of items to fetch. Defaults to 20.
25
+ #
26
+ # @return [Integer, nil]
27
+ optional :limit, Integer
28
+
29
+ # @!attribute status
30
+ # Only return subscriptions with one of these statuses.
31
+ #
32
+ # @return [Array<Symbol, Orb::Models::Migrations::SubscriptionListParams::Status>, nil]
33
+ optional :status,
34
+ -> { Orb::Internal::Type::ArrayOf[enum: Orb::Migrations::SubscriptionListParams::Status] },
35
+ nil?: true
36
+
37
+ # @!attribute subscription_id
38
+ # Only return these subscriptions. Up to 100 IDs.
39
+ #
40
+ # @return [Array<String>, nil]
41
+ optional :subscription_id, Orb::Internal::Type::ArrayOf[String], nil?: true
42
+
43
+ # @!method initialize(migration_id:, cursor: nil, limit: nil, status: nil, subscription_id: nil, request_options: {})
44
+ # Some parameter documentations has been truncated, see
45
+ # {Orb::Models::Migrations::SubscriptionListParams} for more details.
46
+ #
47
+ # @param migration_id [String]
48
+ #
49
+ # @param cursor [String, nil] Cursor for pagination. This can be populated by the `next_cursor` value returned
50
+ #
51
+ # @param limit [Integer] The number of items to fetch. Defaults to 20.
52
+ #
53
+ # @param status [Array<Symbol, Orb::Models::Migrations::SubscriptionListParams::Status>, nil] Only return subscriptions with one of these statuses.
54
+ #
55
+ # @param subscription_id [Array<String>, nil] Only return these subscriptions. Up to 100 IDs.
56
+ #
57
+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
58
+
59
+ module Status
60
+ extend Orb::Internal::Type::Enum
61
+
62
+ SCHEDULING = :scheduling
63
+ SCHEDULED = :scheduled
64
+ COMPLETED = :completed
65
+ SKIPPED = :skipped
66
+ FAILED = :failed
67
+
68
+ # @!method self.values
69
+ # @return [Array<Symbol>]
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
@@ -6,7 +6,7 @@ module Orb
6
6
  # @!attribute price
7
7
  # The price object
8
8
  #
9
- # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput]
9
+ # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput, Orb::Models::Price::UnitWithMultiplier]
10
10
  required :price, union: -> { Orb::Price }
11
11
 
12
12
  # @!attribute price_id
@@ -34,7 +34,7 @@ module Orb
34
34
  optional :quantity, Float, nil?: true
35
35
 
36
36
  # @!method initialize(price:, price_id:, subtotal:, total:, quantity: nil)
37
- # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput] The price object
37
+ # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput, Orb::Models::Price::UnitWithMultiplier] The price object
38
38
  #
39
39
  # @param price_id [String] The price the cost is associated with
40
40
  #
@@ -138,7 +138,7 @@ module Orb
138
138
  # Prices for this plan. If the plan has phases, this includes prices across all
139
139
  # phases of the plan.
140
140
  #
141
- # @return [Array<Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput>]
141
+ # @return [Array<Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput, Orb::Models::Price::UnitWithMultiplier>]
142
142
  required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::Price] }
143
143
 
144
144
  # @!attribute product
@@ -208,7 +208,7 @@ module Orb
208
208
  #
209
209
  # @param plan_phases [Array<Orb::Models::Plan::PlanPhase>, nil]
210
210
  #
211
- # @param prices [Array<Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput>] Prices for this plan. If the plan has phases, this includes prices across all ph
211
+ # @param prices [Array<Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput, Orb::Models::Price::UnitWithMultiplier>] Prices for this plan. If the plan has phases, this includes prices across all ph
212
212
  #
213
213
  # @param product [Orb::Models::Plan::Product]
214
214
  #
@@ -136,7 +136,7 @@ module Orb
136
136
  # @!attribute price
137
137
  # New plan price request body params.
138
138
  #
139
- # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreateParams::Price::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreateParams::Price::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance, Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreateParams::Price::Price::Percent, Orb::Models::PlanCreateParams::Price::Price::EventOutput, nil]
139
+ # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreateParams::Price::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreateParams::Price::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance, Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreateParams::Price::Price::Percent, Orb::Models::PlanCreateParams::Price::Price::EventOutput, Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier, nil]
140
140
  optional :price, union: -> { Orb::PlanCreateParams::Price::Price }, nil?: true
141
141
 
142
142
  # @!method initialize(allocation_price: nil, license_allocation_price: nil, plan_phase_order: nil, price: nil)
@@ -146,7 +146,7 @@ module Orb
146
146
  #
147
147
  # @param plan_phase_order [Integer, nil] The phase to add this price to.
148
148
  #
149
- # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreateParams::Price::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreateParams::Price::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance, Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreateParams::Price::Price::Percent, Orb::Models::PlanCreateParams::Price::Price::EventOutput, nil] New plan price request body params.
149
+ # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreateParams::Price::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreateParams::Price::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance, Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreateParams::Price::Price::Percent, Orb::Models::PlanCreateParams::Price::Price::EventOutput, Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier, nil] New plan price request body params.
150
150
 
151
151
  # @see Orb::Models::PlanCreateParams::Price#license_allocation_price
152
152
  class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
@@ -474,6 +474,8 @@ module Orb
474
474
 
475
475
  variant :event_output, -> { Orb::PlanCreateParams::Price::Price::EventOutput }
476
476
 
477
+ variant :unit_with_multiplier, -> { Orb::PlanCreateParams::Price::Price::UnitWithMultiplier }
478
+
477
479
  class BulkWithFilters < Orb::Internal::Type::BaseModel
478
480
  # @!attribute bulk_with_filters_config
479
481
  # Configuration for bulk_with_filters pricing
@@ -3278,8 +3280,249 @@ module Orb
3278
3280
  end
3279
3281
  end
3280
3282
 
3283
+ class UnitWithMultiplier < Orb::Internal::Type::BaseModel
3284
+ # @!attribute cadence
3285
+ # The cadence to bill for this price on.
3286
+ #
3287
+ # @return [Symbol, Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::Cadence]
3288
+ required :cadence, enum: -> { Orb::PlanCreateParams::Price::Price::UnitWithMultiplier::Cadence }
3289
+
3290
+ # @!attribute item_id
3291
+ # The id of the item the price will be associated with.
3292
+ #
3293
+ # @return [String]
3294
+ required :item_id, String
3295
+
3296
+ # @!attribute model_type
3297
+ # The pricing model type
3298
+ #
3299
+ # @return [Symbol, :unit_with_multiplier]
3300
+ required :model_type, const: :unit_with_multiplier
3301
+
3302
+ # @!attribute name
3303
+ # The name of the price.
3304
+ #
3305
+ # @return [String]
3306
+ required :name, String
3307
+
3308
+ # @!attribute unit_with_multiplier_config
3309
+ # Configuration for unit_with_multiplier pricing
3310
+ #
3311
+ # @return [Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::UnitWithMultiplierConfig]
3312
+ required :unit_with_multiplier_config,
3313
+ -> { Orb::PlanCreateParams::Price::Price::UnitWithMultiplier::UnitWithMultiplierConfig }
3314
+
3315
+ # @!attribute billable_metric_id
3316
+ # The id of the billable metric for the price. Only needed if the price is
3317
+ # usage-based.
3318
+ #
3319
+ # @return [String, nil]
3320
+ optional :billable_metric_id, String, nil?: true
3321
+
3322
+ # @!attribute billed_in_advance
3323
+ # If the Price represents a fixed cost, the price will be billed in-advance if
3324
+ # this is true, and in-arrears if this is false.
3325
+ #
3326
+ # @return [Boolean, nil]
3327
+ optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true
3328
+
3329
+ # @!attribute billing_cycle_configuration
3330
+ # For custom cadence: specifies the duration of the billing period in days or
3331
+ # months.
3332
+ #
3333
+ # @return [Orb::Models::NewBillingCycleConfiguration, nil]
3334
+ optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true
3335
+
3336
+ # @!attribute conversion_rate
3337
+ # The per unit conversion rate of the price currency to the invoicing currency.
3338
+ #
3339
+ # @return [Float, nil]
3340
+ optional :conversion_rate, Float, nil?: true
3341
+
3342
+ # @!attribute conversion_rate_config
3343
+ # The configuration for the rate of the price currency to the invoicing currency.
3344
+ #
3345
+ # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil]
3346
+ optional :conversion_rate_config, union: -> { Orb::ConversionRateConfig }, nil?: true
3347
+
3348
+ # @!attribute currency
3349
+ # An ISO 4217 currency string, or custom pricing unit identifier, in which this
3350
+ # price is billed.
3351
+ #
3352
+ # @return [String, nil]
3353
+ optional :currency, String, nil?: true
3354
+
3355
+ # @!attribute dimensional_price_configuration
3356
+ # For dimensional price: specifies a price group and dimension values
3357
+ #
3358
+ # @return [Orb::Models::NewDimensionalPriceConfiguration, nil]
3359
+ optional :dimensional_price_configuration,
3360
+ -> {
3361
+ Orb::NewDimensionalPriceConfiguration
3362
+ },
3363
+ nil?: true
3364
+
3365
+ # @!attribute external_price_id
3366
+ # An alias for the price.
3367
+ #
3368
+ # @return [String, nil]
3369
+ optional :external_price_id, String, nil?: true
3370
+
3371
+ # @!attribute fixed_price_quantity
3372
+ # If the Price represents a fixed cost, this represents the quantity of units
3373
+ # applied.
3374
+ #
3375
+ # @return [Float, nil]
3376
+ optional :fixed_price_quantity, Float, nil?: true
3377
+
3378
+ # @!attribute invoice_grouping_key
3379
+ # The property used to group this price on an invoice
3380
+ #
3381
+ # @return [String, nil]
3382
+ optional :invoice_grouping_key, String, nil?: true
3383
+
3384
+ # @!attribute invoicing_cycle_configuration
3385
+ # Within each billing cycle, specifies the cadence at which invoices are produced.
3386
+ # If unspecified, a single invoice is produced per billing cycle.
3387
+ #
3388
+ # @return [Orb::Models::NewBillingCycleConfiguration, nil]
3389
+ optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true
3390
+
3391
+ # @!attribute license_type_id
3392
+ # The ID of the license type to associate with this price. On a usage price this
3393
+ # also marks the price as eligible to draw down from that license type's
3394
+ # allocation; a usage price created without it is billed normally. Usage prices
3395
+ # with a license type must use the `unit` model, and only draw down when their
3396
+ # currency matches the allocation's.
3397
+ #
3398
+ # @return [String, nil]
3399
+ optional :license_type_id, String, nil?: true
3400
+
3401
+ # @!attribute metadata
3402
+ # User-specified key/value pairs for the resource. Individual keys can be removed
3403
+ # by setting the value to `null`, and the entire metadata mapping can be cleared
3404
+ # by setting `metadata` to `null`.
3405
+ #
3406
+ # @return [Hash{Symbol=>String, nil}, nil]
3407
+ optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true
3408
+
3409
+ # @!attribute reference_id
3410
+ # A transient ID that can be used to reference this price when adding adjustments
3411
+ # in the same API call.
3412
+ #
3413
+ # @return [String, nil]
3414
+ optional :reference_id, String, nil?: true
3415
+
3416
+ # @!method initialize(cadence:, item_id:, name:, unit_with_multiplier_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, license_type_id: nil, metadata: nil, reference_id: nil, model_type: :unit_with_multiplier)
3417
+ # Some parameter documentations has been truncated, see
3418
+ # {Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier} for more
3419
+ # details.
3420
+ #
3421
+ # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::Cadence] The cadence to bill for this price on.
3422
+ #
3423
+ # @param item_id [String] The id of the item the price will be associated with.
3424
+ #
3425
+ # @param name [String] The name of the price.
3426
+ #
3427
+ # @param unit_with_multiplier_config [Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::UnitWithMultiplierConfig] Configuration for unit_with_multiplier pricing
3428
+ #
3429
+ # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b
3430
+ #
3431
+ # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi
3432
+ #
3433
+ # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont
3434
+ #
3435
+ # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency.
3436
+ #
3437
+ # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency.
3438
+ #
3439
+ # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr
3440
+ #
3441
+ # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values
3442
+ #
3443
+ # @param external_price_id [String, nil] An alias for the price.
3444
+ #
3445
+ # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl
3446
+ #
3447
+ # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice
3448
+ #
3449
+ # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced.
3450
+ #
3451
+ # @param license_type_id [String, nil] The ID of the license type to associate with this price. On a usage price this a
3452
+ #
3453
+ # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed
3454
+ #
3455
+ # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments
3456
+ #
3457
+ # @param model_type [Symbol, :unit_with_multiplier] The pricing model type
3458
+
3459
+ # The cadence to bill for this price on.
3460
+ #
3461
+ # @see Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier#cadence
3462
+ module Cadence
3463
+ extend Orb::Internal::Type::Enum
3464
+
3465
+ ONE_TIME = :one_time
3466
+ MONTHLY = :monthly
3467
+ QUARTERLY = :quarterly
3468
+ SEMI_ANNUAL = :semi_annual
3469
+ ANNUAL = :annual
3470
+ CUSTOM = :custom
3471
+
3472
+ # @!method self.values
3473
+ # @return [Array<Symbol>]
3474
+ end
3475
+
3476
+ # @see Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier#unit_with_multiplier_config
3477
+ class UnitWithMultiplierConfig < Orb::Internal::Type::BaseModel
3478
+ # @!attribute default_display_name
3479
+ # Sub-line label for list-price events that don't set display_name_key. Unlabeled
3480
+ # events with another multiplier are labeled by their multiplier (e.g. '0.8×
3481
+ # rate').
3482
+ #
3483
+ # @return [String]
3484
+ required :default_display_name, String
3485
+
3486
+ # @!attribute display_name_key
3487
+ # Event property holding the sub-line label for the event's rate (e.g.
3488
+ # 'Off-peak').
3489
+ #
3490
+ # @return [String]
3491
+ required :display_name_key, String
3492
+
3493
+ # @!attribute multiplier_key
3494
+ # Event property holding the multiplier applied to unit_amount (e.g. 0.8 for a 20%
3495
+ # discount). Events without a number between 0 and 1000 with at most 12 decimal
3496
+ # places are charged at unit_amount.
3497
+ #
3498
+ # @return [String]
3499
+ required :multiplier_key, String
3500
+
3501
+ # @!attribute unit_amount
3502
+ # List price per unit, before the event's multiplier is applied.
3503
+ #
3504
+ # @return [String]
3505
+ required :unit_amount, String
3506
+
3507
+ # @!method initialize(default_display_name:, display_name_key:, multiplier_key:, unit_amount:)
3508
+ # Some parameter documentations has been truncated, see
3509
+ # {Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier::UnitWithMultiplierConfig}
3510
+ # for more details.
3511
+ #
3512
+ # Configuration for unit_with_multiplier pricing
3513
+ #
3514
+ # @param default_display_name [String] Sub-line label for list-price events that don't set display_name_key. Unlabeled
3515
+ #
3516
+ # @param display_name_key [String] Event property holding the sub-line label for the event's rate (e.g. 'Off-peak')
3517
+ #
3518
+ # @param multiplier_key [String] Event property holding the multiplier applied to unit_amount (e.g. 0.8 for a 20%
3519
+ #
3520
+ # @param unit_amount [String] List price per unit, before the event's multiplier is applied.
3521
+ end
3522
+ end
3523
+
3281
3524
  # @!method self.variants
3282
- # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreateParams::Price::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreateParams::Price::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance, Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreateParams::Price::Price::Percent, Orb::Models::PlanCreateParams::Price::Price::EventOutput)]
3525
+ # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::Price::BulkWithFilters, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedTieredMatrix, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreateParams::Price::Price::TieredMatrixWithAllocation, Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::PlanCreateParams::Price::Price::CumulativeGroupedAllocation, Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance, Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance, Orb::Models::NewPlanMinimumCompositePrice, Orb::Models::PlanCreateParams::Price::Price::Percent, Orb::Models::PlanCreateParams::Price::Price::EventOutput, Orb::Models::PlanCreateParams::Price::Price::UnitWithMultiplier)]
3283
3526
  end
3284
3527
  end
3285
3528
 
@@ -25,7 +25,7 @@ module Orb
25
25
  # Prices for this plan. If the plan has phases, this includes prices across all
26
26
  # phases of the plan.
27
27
  #
28
- # @return [Array<Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput>]
28
+ # @return [Array<Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput, Orb::Models::Price::UnitWithMultiplier>]
29
29
  required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::Price] }
30
30
 
31
31
  # @!attribute version
@@ -46,7 +46,7 @@ module Orb
46
46
  #
47
47
  # @param plan_phases [Array<Orb::Models::PlanVersionPhase>, nil]
48
48
  #
49
- # @param prices [Array<Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput>] Prices for this plan. If the plan has phases, this includes prices across all ph
49
+ # @param prices [Array<Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::BulkWithFilters, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::GroupedTieredMatrix, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredMatrixWithAllocation, Orb::Models::Price::MatrixWithThresholdDiscounts, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::CumulativeGroupedAllocation, Orb::Models::Price::DailyCreditAllowance, Orb::Models::Price::MeteredAllowance, Orb::Models::Price::MinimumComposite, Orb::Models::Price::Percent, Orb::Models::Price::EventOutput, Orb::Models::Price::UnitWithMultiplier>] Prices for this plan. If the plan has phases, this includes prices across all ph
50
50
  #
51
51
  # @param version [Integer]
52
52
 
@@ -12,9 +12,10 @@ module Orb
12
12
  required :id, String
13
13
 
14
14
  # @!attribute effective_time
15
- # When the migration takes effect. Can be a specific date/time, 'end_of_term' when
16
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
17
- # when scheduled to be at the start of the next invoice.
15
+ # When the migration takes effect. Can be a specific date/time, 'start_of_term' or
16
+ # 'end_of_term' when scheduled to be at the start or end of the current billing
17
+ # period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
18
+ # start of the current or next invoice.
18
19
  #
19
20
  # @return [Date, Time, Symbol, Orb::Models::Plans::MigrationCancelResponse::EffectiveTime, nil]
20
21
  required :effective_time,
@@ -48,13 +49,23 @@ module Orb
48
49
  # @return [Symbol, Orb::Models::Plans::MigrationCancelResponse::Status]
49
50
  required :status, enum: -> { Orb::Models::Plans::MigrationCancelResponse::Status }
50
51
 
51
- # @!method initialize(id:, effective_time:, ended_at:, plan_id:, started_at:, status:)
52
+ # @!attribute target_plan_version_number
53
+ # The plan version subscriptions are migrated to.
54
+ #
55
+ # @return [Integer]
56
+ required :target_plan_version_number, Integer
57
+
58
+ # @!method initialize(id:, effective_time:, ended_at:, plan_id:, started_at:, status:, target_plan_version_number:)
52
59
  # Some parameter documentations has been truncated, see
53
60
  # {Orb::Models::Plans::MigrationCancelResponse} for more details.
54
61
  #
62
+ # A migration moves a plan's subscriptions onto one of the plan's versions. Each
63
+ # subscription is migrated asynchronously, either immediately or at a scheduled
64
+ # time, and the migration reports its overall status as it progresses.
65
+ #
55
66
  # @param id [String] Unique identifier for this plan version change.
56
67
  #
57
- # @param effective_time [Date, Time, Symbol, Orb::Models::Plans::MigrationCancelResponse::EffectiveTime, nil] When the migration takes effect. Can be a specific date/time, 'end_of_term' when
68
+ # @param effective_time [Date, Time, Symbol, Orb::Models::Plans::MigrationCancelResponse::EffectiveTime, nil] When the migration takes effect. Can be a specific date/time, 'start_of_term' or
58
69
  #
59
70
  # @param ended_at [Time, nil] When the migration completed or was canceled, or null if it is still in progress
60
71
  #
@@ -63,10 +74,13 @@ module Orb
63
74
  # @param started_at [Time, nil] When Orb began migrating the plan's subscriptions. Null if the migration has not
64
75
  #
65
76
  # @param status [Symbol, Orb::Models::Plans::MigrationCancelResponse::Status] Current status of the migration: 'not_started', 'in_progress', 'completed', 'act
77
+ #
78
+ # @param target_plan_version_number [Integer] The plan version subscriptions are migrated to.
66
79
 
67
- # When the migration takes effect. Can be a specific date/time, 'end_of_term' when
68
- # scheduled to be at the end of the current billing period, or 'end_of_invoice'
69
- # when scheduled to be at the start of the next invoice.
80
+ # When the migration takes effect. Can be a specific date/time, 'start_of_term' or
81
+ # 'end_of_term' when scheduled to be at the start or end of the current billing
82
+ # period, or 'start_of_invoice' or 'end_of_invoice' when scheduled to be at the
83
+ # start of the current or next invoice.
70
84
  #
71
85
  # @see Orb::Models::Plans::MigrationCancelResponse#effective_time
72
86
  module EffectiveTime
@@ -76,8 +90,12 @@ module Orb
76
90
 
77
91
  variant Time
78
92
 
93
+ variant const: -> { Orb::Models::Plans::MigrationCancelResponse::EffectiveTime::START_OF_TERM }
94
+
79
95
  variant const: -> { Orb::Models::Plans::MigrationCancelResponse::EffectiveTime::END_OF_TERM }
80
96
 
97
+ variant const: -> { Orb::Models::Plans::MigrationCancelResponse::EffectiveTime::START_OF_INVOICE }
98
+
81
99
  variant const: -> { Orb::Models::Plans::MigrationCancelResponse::EffectiveTime::END_OF_INVOICE }
82
100
 
83
101
  # @!method self.variants
@@ -89,7 +107,9 @@ module Orb
89
107
 
90
108
  # @!group
91
109
 
110
+ START_OF_TERM = :start_of_term
92
111
  END_OF_TERM = :end_of_term
112
+ START_OF_INVOICE = :start_of_invoice
93
113
  END_OF_INVOICE = :end_of_invoice
94
114
 
95
115
  # @!endgroup