@ancon/wildcat-utils 1.55.0-check-optimizations.3 → 1.56.0

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/check/getOrganizedCheckItemModifications.d.ts +2 -2
  2. package/check/getOrganizedCheckItemModifications.js +1 -1
  3. package/check/getOrganizedCheckItemModifications.mjs +68 -74
  4. package/check/getUniqueCheckItemModificationId.d.ts +2 -2
  5. package/check/getUniqueCheckItemModificationId.js +1 -1
  6. package/check/getUniqueCheckItemModificationId.mjs +5 -5
  7. package/checkout/getCheckoutAdyenAmount.d.ts +9 -0
  8. package/checkout/getCheckoutAdyenAmount.js +1 -0
  9. package/checkout/getCheckoutAdyenAmount.mjs +13 -0
  10. package/checkout/getCheckoutGrandTotalAmount.d.ts +6 -2
  11. package/checkout/getCheckoutGrandTotalAmount.js +1 -1
  12. package/checkout/getCheckoutGrandTotalAmount.mjs +8 -6
  13. package/checkout/getCheckoutMinimumOrderDifferenceAmount.d.ts +7 -0
  14. package/checkout/getCheckoutMinimumOrderDifferenceAmount.js +1 -0
  15. package/checkout/getCheckoutMinimumOrderDifferenceAmount.mjs +12 -0
  16. package/checkout/index.d.ts +3 -1
  17. package/checkout/index.js +1 -1
  18. package/checkout/index.mjs +59 -55
  19. package/checkout/types.d.ts +5 -0
  20. package/index.js +1 -1
  21. package/index.mjs +231 -225
  22. package/multilingual/createLocalizedCheckDetails.d.ts +2 -2
  23. package/multilingual/createLocalizedCheckDetails.js +1 -1
  24. package/multilingual/createLocalizedCheckDetails.mjs +27 -31
  25. package/package.json +16 -1
  26. package/signalr/SignalR.d.ts +3 -1
  27. package/signalr/SignalR.js +1 -1
  28. package/signalr/SignalR.mjs +93 -86
  29. package/signalr/createUseSignalRHook.js +1 -1
  30. package/signalr/createUseSignalRHook.mjs +38 -36
  31. package/signalr/index.d.ts +4 -3
  32. package/signalr/index.js +1 -1
  33. package/signalr/index.mjs +6 -4
  34. package/signalr/types.d.ts +12 -0
  35. package/signalr/useSignalRGroup.d.ts +13 -0
  36. package/signalr/useSignalRGroup.js +1 -0
  37. package/signalr/useSignalRGroup.mjs +13 -0
@@ -1,4 +1,4 @@
1
- import { CheckItemV2 } from '@ancon/wildcat-types';
1
+ import { CheckItem } from '@ancon/wildcat-types';
2
2
  import { OrganizedCheckItemModification } from './types';
3
3
  /**
4
4
  * Organizes all check item modifications including addon products into a array for easier visual representation.
@@ -7,4 +7,4 @@ import { OrganizedCheckItemModification } from './types';
7
7
  * @param addOnProducts - The list of check item add-on products.
8
8
  * @returns An array where the modifications are sorted by their modification kind and positions.
9
9
  */
10
- export default function getOrganizedCheckItemModifications(currency: string, modifications: CheckItemV2['modifications'] | undefined, addOnProducts: CheckItemV2['addOnProducts'] | undefined): OrganizedCheckItemModification[];
10
+ export default function getOrganizedCheckItemModifications(currency: string, modifications: CheckItem['modifications'], addOnProducts: CheckItem['addOnProducts']): OrganizedCheckItemModification[];
@@ -1 +1 @@
1
- "use strict";const h=require("@ancon/wildcat-types"),M=require("../toString-b771abdf.js"),P=require("../identity-58f9497d.js"),x=require("../_baseIteratee-374c60ca.js"),k=require("../_getTag-3d3032da.js"),$=require("../isObjectLike-963267e9.js"),O=require("./getUniqueCheckItemModificationId.js");require("../_baseIsEqual-7e335f42.js");require("../isObject-361bd834.js");function L(n){return function(i,r,e){for(var d=-1,t=Object(i),o=e(i),c=o.length;c--;){var a=o[n?c:++d];if(r(t[a],a,t)===!1)break}return i}}var E=L();const _=E;function G(n,i){return n&&_(n,i,k.keys)}function Q(n,i){return function(r,e){if(r==null)return r;if(!k.isArrayLike(r))return n(r,e);for(var d=r.length,t=i?d:-1,o=Object(r);(i?t--:++t<d)&&e(o[t],t,o)!==!1;);return r}}var U=Q(G);const Z=U;function z(n,i){var r=-1,e=k.isArrayLike(n)?Array(n.length):[];return Z(n,function(d,t,o){e[++r]=i(d,t,o)}),e}function V(n,i){var r=n.length;for(n.sort(i);r--;)n[r]=n[r].value;return n}function j(n,i){if(n!==i){var r=n!==void 0,e=n===null,d=n===n,t=M.isSymbol(n),o=i!==void 0,c=i===null,a=i===i,u=M.isSymbol(i);if(!c&&!u&&!t&&n>i||t&&o&&a&&!c&&!u||e&&o&&a||!r&&a||!d)return 1;if(!e&&!t&&!u&&n<i||u&&r&&d&&!e&&!t||c&&r&&d||!o&&d||!a)return-1}return 0}function H(n,i,r){for(var e=-1,d=n.criteria,t=i.criteria,o=d.length,c=r.length;++e<o;){var a=j(d[e],t[e]);if(a){if(e>=c)return a;var u=r[e];return a*(u=="desc"?-1:1)}}return n.index-i.index}function J(n,i,r){i.length?i=M.arrayMap(i,function(t){return $.isArray(t)?function(o){return P.baseGet(o,t.length===1?t[0]:t)}:t}):i=[P.identity];var e=-1;i=M.arrayMap(i,k.baseUnary(x.baseIteratee));var d=z(n,function(t,o,c){var a=M.arrayMap(i,function(u){return u(t)});return{criteria:a,index:++e,value:t}});return V(d,function(t,o){return H(t,o,r)})}function C(n,i,r,e){return n==null?[]:($.isArray(i)||(i=i==null?[]:[i]),r=e?void 0:r,$.isArray(r)||(r=r==null?[]:[r]),J(n,i,r))}function K(n,i,r){const{add:e,replace:d,remove:t}=(i??[]).reduce((a,u)=>{const{modification:A,position:s,freeAmount:f,name:y="",quantity:p,cost:g,replacementName:T}=u,m=g===0;if(u.modification===h.ModificationType.Add){(f>0||m)&&a.add.push({id:O(u,"-free"),modificationType:A,name:y,freeAmount:m?p:f,quantity:m?p:f,currency:n,position:s,cost:0});const q=p-f;q>0&&!m&&a.add.push({id:O(u),modificationType:A,name:y,quantity:q,freeAmount:0,currency:n,position:s,cost:g*q})}return u.modification===h.ModificationType.Replace&&a.replace.push({id:O(u),modificationType:A,name:y,replacementName:T,freeAmount:f,quantity:p,currency:n,position:s,cost:g}),u.modification===h.ModificationType.Remove&&a.remove.push({id:O(u),modificationType:A,name:y,freeAmount:f,quantity:p,currency:n,position:s,cost:g}),a},{add:[],replace:[],remove:[]}),o=(r??[]).reduce((a,u)=>{const{product:A,freeAmount:s=0,quantity:f,position:y,addOnGroupId:p,productPriceInclTax:g}=u,{hasVariants:T,variantName:m="",productName:q="",productId:B,variantId:F}=A??{},b=g.unitPrice===0;(s>0||b)&&a.push({id:`${p}-${B}-free`,modificationType:h.ModificationType.Add,name:T?m:q,freeAmount:b?f:s,quantity:b?f:s,currency:n,position:y,cost:0,variantId:F});const w=f-s;return w>0&&!b&&a.push({id:`${p}-${B}`,modificationType:h.ModificationType.Add,name:T?m:q,freeAmount:0,quantity:w,currency:n,position:y,cost:g.unitPrice*w,variantId:F}),a},[]);return[...C([...e,...o],["position"],["asc"]),...C(d,["position"],["asc"]),...C(t,["position"],["asc"])]}module.exports=K;
1
+ "use strict";const h=require("@ancon/wildcat-types"),M=require("../toString-b771abdf.js"),P=require("../identity-58f9497d.js"),x=require("../_baseIteratee-374c60ca.js"),k=require("../_getTag-3d3032da.js"),$=require("../isObjectLike-963267e9.js"),O=require("./getUniqueCheckItemModificationId.js");require("../_baseIsEqual-7e335f42.js");require("../isObject-361bd834.js");function L(n){return function(i,r,e){for(var d=-1,t=Object(i),o=e(i),c=o.length;c--;){var a=o[n?c:++d];if(r(t[a],a,t)===!1)break}return i}}var E=L();const _=E;function G(n,i){return n&&_(n,i,k.keys)}function Q(n,i){return function(r,e){if(r==null)return r;if(!k.isArrayLike(r))return n(r,e);for(var d=r.length,t=i?d:-1,o=Object(r);(i?t--:++t<d)&&e(o[t],t,o)!==!1;);return r}}var U=Q(G);const Z=U;function z(n,i){var r=-1,e=k.isArrayLike(n)?Array(n.length):[];return Z(n,function(d,t,o){e[++r]=i(d,t,o)}),e}function V(n,i){var r=n.length;for(n.sort(i);r--;)n[r]=n[r].value;return n}function j(n,i){if(n!==i){var r=n!==void 0,e=n===null,d=n===n,t=M.isSymbol(n),o=i!==void 0,c=i===null,a=i===i,u=M.isSymbol(i);if(!c&&!u&&!t&&n>i||t&&o&&a&&!c&&!u||e&&o&&a||!r&&a||!d)return 1;if(!e&&!t&&!u&&n<i||u&&r&&d&&!e&&!t||c&&r&&d||!o&&d||!a)return-1}return 0}function H(n,i,r){for(var e=-1,d=n.criteria,t=i.criteria,o=d.length,c=r.length;++e<o;){var a=j(d[e],t[e]);if(a){if(e>=c)return a;var u=r[e];return a*(u=="desc"?-1:1)}}return n.index-i.index}function J(n,i,r){i.length?i=M.arrayMap(i,function(t){return $.isArray(t)?function(o){return P.baseGet(o,t.length===1?t[0]:t)}:t}):i=[P.identity];var e=-1;i=M.arrayMap(i,k.baseUnary(x.baseIteratee));var d=z(n,function(t,o,c){var a=M.arrayMap(i,function(u){return u(t)});return{criteria:a,index:++e,value:t}});return V(d,function(t,o){return H(t,o,r)})}function C(n,i,r,e){return n==null?[]:($.isArray(i)||(i=i==null?[]:[i]),r=e?void 0:r,$.isArray(r)||(r=r==null?[]:[r]),J(n,i,r))}function K(n,i,r){const{add:e,replace:d,remove:t}=i.reduce((a,u)=>{const{modification:A,position:s,freeAmount:f,name:y,quantity:p,cost:g,replacementName:T}=u,m=g===0;if(u.modification===h.ModificationType.Add){(f>0||m)&&a.add.push({id:O(u,"-free"),modificationType:A,name:y,freeAmount:m?p:f,quantity:m?p:f,currency:n,position:s,cost:0});const q=p-f;q>0&&!m&&a.add.push({id:O(u),modificationType:A,name:y,quantity:q,freeAmount:0,currency:n,position:s,cost:g*q})}return u.modification===h.ModificationType.Replace&&a.replace.push({id:O(u),modificationType:A,name:y,replacementName:T,freeAmount:f,quantity:p,currency:n,position:s,cost:g}),u.modification===h.ModificationType.Remove&&a.remove.push({id:O(u),modificationType:A,name:y,freeAmount:f,quantity:p,currency:n,position:s,cost:g}),a},{add:[],replace:[],remove:[]}),o=(r||[]).reduce((a,u)=>{const{product:A,addOnFreeAmount:s,quantity:f,addOnPosition:y,addOnGroupId:p,productPriceInclTax:g}=u,{hasVariants:T,variantName:m,productName:q,productId:B,variantId:F}=A,b=g.unitPrice.amount===0;(s>0||b)&&a.push({id:`${p}-${B}-free`,modificationType:h.ModificationType.Add,name:T?m:q,freeAmount:b?f:s,quantity:b?f:s,currency:n,position:y,cost:0,variantId:F});const w=f-s;return w>0&&!b&&a.push({id:`${p}-${B}`,modificationType:h.ModificationType.Add,name:T?m:q,freeAmount:0,quantity:w,currency:n,position:y,cost:g.unitPrice.amount*w,variantId:F}),a},[]);return[...C([...e,...o],["position"],["asc"]),...C(d,["position"],["asc"]),...C(t,["position"],["asc"])]}module.exports=K;
@@ -8,10 +8,10 @@ import T from "./getUniqueCheckItemModificationId.mjs";
8
8
  import "../_baseIsEqual-4ee44a4c.mjs";
9
9
  import "../isObject-b8638513.mjs";
10
10
  function U(n) {
11
- return function(i, t, o) {
12
- for (var d = -1, r = Object(i), u = o(i), f = u.length; f--; ) {
13
- var a = u[n ? f : ++d];
14
- if (t(r[a], a, r) === !1)
11
+ return function(i, t, a) {
12
+ for (var e = -1, r = Object(i), u = a(i), f = u.length; f--; ) {
13
+ var o = u[n ? f : ++e];
14
+ if (t(r[o], o, r) === !1)
15
15
  break;
16
16
  }
17
17
  return i;
@@ -23,12 +23,12 @@ function V(n, i) {
23
23
  return n && z(n, i, L);
24
24
  }
25
25
  function H(n, i) {
26
- return function(t, o) {
26
+ return function(t, a) {
27
27
  if (t == null)
28
28
  return t;
29
29
  if (!P(t))
30
- return n(t, o);
31
- for (var d = t.length, r = i ? d : -1, u = Object(t); (i ? r-- : ++r < d) && o(u[r], r, u) !== !1; )
30
+ return n(t, a);
31
+ for (var e = t.length, r = i ? e : -1, u = Object(t); (i ? r-- : ++r < e) && a(u[r], r, u) !== !1; )
32
32
  ;
33
33
  return t;
34
34
  };
@@ -36,10 +36,10 @@ function H(n, i) {
36
36
  var J = H(V);
37
37
  const K = J;
38
38
  function W(n, i) {
39
- var t = -1, o = P(n) ? Array(n.length) : [];
40
- return K(n, function(d, r, u) {
41
- o[++t] = i(d, r, u);
42
- }), o;
39
+ var t = -1, a = P(n) ? Array(n.length) : [];
40
+ return K(n, function(e, r, u) {
41
+ a[++t] = i(e, r, u);
42
+ }), a;
43
43
  }
44
44
  function X(n, i) {
45
45
  var t = n.length;
@@ -49,22 +49,22 @@ function X(n, i) {
49
49
  }
50
50
  function Y(n, i) {
51
51
  if (n !== i) {
52
- var t = n !== void 0, o = n === null, d = n === n, r = F(n), u = i !== void 0, f = i === null, a = i === i, e = F(i);
53
- if (!f && !e && !r && n > i || r && u && a && !f && !e || o && u && a || !t && a || !d)
52
+ var t = n !== void 0, a = n === null, e = n === n, r = F(n), u = i !== void 0, f = i === null, o = i === i, d = F(i);
53
+ if (!f && !d && !r && n > i || r && u && o && !f && !d || a && u && o || !t && o || !e)
54
54
  return 1;
55
- if (!o && !r && !e && n < i || e && t && d && !o && !r || f && t && d || !u && d || !a)
55
+ if (!a && !r && !d && n < i || d && t && e && !a && !r || f && t && e || !u && e || !o)
56
56
  return -1;
57
57
  }
58
58
  return 0;
59
59
  }
60
60
  function _(n, i, t) {
61
- for (var o = -1, d = n.criteria, r = i.criteria, u = d.length, f = t.length; ++o < u; ) {
62
- var a = Y(d[o], r[o]);
63
- if (a) {
64
- if (o >= f)
65
- return a;
66
- var e = t[o];
67
- return a * (e == "desc" ? -1 : 1);
61
+ for (var a = -1, e = n.criteria, r = i.criteria, u = e.length, f = t.length; ++a < u; ) {
62
+ var o = Y(e[a], r[a]);
63
+ if (o) {
64
+ if (a >= f)
65
+ return o;
66
+ var d = t[a];
67
+ return o * (d == "desc" ? -1 : 1);
68
68
  }
69
69
  }
70
70
  return n.index - i.index;
@@ -75,110 +75,104 @@ function j(n, i, t) {
75
75
  return E(u, r.length === 1 ? r[0] : r);
76
76
  } : r;
77
77
  }) : i = [x];
78
- var o = -1;
78
+ var a = -1;
79
79
  i = q(i, Q(G));
80
- var d = W(n, function(r, u, f) {
81
- var a = q(i, function(e) {
82
- return e(r);
80
+ var e = W(n, function(r, u, f) {
81
+ var o = q(i, function(d) {
82
+ return d(r);
83
83
  });
84
- return { criteria: a, index: ++o, value: r };
84
+ return { criteria: o, index: ++a, value: r };
85
85
  });
86
- return X(d, function(r, u) {
86
+ return X(e, function(r, u) {
87
87
  return _(r, u, t);
88
88
  });
89
89
  }
90
- function C(n, i, t, o) {
91
- return n == null ? [] : ($(i) || (i = i == null ? [] : [i]), t = o ? void 0 : t, $(t) || (t = t == null ? [] : [t]), j(n, i, t));
90
+ function C(n, i, t, a) {
91
+ return n == null ? [] : ($(i) || (i = i == null ? [] : [i]), t = a ? void 0 : t, $(t) || (t = t == null ? [] : [t]), j(n, i, t));
92
92
  }
93
93
  function rn(n, i, t) {
94
- const { add: o, replace: d, remove: r } = (i ?? []).reduce(
95
- (a, e) => {
94
+ const { add: a, replace: e, remove: r } = i.reduce(
95
+ (o, d) => {
96
96
  const {
97
97
  modification: h,
98
- position: c,
99
- freeAmount: p,
100
- name: m = "",
98
+ position: p,
99
+ freeAmount: c,
100
+ name: m,
101
101
  quantity: s,
102
102
  cost: g,
103
103
  replacementName: O
104
- } = e, A = g === 0;
105
- if (e.modification === y.Add) {
106
- (p > 0 || A) && a.add.push({
107
- id: T(e, "-free"),
104
+ } = d, A = g === 0;
105
+ if (d.modification === y.Add) {
106
+ (c > 0 || A) && o.add.push({
107
+ id: T(d, "-free"),
108
108
  modificationType: h,
109
109
  name: m,
110
- freeAmount: A ? s : p,
111
- quantity: A ? s : p,
110
+ freeAmount: A ? s : c,
111
+ quantity: A ? s : c,
112
112
  currency: n,
113
- position: c,
113
+ position: p,
114
114
  cost: 0
115
115
  });
116
- const b = s - p;
117
- b > 0 && !A && a.add.push({
118
- id: T(e),
116
+ const b = s - c;
117
+ b > 0 && !A && o.add.push({
118
+ id: T(d),
119
119
  modificationType: h,
120
120
  name: m,
121
121
  quantity: b,
122
122
  freeAmount: 0,
123
123
  currency: n,
124
- position: c,
124
+ position: p,
125
125
  cost: g * b
126
126
  });
127
127
  }
128
- return e.modification === y.Replace && a.replace.push({
129
- id: T(e),
128
+ return d.modification === y.Replace && o.replace.push({
129
+ id: T(d),
130
130
  modificationType: h,
131
131
  name: m,
132
132
  replacementName: O,
133
- freeAmount: p,
133
+ freeAmount: c,
134
134
  quantity: s,
135
135
  currency: n,
136
- position: c,
136
+ position: p,
137
137
  cost: g
138
- }), e.modification === y.Remove && a.remove.push({
139
- id: T(e),
138
+ }), d.modification === y.Remove && o.remove.push({
139
+ id: T(d),
140
140
  modificationType: h,
141
141
  name: m,
142
- freeAmount: p,
142
+ freeAmount: c,
143
143
  quantity: s,
144
144
  currency: n,
145
- position: c,
145
+ position: p,
146
146
  cost: g
147
- }), a;
147
+ }), o;
148
148
  },
149
149
  {
150
150
  add: [],
151
151
  replace: [],
152
152
  remove: []
153
153
  }
154
- ), u = (t ?? []).reduce((a, e) => {
154
+ ), u = (t || []).reduce((o, d) => {
155
155
  const {
156
156
  product: h,
157
- freeAmount: c = 0,
158
- quantity: p,
159
- position: m,
157
+ addOnFreeAmount: p,
158
+ quantity: c,
159
+ addOnPosition: m,
160
160
  addOnGroupId: s,
161
161
  productPriceInclTax: g
162
- } = e, {
163
- hasVariants: O,
164
- variantName: A = "",
165
- productName: b = "",
166
- productId: w,
167
- variantId: B
168
- } = h ?? {}, M = g.unitPrice === 0;
169
- (c > 0 || M) && a.push({
162
+ } = d, { hasVariants: O, variantName: A, productName: b, productId: w, variantId: B } = h, M = g.unitPrice.amount === 0;
163
+ (p > 0 || M) && o.push({
170
164
  id: `${s}-${w}-free`,
171
165
  modificationType: y.Add,
172
166
  name: O ? A : b,
173
- freeAmount: M ? p : c,
174
- quantity: M ? p : c,
167
+ freeAmount: M ? c : p,
168
+ quantity: M ? c : p,
175
169
  currency: n,
176
170
  position: m,
177
171
  cost: 0,
178
172
  variantId: B
179
173
  });
180
- const k = p - c;
181
- return k > 0 && !M && a.push({
174
+ const k = c - p;
175
+ return k > 0 && !M && o.push({
182
176
  id: `${s}-${w}`,
183
177
  modificationType: y.Add,
184
178
  name: O ? A : b,
@@ -186,13 +180,13 @@ function rn(n, i, t) {
186
180
  quantity: k,
187
181
  currency: n,
188
182
  position: m,
189
- cost: g.unitPrice * k,
183
+ cost: g.unitPrice.amount * k,
190
184
  variantId: B
191
- }), a;
185
+ }), o;
192
186
  }, []);
193
187
  return [
194
- ...C([...o, ...u], ["position"], ["asc"]),
195
- ...C(d, ["position"], ["asc"]),
188
+ ...C([...a, ...u], ["position"], ["asc"]),
189
+ ...C(e, ["position"], ["asc"]),
196
190
  ...C(r, ["position"], ["asc"])
197
191
  ];
198
192
  }
@@ -1,8 +1,8 @@
1
- import { CheckItemModificationV2 } from '@ancon/wildcat-types';
1
+ import { CheckItemModification } from '@ancon/wildcat-types';
2
2
  /**
3
3
  * Generate a unique ID for a Check Item Modification
4
4
  * @param modification - Check Item Modification
5
5
  * @param suffix - Optional suffix to append to the ID
6
6
  * @returns Unique ID string
7
7
  */
8
- export default function getUniqueCheckItemModificationId(modification: CheckItemModificationV2, suffix?: string): string;
8
+ export default function getUniqueCheckItemModificationId(modification: CheckItemModification, suffix?: string): string;
@@ -1 +1 @@
1
- "use strict";function p(n,e){const{modification:i,ingredientId:o,replaceId:$,addOnGroupId:c,quantity:d,cost:a,freeAmount:r,name:t="",replacementName:m,position:u}=n;return`modification-${i}-${o}-${$??0}-${c??null}-${d}-${a}-${r}-${t}-${m??t}-${u}${e?`-${e}`:""}`}module.exports=p;
1
+ "use strict";function u(i,e){const{modification:n,ingredientId:o,replaceId:$,addOnGroupId:c,quantity:d,cost:a,freeAmount:r,name:t,replacementName:m,position:p}=i;return`modification-${n}-${o}-${$??0}-${c}-${d}-${a}-${r}-${t}-${m??t}-${p}${e?`-${e}`:""}`}module.exports=u;
@@ -1,4 +1,4 @@
1
- function p(n, e) {
1
+ function u(n, e) {
2
2
  const {
3
3
  modification: i,
4
4
  ingredientId: o,
@@ -7,12 +7,12 @@ function p(n, e) {
7
7
  quantity: d,
8
8
  cost: c,
9
9
  freeAmount: r,
10
- name: t = "",
10
+ name: t,
11
11
  replacementName: m,
12
- position: u
12
+ position: p
13
13
  } = n;
14
- return `modification-${i}-${o}-${$ ?? 0}-${a ?? null}-${d}-${c}-${r}-${t}-${m ?? t}-${u}${e ? `-${e}` : ""}`;
14
+ return `modification-${i}-${o}-${$ ?? 0}-${a}-${d}-${c}-${r}-${t}-${m ?? t}-${p}${e ? `-${e}` : ""}`;
15
15
  }
16
16
  export {
17
- p as default
17
+ u as default
18
18
  };
@@ -0,0 +1,9 @@
1
+ import { CheckoutDetails, CheckoutSummary, PreOrderCheckoutDetails } from '@ancon/wildcat-types';
2
+ import { CheckoutAdyenAmount } from './types';
3
+ /**
4
+ * The amount to charge for a checkout with Adyen: the grand total, tip
5
+ * included, in minor units (öre for SEK and NOK).
6
+ * Rounded, because floats do not multiply exactly: 19.99 * 100 is
7
+ * 1998.9999999999998, which must be 1999.
8
+ */
9
+ export default function getCheckoutAdyenAmount(checkout: CheckoutDetails | CheckoutSummary | PreOrderCheckoutDetails, tipAmount?: number | null): CheckoutAdyenAmount;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./getCheckoutGrandTotalAmount.js");require("./getCheckoutMinimumOrderDifferenceAmount.js");require("@ancon/wildcat-types");function o(e,t){const{amount:u,currency:r}=n(e,t);return{value:Math.round(u*100),currency:r}}module.exports=o;
@@ -0,0 +1,13 @@
1
+ import u from "./getCheckoutGrandTotalAmount.mjs";
2
+ import "./getCheckoutMinimumOrderDifferenceAmount.mjs";
3
+ import "@ancon/wildcat-types";
4
+ function c(t, o) {
5
+ const { amount: n, currency: r } = u(t, o);
6
+ return {
7
+ value: Math.round(n * 100),
8
+ currency: r
9
+ };
10
+ }
11
+ export {
12
+ c as default
13
+ };
@@ -1,2 +1,6 @@
1
- import { Amount, CheckoutDetailsV2, CheckoutSummary, PreOrderCheckoutDetails } from '@ancon/wildcat-types';
2
- export default function getCheckoutGrandTotalAmount(checkout: CheckoutDetailsV2 | CheckoutSummary | PreOrderCheckoutDetails, tipAmount?: number): Amount;
1
+ import { Amount, CheckoutDetails, CheckoutSummary, PreOrderCheckoutDetails } from '@ancon/wildcat-types';
2
+ /**
3
+ * The total the customer pays: the checkout total, the minimum order
4
+ * difference (Delivery orders only) and the tip.
5
+ */
6
+ export default function getCheckoutGrandTotalAmount(checkout: CheckoutDetails | CheckoutSummary | PreOrderCheckoutDetails, tipAmount?: number | null): Amount;
@@ -1 +1 @@
1
- "use strict";function a(t,m){var u,r,e;const n=((u=t.minimumOrderDifferenceAmount)==null?void 0:u.amount)??0,o=((r=t.totalAmount)==null?void 0:r.amount)??0;return{amount:(n>0?o+n:o)+(m??0),currency:(e=t.totalAmount)==null?void 0:e.currency}}module.exports=a;
1
+ "use strict";const c=require("./getCheckoutMinimumOrderDifferenceAmount.js");require("@ancon/wildcat-types");function m(t,o){var n,e;const r=((n=t.totalAmount)==null?void 0:n.amount)??0,{amount:u}=c(t);return{amount:r+u+(o??0),currency:(e=t.totalAmount)==null?void 0:e.currency}}module.exports=m;
@@ -1,11 +1,13 @@
1
- function c(t, r) {
2
- var u, e, m;
3
- const n = ((u = t.minimumOrderDifferenceAmount) == null ? void 0 : u.amount) ?? 0, o = ((e = t.totalAmount) == null ? void 0 : e.amount) ?? 0;
1
+ import m from "./getCheckoutMinimumOrderDifferenceAmount.mjs";
2
+ import "@ancon/wildcat-types";
3
+ function f(t, r) {
4
+ var n, o;
5
+ const e = ((n = t.totalAmount) == null ? void 0 : n.amount) ?? 0, { amount: u } = m(t);
4
6
  return {
5
- amount: (n > 0 ? o + n : o) + (r ?? 0),
6
- currency: (m = t.totalAmount) == null ? void 0 : m.currency
7
+ amount: e + u + (r ?? 0),
8
+ currency: (o = t.totalAmount) == null ? void 0 : o.currency
7
9
  };
8
10
  }
9
11
  export {
10
- c as default
12
+ f as default
11
13
  };
@@ -0,0 +1,7 @@
1
+ import { Amount, CheckoutDetails, CheckoutSummary, PreOrderCheckoutDetails } from '@ancon/wildcat-types';
2
+ /**
3
+ * The amount a checkout is topped up with to reach the outlet's minimum order
4
+ * amount. Outlets can only set a minimum order amount for delivery, so it is
5
+ * 0 for every other order format, and when the order is already above it.
6
+ */
7
+ export default function getCheckoutMinimumOrderDifferenceAmount(checkout: CheckoutDetails | CheckoutSummary | PreOrderCheckoutDetails): Amount;
@@ -0,0 +1 @@
1
+ "use strict";const u=require("@ancon/wildcat-types");function o(r){var e,n,t;const m=r.orderFormat===u.OrderFormat.Delivery,i=((e=r.minimumOrderDifferenceAmount)==null?void 0:e.amount)??0;return{amount:m?Math.max(0,i):0,currency:((n=r.minimumOrderDifferenceAmount)==null?void 0:n.currency)??((t=r.totalAmount)==null?void 0:t.currency)}}module.exports=o;
@@ -0,0 +1,12 @@
1
+ import { OrderFormat as o } from "@ancon/wildcat-types";
2
+ function f(r) {
3
+ var e, n, m;
4
+ const t = r.orderFormat === o.Delivery, i = ((e = r.minimumOrderDifferenceAmount) == null ? void 0 : e.amount) ?? 0;
5
+ return {
6
+ amount: t ? Math.max(0, i) : 0,
7
+ currency: ((n = r.minimumOrderDifferenceAmount) == null ? void 0 : n.currency) ?? ((m = r.totalAmount) == null ? void 0 : m.currency)
8
+ };
9
+ }
10
+ export {
11
+ f as default
12
+ };
@@ -5,6 +5,8 @@ import getCheckoutItemsMappedByTicketItemStatus from './getCheckoutItemsMappedBy
5
5
  import isCheckoutOrderSummary from './isCheckoutOrderSummary';
6
6
  import buildCheckoutRequestItem from './buildCheckoutRequestItem';
7
7
  import getCheckoutGrandTotalAmount from './getCheckoutGrandTotalAmount';
8
+ import getCheckoutAdyenAmount from './getCheckoutAdyenAmount';
9
+ import getCheckoutMinimumOrderDifferenceAmount from './getCheckoutMinimumOrderDifferenceAmount';
8
10
  import getCheckoutRequestItemFromCheckoutItem from './getCheckoutRequestItemFromCheckoutItem';
9
11
  import isCheckoutItemsAreEqual from './isCheckoutItemsAreEqual';
10
12
  import checkoutHasWallet from './checkoutHasWallet';
@@ -27,4 +29,4 @@ import isGiftCardCheckoutItem from './isGiftCardCheckoutItem';
27
29
  import getCheckoutGiftCardMetaData from './getCheckoutGiftCardMetaData';
28
30
  import getCheckoutGiftCardRecipientsMetaData from './getCheckoutGiftCardRecipientsMetaData';
29
31
  import getCheckoutGuestGroupsMetaData from './getCheckoutGuestGroupsMetaData';
30
- export { TranslationKey, getCheckoutGroupedModifications, getCheckoutProductName, getCheckoutOrderStatusTexts, getCheckoutItemsMappedByTicketItemStatus, isCheckoutOrderSummary, buildCheckoutRequestItem, getCheckoutGrandTotalAmount, getCheckoutRequestItemFromCheckoutItem, isCheckoutItemsAreEqual, checkoutHasWallet, getWalletMetaFromCheckout, isPreOrderCheckout, isPreOrderServiceTime, isUpdatingCheckoutAllowed, isCheckoutAlreadyPaidStatus, CheckoutPaymentErrorTranslationKey, getCheckoutPaymentErrorTranslationTexts, isDeletingCheckoutAllowed, getTotalCheckoutItemsQuantity, getCheckoutPenguinLockersMetaData, getUniqueCheckoutPenguinDeliveryCodes, isWoltDeliveryInProgress, isWalletTopUpCheckoutItem, isWalletTopUpCheckout, getCheckoutWalletTopUpMetaData, isGiftCardCheckoutItem, isGiftCardCheckout, getCheckoutGiftCardMetaData, getCheckoutGiftCardRecipientsMetaData, getCheckoutGuestGroupsMetaData, };
32
+ export { TranslationKey, getCheckoutGroupedModifications, getCheckoutProductName, getCheckoutOrderStatusTexts, getCheckoutItemsMappedByTicketItemStatus, isCheckoutOrderSummary, buildCheckoutRequestItem, getCheckoutGrandTotalAmount, getCheckoutAdyenAmount, getCheckoutMinimumOrderDifferenceAmount, getCheckoutRequestItemFromCheckoutItem, isCheckoutItemsAreEqual, checkoutHasWallet, getWalletMetaFromCheckout, isPreOrderCheckout, isPreOrderServiceTime, isUpdatingCheckoutAllowed, isCheckoutAlreadyPaidStatus, CheckoutPaymentErrorTranslationKey, getCheckoutPaymentErrorTranslationTexts, isDeletingCheckoutAllowed, getTotalCheckoutItemsQuantity, getCheckoutPenguinLockersMetaData, getUniqueCheckoutPenguinDeliveryCodes, isWoltDeliveryInProgress, isWalletTopUpCheckoutItem, isWalletTopUpCheckout, getCheckoutWalletTopUpMetaData, isGiftCardCheckoutItem, isGiftCardCheckout, getCheckoutGiftCardMetaData, getCheckoutGiftCardRecipientsMetaData, getCheckoutGuestGroupsMetaData, };
package/checkout/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./getCheckoutItemModifications.js"),r=require("./getCheckoutProductName.js"),e=require("./getCheckoutOrderStatusTexts.js"),o=require("./getCheckoutItemsMappedByTicketItemStatus.js"),c=require("./isCheckoutOrderSummary.js"),i=require("./buildCheckoutRequestItem.js"),a=require("./getCheckoutGrandTotalAmount.js"),s=require("./getCheckoutRequestItemFromCheckoutItem.js"),k=require("./isCheckoutItemsAreEqual.js"),h=require("./checkoutHasWallet.js"),n=require("./getWalletMetaFromCheckout.js"),C=require("./isPreOrderServiceTime.js"),l=require("./isPreOrderCheckout.js"),q=require("./isUpdatingCheckoutAllowed.js"),d=require("./isCheckoutAlreadyPaidStatus.js"),t=require("./getCheckoutPaymentErrorTranslationTexts.js"),g=require("./isDeletingCheckoutAllowed.js"),m=require("./getTotalCheckoutItemsQuantity.js"),_=require("./getCheckoutPenguinLockersMetaData.js"),T=require("./getUniqueCheckoutPenguinDeliveryCodes.js"),p=require("./isWoltDeliveryInProgress.js"),y=require("./isWalletTopUpCheckoutItem.js"),I=require("./isWalletTopUpCheckout.js"),P=require("./getCheckoutWalletTopUpMetaData.js"),M=require("./isGiftCardCheckout.js"),D=require("./isGiftCardCheckoutItem.js"),G=require("./getCheckoutGiftCardMetaData.js"),f=require("./getCheckoutGiftCardRecipientsMetaData.js"),S=require("./getCheckoutGuestGroupsMetaData.js");require("@ancon/wildcat-types");require("../currency/getFormattedCurrency.js");require("../currency/placeCurrencySymbol.js");require("../currency/getFormattedCurrencyPostfix.js");require("../order/getCheckOrderItemsMappedByTicketItemStatus.js");require("../order/getCheckOrderMinimumStatusTicketItem.js");require("../toString-b771abdf.js");require("../isObjectLike-963267e9.js");require("../_baseIteratee-374c60ca.js");require("../_getTag-3d3032da.js");require("../isObject-361bd834.js");require("../_baseIsEqual-7e335f42.js");require("../identity-58f9497d.js");require("../order/getMultiProductSubProductsTicketItems.js");require("axios");require("../error/isSerializedAPIError.js");exports.getCheckoutGroupedModifications=u.default;exports.getCheckoutProductName=r;exports.TranslationKey=e.TranslationKey;exports.getCheckoutOrderStatusTexts=e.default;exports.getCheckoutItemsMappedByTicketItemStatus=o;exports.isCheckoutOrderSummary=c;exports.buildCheckoutRequestItem=i;exports.getCheckoutGrandTotalAmount=a;exports.getCheckoutRequestItemFromCheckoutItem=s;exports.isCheckoutItemsAreEqual=k;exports.checkoutHasWallet=h;exports.getWalletMetaFromCheckout=n;exports.isPreOrderServiceTime=C;exports.isPreOrderCheckout=l;exports.isUpdatingCheckoutAllowed=q;exports.isCheckoutAlreadyPaidStatus=d;exports.CheckoutPaymentErrorTranslationKey=t.CheckoutPaymentErrorTranslationKey;exports.getCheckoutPaymentErrorTranslationTexts=t.default;exports.isDeletingCheckoutAllowed=g;exports.getTotalCheckoutItemsQuantity=m;exports.getCheckoutPenguinLockersMetaData=_;exports.getUniqueCheckoutPenguinDeliveryCodes=T;exports.isWoltDeliveryInProgress=p;exports.isWalletTopUpCheckoutItem=y;exports.isWalletTopUpCheckout=I;exports.getCheckoutWalletTopUpMetaData=P;exports.isGiftCardCheckout=M;exports.isGiftCardCheckoutItem=D;exports.getCheckoutGiftCardMetaData=G;exports.getCheckoutGiftCardRecipientsMetaData=f;exports.getCheckoutGuestGroupsMetaData=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./getCheckoutItemModifications.js"),o=require("./getCheckoutProductName.js"),e=require("./getCheckoutOrderStatusTexts.js"),r=require("./getCheckoutItemsMappedByTicketItemStatus.js"),c=require("./isCheckoutOrderSummary.js"),i=require("./buildCheckoutRequestItem.js"),a=require("./getCheckoutGrandTotalAmount.js"),s=require("./getCheckoutAdyenAmount.js"),k=require("./getCheckoutMinimumOrderDifferenceAmount.js"),h=require("./getCheckoutRequestItemFromCheckoutItem.js"),n=require("./isCheckoutItemsAreEqual.js"),C=require("./checkoutHasWallet.js"),l=require("./getWalletMetaFromCheckout.js"),q=require("./isPreOrderServiceTime.js"),d=require("./isPreOrderCheckout.js"),g=require("./isUpdatingCheckoutAllowed.js"),m=require("./isCheckoutAlreadyPaidStatus.js"),t=require("./getCheckoutPaymentErrorTranslationTexts.js"),_=require("./isDeletingCheckoutAllowed.js"),T=require("./getTotalCheckoutItemsQuantity.js"),p=require("./getCheckoutPenguinLockersMetaData.js"),y=require("./getUniqueCheckoutPenguinDeliveryCodes.js"),I=require("./isWoltDeliveryInProgress.js"),M=require("./isWalletTopUpCheckoutItem.js"),P=require("./isWalletTopUpCheckout.js"),f=require("./getCheckoutWalletTopUpMetaData.js"),D=require("./isGiftCardCheckout.js"),A=require("./isGiftCardCheckoutItem.js"),G=require("./getCheckoutGiftCardMetaData.js"),S=require("./getCheckoutGiftCardRecipientsMetaData.js"),W=require("./getCheckoutGuestGroupsMetaData.js");require("@ancon/wildcat-types");require("../currency/getFormattedCurrency.js");require("../currency/placeCurrencySymbol.js");require("../currency/getFormattedCurrencyPostfix.js");require("../order/getCheckOrderItemsMappedByTicketItemStatus.js");require("../order/getCheckOrderMinimumStatusTicketItem.js");require("../toString-b771abdf.js");require("../isObjectLike-963267e9.js");require("../_baseIteratee-374c60ca.js");require("../_getTag-3d3032da.js");require("../isObject-361bd834.js");require("../_baseIsEqual-7e335f42.js");require("../identity-58f9497d.js");require("../order/getMultiProductSubProductsTicketItems.js");require("axios");require("../error/isSerializedAPIError.js");exports.getCheckoutGroupedModifications=u.default;exports.getCheckoutProductName=o;exports.TranslationKey=e.TranslationKey;exports.getCheckoutOrderStatusTexts=e.default;exports.getCheckoutItemsMappedByTicketItemStatus=r;exports.isCheckoutOrderSummary=c;exports.buildCheckoutRequestItem=i;exports.getCheckoutGrandTotalAmount=a;exports.getCheckoutAdyenAmount=s;exports.getCheckoutMinimumOrderDifferenceAmount=k;exports.getCheckoutRequestItemFromCheckoutItem=h;exports.isCheckoutItemsAreEqual=n;exports.checkoutHasWallet=C;exports.getWalletMetaFromCheckout=l;exports.isPreOrderServiceTime=q;exports.isPreOrderCheckout=d;exports.isUpdatingCheckoutAllowed=g;exports.isCheckoutAlreadyPaidStatus=m;exports.CheckoutPaymentErrorTranslationKey=t.CheckoutPaymentErrorTranslationKey;exports.getCheckoutPaymentErrorTranslationTexts=t.default;exports.isDeletingCheckoutAllowed=_;exports.getTotalCheckoutItemsQuantity=T;exports.getCheckoutPenguinLockersMetaData=p;exports.getUniqueCheckoutPenguinDeliveryCodes=y;exports.isWoltDeliveryInProgress=I;exports.isWalletTopUpCheckoutItem=M;exports.isWalletTopUpCheckout=P;exports.getCheckoutWalletTopUpMetaData=f;exports.isGiftCardCheckout=D;exports.isGiftCardCheckoutItem=A;exports.getCheckoutGiftCardMetaData=G;exports.getCheckoutGiftCardRecipientsMetaData=S;exports.getCheckoutGuestGroupsMetaData=W;
@@ -1,32 +1,34 @@
1
1
  import { default as n } from "./getCheckoutItemModifications.mjs";
2
2
  import { default as T } from "./getCheckoutProductName.mjs";
3
- import { TranslationKey as I, default as P } from "./getCheckoutOrderStatusTexts.mjs";
4
- import { default as G } from "./getCheckoutItemsMappedByTicketItemStatus.mjs";
5
- import { default as W } from "./isCheckoutOrderSummary.mjs";
6
- import { default as S } from "./buildCheckoutRequestItem.mjs";
7
- import { default as q } from "./getCheckoutGrandTotalAmount.mjs";
8
- import { default as v } from "./getCheckoutRequestItemFromCheckoutItem.mjs";
9
- import { default as R } from "./isCheckoutItemsAreEqual.mjs";
10
- import { default as F } from "./checkoutHasWallet.mjs";
11
- import { default as b } from "./getWalletMetaFromCheckout.mjs";
12
- import { default as H } from "./isPreOrderServiceTime.mjs";
13
- import { default as N } from "./isPreOrderCheckout.mjs";
14
- import { default as j } from "./isUpdatingCheckoutAllowed.mjs";
15
- import { default as J } from "./isCheckoutAlreadyPaidStatus.mjs";
16
- import { CheckoutPaymentErrorTranslationKey as X, default as Y } from "./getCheckoutPaymentErrorTranslationTexts.mjs";
17
- import { default as _ } from "./isDeletingCheckoutAllowed.mjs";
18
- import { default as tt } from "./getTotalCheckoutItemsQuantity.mjs";
19
- import { default as ot } from "./getCheckoutPenguinLockersMetaData.mjs";
20
- import { default as at } from "./getUniqueCheckoutPenguinDeliveryCodes.mjs";
21
- import { default as ft } from "./isWoltDeliveryInProgress.mjs";
22
- import { default as st } from "./isWalletTopUpCheckoutItem.mjs";
23
- import { default as lt } from "./isWalletTopUpCheckout.mjs";
24
- import { default as dt } from "./getCheckoutWalletTopUpMetaData.mjs";
25
- import { default as Ct } from "./isGiftCardCheckout.mjs";
26
- import { default as xt } from "./isGiftCardCheckoutItem.mjs";
27
- import { default as nt } from "./getCheckoutGiftCardMetaData.mjs";
28
- import { default as Tt } from "./getCheckoutGiftCardRecipientsMetaData.mjs";
29
- import { default as It } from "./getCheckoutGuestGroupsMetaData.mjs";
3
+ import { TranslationKey as I, default as D } from "./getCheckoutOrderStatusTexts.mjs";
4
+ import { default as P } from "./getCheckoutItemsMappedByTicketItemStatus.mjs";
5
+ import { default as G } from "./isCheckoutOrderSummary.mjs";
6
+ import { default as O } from "./buildCheckoutRequestItem.mjs";
7
+ import { default as U } from "./getCheckoutGrandTotalAmount.mjs";
8
+ import { default as v } from "./getCheckoutAdyenAmount.mjs";
9
+ import { default as R } from "./getCheckoutMinimumOrderDifferenceAmount.mjs";
10
+ import { default as F } from "./getCheckoutRequestItemFromCheckoutItem.mjs";
11
+ import { default as b } from "./isCheckoutItemsAreEqual.mjs";
12
+ import { default as H } from "./checkoutHasWallet.mjs";
13
+ import { default as N } from "./getWalletMetaFromCheckout.mjs";
14
+ import { default as j } from "./isPreOrderServiceTime.mjs";
15
+ import { default as J } from "./isPreOrderCheckout.mjs";
16
+ import { default as X } from "./isUpdatingCheckoutAllowed.mjs";
17
+ import { default as Z } from "./isCheckoutAlreadyPaidStatus.mjs";
18
+ import { CheckoutPaymentErrorTranslationKey as $, default as tt } from "./getCheckoutPaymentErrorTranslationTexts.mjs";
19
+ import { default as ot } from "./isDeletingCheckoutAllowed.mjs";
20
+ import { default as at } from "./getTotalCheckoutItemsQuantity.mjs";
21
+ import { default as ft } from "./getCheckoutPenguinLockersMetaData.mjs";
22
+ import { default as st } from "./getUniqueCheckoutPenguinDeliveryCodes.mjs";
23
+ import { default as lt } from "./isWoltDeliveryInProgress.mjs";
24
+ import { default as dt } from "./isWalletTopUpCheckoutItem.mjs";
25
+ import { default as Ct } from "./isWalletTopUpCheckout.mjs";
26
+ import { default as xt } from "./getCheckoutWalletTopUpMetaData.mjs";
27
+ import { default as nt } from "./isGiftCardCheckout.mjs";
28
+ import { default as Tt } from "./isGiftCardCheckoutItem.mjs";
29
+ import { default as It } from "./getCheckoutGiftCardMetaData.mjs";
30
+ import { default as Mt } from "./getCheckoutGiftCardRecipientsMetaData.mjs";
31
+ import { default as At } from "./getCheckoutGuestGroupsMetaData.mjs";
30
32
  import "@ancon/wildcat-types";
31
33
  import "../currency/getFormattedCurrency.mjs";
32
34
  import "../currency/placeCurrencySymbol.mjs";
@@ -44,35 +46,37 @@ import "../order/getMultiProductSubProductsTicketItems.mjs";
44
46
  import "axios";
45
47
  import "../error/isSerializedAPIError.mjs";
46
48
  export {
47
- X as CheckoutPaymentErrorTranslationKey,
49
+ $ as CheckoutPaymentErrorTranslationKey,
48
50
  I as TranslationKey,
49
- S as buildCheckoutRequestItem,
50
- F as checkoutHasWallet,
51
- nt as getCheckoutGiftCardMetaData,
52
- Tt as getCheckoutGiftCardRecipientsMetaData,
53
- q as getCheckoutGrandTotalAmount,
51
+ O as buildCheckoutRequestItem,
52
+ H as checkoutHasWallet,
53
+ v as getCheckoutAdyenAmount,
54
+ It as getCheckoutGiftCardMetaData,
55
+ Mt as getCheckoutGiftCardRecipientsMetaData,
56
+ U as getCheckoutGrandTotalAmount,
54
57
  n as getCheckoutGroupedModifications,
55
- It as getCheckoutGuestGroupsMetaData,
56
- G as getCheckoutItemsMappedByTicketItemStatus,
57
- P as getCheckoutOrderStatusTexts,
58
- Y as getCheckoutPaymentErrorTranslationTexts,
59
- ot as getCheckoutPenguinLockersMetaData,
58
+ At as getCheckoutGuestGroupsMetaData,
59
+ P as getCheckoutItemsMappedByTicketItemStatus,
60
+ R as getCheckoutMinimumOrderDifferenceAmount,
61
+ D as getCheckoutOrderStatusTexts,
62
+ tt as getCheckoutPaymentErrorTranslationTexts,
63
+ ft as getCheckoutPenguinLockersMetaData,
60
64
  T as getCheckoutProductName,
61
- v as getCheckoutRequestItemFromCheckoutItem,
62
- dt as getCheckoutWalletTopUpMetaData,
63
- tt as getTotalCheckoutItemsQuantity,
64
- at as getUniqueCheckoutPenguinDeliveryCodes,
65
- b as getWalletMetaFromCheckout,
66
- J as isCheckoutAlreadyPaidStatus,
67
- R as isCheckoutItemsAreEqual,
68
- W as isCheckoutOrderSummary,
69
- _ as isDeletingCheckoutAllowed,
70
- Ct as isGiftCardCheckout,
71
- xt as isGiftCardCheckoutItem,
72
- N as isPreOrderCheckout,
73
- H as isPreOrderServiceTime,
74
- j as isUpdatingCheckoutAllowed,
75
- lt as isWalletTopUpCheckout,
76
- st as isWalletTopUpCheckoutItem,
77
- ft as isWoltDeliveryInProgress
65
+ F as getCheckoutRequestItemFromCheckoutItem,
66
+ xt as getCheckoutWalletTopUpMetaData,
67
+ at as getTotalCheckoutItemsQuantity,
68
+ st as getUniqueCheckoutPenguinDeliveryCodes,
69
+ N as getWalletMetaFromCheckout,
70
+ Z as isCheckoutAlreadyPaidStatus,
71
+ b as isCheckoutItemsAreEqual,
72
+ G as isCheckoutOrderSummary,
73
+ ot as isDeletingCheckoutAllowed,
74
+ nt as isGiftCardCheckout,
75
+ Tt as isGiftCardCheckoutItem,
76
+ J as isPreOrderCheckout,
77
+ j as isPreOrderServiceTime,
78
+ X as isUpdatingCheckoutAllowed,
79
+ Ct as isWalletTopUpCheckout,
80
+ dt as isWalletTopUpCheckoutItem,
81
+ lt as isWoltDeliveryInProgress
78
82
  };
@@ -29,3 +29,8 @@ export declare type CheckoutRequestItem = {
29
29
  itemType?: CheckoutItemType;
30
30
  };
31
31
  export declare type CheckoutItemComparisonCandidate = Pick<CheckoutRequestItem, 'variantId' | 'modifications' | 'addOnProducts' | 'upsellGroupId'>;
32
+ /** An amount in minor units, the shape Adyen takes */
33
+ export declare type CheckoutAdyenAmount = {
34
+ value: number;
35
+ currency: string;
36
+ };