@wix/pricing-plans 1.0.72 → 1.0.74

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.
@@ -44,7 +44,7 @@ interface Order$1 {
44
44
  * @readonly
45
45
  * @deprecated __Deprecated.__ Use `pricing` instead. This property will be removed on September 30, 2022.
46
46
  * @replacedBy pricing
47
- * @removalDate 2022-10-01
47
+ * @targetRemovalDate 2022-10-01
48
48
  */
49
49
  priceDetails?: PriceDetails$1;
50
50
  /**
@@ -361,7 +361,7 @@ declare enum OrderType$1 {
361
361
  /** Payments managed externally */
362
362
  EXTERNAL = "EXTERNAL"
363
363
  }
364
- declare enum OrderMethod {
364
+ declare enum OrderMethod$1 {
365
365
  UNKNOWN = "UNKNOWN",
366
366
  /** Mail Order / Telephone Order transaction */
367
367
  MOTO = "MOTO",
@@ -647,7 +647,7 @@ interface GetPricePreviewResponse$1 {
647
647
  * __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
648
648
  * @deprecated __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
649
649
  * @replacedBy prices
650
- * @removalDate 2022-10-01
650
+ * @targetRemovalDate 2022-10-01
651
651
  */
652
652
  price?: PriceDetails$1;
653
653
  /** Pricing details. */
@@ -736,631 +736,119 @@ interface ResumeOrderRequest$1 {
736
736
  }
737
737
  interface ResumeOrderResponse$1 {
738
738
  }
739
+ interface BuyerNonNullableFields$1 {
740
+ memberId: string;
741
+ contactId: string;
742
+ }
743
+ interface DurationNonNullableFields$3 {
744
+ unit: PeriodUnit$3;
745
+ }
746
+ interface RecurrenceNonNullableFields$3 {
747
+ cycleDuration?: DurationNonNullableFields$3;
748
+ }
749
+ interface TaxNonNullableFields$1 {
750
+ name: string;
751
+ includedInPrice: boolean;
752
+ rate: string;
753
+ amount: string;
754
+ }
755
+ interface CouponNonNullableFields$1 {
756
+ code: string;
757
+ amount: string;
758
+ id: string;
759
+ }
760
+ interface PriceDetailsNonNullableFields$1 {
761
+ subscription?: RecurrenceNonNullableFields$3;
762
+ singlePaymentForDuration?: DurationNonNullableFields$3;
763
+ subtotal: string;
764
+ discount: string;
765
+ tax?: TaxNonNullableFields$1;
766
+ total: string;
767
+ planPrice: string;
768
+ currency: string;
769
+ coupon?: CouponNonNullableFields$1;
770
+ }
771
+ interface PriceDurationNonNullableFields$1 {
772
+ cycleFrom: number;
773
+ }
774
+ interface FeeNonNullableFields$3 {
775
+ name: string;
776
+ amount: string;
777
+ }
778
+ interface PriceNonNullableFields$1 {
779
+ subtotal: string;
780
+ coupon?: CouponNonNullableFields$1;
781
+ discount: string;
782
+ tax?: TaxNonNullableFields$1;
783
+ total: string;
784
+ currency: string;
785
+ fees: FeeNonNullableFields$3[];
786
+ proration: string;
787
+ }
788
+ interface SpannedPriceNonNullableFields$1 {
789
+ duration?: PriceDurationNonNullableFields$1;
790
+ price?: PriceNonNullableFields$1;
791
+ }
792
+ interface PricingDetailsNonNullableFields$1 {
793
+ subscription?: RecurrenceNonNullableFields$3;
794
+ singlePaymentForDuration?: DurationNonNullableFields$3;
795
+ prices: SpannedPriceNonNullableFields$1[];
796
+ }
797
+ interface CancellationNonNullableFields$1 {
798
+ cause: CancellationCause$1;
799
+ effectiveAt: CancellationEffectiveAt$1;
800
+ }
801
+ interface PausePeriodNonNullableFields$1 {
802
+ status: Status$1;
803
+ }
804
+ interface CurrentCycleNonNullableFields$1 {
805
+ index: number;
806
+ }
807
+ interface OrderCycleNonNullableFields$1 {
808
+ index: number;
809
+ }
810
+ interface OrderNonNullableFields$1 {
811
+ id: string;
812
+ planId: string;
813
+ subscriptionId: string;
814
+ buyer?: BuyerNonNullableFields$1;
815
+ priceDetails?: PriceDetailsNonNullableFields$1;
816
+ pricing?: PricingDetailsNonNullableFields$1;
817
+ type: OrderType$1;
818
+ orderMethod: OrderMethod$1;
819
+ status: OrderStatus$1;
820
+ cancellation?: CancellationNonNullableFields$1;
821
+ lastPaymentStatus: PaymentStatus$1;
822
+ pausePeriods: PausePeriodNonNullableFields$1[];
823
+ currentCycle?: CurrentCycleNonNullableFields$1;
824
+ cycles: OrderCycleNonNullableFields$1[];
825
+ planName: string;
826
+ planDescription: string;
827
+ planPrice: string;
828
+ statusNew: OrderStatus$1;
829
+ }
739
830
  interface MemberGetOrderResponseNonNullableFields$1 {
740
- order?: {
741
- id: string;
742
- planId: string;
743
- subscriptionId: string;
744
- buyer?: {
745
- memberId: string;
746
- contactId: string;
747
- };
748
- priceDetails?: {
749
- subscription?: {
750
- cycleDuration?: {
751
- unit: PeriodUnit$3;
752
- };
753
- };
754
- singlePaymentForDuration?: {
755
- unit: PeriodUnit$3;
756
- };
757
- subtotal: string;
758
- discount: string;
759
- tax?: {
760
- name: string;
761
- includedInPrice: boolean;
762
- rate: string;
763
- amount: string;
764
- };
765
- total: string;
766
- planPrice: string;
767
- currency: string;
768
- coupon?: {
769
- code: string;
770
- amount: string;
771
- id: string;
772
- };
773
- };
774
- pricing?: {
775
- subscription?: {
776
- cycleDuration?: {
777
- unit: PeriodUnit$3;
778
- };
779
- };
780
- singlePaymentForDuration?: {
781
- unit: PeriodUnit$3;
782
- };
783
- prices: {
784
- duration?: {
785
- cycleFrom: number;
786
- };
787
- price?: {
788
- subtotal: string;
789
- coupon?: {
790
- code: string;
791
- amount: string;
792
- id: string;
793
- };
794
- discount: string;
795
- tax?: {
796
- name: string;
797
- includedInPrice: boolean;
798
- rate: string;
799
- amount: string;
800
- };
801
- total: string;
802
- currency: string;
803
- fees: {
804
- name: string;
805
- amount: string;
806
- }[];
807
- proration: string;
808
- };
809
- }[];
810
- };
811
- type: OrderType$1;
812
- orderMethod: OrderMethod;
813
- status: OrderStatus$1;
814
- cancellation?: {
815
- cause: CancellationCause$1;
816
- effectiveAt: CancellationEffectiveAt$1;
817
- };
818
- lastPaymentStatus: PaymentStatus$1;
819
- pausePeriods: {
820
- status: Status$1;
821
- }[];
822
- currentCycle?: {
823
- index: number;
824
- };
825
- cycles: {
826
- index: number;
827
- }[];
828
- planName: string;
829
- planDescription: string;
830
- planPrice: string;
831
- statusNew: OrderStatus$1;
832
- };
831
+ order?: OrderNonNullableFields$1;
833
832
  }
834
833
  interface MemberListOrdersResponseNonNullableFields$1 {
835
- orders: {
836
- id: string;
837
- planId: string;
838
- subscriptionId: string;
839
- buyer?: {
840
- memberId: string;
841
- contactId: string;
842
- };
843
- priceDetails?: {
844
- subscription?: {
845
- cycleDuration?: {
846
- unit: PeriodUnit$3;
847
- };
848
- };
849
- singlePaymentForDuration?: {
850
- unit: PeriodUnit$3;
851
- };
852
- subtotal: string;
853
- discount: string;
854
- tax?: {
855
- name: string;
856
- includedInPrice: boolean;
857
- rate: string;
858
- amount: string;
859
- };
860
- total: string;
861
- planPrice: string;
862
- currency: string;
863
- coupon?: {
864
- code: string;
865
- amount: string;
866
- id: string;
867
- };
868
- };
869
- pricing?: {
870
- subscription?: {
871
- cycleDuration?: {
872
- unit: PeriodUnit$3;
873
- };
874
- };
875
- singlePaymentForDuration?: {
876
- unit: PeriodUnit$3;
877
- };
878
- prices: {
879
- duration?: {
880
- cycleFrom: number;
881
- };
882
- price?: {
883
- subtotal: string;
884
- coupon?: {
885
- code: string;
886
- amount: string;
887
- id: string;
888
- };
889
- discount: string;
890
- tax?: {
891
- name: string;
892
- includedInPrice: boolean;
893
- rate: string;
894
- amount: string;
895
- };
896
- total: string;
897
- currency: string;
898
- fees: {
899
- name: string;
900
- amount: string;
901
- }[];
902
- proration: string;
903
- };
904
- }[];
905
- };
906
- type: OrderType$1;
907
- orderMethod: OrderMethod;
908
- status: OrderStatus$1;
909
- cancellation?: {
910
- cause: CancellationCause$1;
911
- effectiveAt: CancellationEffectiveAt$1;
912
- };
913
- lastPaymentStatus: PaymentStatus$1;
914
- pausePeriods: {
915
- status: Status$1;
916
- }[];
917
- currentCycle?: {
918
- index: number;
919
- };
920
- cycles: {
921
- index: number;
922
- }[];
923
- planName: string;
924
- planDescription: string;
925
- planPrice: string;
926
- statusNew: OrderStatus$1;
927
- }[];
834
+ orders: OrderNonNullableFields$1[];
928
835
  }
929
836
  interface CreateOfflineOrderResponseNonNullableFields$1 {
930
- order?: {
931
- id: string;
932
- planId: string;
933
- subscriptionId: string;
934
- buyer?: {
935
- memberId: string;
936
- contactId: string;
937
- };
938
- priceDetails?: {
939
- subscription?: {
940
- cycleDuration?: {
941
- unit: PeriodUnit$3;
942
- };
943
- };
944
- singlePaymentForDuration?: {
945
- unit: PeriodUnit$3;
946
- };
947
- subtotal: string;
948
- discount: string;
949
- tax?: {
950
- name: string;
951
- includedInPrice: boolean;
952
- rate: string;
953
- amount: string;
954
- };
955
- total: string;
956
- planPrice: string;
957
- currency: string;
958
- coupon?: {
959
- code: string;
960
- amount: string;
961
- id: string;
962
- };
963
- };
964
- pricing?: {
965
- subscription?: {
966
- cycleDuration?: {
967
- unit: PeriodUnit$3;
968
- };
969
- };
970
- singlePaymentForDuration?: {
971
- unit: PeriodUnit$3;
972
- };
973
- prices: {
974
- duration?: {
975
- cycleFrom: number;
976
- };
977
- price?: {
978
- subtotal: string;
979
- coupon?: {
980
- code: string;
981
- amount: string;
982
- id: string;
983
- };
984
- discount: string;
985
- tax?: {
986
- name: string;
987
- includedInPrice: boolean;
988
- rate: string;
989
- amount: string;
990
- };
991
- total: string;
992
- currency: string;
993
- fees: {
994
- name: string;
995
- amount: string;
996
- }[];
997
- proration: string;
998
- };
999
- }[];
1000
- };
1001
- type: OrderType$1;
1002
- orderMethod: OrderMethod;
1003
- status: OrderStatus$1;
1004
- cancellation?: {
1005
- cause: CancellationCause$1;
1006
- effectiveAt: CancellationEffectiveAt$1;
1007
- };
1008
- lastPaymentStatus: PaymentStatus$1;
1009
- pausePeriods: {
1010
- status: Status$1;
1011
- }[];
1012
- currentCycle?: {
1013
- index: number;
1014
- };
1015
- cycles: {
1016
- index: number;
1017
- }[];
1018
- planName: string;
1019
- planDescription: string;
1020
- planPrice: string;
1021
- statusNew: OrderStatus$1;
1022
- };
837
+ order?: OrderNonNullableFields$1;
1023
838
  }
1024
839
  interface GetOfflineOrderPreviewResponseNonNullableFields$1 {
1025
- order?: {
1026
- id: string;
1027
- planId: string;
1028
- subscriptionId: string;
1029
- buyer?: {
1030
- memberId: string;
1031
- contactId: string;
1032
- };
1033
- priceDetails?: {
1034
- subscription?: {
1035
- cycleDuration?: {
1036
- unit: PeriodUnit$3;
1037
- };
1038
- };
1039
- singlePaymentForDuration?: {
1040
- unit: PeriodUnit$3;
1041
- };
1042
- subtotal: string;
1043
- discount: string;
1044
- tax?: {
1045
- name: string;
1046
- includedInPrice: boolean;
1047
- rate: string;
1048
- amount: string;
1049
- };
1050
- total: string;
1051
- planPrice: string;
1052
- currency: string;
1053
- coupon?: {
1054
- code: string;
1055
- amount: string;
1056
- id: string;
1057
- };
1058
- };
1059
- pricing?: {
1060
- subscription?: {
1061
- cycleDuration?: {
1062
- unit: PeriodUnit$3;
1063
- };
1064
- };
1065
- singlePaymentForDuration?: {
1066
- unit: PeriodUnit$3;
1067
- };
1068
- prices: {
1069
- duration?: {
1070
- cycleFrom: number;
1071
- };
1072
- price?: {
1073
- subtotal: string;
1074
- coupon?: {
1075
- code: string;
1076
- amount: string;
1077
- id: string;
1078
- };
1079
- discount: string;
1080
- tax?: {
1081
- name: string;
1082
- includedInPrice: boolean;
1083
- rate: string;
1084
- amount: string;
1085
- };
1086
- total: string;
1087
- currency: string;
1088
- fees: {
1089
- name: string;
1090
- amount: string;
1091
- }[];
1092
- proration: string;
1093
- };
1094
- }[];
1095
- };
1096
- type: OrderType$1;
1097
- orderMethod: OrderMethod;
1098
- status: OrderStatus$1;
1099
- cancellation?: {
1100
- cause: CancellationCause$1;
1101
- effectiveAt: CancellationEffectiveAt$1;
1102
- };
1103
- lastPaymentStatus: PaymentStatus$1;
1104
- pausePeriods: {
1105
- status: Status$1;
1106
- }[];
1107
- currentCycle?: {
1108
- index: number;
1109
- };
1110
- cycles: {
1111
- index: number;
1112
- }[];
1113
- planName: string;
1114
- planDescription: string;
1115
- planPrice: string;
1116
- statusNew: OrderStatus$1;
1117
- };
840
+ order?: OrderNonNullableFields$1;
1118
841
  purchaseLimitExceeded: boolean;
1119
842
  }
1120
843
  interface GetPricePreviewResponseNonNullableFields$1 {
1121
- price?: {
1122
- subscription?: {
1123
- cycleDuration?: {
1124
- unit: PeriodUnit$3;
1125
- };
1126
- };
1127
- singlePaymentForDuration?: {
1128
- unit: PeriodUnit$3;
1129
- };
1130
- subtotal: string;
1131
- discount: string;
1132
- tax?: {
1133
- name: string;
1134
- includedInPrice: boolean;
1135
- rate: string;
1136
- amount: string;
1137
- };
1138
- total: string;
1139
- planPrice: string;
1140
- currency: string;
1141
- coupon?: {
1142
- code: string;
1143
- amount: string;
1144
- id: string;
1145
- };
1146
- };
1147
- prices: {
1148
- duration?: {
1149
- cycleFrom: number;
1150
- };
1151
- price?: {
1152
- subtotal: string;
1153
- coupon?: {
1154
- code: string;
1155
- amount: string;
1156
- id: string;
1157
- };
1158
- discount: string;
1159
- tax?: {
1160
- name: string;
1161
- includedInPrice: boolean;
1162
- rate: string;
1163
- amount: string;
1164
- };
1165
- total: string;
1166
- currency: string;
1167
- fees: {
1168
- name: string;
1169
- amount: string;
1170
- }[];
1171
- proration: string;
1172
- };
1173
- }[];
844
+ price?: PriceDetailsNonNullableFields$1;
845
+ prices: SpannedPriceNonNullableFields$1[];
1174
846
  }
1175
847
  interface GetOrderResponseNonNullableFields$1 {
1176
- order?: {
1177
- id: string;
1178
- planId: string;
1179
- subscriptionId: string;
1180
- buyer?: {
1181
- memberId: string;
1182
- contactId: string;
1183
- };
1184
- priceDetails?: {
1185
- subscription?: {
1186
- cycleDuration?: {
1187
- unit: PeriodUnit$3;
1188
- };
1189
- };
1190
- singlePaymentForDuration?: {
1191
- unit: PeriodUnit$3;
1192
- };
1193
- subtotal: string;
1194
- discount: string;
1195
- tax?: {
1196
- name: string;
1197
- includedInPrice: boolean;
1198
- rate: string;
1199
- amount: string;
1200
- };
1201
- total: string;
1202
- planPrice: string;
1203
- currency: string;
1204
- coupon?: {
1205
- code: string;
1206
- amount: string;
1207
- id: string;
1208
- };
1209
- };
1210
- pricing?: {
1211
- subscription?: {
1212
- cycleDuration?: {
1213
- unit: PeriodUnit$3;
1214
- };
1215
- };
1216
- singlePaymentForDuration?: {
1217
- unit: PeriodUnit$3;
1218
- };
1219
- prices: {
1220
- duration?: {
1221
- cycleFrom: number;
1222
- };
1223
- price?: {
1224
- subtotal: string;
1225
- coupon?: {
1226
- code: string;
1227
- amount: string;
1228
- id: string;
1229
- };
1230
- discount: string;
1231
- tax?: {
1232
- name: string;
1233
- includedInPrice: boolean;
1234
- rate: string;
1235
- amount: string;
1236
- };
1237
- total: string;
1238
- currency: string;
1239
- fees: {
1240
- name: string;
1241
- amount: string;
1242
- }[];
1243
- proration: string;
1244
- };
1245
- }[];
1246
- };
1247
- type: OrderType$1;
1248
- orderMethod: OrderMethod;
1249
- status: OrderStatus$1;
1250
- cancellation?: {
1251
- cause: CancellationCause$1;
1252
- effectiveAt: CancellationEffectiveAt$1;
1253
- };
1254
- lastPaymentStatus: PaymentStatus$1;
1255
- pausePeriods: {
1256
- status: Status$1;
1257
- }[];
1258
- currentCycle?: {
1259
- index: number;
1260
- };
1261
- cycles: {
1262
- index: number;
1263
- }[];
1264
- planName: string;
1265
- planDescription: string;
1266
- planPrice: string;
1267
- statusNew: OrderStatus$1;
1268
- };
848
+ order?: OrderNonNullableFields$1;
1269
849
  }
1270
850
  interface ListOrdersResponseNonNullableFields$1 {
1271
- orders: {
1272
- id: string;
1273
- planId: string;
1274
- subscriptionId: string;
1275
- buyer?: {
1276
- memberId: string;
1277
- contactId: string;
1278
- };
1279
- priceDetails?: {
1280
- subscription?: {
1281
- cycleDuration?: {
1282
- unit: PeriodUnit$3;
1283
- };
1284
- };
1285
- singlePaymentForDuration?: {
1286
- unit: PeriodUnit$3;
1287
- };
1288
- subtotal: string;
1289
- discount: string;
1290
- tax?: {
1291
- name: string;
1292
- includedInPrice: boolean;
1293
- rate: string;
1294
- amount: string;
1295
- };
1296
- total: string;
1297
- planPrice: string;
1298
- currency: string;
1299
- coupon?: {
1300
- code: string;
1301
- amount: string;
1302
- id: string;
1303
- };
1304
- };
1305
- pricing?: {
1306
- subscription?: {
1307
- cycleDuration?: {
1308
- unit: PeriodUnit$3;
1309
- };
1310
- };
1311
- singlePaymentForDuration?: {
1312
- unit: PeriodUnit$3;
1313
- };
1314
- prices: {
1315
- duration?: {
1316
- cycleFrom: number;
1317
- };
1318
- price?: {
1319
- subtotal: string;
1320
- coupon?: {
1321
- code: string;
1322
- amount: string;
1323
- id: string;
1324
- };
1325
- discount: string;
1326
- tax?: {
1327
- name: string;
1328
- includedInPrice: boolean;
1329
- rate: string;
1330
- amount: string;
1331
- };
1332
- total: string;
1333
- currency: string;
1334
- fees: {
1335
- name: string;
1336
- amount: string;
1337
- }[];
1338
- proration: string;
1339
- };
1340
- }[];
1341
- };
1342
- type: OrderType$1;
1343
- orderMethod: OrderMethod;
1344
- status: OrderStatus$1;
1345
- cancellation?: {
1346
- cause: CancellationCause$1;
1347
- effectiveAt: CancellationEffectiveAt$1;
1348
- };
1349
- lastPaymentStatus: PaymentStatus$1;
1350
- pausePeriods: {
1351
- status: Status$1;
1352
- }[];
1353
- currentCycle?: {
1354
- index: number;
1355
- };
1356
- cycles: {
1357
- index: number;
1358
- }[];
1359
- planName: string;
1360
- planDescription: string;
1361
- planPrice: string;
1362
- statusNew: OrderStatus$1;
1363
- }[];
851
+ orders: OrderNonNullableFields$1[];
1364
852
  }
1365
853
 
1366
854
  /**
@@ -1409,7 +897,7 @@ interface Order {
1409
897
  * @readonly
1410
898
  * @deprecated __Deprecated.__ Use `pricing` instead. This property will be removed on September 30, 2022.
1411
899
  * @replacedBy pricing
1412
- * @removalDate 2022-10-01
900
+ * @targetRemovalDate 2022-10-01
1413
901
  */
1414
902
  priceDetails?: PriceDetails;
1415
903
  /**
@@ -1721,6 +1209,13 @@ declare enum OrderType {
1721
1209
  /** Payments managed externally */
1722
1210
  EXTERNAL = "EXTERNAL"
1723
1211
  }
1212
+ declare enum OrderMethod {
1213
+ UNKNOWN = "UNKNOWN",
1214
+ /** Mail Order / Telephone Order transaction */
1215
+ MOTO = "MOTO",
1216
+ /** Point of Sale transaction */
1217
+ POS = "POS"
1218
+ }
1724
1219
  declare enum OrderStatus {
1725
1220
  /** Order status undefined */
1726
1221
  UNDEFINED = "UNDEFINED",
@@ -2007,7 +1502,7 @@ interface GetPricePreviewResponse {
2007
1502
  * @internal
2008
1503
  * @deprecated __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
2009
1504
  * @replacedBy prices
2010
- * @removalDate 2022-10-01
1505
+ * @targetRemovalDate 2022-10-01
2011
1506
  */
2012
1507
  price?: PriceDetails;
2013
1508
  /** Pricing details. */
@@ -2102,573 +1597,119 @@ interface ResumeOrderRequest {
2102
1597
  }
2103
1598
  interface ResumeOrderResponse {
2104
1599
  }
1600
+ interface BuyerNonNullableFields {
1601
+ memberId: string;
1602
+ contactId: string;
1603
+ }
1604
+ interface DurationNonNullableFields$2 {
1605
+ unit: PeriodUnit$2;
1606
+ }
1607
+ interface RecurrenceNonNullableFields$2 {
1608
+ cycleDuration?: DurationNonNullableFields$2;
1609
+ }
1610
+ interface TaxNonNullableFields {
1611
+ name: string;
1612
+ includedInPrice: boolean;
1613
+ rate: string;
1614
+ amount: string;
1615
+ }
1616
+ interface CouponNonNullableFields {
1617
+ code: string;
1618
+ amount: string;
1619
+ _id: string;
1620
+ }
1621
+ interface PriceDetailsNonNullableFields {
1622
+ subscription?: RecurrenceNonNullableFields$2;
1623
+ singlePaymentForDuration?: DurationNonNullableFields$2;
1624
+ subtotal: string;
1625
+ discount: string;
1626
+ tax?: TaxNonNullableFields;
1627
+ total: string;
1628
+ planPrice: string;
1629
+ currency: string;
1630
+ coupon?: CouponNonNullableFields;
1631
+ }
1632
+ interface PriceDurationNonNullableFields {
1633
+ cycleFrom: number;
1634
+ }
1635
+ interface FeeNonNullableFields$2 {
1636
+ name: string;
1637
+ amount: string;
1638
+ }
1639
+ interface PriceNonNullableFields {
1640
+ subtotal: string;
1641
+ coupon?: CouponNonNullableFields;
1642
+ discount: string;
1643
+ tax?: TaxNonNullableFields;
1644
+ total: string;
1645
+ currency: string;
1646
+ fees: FeeNonNullableFields$2[];
1647
+ proration: string;
1648
+ }
1649
+ interface SpannedPriceNonNullableFields {
1650
+ duration?: PriceDurationNonNullableFields;
1651
+ price?: PriceNonNullableFields;
1652
+ }
1653
+ interface PricingDetailsNonNullableFields {
1654
+ subscription?: RecurrenceNonNullableFields$2;
1655
+ singlePaymentForDuration?: DurationNonNullableFields$2;
1656
+ prices: SpannedPriceNonNullableFields[];
1657
+ }
1658
+ interface CancellationNonNullableFields {
1659
+ cause: CancellationCause;
1660
+ effectiveAt: CancellationEffectiveAt;
1661
+ }
1662
+ interface PausePeriodNonNullableFields {
1663
+ status: Status;
1664
+ }
1665
+ interface CurrentCycleNonNullableFields {
1666
+ index: number;
1667
+ }
1668
+ interface OrderCycleNonNullableFields {
1669
+ index: number;
1670
+ }
1671
+ interface OrderNonNullableFields {
1672
+ _id: string;
1673
+ planId: string;
1674
+ subscriptionId: string;
1675
+ buyer?: BuyerNonNullableFields;
1676
+ priceDetails?: PriceDetailsNonNullableFields;
1677
+ pricing?: PricingDetailsNonNullableFields;
1678
+ type: OrderType;
1679
+ orderMethod: OrderMethod;
1680
+ status: OrderStatus;
1681
+ cancellation?: CancellationNonNullableFields;
1682
+ lastPaymentStatus: PaymentStatus;
1683
+ pausePeriods: PausePeriodNonNullableFields[];
1684
+ currentCycle?: CurrentCycleNonNullableFields;
1685
+ cycles: OrderCycleNonNullableFields[];
1686
+ planName: string;
1687
+ planDescription: string;
1688
+ planPrice: string;
1689
+ statusNew: OrderStatus;
1690
+ }
2105
1691
  interface MemberGetOrderResponseNonNullableFields {
2106
- order?: {
2107
- _id: string;
2108
- planId: string;
2109
- subscriptionId: string;
2110
- buyer?: {
2111
- memberId: string;
2112
- contactId: string;
2113
- };
2114
- priceDetails?: {
2115
- subscription?: {
2116
- cycleDuration?: {
2117
- unit: PeriodUnit$2;
2118
- };
2119
- };
2120
- singlePaymentForDuration?: {
2121
- unit: PeriodUnit$2;
2122
- };
2123
- subtotal: string;
2124
- discount: string;
2125
- tax?: {
2126
- name: string;
2127
- includedInPrice: boolean;
2128
- rate: string;
2129
- amount: string;
2130
- };
2131
- total: string;
2132
- planPrice: string;
2133
- currency: string;
2134
- coupon?: {
2135
- code: string;
2136
- amount: string;
2137
- _id: string;
2138
- };
2139
- };
2140
- pricing?: {
2141
- subscription?: {
2142
- cycleDuration?: {
2143
- unit: PeriodUnit$2;
2144
- };
2145
- };
2146
- singlePaymentForDuration?: {
2147
- unit: PeriodUnit$2;
2148
- };
2149
- prices: {
2150
- duration?: {
2151
- cycleFrom: number;
2152
- };
2153
- price?: {
2154
- subtotal: string;
2155
- coupon?: {
2156
- code: string;
2157
- amount: string;
2158
- _id: string;
2159
- };
2160
- discount: string;
2161
- tax?: {
2162
- name: string;
2163
- includedInPrice: boolean;
2164
- rate: string;
2165
- amount: string;
2166
- };
2167
- total: string;
2168
- currency: string;
2169
- proration: string;
2170
- };
2171
- }[];
2172
- };
2173
- type: OrderType;
2174
- status: OrderStatus;
2175
- cancellation?: {
2176
- cause: CancellationCause;
2177
- effectiveAt: CancellationEffectiveAt;
2178
- };
2179
- lastPaymentStatus: PaymentStatus;
2180
- pausePeriods: {
2181
- status: Status;
2182
- }[];
2183
- currentCycle?: {
2184
- index: number;
2185
- };
2186
- planName: string;
2187
- planDescription: string;
2188
- planPrice: string;
2189
- };
1692
+ order?: OrderNonNullableFields;
2190
1693
  }
2191
1694
  interface MemberListOrdersResponseNonNullableFields {
2192
- orders: {
2193
- _id: string;
2194
- planId: string;
2195
- subscriptionId: string;
2196
- buyer?: {
2197
- memberId: string;
2198
- contactId: string;
2199
- };
2200
- priceDetails?: {
2201
- subscription?: {
2202
- cycleDuration?: {
2203
- unit: PeriodUnit$2;
2204
- };
2205
- };
2206
- singlePaymentForDuration?: {
2207
- unit: PeriodUnit$2;
2208
- };
2209
- subtotal: string;
2210
- discount: string;
2211
- tax?: {
2212
- name: string;
2213
- includedInPrice: boolean;
2214
- rate: string;
2215
- amount: string;
2216
- };
2217
- total: string;
2218
- planPrice: string;
2219
- currency: string;
2220
- coupon?: {
2221
- code: string;
2222
- amount: string;
2223
- _id: string;
2224
- };
2225
- };
2226
- pricing?: {
2227
- subscription?: {
2228
- cycleDuration?: {
2229
- unit: PeriodUnit$2;
2230
- };
2231
- };
2232
- singlePaymentForDuration?: {
2233
- unit: PeriodUnit$2;
2234
- };
2235
- prices: {
2236
- duration?: {
2237
- cycleFrom: number;
2238
- };
2239
- price?: {
2240
- subtotal: string;
2241
- coupon?: {
2242
- code: string;
2243
- amount: string;
2244
- _id: string;
2245
- };
2246
- discount: string;
2247
- tax?: {
2248
- name: string;
2249
- includedInPrice: boolean;
2250
- rate: string;
2251
- amount: string;
2252
- };
2253
- total: string;
2254
- currency: string;
2255
- proration: string;
2256
- };
2257
- }[];
2258
- };
2259
- type: OrderType;
2260
- status: OrderStatus;
2261
- cancellation?: {
2262
- cause: CancellationCause;
2263
- effectiveAt: CancellationEffectiveAt;
2264
- };
2265
- lastPaymentStatus: PaymentStatus;
2266
- pausePeriods: {
2267
- status: Status;
2268
- }[];
2269
- currentCycle?: {
2270
- index: number;
2271
- };
2272
- planName: string;
2273
- planDescription: string;
2274
- planPrice: string;
2275
- }[];
1695
+ orders: OrderNonNullableFields[];
2276
1696
  }
2277
1697
  interface CreateOfflineOrderResponseNonNullableFields {
2278
- order?: {
2279
- _id: string;
2280
- planId: string;
2281
- subscriptionId: string;
2282
- buyer?: {
2283
- memberId: string;
2284
- contactId: string;
2285
- };
2286
- priceDetails?: {
2287
- subscription?: {
2288
- cycleDuration?: {
2289
- unit: PeriodUnit$2;
2290
- };
2291
- };
2292
- singlePaymentForDuration?: {
2293
- unit: PeriodUnit$2;
2294
- };
2295
- subtotal: string;
2296
- discount: string;
2297
- tax?: {
2298
- name: string;
2299
- includedInPrice: boolean;
2300
- rate: string;
2301
- amount: string;
2302
- };
2303
- total: string;
2304
- planPrice: string;
2305
- currency: string;
2306
- coupon?: {
2307
- code: string;
2308
- amount: string;
2309
- _id: string;
2310
- };
2311
- };
2312
- pricing?: {
2313
- subscription?: {
2314
- cycleDuration?: {
2315
- unit: PeriodUnit$2;
2316
- };
2317
- };
2318
- singlePaymentForDuration?: {
2319
- unit: PeriodUnit$2;
2320
- };
2321
- prices: {
2322
- duration?: {
2323
- cycleFrom: number;
2324
- };
2325
- price?: {
2326
- subtotal: string;
2327
- coupon?: {
2328
- code: string;
2329
- amount: string;
2330
- _id: string;
2331
- };
2332
- discount: string;
2333
- tax?: {
2334
- name: string;
2335
- includedInPrice: boolean;
2336
- rate: string;
2337
- amount: string;
2338
- };
2339
- total: string;
2340
- currency: string;
2341
- proration: string;
2342
- };
2343
- }[];
2344
- };
2345
- type: OrderType;
2346
- status: OrderStatus;
2347
- cancellation?: {
2348
- cause: CancellationCause;
2349
- effectiveAt: CancellationEffectiveAt;
2350
- };
2351
- lastPaymentStatus: PaymentStatus;
2352
- pausePeriods: {
2353
- status: Status;
2354
- }[];
2355
- currentCycle?: {
2356
- index: number;
2357
- };
2358
- planName: string;
2359
- planDescription: string;
2360
- planPrice: string;
2361
- };
1698
+ order?: OrderNonNullableFields;
2362
1699
  }
2363
1700
  interface GetOfflineOrderPreviewResponseNonNullableFields {
2364
- order?: {
2365
- _id: string;
2366
- planId: string;
2367
- subscriptionId: string;
2368
- buyer?: {
2369
- memberId: string;
2370
- contactId: string;
2371
- };
2372
- priceDetails?: {
2373
- subscription?: {
2374
- cycleDuration?: {
2375
- unit: PeriodUnit$2;
2376
- };
2377
- };
2378
- singlePaymentForDuration?: {
2379
- unit: PeriodUnit$2;
2380
- };
2381
- subtotal: string;
2382
- discount: string;
2383
- tax?: {
2384
- name: string;
2385
- includedInPrice: boolean;
2386
- rate: string;
2387
- amount: string;
2388
- };
2389
- total: string;
2390
- planPrice: string;
2391
- currency: string;
2392
- coupon?: {
2393
- code: string;
2394
- amount: string;
2395
- _id: string;
2396
- };
2397
- };
2398
- pricing?: {
2399
- subscription?: {
2400
- cycleDuration?: {
2401
- unit: PeriodUnit$2;
2402
- };
2403
- };
2404
- singlePaymentForDuration?: {
2405
- unit: PeriodUnit$2;
2406
- };
2407
- prices: {
2408
- duration?: {
2409
- cycleFrom: number;
2410
- };
2411
- price?: {
2412
- subtotal: string;
2413
- coupon?: {
2414
- code: string;
2415
- amount: string;
2416
- _id: string;
2417
- };
2418
- discount: string;
2419
- tax?: {
2420
- name: string;
2421
- includedInPrice: boolean;
2422
- rate: string;
2423
- amount: string;
2424
- };
2425
- total: string;
2426
- currency: string;
2427
- proration: string;
2428
- };
2429
- }[];
2430
- };
2431
- type: OrderType;
2432
- status: OrderStatus;
2433
- cancellation?: {
2434
- cause: CancellationCause;
2435
- effectiveAt: CancellationEffectiveAt;
2436
- };
2437
- lastPaymentStatus: PaymentStatus;
2438
- pausePeriods: {
2439
- status: Status;
2440
- }[];
2441
- currentCycle?: {
2442
- index: number;
2443
- };
2444
- planName: string;
2445
- planDescription: string;
2446
- planPrice: string;
2447
- };
1701
+ order?: OrderNonNullableFields;
2448
1702
  purchaseLimitExceeded: boolean;
2449
1703
  }
2450
1704
  interface GetPricePreviewResponseNonNullableFields {
2451
- price?: {
2452
- subscription?: {
2453
- cycleDuration?: {
2454
- unit: PeriodUnit$2;
2455
- };
2456
- };
2457
- singlePaymentForDuration?: {
2458
- unit: PeriodUnit$2;
2459
- };
2460
- subtotal: string;
2461
- discount: string;
2462
- tax?: {
2463
- name: string;
2464
- includedInPrice: boolean;
2465
- rate: string;
2466
- amount: string;
2467
- };
2468
- total: string;
2469
- planPrice: string;
2470
- currency: string;
2471
- coupon?: {
2472
- code: string;
2473
- amount: string;
2474
- _id: string;
2475
- };
2476
- };
2477
- prices: {
2478
- duration?: {
2479
- cycleFrom: number;
2480
- };
2481
- price?: {
2482
- subtotal: string;
2483
- coupon?: {
2484
- code: string;
2485
- amount: string;
2486
- _id: string;
2487
- };
2488
- discount: string;
2489
- tax?: {
2490
- name: string;
2491
- includedInPrice: boolean;
2492
- rate: string;
2493
- amount: string;
2494
- };
2495
- total: string;
2496
- currency: string;
2497
- proration: string;
2498
- };
2499
- }[];
1705
+ price?: PriceDetailsNonNullableFields;
1706
+ prices: SpannedPriceNonNullableFields[];
2500
1707
  }
2501
1708
  interface GetOrderResponseNonNullableFields {
2502
- order?: {
2503
- _id: string;
2504
- planId: string;
2505
- subscriptionId: string;
2506
- buyer?: {
2507
- memberId: string;
2508
- contactId: string;
2509
- };
2510
- priceDetails?: {
2511
- subscription?: {
2512
- cycleDuration?: {
2513
- unit: PeriodUnit$2;
2514
- };
2515
- };
2516
- singlePaymentForDuration?: {
2517
- unit: PeriodUnit$2;
2518
- };
2519
- subtotal: string;
2520
- discount: string;
2521
- tax?: {
2522
- name: string;
2523
- includedInPrice: boolean;
2524
- rate: string;
2525
- amount: string;
2526
- };
2527
- total: string;
2528
- planPrice: string;
2529
- currency: string;
2530
- coupon?: {
2531
- code: string;
2532
- amount: string;
2533
- _id: string;
2534
- };
2535
- };
2536
- pricing?: {
2537
- subscription?: {
2538
- cycleDuration?: {
2539
- unit: PeriodUnit$2;
2540
- };
2541
- };
2542
- singlePaymentForDuration?: {
2543
- unit: PeriodUnit$2;
2544
- };
2545
- prices: {
2546
- duration?: {
2547
- cycleFrom: number;
2548
- };
2549
- price?: {
2550
- subtotal: string;
2551
- coupon?: {
2552
- code: string;
2553
- amount: string;
2554
- _id: string;
2555
- };
2556
- discount: string;
2557
- tax?: {
2558
- name: string;
2559
- includedInPrice: boolean;
2560
- rate: string;
2561
- amount: string;
2562
- };
2563
- total: string;
2564
- currency: string;
2565
- proration: string;
2566
- };
2567
- }[];
2568
- };
2569
- type: OrderType;
2570
- status: OrderStatus;
2571
- cancellation?: {
2572
- cause: CancellationCause;
2573
- effectiveAt: CancellationEffectiveAt;
2574
- };
2575
- lastPaymentStatus: PaymentStatus;
2576
- pausePeriods: {
2577
- status: Status;
2578
- }[];
2579
- currentCycle?: {
2580
- index: number;
2581
- };
2582
- planName: string;
2583
- planDescription: string;
2584
- planPrice: string;
2585
- };
1709
+ order?: OrderNonNullableFields;
2586
1710
  }
2587
1711
  interface ListOrdersResponseNonNullableFields {
2588
- orders: {
2589
- _id: string;
2590
- planId: string;
2591
- subscriptionId: string;
2592
- buyer?: {
2593
- memberId: string;
2594
- contactId: string;
2595
- };
2596
- priceDetails?: {
2597
- subscription?: {
2598
- cycleDuration?: {
2599
- unit: PeriodUnit$2;
2600
- };
2601
- };
2602
- singlePaymentForDuration?: {
2603
- unit: PeriodUnit$2;
2604
- };
2605
- subtotal: string;
2606
- discount: string;
2607
- tax?: {
2608
- name: string;
2609
- includedInPrice: boolean;
2610
- rate: string;
2611
- amount: string;
2612
- };
2613
- total: string;
2614
- planPrice: string;
2615
- currency: string;
2616
- coupon?: {
2617
- code: string;
2618
- amount: string;
2619
- _id: string;
2620
- };
2621
- };
2622
- pricing?: {
2623
- subscription?: {
2624
- cycleDuration?: {
2625
- unit: PeriodUnit$2;
2626
- };
2627
- };
2628
- singlePaymentForDuration?: {
2629
- unit: PeriodUnit$2;
2630
- };
2631
- prices: {
2632
- duration?: {
2633
- cycleFrom: number;
2634
- };
2635
- price?: {
2636
- subtotal: string;
2637
- coupon?: {
2638
- code: string;
2639
- amount: string;
2640
- _id: string;
2641
- };
2642
- discount: string;
2643
- tax?: {
2644
- name: string;
2645
- includedInPrice: boolean;
2646
- rate: string;
2647
- amount: string;
2648
- };
2649
- total: string;
2650
- currency: string;
2651
- proration: string;
2652
- };
2653
- }[];
2654
- };
2655
- type: OrderType;
2656
- status: OrderStatus;
2657
- cancellation?: {
2658
- cause: CancellationCause;
2659
- effectiveAt: CancellationEffectiveAt;
2660
- };
2661
- lastPaymentStatus: PaymentStatus;
2662
- pausePeriods: {
2663
- status: Status;
2664
- }[];
2665
- currentCycle?: {
2666
- index: number;
2667
- };
2668
- planName: string;
2669
- planDescription: string;
2670
- planPrice: string;
2671
- }[];
1712
+ orders: OrderNonNullableFields[];
2672
1713
  }
2673
1714
 
2674
1715
  type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -2856,7 +1897,7 @@ interface Money$1 {
2856
1897
  /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
2857
1898
  currency?: string;
2858
1899
  }
2859
- declare enum AppliedAt {
1900
+ declare enum AppliedAt$1 {
2860
1901
  UNKNOWN_CHARGE_EVENT = "UNKNOWN_CHARGE_EVENT",
2861
1902
  /** Will charge the fee on first payment. If order has a free trial meaning it will charge after the free trial. */
2862
1903
  FIRST_PAYMENT = "FIRST_PAYMENT"
@@ -3049,292 +2090,76 @@ interface ArrangePlansRequest$1 {
3049
2090
  }
3050
2091
  interface ArrangePlansResponse$1 {
3051
2092
  }
2093
+ interface StringListNonNullableFields$1 {
2094
+ values: string[];
2095
+ }
2096
+ interface DurationNonNullableFields$1 {
2097
+ unit: PeriodUnit$1;
2098
+ }
2099
+ interface RecurrenceNonNullableFields$1 {
2100
+ cycleDuration?: DurationNonNullableFields$1;
2101
+ }
2102
+ interface MoneyNonNullableFields$1 {
2103
+ value: string;
2104
+ currency: string;
2105
+ }
2106
+ interface FeeNonNullableFields$1 {
2107
+ name: string;
2108
+ amount: string;
2109
+ }
2110
+ interface FeeConfigNonNullableFields$1 {
2111
+ fee?: FeeNonNullableFields$1;
2112
+ appliedAt: AppliedAt$1;
2113
+ }
2114
+ interface PricingNonNullableFields$1 {
2115
+ subscription?: RecurrenceNonNullableFields$1;
2116
+ singlePaymentForDuration?: DurationNonNullableFields$1;
2117
+ price?: MoneyNonNullableFields$1;
2118
+ feeConfigs: FeeConfigNonNullableFields$1[];
2119
+ }
2120
+ interface PublicPlanNonNullableFields$1 {
2121
+ id: string;
2122
+ perks?: StringListNonNullableFields$1;
2123
+ pricing?: PricingNonNullableFields$1;
2124
+ primary: boolean;
2125
+ }
3052
2126
  interface ListPublicPlansResponseNonNullableFields$1 {
3053
- plans: {
3054
- id: string;
3055
- perks?: {
3056
- values: string[];
3057
- };
3058
- pricing?: {
3059
- subscription?: {
3060
- cycleDuration?: {
3061
- unit: PeriodUnit$1;
3062
- };
3063
- };
3064
- singlePaymentForDuration?: {
3065
- unit: PeriodUnit$1;
3066
- };
3067
- price?: {
3068
- value: string;
3069
- currency: string;
3070
- };
3071
- feeConfigs: {
3072
- fee?: {
3073
- name: string;
3074
- amount: string;
3075
- };
3076
- appliedAt: AppliedAt;
3077
- }[];
3078
- };
3079
- primary: boolean;
3080
- }[];
2127
+ plans: PublicPlanNonNullableFields$1[];
3081
2128
  }
3082
2129
  interface QueryPublicPlansResponseNonNullableFields$1 {
3083
- plans: {
3084
- id: string;
3085
- perks?: {
3086
- values: string[];
3087
- };
3088
- pricing?: {
3089
- subscription?: {
3090
- cycleDuration?: {
3091
- unit: PeriodUnit$1;
3092
- };
3093
- };
3094
- singlePaymentForDuration?: {
3095
- unit: PeriodUnit$1;
3096
- };
3097
- price?: {
3098
- value: string;
3099
- currency: string;
3100
- };
3101
- feeConfigs: {
3102
- fee?: {
3103
- name: string;
3104
- amount: string;
3105
- };
3106
- appliedAt: AppliedAt;
3107
- }[];
3108
- };
3109
- primary: boolean;
3110
- }[];
2130
+ plans: PublicPlanNonNullableFields$1[];
2131
+ }
2132
+ interface PlanNonNullableFields$1 {
2133
+ id: string;
2134
+ perks?: StringListNonNullableFields$1;
2135
+ pricing?: PricingNonNullableFields$1;
2136
+ archived: boolean;
2137
+ primary: boolean;
2138
+ hasOrders: boolean;
3111
2139
  }
3112
2140
  interface GetPlanResponseNonNullableFields$1 {
3113
- plan?: {
3114
- id: string;
3115
- perks?: {
3116
- values: string[];
3117
- };
3118
- pricing?: {
3119
- subscription?: {
3120
- cycleDuration?: {
3121
- unit: PeriodUnit$1;
3122
- };
3123
- };
3124
- singlePaymentForDuration?: {
3125
- unit: PeriodUnit$1;
3126
- };
3127
- price?: {
3128
- value: string;
3129
- currency: string;
3130
- };
3131
- feeConfigs: {
3132
- fee?: {
3133
- name: string;
3134
- amount: string;
3135
- };
3136
- appliedAt: AppliedAt;
3137
- }[];
3138
- };
3139
- archived: boolean;
3140
- primary: boolean;
3141
- hasOrders: boolean;
3142
- };
2141
+ plan?: PlanNonNullableFields$1;
3143
2142
  }
3144
2143
  interface ListPlansResponseNonNullableFields$1 {
3145
- plans: {
3146
- id: string;
3147
- perks?: {
3148
- values: string[];
3149
- };
3150
- pricing?: {
3151
- subscription?: {
3152
- cycleDuration?: {
3153
- unit: PeriodUnit$1;
3154
- };
3155
- };
3156
- singlePaymentForDuration?: {
3157
- unit: PeriodUnit$1;
3158
- };
3159
- price?: {
3160
- value: string;
3161
- currency: string;
3162
- };
3163
- feeConfigs: {
3164
- fee?: {
3165
- name: string;
3166
- amount: string;
3167
- };
3168
- appliedAt: AppliedAt;
3169
- }[];
3170
- };
3171
- archived: boolean;
3172
- primary: boolean;
3173
- hasOrders: boolean;
3174
- }[];
2144
+ plans: PlanNonNullableFields$1[];
3175
2145
  }
3176
2146
  interface GetPlanStatsResponseNonNullableFields$1 {
3177
2147
  totalPlans: number;
3178
2148
  }
3179
2149
  interface CreatePlanResponseNonNullableFields$1 {
3180
- plan?: {
3181
- id: string;
3182
- perks?: {
3183
- values: string[];
3184
- };
3185
- pricing?: {
3186
- subscription?: {
3187
- cycleDuration?: {
3188
- unit: PeriodUnit$1;
3189
- };
3190
- };
3191
- singlePaymentForDuration?: {
3192
- unit: PeriodUnit$1;
3193
- };
3194
- price?: {
3195
- value: string;
3196
- currency: string;
3197
- };
3198
- feeConfigs: {
3199
- fee?: {
3200
- name: string;
3201
- amount: string;
3202
- };
3203
- appliedAt: AppliedAt;
3204
- }[];
3205
- };
3206
- archived: boolean;
3207
- primary: boolean;
3208
- hasOrders: boolean;
3209
- };
2150
+ plan?: PlanNonNullableFields$1;
3210
2151
  }
3211
2152
  interface UpdatePlanResponseNonNullableFields$1 {
3212
- plan?: {
3213
- id: string;
3214
- perks?: {
3215
- values: string[];
3216
- };
3217
- pricing?: {
3218
- subscription?: {
3219
- cycleDuration?: {
3220
- unit: PeriodUnit$1;
3221
- };
3222
- };
3223
- singlePaymentForDuration?: {
3224
- unit: PeriodUnit$1;
3225
- };
3226
- price?: {
3227
- value: string;
3228
- currency: string;
3229
- };
3230
- feeConfigs: {
3231
- fee?: {
3232
- name: string;
3233
- amount: string;
3234
- };
3235
- appliedAt: AppliedAt;
3236
- }[];
3237
- };
3238
- archived: boolean;
3239
- primary: boolean;
3240
- hasOrders: boolean;
3241
- };
2153
+ plan?: PlanNonNullableFields$1;
3242
2154
  }
3243
2155
  interface SetPlanVisibilityResponseNonNullableFields$1 {
3244
- plan?: {
3245
- id: string;
3246
- perks?: {
3247
- values: string[];
3248
- };
3249
- pricing?: {
3250
- subscription?: {
3251
- cycleDuration?: {
3252
- unit: PeriodUnit$1;
3253
- };
3254
- };
3255
- singlePaymentForDuration?: {
3256
- unit: PeriodUnit$1;
3257
- };
3258
- price?: {
3259
- value: string;
3260
- currency: string;
3261
- };
3262
- feeConfigs: {
3263
- fee?: {
3264
- name: string;
3265
- amount: string;
3266
- };
3267
- appliedAt: AppliedAt;
3268
- }[];
3269
- };
3270
- archived: boolean;
3271
- primary: boolean;
3272
- hasOrders: boolean;
3273
- };
2156
+ plan?: PlanNonNullableFields$1;
3274
2157
  }
3275
2158
  interface MakePlanPrimaryResponseNonNullableFields$1 {
3276
- plan?: {
3277
- id: string;
3278
- perks?: {
3279
- values: string[];
3280
- };
3281
- pricing?: {
3282
- subscription?: {
3283
- cycleDuration?: {
3284
- unit: PeriodUnit$1;
3285
- };
3286
- };
3287
- singlePaymentForDuration?: {
3288
- unit: PeriodUnit$1;
3289
- };
3290
- price?: {
3291
- value: string;
3292
- currency: string;
3293
- };
3294
- feeConfigs: {
3295
- fee?: {
3296
- name: string;
3297
- amount: string;
3298
- };
3299
- appliedAt: AppliedAt;
3300
- }[];
3301
- };
3302
- archived: boolean;
3303
- primary: boolean;
3304
- hasOrders: boolean;
3305
- };
2159
+ plan?: PlanNonNullableFields$1;
3306
2160
  }
3307
2161
  interface ArchivePlanResponseNonNullableFields$1 {
3308
- plan?: {
3309
- id: string;
3310
- perks?: {
3311
- values: string[];
3312
- };
3313
- pricing?: {
3314
- subscription?: {
3315
- cycleDuration?: {
3316
- unit: PeriodUnit$1;
3317
- };
3318
- };
3319
- singlePaymentForDuration?: {
3320
- unit: PeriodUnit$1;
3321
- };
3322
- price?: {
3323
- value: string;
3324
- currency: string;
3325
- };
3326
- feeConfigs: {
3327
- fee?: {
3328
- name: string;
3329
- amount: string;
3330
- };
3331
- appliedAt: AppliedAt;
3332
- }[];
3333
- };
3334
- archived: boolean;
3335
- primary: boolean;
3336
- hasOrders: boolean;
3337
- };
2162
+ plan?: PlanNonNullableFields$1;
3338
2163
  }
3339
2164
 
3340
2165
  /** Information about the pricing plan. */
@@ -3480,6 +2305,11 @@ interface Money {
3480
2305
  */
3481
2306
  currency?: string;
3482
2307
  }
2308
+ declare enum AppliedAt {
2309
+ UNKNOWN_CHARGE_EVENT = "UNKNOWN_CHARGE_EVENT",
2310
+ /** Will charge the fee on first payment. If order has a free trial meaning it will charge after the free trial. */
2311
+ FIRST_PAYMENT = "FIRST_PAYMENT"
2312
+ }
3483
2313
  interface ListPublicPlansRequest {
3484
2314
  /**
3485
2315
  * Number of pricing plans to list.
@@ -3700,229 +2530,76 @@ interface ArrangePlansRequest {
3700
2530
  }
3701
2531
  interface ArrangePlansResponse {
3702
2532
  }
2533
+ interface StringListNonNullableFields {
2534
+ values: string[];
2535
+ }
2536
+ interface DurationNonNullableFields {
2537
+ unit: PeriodUnit;
2538
+ }
2539
+ interface RecurrenceNonNullableFields {
2540
+ cycleDuration?: DurationNonNullableFields;
2541
+ }
2542
+ interface MoneyNonNullableFields {
2543
+ value: string;
2544
+ currency: string;
2545
+ }
2546
+ interface FeeNonNullableFields {
2547
+ name: string;
2548
+ amount: string;
2549
+ }
2550
+ interface FeeConfigNonNullableFields {
2551
+ fee?: FeeNonNullableFields;
2552
+ appliedAt: AppliedAt;
2553
+ }
2554
+ interface PricingNonNullableFields {
2555
+ subscription?: RecurrenceNonNullableFields;
2556
+ singlePaymentForDuration?: DurationNonNullableFields;
2557
+ price?: MoneyNonNullableFields;
2558
+ feeConfigs: FeeConfigNonNullableFields[];
2559
+ }
2560
+ interface PublicPlanNonNullableFields {
2561
+ _id: string;
2562
+ perks?: StringListNonNullableFields;
2563
+ pricing?: PricingNonNullableFields;
2564
+ primary: boolean;
2565
+ }
3703
2566
  interface ListPublicPlansResponseNonNullableFields {
3704
- plans: {
3705
- _id: string;
3706
- perks?: {
3707
- values: string[];
3708
- };
3709
- pricing?: {
3710
- subscription?: {
3711
- cycleDuration?: {
3712
- unit: PeriodUnit;
3713
- };
3714
- };
3715
- singlePaymentForDuration?: {
3716
- unit: PeriodUnit;
3717
- };
3718
- price?: {
3719
- value: string;
3720
- currency: string;
3721
- };
3722
- };
3723
- primary: boolean;
3724
- }[];
2567
+ plans: PublicPlanNonNullableFields[];
3725
2568
  }
3726
2569
  interface QueryPublicPlansResponseNonNullableFields {
3727
- plans: {
3728
- _id: string;
3729
- perks?: {
3730
- values: string[];
3731
- };
3732
- pricing?: {
3733
- subscription?: {
3734
- cycleDuration?: {
3735
- unit: PeriodUnit;
3736
- };
3737
- };
3738
- singlePaymentForDuration?: {
3739
- unit: PeriodUnit;
3740
- };
3741
- price?: {
3742
- value: string;
3743
- currency: string;
3744
- };
3745
- };
3746
- primary: boolean;
3747
- }[];
2570
+ plans: PublicPlanNonNullableFields[];
2571
+ }
2572
+ interface PlanNonNullableFields {
2573
+ _id: string;
2574
+ perks?: StringListNonNullableFields;
2575
+ pricing?: PricingNonNullableFields;
2576
+ archived: boolean;
2577
+ primary: boolean;
2578
+ hasOrders: boolean;
3748
2579
  }
3749
2580
  interface GetPlanResponseNonNullableFields {
3750
- plan?: {
3751
- _id: string;
3752
- perks?: {
3753
- values: string[];
3754
- };
3755
- pricing?: {
3756
- subscription?: {
3757
- cycleDuration?: {
3758
- unit: PeriodUnit;
3759
- };
3760
- };
3761
- singlePaymentForDuration?: {
3762
- unit: PeriodUnit;
3763
- };
3764
- price?: {
3765
- value: string;
3766
- currency: string;
3767
- };
3768
- };
3769
- archived: boolean;
3770
- primary: boolean;
3771
- hasOrders: boolean;
3772
- };
2581
+ plan?: PlanNonNullableFields;
3773
2582
  }
3774
2583
  interface ListPlansResponseNonNullableFields {
3775
- plans: {
3776
- _id: string;
3777
- perks?: {
3778
- values: string[];
3779
- };
3780
- pricing?: {
3781
- subscription?: {
3782
- cycleDuration?: {
3783
- unit: PeriodUnit;
3784
- };
3785
- };
3786
- singlePaymentForDuration?: {
3787
- unit: PeriodUnit;
3788
- };
3789
- price?: {
3790
- value: string;
3791
- currency: string;
3792
- };
3793
- };
3794
- archived: boolean;
3795
- primary: boolean;
3796
- hasOrders: boolean;
3797
- }[];
2584
+ plans: PlanNonNullableFields[];
3798
2585
  }
3799
2586
  interface GetPlanStatsResponseNonNullableFields {
3800
2587
  totalPlans: number;
3801
2588
  }
3802
2589
  interface CreatePlanResponseNonNullableFields {
3803
- plan?: {
3804
- _id: string;
3805
- perks?: {
3806
- values: string[];
3807
- };
3808
- pricing?: {
3809
- subscription?: {
3810
- cycleDuration?: {
3811
- unit: PeriodUnit;
3812
- };
3813
- };
3814
- singlePaymentForDuration?: {
3815
- unit: PeriodUnit;
3816
- };
3817
- price?: {
3818
- value: string;
3819
- currency: string;
3820
- };
3821
- };
3822
- archived: boolean;
3823
- primary: boolean;
3824
- hasOrders: boolean;
3825
- };
2590
+ plan?: PlanNonNullableFields;
3826
2591
  }
3827
2592
  interface UpdatePlanResponseNonNullableFields {
3828
- plan?: {
3829
- _id: string;
3830
- perks?: {
3831
- values: string[];
3832
- };
3833
- pricing?: {
3834
- subscription?: {
3835
- cycleDuration?: {
3836
- unit: PeriodUnit;
3837
- };
3838
- };
3839
- singlePaymentForDuration?: {
3840
- unit: PeriodUnit;
3841
- };
3842
- price?: {
3843
- value: string;
3844
- currency: string;
3845
- };
3846
- };
3847
- archived: boolean;
3848
- primary: boolean;
3849
- hasOrders: boolean;
3850
- };
2593
+ plan?: PlanNonNullableFields;
3851
2594
  }
3852
2595
  interface SetPlanVisibilityResponseNonNullableFields {
3853
- plan?: {
3854
- _id: string;
3855
- perks?: {
3856
- values: string[];
3857
- };
3858
- pricing?: {
3859
- subscription?: {
3860
- cycleDuration?: {
3861
- unit: PeriodUnit;
3862
- };
3863
- };
3864
- singlePaymentForDuration?: {
3865
- unit: PeriodUnit;
3866
- };
3867
- price?: {
3868
- value: string;
3869
- currency: string;
3870
- };
3871
- };
3872
- archived: boolean;
3873
- primary: boolean;
3874
- hasOrders: boolean;
3875
- };
2596
+ plan?: PlanNonNullableFields;
3876
2597
  }
3877
2598
  interface MakePlanPrimaryResponseNonNullableFields {
3878
- plan?: {
3879
- _id: string;
3880
- perks?: {
3881
- values: string[];
3882
- };
3883
- pricing?: {
3884
- subscription?: {
3885
- cycleDuration?: {
3886
- unit: PeriodUnit;
3887
- };
3888
- };
3889
- singlePaymentForDuration?: {
3890
- unit: PeriodUnit;
3891
- };
3892
- price?: {
3893
- value: string;
3894
- currency: string;
3895
- };
3896
- };
3897
- archived: boolean;
3898
- primary: boolean;
3899
- hasOrders: boolean;
3900
- };
2599
+ plan?: PlanNonNullableFields;
3901
2600
  }
3902
2601
  interface ArchivePlanResponseNonNullableFields {
3903
- plan?: {
3904
- _id: string;
3905
- perks?: {
3906
- values: string[];
3907
- };
3908
- pricing?: {
3909
- subscription?: {
3910
- cycleDuration?: {
3911
- unit: PeriodUnit;
3912
- };
3913
- };
3914
- singlePaymentForDuration?: {
3915
- unit: PeriodUnit;
3916
- };
3917
- price?: {
3918
- value: string;
3919
- currency: string;
3920
- };
3921
- };
3922
- archived: boolean;
3923
- primary: boolean;
3924
- hasOrders: boolean;
3925
- };
2602
+ plan?: PlanNonNullableFields;
3926
2603
  }
3927
2604
 
3928
2605
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {