@afosto/checkout-ui 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CheckoutProvider/CheckoutProvider.d.ts.map +1 -1
- package/dist/CheckoutProvider/CheckoutProvider.js +53 -50
- package/dist/CheckoutSummary/CheckoutSummary.d.ts +5 -1
- package/dist/CheckoutSummary/CheckoutSummary.d.ts.map +1 -1
- package/dist/CheckoutSummary/CheckoutSummary.js +90 -68
- package/dist/CheckoutSummary/components/CheckoutSummaryCouponField/CheckoutSummaryCouponField.d.ts +11 -0
- package/dist/CheckoutSummary/components/CheckoutSummaryCouponField/CheckoutSummaryCouponField.d.ts.map +1 -0
- package/dist/CheckoutSummary/components/CheckoutSummaryCouponField/CheckoutSummaryCouponField.js +71 -0
- package/dist/CheckoutSummary/components/CheckoutSummaryCouponField/index.d.ts +3 -0
- package/dist/CheckoutSummary/components/CheckoutSummaryCouponField/index.d.ts.map +1 -0
- package/dist/CheckoutSummary/components/CheckoutSummaryCouponField/index.js +4 -0
- package/dist/CheckoutSummary/components/CheckoutSummaryCoupons/CheckoutSummaryCoupons.d.ts +1 -0
- package/dist/CheckoutSummary/components/CheckoutSummaryCoupons/CheckoutSummaryCoupons.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryCoupons/CheckoutSummaryCoupons.js +33 -7
- package/dist/CheckoutSummary/index.d.ts +2 -0
- package/dist/CheckoutSummary/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/index.js +26 -24
- package/dist/constants/paymentMethodIconMapping.d.ts +3 -0
- package/dist/constants/paymentMethodIconMapping.d.ts.map +1 -1
- package/dist/constants/paymentMethodIconMapping.js +52 -46
- package/dist/hooks/useCheckoutCart.d.ts +48 -10
- package/dist/hooks/useCheckoutCart.d.ts.map +1 -1
- package/dist/hooks/useCheckoutCart.js +117 -63
- package/dist/hooks/useCheckoutOrder.d.ts +48 -10
- package/dist/hooks/useCheckoutOrder.d.ts.map +1 -1
- package/dist/hooks/useCheckoutOrder.js +208 -154
- package/dist/icons/AngleRightSolid.d.ts +3 -0
- package/dist/icons/AngleRightSolid.d.ts.map +1 -0
- package/dist/icons/AngleRightSolid.js +6 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +150 -142
- package/dist/icons/paymentMethods/Belfius.d.ts +3 -0
- package/dist/icons/paymentMethods/Belfius.d.ts.map +1 -0
- package/dist/icons/paymentMethods/Belfius.js +17 -0
- package/dist/icons/paymentMethods/Giftcard.d.ts +3 -0
- package/dist/icons/paymentMethods/Giftcard.d.ts.map +1 -0
- package/dist/icons/paymentMethods/Giftcard.js +54 -0
- package/dist/icons/paymentMethods/Kbc.d.ts +3 -0
- package/dist/icons/paymentMethods/Kbc.d.ts.map +1 -0
- package/dist/icons/paymentMethods/Kbc.js +40 -0
- package/dist/icons/paymentMethods/index.d.ts +3 -0
- package/dist/icons/paymentMethods/index.d.ts.map +1 -1
- package/dist/icons/paymentMethods/index.js +102 -96
- package/dist/index.js +325 -309
- package/dist/mutations/addCouponToCart.d.ts +12 -0
- package/dist/mutations/addCouponToCart.d.ts.map +1 -0
- package/dist/mutations/addCouponToCart.js +15 -0
- package/dist/mutations/addCouponToOrder.d.ts +12 -0
- package/dist/mutations/addCouponToOrder.d.ts.map +1 -0
- package/dist/mutations/addCouponToOrder.js +15 -0
- package/dist/mutations/index.d.ts +26 -18
- package/dist/mutations/index.d.ts.map +1 -1
- package/dist/mutations/index.js +44 -36
- package/dist/mutations/removeCouponFromCart.d.ts +12 -0
- package/dist/mutations/removeCouponFromCart.d.ts.map +1 -0
- package/dist/mutations/removeCouponFromCart.js +15 -0
- package/dist/mutations/removeCouponFromOrder.d.ts +12 -0
- package/dist/mutations/removeCouponFromOrder.d.ts.map +1 -0
- package/dist/mutations/removeCouponFromOrder.js +15 -0
- package/dist/operations/cartOperations.d.ts +10 -0
- package/dist/operations/cartOperations.d.ts.map +1 -1
- package/dist/operations/cartOperations.js +218 -168
- package/dist/operations/orderOperations.d.ts +10 -0
- package/dist/operations/orderOperations.d.ts.map +1 -1
- package/dist/operations/orderOperations.js +245 -195
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/getAutocompletedAddress.d.ts.map +1 -1
- package/dist/utils/getAutocompletedAddress.js +5 -5
- package/package.json +2 -2
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import { CheckoutSummary as t } from "./CheckoutSummary.js";
|
|
2
2
|
import { CheckoutSummaryAdjustments as r } from "./components/CheckoutSummaryAdjustments/CheckoutSummaryAdjustments.js";
|
|
3
3
|
import { CheckoutSummaryAgreements as u } from "./components/CheckoutSummaryAgreements/CheckoutSummaryAgreements.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { CheckoutSummaryCouponField as p } from "./components/CheckoutSummaryCouponField/CheckoutSummaryCouponField.js";
|
|
5
|
+
import { CheckoutSummaryCoupons as S } from "./components/CheckoutSummaryCoupons/CheckoutSummaryCoupons.js";
|
|
6
|
+
import { CheckoutSummaryFees as h } from "./components/CheckoutSummaryFees/CheckoutSummaryFees.js";
|
|
7
|
+
import { CheckoutSummaryGroup as x } from "./components/CheckoutSummaryGroup/CheckoutSummaryGroup.js";
|
|
8
|
+
import { CheckoutSummaryItems as f } from "./components/CheckoutSummaryItems/CheckoutSummaryItems.js";
|
|
9
|
+
import { CheckoutSummaryPaymentFees as l } from "./components/CheckoutSummaryPaymentFees/CheckoutSummaryPaymentFees.js";
|
|
10
|
+
import { CheckoutSummaryRow as d } from "./components/CheckoutSummaryRow/CheckoutSummaryRow.js";
|
|
10
11
|
import { CheckoutSummaryShippingFees as T } from "./components/CheckoutSummaryShippingFees/CheckoutSummaryShippingFees.js";
|
|
11
|
-
import { CheckoutSummarySubtotal as
|
|
12
|
-
import { CheckoutSummaryTitle as
|
|
13
|
-
import { CheckoutSummaryTotal as
|
|
14
|
-
import { CheckoutSummaryTotalBreakdown as
|
|
15
|
-
import { CheckoutSummaryTotalExcludingVat as
|
|
16
|
-
import { CheckoutSummaryVat as
|
|
12
|
+
import { CheckoutSummarySubtotal as w } from "./components/CheckoutSummarySubtotal/CheckoutSummarySubtotal.js";
|
|
13
|
+
import { CheckoutSummaryTitle as V } from "./components/CheckoutSummaryTitle/CheckoutSummaryTitle.js";
|
|
14
|
+
import { CheckoutSummaryTotal as j } from "./components/CheckoutSummaryTotal/CheckoutSummaryTotal.js";
|
|
15
|
+
import { CheckoutSummaryTotalBreakdown as E } from "./components/CheckoutSummaryTotalBreakdown/CheckoutSummaryTotalBreakdown.js";
|
|
16
|
+
import { CheckoutSummaryTotalExcludingVat as I } from "./components/CheckoutSummaryTotalExcludingVat/CheckoutSummaryTotalExcludingVat.js";
|
|
17
|
+
import { CheckoutSummaryVat as R } from "./components/CheckoutSummaryVat/CheckoutSummaryVat.js";
|
|
17
18
|
export {
|
|
18
19
|
r as Adjustments,
|
|
19
20
|
u as Agreements,
|
|
20
21
|
t as CheckoutSummary,
|
|
21
|
-
p as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
f as
|
|
26
|
-
l as
|
|
22
|
+
p as CouponField,
|
|
23
|
+
S as Coupons,
|
|
24
|
+
h as Fees,
|
|
25
|
+
x as Group,
|
|
26
|
+
f as Items,
|
|
27
|
+
l as PaymentFees,
|
|
28
|
+
d as Row,
|
|
27
29
|
T as ShippingFees,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
w as Subtotal,
|
|
31
|
+
V as Title,
|
|
32
|
+
j as Total,
|
|
33
|
+
E as TotalBreakdown,
|
|
34
|
+
I as TotalExcludingVat,
|
|
35
|
+
R as Vat
|
|
34
36
|
};
|
|
@@ -3,6 +3,8 @@ export declare const CHECKOUT_PAYMENT_METHOD_ICON_MAPPING: {
|
|
|
3
3
|
card: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
4
|
bacsDirectDebit: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
5
|
bankTransfer: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
belfius: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
kbc: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
8
|
onAccount: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
9
|
cod: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
10
|
spraypay: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -11,6 +13,7 @@ export declare const CHECKOUT_PAYMENT_METHOD_ICON_MAPPING: {
|
|
|
11
13
|
paypal: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
14
|
mistercashBancontact: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
15
|
paysafecard: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
giftCard: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
17
|
giropay: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
18
|
postepay: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
19
|
carteBleue: (props: import('@afosto/components').SvgIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentMethodIconMapping.d.ts","sourceRoot":"","sources":["../../src/constants/paymentMethodIconMapping.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paymentMethodIconMapping.d.ts","sourceRoot":"","sources":["../../src/constants/paymentMethodIconMapping.ts"],"names":[],"mappings":"AA6CA,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDhD,CAAC"}
|
|
@@ -3,57 +3,63 @@ import { Ideal as m } from "../icons/paymentMethods/Ideal.js";
|
|
|
3
3
|
import { CreditCard as i } from "../icons/paymentMethods/CreditCard.js";
|
|
4
4
|
import { BankTransfer as t } from "../icons/paymentMethods/BankTransfer.js";
|
|
5
5
|
import { OnAccount as p } from "../icons/paymentMethods/OnAccount.js";
|
|
6
|
-
import { CashOnDelivery as
|
|
7
|
-
import { Spraypay as
|
|
6
|
+
import { CashOnDelivery as f } from "../icons/paymentMethods/CashOnDelivery.js";
|
|
7
|
+
import { Spraypay as e } from "../icons/paymentMethods/Spraypay.js";
|
|
8
8
|
import { Klarna as r } from "../icons/paymentMethods/Klarna.js";
|
|
9
9
|
import { PayPal as o } from "../icons/paymentMethods/PayPal.js";
|
|
10
10
|
import { Bancontact as n } from "../icons/paymentMethods/Bancontact.js";
|
|
11
11
|
import { Paysafe as l } from "../icons/paymentMethods/Paysafe.js";
|
|
12
|
-
import { Giropay as
|
|
13
|
-
import { Postepay as
|
|
12
|
+
import { Giropay as c } from "../icons/paymentMethods/Giropay.js";
|
|
13
|
+
import { Postepay as y } from "../icons/paymentMethods/Postepay.js";
|
|
14
14
|
import { CarteBleue as s } from "../icons/paymentMethods/CarteBleue.js";
|
|
15
15
|
import { Afterpay as u } from "../icons/paymentMethods/Afterpay.js";
|
|
16
16
|
import { WebshopGiftcard as d } from "../icons/paymentMethods/WebshopGiftcard.js";
|
|
17
17
|
import { Fashioncheque as C } from "../icons/paymentMethods/Fashioncheque.js";
|
|
18
18
|
import { PodiumCadeaukaart as P } from "../icons/paymentMethods/PodiumCadeaukaart.js";
|
|
19
19
|
import { YourGift as k } from "../icons/paymentMethods/YourGift.js";
|
|
20
|
+
import { Giftcard as b } from "../icons/paymentMethods/Giftcard.js";
|
|
20
21
|
import { GivaCard as h } from "../icons/paymentMethods/GivaCard.js";
|
|
21
|
-
import { VVVCadeaukaart as
|
|
22
|
-
import { WeChat as
|
|
23
|
-
import { Alipay as
|
|
24
|
-
import { Payconiq as
|
|
25
|
-
import { Multibanco as
|
|
26
|
-
import { EPSUberweisung as
|
|
27
|
-
import { Przelewy24 as
|
|
28
|
-
import { Billink as
|
|
29
|
-
import { In3 as
|
|
30
|
-
import { Interac as
|
|
31
|
-
import { Cash as
|
|
32
|
-
import { ManualGiftCard as
|
|
33
|
-
import { ManualCard as
|
|
34
|
-
import { Pin as
|
|
35
|
-
import { ApplePay as
|
|
36
|
-
import { GooglePay as
|
|
37
|
-
import { Bank as
|
|
38
|
-
import { Riverty as
|
|
22
|
+
import { VVVCadeaukaart as B } from "../icons/paymentMethods/VVVCadeaukaart.js";
|
|
23
|
+
import { WeChat as g } from "../icons/paymentMethods/WeChat.js";
|
|
24
|
+
import { Alipay as w } from "../icons/paymentMethods/Alipay.js";
|
|
25
|
+
import { Payconiq as v } from "../icons/paymentMethods/Payconiq.js";
|
|
26
|
+
import { Multibanco as G } from "../icons/paymentMethods/Multibanco.js";
|
|
27
|
+
import { EPSUberweisung as A } from "../icons/paymentMethods/EPSUberweisung.js";
|
|
28
|
+
import { Przelewy24 as T } from "../icons/paymentMethods/Przelewy24.js";
|
|
29
|
+
import { Billink as M } from "../icons/paymentMethods/Billink.js";
|
|
30
|
+
import { In3 as O } from "../icons/paymentMethods/In3.js";
|
|
31
|
+
import { Interac as E } from "../icons/paymentMethods/Interac.js";
|
|
32
|
+
import { Cash as I } from "../icons/paymentMethods/Cash.js";
|
|
33
|
+
import { ManualGiftCard as q } from "../icons/paymentMethods/ManualGiftCard.js";
|
|
34
|
+
import { ManualCard as D } from "../icons/paymentMethods/ManualCard.js";
|
|
35
|
+
import { Pin as N } from "../icons/paymentMethods/Pin.js";
|
|
36
|
+
import { ApplePay as W } from "../icons/paymentMethods/ApplePay.js";
|
|
37
|
+
import { GooglePay as _ } from "../icons/paymentMethods/GooglePay.js";
|
|
38
|
+
import { Bank as z } from "../icons/paymentMethods/Bank.js";
|
|
39
|
+
import { Riverty as K } from "../icons/paymentMethods/Riverty.js";
|
|
39
40
|
import { Twint as U } from "../icons/paymentMethods/Twint.js";
|
|
40
41
|
import { Walley as V } from "../icons/paymentMethods/Walley.js";
|
|
41
42
|
import { Zip as x } from "../icons/paymentMethods/Zip.js";
|
|
42
|
-
|
|
43
|
+
import { Belfius as H } from "../icons/paymentMethods/Belfius.js";
|
|
44
|
+
import { Kbc as S } from "../icons/paymentMethods/Kbc.js";
|
|
45
|
+
const Nr = {
|
|
43
46
|
ideal: m,
|
|
44
47
|
card: i,
|
|
45
48
|
bacsDirectDebit: a,
|
|
46
49
|
bankTransfer: t,
|
|
50
|
+
belfius: H,
|
|
51
|
+
kbc: S,
|
|
47
52
|
onAccount: p,
|
|
48
|
-
cod:
|
|
49
|
-
spraypay:
|
|
53
|
+
cod: f,
|
|
54
|
+
spraypay: e,
|
|
50
55
|
sofort: r,
|
|
51
56
|
paypalExpress: o,
|
|
52
57
|
paypal: o,
|
|
53
58
|
mistercashBancontact: n,
|
|
54
59
|
paysafecard: l,
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
giftCard: b,
|
|
61
|
+
giropay: c,
|
|
62
|
+
postepay: y,
|
|
57
63
|
carteBleue: s,
|
|
58
64
|
afterpay: u,
|
|
59
65
|
webshopgiftcard: d,
|
|
@@ -61,31 +67,31 @@ const Mr = {
|
|
|
61
67
|
podiumcadeaukaart: P,
|
|
62
68
|
yourgift: k,
|
|
63
69
|
givacard: h,
|
|
64
|
-
vvvCadeaukaart:
|
|
65
|
-
wechatPay:
|
|
66
|
-
alipay:
|
|
67
|
-
payconiq:
|
|
68
|
-
multibanco:
|
|
69
|
-
epsUberweisung:
|
|
70
|
-
przelewy24:
|
|
71
|
-
billink:
|
|
70
|
+
vvvCadeaukaart: B,
|
|
71
|
+
wechatPay: g,
|
|
72
|
+
alipay: w,
|
|
73
|
+
payconiq: v,
|
|
74
|
+
multibanco: G,
|
|
75
|
+
epsUberweisung: A,
|
|
76
|
+
przelewy24: T,
|
|
77
|
+
billink: M,
|
|
72
78
|
klarna: r,
|
|
73
79
|
klarnaNow: r,
|
|
74
80
|
klarnaOverTime: r,
|
|
75
|
-
in3:
|
|
76
|
-
interac:
|
|
77
|
-
cash:
|
|
78
|
-
manualGiftCard:
|
|
79
|
-
manualCard:
|
|
80
|
-
pin:
|
|
81
|
-
applePay:
|
|
82
|
-
googleWallet:
|
|
83
|
-
payByBank:
|
|
84
|
-
riverty:
|
|
81
|
+
in3: O,
|
|
82
|
+
interac: E,
|
|
83
|
+
cash: I,
|
|
84
|
+
manualGiftCard: q,
|
|
85
|
+
manualCard: D,
|
|
86
|
+
pin: N,
|
|
87
|
+
applePay: W,
|
|
88
|
+
googleWallet: _,
|
|
89
|
+
payByBank: z,
|
|
90
|
+
riverty: K,
|
|
85
91
|
twint: U,
|
|
86
92
|
walley: V,
|
|
87
93
|
zip: x
|
|
88
94
|
};
|
|
89
95
|
export {
|
|
90
|
-
|
|
96
|
+
Nr as CHECKOUT_PAYMENT_METHOD_ICON_MAPPING
|
|
91
97
|
};
|
|
@@ -2,12 +2,14 @@ import { CheckoutSettings, CheckoutSteps, CheckoutCreateSummaryFn, DeepPartial,
|
|
|
2
2
|
import { CheckoutCartOperations } from '../operations/cartOperations';
|
|
3
3
|
import { CheckoutAuthOperations } from '../operations/authOperations';
|
|
4
4
|
import { AddInformationToCartParams } from '../mutations/addInformationToCart';
|
|
5
|
+
import { AddCouponToCartParams } from '../mutations/addCouponToCart';
|
|
5
6
|
import { AddCustomerToCartParams } from '../mutations/addCustomerToCart';
|
|
6
7
|
import { AddCustomerCountryCodeToCartParams } from '../mutations/addCustomerCountryCodeToCart';
|
|
7
8
|
import { AddNoteToCartParams } from '../mutations/addNoteToCart';
|
|
8
9
|
import { AddPaymentMethodToCartParams } from '../mutations/addPaymentMethodToCart';
|
|
9
10
|
import { AddPickupPointToCartParams } from '../mutations/addPickupPointToCart';
|
|
10
11
|
import { AddShippingMethodToCartParams } from '../mutations/addShippingMethodToCart';
|
|
12
|
+
import { RemoveCouponFromCartParams } from '../mutations/removeCouponFromCart';
|
|
11
13
|
import { SetAgreementTemplateForCartParams } from '../mutations/setAgreementTemplateForCart';
|
|
12
14
|
import { GetCartPickupPointsParams } from '../queries/getCartPickupPointsQuery';
|
|
13
15
|
import { GetCartShippingMethodsParams } from '../queries/getCartShippingMethodsQuery';
|
|
@@ -28,7 +30,25 @@ export interface UseCheckoutCartOptions {
|
|
|
28
30
|
operations: CheckoutAuthOperations & CheckoutCartOperations;
|
|
29
31
|
}
|
|
30
32
|
export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
31
|
-
|
|
33
|
+
addCoupon: ({ coupon, }: Omit<AddCouponToCartParams, "cartId">) => Promise<{
|
|
34
|
+
id: string;
|
|
35
|
+
acceptance: {
|
|
36
|
+
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
37
|
+
};
|
|
38
|
+
adjustments: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAdjustment[];
|
|
39
|
+
checkout: import('../fragments/CoreCartProjectionFields').CoreCartProjectionCheckout;
|
|
40
|
+
coupons: import('../fragments/CoreCartProjectionFields').CoreCartProjectionCoupon[];
|
|
41
|
+
items: import('../fragments/CoreCartProjectionFields').CoreCartProjectionItem[];
|
|
42
|
+
currency: string;
|
|
43
|
+
isIncludingVat: boolean;
|
|
44
|
+
isVatShifted: boolean;
|
|
45
|
+
subtotal: number;
|
|
46
|
+
total: number;
|
|
47
|
+
totalExcludingVat: number;
|
|
48
|
+
fees: import('../fragments/CoreCartProjectionFields').CoreCartProjectionFees;
|
|
49
|
+
vat: import('../fragments/CoreCartProjectionFields').CoreCartProjectionVat[];
|
|
50
|
+
}>;
|
|
51
|
+
addCustomer: ({ customer, }: Omit<AddCustomerToCartParams, "cartId">) => Promise<{
|
|
32
52
|
id: string;
|
|
33
53
|
acceptance: {
|
|
34
54
|
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
@@ -51,7 +71,7 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
51
71
|
countryCode: string;
|
|
52
72
|
};
|
|
53
73
|
}>;
|
|
54
|
-
addCustomerCountryCode: ({ countryCode }: Omit<AddCustomerCountryCodeToCartParams, "cartId">) => Promise<{
|
|
74
|
+
addCustomerCountryCode: ({ countryCode, }: Omit<AddCustomerCountryCodeToCartParams, "cartId">) => Promise<{
|
|
55
75
|
id: string;
|
|
56
76
|
acceptance: {
|
|
57
77
|
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
@@ -69,7 +89,7 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
69
89
|
fees: import('../fragments/CoreCartProjectionFields').CoreCartProjectionFees;
|
|
70
90
|
vat: import('../fragments/CoreCartProjectionFields').CoreCartProjectionVat[];
|
|
71
91
|
}>;
|
|
72
|
-
addExpressPaymentMethod: ({ methodId }: Omit<AddPaymentMethodToCartParams, "cartId">) => Promise<{
|
|
92
|
+
addExpressPaymentMethod: ({ methodId, }: Omit<AddPaymentMethodToCartParams, "cartId">) => Promise<{
|
|
73
93
|
id: string;
|
|
74
94
|
acceptance: {
|
|
75
95
|
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
@@ -106,7 +126,7 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
106
126
|
};
|
|
107
127
|
};
|
|
108
128
|
} | undefined>;
|
|
109
|
-
addInformation: ({ billingAddress, customer, phoneNumber, shippingAddress }: Omit<AddInformationToCartParams, "cartId">) => Promise<{
|
|
129
|
+
addInformation: ({ billingAddress, customer, phoneNumber, shippingAddress, }: Omit<AddInformationToCartParams, "cartId">) => Promise<{
|
|
110
130
|
id: string;
|
|
111
131
|
acceptance: {
|
|
112
132
|
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
@@ -156,7 +176,7 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
156
176
|
notes: string;
|
|
157
177
|
};
|
|
158
178
|
}>;
|
|
159
|
-
addPaymentMethod: ({ methodId, issuerId, terminalId }: Omit<AddPaymentMethodToCartParams, "cartId">) => Promise<{
|
|
179
|
+
addPaymentMethod: ({ methodId, issuerId, terminalId, }: Omit<AddPaymentMethodToCartParams, "cartId">) => Promise<{
|
|
160
180
|
id: string;
|
|
161
181
|
acceptance: {
|
|
162
182
|
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
@@ -193,7 +213,7 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
193
213
|
};
|
|
194
214
|
};
|
|
195
215
|
}>;
|
|
196
|
-
addPickupPoint: ({ pickupPointId }: Omit<AddPickupPointToCartParams, "cartId">) => Promise<{
|
|
216
|
+
addPickupPoint: ({ pickupPointId, }: Omit<AddPickupPointToCartParams, "cartId">) => Promise<{
|
|
197
217
|
id: string;
|
|
198
218
|
acceptance: {
|
|
199
219
|
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
@@ -221,7 +241,7 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
221
241
|
};
|
|
222
242
|
};
|
|
223
243
|
}>;
|
|
224
|
-
addShippingMethod: ({ methodId }: Omit<AddShippingMethodToCartParams, "cartId">) => Promise<{
|
|
244
|
+
addShippingMethod: ({ methodId, }: Omit<AddShippingMethodToCartParams, "cartId">) => Promise<{
|
|
225
245
|
id: string;
|
|
226
246
|
acceptance: {
|
|
227
247
|
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
@@ -268,7 +288,7 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
268
288
|
paymentMethods: import('..').CheckoutPaymentMethodOptionType[];
|
|
269
289
|
payments: never[];
|
|
270
290
|
}>;
|
|
271
|
-
getPickupPoints: ({ countryCode, postalCode }: Omit<GetCartPickupPointsParams, "id">) => Promise<{
|
|
291
|
+
getPickupPoints: ({ countryCode, postalCode, }: Omit<GetCartPickupPointsParams, "id">) => Promise<{
|
|
272
292
|
pickupPoints: import('..').CheckoutShippingMethodPickupPoint[];
|
|
273
293
|
}>;
|
|
274
294
|
getReviewCheckoutData: () => Promise<{
|
|
@@ -288,14 +308,32 @@ export declare const useCheckoutCart: (options: UseCheckoutCartOptions) => {
|
|
|
288
308
|
issuer: import('..').GetCartReviewCheckoutDataQueryResponse["cart"]["billing"]["payment"]["issuer"];
|
|
289
309
|
amountCovered: number;
|
|
290
310
|
}>;
|
|
291
|
-
getShippingMethods: ({ countryCode, postalCode }: Omit<GetCartShippingMethodsParams, "id">) => Promise<{
|
|
311
|
+
getShippingMethods: ({ countryCode, postalCode, }: Omit<GetCartShippingMethodsParams, "id">) => Promise<{
|
|
292
312
|
currentShippingMethod: {
|
|
293
313
|
id: string;
|
|
294
314
|
};
|
|
295
315
|
shippingMethods: import('..').CheckoutShippingMethodOptionType[];
|
|
296
316
|
}>;
|
|
297
317
|
isLoading: boolean;
|
|
298
|
-
|
|
318
|
+
removeCoupon: ({ coupon, }: Omit<RemoveCouponFromCartParams, "cartId">) => Promise<{
|
|
319
|
+
id: string;
|
|
320
|
+
acceptance: {
|
|
321
|
+
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
322
|
+
};
|
|
323
|
+
adjustments: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAdjustment[];
|
|
324
|
+
checkout: import('../fragments/CoreCartProjectionFields').CoreCartProjectionCheckout;
|
|
325
|
+
coupons: import('../fragments/CoreCartProjectionFields').CoreCartProjectionCoupon[];
|
|
326
|
+
items: import('../fragments/CoreCartProjectionFields').CoreCartProjectionItem[];
|
|
327
|
+
currency: string;
|
|
328
|
+
isIncludingVat: boolean;
|
|
329
|
+
isVatShifted: boolean;
|
|
330
|
+
subtotal: number;
|
|
331
|
+
total: number;
|
|
332
|
+
totalExcludingVat: number;
|
|
333
|
+
fees: import('../fragments/CoreCartProjectionFields').CoreCartProjectionFees;
|
|
334
|
+
vat: import('../fragments/CoreCartProjectionFields').CoreCartProjectionVat[];
|
|
335
|
+
}>;
|
|
336
|
+
setAgreementTemplate: ({ agreementId, }: Omit<SetAgreementTemplateForCartParams, "cartId">) => Promise<{
|
|
299
337
|
id: string;
|
|
300
338
|
acceptance: {
|
|
301
339
|
agreements: import('../fragments/CoreCartProjectionFields').CoreCartProjectionAgreement[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckoutCart.d.ts","sourceRoot":"","sources":["../../src/hooks/useCheckoutCart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAIlB,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,8BAA8B,CAAC;AAItC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,KAAK,EAAE,0BAA0B,E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