orb-billing 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +100 -10
- data/lib/orb/models/beta_create_plan_version_params.rb +96 -10
- data/lib/orb/models/price.rb +1114 -28
- data/lib/orb/models/subscription_create_params.rb +96 -10
- data/lib/orb/models/subscription_price_intervals_params.rb +48 -5
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +100 -10
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +226 -12
- data/rbi/orb/models/beta_create_plan_version_params.rbi +226 -12
- data/rbi/orb/models/price.rbi +3220 -184
- data/rbi/orb/models/subscription_create_params.rbi +226 -12
- data/rbi/orb/models/subscription_price_intervals_params.rbi +113 -6
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +226 -12
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +84 -8
- data/sig/orb/models/beta_create_plan_version_params.rbs +84 -8
- data/sig/orb/models/price.rbs +1430 -86
- data/sig/orb/models/subscription_create_params.rbs +84 -8
- data/sig/orb/models/subscription_price_intervals_params.rbs +42 -4
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +84 -8
- metadata +2 -2
@@ -805,9 +805,29 @@ module Orb
|
|
805
805
|
sig { returns(String) }
|
806
806
|
attr_accessor :currency
|
807
807
|
|
808
|
+
# The custom expiration for the allocation.
|
809
|
+
sig do
|
810
|
+
returns(
|
811
|
+
T.nilable(
|
812
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration
|
813
|
+
)
|
814
|
+
)
|
815
|
+
end
|
816
|
+
attr_reader :custom_expiration
|
817
|
+
|
818
|
+
sig do
|
819
|
+
params(
|
820
|
+
custom_expiration:
|
821
|
+
T.nilable(
|
822
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::OrHash
|
823
|
+
)
|
824
|
+
).void
|
825
|
+
end
|
826
|
+
attr_writer :custom_expiration
|
827
|
+
|
808
828
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
809
|
-
# over to the next period.
|
810
|
-
sig { returns(T::Boolean) }
|
829
|
+
# over to the next period. Set to null if using custom_expiration.
|
830
|
+
sig { returns(T.nilable(T::Boolean)) }
|
811
831
|
attr_accessor :expires_at_end_of_cadence
|
812
832
|
|
813
833
|
# The allocation price to add to the plan.
|
@@ -817,7 +837,11 @@ module Orb
|
|
817
837
|
cadence:
|
818
838
|
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::Cadence::OrSymbol,
|
819
839
|
currency: String,
|
820
|
-
|
840
|
+
custom_expiration:
|
841
|
+
T.nilable(
|
842
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::OrHash
|
843
|
+
),
|
844
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
821
845
|
).returns(T.attached_class)
|
822
846
|
end
|
823
847
|
def self.new(
|
@@ -828,9 +852,11 @@ module Orb
|
|
828
852
|
# An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
829
853
|
# this price.
|
830
854
|
currency:,
|
855
|
+
# The custom expiration for the allocation.
|
856
|
+
custom_expiration: nil,
|
831
857
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
832
|
-
# over to the next period.
|
833
|
-
expires_at_end_of_cadence:
|
858
|
+
# over to the next period. Set to null if using custom_expiration.
|
859
|
+
expires_at_end_of_cadence: nil
|
834
860
|
)
|
835
861
|
end
|
836
862
|
|
@@ -841,7 +867,11 @@ module Orb
|
|
841
867
|
cadence:
|
842
868
|
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::Cadence::OrSymbol,
|
843
869
|
currency: String,
|
844
|
-
|
870
|
+
custom_expiration:
|
871
|
+
T.nilable(
|
872
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration
|
873
|
+
),
|
874
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
845
875
|
}
|
846
876
|
)
|
847
877
|
end
|
@@ -902,6 +932,83 @@ module Orb
|
|
902
932
|
def self.values
|
903
933
|
end
|
904
934
|
end
|
935
|
+
|
936
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
937
|
+
OrHash =
|
938
|
+
T.type_alias do
|
939
|
+
T.any(
|
940
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration,
|
941
|
+
Orb::Internal::AnyHash
|
942
|
+
)
|
943
|
+
end
|
944
|
+
|
945
|
+
sig { returns(Integer) }
|
946
|
+
attr_accessor :duration
|
947
|
+
|
948
|
+
sig do
|
949
|
+
returns(
|
950
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
951
|
+
)
|
952
|
+
end
|
953
|
+
attr_accessor :duration_unit
|
954
|
+
|
955
|
+
# The custom expiration for the allocation.
|
956
|
+
sig do
|
957
|
+
params(
|
958
|
+
duration: Integer,
|
959
|
+
duration_unit:
|
960
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
961
|
+
).returns(T.attached_class)
|
962
|
+
end
|
963
|
+
def self.new(duration:, duration_unit:)
|
964
|
+
end
|
965
|
+
|
966
|
+
sig do
|
967
|
+
override.returns(
|
968
|
+
{
|
969
|
+
duration: Integer,
|
970
|
+
duration_unit:
|
971
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
972
|
+
}
|
973
|
+
)
|
974
|
+
end
|
975
|
+
def to_hash
|
976
|
+
end
|
977
|
+
|
978
|
+
module DurationUnit
|
979
|
+
extend Orb::Internal::Type::Enum
|
980
|
+
|
981
|
+
TaggedSymbol =
|
982
|
+
T.type_alias do
|
983
|
+
T.all(
|
984
|
+
Symbol,
|
985
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit
|
986
|
+
)
|
987
|
+
end
|
988
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
989
|
+
|
990
|
+
DAY =
|
991
|
+
T.let(
|
992
|
+
:day,
|
993
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
994
|
+
)
|
995
|
+
MONTH =
|
996
|
+
T.let(
|
997
|
+
:month,
|
998
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
999
|
+
)
|
1000
|
+
|
1001
|
+
sig do
|
1002
|
+
override.returns(
|
1003
|
+
T::Array[
|
1004
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
1005
|
+
]
|
1006
|
+
)
|
1007
|
+
end
|
1008
|
+
def self.values
|
1009
|
+
end
|
1010
|
+
end
|
1011
|
+
end
|
905
1012
|
end
|
906
1013
|
|
907
1014
|
# The price to add to the plan
|
@@ -17073,9 +17180,29 @@ module Orb
|
|
17073
17180
|
sig { returns(String) }
|
17074
17181
|
attr_accessor :currency
|
17075
17182
|
|
17183
|
+
# The custom expiration for the allocation.
|
17184
|
+
sig do
|
17185
|
+
returns(
|
17186
|
+
T.nilable(
|
17187
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration
|
17188
|
+
)
|
17189
|
+
)
|
17190
|
+
end
|
17191
|
+
attr_reader :custom_expiration
|
17192
|
+
|
17193
|
+
sig do
|
17194
|
+
params(
|
17195
|
+
custom_expiration:
|
17196
|
+
T.nilable(
|
17197
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::OrHash
|
17198
|
+
)
|
17199
|
+
).void
|
17200
|
+
end
|
17201
|
+
attr_writer :custom_expiration
|
17202
|
+
|
17076
17203
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
17077
|
-
# over to the next period.
|
17078
|
-
sig { returns(T::Boolean) }
|
17204
|
+
# over to the next period. Set to null if using custom_expiration.
|
17205
|
+
sig { returns(T.nilable(T::Boolean)) }
|
17079
17206
|
attr_accessor :expires_at_end_of_cadence
|
17080
17207
|
|
17081
17208
|
# The allocation price to add to the plan.
|
@@ -17085,7 +17212,11 @@ module Orb
|
|
17085
17212
|
cadence:
|
17086
17213
|
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol,
|
17087
17214
|
currency: String,
|
17088
|
-
|
17215
|
+
custom_expiration:
|
17216
|
+
T.nilable(
|
17217
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::OrHash
|
17218
|
+
),
|
17219
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
17089
17220
|
).returns(T.attached_class)
|
17090
17221
|
end
|
17091
17222
|
def self.new(
|
@@ -17096,9 +17227,11 @@ module Orb
|
|
17096
17227
|
# An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
17097
17228
|
# this price.
|
17098
17229
|
currency:,
|
17230
|
+
# The custom expiration for the allocation.
|
17231
|
+
custom_expiration: nil,
|
17099
17232
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
17100
|
-
# over to the next period.
|
17101
|
-
expires_at_end_of_cadence:
|
17233
|
+
# over to the next period. Set to null if using custom_expiration.
|
17234
|
+
expires_at_end_of_cadence: nil
|
17102
17235
|
)
|
17103
17236
|
end
|
17104
17237
|
|
@@ -17109,7 +17242,11 @@ module Orb
|
|
17109
17242
|
cadence:
|
17110
17243
|
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol,
|
17111
17244
|
currency: String,
|
17112
|
-
|
17245
|
+
custom_expiration:
|
17246
|
+
T.nilable(
|
17247
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration
|
17248
|
+
),
|
17249
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
17113
17250
|
}
|
17114
17251
|
)
|
17115
17252
|
end
|
@@ -17170,6 +17307,83 @@ module Orb
|
|
17170
17307
|
def self.values
|
17171
17308
|
end
|
17172
17309
|
end
|
17310
|
+
|
17311
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
17312
|
+
OrHash =
|
17313
|
+
T.type_alias do
|
17314
|
+
T.any(
|
17315
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration,
|
17316
|
+
Orb::Internal::AnyHash
|
17317
|
+
)
|
17318
|
+
end
|
17319
|
+
|
17320
|
+
sig { returns(Integer) }
|
17321
|
+
attr_accessor :duration
|
17322
|
+
|
17323
|
+
sig do
|
17324
|
+
returns(
|
17325
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
17326
|
+
)
|
17327
|
+
end
|
17328
|
+
attr_accessor :duration_unit
|
17329
|
+
|
17330
|
+
# The custom expiration for the allocation.
|
17331
|
+
sig do
|
17332
|
+
params(
|
17333
|
+
duration: Integer,
|
17334
|
+
duration_unit:
|
17335
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
17336
|
+
).returns(T.attached_class)
|
17337
|
+
end
|
17338
|
+
def self.new(duration:, duration_unit:)
|
17339
|
+
end
|
17340
|
+
|
17341
|
+
sig do
|
17342
|
+
override.returns(
|
17343
|
+
{
|
17344
|
+
duration: Integer,
|
17345
|
+
duration_unit:
|
17346
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
17347
|
+
}
|
17348
|
+
)
|
17349
|
+
end
|
17350
|
+
def to_hash
|
17351
|
+
end
|
17352
|
+
|
17353
|
+
module DurationUnit
|
17354
|
+
extend Orb::Internal::Type::Enum
|
17355
|
+
|
17356
|
+
TaggedSymbol =
|
17357
|
+
T.type_alias do
|
17358
|
+
T.all(
|
17359
|
+
Symbol,
|
17360
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit
|
17361
|
+
)
|
17362
|
+
end
|
17363
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
17364
|
+
|
17365
|
+
DAY =
|
17366
|
+
T.let(
|
17367
|
+
:day,
|
17368
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
17369
|
+
)
|
17370
|
+
MONTH =
|
17371
|
+
T.let(
|
17372
|
+
:month,
|
17373
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
17374
|
+
)
|
17375
|
+
|
17376
|
+
sig do
|
17377
|
+
override.returns(
|
17378
|
+
T::Array[
|
17379
|
+
Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
17380
|
+
]
|
17381
|
+
)
|
17382
|
+
end
|
17383
|
+
def self.values
|
17384
|
+
end
|
17385
|
+
end
|
17386
|
+
end
|
17173
17387
|
end
|
17174
17388
|
|
17175
17389
|
# The price to add to the plan
|
@@ -757,9 +757,29 @@ module Orb
|
|
757
757
|
sig { returns(String) }
|
758
758
|
attr_accessor :currency
|
759
759
|
|
760
|
+
# The custom expiration for the allocation.
|
761
|
+
sig do
|
762
|
+
returns(
|
763
|
+
T.nilable(
|
764
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration
|
765
|
+
)
|
766
|
+
)
|
767
|
+
end
|
768
|
+
attr_reader :custom_expiration
|
769
|
+
|
770
|
+
sig do
|
771
|
+
params(
|
772
|
+
custom_expiration:
|
773
|
+
T.nilable(
|
774
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::OrHash
|
775
|
+
)
|
776
|
+
).void
|
777
|
+
end
|
778
|
+
attr_writer :custom_expiration
|
779
|
+
|
760
780
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
761
|
-
# over to the next period.
|
762
|
-
sig { returns(T::Boolean) }
|
781
|
+
# over to the next period. Set to null if using custom_expiration.
|
782
|
+
sig { returns(T.nilable(T::Boolean)) }
|
763
783
|
attr_accessor :expires_at_end_of_cadence
|
764
784
|
|
765
785
|
# The allocation price to add to the plan.
|
@@ -769,7 +789,11 @@ module Orb
|
|
769
789
|
cadence:
|
770
790
|
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::Cadence::OrSymbol,
|
771
791
|
currency: String,
|
772
|
-
|
792
|
+
custom_expiration:
|
793
|
+
T.nilable(
|
794
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::OrHash
|
795
|
+
),
|
796
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
773
797
|
).returns(T.attached_class)
|
774
798
|
end
|
775
799
|
def self.new(
|
@@ -780,9 +804,11 @@ module Orb
|
|
780
804
|
# An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
781
805
|
# this price.
|
782
806
|
currency:,
|
807
|
+
# The custom expiration for the allocation.
|
808
|
+
custom_expiration: nil,
|
783
809
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
784
|
-
# over to the next period.
|
785
|
-
expires_at_end_of_cadence:
|
810
|
+
# over to the next period. Set to null if using custom_expiration.
|
811
|
+
expires_at_end_of_cadence: nil
|
786
812
|
)
|
787
813
|
end
|
788
814
|
|
@@ -793,7 +819,11 @@ module Orb
|
|
793
819
|
cadence:
|
794
820
|
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::Cadence::OrSymbol,
|
795
821
|
currency: String,
|
796
|
-
|
822
|
+
custom_expiration:
|
823
|
+
T.nilable(
|
824
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration
|
825
|
+
),
|
826
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
797
827
|
}
|
798
828
|
)
|
799
829
|
end
|
@@ -854,6 +884,83 @@ module Orb
|
|
854
884
|
def self.values
|
855
885
|
end
|
856
886
|
end
|
887
|
+
|
888
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
889
|
+
OrHash =
|
890
|
+
T.type_alias do
|
891
|
+
T.any(
|
892
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration,
|
893
|
+
Orb::Internal::AnyHash
|
894
|
+
)
|
895
|
+
end
|
896
|
+
|
897
|
+
sig { returns(Integer) }
|
898
|
+
attr_accessor :duration
|
899
|
+
|
900
|
+
sig do
|
901
|
+
returns(
|
902
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
903
|
+
)
|
904
|
+
end
|
905
|
+
attr_accessor :duration_unit
|
906
|
+
|
907
|
+
# The custom expiration for the allocation.
|
908
|
+
sig do
|
909
|
+
params(
|
910
|
+
duration: Integer,
|
911
|
+
duration_unit:
|
912
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
913
|
+
).returns(T.attached_class)
|
914
|
+
end
|
915
|
+
def self.new(duration:, duration_unit:)
|
916
|
+
end
|
917
|
+
|
918
|
+
sig do
|
919
|
+
override.returns(
|
920
|
+
{
|
921
|
+
duration: Integer,
|
922
|
+
duration_unit:
|
923
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
924
|
+
}
|
925
|
+
)
|
926
|
+
end
|
927
|
+
def to_hash
|
928
|
+
end
|
929
|
+
|
930
|
+
module DurationUnit
|
931
|
+
extend Orb::Internal::Type::Enum
|
932
|
+
|
933
|
+
TaggedSymbol =
|
934
|
+
T.type_alias do
|
935
|
+
T.all(
|
936
|
+
Symbol,
|
937
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit
|
938
|
+
)
|
939
|
+
end
|
940
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
941
|
+
|
942
|
+
DAY =
|
943
|
+
T.let(
|
944
|
+
:day,
|
945
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
946
|
+
)
|
947
|
+
MONTH =
|
948
|
+
T.let(
|
949
|
+
:month,
|
950
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
951
|
+
)
|
952
|
+
|
953
|
+
sig do
|
954
|
+
override.returns(
|
955
|
+
T::Array[
|
956
|
+
Orb::BetaCreatePlanVersionParams::AddPrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
957
|
+
]
|
958
|
+
)
|
959
|
+
end
|
960
|
+
def self.values
|
961
|
+
end
|
962
|
+
end
|
963
|
+
end
|
857
964
|
end
|
858
965
|
|
859
966
|
# The price to add to the plan
|
@@ -17021,9 +17128,29 @@ module Orb
|
|
17021
17128
|
sig { returns(String) }
|
17022
17129
|
attr_accessor :currency
|
17023
17130
|
|
17131
|
+
# The custom expiration for the allocation.
|
17132
|
+
sig do
|
17133
|
+
returns(
|
17134
|
+
T.nilable(
|
17135
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration
|
17136
|
+
)
|
17137
|
+
)
|
17138
|
+
end
|
17139
|
+
attr_reader :custom_expiration
|
17140
|
+
|
17141
|
+
sig do
|
17142
|
+
params(
|
17143
|
+
custom_expiration:
|
17144
|
+
T.nilable(
|
17145
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::OrHash
|
17146
|
+
)
|
17147
|
+
).void
|
17148
|
+
end
|
17149
|
+
attr_writer :custom_expiration
|
17150
|
+
|
17024
17151
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
17025
|
-
# over to the next period.
|
17026
|
-
sig { returns(T::Boolean) }
|
17152
|
+
# over to the next period. Set to null if using custom_expiration.
|
17153
|
+
sig { returns(T.nilable(T::Boolean)) }
|
17027
17154
|
attr_accessor :expires_at_end_of_cadence
|
17028
17155
|
|
17029
17156
|
# The allocation price to add to the plan.
|
@@ -17033,7 +17160,11 @@ module Orb
|
|
17033
17160
|
cadence:
|
17034
17161
|
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol,
|
17035
17162
|
currency: String,
|
17036
|
-
|
17163
|
+
custom_expiration:
|
17164
|
+
T.nilable(
|
17165
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::OrHash
|
17166
|
+
),
|
17167
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
17037
17168
|
).returns(T.attached_class)
|
17038
17169
|
end
|
17039
17170
|
def self.new(
|
@@ -17044,9 +17175,11 @@ module Orb
|
|
17044
17175
|
# An ISO 4217 currency string or a custom pricing unit identifier in which to bill
|
17045
17176
|
# this price.
|
17046
17177
|
currency:,
|
17178
|
+
# The custom expiration for the allocation.
|
17179
|
+
custom_expiration: nil,
|
17047
17180
|
# Whether the allocated amount should expire at the end of the cadence or roll
|
17048
|
-
# over to the next period.
|
17049
|
-
expires_at_end_of_cadence:
|
17181
|
+
# over to the next period. Set to null if using custom_expiration.
|
17182
|
+
expires_at_end_of_cadence: nil
|
17050
17183
|
)
|
17051
17184
|
end
|
17052
17185
|
|
@@ -17057,7 +17190,11 @@ module Orb
|
|
17057
17190
|
cadence:
|
17058
17191
|
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol,
|
17059
17192
|
currency: String,
|
17060
|
-
|
17193
|
+
custom_expiration:
|
17194
|
+
T.nilable(
|
17195
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration
|
17196
|
+
),
|
17197
|
+
expires_at_end_of_cadence: T.nilable(T::Boolean)
|
17061
17198
|
}
|
17062
17199
|
)
|
17063
17200
|
end
|
@@ -17118,6 +17255,83 @@ module Orb
|
|
17118
17255
|
def self.values
|
17119
17256
|
end
|
17120
17257
|
end
|
17258
|
+
|
17259
|
+
class CustomExpiration < Orb::Internal::Type::BaseModel
|
17260
|
+
OrHash =
|
17261
|
+
T.type_alias do
|
17262
|
+
T.any(
|
17263
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration,
|
17264
|
+
Orb::Internal::AnyHash
|
17265
|
+
)
|
17266
|
+
end
|
17267
|
+
|
17268
|
+
sig { returns(Integer) }
|
17269
|
+
attr_accessor :duration
|
17270
|
+
|
17271
|
+
sig do
|
17272
|
+
returns(
|
17273
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
17274
|
+
)
|
17275
|
+
end
|
17276
|
+
attr_accessor :duration_unit
|
17277
|
+
|
17278
|
+
# The custom expiration for the allocation.
|
17279
|
+
sig do
|
17280
|
+
params(
|
17281
|
+
duration: Integer,
|
17282
|
+
duration_unit:
|
17283
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
17284
|
+
).returns(T.attached_class)
|
17285
|
+
end
|
17286
|
+
def self.new(duration:, duration_unit:)
|
17287
|
+
end
|
17288
|
+
|
17289
|
+
sig do
|
17290
|
+
override.returns(
|
17291
|
+
{
|
17292
|
+
duration: Integer,
|
17293
|
+
duration_unit:
|
17294
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::OrSymbol
|
17295
|
+
}
|
17296
|
+
)
|
17297
|
+
end
|
17298
|
+
def to_hash
|
17299
|
+
end
|
17300
|
+
|
17301
|
+
module DurationUnit
|
17302
|
+
extend Orb::Internal::Type::Enum
|
17303
|
+
|
17304
|
+
TaggedSymbol =
|
17305
|
+
T.type_alias do
|
17306
|
+
T.all(
|
17307
|
+
Symbol,
|
17308
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit
|
17309
|
+
)
|
17310
|
+
end
|
17311
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
17312
|
+
|
17313
|
+
DAY =
|
17314
|
+
T.let(
|
17315
|
+
:day,
|
17316
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
17317
|
+
)
|
17318
|
+
MONTH =
|
17319
|
+
T.let(
|
17320
|
+
:month,
|
17321
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
17322
|
+
)
|
17323
|
+
|
17324
|
+
sig do
|
17325
|
+
override.returns(
|
17326
|
+
T::Array[
|
17327
|
+
Orb::BetaCreatePlanVersionParams::ReplacePrice::AllocationPrice::CustomExpiration::DurationUnit::TaggedSymbol
|
17328
|
+
]
|
17329
|
+
)
|
17330
|
+
end
|
17331
|
+
def self.values
|
17332
|
+
end
|
17333
|
+
end
|
17334
|
+
end
|
17121
17335
|
end
|
17122
17336
|
|
17123
17337
|
# The price to add to the plan
|