ce-storefront 0.14.1 → 0.14.3

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.
@@ -74,14 +74,22 @@ export type Cart = {
74
74
  * Code of the applied coupon.
75
75
  */
76
76
  couponCode: string | null;
77
+ /**
78
+ * Discount amount due to the coupon.
79
+ */
80
+ couponDiscountAmount: number;
81
+ /**
82
+ * Discount amount due to the coupon.
83
+ */
84
+ couponDiscountPercent: number;
77
85
  /**
78
86
  * Discount amount due to promotions(If Applied).
79
87
  */
80
88
  promotionDiscountAmount: number;
81
89
  /**
82
- * Discount amount due to the coupon.
90
+ * Discount amount due to promotions(If Applied).
83
91
  */
84
- couponDiscountAmount: number;
92
+ promotionDiscountPercent?: number | undefined;
85
93
  /**
86
94
  * Subtotal amount for items in the cart.
87
95
  */
@@ -97,31 +105,32 @@ export type Cart = {
97
105
  /**
98
106
  * Estimated cost of shipping.
99
107
  */
100
- shippingEstimatedCost: number;
108
+ shippingEstimatedCost: number | null;
101
109
  /**
102
110
  * Discount applied on estimated shipping cost.
103
111
  */
104
- shippingDiscountAmount: number;
112
+ shippingDiscountAmount: number | null;
105
113
  /**
106
114
  * Shipping amount chargable to customer.
107
115
  */
108
- shippingAmount: number;
116
+ shippingAmount: number | null;
109
117
  /**
110
118
  * Shipping tax rate applied on shipping amount.
111
119
  */
112
- shippingTaxRate: number;
120
+ shippingTaxRate: number | null;
113
121
  /**
114
122
  * Tax applied on shipping_amount.
115
123
  */
116
- shippingTaxAmount: number;
124
+ shippingTaxAmount: number | null;
117
125
  /**
118
126
  * Shipping amount including shipping tax.
119
127
  */
120
- shippingAmountIncludingTax: number;
128
+ shippingAmountIncludingTax: number | null;
121
129
  shippingProviderId: string | null;
122
130
  shippingProviderName: string | null;
123
131
  courierCompanyId: string | null;
124
132
  courierCompanyName: string | null;
133
+ estimatedDeliveryDays: number | null;
125
134
  /**
126
135
  * The additional charge applied to cover the costs associated with processing, packaging, and handling an order. This fee is separate from shipping charges and may include materials, or special handling requirements.
127
136
  */
@@ -164,7 +173,7 @@ export type Cart = {
164
173
  shippingAddress: CustomerAddress | null;
165
174
  currency: Currency;
166
175
  /**
167
- * Additional metadata associated with the cart. The example includes an empty object in the list.
176
+ * Additional metadata associated with the cart.
168
177
  */
169
178
  metadata: { [k: string]: string } | null;
170
179
  /**
@@ -198,21 +207,24 @@ export const Cart$inboundSchema: z.ZodType<Cart, z.ZodTypeDef, unknown> = z
198
207
  is_promotion_applied: z.boolean(),
199
208
  is_coupon_applied: z.boolean(),
200
209
  coupon_code: z.nullable(z.string()),
201
- promotion_discount_amount: z.number(),
202
210
  coupon_discount_amount: z.number(),
211
+ coupon_discount_percent: z.number(),
212
+ promotion_discount_amount: z.number(),
213
+ promotion_discount_percent: z.number().optional(),
203
214
  subtotal: z.number(),
204
215
  items_tax_amount: z.number(),
205
216
  subtotal_including_tax: z.number(),
206
- shipping_estimated_cost: z.number(),
207
- shipping_discount_amount: z.number(),
208
- shipping_amount: z.number(),
209
- shipping_tax_rate: z.number(),
210
- shipping_tax_amount: z.number(),
211
- shipping_amount_including_tax: z.number(),
217
+ shipping_estimated_cost: z.nullable(z.number()),
218
+ shipping_discount_amount: z.nullable(z.number()),
219
+ shipping_amount: z.nullable(z.number()),
220
+ shipping_tax_rate: z.nullable(z.number()),
221
+ shipping_tax_amount: z.nullable(z.number()),
222
+ shipping_amount_including_tax: z.nullable(z.number()),
212
223
  shipping_provider_id: z.nullable(z.string()),
213
224
  shipping_provider_name: z.nullable(z.string()),
214
225
  courier_company_id: z.nullable(z.string()),
215
226
  courier_company_name: z.nullable(z.string()),
227
+ estimated_delivery_days: z.nullable(z.number().int()),
216
228
  handling_charge_excluding_tax: z.number(),
217
229
  handling_charge_tax_amount: z.number(),
218
230
  handling_charge_including_tax: z.number(),
@@ -245,8 +257,10 @@ export const Cart$inboundSchema: z.ZodType<Cart, z.ZodTypeDef, unknown> = z
245
257
  "is_promotion_applied": "isPromotionApplied",
246
258
  "is_coupon_applied": "isCouponApplied",
247
259
  "coupon_code": "couponCode",
248
- "promotion_discount_amount": "promotionDiscountAmount",
249
260
  "coupon_discount_amount": "couponDiscountAmount",
261
+ "coupon_discount_percent": "couponDiscountPercent",
262
+ "promotion_discount_amount": "promotionDiscountAmount",
263
+ "promotion_discount_percent": "promotionDiscountPercent",
250
264
  "items_tax_amount": "itemsTaxAmount",
251
265
  "subtotal_including_tax": "subtotalIncludingTax",
252
266
  "shipping_estimated_cost": "shippingEstimatedCost",
@@ -259,6 +273,7 @@ export const Cart$inboundSchema: z.ZodType<Cart, z.ZodTypeDef, unknown> = z
259
273
  "shipping_provider_name": "shippingProviderName",
260
274
  "courier_company_id": "courierCompanyId",
261
275
  "courier_company_name": "courierCompanyName",
276
+ "estimated_delivery_days": "estimatedDeliveryDays",
262
277
  "handling_charge_excluding_tax": "handlingChargeExcludingTax",
263
278
  "handling_charge_tax_amount": "handlingChargeTaxAmount",
264
279
  "handling_charge_including_tax": "handlingChargeIncludingTax",
@@ -292,21 +307,24 @@ export type Cart$Outbound = {
292
307
  is_promotion_applied: boolean;
293
308
  is_coupon_applied: boolean;
294
309
  coupon_code: string | null;
295
- promotion_discount_amount: number;
296
310
  coupon_discount_amount: number;
311
+ coupon_discount_percent: number;
312
+ promotion_discount_amount: number;
313
+ promotion_discount_percent?: number | undefined;
297
314
  subtotal: number;
298
315
  items_tax_amount: number;
299
316
  subtotal_including_tax: number;
300
- shipping_estimated_cost: number;
301
- shipping_discount_amount: number;
302
- shipping_amount: number;
303
- shipping_tax_rate: number;
304
- shipping_tax_amount: number;
305
- shipping_amount_including_tax: number;
317
+ shipping_estimated_cost: number | null;
318
+ shipping_discount_amount: number | null;
319
+ shipping_amount: number | null;
320
+ shipping_tax_rate: number | null;
321
+ shipping_tax_amount: number | null;
322
+ shipping_amount_including_tax: number | null;
306
323
  shipping_provider_id: string | null;
307
324
  shipping_provider_name: string | null;
308
325
  courier_company_id: string | null;
309
326
  courier_company_name: string | null;
327
+ estimated_delivery_days: number | null;
310
328
  handling_charge_excluding_tax: number;
311
329
  handling_charge_tax_amount: number;
312
330
  handling_charge_including_tax: number;
@@ -342,21 +360,24 @@ export const Cart$outboundSchema: z.ZodType<Cart$Outbound, z.ZodTypeDef, Cart> =
342
360
  isPromotionApplied: z.boolean(),
343
361
  isCouponApplied: z.boolean(),
344
362
  couponCode: z.nullable(z.string()),
345
- promotionDiscountAmount: z.number(),
346
363
  couponDiscountAmount: z.number(),
364
+ couponDiscountPercent: z.number(),
365
+ promotionDiscountAmount: z.number(),
366
+ promotionDiscountPercent: z.number().optional(),
347
367
  subtotal: z.number(),
348
368
  itemsTaxAmount: z.number(),
349
369
  subtotalIncludingTax: z.number(),
350
- shippingEstimatedCost: z.number(),
351
- shippingDiscountAmount: z.number(),
352
- shippingAmount: z.number(),
353
- shippingTaxRate: z.number(),
354
- shippingTaxAmount: z.number(),
355
- shippingAmountIncludingTax: z.number(),
370
+ shippingEstimatedCost: z.nullable(z.number()),
371
+ shippingDiscountAmount: z.nullable(z.number()),
372
+ shippingAmount: z.nullable(z.number()),
373
+ shippingTaxRate: z.nullable(z.number()),
374
+ shippingTaxAmount: z.nullable(z.number()),
375
+ shippingAmountIncludingTax: z.nullable(z.number()),
356
376
  shippingProviderId: z.nullable(z.string()),
357
377
  shippingProviderName: z.nullable(z.string()),
358
378
  courierCompanyId: z.nullable(z.string()),
359
379
  courierCompanyName: z.nullable(z.string()),
380
+ estimatedDeliveryDays: z.nullable(z.number().int()),
360
381
  handlingChargeExcludingTax: z.number(),
361
382
  handlingChargeTaxAmount: z.number(),
362
383
  handlingChargeIncludingTax: z.number(),
@@ -387,8 +408,10 @@ export const Cart$outboundSchema: z.ZodType<Cart$Outbound, z.ZodTypeDef, Cart> =
387
408
  isPromotionApplied: "is_promotion_applied",
388
409
  isCouponApplied: "is_coupon_applied",
389
410
  couponCode: "coupon_code",
390
- promotionDiscountAmount: "promotion_discount_amount",
391
411
  couponDiscountAmount: "coupon_discount_amount",
412
+ couponDiscountPercent: "coupon_discount_percent",
413
+ promotionDiscountAmount: "promotion_discount_amount",
414
+ promotionDiscountPercent: "promotion_discount_percent",
392
415
  itemsTaxAmount: "items_tax_amount",
393
416
  subtotalIncludingTax: "subtotal_including_tax",
394
417
  shippingEstimatedCost: "shipping_estimated_cost",
@@ -401,6 +424,7 @@ export const Cart$outboundSchema: z.ZodType<Cart$Outbound, z.ZodTypeDef, Cart> =
401
424
  shippingProviderName: "shipping_provider_name",
402
425
  courierCompanyId: "courier_company_id",
403
426
  courierCompanyName: "courier_company_name",
427
+ estimatedDeliveryDays: "estimated_delivery_days",
404
428
  handlingChargeExcludingTax: "handling_charge_excluding_tax",
405
429
  handlingChargeTaxAmount: "handling_charge_tax_amount",
406
430
  handlingChargeIncludingTax: "handling_charge_including_tax",
@@ -114,10 +114,12 @@ export type Order = {
114
114
  customerPhone?: string | null | undefined;
115
115
  customerNote?: string | null | undefined;
116
116
  isPromotionApplied?: boolean | undefined;
117
- promotionDiscountAmount?: number | null | undefined;
117
+ promotionDiscountAmount?: number | undefined;
118
+ promotionDiscountPercent?: number | undefined;
118
119
  isCouponApplied?: boolean | undefined;
119
120
  couponCode?: string | null | undefined;
120
- couponDiscountAmount?: number | null | undefined;
121
+ couponDiscountAmount?: number | undefined;
122
+ couponDiscountPercent?: number | undefined;
121
123
  /**
122
124
  * Information about the promotional offers that have been applied to the cart.
123
125
  */
@@ -141,14 +143,15 @@ export type Order = {
141
143
  shippingTaxAmount?: number | undefined;
142
144
  shippingAmountIncludingTax?: number | undefined;
143
145
  shippingProviderId?: string | null | undefined;
146
+ shippingProviderName?: string | null | undefined;
144
147
  courierCompanyId?: string | null | undefined;
148
+ courierCompanyName?: string | null | undefined;
149
+ estimatedDeliveryDays?: number | null | undefined;
145
150
  handlingChargeExcludingTax?: number | undefined;
146
151
  handlingChargeTaxAmount?: number | undefined;
147
152
  handlingChargeIncludingTax?: number | undefined;
148
153
  totalTax?: number | undefined;
149
154
  grandTotal?: number | undefined;
150
- loyaltyPointRedeemed?: number | undefined;
151
- loyaltyPointEarned?: number | undefined;
152
155
  loyaltyPointsEarned?: number | undefined;
153
156
  loyaltyPointsRedeemed?: number | undefined;
154
157
  creditBalanceUsed?: number | undefined;
@@ -158,6 +161,10 @@ export type Order = {
158
161
  billingAddress?: CustomerAddress | null | undefined;
159
162
  shippingAddress?: CustomerAddress | null | undefined;
160
163
  currency?: OrderCurrency | undefined;
164
+ /**
165
+ * Additional metadata associated with the order.
166
+ */
167
+ metadata?: { [k: string]: string } | null | undefined;
161
168
  /**
162
169
  * order cancellation option should be visible only if this flag is true.
163
170
  */
@@ -166,8 +173,7 @@ export type Order = {
166
173
  * to show refundable details in order cancellation ui.
167
174
  */
168
175
  cancellationRefundDetails?: CancellationRefundDetails | undefined;
169
- createdAt?: Date | undefined;
170
- modifiedAt?: Date | undefined;
176
+ feedback?: string | null | undefined;
171
177
  };
172
178
 
173
179
  /** @internal */
@@ -381,10 +387,12 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
381
387
  customer_phone: z.nullable(z.string()).optional(),
382
388
  customer_note: z.nullable(z.string()).optional(),
383
389
  is_promotion_applied: z.boolean().optional(),
384
- promotion_discount_amount: z.nullable(z.number()).optional(),
390
+ promotion_discount_amount: z.number().optional(),
391
+ promotion_discount_percent: z.number().optional(),
385
392
  is_coupon_applied: z.boolean().optional(),
386
393
  coupon_code: z.nullable(z.string()).optional(),
387
- coupon_discount_amount: z.nullable(z.number()).optional(),
394
+ coupon_discount_amount: z.number().optional(),
395
+ coupon_discount_percent: z.number().optional(),
388
396
  applied_promotions: z.array(AppliedPromotion$inboundSchema),
389
397
  applied_coupons: z.array(AppliedCoupon$inboundSchema),
390
398
  promotion_savings: z.number().optional(),
@@ -402,14 +410,15 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
402
410
  shipping_tax_amount: z.number().optional(),
403
411
  shipping_amount_including_tax: z.number().optional(),
404
412
  shipping_provider_id: z.nullable(z.string()).optional(),
413
+ shipping_provider_name: z.nullable(z.string()).optional(),
405
414
  courier_company_id: z.nullable(z.string()).optional(),
415
+ courier_company_name: z.nullable(z.string()).optional(),
416
+ estimated_delivery_days: z.nullable(z.number().int()).optional(),
406
417
  handling_charge_excluding_tax: z.number().optional(),
407
418
  handling_charge_tax_amount: z.number().optional(),
408
419
  handling_charge_including_tax: z.number().optional(),
409
420
  total_tax: z.number().optional(),
410
421
  grand_total: z.number().optional(),
411
- loyalty_point_redeemed: z.number().int().optional(),
412
- loyalty_point_earned: z.number().int().optional(),
413
422
  loyalty_points_earned: z.number().int().optional(),
414
423
  loyalty_points_redeemed: z.number().int().optional(),
415
424
  credit_balance_used: z.number().int().optional(),
@@ -419,16 +428,12 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
419
428
  billing_address: z.nullable(CustomerAddress$inboundSchema).optional(),
420
429
  shipping_address: z.nullable(CustomerAddress$inboundSchema).optional(),
421
430
  currency: z.lazy(() => OrderCurrency$inboundSchema).optional(),
431
+ metadata: z.nullable(z.record(z.string())).optional(),
422
432
  is_cancellation_allowed: z.boolean().optional(),
423
433
  cancellation_refund_details: z.lazy(() =>
424
434
  CancellationRefundDetails$inboundSchema
425
435
  ).optional(),
426
- created_at: z.string().datetime({ offset: true }).transform(v =>
427
- new Date(v)
428
- ).optional(),
429
- modified_at: z.string().datetime({ offset: true }).transform(v =>
430
- new Date(v)
431
- ).optional(),
436
+ feedback: z.nullable(z.string()).optional(),
432
437
  }).transform((v) => {
433
438
  return remap$(v, {
434
439
  "order_number": "orderNumber",
@@ -440,9 +445,11 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
440
445
  "customer_note": "customerNote",
441
446
  "is_promotion_applied": "isPromotionApplied",
442
447
  "promotion_discount_amount": "promotionDiscountAmount",
448
+ "promotion_discount_percent": "promotionDiscountPercent",
443
449
  "is_coupon_applied": "isCouponApplied",
444
450
  "coupon_code": "couponCode",
445
451
  "coupon_discount_amount": "couponDiscountAmount",
452
+ "coupon_discount_percent": "couponDiscountPercent",
446
453
  "applied_promotions": "appliedPromotions",
447
454
  "applied_coupons": "appliedCoupons",
448
455
  "promotion_savings": "promotionSavings",
@@ -459,14 +466,15 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
459
466
  "shipping_tax_amount": "shippingTaxAmount",
460
467
  "shipping_amount_including_tax": "shippingAmountIncludingTax",
461
468
  "shipping_provider_id": "shippingProviderId",
469
+ "shipping_provider_name": "shippingProviderName",
462
470
  "courier_company_id": "courierCompanyId",
471
+ "courier_company_name": "courierCompanyName",
472
+ "estimated_delivery_days": "estimatedDeliveryDays",
463
473
  "handling_charge_excluding_tax": "handlingChargeExcludingTax",
464
474
  "handling_charge_tax_amount": "handlingChargeTaxAmount",
465
475
  "handling_charge_including_tax": "handlingChargeIncludingTax",
466
476
  "total_tax": "totalTax",
467
477
  "grand_total": "grandTotal",
468
- "loyalty_point_redeemed": "loyaltyPointRedeemed",
469
- "loyalty_point_earned": "loyaltyPointEarned",
470
478
  "loyalty_points_earned": "loyaltyPointsEarned",
471
479
  "loyalty_points_redeemed": "loyaltyPointsRedeemed",
472
480
  "credit_balance_used": "creditBalanceUsed",
@@ -477,8 +485,6 @@ export const Order$inboundSchema: z.ZodType<Order, z.ZodTypeDef, unknown> = z
477
485
  "shipping_address": "shippingAddress",
478
486
  "is_cancellation_allowed": "isCancellationAllowed",
479
487
  "cancellation_refund_details": "cancellationRefundDetails",
480
- "created_at": "createdAt",
481
- "modified_at": "modifiedAt",
482
488
  });
483
489
  });
484
490
 
@@ -493,10 +499,12 @@ export type Order$Outbound = {
493
499
  customer_phone?: string | null | undefined;
494
500
  customer_note?: string | null | undefined;
495
501
  is_promotion_applied?: boolean | undefined;
496
- promotion_discount_amount?: number | null | undefined;
502
+ promotion_discount_amount?: number | undefined;
503
+ promotion_discount_percent?: number | undefined;
497
504
  is_coupon_applied?: boolean | undefined;
498
505
  coupon_code?: string | null | undefined;
499
- coupon_discount_amount?: number | null | undefined;
506
+ coupon_discount_amount?: number | undefined;
507
+ coupon_discount_percent?: number | undefined;
500
508
  applied_promotions: Array<AppliedPromotion$Outbound>;
501
509
  applied_coupons: Array<AppliedCoupon$Outbound>;
502
510
  promotion_savings?: number | undefined;
@@ -514,14 +522,15 @@ export type Order$Outbound = {
514
522
  shipping_tax_amount?: number | undefined;
515
523
  shipping_amount_including_tax?: number | undefined;
516
524
  shipping_provider_id?: string | null | undefined;
525
+ shipping_provider_name?: string | null | undefined;
517
526
  courier_company_id?: string | null | undefined;
527
+ courier_company_name?: string | null | undefined;
528
+ estimated_delivery_days?: number | null | undefined;
518
529
  handling_charge_excluding_tax?: number | undefined;
519
530
  handling_charge_tax_amount?: number | undefined;
520
531
  handling_charge_including_tax?: number | undefined;
521
532
  total_tax?: number | undefined;
522
533
  grand_total?: number | undefined;
523
- loyalty_point_redeemed?: number | undefined;
524
- loyalty_point_earned?: number | undefined;
525
534
  loyalty_points_earned?: number | undefined;
526
535
  loyalty_points_redeemed?: number | undefined;
527
536
  credit_balance_used?: number | undefined;
@@ -531,10 +540,10 @@ export type Order$Outbound = {
531
540
  billing_address?: CustomerAddress$Outbound | null | undefined;
532
541
  shipping_address?: CustomerAddress$Outbound | null | undefined;
533
542
  currency?: OrderCurrency$Outbound | undefined;
543
+ metadata?: { [k: string]: string } | null | undefined;
534
544
  is_cancellation_allowed?: boolean | undefined;
535
545
  cancellation_refund_details?: CancellationRefundDetails$Outbound | undefined;
536
- created_at?: string | undefined;
537
- modified_at?: string | undefined;
546
+ feedback?: string | null | undefined;
538
547
  };
539
548
 
540
549
  /** @internal */
@@ -552,10 +561,12 @@ export const Order$outboundSchema: z.ZodType<
552
561
  customerPhone: z.nullable(z.string()).optional(),
553
562
  customerNote: z.nullable(z.string()).optional(),
554
563
  isPromotionApplied: z.boolean().optional(),
555
- promotionDiscountAmount: z.nullable(z.number()).optional(),
564
+ promotionDiscountAmount: z.number().optional(),
565
+ promotionDiscountPercent: z.number().optional(),
556
566
  isCouponApplied: z.boolean().optional(),
557
567
  couponCode: z.nullable(z.string()).optional(),
558
- couponDiscountAmount: z.nullable(z.number()).optional(),
568
+ couponDiscountAmount: z.number().optional(),
569
+ couponDiscountPercent: z.number().optional(),
559
570
  appliedPromotions: z.array(AppliedPromotion$outboundSchema),
560
571
  appliedCoupons: z.array(AppliedCoupon$outboundSchema),
561
572
  promotionSavings: z.number().optional(),
@@ -573,14 +584,15 @@ export const Order$outboundSchema: z.ZodType<
573
584
  shippingTaxAmount: z.number().optional(),
574
585
  shippingAmountIncludingTax: z.number().optional(),
575
586
  shippingProviderId: z.nullable(z.string()).optional(),
587
+ shippingProviderName: z.nullable(z.string()).optional(),
576
588
  courierCompanyId: z.nullable(z.string()).optional(),
589
+ courierCompanyName: z.nullable(z.string()).optional(),
590
+ estimatedDeliveryDays: z.nullable(z.number().int()).optional(),
577
591
  handlingChargeExcludingTax: z.number().optional(),
578
592
  handlingChargeTaxAmount: z.number().optional(),
579
593
  handlingChargeIncludingTax: z.number().optional(),
580
594
  totalTax: z.number().optional(),
581
595
  grandTotal: z.number().optional(),
582
- loyaltyPointRedeemed: z.number().int().optional(),
583
- loyaltyPointEarned: z.number().int().optional(),
584
596
  loyaltyPointsEarned: z.number().int().optional(),
585
597
  loyaltyPointsRedeemed: z.number().int().optional(),
586
598
  creditBalanceUsed: z.number().int().optional(),
@@ -590,12 +602,12 @@ export const Order$outboundSchema: z.ZodType<
590
602
  billingAddress: z.nullable(CustomerAddress$outboundSchema).optional(),
591
603
  shippingAddress: z.nullable(CustomerAddress$outboundSchema).optional(),
592
604
  currency: z.lazy(() => OrderCurrency$outboundSchema).optional(),
605
+ metadata: z.nullable(z.record(z.string())).optional(),
593
606
  isCancellationAllowed: z.boolean().optional(),
594
607
  cancellationRefundDetails: z.lazy(() =>
595
608
  CancellationRefundDetails$outboundSchema
596
609
  ).optional(),
597
- createdAt: z.date().transform(v => v.toISOString()).optional(),
598
- modifiedAt: z.date().transform(v => v.toISOString()).optional(),
610
+ feedback: z.nullable(z.string()).optional(),
599
611
  }).transform((v) => {
600
612
  return remap$(v, {
601
613
  orderNumber: "order_number",
@@ -607,9 +619,11 @@ export const Order$outboundSchema: z.ZodType<
607
619
  customerNote: "customer_note",
608
620
  isPromotionApplied: "is_promotion_applied",
609
621
  promotionDiscountAmount: "promotion_discount_amount",
622
+ promotionDiscountPercent: "promotion_discount_percent",
610
623
  isCouponApplied: "is_coupon_applied",
611
624
  couponCode: "coupon_code",
612
625
  couponDiscountAmount: "coupon_discount_amount",
626
+ couponDiscountPercent: "coupon_discount_percent",
613
627
  appliedPromotions: "applied_promotions",
614
628
  appliedCoupons: "applied_coupons",
615
629
  promotionSavings: "promotion_savings",
@@ -626,14 +640,15 @@ export const Order$outboundSchema: z.ZodType<
626
640
  shippingTaxAmount: "shipping_tax_amount",
627
641
  shippingAmountIncludingTax: "shipping_amount_including_tax",
628
642
  shippingProviderId: "shipping_provider_id",
643
+ shippingProviderName: "shipping_provider_name",
629
644
  courierCompanyId: "courier_company_id",
645
+ courierCompanyName: "courier_company_name",
646
+ estimatedDeliveryDays: "estimated_delivery_days",
630
647
  handlingChargeExcludingTax: "handling_charge_excluding_tax",
631
648
  handlingChargeTaxAmount: "handling_charge_tax_amount",
632
649
  handlingChargeIncludingTax: "handling_charge_including_tax",
633
650
  totalTax: "total_tax",
634
651
  grandTotal: "grand_total",
635
- loyaltyPointRedeemed: "loyalty_point_redeemed",
636
- loyaltyPointEarned: "loyalty_point_earned",
637
652
  loyaltyPointsEarned: "loyalty_points_earned",
638
653
  loyaltyPointsRedeemed: "loyalty_points_redeemed",
639
654
  creditBalanceUsed: "credit_balance_used",
@@ -644,8 +659,6 @@ export const Order$outboundSchema: z.ZodType<
644
659
  shippingAddress: "shipping_address",
645
660
  isCancellationAllowed: "is_cancellation_allowed",
646
661
  cancellationRefundDetails: "cancellation_refund_details",
647
- createdAt: "created_at",
648
- modifiedAt: "modified_at",
649
662
  });
650
663
  });
651
664