@moonbase.sh/storefront-api 0.2.126 → 0.2.127

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
@@ -2640,7 +2640,6 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2640
2640
  }>]>;
2641
2641
  declare const openOrderSchema: z.ZodObject<{
2642
2642
  id: z.ZodString;
2643
- status: z.ZodLiteral<OrderStatus.Open>;
2644
2643
  currency: z.ZodString;
2645
2644
  items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2646
2645
  id: z.ZodString;
@@ -3208,7 +3207,6 @@ declare const openOrderSchema: z.ZodObject<{
3208
3207
  checkoutUrl: z.ZodOptional<z.ZodString>;
3209
3208
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
3210
3209
  }, "strip", z.ZodTypeAny, {
3211
- status: OrderStatus.Open;
3212
3210
  id: string;
3213
3211
  items: ({
3214
3212
  type: "Product";
@@ -3325,7 +3323,6 @@ declare const openOrderSchema: z.ZodObject<{
3325
3323
  checkoutUrl?: string | undefined;
3326
3324
  embeddedCheckoutUrl?: string | undefined;
3327
3325
  }, {
3328
- status: OrderStatus.Open;
3329
3326
  id: string;
3330
3327
  items: ({
3331
3328
  type: "Product";
@@ -4460,9 +4457,8 @@ declare const completedOrderSchema: z.ZodObject<{
4460
4457
  taxId: string | null;
4461
4458
  };
4462
4459
  }>;
4463
- declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
4460
+ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<{
4464
4461
  id: z.ZodString;
4465
- status: z.ZodLiteral<OrderStatus.Open>;
4466
4462
  currency: z.ZodString;
4467
4463
  items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4468
4464
  id: z.ZodString;
@@ -5029,7 +5025,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
5029
5025
  }>, "many">;
5030
5026
  checkoutUrl: z.ZodOptional<z.ZodString>;
5031
5027
  embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
5032
- }, "strip", z.ZodTypeAny, {
5028
+ }, {
5029
+ status: z.ZodLiteral<OrderStatus.Open>;
5030
+ }>, "strip", z.ZodTypeAny, {
5033
5031
  status: OrderStatus.Open;
5034
5032
  id: string;
5035
5033
  items: ({
@@ -5263,158 +5261,9 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
5263
5261
  }[];
5264
5262
  checkoutUrl?: string | undefined;
5265
5263
  embeddedCheckoutUrl?: string | undefined;
5266
- }>, z.ZodObject<{
5264
+ }>, z.ZodObject<z.objectUtil.extendShape<{
5267
5265
  id: z.ZodString;
5268
- status: z.ZodLiteral<OrderStatus.Completed>;
5269
5266
  currency: z.ZodString;
5270
- customer: z.ZodObject<{
5271
- name: z.ZodNullable<z.ZodString>;
5272
- businessName: z.ZodNullable<z.ZodString>;
5273
- taxId: z.ZodNullable<z.ZodString>;
5274
- email: z.ZodNullable<z.ZodString>;
5275
- address: z.ZodNullable<z.ZodObject<{
5276
- countryCode: z.ZodString;
5277
- streetAddress1: z.ZodString;
5278
- streetAddress2: z.ZodNullable<z.ZodString>;
5279
- locality: z.ZodNullable<z.ZodString>;
5280
- region: z.ZodNullable<z.ZodString>;
5281
- postCode: z.ZodString;
5282
- }, "strip", z.ZodTypeAny, {
5283
- countryCode: string;
5284
- streetAddress1: string;
5285
- streetAddress2: string | null;
5286
- locality: string | null;
5287
- region: string | null;
5288
- postCode: string;
5289
- }, {
5290
- countryCode: string;
5291
- streetAddress1: string;
5292
- streetAddress2: string | null;
5293
- locality: string | null;
5294
- region: string | null;
5295
- postCode: string;
5296
- }>>;
5297
- }, "strip", z.ZodTypeAny, {
5298
- email: string | null;
5299
- name: string | null;
5300
- address: {
5301
- countryCode: string;
5302
- streetAddress1: string;
5303
- streetAddress2: string | null;
5304
- locality: string | null;
5305
- region: string | null;
5306
- postCode: string;
5307
- } | null;
5308
- businessName: string | null;
5309
- taxId: string | null;
5310
- }, {
5311
- email: string | null;
5312
- name: string | null;
5313
- address: {
5314
- countryCode: string;
5315
- streetAddress1: string;
5316
- streetAddress2: string | null;
5317
- locality: string | null;
5318
- region: string | null;
5319
- postCode: string;
5320
- } | null;
5321
- businessName: string | null;
5322
- taxId: string | null;
5323
- }>;
5324
- total: z.ZodObject<{
5325
- original: z.ZodObject<{
5326
- currency: z.ZodString;
5327
- amount: z.ZodNumber;
5328
- }, "strip", z.ZodTypeAny, {
5329
- currency: string;
5330
- amount: number;
5331
- }, {
5332
- currency: string;
5333
- amount: number;
5334
- }>;
5335
- discount: z.ZodObject<{
5336
- currency: z.ZodString;
5337
- amount: z.ZodNumber;
5338
- }, "strip", z.ZodTypeAny, {
5339
- currency: string;
5340
- amount: number;
5341
- }, {
5342
- currency: string;
5343
- amount: number;
5344
- }>;
5345
- subtotal: z.ZodObject<{
5346
- currency: z.ZodString;
5347
- amount: z.ZodNumber;
5348
- }, "strip", z.ZodTypeAny, {
5349
- currency: string;
5350
- amount: number;
5351
- }, {
5352
- currency: string;
5353
- amount: number;
5354
- }>;
5355
- taxes: z.ZodObject<{
5356
- currency: z.ZodString;
5357
- amount: z.ZodNumber;
5358
- }, "strip", z.ZodTypeAny, {
5359
- currency: string;
5360
- amount: number;
5361
- }, {
5362
- currency: string;
5363
- amount: number;
5364
- }>;
5365
- due: z.ZodObject<{
5366
- currency: z.ZodString;
5367
- amount: z.ZodNumber;
5368
- }, "strip", z.ZodTypeAny, {
5369
- currency: string;
5370
- amount: number;
5371
- }, {
5372
- currency: string;
5373
- amount: number;
5374
- }>;
5375
- }, "strip", z.ZodTypeAny, {
5376
- discount: {
5377
- currency: string;
5378
- amount: number;
5379
- };
5380
- original: {
5381
- currency: string;
5382
- amount: number;
5383
- };
5384
- subtotal: {
5385
- currency: string;
5386
- amount: number;
5387
- };
5388
- taxes: {
5389
- currency: string;
5390
- amount: number;
5391
- };
5392
- due: {
5393
- currency: string;
5394
- amount: number;
5395
- };
5396
- }, {
5397
- discount: {
5398
- currency: string;
5399
- amount: number;
5400
- };
5401
- original: {
5402
- currency: string;
5403
- amount: number;
5404
- };
5405
- subtotal: {
5406
- currency: string;
5407
- amount: number;
5408
- };
5409
- taxes: {
5410
- currency: string;
5411
- amount: number;
5412
- };
5413
- due: {
5414
- currency: string;
5415
- amount: number;
5416
- };
5417
- }>;
5418
5267
  items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5419
5268
  id: z.ZodString;
5420
5269
  type: z.ZodLiteral<"Product">;
@@ -5978,31 +5827,13 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
5978
5827
  name: string;
5979
5828
  description: string;
5980
5829
  }>, "many">;
5981
- }, "strip", z.ZodTypeAny, {
5982
- status: OrderStatus.Completed;
5830
+ checkoutUrl: z.ZodOptional<z.ZodString>;
5831
+ embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
5832
+ }, {
5833
+ status: z.ZodLiteral<OrderStatus.PaymentProcessing>;
5834
+ }>, "strip", z.ZodTypeAny, {
5835
+ status: OrderStatus.PaymentProcessing;
5983
5836
  id: string;
5984
- total: {
5985
- discount: {
5986
- currency: string;
5987
- amount: number;
5988
- };
5989
- original: {
5990
- currency: string;
5991
- amount: number;
5992
- };
5993
- subtotal: {
5994
- currency: string;
5995
- amount: number;
5996
- };
5997
- taxes: {
5998
- currency: string;
5999
- amount: number;
6000
- };
6001
- due: {
6002
- currency: string;
6003
- amount: number;
6004
- };
6005
- };
6006
5837
  items: ({
6007
5838
  type: "Product";
6008
5839
  id: string;
@@ -6115,45 +5946,11 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
6115
5946
  name: string;
6116
5947
  description: string;
6117
5948
  }[];
6118
- customer: {
6119
- email: string | null;
6120
- name: string | null;
6121
- address: {
6122
- countryCode: string;
6123
- streetAddress1: string;
6124
- streetAddress2: string | null;
6125
- locality: string | null;
6126
- region: string | null;
6127
- postCode: string;
6128
- } | null;
6129
- businessName: string | null;
6130
- taxId: string | null;
6131
- };
5949
+ checkoutUrl?: string | undefined;
5950
+ embeddedCheckoutUrl?: string | undefined;
6132
5951
  }, {
6133
- status: OrderStatus.Completed;
5952
+ status: OrderStatus.PaymentProcessing;
6134
5953
  id: string;
6135
- total: {
6136
- discount: {
6137
- currency: string;
6138
- amount: number;
6139
- };
6140
- original: {
6141
- currency: string;
6142
- amount: number;
6143
- };
6144
- subtotal: {
6145
- currency: string;
6146
- amount: number;
6147
- };
6148
- taxes: {
6149
- currency: string;
6150
- amount: number;
6151
- };
6152
- due: {
6153
- currency: string;
6154
- amount: number;
6155
- };
6156
- };
6157
5954
  items: ({
6158
5955
  type: "Product";
6159
5956
  id: string;
@@ -6266,39 +6063,2653 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
6266
6063
  name: string;
6267
6064
  description: string;
6268
6065
  }[];
6269
- customer: {
6270
- email: string | null;
6271
- name: string | null;
6272
- address: {
6273
- countryCode: string;
6274
- streetAddress1: string;
6275
- streetAddress2: string | null;
6276
- locality: string | null;
6277
- region: string | null;
6278
- postCode: string;
6279
- } | null;
6280
- businessName: string | null;
6281
- taxId: string | null;
6282
- };
6283
- }>]>;
6284
-
6285
- declare const schemas$1_completedOrderSchema: typeof completedOrderSchema;
6286
- declare const schemas$1_openBundleLineItem: typeof openBundleLineItem;
6287
- declare const schemas$1_openOrderLineItem: typeof openOrderLineItem;
6288
- declare const schemas$1_openOrderSchema: typeof openOrderSchema;
6289
- declare const schemas$1_openProductLineItem: typeof openProductLineItem;
6290
- declare const schemas$1_orderSchema: typeof orderSchema;
6291
- declare namespace schemas$1 {
6292
- export { schemas$1_completedOrderSchema as completedOrderSchema, schemas$1_openBundleLineItem as openBundleLineItem, schemas$1_openOrderLineItem as openOrderLineItem, schemas$1_openOrderSchema as openOrderSchema, schemas$1_openProductLineItem as openProductLineItem, schemas$1_orderSchema as orderSchema };
6293
- }
6294
-
6295
- declare enum OrderStatus {
6296
- Open = "Open",
6297
- PaymentProcessing = "PaymentProcessing",
6298
- Completed = "Completed",
6299
- Failed = "Failed"
6300
- }
6301
- type OpenOrder = z.infer<typeof openOrderSchema>;
6066
+ checkoutUrl?: string | undefined;
6067
+ embeddedCheckoutUrl?: string | undefined;
6068
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6069
+ id: z.ZodString;
6070
+ currency: z.ZodString;
6071
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6072
+ id: z.ZodString;
6073
+ type: z.ZodLiteral<"Product">;
6074
+ productId: z.ZodString;
6075
+ quantity: z.ZodNumber;
6076
+ variationId: z.ZodString;
6077
+ price: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6078
+ variation: z.ZodOptional<z.ZodObject<{
6079
+ id: z.ZodString;
6080
+ name: z.ZodString;
6081
+ originalPrice: z.ZodRecord<z.ZodString, z.ZodNumber>;
6082
+ price: z.ZodRecord<z.ZodString, z.ZodNumber>;
6083
+ hasDiscount: z.ZodBoolean;
6084
+ discount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6085
+ type: z.ZodLiteral<"PercentageOffDiscount">;
6086
+ name: z.ZodString;
6087
+ description: z.ZodOptional<z.ZodString>;
6088
+ percentage: z.ZodNumber;
6089
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6090
+ isExclusive: z.ZodBoolean;
6091
+ }, "strip", z.ZodTypeAny, {
6092
+ type: "PercentageOffDiscount";
6093
+ name: string;
6094
+ percentage: number;
6095
+ isExclusive: boolean;
6096
+ description?: string | undefined;
6097
+ total?: Record<string, number> | undefined;
6098
+ }, {
6099
+ type: "PercentageOffDiscount";
6100
+ name: string;
6101
+ percentage: number;
6102
+ isExclusive: boolean;
6103
+ description?: string | undefined;
6104
+ total?: Record<string, number> | undefined;
6105
+ }>, z.ZodObject<{
6106
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
6107
+ name: z.ZodString;
6108
+ description: z.ZodOptional<z.ZodString>;
6109
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6110
+ isExclusive: z.ZodBoolean;
6111
+ }, "strip", z.ZodTypeAny, {
6112
+ type: "FlatAmountOffDiscount";
6113
+ name: string;
6114
+ isExclusive: boolean;
6115
+ description?: string | undefined;
6116
+ total?: Record<string, number> | undefined;
6117
+ }, {
6118
+ type: "FlatAmountOffDiscount";
6119
+ name: string;
6120
+ isExclusive: boolean;
6121
+ description?: string | undefined;
6122
+ total?: Record<string, number> | undefined;
6123
+ }>]>>;
6124
+ }, "strip", z.ZodTypeAny, {
6125
+ id: string;
6126
+ name: string;
6127
+ originalPrice: Record<string, number>;
6128
+ price: Record<string, number>;
6129
+ hasDiscount: boolean;
6130
+ discount?: {
6131
+ type: "PercentageOffDiscount";
6132
+ name: string;
6133
+ percentage: number;
6134
+ isExclusive: boolean;
6135
+ description?: string | undefined;
6136
+ total?: Record<string, number> | undefined;
6137
+ } | {
6138
+ type: "FlatAmountOffDiscount";
6139
+ name: string;
6140
+ isExclusive: boolean;
6141
+ description?: string | undefined;
6142
+ total?: Record<string, number> | undefined;
6143
+ } | undefined;
6144
+ }, {
6145
+ id: string;
6146
+ name: string;
6147
+ originalPrice: Record<string, number>;
6148
+ price: Record<string, number>;
6149
+ hasDiscount: boolean;
6150
+ discount?: {
6151
+ type: "PercentageOffDiscount";
6152
+ name: string;
6153
+ percentage: number;
6154
+ isExclusive: boolean;
6155
+ description?: string | undefined;
6156
+ total?: Record<string, number> | undefined;
6157
+ } | {
6158
+ type: "FlatAmountOffDiscount";
6159
+ name: string;
6160
+ isExclusive: boolean;
6161
+ description?: string | undefined;
6162
+ total?: Record<string, number> | undefined;
6163
+ } | undefined;
6164
+ }>>;
6165
+ product: z.ZodOptional<z.ZodObject<{
6166
+ id: z.ZodString;
6167
+ name: z.ZodString;
6168
+ tagline: z.ZodString;
6169
+ iconUrl: z.ZodNullable<z.ZodString>;
6170
+ }, "strip", z.ZodTypeAny, {
6171
+ id: string;
6172
+ name: string;
6173
+ tagline: string;
6174
+ iconUrl: string | null;
6175
+ }, {
6176
+ id: string;
6177
+ name: string;
6178
+ tagline: string;
6179
+ iconUrl: string | null;
6180
+ }>>;
6181
+ appliedDiscount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6182
+ type: z.ZodLiteral<"PercentageOffDiscount">;
6183
+ name: z.ZodString;
6184
+ description: z.ZodOptional<z.ZodString>;
6185
+ percentage: z.ZodNumber;
6186
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6187
+ isExclusive: z.ZodBoolean;
6188
+ }, "strip", z.ZodTypeAny, {
6189
+ type: "PercentageOffDiscount";
6190
+ name: string;
6191
+ percentage: number;
6192
+ isExclusive: boolean;
6193
+ description?: string | undefined;
6194
+ total?: Record<string, number> | undefined;
6195
+ }, {
6196
+ type: "PercentageOffDiscount";
6197
+ name: string;
6198
+ percentage: number;
6199
+ isExclusive: boolean;
6200
+ description?: string | undefined;
6201
+ total?: Record<string, number> | undefined;
6202
+ }>, z.ZodObject<{
6203
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
6204
+ name: z.ZodString;
6205
+ description: z.ZodOptional<z.ZodString>;
6206
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6207
+ isExclusive: z.ZodBoolean;
6208
+ }, "strip", z.ZodTypeAny, {
6209
+ type: "FlatAmountOffDiscount";
6210
+ name: string;
6211
+ isExclusive: boolean;
6212
+ description?: string | undefined;
6213
+ total?: Record<string, number> | undefined;
6214
+ }, {
6215
+ type: "FlatAmountOffDiscount";
6216
+ name: string;
6217
+ isExclusive: boolean;
6218
+ description?: string | undefined;
6219
+ total?: Record<string, number> | undefined;
6220
+ }>]>>;
6221
+ }, "strip", z.ZodTypeAny, {
6222
+ type: "Product";
6223
+ id: string;
6224
+ quantity: number;
6225
+ productId: string;
6226
+ variationId: string;
6227
+ price?: Record<string, number> | undefined;
6228
+ product?: {
6229
+ id: string;
6230
+ name: string;
6231
+ tagline: string;
6232
+ iconUrl: string | null;
6233
+ } | undefined;
6234
+ variation?: {
6235
+ id: string;
6236
+ name: string;
6237
+ originalPrice: Record<string, number>;
6238
+ price: Record<string, number>;
6239
+ hasDiscount: boolean;
6240
+ discount?: {
6241
+ type: "PercentageOffDiscount";
6242
+ name: string;
6243
+ percentage: number;
6244
+ isExclusive: boolean;
6245
+ description?: string | undefined;
6246
+ total?: Record<string, number> | undefined;
6247
+ } | {
6248
+ type: "FlatAmountOffDiscount";
6249
+ name: string;
6250
+ isExclusive: boolean;
6251
+ description?: string | undefined;
6252
+ total?: Record<string, number> | undefined;
6253
+ } | undefined;
6254
+ } | undefined;
6255
+ appliedDiscount?: {
6256
+ type: "PercentageOffDiscount";
6257
+ name: string;
6258
+ percentage: number;
6259
+ isExclusive: boolean;
6260
+ description?: string | undefined;
6261
+ total?: Record<string, number> | undefined;
6262
+ } | {
6263
+ type: "FlatAmountOffDiscount";
6264
+ name: string;
6265
+ isExclusive: boolean;
6266
+ description?: string | undefined;
6267
+ total?: Record<string, number> | undefined;
6268
+ } | undefined;
6269
+ }, {
6270
+ type: "Product";
6271
+ id: string;
6272
+ quantity: number;
6273
+ productId: string;
6274
+ variationId: string;
6275
+ price?: Record<string, number> | undefined;
6276
+ product?: {
6277
+ id: string;
6278
+ name: string;
6279
+ tagline: string;
6280
+ iconUrl: string | null;
6281
+ } | undefined;
6282
+ variation?: {
6283
+ id: string;
6284
+ name: string;
6285
+ originalPrice: Record<string, number>;
6286
+ price: Record<string, number>;
6287
+ hasDiscount: boolean;
6288
+ discount?: {
6289
+ type: "PercentageOffDiscount";
6290
+ name: string;
6291
+ percentage: number;
6292
+ isExclusive: boolean;
6293
+ description?: string | undefined;
6294
+ total?: Record<string, number> | undefined;
6295
+ } | {
6296
+ type: "FlatAmountOffDiscount";
6297
+ name: string;
6298
+ isExclusive: boolean;
6299
+ description?: string | undefined;
6300
+ total?: Record<string, number> | undefined;
6301
+ } | undefined;
6302
+ } | undefined;
6303
+ appliedDiscount?: {
6304
+ type: "PercentageOffDiscount";
6305
+ name: string;
6306
+ percentage: number;
6307
+ isExclusive: boolean;
6308
+ description?: string | undefined;
6309
+ total?: Record<string, number> | undefined;
6310
+ } | {
6311
+ type: "FlatAmountOffDiscount";
6312
+ name: string;
6313
+ isExclusive: boolean;
6314
+ description?: string | undefined;
6315
+ total?: Record<string, number> | undefined;
6316
+ } | undefined;
6317
+ }>, z.ZodObject<{
6318
+ id: z.ZodString;
6319
+ type: z.ZodLiteral<"Bundle">;
6320
+ bundleId: z.ZodString;
6321
+ quantity: z.ZodNumber;
6322
+ variationId: z.ZodString;
6323
+ partial: z.ZodOptional<z.ZodBoolean>;
6324
+ price: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6325
+ variation: z.ZodOptional<z.ZodObject<{
6326
+ id: z.ZodString;
6327
+ name: z.ZodString;
6328
+ originalPrice: z.ZodRecord<z.ZodString, z.ZodNumber>;
6329
+ price: z.ZodRecord<z.ZodString, z.ZodNumber>;
6330
+ hasDiscount: z.ZodBoolean;
6331
+ discount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6332
+ type: z.ZodLiteral<"PercentageOffDiscount">;
6333
+ name: z.ZodString;
6334
+ description: z.ZodOptional<z.ZodString>;
6335
+ percentage: z.ZodNumber;
6336
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6337
+ isExclusive: z.ZodBoolean;
6338
+ }, "strip", z.ZodTypeAny, {
6339
+ type: "PercentageOffDiscount";
6340
+ name: string;
6341
+ percentage: number;
6342
+ isExclusive: boolean;
6343
+ description?: string | undefined;
6344
+ total?: Record<string, number> | undefined;
6345
+ }, {
6346
+ type: "PercentageOffDiscount";
6347
+ name: string;
6348
+ percentage: number;
6349
+ isExclusive: boolean;
6350
+ description?: string | undefined;
6351
+ total?: Record<string, number> | undefined;
6352
+ }>, z.ZodObject<{
6353
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
6354
+ name: z.ZodString;
6355
+ description: z.ZodOptional<z.ZodString>;
6356
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6357
+ isExclusive: z.ZodBoolean;
6358
+ }, "strip", z.ZodTypeAny, {
6359
+ type: "FlatAmountOffDiscount";
6360
+ name: string;
6361
+ isExclusive: boolean;
6362
+ description?: string | undefined;
6363
+ total?: Record<string, number> | undefined;
6364
+ }, {
6365
+ type: "FlatAmountOffDiscount";
6366
+ name: string;
6367
+ isExclusive: boolean;
6368
+ description?: string | undefined;
6369
+ total?: Record<string, number> | undefined;
6370
+ }>]>>;
6371
+ }, "strip", z.ZodTypeAny, {
6372
+ id: string;
6373
+ name: string;
6374
+ originalPrice: Record<string, number>;
6375
+ price: Record<string, number>;
6376
+ hasDiscount: boolean;
6377
+ discount?: {
6378
+ type: "PercentageOffDiscount";
6379
+ name: string;
6380
+ percentage: number;
6381
+ isExclusive: boolean;
6382
+ description?: string | undefined;
6383
+ total?: Record<string, number> | undefined;
6384
+ } | {
6385
+ type: "FlatAmountOffDiscount";
6386
+ name: string;
6387
+ isExclusive: boolean;
6388
+ description?: string | undefined;
6389
+ total?: Record<string, number> | undefined;
6390
+ } | undefined;
6391
+ }, {
6392
+ id: string;
6393
+ name: string;
6394
+ originalPrice: Record<string, number>;
6395
+ price: Record<string, number>;
6396
+ hasDiscount: boolean;
6397
+ discount?: {
6398
+ type: "PercentageOffDiscount";
6399
+ name: string;
6400
+ percentage: number;
6401
+ isExclusive: boolean;
6402
+ description?: string | undefined;
6403
+ total?: Record<string, number> | undefined;
6404
+ } | {
6405
+ type: "FlatAmountOffDiscount";
6406
+ name: string;
6407
+ isExclusive: boolean;
6408
+ description?: string | undefined;
6409
+ total?: Record<string, number> | undefined;
6410
+ } | undefined;
6411
+ }>>;
6412
+ bundle: z.ZodOptional<z.ZodObject<{
6413
+ id: z.ZodString;
6414
+ name: z.ZodString;
6415
+ tagline: z.ZodString;
6416
+ iconUrl: z.ZodNullable<z.ZodString>;
6417
+ products: z.ZodArray<z.ZodIntersection<z.ZodObject<{
6418
+ id: z.ZodString;
6419
+ name: z.ZodString;
6420
+ tagline: z.ZodString;
6421
+ iconUrl: z.ZodNullable<z.ZodString>;
6422
+ }, "strip", z.ZodTypeAny, {
6423
+ id: string;
6424
+ name: string;
6425
+ tagline: string;
6426
+ iconUrl: string | null;
6427
+ }, {
6428
+ id: string;
6429
+ name: string;
6430
+ tagline: string;
6431
+ iconUrl: string | null;
6432
+ }>, z.ZodObject<{
6433
+ included: z.ZodOptional<z.ZodBoolean>;
6434
+ }, "strip", z.ZodTypeAny, {
6435
+ included?: boolean | undefined;
6436
+ }, {
6437
+ included?: boolean | undefined;
6438
+ }>>, "many">;
6439
+ }, "strip", z.ZodTypeAny, {
6440
+ id: string;
6441
+ name: string;
6442
+ tagline: string;
6443
+ iconUrl: string | null;
6444
+ products: ({
6445
+ id: string;
6446
+ name: string;
6447
+ tagline: string;
6448
+ iconUrl: string | null;
6449
+ } & {
6450
+ included?: boolean | undefined;
6451
+ })[];
6452
+ }, {
6453
+ id: string;
6454
+ name: string;
6455
+ tagline: string;
6456
+ iconUrl: string | null;
6457
+ products: ({
6458
+ id: string;
6459
+ name: string;
6460
+ tagline: string;
6461
+ iconUrl: string | null;
6462
+ } & {
6463
+ included?: boolean | undefined;
6464
+ })[];
6465
+ }>>;
6466
+ appliedDiscount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6467
+ type: z.ZodLiteral<"PercentageOffDiscount">;
6468
+ name: z.ZodString;
6469
+ description: z.ZodOptional<z.ZodString>;
6470
+ percentage: z.ZodNumber;
6471
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6472
+ isExclusive: z.ZodBoolean;
6473
+ }, "strip", z.ZodTypeAny, {
6474
+ type: "PercentageOffDiscount";
6475
+ name: string;
6476
+ percentage: number;
6477
+ isExclusive: boolean;
6478
+ description?: string | undefined;
6479
+ total?: Record<string, number> | undefined;
6480
+ }, {
6481
+ type: "PercentageOffDiscount";
6482
+ name: string;
6483
+ percentage: number;
6484
+ isExclusive: boolean;
6485
+ description?: string | undefined;
6486
+ total?: Record<string, number> | undefined;
6487
+ }>, z.ZodObject<{
6488
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
6489
+ name: z.ZodString;
6490
+ description: z.ZodOptional<z.ZodString>;
6491
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6492
+ isExclusive: z.ZodBoolean;
6493
+ }, "strip", z.ZodTypeAny, {
6494
+ type: "FlatAmountOffDiscount";
6495
+ name: string;
6496
+ isExclusive: boolean;
6497
+ description?: string | undefined;
6498
+ total?: Record<string, number> | undefined;
6499
+ }, {
6500
+ type: "FlatAmountOffDiscount";
6501
+ name: string;
6502
+ isExclusive: boolean;
6503
+ description?: string | undefined;
6504
+ total?: Record<string, number> | undefined;
6505
+ }>]>>;
6506
+ }, "strip", z.ZodTypeAny, {
6507
+ type: "Bundle";
6508
+ id: string;
6509
+ quantity: number;
6510
+ variationId: string;
6511
+ bundleId: string;
6512
+ price?: Record<string, number> | undefined;
6513
+ partial?: boolean | undefined;
6514
+ bundle?: {
6515
+ id: string;
6516
+ name: string;
6517
+ tagline: string;
6518
+ iconUrl: string | null;
6519
+ products: ({
6520
+ id: string;
6521
+ name: string;
6522
+ tagline: string;
6523
+ iconUrl: string | null;
6524
+ } & {
6525
+ included?: boolean | undefined;
6526
+ })[];
6527
+ } | undefined;
6528
+ variation?: {
6529
+ id: string;
6530
+ name: string;
6531
+ originalPrice: Record<string, number>;
6532
+ price: Record<string, number>;
6533
+ hasDiscount: boolean;
6534
+ discount?: {
6535
+ type: "PercentageOffDiscount";
6536
+ name: string;
6537
+ percentage: number;
6538
+ isExclusive: boolean;
6539
+ description?: string | undefined;
6540
+ total?: Record<string, number> | undefined;
6541
+ } | {
6542
+ type: "FlatAmountOffDiscount";
6543
+ name: string;
6544
+ isExclusive: boolean;
6545
+ description?: string | undefined;
6546
+ total?: Record<string, number> | undefined;
6547
+ } | undefined;
6548
+ } | undefined;
6549
+ appliedDiscount?: {
6550
+ type: "PercentageOffDiscount";
6551
+ name: string;
6552
+ percentage: number;
6553
+ isExclusive: boolean;
6554
+ description?: string | undefined;
6555
+ total?: Record<string, number> | undefined;
6556
+ } | {
6557
+ type: "FlatAmountOffDiscount";
6558
+ name: string;
6559
+ isExclusive: boolean;
6560
+ description?: string | undefined;
6561
+ total?: Record<string, number> | undefined;
6562
+ } | undefined;
6563
+ }, {
6564
+ type: "Bundle";
6565
+ id: string;
6566
+ quantity: number;
6567
+ variationId: string;
6568
+ bundleId: string;
6569
+ price?: Record<string, number> | undefined;
6570
+ partial?: boolean | undefined;
6571
+ bundle?: {
6572
+ id: string;
6573
+ name: string;
6574
+ tagline: string;
6575
+ iconUrl: string | null;
6576
+ products: ({
6577
+ id: string;
6578
+ name: string;
6579
+ tagline: string;
6580
+ iconUrl: string | null;
6581
+ } & {
6582
+ included?: boolean | undefined;
6583
+ })[];
6584
+ } | undefined;
6585
+ variation?: {
6586
+ id: string;
6587
+ name: string;
6588
+ originalPrice: Record<string, number>;
6589
+ price: Record<string, number>;
6590
+ hasDiscount: boolean;
6591
+ discount?: {
6592
+ type: "PercentageOffDiscount";
6593
+ name: string;
6594
+ percentage: number;
6595
+ isExclusive: boolean;
6596
+ description?: string | undefined;
6597
+ total?: Record<string, number> | undefined;
6598
+ } | {
6599
+ type: "FlatAmountOffDiscount";
6600
+ name: string;
6601
+ isExclusive: boolean;
6602
+ description?: string | undefined;
6603
+ total?: Record<string, number> | undefined;
6604
+ } | undefined;
6605
+ } | undefined;
6606
+ appliedDiscount?: {
6607
+ type: "PercentageOffDiscount";
6608
+ name: string;
6609
+ percentage: number;
6610
+ isExclusive: boolean;
6611
+ description?: string | undefined;
6612
+ total?: Record<string, number> | undefined;
6613
+ } | {
6614
+ type: "FlatAmountOffDiscount";
6615
+ name: string;
6616
+ isExclusive: boolean;
6617
+ description?: string | undefined;
6618
+ total?: Record<string, number> | undefined;
6619
+ } | undefined;
6620
+ }>]>, "many">;
6621
+ couponsApplied: z.ZodArray<z.ZodObject<{
6622
+ code: z.ZodString;
6623
+ name: z.ZodString;
6624
+ description: z.ZodString;
6625
+ }, "strip", z.ZodTypeAny, {
6626
+ code: string;
6627
+ name: string;
6628
+ description: string;
6629
+ }, {
6630
+ code: string;
6631
+ name: string;
6632
+ description: string;
6633
+ }>, "many">;
6634
+ checkoutUrl: z.ZodOptional<z.ZodString>;
6635
+ embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
6636
+ }, {
6637
+ status: z.ZodLiteral<OrderStatus.Paid>;
6638
+ }>, "strip", z.ZodTypeAny, {
6639
+ status: OrderStatus.Paid;
6640
+ id: string;
6641
+ items: ({
6642
+ type: "Product";
6643
+ id: string;
6644
+ quantity: number;
6645
+ productId: string;
6646
+ variationId: string;
6647
+ price?: Record<string, number> | undefined;
6648
+ product?: {
6649
+ id: string;
6650
+ name: string;
6651
+ tagline: string;
6652
+ iconUrl: string | null;
6653
+ } | undefined;
6654
+ variation?: {
6655
+ id: string;
6656
+ name: string;
6657
+ originalPrice: Record<string, number>;
6658
+ price: Record<string, number>;
6659
+ hasDiscount: boolean;
6660
+ discount?: {
6661
+ type: "PercentageOffDiscount";
6662
+ name: string;
6663
+ percentage: number;
6664
+ isExclusive: boolean;
6665
+ description?: string | undefined;
6666
+ total?: Record<string, number> | undefined;
6667
+ } | {
6668
+ type: "FlatAmountOffDiscount";
6669
+ name: string;
6670
+ isExclusive: boolean;
6671
+ description?: string | undefined;
6672
+ total?: Record<string, number> | undefined;
6673
+ } | undefined;
6674
+ } | undefined;
6675
+ appliedDiscount?: {
6676
+ type: "PercentageOffDiscount";
6677
+ name: string;
6678
+ percentage: number;
6679
+ isExclusive: boolean;
6680
+ description?: string | undefined;
6681
+ total?: Record<string, number> | undefined;
6682
+ } | {
6683
+ type: "FlatAmountOffDiscount";
6684
+ name: string;
6685
+ isExclusive: boolean;
6686
+ description?: string | undefined;
6687
+ total?: Record<string, number> | undefined;
6688
+ } | undefined;
6689
+ } | {
6690
+ type: "Bundle";
6691
+ id: string;
6692
+ quantity: number;
6693
+ variationId: string;
6694
+ bundleId: string;
6695
+ price?: Record<string, number> | undefined;
6696
+ partial?: boolean | undefined;
6697
+ bundle?: {
6698
+ id: string;
6699
+ name: string;
6700
+ tagline: string;
6701
+ iconUrl: string | null;
6702
+ products: ({
6703
+ id: string;
6704
+ name: string;
6705
+ tagline: string;
6706
+ iconUrl: string | null;
6707
+ } & {
6708
+ included?: boolean | undefined;
6709
+ })[];
6710
+ } | undefined;
6711
+ variation?: {
6712
+ id: string;
6713
+ name: string;
6714
+ originalPrice: Record<string, number>;
6715
+ price: Record<string, number>;
6716
+ hasDiscount: boolean;
6717
+ discount?: {
6718
+ type: "PercentageOffDiscount";
6719
+ name: string;
6720
+ percentage: number;
6721
+ isExclusive: boolean;
6722
+ description?: string | undefined;
6723
+ total?: Record<string, number> | undefined;
6724
+ } | {
6725
+ type: "FlatAmountOffDiscount";
6726
+ name: string;
6727
+ isExclusive: boolean;
6728
+ description?: string | undefined;
6729
+ total?: Record<string, number> | undefined;
6730
+ } | undefined;
6731
+ } | undefined;
6732
+ appliedDiscount?: {
6733
+ type: "PercentageOffDiscount";
6734
+ name: string;
6735
+ percentage: number;
6736
+ isExclusive: boolean;
6737
+ description?: string | undefined;
6738
+ total?: Record<string, number> | undefined;
6739
+ } | {
6740
+ type: "FlatAmountOffDiscount";
6741
+ name: string;
6742
+ isExclusive: boolean;
6743
+ description?: string | undefined;
6744
+ total?: Record<string, number> | undefined;
6745
+ } | undefined;
6746
+ })[];
6747
+ currency: string;
6748
+ couponsApplied: {
6749
+ code: string;
6750
+ name: string;
6751
+ description: string;
6752
+ }[];
6753
+ checkoutUrl?: string | undefined;
6754
+ embeddedCheckoutUrl?: string | undefined;
6755
+ }, {
6756
+ status: OrderStatus.Paid;
6757
+ id: string;
6758
+ items: ({
6759
+ type: "Product";
6760
+ id: string;
6761
+ quantity: number;
6762
+ productId: string;
6763
+ variationId: string;
6764
+ price?: Record<string, number> | undefined;
6765
+ product?: {
6766
+ id: string;
6767
+ name: string;
6768
+ tagline: string;
6769
+ iconUrl: string | null;
6770
+ } | undefined;
6771
+ variation?: {
6772
+ id: string;
6773
+ name: string;
6774
+ originalPrice: Record<string, number>;
6775
+ price: Record<string, number>;
6776
+ hasDiscount: boolean;
6777
+ discount?: {
6778
+ type: "PercentageOffDiscount";
6779
+ name: string;
6780
+ percentage: number;
6781
+ isExclusive: boolean;
6782
+ description?: string | undefined;
6783
+ total?: Record<string, number> | undefined;
6784
+ } | {
6785
+ type: "FlatAmountOffDiscount";
6786
+ name: string;
6787
+ isExclusive: boolean;
6788
+ description?: string | undefined;
6789
+ total?: Record<string, number> | undefined;
6790
+ } | undefined;
6791
+ } | undefined;
6792
+ appliedDiscount?: {
6793
+ type: "PercentageOffDiscount";
6794
+ name: string;
6795
+ percentage: number;
6796
+ isExclusive: boolean;
6797
+ description?: string | undefined;
6798
+ total?: Record<string, number> | undefined;
6799
+ } | {
6800
+ type: "FlatAmountOffDiscount";
6801
+ name: string;
6802
+ isExclusive: boolean;
6803
+ description?: string | undefined;
6804
+ total?: Record<string, number> | undefined;
6805
+ } | undefined;
6806
+ } | {
6807
+ type: "Bundle";
6808
+ id: string;
6809
+ quantity: number;
6810
+ variationId: string;
6811
+ bundleId: string;
6812
+ price?: Record<string, number> | undefined;
6813
+ partial?: boolean | undefined;
6814
+ bundle?: {
6815
+ id: string;
6816
+ name: string;
6817
+ tagline: string;
6818
+ iconUrl: string | null;
6819
+ products: ({
6820
+ id: string;
6821
+ name: string;
6822
+ tagline: string;
6823
+ iconUrl: string | null;
6824
+ } & {
6825
+ included?: boolean | undefined;
6826
+ })[];
6827
+ } | undefined;
6828
+ variation?: {
6829
+ id: string;
6830
+ name: string;
6831
+ originalPrice: Record<string, number>;
6832
+ price: Record<string, number>;
6833
+ hasDiscount: boolean;
6834
+ discount?: {
6835
+ type: "PercentageOffDiscount";
6836
+ name: string;
6837
+ percentage: number;
6838
+ isExclusive: boolean;
6839
+ description?: string | undefined;
6840
+ total?: Record<string, number> | undefined;
6841
+ } | {
6842
+ type: "FlatAmountOffDiscount";
6843
+ name: string;
6844
+ isExclusive: boolean;
6845
+ description?: string | undefined;
6846
+ total?: Record<string, number> | undefined;
6847
+ } | undefined;
6848
+ } | undefined;
6849
+ appliedDiscount?: {
6850
+ type: "PercentageOffDiscount";
6851
+ name: string;
6852
+ percentage: number;
6853
+ isExclusive: boolean;
6854
+ description?: string | undefined;
6855
+ total?: Record<string, number> | undefined;
6856
+ } | {
6857
+ type: "FlatAmountOffDiscount";
6858
+ name: string;
6859
+ isExclusive: boolean;
6860
+ description?: string | undefined;
6861
+ total?: Record<string, number> | undefined;
6862
+ } | undefined;
6863
+ })[];
6864
+ currency: string;
6865
+ couponsApplied: {
6866
+ code: string;
6867
+ name: string;
6868
+ description: string;
6869
+ }[];
6870
+ checkoutUrl?: string | undefined;
6871
+ embeddedCheckoutUrl?: string | undefined;
6872
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6873
+ id: z.ZodString;
6874
+ currency: z.ZodString;
6875
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6876
+ id: z.ZodString;
6877
+ type: z.ZodLiteral<"Product">;
6878
+ productId: z.ZodString;
6879
+ quantity: z.ZodNumber;
6880
+ variationId: z.ZodString;
6881
+ price: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6882
+ variation: z.ZodOptional<z.ZodObject<{
6883
+ id: z.ZodString;
6884
+ name: z.ZodString;
6885
+ originalPrice: z.ZodRecord<z.ZodString, z.ZodNumber>;
6886
+ price: z.ZodRecord<z.ZodString, z.ZodNumber>;
6887
+ hasDiscount: z.ZodBoolean;
6888
+ discount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6889
+ type: z.ZodLiteral<"PercentageOffDiscount">;
6890
+ name: z.ZodString;
6891
+ description: z.ZodOptional<z.ZodString>;
6892
+ percentage: z.ZodNumber;
6893
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6894
+ isExclusive: z.ZodBoolean;
6895
+ }, "strip", z.ZodTypeAny, {
6896
+ type: "PercentageOffDiscount";
6897
+ name: string;
6898
+ percentage: number;
6899
+ isExclusive: boolean;
6900
+ description?: string | undefined;
6901
+ total?: Record<string, number> | undefined;
6902
+ }, {
6903
+ type: "PercentageOffDiscount";
6904
+ name: string;
6905
+ percentage: number;
6906
+ isExclusive: boolean;
6907
+ description?: string | undefined;
6908
+ total?: Record<string, number> | undefined;
6909
+ }>, z.ZodObject<{
6910
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
6911
+ name: z.ZodString;
6912
+ description: z.ZodOptional<z.ZodString>;
6913
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6914
+ isExclusive: z.ZodBoolean;
6915
+ }, "strip", z.ZodTypeAny, {
6916
+ type: "FlatAmountOffDiscount";
6917
+ name: string;
6918
+ isExclusive: boolean;
6919
+ description?: string | undefined;
6920
+ total?: Record<string, number> | undefined;
6921
+ }, {
6922
+ type: "FlatAmountOffDiscount";
6923
+ name: string;
6924
+ isExclusive: boolean;
6925
+ description?: string | undefined;
6926
+ total?: Record<string, number> | undefined;
6927
+ }>]>>;
6928
+ }, "strip", z.ZodTypeAny, {
6929
+ id: string;
6930
+ name: string;
6931
+ originalPrice: Record<string, number>;
6932
+ price: Record<string, number>;
6933
+ hasDiscount: boolean;
6934
+ discount?: {
6935
+ type: "PercentageOffDiscount";
6936
+ name: string;
6937
+ percentage: number;
6938
+ isExclusive: boolean;
6939
+ description?: string | undefined;
6940
+ total?: Record<string, number> | undefined;
6941
+ } | {
6942
+ type: "FlatAmountOffDiscount";
6943
+ name: string;
6944
+ isExclusive: boolean;
6945
+ description?: string | undefined;
6946
+ total?: Record<string, number> | undefined;
6947
+ } | undefined;
6948
+ }, {
6949
+ id: string;
6950
+ name: string;
6951
+ originalPrice: Record<string, number>;
6952
+ price: Record<string, number>;
6953
+ hasDiscount: boolean;
6954
+ discount?: {
6955
+ type: "PercentageOffDiscount";
6956
+ name: string;
6957
+ percentage: number;
6958
+ isExclusive: boolean;
6959
+ description?: string | undefined;
6960
+ total?: Record<string, number> | undefined;
6961
+ } | {
6962
+ type: "FlatAmountOffDiscount";
6963
+ name: string;
6964
+ isExclusive: boolean;
6965
+ description?: string | undefined;
6966
+ total?: Record<string, number> | undefined;
6967
+ } | undefined;
6968
+ }>>;
6969
+ product: z.ZodOptional<z.ZodObject<{
6970
+ id: z.ZodString;
6971
+ name: z.ZodString;
6972
+ tagline: z.ZodString;
6973
+ iconUrl: z.ZodNullable<z.ZodString>;
6974
+ }, "strip", z.ZodTypeAny, {
6975
+ id: string;
6976
+ name: string;
6977
+ tagline: string;
6978
+ iconUrl: string | null;
6979
+ }, {
6980
+ id: string;
6981
+ name: string;
6982
+ tagline: string;
6983
+ iconUrl: string | null;
6984
+ }>>;
6985
+ appliedDiscount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6986
+ type: z.ZodLiteral<"PercentageOffDiscount">;
6987
+ name: z.ZodString;
6988
+ description: z.ZodOptional<z.ZodString>;
6989
+ percentage: z.ZodNumber;
6990
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
6991
+ isExclusive: z.ZodBoolean;
6992
+ }, "strip", z.ZodTypeAny, {
6993
+ type: "PercentageOffDiscount";
6994
+ name: string;
6995
+ percentage: number;
6996
+ isExclusive: boolean;
6997
+ description?: string | undefined;
6998
+ total?: Record<string, number> | undefined;
6999
+ }, {
7000
+ type: "PercentageOffDiscount";
7001
+ name: string;
7002
+ percentage: number;
7003
+ isExclusive: boolean;
7004
+ description?: string | undefined;
7005
+ total?: Record<string, number> | undefined;
7006
+ }>, z.ZodObject<{
7007
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
7008
+ name: z.ZodString;
7009
+ description: z.ZodOptional<z.ZodString>;
7010
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7011
+ isExclusive: z.ZodBoolean;
7012
+ }, "strip", z.ZodTypeAny, {
7013
+ type: "FlatAmountOffDiscount";
7014
+ name: string;
7015
+ isExclusive: boolean;
7016
+ description?: string | undefined;
7017
+ total?: Record<string, number> | undefined;
7018
+ }, {
7019
+ type: "FlatAmountOffDiscount";
7020
+ name: string;
7021
+ isExclusive: boolean;
7022
+ description?: string | undefined;
7023
+ total?: Record<string, number> | undefined;
7024
+ }>]>>;
7025
+ }, "strip", z.ZodTypeAny, {
7026
+ type: "Product";
7027
+ id: string;
7028
+ quantity: number;
7029
+ productId: string;
7030
+ variationId: string;
7031
+ price?: Record<string, number> | undefined;
7032
+ product?: {
7033
+ id: string;
7034
+ name: string;
7035
+ tagline: string;
7036
+ iconUrl: string | null;
7037
+ } | undefined;
7038
+ variation?: {
7039
+ id: string;
7040
+ name: string;
7041
+ originalPrice: Record<string, number>;
7042
+ price: Record<string, number>;
7043
+ hasDiscount: boolean;
7044
+ discount?: {
7045
+ type: "PercentageOffDiscount";
7046
+ name: string;
7047
+ percentage: number;
7048
+ isExclusive: boolean;
7049
+ description?: string | undefined;
7050
+ total?: Record<string, number> | undefined;
7051
+ } | {
7052
+ type: "FlatAmountOffDiscount";
7053
+ name: string;
7054
+ isExclusive: boolean;
7055
+ description?: string | undefined;
7056
+ total?: Record<string, number> | undefined;
7057
+ } | undefined;
7058
+ } | undefined;
7059
+ appliedDiscount?: {
7060
+ type: "PercentageOffDiscount";
7061
+ name: string;
7062
+ percentage: number;
7063
+ isExclusive: boolean;
7064
+ description?: string | undefined;
7065
+ total?: Record<string, number> | undefined;
7066
+ } | {
7067
+ type: "FlatAmountOffDiscount";
7068
+ name: string;
7069
+ isExclusive: boolean;
7070
+ description?: string | undefined;
7071
+ total?: Record<string, number> | undefined;
7072
+ } | undefined;
7073
+ }, {
7074
+ type: "Product";
7075
+ id: string;
7076
+ quantity: number;
7077
+ productId: string;
7078
+ variationId: string;
7079
+ price?: Record<string, number> | undefined;
7080
+ product?: {
7081
+ id: string;
7082
+ name: string;
7083
+ tagline: string;
7084
+ iconUrl: string | null;
7085
+ } | undefined;
7086
+ variation?: {
7087
+ id: string;
7088
+ name: string;
7089
+ originalPrice: Record<string, number>;
7090
+ price: Record<string, number>;
7091
+ hasDiscount: boolean;
7092
+ discount?: {
7093
+ type: "PercentageOffDiscount";
7094
+ name: string;
7095
+ percentage: number;
7096
+ isExclusive: boolean;
7097
+ description?: string | undefined;
7098
+ total?: Record<string, number> | undefined;
7099
+ } | {
7100
+ type: "FlatAmountOffDiscount";
7101
+ name: string;
7102
+ isExclusive: boolean;
7103
+ description?: string | undefined;
7104
+ total?: Record<string, number> | undefined;
7105
+ } | undefined;
7106
+ } | undefined;
7107
+ appliedDiscount?: {
7108
+ type: "PercentageOffDiscount";
7109
+ name: string;
7110
+ percentage: number;
7111
+ isExclusive: boolean;
7112
+ description?: string | undefined;
7113
+ total?: Record<string, number> | undefined;
7114
+ } | {
7115
+ type: "FlatAmountOffDiscount";
7116
+ name: string;
7117
+ isExclusive: boolean;
7118
+ description?: string | undefined;
7119
+ total?: Record<string, number> | undefined;
7120
+ } | undefined;
7121
+ }>, z.ZodObject<{
7122
+ id: z.ZodString;
7123
+ type: z.ZodLiteral<"Bundle">;
7124
+ bundleId: z.ZodString;
7125
+ quantity: z.ZodNumber;
7126
+ variationId: z.ZodString;
7127
+ partial: z.ZodOptional<z.ZodBoolean>;
7128
+ price: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7129
+ variation: z.ZodOptional<z.ZodObject<{
7130
+ id: z.ZodString;
7131
+ name: z.ZodString;
7132
+ originalPrice: z.ZodRecord<z.ZodString, z.ZodNumber>;
7133
+ price: z.ZodRecord<z.ZodString, z.ZodNumber>;
7134
+ hasDiscount: z.ZodBoolean;
7135
+ discount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7136
+ type: z.ZodLiteral<"PercentageOffDiscount">;
7137
+ name: z.ZodString;
7138
+ description: z.ZodOptional<z.ZodString>;
7139
+ percentage: z.ZodNumber;
7140
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7141
+ isExclusive: z.ZodBoolean;
7142
+ }, "strip", z.ZodTypeAny, {
7143
+ type: "PercentageOffDiscount";
7144
+ name: string;
7145
+ percentage: number;
7146
+ isExclusive: boolean;
7147
+ description?: string | undefined;
7148
+ total?: Record<string, number> | undefined;
7149
+ }, {
7150
+ type: "PercentageOffDiscount";
7151
+ name: string;
7152
+ percentage: number;
7153
+ isExclusive: boolean;
7154
+ description?: string | undefined;
7155
+ total?: Record<string, number> | undefined;
7156
+ }>, z.ZodObject<{
7157
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
7158
+ name: z.ZodString;
7159
+ description: z.ZodOptional<z.ZodString>;
7160
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7161
+ isExclusive: z.ZodBoolean;
7162
+ }, "strip", z.ZodTypeAny, {
7163
+ type: "FlatAmountOffDiscount";
7164
+ name: string;
7165
+ isExclusive: boolean;
7166
+ description?: string | undefined;
7167
+ total?: Record<string, number> | undefined;
7168
+ }, {
7169
+ type: "FlatAmountOffDiscount";
7170
+ name: string;
7171
+ isExclusive: boolean;
7172
+ description?: string | undefined;
7173
+ total?: Record<string, number> | undefined;
7174
+ }>]>>;
7175
+ }, "strip", z.ZodTypeAny, {
7176
+ id: string;
7177
+ name: string;
7178
+ originalPrice: Record<string, number>;
7179
+ price: Record<string, number>;
7180
+ hasDiscount: boolean;
7181
+ discount?: {
7182
+ type: "PercentageOffDiscount";
7183
+ name: string;
7184
+ percentage: number;
7185
+ isExclusive: boolean;
7186
+ description?: string | undefined;
7187
+ total?: Record<string, number> | undefined;
7188
+ } | {
7189
+ type: "FlatAmountOffDiscount";
7190
+ name: string;
7191
+ isExclusive: boolean;
7192
+ description?: string | undefined;
7193
+ total?: Record<string, number> | undefined;
7194
+ } | undefined;
7195
+ }, {
7196
+ id: string;
7197
+ name: string;
7198
+ originalPrice: Record<string, number>;
7199
+ price: Record<string, number>;
7200
+ hasDiscount: boolean;
7201
+ discount?: {
7202
+ type: "PercentageOffDiscount";
7203
+ name: string;
7204
+ percentage: number;
7205
+ isExclusive: boolean;
7206
+ description?: string | undefined;
7207
+ total?: Record<string, number> | undefined;
7208
+ } | {
7209
+ type: "FlatAmountOffDiscount";
7210
+ name: string;
7211
+ isExclusive: boolean;
7212
+ description?: string | undefined;
7213
+ total?: Record<string, number> | undefined;
7214
+ } | undefined;
7215
+ }>>;
7216
+ bundle: z.ZodOptional<z.ZodObject<{
7217
+ id: z.ZodString;
7218
+ name: z.ZodString;
7219
+ tagline: z.ZodString;
7220
+ iconUrl: z.ZodNullable<z.ZodString>;
7221
+ products: z.ZodArray<z.ZodIntersection<z.ZodObject<{
7222
+ id: z.ZodString;
7223
+ name: z.ZodString;
7224
+ tagline: z.ZodString;
7225
+ iconUrl: z.ZodNullable<z.ZodString>;
7226
+ }, "strip", z.ZodTypeAny, {
7227
+ id: string;
7228
+ name: string;
7229
+ tagline: string;
7230
+ iconUrl: string | null;
7231
+ }, {
7232
+ id: string;
7233
+ name: string;
7234
+ tagline: string;
7235
+ iconUrl: string | null;
7236
+ }>, z.ZodObject<{
7237
+ included: z.ZodOptional<z.ZodBoolean>;
7238
+ }, "strip", z.ZodTypeAny, {
7239
+ included?: boolean | undefined;
7240
+ }, {
7241
+ included?: boolean | undefined;
7242
+ }>>, "many">;
7243
+ }, "strip", z.ZodTypeAny, {
7244
+ id: string;
7245
+ name: string;
7246
+ tagline: string;
7247
+ iconUrl: string | null;
7248
+ products: ({
7249
+ id: string;
7250
+ name: string;
7251
+ tagline: string;
7252
+ iconUrl: string | null;
7253
+ } & {
7254
+ included?: boolean | undefined;
7255
+ })[];
7256
+ }, {
7257
+ id: string;
7258
+ name: string;
7259
+ tagline: string;
7260
+ iconUrl: string | null;
7261
+ products: ({
7262
+ id: string;
7263
+ name: string;
7264
+ tagline: string;
7265
+ iconUrl: string | null;
7266
+ } & {
7267
+ included?: boolean | undefined;
7268
+ })[];
7269
+ }>>;
7270
+ appliedDiscount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7271
+ type: z.ZodLiteral<"PercentageOffDiscount">;
7272
+ name: z.ZodString;
7273
+ description: z.ZodOptional<z.ZodString>;
7274
+ percentage: z.ZodNumber;
7275
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7276
+ isExclusive: z.ZodBoolean;
7277
+ }, "strip", z.ZodTypeAny, {
7278
+ type: "PercentageOffDiscount";
7279
+ name: string;
7280
+ percentage: number;
7281
+ isExclusive: boolean;
7282
+ description?: string | undefined;
7283
+ total?: Record<string, number> | undefined;
7284
+ }, {
7285
+ type: "PercentageOffDiscount";
7286
+ name: string;
7287
+ percentage: number;
7288
+ isExclusive: boolean;
7289
+ description?: string | undefined;
7290
+ total?: Record<string, number> | undefined;
7291
+ }>, z.ZodObject<{
7292
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
7293
+ name: z.ZodString;
7294
+ description: z.ZodOptional<z.ZodString>;
7295
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7296
+ isExclusive: z.ZodBoolean;
7297
+ }, "strip", z.ZodTypeAny, {
7298
+ type: "FlatAmountOffDiscount";
7299
+ name: string;
7300
+ isExclusive: boolean;
7301
+ description?: string | undefined;
7302
+ total?: Record<string, number> | undefined;
7303
+ }, {
7304
+ type: "FlatAmountOffDiscount";
7305
+ name: string;
7306
+ isExclusive: boolean;
7307
+ description?: string | undefined;
7308
+ total?: Record<string, number> | undefined;
7309
+ }>]>>;
7310
+ }, "strip", z.ZodTypeAny, {
7311
+ type: "Bundle";
7312
+ id: string;
7313
+ quantity: number;
7314
+ variationId: string;
7315
+ bundleId: string;
7316
+ price?: Record<string, number> | undefined;
7317
+ partial?: boolean | undefined;
7318
+ bundle?: {
7319
+ id: string;
7320
+ name: string;
7321
+ tagline: string;
7322
+ iconUrl: string | null;
7323
+ products: ({
7324
+ id: string;
7325
+ name: string;
7326
+ tagline: string;
7327
+ iconUrl: string | null;
7328
+ } & {
7329
+ included?: boolean | undefined;
7330
+ })[];
7331
+ } | undefined;
7332
+ variation?: {
7333
+ id: string;
7334
+ name: string;
7335
+ originalPrice: Record<string, number>;
7336
+ price: Record<string, number>;
7337
+ hasDiscount: boolean;
7338
+ discount?: {
7339
+ type: "PercentageOffDiscount";
7340
+ name: string;
7341
+ percentage: number;
7342
+ isExclusive: boolean;
7343
+ description?: string | undefined;
7344
+ total?: Record<string, number> | undefined;
7345
+ } | {
7346
+ type: "FlatAmountOffDiscount";
7347
+ name: string;
7348
+ isExclusive: boolean;
7349
+ description?: string | undefined;
7350
+ total?: Record<string, number> | undefined;
7351
+ } | undefined;
7352
+ } | undefined;
7353
+ appliedDiscount?: {
7354
+ type: "PercentageOffDiscount";
7355
+ name: string;
7356
+ percentage: number;
7357
+ isExclusive: boolean;
7358
+ description?: string | undefined;
7359
+ total?: Record<string, number> | undefined;
7360
+ } | {
7361
+ type: "FlatAmountOffDiscount";
7362
+ name: string;
7363
+ isExclusive: boolean;
7364
+ description?: string | undefined;
7365
+ total?: Record<string, number> | undefined;
7366
+ } | undefined;
7367
+ }, {
7368
+ type: "Bundle";
7369
+ id: string;
7370
+ quantity: number;
7371
+ variationId: string;
7372
+ bundleId: string;
7373
+ price?: Record<string, number> | undefined;
7374
+ partial?: boolean | undefined;
7375
+ bundle?: {
7376
+ id: string;
7377
+ name: string;
7378
+ tagline: string;
7379
+ iconUrl: string | null;
7380
+ products: ({
7381
+ id: string;
7382
+ name: string;
7383
+ tagline: string;
7384
+ iconUrl: string | null;
7385
+ } & {
7386
+ included?: boolean | undefined;
7387
+ })[];
7388
+ } | undefined;
7389
+ variation?: {
7390
+ id: string;
7391
+ name: string;
7392
+ originalPrice: Record<string, number>;
7393
+ price: Record<string, number>;
7394
+ hasDiscount: boolean;
7395
+ discount?: {
7396
+ type: "PercentageOffDiscount";
7397
+ name: string;
7398
+ percentage: number;
7399
+ isExclusive: boolean;
7400
+ description?: string | undefined;
7401
+ total?: Record<string, number> | undefined;
7402
+ } | {
7403
+ type: "FlatAmountOffDiscount";
7404
+ name: string;
7405
+ isExclusive: boolean;
7406
+ description?: string | undefined;
7407
+ total?: Record<string, number> | undefined;
7408
+ } | undefined;
7409
+ } | undefined;
7410
+ appliedDiscount?: {
7411
+ type: "PercentageOffDiscount";
7412
+ name: string;
7413
+ percentage: number;
7414
+ isExclusive: boolean;
7415
+ description?: string | undefined;
7416
+ total?: Record<string, number> | undefined;
7417
+ } | {
7418
+ type: "FlatAmountOffDiscount";
7419
+ name: string;
7420
+ isExclusive: boolean;
7421
+ description?: string | undefined;
7422
+ total?: Record<string, number> | undefined;
7423
+ } | undefined;
7424
+ }>]>, "many">;
7425
+ couponsApplied: z.ZodArray<z.ZodObject<{
7426
+ code: z.ZodString;
7427
+ name: z.ZodString;
7428
+ description: z.ZodString;
7429
+ }, "strip", z.ZodTypeAny, {
7430
+ code: string;
7431
+ name: string;
7432
+ description: string;
7433
+ }, {
7434
+ code: string;
7435
+ name: string;
7436
+ description: string;
7437
+ }>, "many">;
7438
+ checkoutUrl: z.ZodOptional<z.ZodString>;
7439
+ embeddedCheckoutUrl: z.ZodOptional<z.ZodString>;
7440
+ }, {
7441
+ status: z.ZodLiteral<OrderStatus.Failed>;
7442
+ }>, "strip", z.ZodTypeAny, {
7443
+ status: OrderStatus.Failed;
7444
+ id: string;
7445
+ items: ({
7446
+ type: "Product";
7447
+ id: string;
7448
+ quantity: number;
7449
+ productId: string;
7450
+ variationId: string;
7451
+ price?: Record<string, number> | undefined;
7452
+ product?: {
7453
+ id: string;
7454
+ name: string;
7455
+ tagline: string;
7456
+ iconUrl: string | null;
7457
+ } | undefined;
7458
+ variation?: {
7459
+ id: string;
7460
+ name: string;
7461
+ originalPrice: Record<string, number>;
7462
+ price: Record<string, number>;
7463
+ hasDiscount: boolean;
7464
+ discount?: {
7465
+ type: "PercentageOffDiscount";
7466
+ name: string;
7467
+ percentage: number;
7468
+ isExclusive: boolean;
7469
+ description?: string | undefined;
7470
+ total?: Record<string, number> | undefined;
7471
+ } | {
7472
+ type: "FlatAmountOffDiscount";
7473
+ name: string;
7474
+ isExclusive: boolean;
7475
+ description?: string | undefined;
7476
+ total?: Record<string, number> | undefined;
7477
+ } | undefined;
7478
+ } | undefined;
7479
+ appliedDiscount?: {
7480
+ type: "PercentageOffDiscount";
7481
+ name: string;
7482
+ percentage: number;
7483
+ isExclusive: boolean;
7484
+ description?: string | undefined;
7485
+ total?: Record<string, number> | undefined;
7486
+ } | {
7487
+ type: "FlatAmountOffDiscount";
7488
+ name: string;
7489
+ isExclusive: boolean;
7490
+ description?: string | undefined;
7491
+ total?: Record<string, number> | undefined;
7492
+ } | undefined;
7493
+ } | {
7494
+ type: "Bundle";
7495
+ id: string;
7496
+ quantity: number;
7497
+ variationId: string;
7498
+ bundleId: string;
7499
+ price?: Record<string, number> | undefined;
7500
+ partial?: boolean | undefined;
7501
+ bundle?: {
7502
+ id: string;
7503
+ name: string;
7504
+ tagline: string;
7505
+ iconUrl: string | null;
7506
+ products: ({
7507
+ id: string;
7508
+ name: string;
7509
+ tagline: string;
7510
+ iconUrl: string | null;
7511
+ } & {
7512
+ included?: boolean | undefined;
7513
+ })[];
7514
+ } | undefined;
7515
+ variation?: {
7516
+ id: string;
7517
+ name: string;
7518
+ originalPrice: Record<string, number>;
7519
+ price: Record<string, number>;
7520
+ hasDiscount: boolean;
7521
+ discount?: {
7522
+ type: "PercentageOffDiscount";
7523
+ name: string;
7524
+ percentage: number;
7525
+ isExclusive: boolean;
7526
+ description?: string | undefined;
7527
+ total?: Record<string, number> | undefined;
7528
+ } | {
7529
+ type: "FlatAmountOffDiscount";
7530
+ name: string;
7531
+ isExclusive: boolean;
7532
+ description?: string | undefined;
7533
+ total?: Record<string, number> | undefined;
7534
+ } | undefined;
7535
+ } | undefined;
7536
+ appliedDiscount?: {
7537
+ type: "PercentageOffDiscount";
7538
+ name: string;
7539
+ percentage: number;
7540
+ isExclusive: boolean;
7541
+ description?: string | undefined;
7542
+ total?: Record<string, number> | undefined;
7543
+ } | {
7544
+ type: "FlatAmountOffDiscount";
7545
+ name: string;
7546
+ isExclusive: boolean;
7547
+ description?: string | undefined;
7548
+ total?: Record<string, number> | undefined;
7549
+ } | undefined;
7550
+ })[];
7551
+ currency: string;
7552
+ couponsApplied: {
7553
+ code: string;
7554
+ name: string;
7555
+ description: string;
7556
+ }[];
7557
+ checkoutUrl?: string | undefined;
7558
+ embeddedCheckoutUrl?: string | undefined;
7559
+ }, {
7560
+ status: OrderStatus.Failed;
7561
+ id: string;
7562
+ items: ({
7563
+ type: "Product";
7564
+ id: string;
7565
+ quantity: number;
7566
+ productId: string;
7567
+ variationId: string;
7568
+ price?: Record<string, number> | undefined;
7569
+ product?: {
7570
+ id: string;
7571
+ name: string;
7572
+ tagline: string;
7573
+ iconUrl: string | null;
7574
+ } | undefined;
7575
+ variation?: {
7576
+ id: string;
7577
+ name: string;
7578
+ originalPrice: Record<string, number>;
7579
+ price: Record<string, number>;
7580
+ hasDiscount: boolean;
7581
+ discount?: {
7582
+ type: "PercentageOffDiscount";
7583
+ name: string;
7584
+ percentage: number;
7585
+ isExclusive: boolean;
7586
+ description?: string | undefined;
7587
+ total?: Record<string, number> | undefined;
7588
+ } | {
7589
+ type: "FlatAmountOffDiscount";
7590
+ name: string;
7591
+ isExclusive: boolean;
7592
+ description?: string | undefined;
7593
+ total?: Record<string, number> | undefined;
7594
+ } | undefined;
7595
+ } | undefined;
7596
+ appliedDiscount?: {
7597
+ type: "PercentageOffDiscount";
7598
+ name: string;
7599
+ percentage: number;
7600
+ isExclusive: boolean;
7601
+ description?: string | undefined;
7602
+ total?: Record<string, number> | undefined;
7603
+ } | {
7604
+ type: "FlatAmountOffDiscount";
7605
+ name: string;
7606
+ isExclusive: boolean;
7607
+ description?: string | undefined;
7608
+ total?: Record<string, number> | undefined;
7609
+ } | undefined;
7610
+ } | {
7611
+ type: "Bundle";
7612
+ id: string;
7613
+ quantity: number;
7614
+ variationId: string;
7615
+ bundleId: string;
7616
+ price?: Record<string, number> | undefined;
7617
+ partial?: boolean | undefined;
7618
+ bundle?: {
7619
+ id: string;
7620
+ name: string;
7621
+ tagline: string;
7622
+ iconUrl: string | null;
7623
+ products: ({
7624
+ id: string;
7625
+ name: string;
7626
+ tagline: string;
7627
+ iconUrl: string | null;
7628
+ } & {
7629
+ included?: boolean | undefined;
7630
+ })[];
7631
+ } | undefined;
7632
+ variation?: {
7633
+ id: string;
7634
+ name: string;
7635
+ originalPrice: Record<string, number>;
7636
+ price: Record<string, number>;
7637
+ hasDiscount: boolean;
7638
+ discount?: {
7639
+ type: "PercentageOffDiscount";
7640
+ name: string;
7641
+ percentage: number;
7642
+ isExclusive: boolean;
7643
+ description?: string | undefined;
7644
+ total?: Record<string, number> | undefined;
7645
+ } | {
7646
+ type: "FlatAmountOffDiscount";
7647
+ name: string;
7648
+ isExclusive: boolean;
7649
+ description?: string | undefined;
7650
+ total?: Record<string, number> | undefined;
7651
+ } | undefined;
7652
+ } | undefined;
7653
+ appliedDiscount?: {
7654
+ type: "PercentageOffDiscount";
7655
+ name: string;
7656
+ percentage: number;
7657
+ isExclusive: boolean;
7658
+ description?: string | undefined;
7659
+ total?: Record<string, number> | undefined;
7660
+ } | {
7661
+ type: "FlatAmountOffDiscount";
7662
+ name: string;
7663
+ isExclusive: boolean;
7664
+ description?: string | undefined;
7665
+ total?: Record<string, number> | undefined;
7666
+ } | undefined;
7667
+ })[];
7668
+ currency: string;
7669
+ couponsApplied: {
7670
+ code: string;
7671
+ name: string;
7672
+ description: string;
7673
+ }[];
7674
+ checkoutUrl?: string | undefined;
7675
+ embeddedCheckoutUrl?: string | undefined;
7676
+ }>, z.ZodObject<{
7677
+ id: z.ZodString;
7678
+ status: z.ZodLiteral<OrderStatus.Completed>;
7679
+ currency: z.ZodString;
7680
+ customer: z.ZodObject<{
7681
+ name: z.ZodNullable<z.ZodString>;
7682
+ businessName: z.ZodNullable<z.ZodString>;
7683
+ taxId: z.ZodNullable<z.ZodString>;
7684
+ email: z.ZodNullable<z.ZodString>;
7685
+ address: z.ZodNullable<z.ZodObject<{
7686
+ countryCode: z.ZodString;
7687
+ streetAddress1: z.ZodString;
7688
+ streetAddress2: z.ZodNullable<z.ZodString>;
7689
+ locality: z.ZodNullable<z.ZodString>;
7690
+ region: z.ZodNullable<z.ZodString>;
7691
+ postCode: z.ZodString;
7692
+ }, "strip", z.ZodTypeAny, {
7693
+ countryCode: string;
7694
+ streetAddress1: string;
7695
+ streetAddress2: string | null;
7696
+ locality: string | null;
7697
+ region: string | null;
7698
+ postCode: string;
7699
+ }, {
7700
+ countryCode: string;
7701
+ streetAddress1: string;
7702
+ streetAddress2: string | null;
7703
+ locality: string | null;
7704
+ region: string | null;
7705
+ postCode: string;
7706
+ }>>;
7707
+ }, "strip", z.ZodTypeAny, {
7708
+ email: string | null;
7709
+ name: string | null;
7710
+ address: {
7711
+ countryCode: string;
7712
+ streetAddress1: string;
7713
+ streetAddress2: string | null;
7714
+ locality: string | null;
7715
+ region: string | null;
7716
+ postCode: string;
7717
+ } | null;
7718
+ businessName: string | null;
7719
+ taxId: string | null;
7720
+ }, {
7721
+ email: string | null;
7722
+ name: string | null;
7723
+ address: {
7724
+ countryCode: string;
7725
+ streetAddress1: string;
7726
+ streetAddress2: string | null;
7727
+ locality: string | null;
7728
+ region: string | null;
7729
+ postCode: string;
7730
+ } | null;
7731
+ businessName: string | null;
7732
+ taxId: string | null;
7733
+ }>;
7734
+ total: z.ZodObject<{
7735
+ original: z.ZodObject<{
7736
+ currency: z.ZodString;
7737
+ amount: z.ZodNumber;
7738
+ }, "strip", z.ZodTypeAny, {
7739
+ currency: string;
7740
+ amount: number;
7741
+ }, {
7742
+ currency: string;
7743
+ amount: number;
7744
+ }>;
7745
+ discount: z.ZodObject<{
7746
+ currency: z.ZodString;
7747
+ amount: z.ZodNumber;
7748
+ }, "strip", z.ZodTypeAny, {
7749
+ currency: string;
7750
+ amount: number;
7751
+ }, {
7752
+ currency: string;
7753
+ amount: number;
7754
+ }>;
7755
+ subtotal: z.ZodObject<{
7756
+ currency: z.ZodString;
7757
+ amount: z.ZodNumber;
7758
+ }, "strip", z.ZodTypeAny, {
7759
+ currency: string;
7760
+ amount: number;
7761
+ }, {
7762
+ currency: string;
7763
+ amount: number;
7764
+ }>;
7765
+ taxes: z.ZodObject<{
7766
+ currency: z.ZodString;
7767
+ amount: z.ZodNumber;
7768
+ }, "strip", z.ZodTypeAny, {
7769
+ currency: string;
7770
+ amount: number;
7771
+ }, {
7772
+ currency: string;
7773
+ amount: number;
7774
+ }>;
7775
+ due: z.ZodObject<{
7776
+ currency: z.ZodString;
7777
+ amount: z.ZodNumber;
7778
+ }, "strip", z.ZodTypeAny, {
7779
+ currency: string;
7780
+ amount: number;
7781
+ }, {
7782
+ currency: string;
7783
+ amount: number;
7784
+ }>;
7785
+ }, "strip", z.ZodTypeAny, {
7786
+ discount: {
7787
+ currency: string;
7788
+ amount: number;
7789
+ };
7790
+ original: {
7791
+ currency: string;
7792
+ amount: number;
7793
+ };
7794
+ subtotal: {
7795
+ currency: string;
7796
+ amount: number;
7797
+ };
7798
+ taxes: {
7799
+ currency: string;
7800
+ amount: number;
7801
+ };
7802
+ due: {
7803
+ currency: string;
7804
+ amount: number;
7805
+ };
7806
+ }, {
7807
+ discount: {
7808
+ currency: string;
7809
+ amount: number;
7810
+ };
7811
+ original: {
7812
+ currency: string;
7813
+ amount: number;
7814
+ };
7815
+ subtotal: {
7816
+ currency: string;
7817
+ amount: number;
7818
+ };
7819
+ taxes: {
7820
+ currency: string;
7821
+ amount: number;
7822
+ };
7823
+ due: {
7824
+ currency: string;
7825
+ amount: number;
7826
+ };
7827
+ }>;
7828
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7829
+ id: z.ZodString;
7830
+ type: z.ZodLiteral<"Product">;
7831
+ productId: z.ZodString;
7832
+ quantity: z.ZodNumber;
7833
+ variationId: z.ZodString;
7834
+ price: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7835
+ variation: z.ZodOptional<z.ZodObject<{
7836
+ id: z.ZodString;
7837
+ name: z.ZodString;
7838
+ originalPrice: z.ZodRecord<z.ZodString, z.ZodNumber>;
7839
+ price: z.ZodRecord<z.ZodString, z.ZodNumber>;
7840
+ hasDiscount: z.ZodBoolean;
7841
+ discount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7842
+ type: z.ZodLiteral<"PercentageOffDiscount">;
7843
+ name: z.ZodString;
7844
+ description: z.ZodOptional<z.ZodString>;
7845
+ percentage: z.ZodNumber;
7846
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7847
+ isExclusive: z.ZodBoolean;
7848
+ }, "strip", z.ZodTypeAny, {
7849
+ type: "PercentageOffDiscount";
7850
+ name: string;
7851
+ percentage: number;
7852
+ isExclusive: boolean;
7853
+ description?: string | undefined;
7854
+ total?: Record<string, number> | undefined;
7855
+ }, {
7856
+ type: "PercentageOffDiscount";
7857
+ name: string;
7858
+ percentage: number;
7859
+ isExclusive: boolean;
7860
+ description?: string | undefined;
7861
+ total?: Record<string, number> | undefined;
7862
+ }>, z.ZodObject<{
7863
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
7864
+ name: z.ZodString;
7865
+ description: z.ZodOptional<z.ZodString>;
7866
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7867
+ isExclusive: z.ZodBoolean;
7868
+ }, "strip", z.ZodTypeAny, {
7869
+ type: "FlatAmountOffDiscount";
7870
+ name: string;
7871
+ isExclusive: boolean;
7872
+ description?: string | undefined;
7873
+ total?: Record<string, number> | undefined;
7874
+ }, {
7875
+ type: "FlatAmountOffDiscount";
7876
+ name: string;
7877
+ isExclusive: boolean;
7878
+ description?: string | undefined;
7879
+ total?: Record<string, number> | undefined;
7880
+ }>]>>;
7881
+ }, "strip", z.ZodTypeAny, {
7882
+ id: string;
7883
+ name: string;
7884
+ originalPrice: Record<string, number>;
7885
+ price: Record<string, number>;
7886
+ hasDiscount: boolean;
7887
+ discount?: {
7888
+ type: "PercentageOffDiscount";
7889
+ name: string;
7890
+ percentage: number;
7891
+ isExclusive: boolean;
7892
+ description?: string | undefined;
7893
+ total?: Record<string, number> | undefined;
7894
+ } | {
7895
+ type: "FlatAmountOffDiscount";
7896
+ name: string;
7897
+ isExclusive: boolean;
7898
+ description?: string | undefined;
7899
+ total?: Record<string, number> | undefined;
7900
+ } | undefined;
7901
+ }, {
7902
+ id: string;
7903
+ name: string;
7904
+ originalPrice: Record<string, number>;
7905
+ price: Record<string, number>;
7906
+ hasDiscount: boolean;
7907
+ discount?: {
7908
+ type: "PercentageOffDiscount";
7909
+ name: string;
7910
+ percentage: number;
7911
+ isExclusive: boolean;
7912
+ description?: string | undefined;
7913
+ total?: Record<string, number> | undefined;
7914
+ } | {
7915
+ type: "FlatAmountOffDiscount";
7916
+ name: string;
7917
+ isExclusive: boolean;
7918
+ description?: string | undefined;
7919
+ total?: Record<string, number> | undefined;
7920
+ } | undefined;
7921
+ }>>;
7922
+ product: z.ZodOptional<z.ZodObject<{
7923
+ id: z.ZodString;
7924
+ name: z.ZodString;
7925
+ tagline: z.ZodString;
7926
+ iconUrl: z.ZodNullable<z.ZodString>;
7927
+ }, "strip", z.ZodTypeAny, {
7928
+ id: string;
7929
+ name: string;
7930
+ tagline: string;
7931
+ iconUrl: string | null;
7932
+ }, {
7933
+ id: string;
7934
+ name: string;
7935
+ tagline: string;
7936
+ iconUrl: string | null;
7937
+ }>>;
7938
+ appliedDiscount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7939
+ type: z.ZodLiteral<"PercentageOffDiscount">;
7940
+ name: z.ZodString;
7941
+ description: z.ZodOptional<z.ZodString>;
7942
+ percentage: z.ZodNumber;
7943
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7944
+ isExclusive: z.ZodBoolean;
7945
+ }, "strip", z.ZodTypeAny, {
7946
+ type: "PercentageOffDiscount";
7947
+ name: string;
7948
+ percentage: number;
7949
+ isExclusive: boolean;
7950
+ description?: string | undefined;
7951
+ total?: Record<string, number> | undefined;
7952
+ }, {
7953
+ type: "PercentageOffDiscount";
7954
+ name: string;
7955
+ percentage: number;
7956
+ isExclusive: boolean;
7957
+ description?: string | undefined;
7958
+ total?: Record<string, number> | undefined;
7959
+ }>, z.ZodObject<{
7960
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
7961
+ name: z.ZodString;
7962
+ description: z.ZodOptional<z.ZodString>;
7963
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
7964
+ isExclusive: z.ZodBoolean;
7965
+ }, "strip", z.ZodTypeAny, {
7966
+ type: "FlatAmountOffDiscount";
7967
+ name: string;
7968
+ isExclusive: boolean;
7969
+ description?: string | undefined;
7970
+ total?: Record<string, number> | undefined;
7971
+ }, {
7972
+ type: "FlatAmountOffDiscount";
7973
+ name: string;
7974
+ isExclusive: boolean;
7975
+ description?: string | undefined;
7976
+ total?: Record<string, number> | undefined;
7977
+ }>]>>;
7978
+ }, "strip", z.ZodTypeAny, {
7979
+ type: "Product";
7980
+ id: string;
7981
+ quantity: number;
7982
+ productId: string;
7983
+ variationId: string;
7984
+ price?: Record<string, number> | undefined;
7985
+ product?: {
7986
+ id: string;
7987
+ name: string;
7988
+ tagline: string;
7989
+ iconUrl: string | null;
7990
+ } | undefined;
7991
+ variation?: {
7992
+ id: string;
7993
+ name: string;
7994
+ originalPrice: Record<string, number>;
7995
+ price: Record<string, number>;
7996
+ hasDiscount: boolean;
7997
+ discount?: {
7998
+ type: "PercentageOffDiscount";
7999
+ name: string;
8000
+ percentage: number;
8001
+ isExclusive: boolean;
8002
+ description?: string | undefined;
8003
+ total?: Record<string, number> | undefined;
8004
+ } | {
8005
+ type: "FlatAmountOffDiscount";
8006
+ name: string;
8007
+ isExclusive: boolean;
8008
+ description?: string | undefined;
8009
+ total?: Record<string, number> | undefined;
8010
+ } | undefined;
8011
+ } | undefined;
8012
+ appliedDiscount?: {
8013
+ type: "PercentageOffDiscount";
8014
+ name: string;
8015
+ percentage: number;
8016
+ isExclusive: boolean;
8017
+ description?: string | undefined;
8018
+ total?: Record<string, number> | undefined;
8019
+ } | {
8020
+ type: "FlatAmountOffDiscount";
8021
+ name: string;
8022
+ isExclusive: boolean;
8023
+ description?: string | undefined;
8024
+ total?: Record<string, number> | undefined;
8025
+ } | undefined;
8026
+ }, {
8027
+ type: "Product";
8028
+ id: string;
8029
+ quantity: number;
8030
+ productId: string;
8031
+ variationId: string;
8032
+ price?: Record<string, number> | undefined;
8033
+ product?: {
8034
+ id: string;
8035
+ name: string;
8036
+ tagline: string;
8037
+ iconUrl: string | null;
8038
+ } | undefined;
8039
+ variation?: {
8040
+ id: string;
8041
+ name: string;
8042
+ originalPrice: Record<string, number>;
8043
+ price: Record<string, number>;
8044
+ hasDiscount: boolean;
8045
+ discount?: {
8046
+ type: "PercentageOffDiscount";
8047
+ name: string;
8048
+ percentage: number;
8049
+ isExclusive: boolean;
8050
+ description?: string | undefined;
8051
+ total?: Record<string, number> | undefined;
8052
+ } | {
8053
+ type: "FlatAmountOffDiscount";
8054
+ name: string;
8055
+ isExclusive: boolean;
8056
+ description?: string | undefined;
8057
+ total?: Record<string, number> | undefined;
8058
+ } | undefined;
8059
+ } | undefined;
8060
+ appliedDiscount?: {
8061
+ type: "PercentageOffDiscount";
8062
+ name: string;
8063
+ percentage: number;
8064
+ isExclusive: boolean;
8065
+ description?: string | undefined;
8066
+ total?: Record<string, number> | undefined;
8067
+ } | {
8068
+ type: "FlatAmountOffDiscount";
8069
+ name: string;
8070
+ isExclusive: boolean;
8071
+ description?: string | undefined;
8072
+ total?: Record<string, number> | undefined;
8073
+ } | undefined;
8074
+ }>, z.ZodObject<{
8075
+ id: z.ZodString;
8076
+ type: z.ZodLiteral<"Bundle">;
8077
+ bundleId: z.ZodString;
8078
+ quantity: z.ZodNumber;
8079
+ variationId: z.ZodString;
8080
+ partial: z.ZodOptional<z.ZodBoolean>;
8081
+ price: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
8082
+ variation: z.ZodOptional<z.ZodObject<{
8083
+ id: z.ZodString;
8084
+ name: z.ZodString;
8085
+ originalPrice: z.ZodRecord<z.ZodString, z.ZodNumber>;
8086
+ price: z.ZodRecord<z.ZodString, z.ZodNumber>;
8087
+ hasDiscount: z.ZodBoolean;
8088
+ discount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8089
+ type: z.ZodLiteral<"PercentageOffDiscount">;
8090
+ name: z.ZodString;
8091
+ description: z.ZodOptional<z.ZodString>;
8092
+ percentage: z.ZodNumber;
8093
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
8094
+ isExclusive: z.ZodBoolean;
8095
+ }, "strip", z.ZodTypeAny, {
8096
+ type: "PercentageOffDiscount";
8097
+ name: string;
8098
+ percentage: number;
8099
+ isExclusive: boolean;
8100
+ description?: string | undefined;
8101
+ total?: Record<string, number> | undefined;
8102
+ }, {
8103
+ type: "PercentageOffDiscount";
8104
+ name: string;
8105
+ percentage: number;
8106
+ isExclusive: boolean;
8107
+ description?: string | undefined;
8108
+ total?: Record<string, number> | undefined;
8109
+ }>, z.ZodObject<{
8110
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
8111
+ name: z.ZodString;
8112
+ description: z.ZodOptional<z.ZodString>;
8113
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
8114
+ isExclusive: z.ZodBoolean;
8115
+ }, "strip", z.ZodTypeAny, {
8116
+ type: "FlatAmountOffDiscount";
8117
+ name: string;
8118
+ isExclusive: boolean;
8119
+ description?: string | undefined;
8120
+ total?: Record<string, number> | undefined;
8121
+ }, {
8122
+ type: "FlatAmountOffDiscount";
8123
+ name: string;
8124
+ isExclusive: boolean;
8125
+ description?: string | undefined;
8126
+ total?: Record<string, number> | undefined;
8127
+ }>]>>;
8128
+ }, "strip", z.ZodTypeAny, {
8129
+ id: string;
8130
+ name: string;
8131
+ originalPrice: Record<string, number>;
8132
+ price: Record<string, number>;
8133
+ hasDiscount: boolean;
8134
+ discount?: {
8135
+ type: "PercentageOffDiscount";
8136
+ name: string;
8137
+ percentage: number;
8138
+ isExclusive: boolean;
8139
+ description?: string | undefined;
8140
+ total?: Record<string, number> | undefined;
8141
+ } | {
8142
+ type: "FlatAmountOffDiscount";
8143
+ name: string;
8144
+ isExclusive: boolean;
8145
+ description?: string | undefined;
8146
+ total?: Record<string, number> | undefined;
8147
+ } | undefined;
8148
+ }, {
8149
+ id: string;
8150
+ name: string;
8151
+ originalPrice: Record<string, number>;
8152
+ price: Record<string, number>;
8153
+ hasDiscount: boolean;
8154
+ discount?: {
8155
+ type: "PercentageOffDiscount";
8156
+ name: string;
8157
+ percentage: number;
8158
+ isExclusive: boolean;
8159
+ description?: string | undefined;
8160
+ total?: Record<string, number> | undefined;
8161
+ } | {
8162
+ type: "FlatAmountOffDiscount";
8163
+ name: string;
8164
+ isExclusive: boolean;
8165
+ description?: string | undefined;
8166
+ total?: Record<string, number> | undefined;
8167
+ } | undefined;
8168
+ }>>;
8169
+ bundle: z.ZodOptional<z.ZodObject<{
8170
+ id: z.ZodString;
8171
+ name: z.ZodString;
8172
+ tagline: z.ZodString;
8173
+ iconUrl: z.ZodNullable<z.ZodString>;
8174
+ products: z.ZodArray<z.ZodIntersection<z.ZodObject<{
8175
+ id: z.ZodString;
8176
+ name: z.ZodString;
8177
+ tagline: z.ZodString;
8178
+ iconUrl: z.ZodNullable<z.ZodString>;
8179
+ }, "strip", z.ZodTypeAny, {
8180
+ id: string;
8181
+ name: string;
8182
+ tagline: string;
8183
+ iconUrl: string | null;
8184
+ }, {
8185
+ id: string;
8186
+ name: string;
8187
+ tagline: string;
8188
+ iconUrl: string | null;
8189
+ }>, z.ZodObject<{
8190
+ included: z.ZodOptional<z.ZodBoolean>;
8191
+ }, "strip", z.ZodTypeAny, {
8192
+ included?: boolean | undefined;
8193
+ }, {
8194
+ included?: boolean | undefined;
8195
+ }>>, "many">;
8196
+ }, "strip", z.ZodTypeAny, {
8197
+ id: string;
8198
+ name: string;
8199
+ tagline: string;
8200
+ iconUrl: string | null;
8201
+ products: ({
8202
+ id: string;
8203
+ name: string;
8204
+ tagline: string;
8205
+ iconUrl: string | null;
8206
+ } & {
8207
+ included?: boolean | undefined;
8208
+ })[];
8209
+ }, {
8210
+ id: string;
8211
+ name: string;
8212
+ tagline: string;
8213
+ iconUrl: string | null;
8214
+ products: ({
8215
+ id: string;
8216
+ name: string;
8217
+ tagline: string;
8218
+ iconUrl: string | null;
8219
+ } & {
8220
+ included?: boolean | undefined;
8221
+ })[];
8222
+ }>>;
8223
+ appliedDiscount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8224
+ type: z.ZodLiteral<"PercentageOffDiscount">;
8225
+ name: z.ZodString;
8226
+ description: z.ZodOptional<z.ZodString>;
8227
+ percentage: z.ZodNumber;
8228
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
8229
+ isExclusive: z.ZodBoolean;
8230
+ }, "strip", z.ZodTypeAny, {
8231
+ type: "PercentageOffDiscount";
8232
+ name: string;
8233
+ percentage: number;
8234
+ isExclusive: boolean;
8235
+ description?: string | undefined;
8236
+ total?: Record<string, number> | undefined;
8237
+ }, {
8238
+ type: "PercentageOffDiscount";
8239
+ name: string;
8240
+ percentage: number;
8241
+ isExclusive: boolean;
8242
+ description?: string | undefined;
8243
+ total?: Record<string, number> | undefined;
8244
+ }>, z.ZodObject<{
8245
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
8246
+ name: z.ZodString;
8247
+ description: z.ZodOptional<z.ZodString>;
8248
+ total: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
8249
+ isExclusive: z.ZodBoolean;
8250
+ }, "strip", z.ZodTypeAny, {
8251
+ type: "FlatAmountOffDiscount";
8252
+ name: string;
8253
+ isExclusive: boolean;
8254
+ description?: string | undefined;
8255
+ total?: Record<string, number> | undefined;
8256
+ }, {
8257
+ type: "FlatAmountOffDiscount";
8258
+ name: string;
8259
+ isExclusive: boolean;
8260
+ description?: string | undefined;
8261
+ total?: Record<string, number> | undefined;
8262
+ }>]>>;
8263
+ }, "strip", z.ZodTypeAny, {
8264
+ type: "Bundle";
8265
+ id: string;
8266
+ quantity: number;
8267
+ variationId: string;
8268
+ bundleId: string;
8269
+ price?: Record<string, number> | undefined;
8270
+ partial?: boolean | undefined;
8271
+ bundle?: {
8272
+ id: string;
8273
+ name: string;
8274
+ tagline: string;
8275
+ iconUrl: string | null;
8276
+ products: ({
8277
+ id: string;
8278
+ name: string;
8279
+ tagline: string;
8280
+ iconUrl: string | null;
8281
+ } & {
8282
+ included?: boolean | undefined;
8283
+ })[];
8284
+ } | undefined;
8285
+ variation?: {
8286
+ id: string;
8287
+ name: string;
8288
+ originalPrice: Record<string, number>;
8289
+ price: Record<string, number>;
8290
+ hasDiscount: boolean;
8291
+ discount?: {
8292
+ type: "PercentageOffDiscount";
8293
+ name: string;
8294
+ percentage: number;
8295
+ isExclusive: boolean;
8296
+ description?: string | undefined;
8297
+ total?: Record<string, number> | undefined;
8298
+ } | {
8299
+ type: "FlatAmountOffDiscount";
8300
+ name: string;
8301
+ isExclusive: boolean;
8302
+ description?: string | undefined;
8303
+ total?: Record<string, number> | undefined;
8304
+ } | undefined;
8305
+ } | undefined;
8306
+ appliedDiscount?: {
8307
+ type: "PercentageOffDiscount";
8308
+ name: string;
8309
+ percentage: number;
8310
+ isExclusive: boolean;
8311
+ description?: string | undefined;
8312
+ total?: Record<string, number> | undefined;
8313
+ } | {
8314
+ type: "FlatAmountOffDiscount";
8315
+ name: string;
8316
+ isExclusive: boolean;
8317
+ description?: string | undefined;
8318
+ total?: Record<string, number> | undefined;
8319
+ } | undefined;
8320
+ }, {
8321
+ type: "Bundle";
8322
+ id: string;
8323
+ quantity: number;
8324
+ variationId: string;
8325
+ bundleId: string;
8326
+ price?: Record<string, number> | undefined;
8327
+ partial?: boolean | undefined;
8328
+ bundle?: {
8329
+ id: string;
8330
+ name: string;
8331
+ tagline: string;
8332
+ iconUrl: string | null;
8333
+ products: ({
8334
+ id: string;
8335
+ name: string;
8336
+ tagline: string;
8337
+ iconUrl: string | null;
8338
+ } & {
8339
+ included?: boolean | undefined;
8340
+ })[];
8341
+ } | undefined;
8342
+ variation?: {
8343
+ id: string;
8344
+ name: string;
8345
+ originalPrice: Record<string, number>;
8346
+ price: Record<string, number>;
8347
+ hasDiscount: boolean;
8348
+ discount?: {
8349
+ type: "PercentageOffDiscount";
8350
+ name: string;
8351
+ percentage: number;
8352
+ isExclusive: boolean;
8353
+ description?: string | undefined;
8354
+ total?: Record<string, number> | undefined;
8355
+ } | {
8356
+ type: "FlatAmountOffDiscount";
8357
+ name: string;
8358
+ isExclusive: boolean;
8359
+ description?: string | undefined;
8360
+ total?: Record<string, number> | undefined;
8361
+ } | undefined;
8362
+ } | undefined;
8363
+ appliedDiscount?: {
8364
+ type: "PercentageOffDiscount";
8365
+ name: string;
8366
+ percentage: number;
8367
+ isExclusive: boolean;
8368
+ description?: string | undefined;
8369
+ total?: Record<string, number> | undefined;
8370
+ } | {
8371
+ type: "FlatAmountOffDiscount";
8372
+ name: string;
8373
+ isExclusive: boolean;
8374
+ description?: string | undefined;
8375
+ total?: Record<string, number> | undefined;
8376
+ } | undefined;
8377
+ }>]>, "many">;
8378
+ couponsApplied: z.ZodArray<z.ZodObject<{
8379
+ code: z.ZodString;
8380
+ name: z.ZodString;
8381
+ description: z.ZodString;
8382
+ }, "strip", z.ZodTypeAny, {
8383
+ code: string;
8384
+ name: string;
8385
+ description: string;
8386
+ }, {
8387
+ code: string;
8388
+ name: string;
8389
+ description: string;
8390
+ }>, "many">;
8391
+ }, "strip", z.ZodTypeAny, {
8392
+ status: OrderStatus.Completed;
8393
+ id: string;
8394
+ total: {
8395
+ discount: {
8396
+ currency: string;
8397
+ amount: number;
8398
+ };
8399
+ original: {
8400
+ currency: string;
8401
+ amount: number;
8402
+ };
8403
+ subtotal: {
8404
+ currency: string;
8405
+ amount: number;
8406
+ };
8407
+ taxes: {
8408
+ currency: string;
8409
+ amount: number;
8410
+ };
8411
+ due: {
8412
+ currency: string;
8413
+ amount: number;
8414
+ };
8415
+ };
8416
+ items: ({
8417
+ type: "Product";
8418
+ id: string;
8419
+ quantity: number;
8420
+ productId: string;
8421
+ variationId: string;
8422
+ price?: Record<string, number> | undefined;
8423
+ product?: {
8424
+ id: string;
8425
+ name: string;
8426
+ tagline: string;
8427
+ iconUrl: string | null;
8428
+ } | undefined;
8429
+ variation?: {
8430
+ id: string;
8431
+ name: string;
8432
+ originalPrice: Record<string, number>;
8433
+ price: Record<string, number>;
8434
+ hasDiscount: boolean;
8435
+ discount?: {
8436
+ type: "PercentageOffDiscount";
8437
+ name: string;
8438
+ percentage: number;
8439
+ isExclusive: boolean;
8440
+ description?: string | undefined;
8441
+ total?: Record<string, number> | undefined;
8442
+ } | {
8443
+ type: "FlatAmountOffDiscount";
8444
+ name: string;
8445
+ isExclusive: boolean;
8446
+ description?: string | undefined;
8447
+ total?: Record<string, number> | undefined;
8448
+ } | undefined;
8449
+ } | undefined;
8450
+ appliedDiscount?: {
8451
+ type: "PercentageOffDiscount";
8452
+ name: string;
8453
+ percentage: number;
8454
+ isExclusive: boolean;
8455
+ description?: string | undefined;
8456
+ total?: Record<string, number> | undefined;
8457
+ } | {
8458
+ type: "FlatAmountOffDiscount";
8459
+ name: string;
8460
+ isExclusive: boolean;
8461
+ description?: string | undefined;
8462
+ total?: Record<string, number> | undefined;
8463
+ } | undefined;
8464
+ } | {
8465
+ type: "Bundle";
8466
+ id: string;
8467
+ quantity: number;
8468
+ variationId: string;
8469
+ bundleId: string;
8470
+ price?: Record<string, number> | undefined;
8471
+ partial?: boolean | undefined;
8472
+ bundle?: {
8473
+ id: string;
8474
+ name: string;
8475
+ tagline: string;
8476
+ iconUrl: string | null;
8477
+ products: ({
8478
+ id: string;
8479
+ name: string;
8480
+ tagline: string;
8481
+ iconUrl: string | null;
8482
+ } & {
8483
+ included?: boolean | undefined;
8484
+ })[];
8485
+ } | undefined;
8486
+ variation?: {
8487
+ id: string;
8488
+ name: string;
8489
+ originalPrice: Record<string, number>;
8490
+ price: Record<string, number>;
8491
+ hasDiscount: boolean;
8492
+ discount?: {
8493
+ type: "PercentageOffDiscount";
8494
+ name: string;
8495
+ percentage: number;
8496
+ isExclusive: boolean;
8497
+ description?: string | undefined;
8498
+ total?: Record<string, number> | undefined;
8499
+ } | {
8500
+ type: "FlatAmountOffDiscount";
8501
+ name: string;
8502
+ isExclusive: boolean;
8503
+ description?: string | undefined;
8504
+ total?: Record<string, number> | undefined;
8505
+ } | undefined;
8506
+ } | undefined;
8507
+ appliedDiscount?: {
8508
+ type: "PercentageOffDiscount";
8509
+ name: string;
8510
+ percentage: number;
8511
+ isExclusive: boolean;
8512
+ description?: string | undefined;
8513
+ total?: Record<string, number> | undefined;
8514
+ } | {
8515
+ type: "FlatAmountOffDiscount";
8516
+ name: string;
8517
+ isExclusive: boolean;
8518
+ description?: string | undefined;
8519
+ total?: Record<string, number> | undefined;
8520
+ } | undefined;
8521
+ })[];
8522
+ currency: string;
8523
+ couponsApplied: {
8524
+ code: string;
8525
+ name: string;
8526
+ description: string;
8527
+ }[];
8528
+ customer: {
8529
+ email: string | null;
8530
+ name: string | null;
8531
+ address: {
8532
+ countryCode: string;
8533
+ streetAddress1: string;
8534
+ streetAddress2: string | null;
8535
+ locality: string | null;
8536
+ region: string | null;
8537
+ postCode: string;
8538
+ } | null;
8539
+ businessName: string | null;
8540
+ taxId: string | null;
8541
+ };
8542
+ }, {
8543
+ status: OrderStatus.Completed;
8544
+ id: string;
8545
+ total: {
8546
+ discount: {
8547
+ currency: string;
8548
+ amount: number;
8549
+ };
8550
+ original: {
8551
+ currency: string;
8552
+ amount: number;
8553
+ };
8554
+ subtotal: {
8555
+ currency: string;
8556
+ amount: number;
8557
+ };
8558
+ taxes: {
8559
+ currency: string;
8560
+ amount: number;
8561
+ };
8562
+ due: {
8563
+ currency: string;
8564
+ amount: number;
8565
+ };
8566
+ };
8567
+ items: ({
8568
+ type: "Product";
8569
+ id: string;
8570
+ quantity: number;
8571
+ productId: string;
8572
+ variationId: string;
8573
+ price?: Record<string, number> | undefined;
8574
+ product?: {
8575
+ id: string;
8576
+ name: string;
8577
+ tagline: string;
8578
+ iconUrl: string | null;
8579
+ } | undefined;
8580
+ variation?: {
8581
+ id: string;
8582
+ name: string;
8583
+ originalPrice: Record<string, number>;
8584
+ price: Record<string, number>;
8585
+ hasDiscount: boolean;
8586
+ discount?: {
8587
+ type: "PercentageOffDiscount";
8588
+ name: string;
8589
+ percentage: number;
8590
+ isExclusive: boolean;
8591
+ description?: string | undefined;
8592
+ total?: Record<string, number> | undefined;
8593
+ } | {
8594
+ type: "FlatAmountOffDiscount";
8595
+ name: string;
8596
+ isExclusive: boolean;
8597
+ description?: string | undefined;
8598
+ total?: Record<string, number> | undefined;
8599
+ } | undefined;
8600
+ } | undefined;
8601
+ appliedDiscount?: {
8602
+ type: "PercentageOffDiscount";
8603
+ name: string;
8604
+ percentage: number;
8605
+ isExclusive: boolean;
8606
+ description?: string | undefined;
8607
+ total?: Record<string, number> | undefined;
8608
+ } | {
8609
+ type: "FlatAmountOffDiscount";
8610
+ name: string;
8611
+ isExclusive: boolean;
8612
+ description?: string | undefined;
8613
+ total?: Record<string, number> | undefined;
8614
+ } | undefined;
8615
+ } | {
8616
+ type: "Bundle";
8617
+ id: string;
8618
+ quantity: number;
8619
+ variationId: string;
8620
+ bundleId: string;
8621
+ price?: Record<string, number> | undefined;
8622
+ partial?: boolean | undefined;
8623
+ bundle?: {
8624
+ id: string;
8625
+ name: string;
8626
+ tagline: string;
8627
+ iconUrl: string | null;
8628
+ products: ({
8629
+ id: string;
8630
+ name: string;
8631
+ tagline: string;
8632
+ iconUrl: string | null;
8633
+ } & {
8634
+ included?: boolean | undefined;
8635
+ })[];
8636
+ } | undefined;
8637
+ variation?: {
8638
+ id: string;
8639
+ name: string;
8640
+ originalPrice: Record<string, number>;
8641
+ price: Record<string, number>;
8642
+ hasDiscount: boolean;
8643
+ discount?: {
8644
+ type: "PercentageOffDiscount";
8645
+ name: string;
8646
+ percentage: number;
8647
+ isExclusive: boolean;
8648
+ description?: string | undefined;
8649
+ total?: Record<string, number> | undefined;
8650
+ } | {
8651
+ type: "FlatAmountOffDiscount";
8652
+ name: string;
8653
+ isExclusive: boolean;
8654
+ description?: string | undefined;
8655
+ total?: Record<string, number> | undefined;
8656
+ } | undefined;
8657
+ } | undefined;
8658
+ appliedDiscount?: {
8659
+ type: "PercentageOffDiscount";
8660
+ name: string;
8661
+ percentage: number;
8662
+ isExclusive: boolean;
8663
+ description?: string | undefined;
8664
+ total?: Record<string, number> | undefined;
8665
+ } | {
8666
+ type: "FlatAmountOffDiscount";
8667
+ name: string;
8668
+ isExclusive: boolean;
8669
+ description?: string | undefined;
8670
+ total?: Record<string, number> | undefined;
8671
+ } | undefined;
8672
+ })[];
8673
+ currency: string;
8674
+ couponsApplied: {
8675
+ code: string;
8676
+ name: string;
8677
+ description: string;
8678
+ }[];
8679
+ customer: {
8680
+ email: string | null;
8681
+ name: string | null;
8682
+ address: {
8683
+ countryCode: string;
8684
+ streetAddress1: string;
8685
+ streetAddress2: string | null;
8686
+ locality: string | null;
8687
+ region: string | null;
8688
+ postCode: string;
8689
+ } | null;
8690
+ businessName: string | null;
8691
+ taxId: string | null;
8692
+ };
8693
+ }>]>;
8694
+
8695
+ declare const schemas$1_completedOrderSchema: typeof completedOrderSchema;
8696
+ declare const schemas$1_openBundleLineItem: typeof openBundleLineItem;
8697
+ declare const schemas$1_openOrderLineItem: typeof openOrderLineItem;
8698
+ declare const schemas$1_openOrderSchema: typeof openOrderSchema;
8699
+ declare const schemas$1_openProductLineItem: typeof openProductLineItem;
8700
+ declare const schemas$1_orderSchema: typeof orderSchema;
8701
+ declare namespace schemas$1 {
8702
+ export { schemas$1_completedOrderSchema as completedOrderSchema, schemas$1_openBundleLineItem as openBundleLineItem, schemas$1_openOrderLineItem as openOrderLineItem, schemas$1_openOrderSchema as openOrderSchema, schemas$1_openProductLineItem as openProductLineItem, schemas$1_orderSchema as orderSchema };
8703
+ }
8704
+
8705
+ declare enum OrderStatus {
8706
+ Open = "Open",
8707
+ PaymentProcessing = "PaymentProcessing",
8708
+ Paid = "Paid",
8709
+ Completed = "Completed",
8710
+ Failed = "Failed"
8711
+ }
8712
+ type OpenOrder = z.infer<typeof openOrderSchema>;
6302
8713
  type CompletedOrder = z.infer<typeof completedOrderSchema>;
6303
8714
  type Order = z.infer<typeof orderSchema>;
6304
8715
  type LineItem = z.infer<typeof openOrderLineItem>;
@@ -6309,6 +8720,157 @@ declare class OrderEndpoints {
6309
8720
  private api;
6310
8721
  constructor(api: MoonbaseApi);
6311
8722
  get(orderId: string, abort?: AbortSignal): Promise<{
8723
+ status: OrderStatus.Completed;
8724
+ id: string;
8725
+ total: {
8726
+ discount: {
8727
+ currency: string;
8728
+ amount: number;
8729
+ };
8730
+ original: {
8731
+ currency: string;
8732
+ amount: number;
8733
+ };
8734
+ subtotal: {
8735
+ currency: string;
8736
+ amount: number;
8737
+ };
8738
+ taxes: {
8739
+ currency: string;
8740
+ amount: number;
8741
+ };
8742
+ due: {
8743
+ currency: string;
8744
+ amount: number;
8745
+ };
8746
+ };
8747
+ items: ({
8748
+ type: "Product";
8749
+ id: string;
8750
+ quantity: number;
8751
+ productId: string;
8752
+ variationId: string;
8753
+ price?: Record<string, number> | undefined;
8754
+ product?: {
8755
+ id: string;
8756
+ name: string;
8757
+ tagline: string;
8758
+ iconUrl: string | null;
8759
+ } | undefined;
8760
+ variation?: {
8761
+ id: string;
8762
+ name: string;
8763
+ originalPrice: Record<string, number>;
8764
+ price: Record<string, number>;
8765
+ hasDiscount: boolean;
8766
+ discount?: {
8767
+ type: "PercentageOffDiscount";
8768
+ name: string;
8769
+ percentage: number;
8770
+ isExclusive: boolean;
8771
+ description?: string | undefined;
8772
+ total?: Record<string, number> | undefined;
8773
+ } | {
8774
+ type: "FlatAmountOffDiscount";
8775
+ name: string;
8776
+ isExclusive: boolean;
8777
+ description?: string | undefined;
8778
+ total?: Record<string, number> | undefined;
8779
+ } | undefined;
8780
+ } | undefined;
8781
+ appliedDiscount?: {
8782
+ type: "PercentageOffDiscount";
8783
+ name: string;
8784
+ percentage: number;
8785
+ isExclusive: boolean;
8786
+ description?: string | undefined;
8787
+ total?: Record<string, number> | undefined;
8788
+ } | {
8789
+ type: "FlatAmountOffDiscount";
8790
+ name: string;
8791
+ isExclusive: boolean;
8792
+ description?: string | undefined;
8793
+ total?: Record<string, number> | undefined;
8794
+ } | undefined;
8795
+ } | {
8796
+ type: "Bundle";
8797
+ id: string;
8798
+ quantity: number;
8799
+ variationId: string;
8800
+ bundleId: string;
8801
+ price?: Record<string, number> | undefined;
8802
+ partial?: boolean | undefined;
8803
+ bundle?: {
8804
+ id: string;
8805
+ name: string;
8806
+ tagline: string;
8807
+ iconUrl: string | null;
8808
+ products: ({
8809
+ id: string;
8810
+ name: string;
8811
+ tagline: string;
8812
+ iconUrl: string | null;
8813
+ } & {
8814
+ included?: boolean | undefined;
8815
+ })[];
8816
+ } | undefined;
8817
+ variation?: {
8818
+ id: string;
8819
+ name: string;
8820
+ originalPrice: Record<string, number>;
8821
+ price: Record<string, number>;
8822
+ hasDiscount: boolean;
8823
+ discount?: {
8824
+ type: "PercentageOffDiscount";
8825
+ name: string;
8826
+ percentage: number;
8827
+ isExclusive: boolean;
8828
+ description?: string | undefined;
8829
+ total?: Record<string, number> | undefined;
8830
+ } | {
8831
+ type: "FlatAmountOffDiscount";
8832
+ name: string;
8833
+ isExclusive: boolean;
8834
+ description?: string | undefined;
8835
+ total?: Record<string, number> | undefined;
8836
+ } | undefined;
8837
+ } | undefined;
8838
+ appliedDiscount?: {
8839
+ type: "PercentageOffDiscount";
8840
+ name: string;
8841
+ percentage: number;
8842
+ isExclusive: boolean;
8843
+ description?: string | undefined;
8844
+ total?: Record<string, number> | undefined;
8845
+ } | {
8846
+ type: "FlatAmountOffDiscount";
8847
+ name: string;
8848
+ isExclusive: boolean;
8849
+ description?: string | undefined;
8850
+ total?: Record<string, number> | undefined;
8851
+ } | undefined;
8852
+ })[];
8853
+ currency: string;
8854
+ couponsApplied: {
8855
+ code: string;
8856
+ name: string;
8857
+ description: string;
8858
+ }[];
8859
+ customer: {
8860
+ email: string | null;
8861
+ name: string | null;
8862
+ address: {
8863
+ countryCode: string;
8864
+ streetAddress1: string;
8865
+ streetAddress2: string | null;
8866
+ locality: string | null;
8867
+ region: string | null;
8868
+ postCode: string;
8869
+ } | null;
8870
+ businessName: string | null;
8871
+ taxId: string | null;
8872
+ };
8873
+ } | {
6312
8874
  status: OrderStatus.Open;
6313
8875
  id: string;
6314
8876
  items: ({
@@ -6426,30 +8988,125 @@ declare class OrderEndpoints {
6426
8988
  checkoutUrl?: string | undefined;
6427
8989
  embeddedCheckoutUrl?: string | undefined;
6428
8990
  } | {
6429
- status: OrderStatus.Completed;
8991
+ status: OrderStatus.PaymentProcessing;
8992
+ id: string;
8993
+ items: ({
8994
+ type: "Product";
8995
+ id: string;
8996
+ quantity: number;
8997
+ productId: string;
8998
+ variationId: string;
8999
+ price?: Record<string, number> | undefined;
9000
+ product?: {
9001
+ id: string;
9002
+ name: string;
9003
+ tagline: string;
9004
+ iconUrl: string | null;
9005
+ } | undefined;
9006
+ variation?: {
9007
+ id: string;
9008
+ name: string;
9009
+ originalPrice: Record<string, number>;
9010
+ price: Record<string, number>;
9011
+ hasDiscount: boolean;
9012
+ discount?: {
9013
+ type: "PercentageOffDiscount";
9014
+ name: string;
9015
+ percentage: number;
9016
+ isExclusive: boolean;
9017
+ description?: string | undefined;
9018
+ total?: Record<string, number> | undefined;
9019
+ } | {
9020
+ type: "FlatAmountOffDiscount";
9021
+ name: string;
9022
+ isExclusive: boolean;
9023
+ description?: string | undefined;
9024
+ total?: Record<string, number> | undefined;
9025
+ } | undefined;
9026
+ } | undefined;
9027
+ appliedDiscount?: {
9028
+ type: "PercentageOffDiscount";
9029
+ name: string;
9030
+ percentage: number;
9031
+ isExclusive: boolean;
9032
+ description?: string | undefined;
9033
+ total?: Record<string, number> | undefined;
9034
+ } | {
9035
+ type: "FlatAmountOffDiscount";
9036
+ name: string;
9037
+ isExclusive: boolean;
9038
+ description?: string | undefined;
9039
+ total?: Record<string, number> | undefined;
9040
+ } | undefined;
9041
+ } | {
9042
+ type: "Bundle";
9043
+ id: string;
9044
+ quantity: number;
9045
+ variationId: string;
9046
+ bundleId: string;
9047
+ price?: Record<string, number> | undefined;
9048
+ partial?: boolean | undefined;
9049
+ bundle?: {
9050
+ id: string;
9051
+ name: string;
9052
+ tagline: string;
9053
+ iconUrl: string | null;
9054
+ products: ({
9055
+ id: string;
9056
+ name: string;
9057
+ tagline: string;
9058
+ iconUrl: string | null;
9059
+ } & {
9060
+ included?: boolean | undefined;
9061
+ })[];
9062
+ } | undefined;
9063
+ variation?: {
9064
+ id: string;
9065
+ name: string;
9066
+ originalPrice: Record<string, number>;
9067
+ price: Record<string, number>;
9068
+ hasDiscount: boolean;
9069
+ discount?: {
9070
+ type: "PercentageOffDiscount";
9071
+ name: string;
9072
+ percentage: number;
9073
+ isExclusive: boolean;
9074
+ description?: string | undefined;
9075
+ total?: Record<string, number> | undefined;
9076
+ } | {
9077
+ type: "FlatAmountOffDiscount";
9078
+ name: string;
9079
+ isExclusive: boolean;
9080
+ description?: string | undefined;
9081
+ total?: Record<string, number> | undefined;
9082
+ } | undefined;
9083
+ } | undefined;
9084
+ appliedDiscount?: {
9085
+ type: "PercentageOffDiscount";
9086
+ name: string;
9087
+ percentage: number;
9088
+ isExclusive: boolean;
9089
+ description?: string | undefined;
9090
+ total?: Record<string, number> | undefined;
9091
+ } | {
9092
+ type: "FlatAmountOffDiscount";
9093
+ name: string;
9094
+ isExclusive: boolean;
9095
+ description?: string | undefined;
9096
+ total?: Record<string, number> | undefined;
9097
+ } | undefined;
9098
+ })[];
9099
+ currency: string;
9100
+ couponsApplied: {
9101
+ code: string;
9102
+ name: string;
9103
+ description: string;
9104
+ }[];
9105
+ checkoutUrl?: string | undefined;
9106
+ embeddedCheckoutUrl?: string | undefined;
9107
+ } | {
9108
+ status: OrderStatus.Paid;
6430
9109
  id: string;
6431
- total: {
6432
- discount: {
6433
- currency: string;
6434
- amount: number;
6435
- };
6436
- original: {
6437
- currency: string;
6438
- amount: number;
6439
- };
6440
- subtotal: {
6441
- currency: string;
6442
- amount: number;
6443
- };
6444
- taxes: {
6445
- currency: string;
6446
- amount: number;
6447
- };
6448
- due: {
6449
- currency: string;
6450
- amount: number;
6451
- };
6452
- };
6453
9110
  items: ({
6454
9111
  type: "Product";
6455
9112
  id: string;
@@ -6562,20 +9219,125 @@ declare class OrderEndpoints {
6562
9219
  name: string;
6563
9220
  description: string;
6564
9221
  }[];
6565
- customer: {
6566
- email: string | null;
6567
- name: string | null;
6568
- address: {
6569
- countryCode: string;
6570
- streetAddress1: string;
6571
- streetAddress2: string | null;
6572
- locality: string | null;
6573
- region: string | null;
6574
- postCode: string;
6575
- } | null;
6576
- businessName: string | null;
6577
- taxId: string | null;
6578
- };
9222
+ checkoutUrl?: string | undefined;
9223
+ embeddedCheckoutUrl?: string | undefined;
9224
+ } | {
9225
+ status: OrderStatus.Failed;
9226
+ id: string;
9227
+ items: ({
9228
+ type: "Product";
9229
+ id: string;
9230
+ quantity: number;
9231
+ productId: string;
9232
+ variationId: string;
9233
+ price?: Record<string, number> | undefined;
9234
+ product?: {
9235
+ id: string;
9236
+ name: string;
9237
+ tagline: string;
9238
+ iconUrl: string | null;
9239
+ } | undefined;
9240
+ variation?: {
9241
+ id: string;
9242
+ name: string;
9243
+ originalPrice: Record<string, number>;
9244
+ price: Record<string, number>;
9245
+ hasDiscount: boolean;
9246
+ discount?: {
9247
+ type: "PercentageOffDiscount";
9248
+ name: string;
9249
+ percentage: number;
9250
+ isExclusive: boolean;
9251
+ description?: string | undefined;
9252
+ total?: Record<string, number> | undefined;
9253
+ } | {
9254
+ type: "FlatAmountOffDiscount";
9255
+ name: string;
9256
+ isExclusive: boolean;
9257
+ description?: string | undefined;
9258
+ total?: Record<string, number> | undefined;
9259
+ } | undefined;
9260
+ } | undefined;
9261
+ appliedDiscount?: {
9262
+ type: "PercentageOffDiscount";
9263
+ name: string;
9264
+ percentage: number;
9265
+ isExclusive: boolean;
9266
+ description?: string | undefined;
9267
+ total?: Record<string, number> | undefined;
9268
+ } | {
9269
+ type: "FlatAmountOffDiscount";
9270
+ name: string;
9271
+ isExclusive: boolean;
9272
+ description?: string | undefined;
9273
+ total?: Record<string, number> | undefined;
9274
+ } | undefined;
9275
+ } | {
9276
+ type: "Bundle";
9277
+ id: string;
9278
+ quantity: number;
9279
+ variationId: string;
9280
+ bundleId: string;
9281
+ price?: Record<string, number> | undefined;
9282
+ partial?: boolean | undefined;
9283
+ bundle?: {
9284
+ id: string;
9285
+ name: string;
9286
+ tagline: string;
9287
+ iconUrl: string | null;
9288
+ products: ({
9289
+ id: string;
9290
+ name: string;
9291
+ tagline: string;
9292
+ iconUrl: string | null;
9293
+ } & {
9294
+ included?: boolean | undefined;
9295
+ })[];
9296
+ } | undefined;
9297
+ variation?: {
9298
+ id: string;
9299
+ name: string;
9300
+ originalPrice: Record<string, number>;
9301
+ price: Record<string, number>;
9302
+ hasDiscount: boolean;
9303
+ discount?: {
9304
+ type: "PercentageOffDiscount";
9305
+ name: string;
9306
+ percentage: number;
9307
+ isExclusive: boolean;
9308
+ description?: string | undefined;
9309
+ total?: Record<string, number> | undefined;
9310
+ } | {
9311
+ type: "FlatAmountOffDiscount";
9312
+ name: string;
9313
+ isExclusive: boolean;
9314
+ description?: string | undefined;
9315
+ total?: Record<string, number> | undefined;
9316
+ } | undefined;
9317
+ } | undefined;
9318
+ appliedDiscount?: {
9319
+ type: "PercentageOffDiscount";
9320
+ name: string;
9321
+ percentage: number;
9322
+ isExclusive: boolean;
9323
+ description?: string | undefined;
9324
+ total?: Record<string, number> | undefined;
9325
+ } | {
9326
+ type: "FlatAmountOffDiscount";
9327
+ name: string;
9328
+ isExclusive: boolean;
9329
+ description?: string | undefined;
9330
+ total?: Record<string, number> | undefined;
9331
+ } | undefined;
9332
+ })[];
9333
+ currency: string;
9334
+ couponsApplied: {
9335
+ code: string;
9336
+ name: string;
9337
+ description: string;
9338
+ }[];
9339
+ checkoutUrl?: string | undefined;
9340
+ embeddedCheckoutUrl?: string | undefined;
6579
9341
  }>;
6580
9342
  pushContent(order: {
6581
9343
  id: string;