@moonbase.sh/storefront-api 0.3.38 → 0.4.1

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.
package/dist/index.d.ts CHANGED
@@ -5143,6 +5143,82 @@ declare const openProductLineItem: z.ZodObject<{
5143
5143
  minQuantity: number;
5144
5144
  }[] | null | undefined;
5145
5145
  }>>;
5146
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5147
+ original: z.ZodObject<{
5148
+ currency: z.ZodString;
5149
+ amount: z.ZodNumber;
5150
+ }, "strip", z.ZodTypeAny, {
5151
+ currency: string;
5152
+ amount: number;
5153
+ }, {
5154
+ currency: string;
5155
+ amount: number;
5156
+ }>;
5157
+ discount: z.ZodObject<{
5158
+ currency: z.ZodString;
5159
+ amount: z.ZodNumber;
5160
+ }, "strip", z.ZodTypeAny, {
5161
+ currency: string;
5162
+ amount: number;
5163
+ }, {
5164
+ currency: string;
5165
+ amount: number;
5166
+ }>;
5167
+ subtotal: z.ZodObject<{
5168
+ currency: z.ZodString;
5169
+ amount: z.ZodNumber;
5170
+ }, "strip", z.ZodTypeAny, {
5171
+ currency: string;
5172
+ amount: number;
5173
+ }, {
5174
+ currency: string;
5175
+ amount: number;
5176
+ }>;
5177
+ due: z.ZodObject<{
5178
+ currency: z.ZodString;
5179
+ amount: z.ZodNumber;
5180
+ }, "strip", z.ZodTypeAny, {
5181
+ currency: string;
5182
+ amount: number;
5183
+ }, {
5184
+ currency: string;
5185
+ amount: number;
5186
+ }>;
5187
+ }, "strip", z.ZodTypeAny, {
5188
+ discount: {
5189
+ currency: string;
5190
+ amount: number;
5191
+ };
5192
+ original: {
5193
+ currency: string;
5194
+ amount: number;
5195
+ };
5196
+ subtotal: {
5197
+ currency: string;
5198
+ amount: number;
5199
+ };
5200
+ due: {
5201
+ currency: string;
5202
+ amount: number;
5203
+ };
5204
+ }, {
5205
+ discount: {
5206
+ currency: string;
5207
+ amount: number;
5208
+ };
5209
+ original: {
5210
+ currency: string;
5211
+ amount: number;
5212
+ };
5213
+ subtotal: {
5214
+ currency: string;
5215
+ amount: number;
5216
+ };
5217
+ due: {
5218
+ currency: string;
5219
+ amount: number;
5220
+ };
5221
+ }>>>;
5146
5222
  product: z.ZodOptional<z.ZodObject<{
5147
5223
  id: z.ZodString;
5148
5224
  name: z.ZodString;
@@ -5211,6 +5287,24 @@ declare const openProductLineItem: z.ZodObject<{
5211
5287
  quantity: number;
5212
5288
  productId: string;
5213
5289
  variationId: string;
5290
+ total?: {
5291
+ discount: {
5292
+ currency: string;
5293
+ amount: number;
5294
+ };
5295
+ original: {
5296
+ currency: string;
5297
+ amount: number;
5298
+ };
5299
+ subtotal: {
5300
+ currency: string;
5301
+ amount: number;
5302
+ };
5303
+ due: {
5304
+ currency: string;
5305
+ amount: number;
5306
+ };
5307
+ } | null | undefined;
5214
5308
  price?: Record<string, number> | undefined;
5215
5309
  product?: {
5216
5310
  id: string;
@@ -5276,6 +5370,24 @@ declare const openProductLineItem: z.ZodObject<{
5276
5370
  quantity: number;
5277
5371
  productId: string;
5278
5372
  variationId: string;
5373
+ total?: {
5374
+ discount: {
5375
+ currency: string;
5376
+ amount: number;
5377
+ };
5378
+ original: {
5379
+ currency: string;
5380
+ amount: number;
5381
+ };
5382
+ subtotal: {
5383
+ currency: string;
5384
+ amount: number;
5385
+ };
5386
+ due: {
5387
+ currency: string;
5388
+ amount: number;
5389
+ };
5390
+ } | null | undefined;
5279
5391
  price?: Record<string, number> | undefined;
5280
5392
  product?: {
5281
5393
  id: string;
@@ -5494,6 +5606,82 @@ declare const openBundleLineItem: z.ZodObject<{
5494
5606
  minQuantity: number;
5495
5607
  }[] | null | undefined;
5496
5608
  }>>;
5609
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5610
+ original: z.ZodObject<{
5611
+ currency: z.ZodString;
5612
+ amount: z.ZodNumber;
5613
+ }, "strip", z.ZodTypeAny, {
5614
+ currency: string;
5615
+ amount: number;
5616
+ }, {
5617
+ currency: string;
5618
+ amount: number;
5619
+ }>;
5620
+ discount: z.ZodObject<{
5621
+ currency: z.ZodString;
5622
+ amount: z.ZodNumber;
5623
+ }, "strip", z.ZodTypeAny, {
5624
+ currency: string;
5625
+ amount: number;
5626
+ }, {
5627
+ currency: string;
5628
+ amount: number;
5629
+ }>;
5630
+ subtotal: z.ZodObject<{
5631
+ currency: z.ZodString;
5632
+ amount: z.ZodNumber;
5633
+ }, "strip", z.ZodTypeAny, {
5634
+ currency: string;
5635
+ amount: number;
5636
+ }, {
5637
+ currency: string;
5638
+ amount: number;
5639
+ }>;
5640
+ due: z.ZodObject<{
5641
+ currency: z.ZodString;
5642
+ amount: z.ZodNumber;
5643
+ }, "strip", z.ZodTypeAny, {
5644
+ currency: string;
5645
+ amount: number;
5646
+ }, {
5647
+ currency: string;
5648
+ amount: number;
5649
+ }>;
5650
+ }, "strip", z.ZodTypeAny, {
5651
+ discount: {
5652
+ currency: string;
5653
+ amount: number;
5654
+ };
5655
+ original: {
5656
+ currency: string;
5657
+ amount: number;
5658
+ };
5659
+ subtotal: {
5660
+ currency: string;
5661
+ amount: number;
5662
+ };
5663
+ due: {
5664
+ currency: string;
5665
+ amount: number;
5666
+ };
5667
+ }, {
5668
+ discount: {
5669
+ currency: string;
5670
+ amount: number;
5671
+ };
5672
+ original: {
5673
+ currency: string;
5674
+ amount: number;
5675
+ };
5676
+ subtotal: {
5677
+ currency: string;
5678
+ amount: number;
5679
+ };
5680
+ due: {
5681
+ currency: string;
5682
+ amount: number;
5683
+ };
5684
+ }>>>;
5497
5685
  bundle: z.ZodOptional<z.ZodObject<{
5498
5686
  id: z.ZodString;
5499
5687
  name: z.ZodString;
@@ -5600,6 +5788,24 @@ declare const openBundleLineItem: z.ZodObject<{
5600
5788
  quantity: number;
5601
5789
  variationId: string;
5602
5790
  bundleId: string;
5791
+ total?: {
5792
+ discount: {
5793
+ currency: string;
5794
+ amount: number;
5795
+ };
5796
+ original: {
5797
+ currency: string;
5798
+ amount: number;
5799
+ };
5800
+ subtotal: {
5801
+ currency: string;
5802
+ amount: number;
5803
+ };
5804
+ due: {
5805
+ currency: string;
5806
+ amount: number;
5807
+ };
5808
+ } | null | undefined;
5603
5809
  price?: Record<string, number> | undefined;
5604
5810
  partial?: boolean | undefined;
5605
5811
  bundle?: {
@@ -5674,6 +5880,24 @@ declare const openBundleLineItem: z.ZodObject<{
5674
5880
  quantity: number;
5675
5881
  variationId: string;
5676
5882
  bundleId: string;
5883
+ total?: {
5884
+ discount: {
5885
+ currency: string;
5886
+ amount: number;
5887
+ };
5888
+ original: {
5889
+ currency: string;
5890
+ amount: number;
5891
+ };
5892
+ subtotal: {
5893
+ currency: string;
5894
+ amount: number;
5895
+ };
5896
+ due: {
5897
+ currency: string;
5898
+ amount: number;
5899
+ };
5900
+ } | null | undefined;
5677
5901
  price?: Record<string, number> | undefined;
5678
5902
  partial?: boolean | undefined;
5679
5903
  bundle?: {
@@ -5900,50 +6124,126 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5900
6124
  minQuantity: number;
5901
6125
  }[] | null | undefined;
5902
6126
  }>>;
5903
- product: z.ZodOptional<z.ZodObject<{
5904
- id: z.ZodString;
5905
- name: z.ZodString;
5906
- tagline: z.ZodString;
5907
- iconUrl: z.ZodNullable<z.ZodString>;
5908
- }, "strip", z.ZodTypeAny, {
5909
- id: string;
5910
- name: string;
5911
- tagline: string;
5912
- iconUrl: string | null;
5913
- }, {
5914
- id: string;
5915
- name: string;
5916
- tagline: string;
5917
- iconUrl: string | null;
5918
- }>>;
5919
- appliedDiscount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5920
- type: z.ZodLiteral<"PercentageOffDiscount">;
5921
- name: z.ZodString;
5922
- description: z.ZodOptional<z.ZodString>;
5923
- percentage: z.ZodNumber;
5924
- total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
5925
- isExclusive: z.ZodBoolean;
5926
- recurringPaymentUseCount: z.ZodOptional<z.ZodNumber>;
5927
- }, "strip", z.ZodTypeAny, {
5928
- name: string;
5929
- type: "PercentageOffDiscount";
5930
- percentage: number;
5931
- isExclusive: boolean;
5932
- description?: string | undefined;
5933
- total?: Record<string, number> | undefined;
5934
- recurringPaymentUseCount?: number | undefined;
5935
- }, {
5936
- name: string;
5937
- type: "PercentageOffDiscount";
5938
- percentage: number;
5939
- isExclusive: boolean;
5940
- description?: string | undefined;
5941
- total?: Record<string, number> | undefined;
5942
- recurringPaymentUseCount?: number | undefined;
5943
- }>, z.ZodObject<{
5944
- type: z.ZodLiteral<"FlatAmountOffDiscount">;
5945
- name: z.ZodString;
5946
- description: z.ZodOptional<z.ZodString>;
6127
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6128
+ original: z.ZodObject<{
6129
+ currency: z.ZodString;
6130
+ amount: z.ZodNumber;
6131
+ }, "strip", z.ZodTypeAny, {
6132
+ currency: string;
6133
+ amount: number;
6134
+ }, {
6135
+ currency: string;
6136
+ amount: number;
6137
+ }>;
6138
+ discount: z.ZodObject<{
6139
+ currency: z.ZodString;
6140
+ amount: z.ZodNumber;
6141
+ }, "strip", z.ZodTypeAny, {
6142
+ currency: string;
6143
+ amount: number;
6144
+ }, {
6145
+ currency: string;
6146
+ amount: number;
6147
+ }>;
6148
+ subtotal: z.ZodObject<{
6149
+ currency: z.ZodString;
6150
+ amount: z.ZodNumber;
6151
+ }, "strip", z.ZodTypeAny, {
6152
+ currency: string;
6153
+ amount: number;
6154
+ }, {
6155
+ currency: string;
6156
+ amount: number;
6157
+ }>;
6158
+ due: z.ZodObject<{
6159
+ currency: z.ZodString;
6160
+ amount: z.ZodNumber;
6161
+ }, "strip", z.ZodTypeAny, {
6162
+ currency: string;
6163
+ amount: number;
6164
+ }, {
6165
+ currency: string;
6166
+ amount: number;
6167
+ }>;
6168
+ }, "strip", z.ZodTypeAny, {
6169
+ discount: {
6170
+ currency: string;
6171
+ amount: number;
6172
+ };
6173
+ original: {
6174
+ currency: string;
6175
+ amount: number;
6176
+ };
6177
+ subtotal: {
6178
+ currency: string;
6179
+ amount: number;
6180
+ };
6181
+ due: {
6182
+ currency: string;
6183
+ amount: number;
6184
+ };
6185
+ }, {
6186
+ discount: {
6187
+ currency: string;
6188
+ amount: number;
6189
+ };
6190
+ original: {
6191
+ currency: string;
6192
+ amount: number;
6193
+ };
6194
+ subtotal: {
6195
+ currency: string;
6196
+ amount: number;
6197
+ };
6198
+ due: {
6199
+ currency: string;
6200
+ amount: number;
6201
+ };
6202
+ }>>>;
6203
+ product: z.ZodOptional<z.ZodObject<{
6204
+ id: z.ZodString;
6205
+ name: z.ZodString;
6206
+ tagline: z.ZodString;
6207
+ iconUrl: z.ZodNullable<z.ZodString>;
6208
+ }, "strip", z.ZodTypeAny, {
6209
+ id: string;
6210
+ name: string;
6211
+ tagline: string;
6212
+ iconUrl: string | null;
6213
+ }, {
6214
+ id: string;
6215
+ name: string;
6216
+ tagline: string;
6217
+ iconUrl: string | null;
6218
+ }>>;
6219
+ appliedDiscount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6220
+ type: z.ZodLiteral<"PercentageOffDiscount">;
6221
+ name: z.ZodString;
6222
+ description: z.ZodOptional<z.ZodString>;
6223
+ percentage: z.ZodNumber;
6224
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6225
+ isExclusive: z.ZodBoolean;
6226
+ recurringPaymentUseCount: z.ZodOptional<z.ZodNumber>;
6227
+ }, "strip", z.ZodTypeAny, {
6228
+ name: string;
6229
+ type: "PercentageOffDiscount";
6230
+ percentage: number;
6231
+ isExclusive: boolean;
6232
+ description?: string | undefined;
6233
+ total?: Record<string, number> | undefined;
6234
+ recurringPaymentUseCount?: number | undefined;
6235
+ }, {
6236
+ name: string;
6237
+ type: "PercentageOffDiscount";
6238
+ percentage: number;
6239
+ isExclusive: boolean;
6240
+ description?: string | undefined;
6241
+ total?: Record<string, number> | undefined;
6242
+ recurringPaymentUseCount?: number | undefined;
6243
+ }>, z.ZodObject<{
6244
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
6245
+ name: z.ZodString;
6246
+ description: z.ZodOptional<z.ZodString>;
5947
6247
  total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
5948
6248
  isExclusive: z.ZodBoolean;
5949
6249
  recurringPaymentUseCount: z.ZodOptional<z.ZodNumber>;
@@ -5968,6 +6268,24 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5968
6268
  quantity: number;
5969
6269
  productId: string;
5970
6270
  variationId: string;
6271
+ total?: {
6272
+ discount: {
6273
+ currency: string;
6274
+ amount: number;
6275
+ };
6276
+ original: {
6277
+ currency: string;
6278
+ amount: number;
6279
+ };
6280
+ subtotal: {
6281
+ currency: string;
6282
+ amount: number;
6283
+ };
6284
+ due: {
6285
+ currency: string;
6286
+ amount: number;
6287
+ };
6288
+ } | null | undefined;
5971
6289
  price?: Record<string, number> | undefined;
5972
6290
  product?: {
5973
6291
  id: string;
@@ -6033,6 +6351,24 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6033
6351
  quantity: number;
6034
6352
  productId: string;
6035
6353
  variationId: string;
6354
+ total?: {
6355
+ discount: {
6356
+ currency: string;
6357
+ amount: number;
6358
+ };
6359
+ original: {
6360
+ currency: string;
6361
+ amount: number;
6362
+ };
6363
+ subtotal: {
6364
+ currency: string;
6365
+ amount: number;
6366
+ };
6367
+ due: {
6368
+ currency: string;
6369
+ amount: number;
6370
+ };
6371
+ } | null | undefined;
6036
6372
  price?: Record<string, number> | undefined;
6037
6373
  product?: {
6038
6374
  id: string;
@@ -6250,6 +6586,82 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6250
6586
  minQuantity: number;
6251
6587
  }[] | null | undefined;
6252
6588
  }>>;
6589
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6590
+ original: z.ZodObject<{
6591
+ currency: z.ZodString;
6592
+ amount: z.ZodNumber;
6593
+ }, "strip", z.ZodTypeAny, {
6594
+ currency: string;
6595
+ amount: number;
6596
+ }, {
6597
+ currency: string;
6598
+ amount: number;
6599
+ }>;
6600
+ discount: z.ZodObject<{
6601
+ currency: z.ZodString;
6602
+ amount: z.ZodNumber;
6603
+ }, "strip", z.ZodTypeAny, {
6604
+ currency: string;
6605
+ amount: number;
6606
+ }, {
6607
+ currency: string;
6608
+ amount: number;
6609
+ }>;
6610
+ subtotal: z.ZodObject<{
6611
+ currency: z.ZodString;
6612
+ amount: z.ZodNumber;
6613
+ }, "strip", z.ZodTypeAny, {
6614
+ currency: string;
6615
+ amount: number;
6616
+ }, {
6617
+ currency: string;
6618
+ amount: number;
6619
+ }>;
6620
+ due: z.ZodObject<{
6621
+ currency: z.ZodString;
6622
+ amount: z.ZodNumber;
6623
+ }, "strip", z.ZodTypeAny, {
6624
+ currency: string;
6625
+ amount: number;
6626
+ }, {
6627
+ currency: string;
6628
+ amount: number;
6629
+ }>;
6630
+ }, "strip", z.ZodTypeAny, {
6631
+ discount: {
6632
+ currency: string;
6633
+ amount: number;
6634
+ };
6635
+ original: {
6636
+ currency: string;
6637
+ amount: number;
6638
+ };
6639
+ subtotal: {
6640
+ currency: string;
6641
+ amount: number;
6642
+ };
6643
+ due: {
6644
+ currency: string;
6645
+ amount: number;
6646
+ };
6647
+ }, {
6648
+ discount: {
6649
+ currency: string;
6650
+ amount: number;
6651
+ };
6652
+ original: {
6653
+ currency: string;
6654
+ amount: number;
6655
+ };
6656
+ subtotal: {
6657
+ currency: string;
6658
+ amount: number;
6659
+ };
6660
+ due: {
6661
+ currency: string;
6662
+ amount: number;
6663
+ };
6664
+ }>>>;
6253
6665
  bundle: z.ZodOptional<z.ZodObject<{
6254
6666
  id: z.ZodString;
6255
6667
  name: z.ZodString;
@@ -6356,6 +6768,24 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6356
6768
  quantity: number;
6357
6769
  variationId: string;
6358
6770
  bundleId: string;
6771
+ total?: {
6772
+ discount: {
6773
+ currency: string;
6774
+ amount: number;
6775
+ };
6776
+ original: {
6777
+ currency: string;
6778
+ amount: number;
6779
+ };
6780
+ subtotal: {
6781
+ currency: string;
6782
+ amount: number;
6783
+ };
6784
+ due: {
6785
+ currency: string;
6786
+ amount: number;
6787
+ };
6788
+ } | null | undefined;
6359
6789
  price?: Record<string, number> | undefined;
6360
6790
  partial?: boolean | undefined;
6361
6791
  bundle?: {
@@ -6430,6 +6860,24 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6430
6860
  quantity: number;
6431
6861
  variationId: string;
6432
6862
  bundleId: string;
6863
+ total?: {
6864
+ discount: {
6865
+ currency: string;
6866
+ amount: number;
6867
+ };
6868
+ original: {
6869
+ currency: string;
6870
+ amount: number;
6871
+ };
6872
+ subtotal: {
6873
+ currency: string;
6874
+ amount: number;
6875
+ };
6876
+ due: {
6877
+ currency: string;
6878
+ amount: number;
6879
+ };
6880
+ } | null | undefined;
6433
6881
  price?: Record<string, number> | undefined;
6434
6882
  partial?: boolean | undefined;
6435
6883
  bundle?: {
@@ -6499,9 +6947,197 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6499
6947
  recurringPaymentUseCount?: number | undefined;
6500
6948
  } | undefined;
6501
6949
  }>]>;
6950
+ declare const orderTotalSchema: z.ZodObject<{
6951
+ original: z.ZodObject<{
6952
+ currency: z.ZodString;
6953
+ amount: z.ZodNumber;
6954
+ }, "strip", z.ZodTypeAny, {
6955
+ currency: string;
6956
+ amount: number;
6957
+ }, {
6958
+ currency: string;
6959
+ amount: number;
6960
+ }>;
6961
+ discount: z.ZodObject<{
6962
+ currency: z.ZodString;
6963
+ amount: z.ZodNumber;
6964
+ }, "strip", z.ZodTypeAny, {
6965
+ currency: string;
6966
+ amount: number;
6967
+ }, {
6968
+ currency: string;
6969
+ amount: number;
6970
+ }>;
6971
+ subtotal: z.ZodObject<{
6972
+ currency: z.ZodString;
6973
+ amount: z.ZodNumber;
6974
+ }, "strip", z.ZodTypeAny, {
6975
+ currency: string;
6976
+ amount: number;
6977
+ }, {
6978
+ currency: string;
6979
+ amount: number;
6980
+ }>;
6981
+ taxes: z.ZodObject<{
6982
+ currency: z.ZodString;
6983
+ amount: z.ZodNumber;
6984
+ }, "strip", z.ZodTypeAny, {
6985
+ currency: string;
6986
+ amount: number;
6987
+ }, {
6988
+ currency: string;
6989
+ amount: number;
6990
+ }>;
6991
+ due: z.ZodObject<{
6992
+ currency: z.ZodString;
6993
+ amount: z.ZodNumber;
6994
+ }, "strip", z.ZodTypeAny, {
6995
+ currency: string;
6996
+ amount: number;
6997
+ }, {
6998
+ currency: string;
6999
+ amount: number;
7000
+ }>;
7001
+ }, "strip", z.ZodTypeAny, {
7002
+ discount: {
7003
+ currency: string;
7004
+ amount: number;
7005
+ };
7006
+ original: {
7007
+ currency: string;
7008
+ amount: number;
7009
+ };
7010
+ subtotal: {
7011
+ currency: string;
7012
+ amount: number;
7013
+ };
7014
+ taxes: {
7015
+ currency: string;
7016
+ amount: number;
7017
+ };
7018
+ due: {
7019
+ currency: string;
7020
+ amount: number;
7021
+ };
7022
+ }, {
7023
+ discount: {
7024
+ currency: string;
7025
+ amount: number;
7026
+ };
7027
+ original: {
7028
+ currency: string;
7029
+ amount: number;
7030
+ };
7031
+ subtotal: {
7032
+ currency: string;
7033
+ amount: number;
7034
+ };
7035
+ taxes: {
7036
+ currency: string;
7037
+ amount: number;
7038
+ };
7039
+ due: {
7040
+ currency: string;
7041
+ amount: number;
7042
+ };
7043
+ }>;
6502
7044
  declare const openOrderSchema: z.ZodObject<{
6503
7045
  id: z.ZodString;
6504
7046
  currency: z.ZodString;
7047
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7048
+ original: z.ZodObject<{
7049
+ currency: z.ZodString;
7050
+ amount: z.ZodNumber;
7051
+ }, "strip", z.ZodTypeAny, {
7052
+ currency: string;
7053
+ amount: number;
7054
+ }, {
7055
+ currency: string;
7056
+ amount: number;
7057
+ }>;
7058
+ discount: z.ZodObject<{
7059
+ currency: z.ZodString;
7060
+ amount: z.ZodNumber;
7061
+ }, "strip", z.ZodTypeAny, {
7062
+ currency: string;
7063
+ amount: number;
7064
+ }, {
7065
+ currency: string;
7066
+ amount: number;
7067
+ }>;
7068
+ subtotal: z.ZodObject<{
7069
+ currency: z.ZodString;
7070
+ amount: z.ZodNumber;
7071
+ }, "strip", z.ZodTypeAny, {
7072
+ currency: string;
7073
+ amount: number;
7074
+ }, {
7075
+ currency: string;
7076
+ amount: number;
7077
+ }>;
7078
+ taxes: z.ZodObject<{
7079
+ currency: z.ZodString;
7080
+ amount: z.ZodNumber;
7081
+ }, "strip", z.ZodTypeAny, {
7082
+ currency: string;
7083
+ amount: number;
7084
+ }, {
7085
+ currency: string;
7086
+ amount: number;
7087
+ }>;
7088
+ due: z.ZodObject<{
7089
+ currency: z.ZodString;
7090
+ amount: z.ZodNumber;
7091
+ }, "strip", z.ZodTypeAny, {
7092
+ currency: string;
7093
+ amount: number;
7094
+ }, {
7095
+ currency: string;
7096
+ amount: number;
7097
+ }>;
7098
+ }, "strip", z.ZodTypeAny, {
7099
+ discount: {
7100
+ currency: string;
7101
+ amount: number;
7102
+ };
7103
+ original: {
7104
+ currency: string;
7105
+ amount: number;
7106
+ };
7107
+ subtotal: {
7108
+ currency: string;
7109
+ amount: number;
7110
+ };
7111
+ taxes: {
7112
+ currency: string;
7113
+ amount: number;
7114
+ };
7115
+ due: {
7116
+ currency: string;
7117
+ amount: number;
7118
+ };
7119
+ }, {
7120
+ discount: {
7121
+ currency: string;
7122
+ amount: number;
7123
+ };
7124
+ original: {
7125
+ currency: string;
7126
+ amount: number;
7127
+ };
7128
+ subtotal: {
7129
+ currency: string;
7130
+ amount: number;
7131
+ };
7132
+ taxes: {
7133
+ currency: string;
7134
+ amount: number;
7135
+ };
7136
+ due: {
7137
+ currency: string;
7138
+ amount: number;
7139
+ };
7140
+ }>>>;
6505
7141
  items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6506
7142
  id: z.ZodString;
6507
7143
  type: z.ZodLiteral<"Product">;
@@ -6659,6 +7295,82 @@ declare const openOrderSchema: z.ZodObject<{
6659
7295
  minQuantity: number;
6660
7296
  }[] | null | undefined;
6661
7297
  }>>;
7298
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7299
+ original: z.ZodObject<{
7300
+ currency: z.ZodString;
7301
+ amount: z.ZodNumber;
7302
+ }, "strip", z.ZodTypeAny, {
7303
+ currency: string;
7304
+ amount: number;
7305
+ }, {
7306
+ currency: string;
7307
+ amount: number;
7308
+ }>;
7309
+ discount: z.ZodObject<{
7310
+ currency: z.ZodString;
7311
+ amount: z.ZodNumber;
7312
+ }, "strip", z.ZodTypeAny, {
7313
+ currency: string;
7314
+ amount: number;
7315
+ }, {
7316
+ currency: string;
7317
+ amount: number;
7318
+ }>;
7319
+ subtotal: z.ZodObject<{
7320
+ currency: z.ZodString;
7321
+ amount: z.ZodNumber;
7322
+ }, "strip", z.ZodTypeAny, {
7323
+ currency: string;
7324
+ amount: number;
7325
+ }, {
7326
+ currency: string;
7327
+ amount: number;
7328
+ }>;
7329
+ due: z.ZodObject<{
7330
+ currency: z.ZodString;
7331
+ amount: z.ZodNumber;
7332
+ }, "strip", z.ZodTypeAny, {
7333
+ currency: string;
7334
+ amount: number;
7335
+ }, {
7336
+ currency: string;
7337
+ amount: number;
7338
+ }>;
7339
+ }, "strip", z.ZodTypeAny, {
7340
+ discount: {
7341
+ currency: string;
7342
+ amount: number;
7343
+ };
7344
+ original: {
7345
+ currency: string;
7346
+ amount: number;
7347
+ };
7348
+ subtotal: {
7349
+ currency: string;
7350
+ amount: number;
7351
+ };
7352
+ due: {
7353
+ currency: string;
7354
+ amount: number;
7355
+ };
7356
+ }, {
7357
+ discount: {
7358
+ currency: string;
7359
+ amount: number;
7360
+ };
7361
+ original: {
7362
+ currency: string;
7363
+ amount: number;
7364
+ };
7365
+ subtotal: {
7366
+ currency: string;
7367
+ amount: number;
7368
+ };
7369
+ due: {
7370
+ currency: string;
7371
+ amount: number;
7372
+ };
7373
+ }>>>;
6662
7374
  product: z.ZodOptional<z.ZodObject<{
6663
7375
  id: z.ZodString;
6664
7376
  name: z.ZodString;
@@ -6727,6 +7439,24 @@ declare const openOrderSchema: z.ZodObject<{
6727
7439
  quantity: number;
6728
7440
  productId: string;
6729
7441
  variationId: string;
7442
+ total?: {
7443
+ discount: {
7444
+ currency: string;
7445
+ amount: number;
7446
+ };
7447
+ original: {
7448
+ currency: string;
7449
+ amount: number;
7450
+ };
7451
+ subtotal: {
7452
+ currency: string;
7453
+ amount: number;
7454
+ };
7455
+ due: {
7456
+ currency: string;
7457
+ amount: number;
7458
+ };
7459
+ } | null | undefined;
6730
7460
  price?: Record<string, number> | undefined;
6731
7461
  product?: {
6732
7462
  id: string;
@@ -6792,6 +7522,24 @@ declare const openOrderSchema: z.ZodObject<{
6792
7522
  quantity: number;
6793
7523
  productId: string;
6794
7524
  variationId: string;
7525
+ total?: {
7526
+ discount: {
7527
+ currency: string;
7528
+ amount: number;
7529
+ };
7530
+ original: {
7531
+ currency: string;
7532
+ amount: number;
7533
+ };
7534
+ subtotal: {
7535
+ currency: string;
7536
+ amount: number;
7537
+ };
7538
+ due: {
7539
+ currency: string;
7540
+ amount: number;
7541
+ };
7542
+ } | null | undefined;
6795
7543
  price?: Record<string, number> | undefined;
6796
7544
  product?: {
6797
7545
  id: string;
@@ -7009,6 +7757,82 @@ declare const openOrderSchema: z.ZodObject<{
7009
7757
  minQuantity: number;
7010
7758
  }[] | null | undefined;
7011
7759
  }>>;
7760
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7761
+ original: z.ZodObject<{
7762
+ currency: z.ZodString;
7763
+ amount: z.ZodNumber;
7764
+ }, "strip", z.ZodTypeAny, {
7765
+ currency: string;
7766
+ amount: number;
7767
+ }, {
7768
+ currency: string;
7769
+ amount: number;
7770
+ }>;
7771
+ discount: z.ZodObject<{
7772
+ currency: z.ZodString;
7773
+ amount: z.ZodNumber;
7774
+ }, "strip", z.ZodTypeAny, {
7775
+ currency: string;
7776
+ amount: number;
7777
+ }, {
7778
+ currency: string;
7779
+ amount: number;
7780
+ }>;
7781
+ subtotal: z.ZodObject<{
7782
+ currency: z.ZodString;
7783
+ amount: z.ZodNumber;
7784
+ }, "strip", z.ZodTypeAny, {
7785
+ currency: string;
7786
+ amount: number;
7787
+ }, {
7788
+ currency: string;
7789
+ amount: number;
7790
+ }>;
7791
+ due: z.ZodObject<{
7792
+ currency: z.ZodString;
7793
+ amount: z.ZodNumber;
7794
+ }, "strip", z.ZodTypeAny, {
7795
+ currency: string;
7796
+ amount: number;
7797
+ }, {
7798
+ currency: string;
7799
+ amount: number;
7800
+ }>;
7801
+ }, "strip", z.ZodTypeAny, {
7802
+ discount: {
7803
+ currency: string;
7804
+ amount: number;
7805
+ };
7806
+ original: {
7807
+ currency: string;
7808
+ amount: number;
7809
+ };
7810
+ subtotal: {
7811
+ currency: string;
7812
+ amount: number;
7813
+ };
7814
+ due: {
7815
+ currency: string;
7816
+ amount: number;
7817
+ };
7818
+ }, {
7819
+ discount: {
7820
+ currency: string;
7821
+ amount: number;
7822
+ };
7823
+ original: {
7824
+ currency: string;
7825
+ amount: number;
7826
+ };
7827
+ subtotal: {
7828
+ currency: string;
7829
+ amount: number;
7830
+ };
7831
+ due: {
7832
+ currency: string;
7833
+ amount: number;
7834
+ };
7835
+ }>>>;
7012
7836
  bundle: z.ZodOptional<z.ZodObject<{
7013
7837
  id: z.ZodString;
7014
7838
  name: z.ZodString;
@@ -7115,6 +7939,24 @@ declare const openOrderSchema: z.ZodObject<{
7115
7939
  quantity: number;
7116
7940
  variationId: string;
7117
7941
  bundleId: string;
7942
+ total?: {
7943
+ discount: {
7944
+ currency: string;
7945
+ amount: number;
7946
+ };
7947
+ original: {
7948
+ currency: string;
7949
+ amount: number;
7950
+ };
7951
+ subtotal: {
7952
+ currency: string;
7953
+ amount: number;
7954
+ };
7955
+ due: {
7956
+ currency: string;
7957
+ amount: number;
7958
+ };
7959
+ } | null | undefined;
7118
7960
  price?: Record<string, number> | undefined;
7119
7961
  partial?: boolean | undefined;
7120
7962
  bundle?: {
@@ -7189,6 +8031,24 @@ declare const openOrderSchema: z.ZodObject<{
7189
8031
  quantity: number;
7190
8032
  variationId: string;
7191
8033
  bundleId: string;
8034
+ total?: {
8035
+ discount: {
8036
+ currency: string;
8037
+ amount: number;
8038
+ };
8039
+ original: {
8040
+ currency: string;
8041
+ amount: number;
8042
+ };
8043
+ subtotal: {
8044
+ currency: string;
8045
+ amount: number;
8046
+ };
8047
+ due: {
8048
+ currency: string;
8049
+ amount: number;
8050
+ };
8051
+ } | null | undefined;
7192
8052
  price?: Record<string, number> | undefined;
7193
8053
  partial?: boolean | undefined;
7194
8054
  bundle?: {
@@ -7282,6 +8142,24 @@ declare const openOrderSchema: z.ZodObject<{
7282
8142
  quantity: number;
7283
8143
  productId: string;
7284
8144
  variationId: string;
8145
+ total?: {
8146
+ discount: {
8147
+ currency: string;
8148
+ amount: number;
8149
+ };
8150
+ original: {
8151
+ currency: string;
8152
+ amount: number;
8153
+ };
8154
+ subtotal: {
8155
+ currency: string;
8156
+ amount: number;
8157
+ };
8158
+ due: {
8159
+ currency: string;
8160
+ amount: number;
8161
+ };
8162
+ } | null | undefined;
7285
8163
  price?: Record<string, number> | undefined;
7286
8164
  product?: {
7287
8165
  id: string;
@@ -7347,6 +8225,24 @@ declare const openOrderSchema: z.ZodObject<{
7347
8225
  quantity: number;
7348
8226
  variationId: string;
7349
8227
  bundleId: string;
8228
+ total?: {
8229
+ discount: {
8230
+ currency: string;
8231
+ amount: number;
8232
+ };
8233
+ original: {
8234
+ currency: string;
8235
+ amount: number;
8236
+ };
8237
+ subtotal: {
8238
+ currency: string;
8239
+ amount: number;
8240
+ };
8241
+ due: {
8242
+ currency: string;
8243
+ amount: number;
8244
+ };
8245
+ } | null | undefined;
7350
8246
  price?: Record<string, number> | undefined;
7351
8247
  partial?: boolean | undefined;
7352
8248
  bundle?: {
@@ -7421,6 +8317,28 @@ declare const openOrderSchema: z.ZodObject<{
7421
8317
  code: string;
7422
8318
  description: string;
7423
8319
  }[];
8320
+ total?: {
8321
+ discount: {
8322
+ currency: string;
8323
+ amount: number;
8324
+ };
8325
+ original: {
8326
+ currency: string;
8327
+ amount: number;
8328
+ };
8329
+ subtotal: {
8330
+ currency: string;
8331
+ amount: number;
8332
+ };
8333
+ taxes: {
8334
+ currency: string;
8335
+ amount: number;
8336
+ };
8337
+ due: {
8338
+ currency: string;
8339
+ amount: number;
8340
+ };
8341
+ } | null | undefined;
7424
8342
  checkoutUrl?: string | undefined;
7425
8343
  embeddedCheckoutUrl?: string | undefined;
7426
8344
  }, {
@@ -7432,6 +8350,24 @@ declare const openOrderSchema: z.ZodObject<{
7432
8350
  quantity: number;
7433
8351
  productId: string;
7434
8352
  variationId: string;
8353
+ total?: {
8354
+ discount: {
8355
+ currency: string;
8356
+ amount: number;
8357
+ };
8358
+ original: {
8359
+ currency: string;
8360
+ amount: number;
8361
+ };
8362
+ subtotal: {
8363
+ currency: string;
8364
+ amount: number;
8365
+ };
8366
+ due: {
8367
+ currency: string;
8368
+ amount: number;
8369
+ };
8370
+ } | null | undefined;
7435
8371
  price?: Record<string, number> | undefined;
7436
8372
  product?: {
7437
8373
  id: string;
@@ -7497,176 +8433,122 @@ declare const openOrderSchema: z.ZodObject<{
7497
8433
  quantity: number;
7498
8434
  variationId: string;
7499
8435
  bundleId: string;
8436
+ total?: {
8437
+ discount: {
8438
+ currency: string;
8439
+ amount: number;
8440
+ };
8441
+ original: {
8442
+ currency: string;
8443
+ amount: number;
8444
+ };
8445
+ subtotal: {
8446
+ currency: string;
8447
+ amount: number;
8448
+ };
8449
+ due: {
8450
+ currency: string;
8451
+ amount: number;
8452
+ };
8453
+ } | null | undefined;
7500
8454
  price?: Record<string, number> | undefined;
7501
8455
  partial?: boolean | undefined;
7502
8456
  bundle?: {
7503
- id: string;
7504
- name: string;
7505
- tagline: string;
7506
- iconUrl: string | null;
7507
- products: ({
7508
- id: string;
7509
- name: string;
7510
- tagline: string;
7511
- iconUrl: string | null;
7512
- } & {
7513
- included?: boolean | undefined;
7514
- })[];
7515
- } | undefined;
7516
- isDefaultVariation?: boolean | null | undefined;
7517
- isSubcriptionPayment?: boolean | null | undefined;
7518
- variation?: {
7519
- id: string;
7520
- name: string;
7521
- originalPrice: Record<string, number>;
7522
- price: Record<string, number>;
7523
- hasDiscount: boolean;
7524
- recurrence: {
7525
- type: "OneOff";
7526
- } | {
7527
- type: "Recurring";
7528
- cycleLength: CycleLength;
7529
- };
7530
- discount?: {
7531
- name: string;
7532
- type: "PercentageOffDiscount";
7533
- percentage: number;
7534
- isExclusive: boolean;
7535
- description?: string | undefined;
7536
- total?: Record<string, number> | undefined;
7537
- recurringPaymentUseCount?: number | undefined;
7538
- } | {
7539
- name: string;
7540
- type: "FlatAmountOffDiscount";
7541
- isExclusive: boolean;
7542
- description?: string | undefined;
7543
- total?: Record<string, number> | undefined;
7544
- recurringPaymentUseCount?: number | undefined;
7545
- } | undefined;
7546
- pricingTiers?: {
7547
- originalPrice: Record<string, number>;
7548
- price: Record<string, number>;
7549
- minQuantity: number;
7550
- }[] | null | undefined;
7551
- } | undefined;
7552
- appliedDiscount?: {
7553
- name: string;
7554
- type: "PercentageOffDiscount";
7555
- percentage: number;
7556
- isExclusive: boolean;
7557
- description?: string | undefined;
7558
- total?: Record<string, number> | undefined;
7559
- recurringPaymentUseCount?: number | undefined;
7560
- } | {
7561
- name: string;
7562
- type: "FlatAmountOffDiscount";
7563
- isExclusive: boolean;
7564
- description?: string | undefined;
7565
- total?: Record<string, number> | undefined;
7566
- recurringPaymentUseCount?: number | undefined;
7567
- } | undefined;
7568
- })[];
7569
- couponsApplied: {
7570
- name: string;
7571
- code: string;
7572
- description: string;
7573
- }[];
7574
- checkoutUrl?: string | undefined;
7575
- embeddedCheckoutUrl?: string | undefined;
7576
- }>;
7577
- declare const orderTotalSchema: z.ZodObject<{
7578
- original: z.ZodObject<{
7579
- currency: z.ZodString;
7580
- amount: z.ZodNumber;
7581
- }, "strip", z.ZodTypeAny, {
7582
- currency: string;
7583
- amount: number;
7584
- }, {
7585
- currency: string;
7586
- amount: number;
7587
- }>;
7588
- discount: z.ZodObject<{
7589
- currency: z.ZodString;
7590
- amount: z.ZodNumber;
7591
- }, "strip", z.ZodTypeAny, {
7592
- currency: string;
7593
- amount: number;
7594
- }, {
7595
- currency: string;
7596
- amount: number;
7597
- }>;
7598
- subtotal: z.ZodObject<{
7599
- currency: z.ZodString;
7600
- amount: z.ZodNumber;
7601
- }, "strip", z.ZodTypeAny, {
7602
- currency: string;
7603
- amount: number;
7604
- }, {
7605
- currency: string;
7606
- amount: number;
7607
- }>;
7608
- taxes: z.ZodObject<{
7609
- currency: z.ZodString;
7610
- amount: z.ZodNumber;
7611
- }, "strip", z.ZodTypeAny, {
7612
- currency: string;
7613
- amount: number;
7614
- }, {
7615
- currency: string;
7616
- amount: number;
7617
- }>;
7618
- due: z.ZodObject<{
7619
- currency: z.ZodString;
7620
- amount: z.ZodNumber;
7621
- }, "strip", z.ZodTypeAny, {
7622
- currency: string;
7623
- amount: number;
7624
- }, {
7625
- currency: string;
7626
- amount: number;
7627
- }>;
7628
- }, "strip", z.ZodTypeAny, {
7629
- discount: {
7630
- currency: string;
7631
- amount: number;
7632
- };
7633
- original: {
7634
- currency: string;
7635
- amount: number;
7636
- };
7637
- subtotal: {
7638
- currency: string;
7639
- amount: number;
7640
- };
7641
- taxes: {
7642
- currency: string;
7643
- amount: number;
7644
- };
7645
- due: {
7646
- currency: string;
7647
- amount: number;
7648
- };
7649
- }, {
7650
- discount: {
7651
- currency: string;
7652
- amount: number;
7653
- };
7654
- original: {
7655
- currency: string;
7656
- amount: number;
7657
- };
7658
- subtotal: {
7659
- currency: string;
7660
- amount: number;
7661
- };
7662
- taxes: {
7663
- currency: string;
7664
- amount: number;
7665
- };
7666
- due: {
7667
- currency: string;
7668
- amount: number;
7669
- };
8457
+ id: string;
8458
+ name: string;
8459
+ tagline: string;
8460
+ iconUrl: string | null;
8461
+ products: ({
8462
+ id: string;
8463
+ name: string;
8464
+ tagline: string;
8465
+ iconUrl: string | null;
8466
+ } & {
8467
+ included?: boolean | undefined;
8468
+ })[];
8469
+ } | undefined;
8470
+ isDefaultVariation?: boolean | null | undefined;
8471
+ isSubcriptionPayment?: boolean | null | undefined;
8472
+ variation?: {
8473
+ id: string;
8474
+ name: string;
8475
+ originalPrice: Record<string, number>;
8476
+ price: Record<string, number>;
8477
+ hasDiscount: boolean;
8478
+ recurrence: {
8479
+ type: "OneOff";
8480
+ } | {
8481
+ type: "Recurring";
8482
+ cycleLength: CycleLength;
8483
+ };
8484
+ discount?: {
8485
+ name: string;
8486
+ type: "PercentageOffDiscount";
8487
+ percentage: number;
8488
+ isExclusive: boolean;
8489
+ description?: string | undefined;
8490
+ total?: Record<string, number> | undefined;
8491
+ recurringPaymentUseCount?: number | undefined;
8492
+ } | {
8493
+ name: string;
8494
+ type: "FlatAmountOffDiscount";
8495
+ isExclusive: boolean;
8496
+ description?: string | undefined;
8497
+ total?: Record<string, number> | undefined;
8498
+ recurringPaymentUseCount?: number | undefined;
8499
+ } | undefined;
8500
+ pricingTiers?: {
8501
+ originalPrice: Record<string, number>;
8502
+ price: Record<string, number>;
8503
+ minQuantity: number;
8504
+ }[] | null | undefined;
8505
+ } | undefined;
8506
+ appliedDiscount?: {
8507
+ name: string;
8508
+ type: "PercentageOffDiscount";
8509
+ percentage: number;
8510
+ isExclusive: boolean;
8511
+ description?: string | undefined;
8512
+ total?: Record<string, number> | undefined;
8513
+ recurringPaymentUseCount?: number | undefined;
8514
+ } | {
8515
+ name: string;
8516
+ type: "FlatAmountOffDiscount";
8517
+ isExclusive: boolean;
8518
+ description?: string | undefined;
8519
+ total?: Record<string, number> | undefined;
8520
+ recurringPaymentUseCount?: number | undefined;
8521
+ } | undefined;
8522
+ })[];
8523
+ couponsApplied: {
8524
+ name: string;
8525
+ code: string;
8526
+ description: string;
8527
+ }[];
8528
+ total?: {
8529
+ discount: {
8530
+ currency: string;
8531
+ amount: number;
8532
+ };
8533
+ original: {
8534
+ currency: string;
8535
+ amount: number;
8536
+ };
8537
+ subtotal: {
8538
+ currency: string;
8539
+ amount: number;
8540
+ };
8541
+ taxes: {
8542
+ currency: string;
8543
+ amount: number;
8544
+ };
8545
+ due: {
8546
+ currency: string;
8547
+ amount: number;
8548
+ };
8549
+ } | null | undefined;
8550
+ checkoutUrl?: string | undefined;
8551
+ embeddedCheckoutUrl?: string | undefined;
7670
8552
  }>;
7671
8553
  declare const completedOrderSchema: z.ZodObject<{
7672
8554
  id: z.ZodString;
@@ -7977,6 +8859,82 @@ declare const completedOrderSchema: z.ZodObject<{
7977
8859
  minQuantity: number;
7978
8860
  }[] | null | undefined;
7979
8861
  }>>;
8862
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8863
+ original: z.ZodObject<{
8864
+ currency: z.ZodString;
8865
+ amount: z.ZodNumber;
8866
+ }, "strip", z.ZodTypeAny, {
8867
+ currency: string;
8868
+ amount: number;
8869
+ }, {
8870
+ currency: string;
8871
+ amount: number;
8872
+ }>;
8873
+ discount: z.ZodObject<{
8874
+ currency: z.ZodString;
8875
+ amount: z.ZodNumber;
8876
+ }, "strip", z.ZodTypeAny, {
8877
+ currency: string;
8878
+ amount: number;
8879
+ }, {
8880
+ currency: string;
8881
+ amount: number;
8882
+ }>;
8883
+ subtotal: z.ZodObject<{
8884
+ currency: z.ZodString;
8885
+ amount: z.ZodNumber;
8886
+ }, "strip", z.ZodTypeAny, {
8887
+ currency: string;
8888
+ amount: number;
8889
+ }, {
8890
+ currency: string;
8891
+ amount: number;
8892
+ }>;
8893
+ due: z.ZodObject<{
8894
+ currency: z.ZodString;
8895
+ amount: z.ZodNumber;
8896
+ }, "strip", z.ZodTypeAny, {
8897
+ currency: string;
8898
+ amount: number;
8899
+ }, {
8900
+ currency: string;
8901
+ amount: number;
8902
+ }>;
8903
+ }, "strip", z.ZodTypeAny, {
8904
+ discount: {
8905
+ currency: string;
8906
+ amount: number;
8907
+ };
8908
+ original: {
8909
+ currency: string;
8910
+ amount: number;
8911
+ };
8912
+ subtotal: {
8913
+ currency: string;
8914
+ amount: number;
8915
+ };
8916
+ due: {
8917
+ currency: string;
8918
+ amount: number;
8919
+ };
8920
+ }, {
8921
+ discount: {
8922
+ currency: string;
8923
+ amount: number;
8924
+ };
8925
+ original: {
8926
+ currency: string;
8927
+ amount: number;
8928
+ };
8929
+ subtotal: {
8930
+ currency: string;
8931
+ amount: number;
8932
+ };
8933
+ due: {
8934
+ currency: string;
8935
+ amount: number;
8936
+ };
8937
+ }>>>;
7980
8938
  product: z.ZodOptional<z.ZodObject<{
7981
8939
  id: z.ZodString;
7982
8940
  name: z.ZodString;
@@ -8045,6 +9003,24 @@ declare const completedOrderSchema: z.ZodObject<{
8045
9003
  quantity: number;
8046
9004
  productId: string;
8047
9005
  variationId: string;
9006
+ total?: {
9007
+ discount: {
9008
+ currency: string;
9009
+ amount: number;
9010
+ };
9011
+ original: {
9012
+ currency: string;
9013
+ amount: number;
9014
+ };
9015
+ subtotal: {
9016
+ currency: string;
9017
+ amount: number;
9018
+ };
9019
+ due: {
9020
+ currency: string;
9021
+ amount: number;
9022
+ };
9023
+ } | null | undefined;
8048
9024
  price?: Record<string, number> | undefined;
8049
9025
  product?: {
8050
9026
  id: string;
@@ -8110,6 +9086,24 @@ declare const completedOrderSchema: z.ZodObject<{
8110
9086
  quantity: number;
8111
9087
  productId: string;
8112
9088
  variationId: string;
9089
+ total?: {
9090
+ discount: {
9091
+ currency: string;
9092
+ amount: number;
9093
+ };
9094
+ original: {
9095
+ currency: string;
9096
+ amount: number;
9097
+ };
9098
+ subtotal: {
9099
+ currency: string;
9100
+ amount: number;
9101
+ };
9102
+ due: {
9103
+ currency: string;
9104
+ amount: number;
9105
+ };
9106
+ } | null | undefined;
8113
9107
  price?: Record<string, number> | undefined;
8114
9108
  product?: {
8115
9109
  id: string;
@@ -8305,28 +9299,104 @@ declare const completedOrderSchema: z.ZodObject<{
8305
9299
  type: "Recurring";
8306
9300
  cycleLength: CycleLength;
8307
9301
  };
8308
- discount?: {
8309
- name: string;
8310
- type: "PercentageOffDiscount";
8311
- percentage: number;
8312
- isExclusive: boolean;
8313
- description?: string | undefined;
8314
- total?: Record<string, number> | undefined;
8315
- recurringPaymentUseCount?: number | undefined;
8316
- } | {
8317
- name: string;
8318
- type: "FlatAmountOffDiscount";
8319
- isExclusive: boolean;
8320
- description?: string | undefined;
8321
- total?: Record<string, number> | undefined;
8322
- recurringPaymentUseCount?: number | undefined;
8323
- } | undefined;
8324
- pricingTiers?: {
8325
- originalPrice: Record<string, number>;
8326
- price: Record<string, number>;
8327
- minQuantity: number;
8328
- }[] | null | undefined;
8329
- }>>;
9302
+ discount?: {
9303
+ name: string;
9304
+ type: "PercentageOffDiscount";
9305
+ percentage: number;
9306
+ isExclusive: boolean;
9307
+ description?: string | undefined;
9308
+ total?: Record<string, number> | undefined;
9309
+ recurringPaymentUseCount?: number | undefined;
9310
+ } | {
9311
+ name: string;
9312
+ type: "FlatAmountOffDiscount";
9313
+ isExclusive: boolean;
9314
+ description?: string | undefined;
9315
+ total?: Record<string, number> | undefined;
9316
+ recurringPaymentUseCount?: number | undefined;
9317
+ } | undefined;
9318
+ pricingTiers?: {
9319
+ originalPrice: Record<string, number>;
9320
+ price: Record<string, number>;
9321
+ minQuantity: number;
9322
+ }[] | null | undefined;
9323
+ }>>;
9324
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9325
+ original: z.ZodObject<{
9326
+ currency: z.ZodString;
9327
+ amount: z.ZodNumber;
9328
+ }, "strip", z.ZodTypeAny, {
9329
+ currency: string;
9330
+ amount: number;
9331
+ }, {
9332
+ currency: string;
9333
+ amount: number;
9334
+ }>;
9335
+ discount: z.ZodObject<{
9336
+ currency: z.ZodString;
9337
+ amount: z.ZodNumber;
9338
+ }, "strip", z.ZodTypeAny, {
9339
+ currency: string;
9340
+ amount: number;
9341
+ }, {
9342
+ currency: string;
9343
+ amount: number;
9344
+ }>;
9345
+ subtotal: z.ZodObject<{
9346
+ currency: z.ZodString;
9347
+ amount: z.ZodNumber;
9348
+ }, "strip", z.ZodTypeAny, {
9349
+ currency: string;
9350
+ amount: number;
9351
+ }, {
9352
+ currency: string;
9353
+ amount: number;
9354
+ }>;
9355
+ due: z.ZodObject<{
9356
+ currency: z.ZodString;
9357
+ amount: z.ZodNumber;
9358
+ }, "strip", z.ZodTypeAny, {
9359
+ currency: string;
9360
+ amount: number;
9361
+ }, {
9362
+ currency: string;
9363
+ amount: number;
9364
+ }>;
9365
+ }, "strip", z.ZodTypeAny, {
9366
+ discount: {
9367
+ currency: string;
9368
+ amount: number;
9369
+ };
9370
+ original: {
9371
+ currency: string;
9372
+ amount: number;
9373
+ };
9374
+ subtotal: {
9375
+ currency: string;
9376
+ amount: number;
9377
+ };
9378
+ due: {
9379
+ currency: string;
9380
+ amount: number;
9381
+ };
9382
+ }, {
9383
+ discount: {
9384
+ currency: string;
9385
+ amount: number;
9386
+ };
9387
+ original: {
9388
+ currency: string;
9389
+ amount: number;
9390
+ };
9391
+ subtotal: {
9392
+ currency: string;
9393
+ amount: number;
9394
+ };
9395
+ due: {
9396
+ currency: string;
9397
+ amount: number;
9398
+ };
9399
+ }>>>;
8330
9400
  bundle: z.ZodOptional<z.ZodObject<{
8331
9401
  id: z.ZodString;
8332
9402
  name: z.ZodString;
@@ -8433,6 +9503,24 @@ declare const completedOrderSchema: z.ZodObject<{
8433
9503
  quantity: number;
8434
9504
  variationId: string;
8435
9505
  bundleId: string;
9506
+ total?: {
9507
+ discount: {
9508
+ currency: string;
9509
+ amount: number;
9510
+ };
9511
+ original: {
9512
+ currency: string;
9513
+ amount: number;
9514
+ };
9515
+ subtotal: {
9516
+ currency: string;
9517
+ amount: number;
9518
+ };
9519
+ due: {
9520
+ currency: string;
9521
+ amount: number;
9522
+ };
9523
+ } | null | undefined;
8436
9524
  price?: Record<string, number> | undefined;
8437
9525
  partial?: boolean | undefined;
8438
9526
  bundle?: {
@@ -8507,6 +9595,24 @@ declare const completedOrderSchema: z.ZodObject<{
8507
9595
  quantity: number;
8508
9596
  variationId: string;
8509
9597
  bundleId: string;
9598
+ total?: {
9599
+ discount: {
9600
+ currency: string;
9601
+ amount: number;
9602
+ };
9603
+ original: {
9604
+ currency: string;
9605
+ amount: number;
9606
+ };
9607
+ subtotal: {
9608
+ currency: string;
9609
+ amount: number;
9610
+ };
9611
+ due: {
9612
+ currency: string;
9613
+ amount: number;
9614
+ };
9615
+ } | null | undefined;
8510
9616
  price?: Record<string, number> | undefined;
8511
9617
  partial?: boolean | undefined;
8512
9618
  bundle?: {
@@ -8621,6 +9727,24 @@ declare const completedOrderSchema: z.ZodObject<{
8621
9727
  quantity: number;
8622
9728
  productId: string;
8623
9729
  variationId: string;
9730
+ total?: {
9731
+ discount: {
9732
+ currency: string;
9733
+ amount: number;
9734
+ };
9735
+ original: {
9736
+ currency: string;
9737
+ amount: number;
9738
+ };
9739
+ subtotal: {
9740
+ currency: string;
9741
+ amount: number;
9742
+ };
9743
+ due: {
9744
+ currency: string;
9745
+ amount: number;
9746
+ };
9747
+ } | null | undefined;
8624
9748
  price?: Record<string, number> | undefined;
8625
9749
  product?: {
8626
9750
  id: string;
@@ -8686,6 +9810,24 @@ declare const completedOrderSchema: z.ZodObject<{
8686
9810
  quantity: number;
8687
9811
  variationId: string;
8688
9812
  bundleId: string;
9813
+ total?: {
9814
+ discount: {
9815
+ currency: string;
9816
+ amount: number;
9817
+ };
9818
+ original: {
9819
+ currency: string;
9820
+ amount: number;
9821
+ };
9822
+ subtotal: {
9823
+ currency: string;
9824
+ amount: number;
9825
+ };
9826
+ due: {
9827
+ currency: string;
9828
+ amount: number;
9829
+ };
9830
+ } | null | undefined;
8689
9831
  price?: Record<string, number> | undefined;
8690
9832
  partial?: boolean | undefined;
8691
9833
  bundle?: {
@@ -8806,6 +9948,24 @@ declare const completedOrderSchema: z.ZodObject<{
8806
9948
  quantity: number;
8807
9949
  productId: string;
8808
9950
  variationId: string;
9951
+ total?: {
9952
+ discount: {
9953
+ currency: string;
9954
+ amount: number;
9955
+ };
9956
+ original: {
9957
+ currency: string;
9958
+ amount: number;
9959
+ };
9960
+ subtotal: {
9961
+ currency: string;
9962
+ amount: number;
9963
+ };
9964
+ due: {
9965
+ currency: string;
9966
+ amount: number;
9967
+ };
9968
+ } | null | undefined;
8809
9969
  price?: Record<string, number> | undefined;
8810
9970
  product?: {
8811
9971
  id: string;
@@ -8871,6 +10031,24 @@ declare const completedOrderSchema: z.ZodObject<{
8871
10031
  quantity: number;
8872
10032
  variationId: string;
8873
10033
  bundleId: string;
10034
+ total?: {
10035
+ discount: {
10036
+ currency: string;
10037
+ amount: number;
10038
+ };
10039
+ original: {
10040
+ currency: string;
10041
+ amount: number;
10042
+ };
10043
+ subtotal: {
10044
+ currency: string;
10045
+ amount: number;
10046
+ };
10047
+ due: {
10048
+ currency: string;
10049
+ amount: number;
10050
+ };
10051
+ } | null | undefined;
8874
10052
  price?: Record<string, number> | undefined;
8875
10053
  partial?: boolean | undefined;
8876
10054
  bundle?: {
@@ -8960,9 +10138,103 @@ declare const completedOrderSchema: z.ZodObject<{
8960
10138
  taxId: string | null;
8961
10139
  };
8962
10140
  }>;
8963
- declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<{
10141
+ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
8964
10142
  id: z.ZodString;
8965
10143
  currency: z.ZodString;
10144
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10145
+ original: z.ZodObject<{
10146
+ currency: z.ZodString;
10147
+ amount: z.ZodNumber;
10148
+ }, "strip", z.ZodTypeAny, {
10149
+ currency: string;
10150
+ amount: number;
10151
+ }, {
10152
+ currency: string;
10153
+ amount: number;
10154
+ }>;
10155
+ discount: z.ZodObject<{
10156
+ currency: z.ZodString;
10157
+ amount: z.ZodNumber;
10158
+ }, "strip", z.ZodTypeAny, {
10159
+ currency: string;
10160
+ amount: number;
10161
+ }, {
10162
+ currency: string;
10163
+ amount: number;
10164
+ }>;
10165
+ subtotal: z.ZodObject<{
10166
+ currency: z.ZodString;
10167
+ amount: z.ZodNumber;
10168
+ }, "strip", z.ZodTypeAny, {
10169
+ currency: string;
10170
+ amount: number;
10171
+ }, {
10172
+ currency: string;
10173
+ amount: number;
10174
+ }>;
10175
+ taxes: z.ZodObject<{
10176
+ currency: z.ZodString;
10177
+ amount: z.ZodNumber;
10178
+ }, "strip", z.ZodTypeAny, {
10179
+ currency: string;
10180
+ amount: number;
10181
+ }, {
10182
+ currency: string;
10183
+ amount: number;
10184
+ }>;
10185
+ due: z.ZodObject<{
10186
+ currency: z.ZodString;
10187
+ amount: z.ZodNumber;
10188
+ }, "strip", z.ZodTypeAny, {
10189
+ currency: string;
10190
+ amount: number;
10191
+ }, {
10192
+ currency: string;
10193
+ amount: number;
10194
+ }>;
10195
+ }, "strip", z.ZodTypeAny, {
10196
+ discount: {
10197
+ currency: string;
10198
+ amount: number;
10199
+ };
10200
+ original: {
10201
+ currency: string;
10202
+ amount: number;
10203
+ };
10204
+ subtotal: {
10205
+ currency: string;
10206
+ amount: number;
10207
+ };
10208
+ taxes: {
10209
+ currency: string;
10210
+ amount: number;
10211
+ };
10212
+ due: {
10213
+ currency: string;
10214
+ amount: number;
10215
+ };
10216
+ }, {
10217
+ discount: {
10218
+ currency: string;
10219
+ amount: number;
10220
+ };
10221
+ original: {
10222
+ currency: string;
10223
+ amount: number;
10224
+ };
10225
+ subtotal: {
10226
+ currency: string;
10227
+ amount: number;
10228
+ };
10229
+ taxes: {
10230
+ currency: string;
10231
+ amount: number;
10232
+ };
10233
+ due: {
10234
+ currency: string;
10235
+ amount: number;
10236
+ };
10237
+ }>>>;
8966
10238
  items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8967
10239
  id: z.ZodString;
8968
10240
  type: z.ZodLiteral<"Product">;
@@ -9120,6 +10392,82 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9120
10392
  minQuantity: number;
9121
10393
  }[] | null | undefined;
9122
10394
  }>>;
10395
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10396
+ original: z.ZodObject<{
10397
+ currency: z.ZodString;
10398
+ amount: z.ZodNumber;
10399
+ }, "strip", z.ZodTypeAny, {
10400
+ currency: string;
10401
+ amount: number;
10402
+ }, {
10403
+ currency: string;
10404
+ amount: number;
10405
+ }>;
10406
+ discount: z.ZodObject<{
10407
+ currency: z.ZodString;
10408
+ amount: z.ZodNumber;
10409
+ }, "strip", z.ZodTypeAny, {
10410
+ currency: string;
10411
+ amount: number;
10412
+ }, {
10413
+ currency: string;
10414
+ amount: number;
10415
+ }>;
10416
+ subtotal: z.ZodObject<{
10417
+ currency: z.ZodString;
10418
+ amount: z.ZodNumber;
10419
+ }, "strip", z.ZodTypeAny, {
10420
+ currency: string;
10421
+ amount: number;
10422
+ }, {
10423
+ currency: string;
10424
+ amount: number;
10425
+ }>;
10426
+ due: z.ZodObject<{
10427
+ currency: z.ZodString;
10428
+ amount: z.ZodNumber;
10429
+ }, "strip", z.ZodTypeAny, {
10430
+ currency: string;
10431
+ amount: number;
10432
+ }, {
10433
+ currency: string;
10434
+ amount: number;
10435
+ }>;
10436
+ }, "strip", z.ZodTypeAny, {
10437
+ discount: {
10438
+ currency: string;
10439
+ amount: number;
10440
+ };
10441
+ original: {
10442
+ currency: string;
10443
+ amount: number;
10444
+ };
10445
+ subtotal: {
10446
+ currency: string;
10447
+ amount: number;
10448
+ };
10449
+ due: {
10450
+ currency: string;
10451
+ amount: number;
10452
+ };
10453
+ }, {
10454
+ discount: {
10455
+ currency: string;
10456
+ amount: number;
10457
+ };
10458
+ original: {
10459
+ currency: string;
10460
+ amount: number;
10461
+ };
10462
+ subtotal: {
10463
+ currency: string;
10464
+ amount: number;
10465
+ };
10466
+ due: {
10467
+ currency: string;
10468
+ amount: number;
10469
+ };
10470
+ }>>>;
9123
10471
  product: z.ZodOptional<z.ZodObject<{
9124
10472
  id: z.ZodString;
9125
10473
  name: z.ZodString;
@@ -9188,6 +10536,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9188
10536
  quantity: number;
9189
10537
  productId: string;
9190
10538
  variationId: string;
10539
+ total?: {
10540
+ discount: {
10541
+ currency: string;
10542
+ amount: number;
10543
+ };
10544
+ original: {
10545
+ currency: string;
10546
+ amount: number;
10547
+ };
10548
+ subtotal: {
10549
+ currency: string;
10550
+ amount: number;
10551
+ };
10552
+ due: {
10553
+ currency: string;
10554
+ amount: number;
10555
+ };
10556
+ } | null | undefined;
9191
10557
  price?: Record<string, number> | undefined;
9192
10558
  product?: {
9193
10559
  id: string;
@@ -9253,6 +10619,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9253
10619
  quantity: number;
9254
10620
  productId: string;
9255
10621
  variationId: string;
10622
+ total?: {
10623
+ discount: {
10624
+ currency: string;
10625
+ amount: number;
10626
+ };
10627
+ original: {
10628
+ currency: string;
10629
+ amount: number;
10630
+ };
10631
+ subtotal: {
10632
+ currency: string;
10633
+ amount: number;
10634
+ };
10635
+ due: {
10636
+ currency: string;
10637
+ amount: number;
10638
+ };
10639
+ } | null | undefined;
9256
10640
  price?: Record<string, number> | undefined;
9257
10641
  product?: {
9258
10642
  id: string;
@@ -9470,6 +10854,82 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9470
10854
  minQuantity: number;
9471
10855
  }[] | null | undefined;
9472
10856
  }>>;
10857
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10858
+ original: z.ZodObject<{
10859
+ currency: z.ZodString;
10860
+ amount: z.ZodNumber;
10861
+ }, "strip", z.ZodTypeAny, {
10862
+ currency: string;
10863
+ amount: number;
10864
+ }, {
10865
+ currency: string;
10866
+ amount: number;
10867
+ }>;
10868
+ discount: z.ZodObject<{
10869
+ currency: z.ZodString;
10870
+ amount: z.ZodNumber;
10871
+ }, "strip", z.ZodTypeAny, {
10872
+ currency: string;
10873
+ amount: number;
10874
+ }, {
10875
+ currency: string;
10876
+ amount: number;
10877
+ }>;
10878
+ subtotal: z.ZodObject<{
10879
+ currency: z.ZodString;
10880
+ amount: z.ZodNumber;
10881
+ }, "strip", z.ZodTypeAny, {
10882
+ currency: string;
10883
+ amount: number;
10884
+ }, {
10885
+ currency: string;
10886
+ amount: number;
10887
+ }>;
10888
+ due: z.ZodObject<{
10889
+ currency: z.ZodString;
10890
+ amount: z.ZodNumber;
10891
+ }, "strip", z.ZodTypeAny, {
10892
+ currency: string;
10893
+ amount: number;
10894
+ }, {
10895
+ currency: string;
10896
+ amount: number;
10897
+ }>;
10898
+ }, "strip", z.ZodTypeAny, {
10899
+ discount: {
10900
+ currency: string;
10901
+ amount: number;
10902
+ };
10903
+ original: {
10904
+ currency: string;
10905
+ amount: number;
10906
+ };
10907
+ subtotal: {
10908
+ currency: string;
10909
+ amount: number;
10910
+ };
10911
+ due: {
10912
+ currency: string;
10913
+ amount: number;
10914
+ };
10915
+ }, {
10916
+ discount: {
10917
+ currency: string;
10918
+ amount: number;
10919
+ };
10920
+ original: {
10921
+ currency: string;
10922
+ amount: number;
10923
+ };
10924
+ subtotal: {
10925
+ currency: string;
10926
+ amount: number;
10927
+ };
10928
+ due: {
10929
+ currency: string;
10930
+ amount: number;
10931
+ };
10932
+ }>>>;
9473
10933
  bundle: z.ZodOptional<z.ZodObject<{
9474
10934
  id: z.ZodString;
9475
10935
  name: z.ZodString;
@@ -9576,6 +11036,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9576
11036
  quantity: number;
9577
11037
  variationId: string;
9578
11038
  bundleId: string;
11039
+ total?: {
11040
+ discount: {
11041
+ currency: string;
11042
+ amount: number;
11043
+ };
11044
+ original: {
11045
+ currency: string;
11046
+ amount: number;
11047
+ };
11048
+ subtotal: {
11049
+ currency: string;
11050
+ amount: number;
11051
+ };
11052
+ due: {
11053
+ currency: string;
11054
+ amount: number;
11055
+ };
11056
+ } | null | undefined;
9579
11057
  price?: Record<string, number> | undefined;
9580
11058
  partial?: boolean | undefined;
9581
11059
  bundle?: {
@@ -9650,6 +11128,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9650
11128
  quantity: number;
9651
11129
  variationId: string;
9652
11130
  bundleId: string;
11131
+ total?: {
11132
+ discount: {
11133
+ currency: string;
11134
+ amount: number;
11135
+ };
11136
+ original: {
11137
+ currency: string;
11138
+ amount: number;
11139
+ };
11140
+ subtotal: {
11141
+ currency: string;
11142
+ amount: number;
11143
+ };
11144
+ due: {
11145
+ currency: string;
11146
+ amount: number;
11147
+ };
11148
+ } | null | undefined;
9653
11149
  price?: Record<string, number> | undefined;
9654
11150
  partial?: boolean | undefined;
9655
11151
  bundle?: {
@@ -9734,9 +11230,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9734
11230
  }>, "many">;
9735
11231
  checkoutUrl: z.ZodOptional<z.ZodString>;
9736
11232
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
9737
- }, {
11233
+ } & {
9738
11234
  status: z.ZodLiteral<OrderStatus.Open>;
9739
- }>, "strip", z.ZodTypeAny, {
11235
+ }, "strip", z.ZodTypeAny, {
9740
11236
  id: string;
9741
11237
  status: OrderStatus.Open;
9742
11238
  currency: string;
@@ -9746,6 +11242,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9746
11242
  quantity: number;
9747
11243
  productId: string;
9748
11244
  variationId: string;
11245
+ total?: {
11246
+ discount: {
11247
+ currency: string;
11248
+ amount: number;
11249
+ };
11250
+ original: {
11251
+ currency: string;
11252
+ amount: number;
11253
+ };
11254
+ subtotal: {
11255
+ currency: string;
11256
+ amount: number;
11257
+ };
11258
+ due: {
11259
+ currency: string;
11260
+ amount: number;
11261
+ };
11262
+ } | null | undefined;
9749
11263
  price?: Record<string, number> | undefined;
9750
11264
  product?: {
9751
11265
  id: string;
@@ -9811,6 +11325,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9811
11325
  quantity: number;
9812
11326
  variationId: string;
9813
11327
  bundleId: string;
11328
+ total?: {
11329
+ discount: {
11330
+ currency: string;
11331
+ amount: number;
11332
+ };
11333
+ original: {
11334
+ currency: string;
11335
+ amount: number;
11336
+ };
11337
+ subtotal: {
11338
+ currency: string;
11339
+ amount: number;
11340
+ };
11341
+ due: {
11342
+ currency: string;
11343
+ amount: number;
11344
+ };
11345
+ } | null | undefined;
9814
11346
  price?: Record<string, number> | undefined;
9815
11347
  partial?: boolean | undefined;
9816
11348
  bundle?: {
@@ -9885,6 +11417,28 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9885
11417
  code: string;
9886
11418
  description: string;
9887
11419
  }[];
11420
+ total?: {
11421
+ discount: {
11422
+ currency: string;
11423
+ amount: number;
11424
+ };
11425
+ original: {
11426
+ currency: string;
11427
+ amount: number;
11428
+ };
11429
+ subtotal: {
11430
+ currency: string;
11431
+ amount: number;
11432
+ };
11433
+ taxes: {
11434
+ currency: string;
11435
+ amount: number;
11436
+ };
11437
+ due: {
11438
+ currency: string;
11439
+ amount: number;
11440
+ };
11441
+ } | null | undefined;
9888
11442
  checkoutUrl?: string | undefined;
9889
11443
  embeddedCheckoutUrl?: string | undefined;
9890
11444
  }, {
@@ -9897,6 +11451,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9897
11451
  quantity: number;
9898
11452
  productId: string;
9899
11453
  variationId: string;
11454
+ total?: {
11455
+ discount: {
11456
+ currency: string;
11457
+ amount: number;
11458
+ };
11459
+ original: {
11460
+ currency: string;
11461
+ amount: number;
11462
+ };
11463
+ subtotal: {
11464
+ currency: string;
11465
+ amount: number;
11466
+ };
11467
+ due: {
11468
+ currency: string;
11469
+ amount: number;
11470
+ };
11471
+ } | null | undefined;
9900
11472
  price?: Record<string, number> | undefined;
9901
11473
  product?: {
9902
11474
  id: string;
@@ -9962,6 +11534,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
9962
11534
  quantity: number;
9963
11535
  variationId: string;
9964
11536
  bundleId: string;
11537
+ total?: {
11538
+ discount: {
11539
+ currency: string;
11540
+ amount: number;
11541
+ };
11542
+ original: {
11543
+ currency: string;
11544
+ amount: number;
11545
+ };
11546
+ subtotal: {
11547
+ currency: string;
11548
+ amount: number;
11549
+ };
11550
+ due: {
11551
+ currency: string;
11552
+ amount: number;
11553
+ };
11554
+ } | null | undefined;
9965
11555
  price?: Record<string, number> | undefined;
9966
11556
  partial?: boolean | undefined;
9967
11557
  bundle?: {
@@ -10036,11 +11626,127 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10036
11626
  code: string;
10037
11627
  description: string;
10038
11628
  }[];
11629
+ total?: {
11630
+ discount: {
11631
+ currency: string;
11632
+ amount: number;
11633
+ };
11634
+ original: {
11635
+ currency: string;
11636
+ amount: number;
11637
+ };
11638
+ subtotal: {
11639
+ currency: string;
11640
+ amount: number;
11641
+ };
11642
+ taxes: {
11643
+ currency: string;
11644
+ amount: number;
11645
+ };
11646
+ due: {
11647
+ currency: string;
11648
+ amount: number;
11649
+ };
11650
+ } | null | undefined;
10039
11651
  checkoutUrl?: string | undefined;
10040
11652
  embeddedCheckoutUrl?: string | undefined;
10041
- }>, z.ZodObject<z.objectUtil.extendShape<{
11653
+ }>, z.ZodObject<{
10042
11654
  id: z.ZodString;
10043
11655
  currency: z.ZodString;
11656
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11657
+ original: z.ZodObject<{
11658
+ currency: z.ZodString;
11659
+ amount: z.ZodNumber;
11660
+ }, "strip", z.ZodTypeAny, {
11661
+ currency: string;
11662
+ amount: number;
11663
+ }, {
11664
+ currency: string;
11665
+ amount: number;
11666
+ }>;
11667
+ discount: z.ZodObject<{
11668
+ currency: z.ZodString;
11669
+ amount: z.ZodNumber;
11670
+ }, "strip", z.ZodTypeAny, {
11671
+ currency: string;
11672
+ amount: number;
11673
+ }, {
11674
+ currency: string;
11675
+ amount: number;
11676
+ }>;
11677
+ subtotal: z.ZodObject<{
11678
+ currency: z.ZodString;
11679
+ amount: z.ZodNumber;
11680
+ }, "strip", z.ZodTypeAny, {
11681
+ currency: string;
11682
+ amount: number;
11683
+ }, {
11684
+ currency: string;
11685
+ amount: number;
11686
+ }>;
11687
+ taxes: z.ZodObject<{
11688
+ currency: z.ZodString;
11689
+ amount: z.ZodNumber;
11690
+ }, "strip", z.ZodTypeAny, {
11691
+ currency: string;
11692
+ amount: number;
11693
+ }, {
11694
+ currency: string;
11695
+ amount: number;
11696
+ }>;
11697
+ due: z.ZodObject<{
11698
+ currency: z.ZodString;
11699
+ amount: z.ZodNumber;
11700
+ }, "strip", z.ZodTypeAny, {
11701
+ currency: string;
11702
+ amount: number;
11703
+ }, {
11704
+ currency: string;
11705
+ amount: number;
11706
+ }>;
11707
+ }, "strip", z.ZodTypeAny, {
11708
+ discount: {
11709
+ currency: string;
11710
+ amount: number;
11711
+ };
11712
+ original: {
11713
+ currency: string;
11714
+ amount: number;
11715
+ };
11716
+ subtotal: {
11717
+ currency: string;
11718
+ amount: number;
11719
+ };
11720
+ taxes: {
11721
+ currency: string;
11722
+ amount: number;
11723
+ };
11724
+ due: {
11725
+ currency: string;
11726
+ amount: number;
11727
+ };
11728
+ }, {
11729
+ discount: {
11730
+ currency: string;
11731
+ amount: number;
11732
+ };
11733
+ original: {
11734
+ currency: string;
11735
+ amount: number;
11736
+ };
11737
+ subtotal: {
11738
+ currency: string;
11739
+ amount: number;
11740
+ };
11741
+ taxes: {
11742
+ currency: string;
11743
+ amount: number;
11744
+ };
11745
+ due: {
11746
+ currency: string;
11747
+ amount: number;
11748
+ };
11749
+ }>>>;
10044
11750
  items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10045
11751
  id: z.ZodString;
10046
11752
  type: z.ZodLiteral<"Product">;
@@ -10198,6 +11904,82 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10198
11904
  minQuantity: number;
10199
11905
  }[] | null | undefined;
10200
11906
  }>>;
11907
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11908
+ original: z.ZodObject<{
11909
+ currency: z.ZodString;
11910
+ amount: z.ZodNumber;
11911
+ }, "strip", z.ZodTypeAny, {
11912
+ currency: string;
11913
+ amount: number;
11914
+ }, {
11915
+ currency: string;
11916
+ amount: number;
11917
+ }>;
11918
+ discount: z.ZodObject<{
11919
+ currency: z.ZodString;
11920
+ amount: z.ZodNumber;
11921
+ }, "strip", z.ZodTypeAny, {
11922
+ currency: string;
11923
+ amount: number;
11924
+ }, {
11925
+ currency: string;
11926
+ amount: number;
11927
+ }>;
11928
+ subtotal: z.ZodObject<{
11929
+ currency: z.ZodString;
11930
+ amount: z.ZodNumber;
11931
+ }, "strip", z.ZodTypeAny, {
11932
+ currency: string;
11933
+ amount: number;
11934
+ }, {
11935
+ currency: string;
11936
+ amount: number;
11937
+ }>;
11938
+ due: z.ZodObject<{
11939
+ currency: z.ZodString;
11940
+ amount: z.ZodNumber;
11941
+ }, "strip", z.ZodTypeAny, {
11942
+ currency: string;
11943
+ amount: number;
11944
+ }, {
11945
+ currency: string;
11946
+ amount: number;
11947
+ }>;
11948
+ }, "strip", z.ZodTypeAny, {
11949
+ discount: {
11950
+ currency: string;
11951
+ amount: number;
11952
+ };
11953
+ original: {
11954
+ currency: string;
11955
+ amount: number;
11956
+ };
11957
+ subtotal: {
11958
+ currency: string;
11959
+ amount: number;
11960
+ };
11961
+ due: {
11962
+ currency: string;
11963
+ amount: number;
11964
+ };
11965
+ }, {
11966
+ discount: {
11967
+ currency: string;
11968
+ amount: number;
11969
+ };
11970
+ original: {
11971
+ currency: string;
11972
+ amount: number;
11973
+ };
11974
+ subtotal: {
11975
+ currency: string;
11976
+ amount: number;
11977
+ };
11978
+ due: {
11979
+ currency: string;
11980
+ amount: number;
11981
+ };
11982
+ }>>>;
10201
11983
  product: z.ZodOptional<z.ZodObject<{
10202
11984
  id: z.ZodString;
10203
11985
  name: z.ZodString;
@@ -10266,6 +12048,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10266
12048
  quantity: number;
10267
12049
  productId: string;
10268
12050
  variationId: string;
12051
+ total?: {
12052
+ discount: {
12053
+ currency: string;
12054
+ amount: number;
12055
+ };
12056
+ original: {
12057
+ currency: string;
12058
+ amount: number;
12059
+ };
12060
+ subtotal: {
12061
+ currency: string;
12062
+ amount: number;
12063
+ };
12064
+ due: {
12065
+ currency: string;
12066
+ amount: number;
12067
+ };
12068
+ } | null | undefined;
10269
12069
  price?: Record<string, number> | undefined;
10270
12070
  product?: {
10271
12071
  id: string;
@@ -10331,6 +12131,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10331
12131
  quantity: number;
10332
12132
  productId: string;
10333
12133
  variationId: string;
12134
+ total?: {
12135
+ discount: {
12136
+ currency: string;
12137
+ amount: number;
12138
+ };
12139
+ original: {
12140
+ currency: string;
12141
+ amount: number;
12142
+ };
12143
+ subtotal: {
12144
+ currency: string;
12145
+ amount: number;
12146
+ };
12147
+ due: {
12148
+ currency: string;
12149
+ amount: number;
12150
+ };
12151
+ } | null | undefined;
10334
12152
  price?: Record<string, number> | undefined;
10335
12153
  product?: {
10336
12154
  id: string;
@@ -10548,6 +12366,82 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10548
12366
  minQuantity: number;
10549
12367
  }[] | null | undefined;
10550
12368
  }>>;
12369
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12370
+ original: z.ZodObject<{
12371
+ currency: z.ZodString;
12372
+ amount: z.ZodNumber;
12373
+ }, "strip", z.ZodTypeAny, {
12374
+ currency: string;
12375
+ amount: number;
12376
+ }, {
12377
+ currency: string;
12378
+ amount: number;
12379
+ }>;
12380
+ discount: z.ZodObject<{
12381
+ currency: z.ZodString;
12382
+ amount: z.ZodNumber;
12383
+ }, "strip", z.ZodTypeAny, {
12384
+ currency: string;
12385
+ amount: number;
12386
+ }, {
12387
+ currency: string;
12388
+ amount: number;
12389
+ }>;
12390
+ subtotal: z.ZodObject<{
12391
+ currency: z.ZodString;
12392
+ amount: z.ZodNumber;
12393
+ }, "strip", z.ZodTypeAny, {
12394
+ currency: string;
12395
+ amount: number;
12396
+ }, {
12397
+ currency: string;
12398
+ amount: number;
12399
+ }>;
12400
+ due: z.ZodObject<{
12401
+ currency: z.ZodString;
12402
+ amount: z.ZodNumber;
12403
+ }, "strip", z.ZodTypeAny, {
12404
+ currency: string;
12405
+ amount: number;
12406
+ }, {
12407
+ currency: string;
12408
+ amount: number;
12409
+ }>;
12410
+ }, "strip", z.ZodTypeAny, {
12411
+ discount: {
12412
+ currency: string;
12413
+ amount: number;
12414
+ };
12415
+ original: {
12416
+ currency: string;
12417
+ amount: number;
12418
+ };
12419
+ subtotal: {
12420
+ currency: string;
12421
+ amount: number;
12422
+ };
12423
+ due: {
12424
+ currency: string;
12425
+ amount: number;
12426
+ };
12427
+ }, {
12428
+ discount: {
12429
+ currency: string;
12430
+ amount: number;
12431
+ };
12432
+ original: {
12433
+ currency: string;
12434
+ amount: number;
12435
+ };
12436
+ subtotal: {
12437
+ currency: string;
12438
+ amount: number;
12439
+ };
12440
+ due: {
12441
+ currency: string;
12442
+ amount: number;
12443
+ };
12444
+ }>>>;
10551
12445
  bundle: z.ZodOptional<z.ZodObject<{
10552
12446
  id: z.ZodString;
10553
12447
  name: z.ZodString;
@@ -10654,6 +12548,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10654
12548
  quantity: number;
10655
12549
  variationId: string;
10656
12550
  bundleId: string;
12551
+ total?: {
12552
+ discount: {
12553
+ currency: string;
12554
+ amount: number;
12555
+ };
12556
+ original: {
12557
+ currency: string;
12558
+ amount: number;
12559
+ };
12560
+ subtotal: {
12561
+ currency: string;
12562
+ amount: number;
12563
+ };
12564
+ due: {
12565
+ currency: string;
12566
+ amount: number;
12567
+ };
12568
+ } | null | undefined;
10657
12569
  price?: Record<string, number> | undefined;
10658
12570
  partial?: boolean | undefined;
10659
12571
  bundle?: {
@@ -10728,6 +12640,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10728
12640
  quantity: number;
10729
12641
  variationId: string;
10730
12642
  bundleId: string;
12643
+ total?: {
12644
+ discount: {
12645
+ currency: string;
12646
+ amount: number;
12647
+ };
12648
+ original: {
12649
+ currency: string;
12650
+ amount: number;
12651
+ };
12652
+ subtotal: {
12653
+ currency: string;
12654
+ amount: number;
12655
+ };
12656
+ due: {
12657
+ currency: string;
12658
+ amount: number;
12659
+ };
12660
+ } | null | undefined;
10731
12661
  price?: Record<string, number> | undefined;
10732
12662
  partial?: boolean | undefined;
10733
12663
  bundle?: {
@@ -10812,9 +12742,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10812
12742
  }>, "many">;
10813
12743
  checkoutUrl: z.ZodOptional<z.ZodString>;
10814
12744
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
10815
- }, {
12745
+ } & {
10816
12746
  status: z.ZodLiteral<OrderStatus.PaymentProcessing>;
10817
- }>, "strip", z.ZodTypeAny, {
12747
+ }, "strip", z.ZodTypeAny, {
10818
12748
  id: string;
10819
12749
  status: OrderStatus.PaymentProcessing;
10820
12750
  currency: string;
@@ -10824,6 +12754,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10824
12754
  quantity: number;
10825
12755
  productId: string;
10826
12756
  variationId: string;
12757
+ total?: {
12758
+ discount: {
12759
+ currency: string;
12760
+ amount: number;
12761
+ };
12762
+ original: {
12763
+ currency: string;
12764
+ amount: number;
12765
+ };
12766
+ subtotal: {
12767
+ currency: string;
12768
+ amount: number;
12769
+ };
12770
+ due: {
12771
+ currency: string;
12772
+ amount: number;
12773
+ };
12774
+ } | null | undefined;
10827
12775
  price?: Record<string, number> | undefined;
10828
12776
  product?: {
10829
12777
  id: string;
@@ -10889,6 +12837,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10889
12837
  quantity: number;
10890
12838
  variationId: string;
10891
12839
  bundleId: string;
12840
+ total?: {
12841
+ discount: {
12842
+ currency: string;
12843
+ amount: number;
12844
+ };
12845
+ original: {
12846
+ currency: string;
12847
+ amount: number;
12848
+ };
12849
+ subtotal: {
12850
+ currency: string;
12851
+ amount: number;
12852
+ };
12853
+ due: {
12854
+ currency: string;
12855
+ amount: number;
12856
+ };
12857
+ } | null | undefined;
10892
12858
  price?: Record<string, number> | undefined;
10893
12859
  partial?: boolean | undefined;
10894
12860
  bundle?: {
@@ -10963,6 +12929,28 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10963
12929
  code: string;
10964
12930
  description: string;
10965
12931
  }[];
12932
+ total?: {
12933
+ discount: {
12934
+ currency: string;
12935
+ amount: number;
12936
+ };
12937
+ original: {
12938
+ currency: string;
12939
+ amount: number;
12940
+ };
12941
+ subtotal: {
12942
+ currency: string;
12943
+ amount: number;
12944
+ };
12945
+ taxes: {
12946
+ currency: string;
12947
+ amount: number;
12948
+ };
12949
+ due: {
12950
+ currency: string;
12951
+ amount: number;
12952
+ };
12953
+ } | null | undefined;
10966
12954
  checkoutUrl?: string | undefined;
10967
12955
  embeddedCheckoutUrl?: string | undefined;
10968
12956
  }, {
@@ -10975,6 +12963,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
10975
12963
  quantity: number;
10976
12964
  productId: string;
10977
12965
  variationId: string;
12966
+ total?: {
12967
+ discount: {
12968
+ currency: string;
12969
+ amount: number;
12970
+ };
12971
+ original: {
12972
+ currency: string;
12973
+ amount: number;
12974
+ };
12975
+ subtotal: {
12976
+ currency: string;
12977
+ amount: number;
12978
+ };
12979
+ due: {
12980
+ currency: string;
12981
+ amount: number;
12982
+ };
12983
+ } | null | undefined;
10978
12984
  price?: Record<string, number> | undefined;
10979
12985
  product?: {
10980
12986
  id: string;
@@ -11040,6 +13046,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11040
13046
  quantity: number;
11041
13047
  variationId: string;
11042
13048
  bundleId: string;
13049
+ total?: {
13050
+ discount: {
13051
+ currency: string;
13052
+ amount: number;
13053
+ };
13054
+ original: {
13055
+ currency: string;
13056
+ amount: number;
13057
+ };
13058
+ subtotal: {
13059
+ currency: string;
13060
+ amount: number;
13061
+ };
13062
+ due: {
13063
+ currency: string;
13064
+ amount: number;
13065
+ };
13066
+ } | null | undefined;
11043
13067
  price?: Record<string, number> | undefined;
11044
13068
  partial?: boolean | undefined;
11045
13069
  bundle?: {
@@ -11114,11 +13138,127 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11114
13138
  code: string;
11115
13139
  description: string;
11116
13140
  }[];
13141
+ total?: {
13142
+ discount: {
13143
+ currency: string;
13144
+ amount: number;
13145
+ };
13146
+ original: {
13147
+ currency: string;
13148
+ amount: number;
13149
+ };
13150
+ subtotal: {
13151
+ currency: string;
13152
+ amount: number;
13153
+ };
13154
+ taxes: {
13155
+ currency: string;
13156
+ amount: number;
13157
+ };
13158
+ due: {
13159
+ currency: string;
13160
+ amount: number;
13161
+ };
13162
+ } | null | undefined;
11117
13163
  checkoutUrl?: string | undefined;
11118
13164
  embeddedCheckoutUrl?: string | undefined;
11119
- }>, z.ZodObject<z.objectUtil.extendShape<{
13165
+ }>, z.ZodObject<{
11120
13166
  id: z.ZodString;
11121
13167
  currency: z.ZodString;
13168
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13169
+ original: z.ZodObject<{
13170
+ currency: z.ZodString;
13171
+ amount: z.ZodNumber;
13172
+ }, "strip", z.ZodTypeAny, {
13173
+ currency: string;
13174
+ amount: number;
13175
+ }, {
13176
+ currency: string;
13177
+ amount: number;
13178
+ }>;
13179
+ discount: z.ZodObject<{
13180
+ currency: z.ZodString;
13181
+ amount: z.ZodNumber;
13182
+ }, "strip", z.ZodTypeAny, {
13183
+ currency: string;
13184
+ amount: number;
13185
+ }, {
13186
+ currency: string;
13187
+ amount: number;
13188
+ }>;
13189
+ subtotal: z.ZodObject<{
13190
+ currency: z.ZodString;
13191
+ amount: z.ZodNumber;
13192
+ }, "strip", z.ZodTypeAny, {
13193
+ currency: string;
13194
+ amount: number;
13195
+ }, {
13196
+ currency: string;
13197
+ amount: number;
13198
+ }>;
13199
+ taxes: z.ZodObject<{
13200
+ currency: z.ZodString;
13201
+ amount: z.ZodNumber;
13202
+ }, "strip", z.ZodTypeAny, {
13203
+ currency: string;
13204
+ amount: number;
13205
+ }, {
13206
+ currency: string;
13207
+ amount: number;
13208
+ }>;
13209
+ due: z.ZodObject<{
13210
+ currency: z.ZodString;
13211
+ amount: z.ZodNumber;
13212
+ }, "strip", z.ZodTypeAny, {
13213
+ currency: string;
13214
+ amount: number;
13215
+ }, {
13216
+ currency: string;
13217
+ amount: number;
13218
+ }>;
13219
+ }, "strip", z.ZodTypeAny, {
13220
+ discount: {
13221
+ currency: string;
13222
+ amount: number;
13223
+ };
13224
+ original: {
13225
+ currency: string;
13226
+ amount: number;
13227
+ };
13228
+ subtotal: {
13229
+ currency: string;
13230
+ amount: number;
13231
+ };
13232
+ taxes: {
13233
+ currency: string;
13234
+ amount: number;
13235
+ };
13236
+ due: {
13237
+ currency: string;
13238
+ amount: number;
13239
+ };
13240
+ }, {
13241
+ discount: {
13242
+ currency: string;
13243
+ amount: number;
13244
+ };
13245
+ original: {
13246
+ currency: string;
13247
+ amount: number;
13248
+ };
13249
+ subtotal: {
13250
+ currency: string;
13251
+ amount: number;
13252
+ };
13253
+ taxes: {
13254
+ currency: string;
13255
+ amount: number;
13256
+ };
13257
+ due: {
13258
+ currency: string;
13259
+ amount: number;
13260
+ };
13261
+ }>>>;
11122
13262
  items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11123
13263
  id: z.ZodString;
11124
13264
  type: z.ZodLiteral<"Product">;
@@ -11276,6 +13416,82 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11276
13416
  minQuantity: number;
11277
13417
  }[] | null | undefined;
11278
13418
  }>>;
13419
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13420
+ original: z.ZodObject<{
13421
+ currency: z.ZodString;
13422
+ amount: z.ZodNumber;
13423
+ }, "strip", z.ZodTypeAny, {
13424
+ currency: string;
13425
+ amount: number;
13426
+ }, {
13427
+ currency: string;
13428
+ amount: number;
13429
+ }>;
13430
+ discount: z.ZodObject<{
13431
+ currency: z.ZodString;
13432
+ amount: z.ZodNumber;
13433
+ }, "strip", z.ZodTypeAny, {
13434
+ currency: string;
13435
+ amount: number;
13436
+ }, {
13437
+ currency: string;
13438
+ amount: number;
13439
+ }>;
13440
+ subtotal: z.ZodObject<{
13441
+ currency: z.ZodString;
13442
+ amount: z.ZodNumber;
13443
+ }, "strip", z.ZodTypeAny, {
13444
+ currency: string;
13445
+ amount: number;
13446
+ }, {
13447
+ currency: string;
13448
+ amount: number;
13449
+ }>;
13450
+ due: z.ZodObject<{
13451
+ currency: z.ZodString;
13452
+ amount: z.ZodNumber;
13453
+ }, "strip", z.ZodTypeAny, {
13454
+ currency: string;
13455
+ amount: number;
13456
+ }, {
13457
+ currency: string;
13458
+ amount: number;
13459
+ }>;
13460
+ }, "strip", z.ZodTypeAny, {
13461
+ discount: {
13462
+ currency: string;
13463
+ amount: number;
13464
+ };
13465
+ original: {
13466
+ currency: string;
13467
+ amount: number;
13468
+ };
13469
+ subtotal: {
13470
+ currency: string;
13471
+ amount: number;
13472
+ };
13473
+ due: {
13474
+ currency: string;
13475
+ amount: number;
13476
+ };
13477
+ }, {
13478
+ discount: {
13479
+ currency: string;
13480
+ amount: number;
13481
+ };
13482
+ original: {
13483
+ currency: string;
13484
+ amount: number;
13485
+ };
13486
+ subtotal: {
13487
+ currency: string;
13488
+ amount: number;
13489
+ };
13490
+ due: {
13491
+ currency: string;
13492
+ amount: number;
13493
+ };
13494
+ }>>>;
11279
13495
  product: z.ZodOptional<z.ZodObject<{
11280
13496
  id: z.ZodString;
11281
13497
  name: z.ZodString;
@@ -11344,6 +13560,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11344
13560
  quantity: number;
11345
13561
  productId: string;
11346
13562
  variationId: string;
13563
+ total?: {
13564
+ discount: {
13565
+ currency: string;
13566
+ amount: number;
13567
+ };
13568
+ original: {
13569
+ currency: string;
13570
+ amount: number;
13571
+ };
13572
+ subtotal: {
13573
+ currency: string;
13574
+ amount: number;
13575
+ };
13576
+ due: {
13577
+ currency: string;
13578
+ amount: number;
13579
+ };
13580
+ } | null | undefined;
11347
13581
  price?: Record<string, number> | undefined;
11348
13582
  product?: {
11349
13583
  id: string;
@@ -11409,6 +13643,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11409
13643
  quantity: number;
11410
13644
  productId: string;
11411
13645
  variationId: string;
13646
+ total?: {
13647
+ discount: {
13648
+ currency: string;
13649
+ amount: number;
13650
+ };
13651
+ original: {
13652
+ currency: string;
13653
+ amount: number;
13654
+ };
13655
+ subtotal: {
13656
+ currency: string;
13657
+ amount: number;
13658
+ };
13659
+ due: {
13660
+ currency: string;
13661
+ amount: number;
13662
+ };
13663
+ } | null | undefined;
11412
13664
  price?: Record<string, number> | undefined;
11413
13665
  product?: {
11414
13666
  id: string;
@@ -11626,6 +13878,82 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11626
13878
  minQuantity: number;
11627
13879
  }[] | null | undefined;
11628
13880
  }>>;
13881
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13882
+ original: z.ZodObject<{
13883
+ currency: z.ZodString;
13884
+ amount: z.ZodNumber;
13885
+ }, "strip", z.ZodTypeAny, {
13886
+ currency: string;
13887
+ amount: number;
13888
+ }, {
13889
+ currency: string;
13890
+ amount: number;
13891
+ }>;
13892
+ discount: z.ZodObject<{
13893
+ currency: z.ZodString;
13894
+ amount: z.ZodNumber;
13895
+ }, "strip", z.ZodTypeAny, {
13896
+ currency: string;
13897
+ amount: number;
13898
+ }, {
13899
+ currency: string;
13900
+ amount: number;
13901
+ }>;
13902
+ subtotal: z.ZodObject<{
13903
+ currency: z.ZodString;
13904
+ amount: z.ZodNumber;
13905
+ }, "strip", z.ZodTypeAny, {
13906
+ currency: string;
13907
+ amount: number;
13908
+ }, {
13909
+ currency: string;
13910
+ amount: number;
13911
+ }>;
13912
+ due: z.ZodObject<{
13913
+ currency: z.ZodString;
13914
+ amount: z.ZodNumber;
13915
+ }, "strip", z.ZodTypeAny, {
13916
+ currency: string;
13917
+ amount: number;
13918
+ }, {
13919
+ currency: string;
13920
+ amount: number;
13921
+ }>;
13922
+ }, "strip", z.ZodTypeAny, {
13923
+ discount: {
13924
+ currency: string;
13925
+ amount: number;
13926
+ };
13927
+ original: {
13928
+ currency: string;
13929
+ amount: number;
13930
+ };
13931
+ subtotal: {
13932
+ currency: string;
13933
+ amount: number;
13934
+ };
13935
+ due: {
13936
+ currency: string;
13937
+ amount: number;
13938
+ };
13939
+ }, {
13940
+ discount: {
13941
+ currency: string;
13942
+ amount: number;
13943
+ };
13944
+ original: {
13945
+ currency: string;
13946
+ amount: number;
13947
+ };
13948
+ subtotal: {
13949
+ currency: string;
13950
+ amount: number;
13951
+ };
13952
+ due: {
13953
+ currency: string;
13954
+ amount: number;
13955
+ };
13956
+ }>>>;
11629
13957
  bundle: z.ZodOptional<z.ZodObject<{
11630
13958
  id: z.ZodString;
11631
13959
  name: z.ZodString;
@@ -11732,6 +14060,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11732
14060
  quantity: number;
11733
14061
  variationId: string;
11734
14062
  bundleId: string;
14063
+ total?: {
14064
+ discount: {
14065
+ currency: string;
14066
+ amount: number;
14067
+ };
14068
+ original: {
14069
+ currency: string;
14070
+ amount: number;
14071
+ };
14072
+ subtotal: {
14073
+ currency: string;
14074
+ amount: number;
14075
+ };
14076
+ due: {
14077
+ currency: string;
14078
+ amount: number;
14079
+ };
14080
+ } | null | undefined;
11735
14081
  price?: Record<string, number> | undefined;
11736
14082
  partial?: boolean | undefined;
11737
14083
  bundle?: {
@@ -11806,6 +14152,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11806
14152
  quantity: number;
11807
14153
  variationId: string;
11808
14154
  bundleId: string;
14155
+ total?: {
14156
+ discount: {
14157
+ currency: string;
14158
+ amount: number;
14159
+ };
14160
+ original: {
14161
+ currency: string;
14162
+ amount: number;
14163
+ };
14164
+ subtotal: {
14165
+ currency: string;
14166
+ amount: number;
14167
+ };
14168
+ due: {
14169
+ currency: string;
14170
+ amount: number;
14171
+ };
14172
+ } | null | undefined;
11809
14173
  price?: Record<string, number> | undefined;
11810
14174
  partial?: boolean | undefined;
11811
14175
  bundle?: {
@@ -11890,9 +14254,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11890
14254
  }>, "many">;
11891
14255
  checkoutUrl: z.ZodOptional<z.ZodString>;
11892
14256
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
11893
- }, {
14257
+ } & {
11894
14258
  status: z.ZodLiteral<OrderStatus.Paid>;
11895
- }>, "strip", z.ZodTypeAny, {
14259
+ }, "strip", z.ZodTypeAny, {
11896
14260
  id: string;
11897
14261
  status: OrderStatus.Paid;
11898
14262
  currency: string;
@@ -11902,6 +14266,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11902
14266
  quantity: number;
11903
14267
  productId: string;
11904
14268
  variationId: string;
14269
+ total?: {
14270
+ discount: {
14271
+ currency: string;
14272
+ amount: number;
14273
+ };
14274
+ original: {
14275
+ currency: string;
14276
+ amount: number;
14277
+ };
14278
+ subtotal: {
14279
+ currency: string;
14280
+ amount: number;
14281
+ };
14282
+ due: {
14283
+ currency: string;
14284
+ amount: number;
14285
+ };
14286
+ } | null | undefined;
11905
14287
  price?: Record<string, number> | undefined;
11906
14288
  product?: {
11907
14289
  id: string;
@@ -11967,6 +14349,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
11967
14349
  quantity: number;
11968
14350
  variationId: string;
11969
14351
  bundleId: string;
14352
+ total?: {
14353
+ discount: {
14354
+ currency: string;
14355
+ amount: number;
14356
+ };
14357
+ original: {
14358
+ currency: string;
14359
+ amount: number;
14360
+ };
14361
+ subtotal: {
14362
+ currency: string;
14363
+ amount: number;
14364
+ };
14365
+ due: {
14366
+ currency: string;
14367
+ amount: number;
14368
+ };
14369
+ } | null | undefined;
11970
14370
  price?: Record<string, number> | undefined;
11971
14371
  partial?: boolean | undefined;
11972
14372
  bundle?: {
@@ -12041,6 +14441,28 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12041
14441
  code: string;
12042
14442
  description: string;
12043
14443
  }[];
14444
+ total?: {
14445
+ discount: {
14446
+ currency: string;
14447
+ amount: number;
14448
+ };
14449
+ original: {
14450
+ currency: string;
14451
+ amount: number;
14452
+ };
14453
+ subtotal: {
14454
+ currency: string;
14455
+ amount: number;
14456
+ };
14457
+ taxes: {
14458
+ currency: string;
14459
+ amount: number;
14460
+ };
14461
+ due: {
14462
+ currency: string;
14463
+ amount: number;
14464
+ };
14465
+ } | null | undefined;
12044
14466
  checkoutUrl?: string | undefined;
12045
14467
  embeddedCheckoutUrl?: string | undefined;
12046
14468
  }, {
@@ -12053,6 +14475,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12053
14475
  quantity: number;
12054
14476
  productId: string;
12055
14477
  variationId: string;
14478
+ total?: {
14479
+ discount: {
14480
+ currency: string;
14481
+ amount: number;
14482
+ };
14483
+ original: {
14484
+ currency: string;
14485
+ amount: number;
14486
+ };
14487
+ subtotal: {
14488
+ currency: string;
14489
+ amount: number;
14490
+ };
14491
+ due: {
14492
+ currency: string;
14493
+ amount: number;
14494
+ };
14495
+ } | null | undefined;
12056
14496
  price?: Record<string, number> | undefined;
12057
14497
  product?: {
12058
14498
  id: string;
@@ -12118,6 +14558,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12118
14558
  quantity: number;
12119
14559
  variationId: string;
12120
14560
  bundleId: string;
14561
+ total?: {
14562
+ discount: {
14563
+ currency: string;
14564
+ amount: number;
14565
+ };
14566
+ original: {
14567
+ currency: string;
14568
+ amount: number;
14569
+ };
14570
+ subtotal: {
14571
+ currency: string;
14572
+ amount: number;
14573
+ };
14574
+ due: {
14575
+ currency: string;
14576
+ amount: number;
14577
+ };
14578
+ } | null | undefined;
12121
14579
  price?: Record<string, number> | undefined;
12122
14580
  partial?: boolean | undefined;
12123
14581
  bundle?: {
@@ -12192,11 +14650,127 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12192
14650
  code: string;
12193
14651
  description: string;
12194
14652
  }[];
14653
+ total?: {
14654
+ discount: {
14655
+ currency: string;
14656
+ amount: number;
14657
+ };
14658
+ original: {
14659
+ currency: string;
14660
+ amount: number;
14661
+ };
14662
+ subtotal: {
14663
+ currency: string;
14664
+ amount: number;
14665
+ };
14666
+ taxes: {
14667
+ currency: string;
14668
+ amount: number;
14669
+ };
14670
+ due: {
14671
+ currency: string;
14672
+ amount: number;
14673
+ };
14674
+ } | null | undefined;
12195
14675
  checkoutUrl?: string | undefined;
12196
14676
  embeddedCheckoutUrl?: string | undefined;
12197
- }>, z.ZodObject<z.objectUtil.extendShape<{
14677
+ }>, z.ZodObject<{
12198
14678
  id: z.ZodString;
12199
14679
  currency: z.ZodString;
14680
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14681
+ original: z.ZodObject<{
14682
+ currency: z.ZodString;
14683
+ amount: z.ZodNumber;
14684
+ }, "strip", z.ZodTypeAny, {
14685
+ currency: string;
14686
+ amount: number;
14687
+ }, {
14688
+ currency: string;
14689
+ amount: number;
14690
+ }>;
14691
+ discount: z.ZodObject<{
14692
+ currency: z.ZodString;
14693
+ amount: z.ZodNumber;
14694
+ }, "strip", z.ZodTypeAny, {
14695
+ currency: string;
14696
+ amount: number;
14697
+ }, {
14698
+ currency: string;
14699
+ amount: number;
14700
+ }>;
14701
+ subtotal: z.ZodObject<{
14702
+ currency: z.ZodString;
14703
+ amount: z.ZodNumber;
14704
+ }, "strip", z.ZodTypeAny, {
14705
+ currency: string;
14706
+ amount: number;
14707
+ }, {
14708
+ currency: string;
14709
+ amount: number;
14710
+ }>;
14711
+ taxes: z.ZodObject<{
14712
+ currency: z.ZodString;
14713
+ amount: z.ZodNumber;
14714
+ }, "strip", z.ZodTypeAny, {
14715
+ currency: string;
14716
+ amount: number;
14717
+ }, {
14718
+ currency: string;
14719
+ amount: number;
14720
+ }>;
14721
+ due: z.ZodObject<{
14722
+ currency: z.ZodString;
14723
+ amount: z.ZodNumber;
14724
+ }, "strip", z.ZodTypeAny, {
14725
+ currency: string;
14726
+ amount: number;
14727
+ }, {
14728
+ currency: string;
14729
+ amount: number;
14730
+ }>;
14731
+ }, "strip", z.ZodTypeAny, {
14732
+ discount: {
14733
+ currency: string;
14734
+ amount: number;
14735
+ };
14736
+ original: {
14737
+ currency: string;
14738
+ amount: number;
14739
+ };
14740
+ subtotal: {
14741
+ currency: string;
14742
+ amount: number;
14743
+ };
14744
+ taxes: {
14745
+ currency: string;
14746
+ amount: number;
14747
+ };
14748
+ due: {
14749
+ currency: string;
14750
+ amount: number;
14751
+ };
14752
+ }, {
14753
+ discount: {
14754
+ currency: string;
14755
+ amount: number;
14756
+ };
14757
+ original: {
14758
+ currency: string;
14759
+ amount: number;
14760
+ };
14761
+ subtotal: {
14762
+ currency: string;
14763
+ amount: number;
14764
+ };
14765
+ taxes: {
14766
+ currency: string;
14767
+ amount: number;
14768
+ };
14769
+ due: {
14770
+ currency: string;
14771
+ amount: number;
14772
+ };
14773
+ }>>>;
12200
14774
  items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12201
14775
  id: z.ZodString;
12202
14776
  type: z.ZodLiteral<"Product">;
@@ -12354,6 +14928,82 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12354
14928
  minQuantity: number;
12355
14929
  }[] | null | undefined;
12356
14930
  }>>;
14931
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14932
+ original: z.ZodObject<{
14933
+ currency: z.ZodString;
14934
+ amount: z.ZodNumber;
14935
+ }, "strip", z.ZodTypeAny, {
14936
+ currency: string;
14937
+ amount: number;
14938
+ }, {
14939
+ currency: string;
14940
+ amount: number;
14941
+ }>;
14942
+ discount: z.ZodObject<{
14943
+ currency: z.ZodString;
14944
+ amount: z.ZodNumber;
14945
+ }, "strip", z.ZodTypeAny, {
14946
+ currency: string;
14947
+ amount: number;
14948
+ }, {
14949
+ currency: string;
14950
+ amount: number;
14951
+ }>;
14952
+ subtotal: z.ZodObject<{
14953
+ currency: z.ZodString;
14954
+ amount: z.ZodNumber;
14955
+ }, "strip", z.ZodTypeAny, {
14956
+ currency: string;
14957
+ amount: number;
14958
+ }, {
14959
+ currency: string;
14960
+ amount: number;
14961
+ }>;
14962
+ due: z.ZodObject<{
14963
+ currency: z.ZodString;
14964
+ amount: z.ZodNumber;
14965
+ }, "strip", z.ZodTypeAny, {
14966
+ currency: string;
14967
+ amount: number;
14968
+ }, {
14969
+ currency: string;
14970
+ amount: number;
14971
+ }>;
14972
+ }, "strip", z.ZodTypeAny, {
14973
+ discount: {
14974
+ currency: string;
14975
+ amount: number;
14976
+ };
14977
+ original: {
14978
+ currency: string;
14979
+ amount: number;
14980
+ };
14981
+ subtotal: {
14982
+ currency: string;
14983
+ amount: number;
14984
+ };
14985
+ due: {
14986
+ currency: string;
14987
+ amount: number;
14988
+ };
14989
+ }, {
14990
+ discount: {
14991
+ currency: string;
14992
+ amount: number;
14993
+ };
14994
+ original: {
14995
+ currency: string;
14996
+ amount: number;
14997
+ };
14998
+ subtotal: {
14999
+ currency: string;
15000
+ amount: number;
15001
+ };
15002
+ due: {
15003
+ currency: string;
15004
+ amount: number;
15005
+ };
15006
+ }>>>;
12357
15007
  product: z.ZodOptional<z.ZodObject<{
12358
15008
  id: z.ZodString;
12359
15009
  name: z.ZodString;
@@ -12422,6 +15072,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12422
15072
  quantity: number;
12423
15073
  productId: string;
12424
15074
  variationId: string;
15075
+ total?: {
15076
+ discount: {
15077
+ currency: string;
15078
+ amount: number;
15079
+ };
15080
+ original: {
15081
+ currency: string;
15082
+ amount: number;
15083
+ };
15084
+ subtotal: {
15085
+ currency: string;
15086
+ amount: number;
15087
+ };
15088
+ due: {
15089
+ currency: string;
15090
+ amount: number;
15091
+ };
15092
+ } | null | undefined;
12425
15093
  price?: Record<string, number> | undefined;
12426
15094
  product?: {
12427
15095
  id: string;
@@ -12487,6 +15155,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12487
15155
  quantity: number;
12488
15156
  productId: string;
12489
15157
  variationId: string;
15158
+ total?: {
15159
+ discount: {
15160
+ currency: string;
15161
+ amount: number;
15162
+ };
15163
+ original: {
15164
+ currency: string;
15165
+ amount: number;
15166
+ };
15167
+ subtotal: {
15168
+ currency: string;
15169
+ amount: number;
15170
+ };
15171
+ due: {
15172
+ currency: string;
15173
+ amount: number;
15174
+ };
15175
+ } | null | undefined;
12490
15176
  price?: Record<string, number> | undefined;
12491
15177
  product?: {
12492
15178
  id: string;
@@ -12704,6 +15390,82 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12704
15390
  minQuantity: number;
12705
15391
  }[] | null | undefined;
12706
15392
  }>>;
15393
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15394
+ original: z.ZodObject<{
15395
+ currency: z.ZodString;
15396
+ amount: z.ZodNumber;
15397
+ }, "strip", z.ZodTypeAny, {
15398
+ currency: string;
15399
+ amount: number;
15400
+ }, {
15401
+ currency: string;
15402
+ amount: number;
15403
+ }>;
15404
+ discount: z.ZodObject<{
15405
+ currency: z.ZodString;
15406
+ amount: z.ZodNumber;
15407
+ }, "strip", z.ZodTypeAny, {
15408
+ currency: string;
15409
+ amount: number;
15410
+ }, {
15411
+ currency: string;
15412
+ amount: number;
15413
+ }>;
15414
+ subtotal: z.ZodObject<{
15415
+ currency: z.ZodString;
15416
+ amount: z.ZodNumber;
15417
+ }, "strip", z.ZodTypeAny, {
15418
+ currency: string;
15419
+ amount: number;
15420
+ }, {
15421
+ currency: string;
15422
+ amount: number;
15423
+ }>;
15424
+ due: z.ZodObject<{
15425
+ currency: z.ZodString;
15426
+ amount: z.ZodNumber;
15427
+ }, "strip", z.ZodTypeAny, {
15428
+ currency: string;
15429
+ amount: number;
15430
+ }, {
15431
+ currency: string;
15432
+ amount: number;
15433
+ }>;
15434
+ }, "strip", z.ZodTypeAny, {
15435
+ discount: {
15436
+ currency: string;
15437
+ amount: number;
15438
+ };
15439
+ original: {
15440
+ currency: string;
15441
+ amount: number;
15442
+ };
15443
+ subtotal: {
15444
+ currency: string;
15445
+ amount: number;
15446
+ };
15447
+ due: {
15448
+ currency: string;
15449
+ amount: number;
15450
+ };
15451
+ }, {
15452
+ discount: {
15453
+ currency: string;
15454
+ amount: number;
15455
+ };
15456
+ original: {
15457
+ currency: string;
15458
+ amount: number;
15459
+ };
15460
+ subtotal: {
15461
+ currency: string;
15462
+ amount: number;
15463
+ };
15464
+ due: {
15465
+ currency: string;
15466
+ amount: number;
15467
+ };
15468
+ }>>>;
12707
15469
  bundle: z.ZodOptional<z.ZodObject<{
12708
15470
  id: z.ZodString;
12709
15471
  name: z.ZodString;
@@ -12810,6 +15572,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12810
15572
  quantity: number;
12811
15573
  variationId: string;
12812
15574
  bundleId: string;
15575
+ total?: {
15576
+ discount: {
15577
+ currency: string;
15578
+ amount: number;
15579
+ };
15580
+ original: {
15581
+ currency: string;
15582
+ amount: number;
15583
+ };
15584
+ subtotal: {
15585
+ currency: string;
15586
+ amount: number;
15587
+ };
15588
+ due: {
15589
+ currency: string;
15590
+ amount: number;
15591
+ };
15592
+ } | null | undefined;
12813
15593
  price?: Record<string, number> | undefined;
12814
15594
  partial?: boolean | undefined;
12815
15595
  bundle?: {
@@ -12884,6 +15664,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12884
15664
  quantity: number;
12885
15665
  variationId: string;
12886
15666
  bundleId: string;
15667
+ total?: {
15668
+ discount: {
15669
+ currency: string;
15670
+ amount: number;
15671
+ };
15672
+ original: {
15673
+ currency: string;
15674
+ amount: number;
15675
+ };
15676
+ subtotal: {
15677
+ currency: string;
15678
+ amount: number;
15679
+ };
15680
+ due: {
15681
+ currency: string;
15682
+ amount: number;
15683
+ };
15684
+ } | null | undefined;
12887
15685
  price?: Record<string, number> | undefined;
12888
15686
  partial?: boolean | undefined;
12889
15687
  bundle?: {
@@ -12968,9 +15766,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12968
15766
  }>, "many">;
12969
15767
  checkoutUrl: z.ZodOptional<z.ZodString>;
12970
15768
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
12971
- }, {
15769
+ } & {
12972
15770
  status: z.ZodLiteral<OrderStatus.Failed>;
12973
- }>, "strip", z.ZodTypeAny, {
15771
+ }, "strip", z.ZodTypeAny, {
12974
15772
  id: string;
12975
15773
  status: OrderStatus.Failed;
12976
15774
  currency: string;
@@ -12980,6 +15778,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
12980
15778
  quantity: number;
12981
15779
  productId: string;
12982
15780
  variationId: string;
15781
+ total?: {
15782
+ discount: {
15783
+ currency: string;
15784
+ amount: number;
15785
+ };
15786
+ original: {
15787
+ currency: string;
15788
+ amount: number;
15789
+ };
15790
+ subtotal: {
15791
+ currency: string;
15792
+ amount: number;
15793
+ };
15794
+ due: {
15795
+ currency: string;
15796
+ amount: number;
15797
+ };
15798
+ } | null | undefined;
12983
15799
  price?: Record<string, number> | undefined;
12984
15800
  product?: {
12985
15801
  id: string;
@@ -13045,6 +15861,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
13045
15861
  quantity: number;
13046
15862
  variationId: string;
13047
15863
  bundleId: string;
15864
+ total?: {
15865
+ discount: {
15866
+ currency: string;
15867
+ amount: number;
15868
+ };
15869
+ original: {
15870
+ currency: string;
15871
+ amount: number;
15872
+ };
15873
+ subtotal: {
15874
+ currency: string;
15875
+ amount: number;
15876
+ };
15877
+ due: {
15878
+ currency: string;
15879
+ amount: number;
15880
+ };
15881
+ } | null | undefined;
13048
15882
  price?: Record<string, number> | undefined;
13049
15883
  partial?: boolean | undefined;
13050
15884
  bundle?: {
@@ -13119,6 +15953,28 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
13119
15953
  code: string;
13120
15954
  description: string;
13121
15955
  }[];
15956
+ total?: {
15957
+ discount: {
15958
+ currency: string;
15959
+ amount: number;
15960
+ };
15961
+ original: {
15962
+ currency: string;
15963
+ amount: number;
15964
+ };
15965
+ subtotal: {
15966
+ currency: string;
15967
+ amount: number;
15968
+ };
15969
+ taxes: {
15970
+ currency: string;
15971
+ amount: number;
15972
+ };
15973
+ due: {
15974
+ currency: string;
15975
+ amount: number;
15976
+ };
15977
+ } | null | undefined;
13122
15978
  checkoutUrl?: string | undefined;
13123
15979
  embeddedCheckoutUrl?: string | undefined;
13124
15980
  }, {
@@ -13131,6 +15987,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
13131
15987
  quantity: number;
13132
15988
  productId: string;
13133
15989
  variationId: string;
15990
+ total?: {
15991
+ discount: {
15992
+ currency: string;
15993
+ amount: number;
15994
+ };
15995
+ original: {
15996
+ currency: string;
15997
+ amount: number;
15998
+ };
15999
+ subtotal: {
16000
+ currency: string;
16001
+ amount: number;
16002
+ };
16003
+ due: {
16004
+ currency: string;
16005
+ amount: number;
16006
+ };
16007
+ } | null | undefined;
13134
16008
  price?: Record<string, number> | undefined;
13135
16009
  product?: {
13136
16010
  id: string;
@@ -13196,6 +16070,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
13196
16070
  quantity: number;
13197
16071
  variationId: string;
13198
16072
  bundleId: string;
16073
+ total?: {
16074
+ discount: {
16075
+ currency: string;
16076
+ amount: number;
16077
+ };
16078
+ original: {
16079
+ currency: string;
16080
+ amount: number;
16081
+ };
16082
+ subtotal: {
16083
+ currency: string;
16084
+ amount: number;
16085
+ };
16086
+ due: {
16087
+ currency: string;
16088
+ amount: number;
16089
+ };
16090
+ } | null | undefined;
13199
16091
  price?: Record<string, number> | undefined;
13200
16092
  partial?: boolean | undefined;
13201
16093
  bundle?: {
@@ -13270,6 +16162,28 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
13270
16162
  code: string;
13271
16163
  description: string;
13272
16164
  }[];
16165
+ total?: {
16166
+ discount: {
16167
+ currency: string;
16168
+ amount: number;
16169
+ };
16170
+ original: {
16171
+ currency: string;
16172
+ amount: number;
16173
+ };
16174
+ subtotal: {
16175
+ currency: string;
16176
+ amount: number;
16177
+ };
16178
+ taxes: {
16179
+ currency: string;
16180
+ amount: number;
16181
+ };
16182
+ due: {
16183
+ currency: string;
16184
+ amount: number;
16185
+ };
16186
+ } | null | undefined;
13273
16187
  checkoutUrl?: string | undefined;
13274
16188
  embeddedCheckoutUrl?: string | undefined;
13275
16189
  }>, z.ZodObject<{
@@ -13581,6 +16495,82 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
13581
16495
  minQuantity: number;
13582
16496
  }[] | null | undefined;
13583
16497
  }>>;
16498
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16499
+ original: z.ZodObject<{
16500
+ currency: z.ZodString;
16501
+ amount: z.ZodNumber;
16502
+ }, "strip", z.ZodTypeAny, {
16503
+ currency: string;
16504
+ amount: number;
16505
+ }, {
16506
+ currency: string;
16507
+ amount: number;
16508
+ }>;
16509
+ discount: z.ZodObject<{
16510
+ currency: z.ZodString;
16511
+ amount: z.ZodNumber;
16512
+ }, "strip", z.ZodTypeAny, {
16513
+ currency: string;
16514
+ amount: number;
16515
+ }, {
16516
+ currency: string;
16517
+ amount: number;
16518
+ }>;
16519
+ subtotal: z.ZodObject<{
16520
+ currency: z.ZodString;
16521
+ amount: z.ZodNumber;
16522
+ }, "strip", z.ZodTypeAny, {
16523
+ currency: string;
16524
+ amount: number;
16525
+ }, {
16526
+ currency: string;
16527
+ amount: number;
16528
+ }>;
16529
+ due: z.ZodObject<{
16530
+ currency: z.ZodString;
16531
+ amount: z.ZodNumber;
16532
+ }, "strip", z.ZodTypeAny, {
16533
+ currency: string;
16534
+ amount: number;
16535
+ }, {
16536
+ currency: string;
16537
+ amount: number;
16538
+ }>;
16539
+ }, "strip", z.ZodTypeAny, {
16540
+ discount: {
16541
+ currency: string;
16542
+ amount: number;
16543
+ };
16544
+ original: {
16545
+ currency: string;
16546
+ amount: number;
16547
+ };
16548
+ subtotal: {
16549
+ currency: string;
16550
+ amount: number;
16551
+ };
16552
+ due: {
16553
+ currency: string;
16554
+ amount: number;
16555
+ };
16556
+ }, {
16557
+ discount: {
16558
+ currency: string;
16559
+ amount: number;
16560
+ };
16561
+ original: {
16562
+ currency: string;
16563
+ amount: number;
16564
+ };
16565
+ subtotal: {
16566
+ currency: string;
16567
+ amount: number;
16568
+ };
16569
+ due: {
16570
+ currency: string;
16571
+ amount: number;
16572
+ };
16573
+ }>>>;
13584
16574
  product: z.ZodOptional<z.ZodObject<{
13585
16575
  id: z.ZodString;
13586
16576
  name: z.ZodString;
@@ -13649,6 +16639,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
13649
16639
  quantity: number;
13650
16640
  productId: string;
13651
16641
  variationId: string;
16642
+ total?: {
16643
+ discount: {
16644
+ currency: string;
16645
+ amount: number;
16646
+ };
16647
+ original: {
16648
+ currency: string;
16649
+ amount: number;
16650
+ };
16651
+ subtotal: {
16652
+ currency: string;
16653
+ amount: number;
16654
+ };
16655
+ due: {
16656
+ currency: string;
16657
+ amount: number;
16658
+ };
16659
+ } | null | undefined;
13652
16660
  price?: Record<string, number> | undefined;
13653
16661
  product?: {
13654
16662
  id: string;
@@ -13714,6 +16722,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
13714
16722
  quantity: number;
13715
16723
  productId: string;
13716
16724
  variationId: string;
16725
+ total?: {
16726
+ discount: {
16727
+ currency: string;
16728
+ amount: number;
16729
+ };
16730
+ original: {
16731
+ currency: string;
16732
+ amount: number;
16733
+ };
16734
+ subtotal: {
16735
+ currency: string;
16736
+ amount: number;
16737
+ };
16738
+ due: {
16739
+ currency: string;
16740
+ amount: number;
16741
+ };
16742
+ } | null | undefined;
13717
16743
  price?: Record<string, number> | undefined;
13718
16744
  product?: {
13719
16745
  id: string;
@@ -13909,28 +16935,104 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
13909
16935
  type: "Recurring";
13910
16936
  cycleLength: CycleLength;
13911
16937
  };
13912
- discount?: {
13913
- name: string;
13914
- type: "PercentageOffDiscount";
13915
- percentage: number;
13916
- isExclusive: boolean;
13917
- description?: string | undefined;
13918
- total?: Record<string, number> | undefined;
13919
- recurringPaymentUseCount?: number | undefined;
13920
- } | {
13921
- name: string;
13922
- type: "FlatAmountOffDiscount";
13923
- isExclusive: boolean;
13924
- description?: string | undefined;
13925
- total?: Record<string, number> | undefined;
13926
- recurringPaymentUseCount?: number | undefined;
13927
- } | undefined;
13928
- pricingTiers?: {
13929
- originalPrice: Record<string, number>;
13930
- price: Record<string, number>;
13931
- minQuantity: number;
13932
- }[] | null | undefined;
13933
- }>>;
16938
+ discount?: {
16939
+ name: string;
16940
+ type: "PercentageOffDiscount";
16941
+ percentage: number;
16942
+ isExclusive: boolean;
16943
+ description?: string | undefined;
16944
+ total?: Record<string, number> | undefined;
16945
+ recurringPaymentUseCount?: number | undefined;
16946
+ } | {
16947
+ name: string;
16948
+ type: "FlatAmountOffDiscount";
16949
+ isExclusive: boolean;
16950
+ description?: string | undefined;
16951
+ total?: Record<string, number> | undefined;
16952
+ recurringPaymentUseCount?: number | undefined;
16953
+ } | undefined;
16954
+ pricingTiers?: {
16955
+ originalPrice: Record<string, number>;
16956
+ price: Record<string, number>;
16957
+ minQuantity: number;
16958
+ }[] | null | undefined;
16959
+ }>>;
16960
+ total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16961
+ original: z.ZodObject<{
16962
+ currency: z.ZodString;
16963
+ amount: z.ZodNumber;
16964
+ }, "strip", z.ZodTypeAny, {
16965
+ currency: string;
16966
+ amount: number;
16967
+ }, {
16968
+ currency: string;
16969
+ amount: number;
16970
+ }>;
16971
+ discount: z.ZodObject<{
16972
+ currency: z.ZodString;
16973
+ amount: z.ZodNumber;
16974
+ }, "strip", z.ZodTypeAny, {
16975
+ currency: string;
16976
+ amount: number;
16977
+ }, {
16978
+ currency: string;
16979
+ amount: number;
16980
+ }>;
16981
+ subtotal: z.ZodObject<{
16982
+ currency: z.ZodString;
16983
+ amount: z.ZodNumber;
16984
+ }, "strip", z.ZodTypeAny, {
16985
+ currency: string;
16986
+ amount: number;
16987
+ }, {
16988
+ currency: string;
16989
+ amount: number;
16990
+ }>;
16991
+ due: z.ZodObject<{
16992
+ currency: z.ZodString;
16993
+ amount: z.ZodNumber;
16994
+ }, "strip", z.ZodTypeAny, {
16995
+ currency: string;
16996
+ amount: number;
16997
+ }, {
16998
+ currency: string;
16999
+ amount: number;
17000
+ }>;
17001
+ }, "strip", z.ZodTypeAny, {
17002
+ discount: {
17003
+ currency: string;
17004
+ amount: number;
17005
+ };
17006
+ original: {
17007
+ currency: string;
17008
+ amount: number;
17009
+ };
17010
+ subtotal: {
17011
+ currency: string;
17012
+ amount: number;
17013
+ };
17014
+ due: {
17015
+ currency: string;
17016
+ amount: number;
17017
+ };
17018
+ }, {
17019
+ discount: {
17020
+ currency: string;
17021
+ amount: number;
17022
+ };
17023
+ original: {
17024
+ currency: string;
17025
+ amount: number;
17026
+ };
17027
+ subtotal: {
17028
+ currency: string;
17029
+ amount: number;
17030
+ };
17031
+ due: {
17032
+ currency: string;
17033
+ amount: number;
17034
+ };
17035
+ }>>>;
13934
17036
  bundle: z.ZodOptional<z.ZodObject<{
13935
17037
  id: z.ZodString;
13936
17038
  name: z.ZodString;
@@ -14037,6 +17139,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14037
17139
  quantity: number;
14038
17140
  variationId: string;
14039
17141
  bundleId: string;
17142
+ total?: {
17143
+ discount: {
17144
+ currency: string;
17145
+ amount: number;
17146
+ };
17147
+ original: {
17148
+ currency: string;
17149
+ amount: number;
17150
+ };
17151
+ subtotal: {
17152
+ currency: string;
17153
+ amount: number;
17154
+ };
17155
+ due: {
17156
+ currency: string;
17157
+ amount: number;
17158
+ };
17159
+ } | null | undefined;
14040
17160
  price?: Record<string, number> | undefined;
14041
17161
  partial?: boolean | undefined;
14042
17162
  bundle?: {
@@ -14111,6 +17231,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14111
17231
  quantity: number;
14112
17232
  variationId: string;
14113
17233
  bundleId: string;
17234
+ total?: {
17235
+ discount: {
17236
+ currency: string;
17237
+ amount: number;
17238
+ };
17239
+ original: {
17240
+ currency: string;
17241
+ amount: number;
17242
+ };
17243
+ subtotal: {
17244
+ currency: string;
17245
+ amount: number;
17246
+ };
17247
+ due: {
17248
+ currency: string;
17249
+ amount: number;
17250
+ };
17251
+ } | null | undefined;
14114
17252
  price?: Record<string, number> | undefined;
14115
17253
  partial?: boolean | undefined;
14116
17254
  bundle?: {
@@ -14225,6 +17363,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14225
17363
  quantity: number;
14226
17364
  productId: string;
14227
17365
  variationId: string;
17366
+ total?: {
17367
+ discount: {
17368
+ currency: string;
17369
+ amount: number;
17370
+ };
17371
+ original: {
17372
+ currency: string;
17373
+ amount: number;
17374
+ };
17375
+ subtotal: {
17376
+ currency: string;
17377
+ amount: number;
17378
+ };
17379
+ due: {
17380
+ currency: string;
17381
+ amount: number;
17382
+ };
17383
+ } | null | undefined;
14228
17384
  price?: Record<string, number> | undefined;
14229
17385
  product?: {
14230
17386
  id: string;
@@ -14290,6 +17446,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14290
17446
  quantity: number;
14291
17447
  variationId: string;
14292
17448
  bundleId: string;
17449
+ total?: {
17450
+ discount: {
17451
+ currency: string;
17452
+ amount: number;
17453
+ };
17454
+ original: {
17455
+ currency: string;
17456
+ amount: number;
17457
+ };
17458
+ subtotal: {
17459
+ currency: string;
17460
+ amount: number;
17461
+ };
17462
+ due: {
17463
+ currency: string;
17464
+ amount: number;
17465
+ };
17466
+ } | null | undefined;
14293
17467
  price?: Record<string, number> | undefined;
14294
17468
  partial?: boolean | undefined;
14295
17469
  bundle?: {
@@ -14410,6 +17584,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14410
17584
  quantity: number;
14411
17585
  productId: string;
14412
17586
  variationId: string;
17587
+ total?: {
17588
+ discount: {
17589
+ currency: string;
17590
+ amount: number;
17591
+ };
17592
+ original: {
17593
+ currency: string;
17594
+ amount: number;
17595
+ };
17596
+ subtotal: {
17597
+ currency: string;
17598
+ amount: number;
17599
+ };
17600
+ due: {
17601
+ currency: string;
17602
+ amount: number;
17603
+ };
17604
+ } | null | undefined;
14413
17605
  price?: Record<string, number> | undefined;
14414
17606
  product?: {
14415
17607
  id: string;
@@ -14475,6 +17667,24 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.obje
14475
17667
  quantity: number;
14476
17668
  variationId: string;
14477
17669
  bundleId: string;
17670
+ total?: {
17671
+ discount: {
17672
+ currency: string;
17673
+ amount: number;
17674
+ };
17675
+ original: {
17676
+ currency: string;
17677
+ amount: number;
17678
+ };
17679
+ subtotal: {
17680
+ currency: string;
17681
+ amount: number;
17682
+ };
17683
+ due: {
17684
+ currency: string;
17685
+ amount: number;
17686
+ };
17687
+ } | null | undefined;
14478
17688
  price?: Record<string, number> | undefined;
14479
17689
  partial?: boolean | undefined;
14480
17690
  bundle?: {
@@ -14593,7 +17803,10 @@ type BundleLineItem = z.infer<typeof openBundleLineItem>;
14593
17803
  declare class OrderEndpoints {
14594
17804
  private api;
14595
17805
  constructor(api: MoonbaseApi);
14596
- get(orderId: string, abort?: AbortSignal): Promise<{
17806
+ get(orderId: string, options?: {
17807
+ abort?: AbortSignal;
17808
+ finalize?: boolean;
17809
+ }): Promise<{
14597
17810
  id: string;
14598
17811
  status: OrderStatus.Completed;
14599
17812
  total: {
@@ -14625,6 +17838,24 @@ declare class OrderEndpoints {
14625
17838
  quantity: number;
14626
17839
  productId: string;
14627
17840
  variationId: string;
17841
+ total?: {
17842
+ discount: {
17843
+ currency: string;
17844
+ amount: number;
17845
+ };
17846
+ original: {
17847
+ currency: string;
17848
+ amount: number;
17849
+ };
17850
+ subtotal: {
17851
+ currency: string;
17852
+ amount: number;
17853
+ };
17854
+ due: {
17855
+ currency: string;
17856
+ amount: number;
17857
+ };
17858
+ } | null | undefined;
14628
17859
  price?: Record<string, number> | undefined;
14629
17860
  product?: {
14630
17861
  id: string;
@@ -14690,6 +17921,24 @@ declare class OrderEndpoints {
14690
17921
  quantity: number;
14691
17922
  variationId: string;
14692
17923
  bundleId: string;
17924
+ total?: {
17925
+ discount: {
17926
+ currency: string;
17927
+ amount: number;
17928
+ };
17929
+ original: {
17930
+ currency: string;
17931
+ amount: number;
17932
+ };
17933
+ subtotal: {
17934
+ currency: string;
17935
+ amount: number;
17936
+ };
17937
+ due: {
17938
+ currency: string;
17939
+ amount: number;
17940
+ };
17941
+ } | null | undefined;
14693
17942
  price?: Record<string, number> | undefined;
14694
17943
  partial?: boolean | undefined;
14695
17944
  bundle?: {
@@ -14788,6 +18037,24 @@ declare class OrderEndpoints {
14788
18037
  quantity: number;
14789
18038
  productId: string;
14790
18039
  variationId: string;
18040
+ total?: {
18041
+ discount: {
18042
+ currency: string;
18043
+ amount: number;
18044
+ };
18045
+ original: {
18046
+ currency: string;
18047
+ amount: number;
18048
+ };
18049
+ subtotal: {
18050
+ currency: string;
18051
+ amount: number;
18052
+ };
18053
+ due: {
18054
+ currency: string;
18055
+ amount: number;
18056
+ };
18057
+ } | null | undefined;
14791
18058
  price?: Record<string, number> | undefined;
14792
18059
  product?: {
14793
18060
  id: string;
@@ -14853,6 +18120,24 @@ declare class OrderEndpoints {
14853
18120
  quantity: number;
14854
18121
  variationId: string;
14855
18122
  bundleId: string;
18123
+ total?: {
18124
+ discount: {
18125
+ currency: string;
18126
+ amount: number;
18127
+ };
18128
+ original: {
18129
+ currency: string;
18130
+ amount: number;
18131
+ };
18132
+ subtotal: {
18133
+ currency: string;
18134
+ amount: number;
18135
+ };
18136
+ due: {
18137
+ currency: string;
18138
+ amount: number;
18139
+ };
18140
+ } | null | undefined;
14856
18141
  price?: Record<string, number> | undefined;
14857
18142
  partial?: boolean | undefined;
14858
18143
  bundle?: {
@@ -14927,6 +18212,28 @@ declare class OrderEndpoints {
14927
18212
  code: string;
14928
18213
  description: string;
14929
18214
  }[];
18215
+ total?: {
18216
+ discount: {
18217
+ currency: string;
18218
+ amount: number;
18219
+ };
18220
+ original: {
18221
+ currency: string;
18222
+ amount: number;
18223
+ };
18224
+ subtotal: {
18225
+ currency: string;
18226
+ amount: number;
18227
+ };
18228
+ taxes: {
18229
+ currency: string;
18230
+ amount: number;
18231
+ };
18232
+ due: {
18233
+ currency: string;
18234
+ amount: number;
18235
+ };
18236
+ } | null | undefined;
14930
18237
  checkoutUrl?: string | undefined;
14931
18238
  embeddedCheckoutUrl?: string | undefined;
14932
18239
  } | {
@@ -14939,6 +18246,24 @@ declare class OrderEndpoints {
14939
18246
  quantity: number;
14940
18247
  productId: string;
14941
18248
  variationId: string;
18249
+ total?: {
18250
+ discount: {
18251
+ currency: string;
18252
+ amount: number;
18253
+ };
18254
+ original: {
18255
+ currency: string;
18256
+ amount: number;
18257
+ };
18258
+ subtotal: {
18259
+ currency: string;
18260
+ amount: number;
18261
+ };
18262
+ due: {
18263
+ currency: string;
18264
+ amount: number;
18265
+ };
18266
+ } | null | undefined;
14942
18267
  price?: Record<string, number> | undefined;
14943
18268
  product?: {
14944
18269
  id: string;
@@ -15004,6 +18329,24 @@ declare class OrderEndpoints {
15004
18329
  quantity: number;
15005
18330
  variationId: string;
15006
18331
  bundleId: string;
18332
+ total?: {
18333
+ discount: {
18334
+ currency: string;
18335
+ amount: number;
18336
+ };
18337
+ original: {
18338
+ currency: string;
18339
+ amount: number;
18340
+ };
18341
+ subtotal: {
18342
+ currency: string;
18343
+ amount: number;
18344
+ };
18345
+ due: {
18346
+ currency: string;
18347
+ amount: number;
18348
+ };
18349
+ } | null | undefined;
15007
18350
  price?: Record<string, number> | undefined;
15008
18351
  partial?: boolean | undefined;
15009
18352
  bundle?: {
@@ -15078,6 +18421,28 @@ declare class OrderEndpoints {
15078
18421
  code: string;
15079
18422
  description: string;
15080
18423
  }[];
18424
+ total?: {
18425
+ discount: {
18426
+ currency: string;
18427
+ amount: number;
18428
+ };
18429
+ original: {
18430
+ currency: string;
18431
+ amount: number;
18432
+ };
18433
+ subtotal: {
18434
+ currency: string;
18435
+ amount: number;
18436
+ };
18437
+ taxes: {
18438
+ currency: string;
18439
+ amount: number;
18440
+ };
18441
+ due: {
18442
+ currency: string;
18443
+ amount: number;
18444
+ };
18445
+ } | null | undefined;
15081
18446
  checkoutUrl?: string | undefined;
15082
18447
  embeddedCheckoutUrl?: string | undefined;
15083
18448
  } | {
@@ -15090,6 +18455,24 @@ declare class OrderEndpoints {
15090
18455
  quantity: number;
15091
18456
  productId: string;
15092
18457
  variationId: string;
18458
+ total?: {
18459
+ discount: {
18460
+ currency: string;
18461
+ amount: number;
18462
+ };
18463
+ original: {
18464
+ currency: string;
18465
+ amount: number;
18466
+ };
18467
+ subtotal: {
18468
+ currency: string;
18469
+ amount: number;
18470
+ };
18471
+ due: {
18472
+ currency: string;
18473
+ amount: number;
18474
+ };
18475
+ } | null | undefined;
15093
18476
  price?: Record<string, number> | undefined;
15094
18477
  product?: {
15095
18478
  id: string;
@@ -15155,6 +18538,24 @@ declare class OrderEndpoints {
15155
18538
  quantity: number;
15156
18539
  variationId: string;
15157
18540
  bundleId: string;
18541
+ total?: {
18542
+ discount: {
18543
+ currency: string;
18544
+ amount: number;
18545
+ };
18546
+ original: {
18547
+ currency: string;
18548
+ amount: number;
18549
+ };
18550
+ subtotal: {
18551
+ currency: string;
18552
+ amount: number;
18553
+ };
18554
+ due: {
18555
+ currency: string;
18556
+ amount: number;
18557
+ };
18558
+ } | null | undefined;
15158
18559
  price?: Record<string, number> | undefined;
15159
18560
  partial?: boolean | undefined;
15160
18561
  bundle?: {
@@ -15229,6 +18630,28 @@ declare class OrderEndpoints {
15229
18630
  code: string;
15230
18631
  description: string;
15231
18632
  }[];
18633
+ total?: {
18634
+ discount: {
18635
+ currency: string;
18636
+ amount: number;
18637
+ };
18638
+ original: {
18639
+ currency: string;
18640
+ amount: number;
18641
+ };
18642
+ subtotal: {
18643
+ currency: string;
18644
+ amount: number;
18645
+ };
18646
+ taxes: {
18647
+ currency: string;
18648
+ amount: number;
18649
+ };
18650
+ due: {
18651
+ currency: string;
18652
+ amount: number;
18653
+ };
18654
+ } | null | undefined;
15232
18655
  checkoutUrl?: string | undefined;
15233
18656
  embeddedCheckoutUrl?: string | undefined;
15234
18657
  } | {
@@ -15241,6 +18664,24 @@ declare class OrderEndpoints {
15241
18664
  quantity: number;
15242
18665
  productId: string;
15243
18666
  variationId: string;
18667
+ total?: {
18668
+ discount: {
18669
+ currency: string;
18670
+ amount: number;
18671
+ };
18672
+ original: {
18673
+ currency: string;
18674
+ amount: number;
18675
+ };
18676
+ subtotal: {
18677
+ currency: string;
18678
+ amount: number;
18679
+ };
18680
+ due: {
18681
+ currency: string;
18682
+ amount: number;
18683
+ };
18684
+ } | null | undefined;
15244
18685
  price?: Record<string, number> | undefined;
15245
18686
  product?: {
15246
18687
  id: string;
@@ -15306,6 +18747,24 @@ declare class OrderEndpoints {
15306
18747
  quantity: number;
15307
18748
  variationId: string;
15308
18749
  bundleId: string;
18750
+ total?: {
18751
+ discount: {
18752
+ currency: string;
18753
+ amount: number;
18754
+ };
18755
+ original: {
18756
+ currency: string;
18757
+ amount: number;
18758
+ };
18759
+ subtotal: {
18760
+ currency: string;
18761
+ amount: number;
18762
+ };
18763
+ due: {
18764
+ currency: string;
18765
+ amount: number;
18766
+ };
18767
+ } | null | undefined;
15309
18768
  price?: Record<string, number> | undefined;
15310
18769
  partial?: boolean | undefined;
15311
18770
  bundle?: {
@@ -15380,6 +18839,28 @@ declare class OrderEndpoints {
15380
18839
  code: string;
15381
18840
  description: string;
15382
18841
  }[];
18842
+ total?: {
18843
+ discount: {
18844
+ currency: string;
18845
+ amount: number;
18846
+ };
18847
+ original: {
18848
+ currency: string;
18849
+ amount: number;
18850
+ };
18851
+ subtotal: {
18852
+ currency: string;
18853
+ amount: number;
18854
+ };
18855
+ taxes: {
18856
+ currency: string;
18857
+ amount: number;
18858
+ };
18859
+ due: {
18860
+ currency: string;
18861
+ amount: number;
18862
+ };
18863
+ } | null | undefined;
15383
18864
  checkoutUrl?: string | undefined;
15384
18865
  embeddedCheckoutUrl?: string | undefined;
15385
18866
  }>;