orb-billing 0.5.0 → 0.5.2

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 (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +1 -1
  4. data/lib/orb/internal/type/array_of.rb +8 -0
  5. data/lib/orb/internal/type/base_model.rb +7 -0
  6. data/lib/orb/internal/type/boolean.rb +8 -0
  7. data/lib/orb/internal/type/enum.rb +12 -0
  8. data/lib/orb/internal/type/file_input.rb +7 -0
  9. data/lib/orb/internal/type/hash_of.rb +8 -0
  10. data/lib/orb/internal/type/union.rb +12 -0
  11. data/lib/orb/internal/type/unknown.rb +8 -0
  12. data/lib/orb/internal/util.rb +45 -0
  13. data/lib/orb/models/coupon.rb +0 -4
  14. data/lib/orb/models/coupon_create_params.rb +0 -6
  15. data/lib/orb/models/customer_create_params.rb +0 -9
  16. data/lib/orb/models/customer_update_by_external_id_params.rb +0 -9
  17. data/lib/orb/models/customer_update_params.rb +0 -9
  18. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -14
  19. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -14
  20. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -14
  21. data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -14
  22. data/lib/orb/models/discount.rb +0 -6
  23. data/lib/orb/models/evaluate_price_group.rb +0 -4
  24. data/lib/orb/models/invoice.rb +0 -22
  25. data/lib/orb/models/invoice_fetch_upcoming_response.rb +0 -22
  26. data/lib/orb/models/invoice_level_discount.rb +0 -4
  27. data/lib/orb/models/invoice_line_item_create_response.rb +0 -22
  28. data/lib/orb/models/plan.rb +0 -12
  29. data/lib/orb/models/plan_create_params.rb +0 -32
  30. data/lib/orb/models/price.rb +0 -35
  31. data/lib/orb/models/subscription.rb +0 -22
  32. data/lib/orb/models/subscription_cancel_response.rb +0 -22
  33. data/lib/orb/models/subscription_change_apply_response.rb +0 -22
  34. data/lib/orb/models/subscription_change_cancel_response.rb +0 -22
  35. data/lib/orb/models/subscription_change_retrieve_response.rb +0 -22
  36. data/lib/orb/models/subscription_create_params.rb +0 -88
  37. data/lib/orb/models/subscription_create_response.rb +0 -22
  38. data/lib/orb/models/subscription_price_intervals_params.rb +0 -89
  39. data/lib/orb/models/subscription_price_intervals_response.rb +0 -22
  40. data/lib/orb/models/subscription_schedule_plan_change_params.rb +0 -88
  41. data/lib/orb/models/subscription_schedule_plan_change_response.rb +0 -22
  42. data/lib/orb/models/subscription_trigger_phase_response.rb +0 -22
  43. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +0 -22
  44. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +0 -22
  45. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +0 -22
  46. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +0 -22
  47. data/lib/orb/models/subscription_update_trial_response.rb +0 -22
  48. data/lib/orb/models/subscription_usage.rb +0 -9
  49. data/lib/orb/models.rb +30 -16
  50. data/lib/orb/version.rb +1 -1
  51. data/rbi/orb/internal/type/array_of.rbi +6 -0
  52. data/rbi/orb/internal/type/base_model.rbi +5 -0
  53. data/rbi/orb/internal/type/boolean.rbi +6 -0
  54. data/rbi/orb/internal/type/enum.rbi +5 -0
  55. data/rbi/orb/internal/type/file_input.rbi +5 -0
  56. data/rbi/orb/internal/type/hash_of.rbi +6 -0
  57. data/rbi/orb/internal/type/union.rbi +5 -0
  58. data/rbi/orb/internal/type/unknown.rbi +6 -0
  59. data/rbi/orb/internal/util.rbi +30 -0
  60. data/rbi/orb/models/coupon.rbi +2 -2
  61. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +2 -65
  62. data/rbi/orb/models/customers/cost_list_response.rbi +2 -65
  63. data/rbi/orb/models/evaluate_price_group.rbi +7 -3
  64. data/rbi/orb/models/invoice.rbi +10 -149
  65. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +10 -133
  66. data/rbi/orb/models/invoice_line_item_create_response.rbi +8 -114
  67. data/rbi/orb/models/plan.rbi +8 -134
  68. data/rbi/orb/models/price.rbi +56 -588
  69. data/rbi/orb/models/subscription.rbi +6 -99
  70. data/rbi/orb/models/subscription_cancel_response.rbi +6 -89
  71. data/rbi/orb/models/subscription_change_apply_response.rbi +6 -89
  72. data/rbi/orb/models/subscription_change_cancel_response.rbi +6 -89
  73. data/rbi/orb/models/subscription_change_retrieve_response.rbi +6 -89
  74. data/rbi/orb/models/subscription_create_response.rbi +6 -89
  75. data/rbi/orb/models/subscription_fetch_costs_response.rbi +2 -65
  76. data/rbi/orb/models/subscription_price_intervals_params.rbi +72 -26
  77. data/rbi/orb/models/subscription_price_intervals_response.rbi +6 -89
  78. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +6 -89
  79. data/rbi/orb/models/subscription_trigger_phase_response.rbi +6 -89
  80. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +6 -89
  81. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +6 -89
  82. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +6 -89
  83. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +6 -89
  84. data/rbi/orb/models/subscription_update_trial_params.rbi +3 -14
  85. data/rbi/orb/models/subscription_update_trial_response.rbi +6 -89
  86. data/rbi/orb/resources/customers/credits/ledger.rbi +4 -36
  87. data/rbi/orb/resources/prices/external_price_id.rbi +2 -64
  88. data/rbi/orb/resources/prices.rbi +4 -130
  89. data/rbi/orb/resources/subscriptions.rbi +2 -10
  90. data/sig/orb/internal/type/array_of.rbs +3 -0
  91. data/sig/orb/internal/type/base_model.rbs +2 -0
  92. data/sig/orb/internal/type/boolean.rbs +3 -0
  93. data/sig/orb/internal/type/enum.rbs +2 -0
  94. data/sig/orb/internal/type/file_input.rbs +2 -0
  95. data/sig/orb/internal/type/hash_of.rbs +3 -0
  96. data/sig/orb/internal/type/union.rbs +2 -0
  97. data/sig/orb/internal/type/unknown.rbs +3 -0
  98. data/sig/orb/internal/util.rbs +12 -0
  99. metadata +2 -2
@@ -558,18 +558,6 @@ module Orb
558
558
 
559
559
  # @!method self.variants
560
560
  # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum)]
561
-
562
- define_sorbet_constant!(:Variants) do
563
- T.type_alias do
564
- T.any(
565
- Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::PercentageDiscount,
566
- Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::UsageDiscount,
567
- Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::AmountDiscount,
568
- Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Minimum,
569
- Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Maximum
570
- )
571
- end
572
- end
573
561
  end
574
562
  end
575
563
 
@@ -7384,38 +7372,6 @@ module Orb
7384
7372
 
7385
7373
  # @!method self.variants
7386
7374
  # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage)]
7387
-
7388
- define_sorbet_constant!(:Variants) do
7389
- T.type_alias do
7390
- T.any(
7391
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Unit,
7392
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Package,
7393
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Matrix,
7394
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Tiered,
7395
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredBps,
7396
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bps,
7397
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkBps,
7398
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Bulk,
7399
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ThresholdTotalAmount,
7400
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredPackage,
7401
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithMinimum,
7402
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithPercent,
7403
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::PackageWithAllocation,
7404
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration,
7405
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::UnitWithProration,
7406
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedAllocation,
7407
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithProratedMinimum,
7408
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::BulkWithProration,
7409
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithUnitPricing,
7410
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::ScalableMatrixWithTieredPricing,
7411
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedBulk,
7412
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MaxGroupTieredPackage,
7413
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMeteredMinimum,
7414
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithDisplayName,
7415
- Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedTieredPackage
7416
- )
7417
- end
7418
- end
7419
7375
  end
7420
7376
  end
7421
7377
 
@@ -7752,18 +7708,6 @@ module Orb
7752
7708
 
7753
7709
  # @!method self.variants
7754
7710
  # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum, Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum)]
7755
-
7756
- define_sorbet_constant!(:Variants) do
7757
- T.type_alias do
7758
- T.any(
7759
- Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::PercentageDiscount,
7760
- Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::UsageDiscount,
7761
- Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::AmountDiscount,
7762
- Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Minimum,
7763
- Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Maximum
7764
- )
7765
- end
7766
- end
7767
7711
  end
7768
7712
  end
7769
7713
 
@@ -14585,38 +14529,6 @@ module Orb
14585
14529
 
14586
14530
  # @!method self.variants
14587
14531
  # @return [Array(Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage)]
14588
-
14589
- define_sorbet_constant!(:Variants) do
14590
- T.type_alias do
14591
- T.any(
14592
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Unit,
14593
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Package,
14594
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Matrix,
14595
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Tiered,
14596
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredBps,
14597
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bps,
14598
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkBps,
14599
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Bulk,
14600
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ThresholdTotalAmount,
14601
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredPackage,
14602
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithMinimum,
14603
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithPercent,
14604
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::PackageWithAllocation,
14605
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration,
14606
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::UnitWithProration,
14607
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedAllocation,
14608
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithProratedMinimum,
14609
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithProration,
14610
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithUnitPricing,
14611
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::ScalableMatrixWithTieredPricing,
14612
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedBulk,
14613
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MaxGroupTieredPackage,
14614
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMeteredMinimum,
14615
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithDisplayName,
14616
- Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedTieredPackage
14617
- )
14618
- end
14619
- end
14620
14532
  end
14621
14533
  end
14622
14534
  end
@@ -656,18 +656,6 @@ module Orb
656
656
 
657
657
  # @!method self.variants
658
658
  # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum)]
659
-
660
- define_sorbet_constant!(:Variants) do
661
- T.type_alias do
662
- T.any(
663
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscount,
664
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscount,
665
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
666
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Minimum,
667
- Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Maximum
668
- )
669
- end
670
- end
671
659
  end
672
660
  end
673
661
 
@@ -883,16 +871,6 @@ module Orb
883
871
 
884
872
  # @!method self.variants
885
873
  # @return [Array(Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage)]
886
-
887
- define_sorbet_constant!(:Variants) do
888
- T.type_alias do
889
- T.any(
890
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Amount,
891
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Percentage,
892
- Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Usage
893
- )
894
- end
895
- end
896
874
  end
897
875
 
898
876
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -656,18 +656,6 @@ module Orb
656
656
 
657
657
  # @!method self.variants
658
658
  # @return [Array(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum)]
659
-
660
- define_sorbet_constant!(:Variants) do
661
- T.type_alias do
662
- T.any(
663
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscount,
664
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscount,
665
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
666
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Minimum,
667
- Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Maximum
668
- )
669
- end
670
- end
671
659
  end
672
660
  end
673
661
 
@@ -882,16 +870,6 @@ module Orb
882
870
 
883
871
  # @!method self.variants
884
872
  # @return [Array(Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage)]
885
-
886
- define_sorbet_constant!(:Variants) do
887
- T.type_alias do
888
- T.any(
889
- Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Amount,
890
- Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Percentage,
891
- Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Usage
892
- )
893
- end
894
- end
895
873
  end
896
874
 
897
875
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -656,18 +656,6 @@ module Orb
656
656
 
657
657
  # @!method self.variants
658
658
  # @return [Array(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum)]
659
-
660
- define_sorbet_constant!(:Variants) do
661
- T.type_alias do
662
- T.any(
663
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscount,
664
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscount,
665
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
666
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Minimum,
667
- Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Maximum
668
- )
669
- end
670
- end
671
659
  end
672
660
  end
673
661
 
@@ -883,16 +871,6 @@ module Orb
883
871
 
884
872
  # @!method self.variants
885
873
  # @return [Array(Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage)]
886
-
887
- define_sorbet_constant!(:Variants) do
888
- T.type_alias do
889
- T.any(
890
- Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Amount,
891
- Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Percentage,
892
- Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Usage
893
- )
894
- end
895
- end
896
874
  end
897
875
 
898
876
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -657,18 +657,6 @@ module Orb
657
657
 
658
658
  # @!method self.variants
659
659
  # @return [Array(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum)]
660
-
661
- define_sorbet_constant!(:Variants) do
662
- T.type_alias do
663
- T.any(
664
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
665
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
666
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
667
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Minimum,
668
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Maximum
669
- )
670
- end
671
- end
672
660
  end
673
661
  end
674
662
 
@@ -886,16 +874,6 @@ module Orb
886
874
 
887
875
  # @!method self.variants
888
876
  # @return [Array(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage)]
889
-
890
- define_sorbet_constant!(:Variants) do
891
- T.type_alias do
892
- T.any(
893
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Amount,
894
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Percentage,
895
- Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Usage
896
- )
897
- end
898
- end
899
877
  end
900
878
 
901
879
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -657,18 +657,6 @@ module Orb
657
657
 
658
658
  # @!method self.variants
659
659
  # @return [Array(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum)]
660
-
661
- define_sorbet_constant!(:Variants) do
662
- T.type_alias do
663
- T.any(
664
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscount,
665
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscount,
666
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
667
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Minimum,
668
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Maximum
669
- )
670
- end
671
- end
672
660
  end
673
661
  end
674
662
 
@@ -886,16 +874,6 @@ module Orb
886
874
 
887
875
  # @!method self.variants
888
876
  # @return [Array(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage)]
889
-
890
- define_sorbet_constant!(:Variants) do
891
- T.type_alias do
892
- T.any(
893
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Amount,
894
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Percentage,
895
- Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Usage
896
- )
897
- end
898
- end
899
877
  end
900
878
 
901
879
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -656,18 +656,6 @@ module Orb
656
656
 
657
657
  # @!method self.variants
658
658
  # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum)]
659
-
660
- define_sorbet_constant!(:Variants) do
661
- T.type_alias do
662
- T.any(
663
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscount,
664
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscount,
665
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
666
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Minimum,
667
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Maximum
668
- )
669
- end
670
- end
671
659
  end
672
660
  end
673
661
 
@@ -883,16 +871,6 @@ module Orb
883
871
 
884
872
  # @!method self.variants
885
873
  # @return [Array(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage)]
886
-
887
- define_sorbet_constant!(:Variants) do
888
- T.type_alias do
889
- T.any(
890
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Amount,
891
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Percentage,
892
- Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Usage
893
- )
894
- end
895
- end
896
874
  end
897
875
 
898
876
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -654,18 +654,6 @@ module Orb
654
654
 
655
655
  # @!method self.variants
656
656
  # @return [Array(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum)]
657
-
658
- define_sorbet_constant!(:Variants) do
659
- T.type_alias do
660
- T.any(
661
- Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscount,
662
- Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscount,
663
- Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscount,
664
- Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Minimum,
665
- Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Maximum
666
- )
667
- end
668
- end
669
657
  end
670
658
  end
671
659
 
@@ -880,16 +868,6 @@ module Orb
880
868
 
881
869
  # @!method self.variants
882
870
  # @return [Array(Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage)]
883
-
884
- define_sorbet_constant!(:Variants) do
885
- T.type_alias do
886
- T.any(
887
- Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Amount,
888
- Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Percentage,
889
- Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Usage
890
- )
891
- end
892
- end
893
871
  end
894
872
 
895
873
  class FixedFeeQuantitySchedule < Orb::Internal::Type::BaseModel
@@ -219,15 +219,6 @@ module Orb
219
219
 
220
220
  # @!method self.variants
221
221
  # @return [Array(Orb::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::SubscriptionUsage::GroupedSubscriptionUsage)]
222
-
223
- define_sorbet_constant!(:Variants) do
224
- T.type_alias do
225
- T.any(
226
- Orb::SubscriptionUsage::UngroupedSubscriptionUsage,
227
- Orb::SubscriptionUsage::GroupedSubscriptionUsage
228
- )
229
- end
230
- end
231
222
  end
232
223
  end
233
224
  end
data/lib/orb/models.rb CHANGED
@@ -5,26 +5,40 @@ module Orb
5
5
  cls.define_sorbet_constant!(:OrHash) { T.type_alias { T.any(cls, Orb::Internal::AnyHash) } }
6
6
  end
7
7
 
8
- [*Orb::Internal::Type::Enum.included_modules, *Orb::Internal::Type::Union.included_modules].each do |cls|
9
- cls.constants.each do |name|
10
- case cls.const_get(name)
11
- in true | false
12
- cls.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T.all(T::Boolean, cls) } }
13
- cls.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
14
- in Integer
15
- cls.define_sorbet_constant!(:TaggedInteger) { T.type_alias { T.all(Integer, cls) } }
16
- cls.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
17
- in Float
18
- cls.define_sorbet_constant!(:TaggedFloat) { T.type_alias { T.all(Float, cls) } }
19
- cls.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
20
- in Symbol
21
- cls.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { T.all(Symbol, cls) } }
22
- cls.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
23
- else
8
+ Orb::Internal::Util.walk_namespaces(Orb::Models).each do |mod|
9
+ case mod
10
+ in Orb::Internal::Type::Enum | Orb::Internal::Type::Union
11
+ mod.constants.each do |name|
12
+ case mod.const_get(name)
13
+ in true | false
14
+ mod.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T.all(T::Boolean, mod) } }
15
+ mod.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
16
+ in Integer
17
+ mod.define_sorbet_constant!(:TaggedInteger) { T.type_alias { T.all(Integer, mod) } }
18
+ mod.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
19
+ in Float
20
+ mod.define_sorbet_constant!(:TaggedFloat) { T.type_alias { T.all(Float, mod) } }
21
+ mod.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
22
+ in Symbol
23
+ mod.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { T.all(Symbol, mod) } }
24
+ mod.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
25
+ else
26
+ end
24
27
  end
28
+ else
25
29
  end
26
30
  end
27
31
 
32
+ Orb::Internal::Util.walk_namespaces(Orb::Models)
33
+ .lazy
34
+ .grep(Orb::Internal::Type::Union)
35
+ .each do |mod|
36
+ const = :Variants
37
+ next if mod.sorbet_constant_defined?(const)
38
+
39
+ mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
40
+ end
41
+
28
42
  Alert = Orb::Models::Alert
29
43
 
30
44
  AlertCreateForCustomerParams = Orb::Models::AlertCreateForCustomerParams
data/lib/orb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orb
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.2"
5
5
  end
@@ -8,6 +8,7 @@ module Orb
8
8
  # Array of items of a given type.
9
9
  class ArrayOf
10
10
  include Orb::Internal::Type::Converter
11
+ include Orb::Internal::Util::SorbetRuntimeSupport
11
12
 
12
13
  abstract!
13
14
 
@@ -63,6 +64,11 @@ module Orb
63
64
  def dump(value, state:)
64
65
  end
65
66
 
67
+ # @api private
68
+ sig { returns(T.anything) }
69
+ def to_sorbet_type
70
+ end
71
+
66
72
  # @api private
67
73
  sig { returns(Elem) }
68
74
  protected def item_type
@@ -190,6 +190,11 @@ module Orb
190
190
  end
191
191
  def dump(value, state:)
192
192
  end
193
+
194
+ # @api private
195
+ sig { returns(T.anything) }
196
+ def to_sorbet_type
197
+ end
193
198
  end
194
199
 
195
200
  class << self
@@ -8,6 +8,7 @@ module Orb
8
8
  # Ruby has no Boolean class; this is something for models to refer to.
9
9
  class Boolean
10
10
  extend Orb::Internal::Type::Converter
11
+ extend Orb::Internal::Util::SorbetRuntimeSupport
11
12
 
12
13
  abstract!
13
14
 
@@ -43,6 +44,11 @@ module Orb
43
44
  end
44
45
  def dump(value, state:)
45
46
  end
47
+
48
+ # @api private
49
+ sig { returns(T.anything) }
50
+ def to_sorbet_type
51
+ end
46
52
  end
47
53
  end
48
54
  end
@@ -67,6 +67,11 @@ module Orb
67
67
  def dump(value, state:)
68
68
  end
69
69
 
70
+ # @api private
71
+ sig { returns(T.anything) }
72
+ def to_sorbet_type
73
+ end
74
+
70
75
  # @api private
71
76
  sig { params(depth: Integer).returns(String) }
72
77
  def inspect(depth: 0)
@@ -46,6 +46,11 @@ module Orb
46
46
  end
47
47
  def dump(value, state:)
48
48
  end
49
+
50
+ # @api private
51
+ sig { returns(T.anything) }
52
+ def to_sorbet_type
53
+ end
49
54
  end
50
55
  end
51
56
  end
@@ -8,6 +8,7 @@ module Orb
8
8
  # Hash of items of a given type.
9
9
  class HashOf
10
10
  include Orb::Internal::Type::Converter
11
+ include Orb::Internal::Util::SorbetRuntimeSupport
11
12
 
12
13
  abstract!
13
14
 
@@ -63,6 +64,11 @@ module Orb
63
64
  def dump(value, state:)
64
65
  end
65
66
 
67
+ # @api private
68
+ sig { returns(T.anything) }
69
+ def to_sorbet_type
70
+ end
71
+
66
72
  # @api private
67
73
  sig { returns(Elem) }
68
74
  protected def item_type
@@ -101,6 +101,11 @@ module Orb
101
101
  def dump(value, state:)
102
102
  end
103
103
 
104
+ # @api private
105
+ sig { returns(T.anything) }
106
+ def to_sorbet_type
107
+ end
108
+
104
109
  # @api private
105
110
  sig { params(depth: Integer).returns(String) }
106
111
  def inspect(depth: 0)
@@ -8,6 +8,7 @@ module Orb
8
8
  # When we don't know what to expect for the value.
9
9
  class Unknown
10
10
  extend Orb::Internal::Type::Converter
11
+ extend Orb::Internal::Util::SorbetRuntimeSupport
11
12
 
12
13
  abstract!
13
14
 
@@ -43,6 +44,11 @@ module Orb
43
44
  end
44
45
  def dump(value, state:)
45
46
  end
47
+
48
+ # @api private
49
+ sig { returns(T.anything) }
50
+ def to_sorbet_type
51
+ end
46
52
  end
47
53
  end
48
54
  end
@@ -11,6 +11,15 @@ module Orb
11
11
  def self.monotonic_secs
12
12
  end
13
13
 
14
+ # @api private
15
+ sig do
16
+ params(ns: T.any(Module, T::Class[T.anything])).returns(
17
+ T::Enumerable[T.any(Module, T::Class[T.anything])]
18
+ )
19
+ end
20
+ def self.walk_namespaces(ns)
21
+ end
22
+
14
23
  class << self
15
24
  # @api private
16
25
  sig { returns(String) }
@@ -435,10 +444,31 @@ module Orb
435
444
  def const_missing(name)
436
445
  end
437
446
 
447
+ # @api private
448
+ sig { params(name: Symbol).returns(T::Boolean) }
449
+ def sorbet_constant_defined?(name)
450
+ end
451
+
438
452
  # @api private
439
453
  sig { params(name: Symbol, blk: T.proc.returns(T.anything)).void }
440
454
  def define_sorbet_constant!(name, &blk)
441
455
  end
456
+
457
+ # @api private
458
+ sig { returns(T.anything) }
459
+ def to_sorbet_type
460
+ end
461
+
462
+ class << self
463
+ # @api private
464
+ sig do
465
+ params(
466
+ type: T.any(Orb::Internal::Util::SorbetRuntimeSupport, T.anything)
467
+ ).returns(T.anything)
468
+ end
469
+ def to_sorbet_type(type)
470
+ end
471
+ end
442
472
  end
443
473
  end
444
474
  end