@wix/auto_sdk_ecom_order-transactions 1.0.96 → 1.0.97

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +3 -3
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +17 -3
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +14 -0
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.d.ts +60 -0
  8. package/build/cjs/schemas.js +96 -0
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/index.d.mts +3 -3
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +17 -3
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +14 -0
  15. package/build/es/meta.mjs.map +1 -1
  16. package/build/es/schemas.d.mts +60 -0
  17. package/build/es/schemas.mjs +96 -0
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +3 -3
  20. package/build/internal/cjs/index.js.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +4 -9
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +14 -0
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.d.ts +60 -0
  26. package/build/internal/cjs/schemas.js +96 -0
  27. package/build/internal/cjs/schemas.js.map +1 -1
  28. package/build/internal/es/index.d.mts +3 -3
  29. package/build/internal/es/index.mjs.map +1 -1
  30. package/build/internal/es/index.typings.d.mts +4 -9
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +14 -0
  33. package/build/internal/es/meta.mjs.map +1 -1
  34. package/build/internal/es/schemas.d.mts +60 -0
  35. package/build/internal/es/schemas.mjs +96 -0
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -15,6 +15,16 @@ declare const ListTransactionsForSingleOrderResponse: z.ZodObject<{
15
15
  formattedAmount: z.ZodOptional<z.ZodString>;
16
16
  }, z.core.$strip>>;
17
17
  refundDisabled: z.ZodOptional<z.ZodBoolean>;
18
+ cashRounding: z.ZodOptional<z.ZodObject<{
19
+ unroundedAmount: z.ZodOptional<z.ZodObject<{
20
+ amount: z.ZodOptional<z.ZodString>;
21
+ formattedAmount: z.ZodOptional<z.ZodString>;
22
+ }, z.core.$strip>>;
23
+ roundingAdjustment: z.ZodOptional<z.ZodObject<{
24
+ amount: z.ZodOptional<z.ZodString>;
25
+ formattedAmount: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>>;
18
28
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
19
29
  regularPaymentDetails: z.ZodOptional<z.ZodNever>;
20
30
  giftcardPaymentDetails: z.ZodOptional<z.ZodNever>;
@@ -233,6 +243,16 @@ declare const ListTransactionsForMultipleOrdersResponse: z.ZodObject<{
233
243
  formattedAmount: z.ZodOptional<z.ZodString>;
234
244
  }, z.core.$strip>>;
235
245
  refundDisabled: z.ZodOptional<z.ZodBoolean>;
246
+ cashRounding: z.ZodOptional<z.ZodObject<{
247
+ unroundedAmount: z.ZodOptional<z.ZodObject<{
248
+ amount: z.ZodOptional<z.ZodString>;
249
+ formattedAmount: z.ZodOptional<z.ZodString>;
250
+ }, z.core.$strip>>;
251
+ roundingAdjustment: z.ZodOptional<z.ZodObject<{
252
+ amount: z.ZodOptional<z.ZodString>;
253
+ formattedAmount: z.ZodOptional<z.ZodString>;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>>;
236
256
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
237
257
  regularPaymentDetails: z.ZodOptional<z.ZodNever>;
238
258
  giftcardPaymentDetails: z.ZodOptional<z.ZodNever>;
@@ -447,6 +467,16 @@ declare const AddPaymentsRequest: z.ZodObject<{
447
467
  formattedAmount: z.ZodOptional<z.ZodString>;
448
468
  }, z.core.$strip>;
449
469
  refundDisabled: z.ZodOptional<z.ZodBoolean>;
470
+ cashRounding: z.ZodOptional<z.ZodObject<{
471
+ unroundedAmount: z.ZodOptional<z.ZodObject<{
472
+ amount: z.ZodOptional<z.ZodString>;
473
+ formattedAmount: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>>;
475
+ roundingAdjustment: z.ZodOptional<z.ZodObject<{
476
+ amount: z.ZodOptional<z.ZodString>;
477
+ formattedAmount: z.ZodOptional<z.ZodString>;
478
+ }, z.core.$strip>>;
479
+ }, z.core.$strip>>;
450
480
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
451
481
  giftcardPaymentDetails: z.ZodOptional<z.ZodNever>;
452
482
  regularPaymentDetails: z.ZodIntersection<z.ZodObject<{
@@ -579,6 +609,16 @@ declare const AddPaymentsResponse: z.ZodObject<{
579
609
  formattedAmount: z.ZodOptional<z.ZodString>;
580
610
  }, z.core.$strip>>;
581
611
  refundDisabled: z.ZodOptional<z.ZodBoolean>;
612
+ cashRounding: z.ZodOptional<z.ZodObject<{
613
+ unroundedAmount: z.ZodOptional<z.ZodObject<{
614
+ amount: z.ZodOptional<z.ZodString>;
615
+ formattedAmount: z.ZodOptional<z.ZodString>;
616
+ }, z.core.$strip>>;
617
+ roundingAdjustment: z.ZodOptional<z.ZodObject<{
618
+ amount: z.ZodOptional<z.ZodString>;
619
+ formattedAmount: z.ZodOptional<z.ZodString>;
620
+ }, z.core.$strip>>;
621
+ }, z.core.$strip>>;
582
622
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
583
623
  regularPaymentDetails: z.ZodOptional<z.ZodNever>;
584
624
  giftcardPaymentDetails: z.ZodOptional<z.ZodNever>;
@@ -815,6 +855,16 @@ declare const UpdatePaymentStatusResponse: z.ZodObject<{
815
855
  formattedAmount: z.ZodOptional<z.ZodString>;
816
856
  }, z.core.$strip>>;
817
857
  refundDisabled: z.ZodOptional<z.ZodBoolean>;
858
+ cashRounding: z.ZodOptional<z.ZodObject<{
859
+ unroundedAmount: z.ZodOptional<z.ZodObject<{
860
+ amount: z.ZodOptional<z.ZodString>;
861
+ formattedAmount: z.ZodOptional<z.ZodString>;
862
+ }, z.core.$strip>>;
863
+ roundingAdjustment: z.ZodOptional<z.ZodObject<{
864
+ amount: z.ZodOptional<z.ZodString>;
865
+ formattedAmount: z.ZodOptional<z.ZodString>;
866
+ }, z.core.$strip>>;
867
+ }, z.core.$strip>>;
818
868
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
819
869
  regularPaymentDetails: z.ZodOptional<z.ZodNever>;
820
870
  giftcardPaymentDetails: z.ZodOptional<z.ZodNever>;
@@ -1060,6 +1110,16 @@ declare const BulkUpdatePaymentStatusesResponse: z.ZodObject<{
1060
1110
  formattedAmount: z.ZodOptional<z.ZodString>;
1061
1111
  }, z.core.$strip>>;
1062
1112
  refundDisabled: z.ZodOptional<z.ZodBoolean>;
1113
+ cashRounding: z.ZodOptional<z.ZodObject<{
1114
+ unroundedAmount: z.ZodOptional<z.ZodObject<{
1115
+ amount: z.ZodOptional<z.ZodString>;
1116
+ formattedAmount: z.ZodOptional<z.ZodString>;
1117
+ }, z.core.$strip>>;
1118
+ roundingAdjustment: z.ZodOptional<z.ZodObject<{
1119
+ amount: z.ZodOptional<z.ZodString>;
1120
+ formattedAmount: z.ZodOptional<z.ZodString>;
1121
+ }, z.core.$strip>>;
1122
+ }, z.core.$strip>>;
1063
1123
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
1064
1124
  regularPaymentDetails: z.ZodOptional<z.ZodNever>;
1065
1125
  giftcardPaymentDetails: z.ZodOptional<z.ZodNever>;
@@ -28,6 +28,22 @@ var ListTransactionsForSingleOrderResponse = z.object({
28
28
  }).describe("Payment amount.").optional(),
29
29
  refundDisabled: z.boolean().describe(
30
30
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
31
+ ).optional(),
32
+ cashRounding: z.object({
33
+ unroundedAmount: z.object({
34
+ amount: z.string().describe("Amount.").optional(),
35
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
36
+ }).describe(
37
+ "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
38
+ ).optional(),
39
+ roundingAdjustment: z.object({
40
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
41
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
42
+ }).describe(
43
+ "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
44
+ ).optional()
45
+ }).describe(
46
+ "Details about cash rounding applied to this payment, when relevant."
31
47
  ).optional()
32
48
  }),
33
49
  z.xor([
@@ -384,6 +400,22 @@ var ListTransactionsForMultipleOrdersResponse = z.object({
384
400
  }).describe("Payment amount.").optional(),
385
401
  refundDisabled: z.boolean().describe(
386
402
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
403
+ ).optional(),
404
+ cashRounding: z.object({
405
+ unroundedAmount: z.object({
406
+ amount: z.string().describe("Amount.").optional(),
407
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
408
+ }).describe(
409
+ "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
410
+ ).optional(),
411
+ roundingAdjustment: z.object({
412
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
413
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
414
+ }).describe(
415
+ "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
416
+ ).optional()
417
+ }).describe(
418
+ "Details about cash rounding applied to this payment, when relevant."
387
419
  ).optional()
388
420
  }),
389
421
  z.xor([
@@ -744,6 +776,22 @@ var AddPaymentsRequest = z.object({
744
776
  }).describe("Payment amount."),
745
777
  refundDisabled: z.boolean().describe(
746
778
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
779
+ ).optional(),
780
+ cashRounding: z.object({
781
+ unroundedAmount: z.object({
782
+ amount: z.string().describe("Amount.").optional(),
783
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
784
+ }).describe(
785
+ "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
786
+ ).optional(),
787
+ roundingAdjustment: z.object({
788
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
789
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
790
+ }).describe(
791
+ "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
792
+ ).optional()
793
+ }).describe(
794
+ "Details about cash rounding applied to this payment, when relevant."
747
795
  ).optional()
748
796
  }),
749
797
  z.xor([
@@ -948,6 +996,22 @@ var AddPaymentsResponse = z.object({
948
996
  }).describe("Payment amount.").optional(),
949
997
  refundDisabled: z.boolean().describe(
950
998
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
999
+ ).optional(),
1000
+ cashRounding: z.object({
1001
+ unroundedAmount: z.object({
1002
+ amount: z.string().describe("Amount.").optional(),
1003
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1004
+ }).describe(
1005
+ "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
1006
+ ).optional(),
1007
+ roundingAdjustment: z.object({
1008
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
1009
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1010
+ }).describe(
1011
+ "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
1012
+ ).optional()
1013
+ }).describe(
1014
+ "Details about cash rounding applied to this payment, when relevant."
951
1015
  ).optional()
952
1016
  }),
953
1017
  z.xor([
@@ -1327,6 +1391,22 @@ var UpdatePaymentStatusResponse = z.object({
1327
1391
  }).describe("Payment amount.").optional(),
1328
1392
  refundDisabled: z.boolean().describe(
1329
1393
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
1394
+ ).optional(),
1395
+ cashRounding: z.object({
1396
+ unroundedAmount: z.object({
1397
+ amount: z.string().describe("Amount.").optional(),
1398
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1399
+ }).describe(
1400
+ "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
1401
+ ).optional(),
1402
+ roundingAdjustment: z.object({
1403
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
1404
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1405
+ }).describe(
1406
+ "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
1407
+ ).optional()
1408
+ }).describe(
1409
+ "Details about cash rounding applied to this payment, when relevant."
1330
1410
  ).optional()
1331
1411
  }),
1332
1412
  z.xor([
@@ -1721,6 +1801,22 @@ var BulkUpdatePaymentStatusesResponse = z.object({
1721
1801
  }).describe("Payment amount.").optional(),
1722
1802
  refundDisabled: z.boolean().describe(
1723
1803
  "Whether refunds for this payment are disabled.\n+ `true`: This payment is not refundable.\n+ `false`: This payment may be refunded. However, this ultimately depends on the payment provider."
1804
+ ).optional(),
1805
+ cashRounding: z.object({
1806
+ unroundedAmount: z.object({
1807
+ amount: z.string().describe("Amount.").optional(),
1808
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1809
+ }).describe(
1810
+ "Payment amount before cash rounding was applied.\nWhen provided, balance and status calculations use this value instead of `amount`\nto prevent false overpayment or underpayment due to rounding."
1811
+ ).optional(),
1812
+ roundingAdjustment: z.object({
1813
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
1814
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1815
+ }).describe(
1816
+ "The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).\nA positive value indicates the price was rounded up; a negative value indicates a round-down."
1817
+ ).optional()
1818
+ }).describe(
1819
+ "Details about cash rounding applied to this payment, when relevant."
1724
1820
  ).optional()
1725
1821
  }),
1726
1822
  z.xor([