@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>;
@@ -73,6 +73,22 @@ var ListTransactionsForSingleOrderResponse = z.object({
73
73
  }).describe("Payment amount.").optional(),
74
74
  refundDisabled: z.boolean().describe(
75
75
  "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."
76
+ ).optional(),
77
+ cashRounding: z.object({
78
+ unroundedAmount: z.object({
79
+ amount: z.string().describe("Amount.").optional(),
80
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
81
+ }).describe(
82
+ "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."
83
+ ).optional(),
84
+ roundingAdjustment: z.object({
85
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
86
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
87
+ }).describe(
88
+ "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."
89
+ ).optional()
90
+ }).describe(
91
+ "Details about cash rounding applied to this payment, when relevant."
76
92
  ).optional()
77
93
  }),
78
94
  z.xor([
@@ -429,6 +445,22 @@ var ListTransactionsForMultipleOrdersResponse = z.object({
429
445
  }).describe("Payment amount.").optional(),
430
446
  refundDisabled: z.boolean().describe(
431
447
  "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."
448
+ ).optional(),
449
+ cashRounding: z.object({
450
+ unroundedAmount: z.object({
451
+ amount: z.string().describe("Amount.").optional(),
452
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
453
+ }).describe(
454
+ "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."
455
+ ).optional(),
456
+ roundingAdjustment: z.object({
457
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
458
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
459
+ }).describe(
460
+ "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."
461
+ ).optional()
462
+ }).describe(
463
+ "Details about cash rounding applied to this payment, when relevant."
432
464
  ).optional()
433
465
  }),
434
466
  z.xor([
@@ -789,6 +821,22 @@ var AddPaymentsRequest = z.object({
789
821
  }).describe("Payment amount."),
790
822
  refundDisabled: z.boolean().describe(
791
823
  "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."
824
+ ).optional(),
825
+ cashRounding: z.object({
826
+ unroundedAmount: z.object({
827
+ amount: z.string().describe("Amount.").optional(),
828
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
829
+ }).describe(
830
+ "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."
831
+ ).optional(),
832
+ roundingAdjustment: z.object({
833
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
834
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
835
+ }).describe(
836
+ "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."
837
+ ).optional()
838
+ }).describe(
839
+ "Details about cash rounding applied to this payment, when relevant."
792
840
  ).optional()
793
841
  }),
794
842
  z.xor([
@@ -993,6 +1041,22 @@ var AddPaymentsResponse = z.object({
993
1041
  }).describe("Payment amount.").optional(),
994
1042
  refundDisabled: z.boolean().describe(
995
1043
  "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."
1044
+ ).optional(),
1045
+ cashRounding: z.object({
1046
+ unroundedAmount: z.object({
1047
+ amount: z.string().describe("Amount.").optional(),
1048
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1049
+ }).describe(
1050
+ "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."
1051
+ ).optional(),
1052
+ roundingAdjustment: z.object({
1053
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
1054
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1055
+ }).describe(
1056
+ "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."
1057
+ ).optional()
1058
+ }).describe(
1059
+ "Details about cash rounding applied to this payment, when relevant."
996
1060
  ).optional()
997
1061
  }),
998
1062
  z.xor([
@@ -1372,6 +1436,22 @@ var UpdatePaymentStatusResponse = z.object({
1372
1436
  }).describe("Payment amount.").optional(),
1373
1437
  refundDisabled: z.boolean().describe(
1374
1438
  "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."
1439
+ ).optional(),
1440
+ cashRounding: z.object({
1441
+ unroundedAmount: z.object({
1442
+ amount: z.string().describe("Amount.").optional(),
1443
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1444
+ }).describe(
1445
+ "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."
1446
+ ).optional(),
1447
+ roundingAdjustment: z.object({
1448
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
1449
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1450
+ }).describe(
1451
+ "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."
1452
+ ).optional()
1453
+ }).describe(
1454
+ "Details about cash rounding applied to this payment, when relevant."
1375
1455
  ).optional()
1376
1456
  }),
1377
1457
  z.xor([
@@ -1766,6 +1846,22 @@ var BulkUpdatePaymentStatusesResponse = z.object({
1766
1846
  }).describe("Payment amount.").optional(),
1767
1847
  refundDisabled: z.boolean().describe(
1768
1848
  "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."
1849
+ ).optional(),
1850
+ cashRounding: z.object({
1851
+ unroundedAmount: z.object({
1852
+ amount: z.string().describe("Amount.").optional(),
1853
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1854
+ }).describe(
1855
+ "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."
1856
+ ).optional(),
1857
+ roundingAdjustment: z.object({
1858
+ amount: z.string().describe("Amount, can be negative or positive.").optional(),
1859
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1860
+ }).describe(
1861
+ "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."
1862
+ ).optional()
1863
+ }).describe(
1864
+ "Details about cash rounding applied to this payment, when relevant."
1769
1865
  ).optional()
1770
1866
  }),
1771
1867
  z.xor([