@commercelayer/react-components 3.13.0-beta.1 → 3.13.0-beta.4
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/lib/components/AddToCartButton.d.ts +27 -1
- package/lib/components/Address.d.ts +13 -1
- package/lib/components/AddressCountrySelector.d.ts +9 -1
- package/lib/components/AddressField.d.ts +15 -1
- package/lib/components/AddressInput.d.ts +7 -1
- package/lib/components/AddressStateSelector.d.ts +11 -1
- package/lib/components/AddressesContainer.d.ts +8 -1
- package/lib/components/AdjustmentAmount.d.ts +4 -1
- package/lib/components/AdyenPayment.d.ts +25 -1
- package/lib/components/AvailabilityContainer.d.ts +7 -1
- package/lib/components/AvailabilityTemplate.d.ts +15 -1
- package/lib/components/BillingAddressContainer.d.ts +6 -1
- package/lib/components/BillingAddressForm.d.ts +8 -1
- package/lib/components/BraintreePayment.d.ts +30 -1
- package/lib/components/CheckoutComPayment.d.ts +23 -1
- package/lib/components/CheckoutLink.d.ts +13 -1
- package/lib/components/CommerceLayer.d.ts +8 -1
- package/lib/components/CustomerContainer.d.ts +7 -1
- package/lib/components/CustomerInput.d.ts +11 -1
- package/lib/components/DeliveryLeadTime.d.ts +10 -1
- package/lib/components/DiscountAmount.d.ts +4 -1
- package/lib/components/Errors.d.ts +5 -1
- package/lib/components/ExternalFunction.d.ts +7 -1
- package/lib/components/GiftCard.d.ts +8 -1
- package/lib/components/GiftCardAmount.d.ts +4 -1
- package/lib/components/GiftCardContainer.d.ts +6 -1
- package/lib/components/GiftCardCurrencySelector.d.ts +7 -1
- package/lib/components/GiftCardInput.d.ts +7 -1
- package/lib/components/GiftCardOrCouponCode.d.ts +17 -1
- package/lib/components/GiftCardOrCouponCode.js +1 -1
- package/lib/components/GiftCardOrCouponForm.d.ts +10 -1
- package/lib/components/GiftCardOrCouponInput.d.ts +10 -1
- package/lib/components/GiftCardOrCouponRemoveButton.d.ts +18 -1
- package/lib/components/GiftCardOrCouponSubmit.d.ts +9 -1
- package/lib/components/ItemContainer.d.ts +11 -1
- package/lib/components/KlarnaPayment.d.ts +9 -1
- package/lib/components/LineItem.d.ts +8 -1
- package/lib/components/LineItem.js +1 -1
- package/lib/components/LineItemAmount.d.ts +7 -1
- package/lib/components/LineItemCode.d.ts +12 -1
- package/lib/components/LineItemImage.d.ts +16 -1
- package/lib/components/LineItemImage.js +1 -1
- package/lib/components/LineItemName.d.ts +11 -1
- package/lib/components/LineItemOption.d.ts +19 -1
- package/lib/components/LineItemOptions.d.ts +16 -1
- package/lib/components/LineItemQuantity.d.ts +14 -1
- package/lib/components/LineItemRemoveLink.d.ts +12 -1
- package/lib/components/LineItemsContainer.d.ts +8 -1
- package/lib/components/LineItemsCount.d.ts +12 -1
- package/lib/components/LineItemsEmpty.d.ts +12 -1
- package/lib/components/MetadataInput.d.ts +5 -1
- package/lib/components/OrderContainer.d.ts +12 -1
- package/lib/components/OrderNumber.d.ts +5 -1
- package/lib/components/OrderStorage.d.ts +8 -1
- package/lib/components/PaymentGateway.d.ts +16 -1
- package/lib/components/PaymentMethod.d.ts +16 -1
- package/lib/components/PaymentMethodAmount.d.ts +4 -1
- package/lib/components/PaymentMethodName.d.ts +9 -1
- package/lib/components/PaymentMethodPrice.d.ts +9 -1
- package/lib/components/PaymentMethodRadioButton.d.ts +12 -1
- package/lib/components/PaymentMethodsContainer.d.ts +8 -1
- package/lib/components/PaymentSource.d.ts +19 -1
- package/lib/components/PaymentSourceBrandIcon.d.ts +15 -1
- package/lib/components/PaymentSourceBrandName.d.ts +12 -1
- package/lib/components/PaymentSourceDetail.d.ts +12 -1
- package/lib/components/PaymentSourceEditButton.d.ts +9 -1
- package/lib/components/PaypalPayment.d.ts +12 -1
- package/lib/components/PlaceOrderButton.d.ts +14 -1
- package/lib/components/PlaceOrderContainer.d.ts +8 -1
- package/lib/components/Price.d.ts +16 -1
- package/lib/components/PricesContainer.d.ts +11 -1
- package/lib/components/PrivacyAndTermsCheckbox.d.ts +4 -1
- package/lib/components/QuantitySelector.d.ts +17 -1
- package/lib/components/SaveAddressesButton.d.ts +10 -1
- package/lib/components/SaveCustomerButton.d.ts +13 -1
- package/lib/components/Shipment.d.ts +15 -1
- package/lib/components/Shipment.js +1 -1
- package/lib/components/ShipmentField.d.ts +12 -1
- package/lib/components/ShipmentsContainer.d.ts +6 -1
- package/lib/components/ShipmentsContainer.js +1 -1
- package/lib/components/ShippingAddressContainer.d.ts +6 -1
- package/lib/components/ShippingAddressForm.d.ts +8 -1
- package/lib/components/ShippingAmount.d.ts +4 -1
- package/lib/components/ShippingMethod.d.ts +8 -1
- package/lib/components/ShippingMethodName.d.ts +11 -1
- package/lib/components/ShippingMethodPrice.d.ts +13 -1
- package/lib/components/ShippingMethodRadioButton.d.ts +13 -1
- package/lib/components/ShippingMethodRadioButton.js +1 -1
- package/lib/components/SkuField.d.ts +9 -1
- package/lib/components/SkuList.d.ts +7 -1
- package/lib/components/SkuListsContainer.d.ts +6 -1
- package/lib/components/SkuOption.d.ts +7 -1
- package/lib/components/SkuOptionInput.d.ts +5 -1
- package/lib/components/SkuOptionsContainer.d.ts +7 -1
- package/lib/components/Skus.d.ts +11 -1
- package/lib/components/SkusContainer.d.ts +14 -1
- package/lib/components/StockTransfer.d.ts +6 -1
- package/lib/components/StockTransfer.js +1 -1
- package/lib/components/StockTransferField.d.ts +9 -1
- package/lib/components/StripePayment.d.ts +18 -1
- package/lib/components/SubTotalAmount.d.ts +4 -1
- package/lib/components/SubmitButton.d.ts +9 -1
- package/lib/components/TaxesAmount.d.ts +4 -1
- package/lib/components/TotalAmount.d.ts +4 -1
- package/lib/components/VariantSelector.d.ts +29 -1
- package/lib/components/VariantsContainer.d.ts +8 -1
- package/lib/components/WireTransferPayment.d.ts +10 -1
- package/lib/components/gateways/AdyenGateway.d.ts +4 -1
- package/lib/components/gateways/BraintreeGateway.d.ts +4 -1
- package/lib/components/gateways/CheckoutComGateway.d.ts +4 -1
- package/lib/components/gateways/KlarnaGateway.d.ts +4 -1
- package/lib/components/gateways/PaypalGateway.d.ts +4 -1
- package/lib/components/gateways/StripeGateway.d.ts +4 -1
- package/lib/components/gateways/WireTransferGateway.d.ts +4 -1
- package/lib/components/utils/AddressCardsTemplate.d.ts +26 -1
- package/lib/components/utils/BaseField.d.ts +8 -1
- package/lib/components/utils/BaseInput.d.ts +5 -1
- package/lib/components/utils/BaseInput.js +1 -1
- package/lib/components/utils/BaseOrderPrice.d.ts +6 -1
- package/lib/components/utils/BaseSelect.d.ts +5 -1
- package/lib/components/utils/GenericFieldComponent.d.ts +37 -1
- package/lib/components/utils/GenericFieldComponent.js +1 -1
- package/lib/components/utils/Parent.d.ts +6 -1
- package/lib/components/utils/Parent.js +1 -1
- package/lib/components/utils/PaymentCardsTemplate.d.ts +22 -1
- package/lib/components/utils/PriceTemplate.d.ts +8 -1
- package/lib/components/utils/VariantTemplate.d.ts +36 -1
- package/lib/components/utils/getAllErrors.d.ts +17 -1
- package/lib/config/components.d.ts +913 -1
- package/lib/config/currency.d.ts +5 -1
- package/lib/context/AddressChildrenContext.d.ts +6 -1
- package/lib/context/AddressContext.d.ts +16 -1
- package/lib/context/AvailabilityContext.d.ts +2 -1
- package/lib/context/BillingAddressContext.d.ts +11 -1
- package/lib/context/BillingAddressFormContext.d.ts +19 -1
- package/lib/context/CommerceLayerContext.d.ts +6 -1
- package/lib/context/CouponAndGiftCardFormContext.d.ts +9 -1
- package/lib/context/CustomerContext.d.ts +15 -1
- package/lib/context/ExternalFunctionContext.d.ts +11 -1
- package/lib/context/GiftCardContext.d.ts +10 -1
- package/lib/context/ItemContext.d.ts +12 -1
- package/lib/context/LineItemChildrenContext.d.ts +8 -1
- package/lib/context/LineItemContext.d.ts +7 -1
- package/lib/context/LineItemOptionChildrenContext.d.ts +7 -1
- package/lib/context/OrderContext.d.ts +29 -1
- package/lib/context/OrderStorageContext.d.ts +10 -1
- package/lib/context/PaymentMethodChildrenContext.d.ts +9 -1
- package/lib/context/PaymentMethodContext.d.ts +22 -1
- package/lib/context/PaymentSourceContext.d.ts +13 -1
- package/lib/context/PlaceOrderContext.d.ts +17 -1
- package/lib/context/PricesContext.d.ts +6 -1
- package/lib/context/ShipmentChildrenContext.d.ts +12 -1
- package/lib/context/ShipmentContext.d.ts +11 -1
- package/lib/context/ShippingAddressContext.d.ts +9 -1
- package/lib/context/ShippingAddressFormContext.d.ts +3 -1
- package/lib/context/ShippingMethodChildrenContext.d.ts +9 -1
- package/lib/context/SkuChildrenContext.d.ts +8 -1
- package/lib/context/SkuContext.d.ts +8 -1
- package/lib/context/SkuListsContext.d.ts +5 -1
- package/lib/context/SkuOptionChildrenContext.d.ts +7 -1
- package/lib/context/SkuOptionsContext.d.ts +2 -1
- package/lib/context/StockTransferChildrenContext.d.ts +6 -1
- package/lib/context/VariantsContext.d.ts +2 -1
- package/lib/index.d.ts +102 -1
- package/lib/reducers/AddressReducer.d.ts +59 -1
- package/lib/reducers/AvailabilityReducer.d.ts +61 -1
- package/lib/reducers/BillingAddressReducer.d.ts +31 -1
- package/lib/reducers/CustomerReducer.d.ts +50 -1
- package/lib/reducers/GiftCardReducer.d.ts +76 -1
- package/lib/reducers/ItemReducer.d.ts +69 -1
- package/lib/reducers/LineItemReducer.d.ts +52 -1
- package/lib/reducers/OrderReducer.d.ts +132 -2
- package/lib/reducers/PaymentMethodReducer.d.ts +151 -1
- package/lib/reducers/PlaceOrderReducer.d.ts +59 -1
- package/lib/reducers/PriceReducer.d.ts +44 -1
- package/lib/reducers/ShipmentReducer.d.ts +40 -1
- package/lib/reducers/ShippingAddressReducer.d.ts +32 -1
- package/lib/reducers/SkuListsReducer.d.ts +21 -1
- package/lib/reducers/SkuOptionsReducer.d.ts +26 -1
- package/lib/reducers/SkuReducer.d.ts +21 -1
- package/lib/reducers/VariantReducer.d.ts +71 -1
- package/lib/typings/errors.d.ts +42 -1
- package/lib/typings/index.d.ts +137 -1
- package/lib/utils/PropsType.d.ts +33 -1
- package/lib/utils/addressesManager.d.ts +28 -1
- package/lib/utils/baseReducer.d.ts +3 -1
- package/lib/utils/browserInfo.d.ts +9 -1
- package/lib/utils/checkIncludeResource.d.ts +8 -1
- package/lib/utils/childrenTypes.d.ts +9 -1
- package/lib/utils/compareObjAttribute.d.ts +7 -1
- package/lib/utils/countryStateCity.d.ts +9 -1
- package/lib/utils/customMessages.d.ts +8 -1
- package/lib/utils/customerOrderOptions.d.ts +3 -1
- package/lib/utils/getAmount.d.ts +9 -1
- package/lib/utils/getCardDetails.d.ts +15 -1
- package/lib/utils/getCurrentItemKey.d.ts +6 -1
- package/lib/utils/getErrors.d.ts +11 -1
- package/lib/utils/getLineItemsCount.d.ts +12 -1
- package/lib/utils/getLoaderComponent.d.ts +2 -1
- package/lib/utils/getPrices.d.ts +17 -1
- package/lib/utils/getSdk.d.ts +3 -1
- package/lib/utils/getSkus.d.ts +3 -1
- package/lib/utils/hooks/useExternalScript.d.ts +1 -1
- package/lib/utils/isEmptyStates.d.ts +1 -1
- package/lib/utils/isJSON.d.ts +1 -1
- package/lib/utils/jwt.d.ts +27 -1
- package/lib/utils/localStorage.d.ts +17 -1
- package/lib/utils/organization.d.ts +6 -1
- package/lib/utils/paypalPayment.d.ts +3 -1
- package/lib/utils/placeholderImages.d.ts +2 -0
- package/lib/utils/placeholderImages.js +1 -0
- package/lib/utils/promisify.d.ts +1 -1
- package/lib/utils/shipments.d.ts +3 -1
- package/lib/utils/validateFormFields.d.ts +22 -1
- package/package.json +2 -2
|
@@ -1 +1,59 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Dispatch } from 'react';
|
|
2
|
+
import { BaseError, ResourceErrorType } from '../typings/errors';
|
|
3
|
+
import { CommerceLayerConfig } from '../context/CommerceLayerContext';
|
|
4
|
+
import { Address, AddressCreate, Order } from '@commercelayer/sdk';
|
|
5
|
+
import { updateOrder } from './OrderReducer';
|
|
6
|
+
export declare type AddressActionType = 'setErrors' | 'setAddress' | 'setShipToDifferentAddress' | 'setCloneAddress' | 'cleanup';
|
|
7
|
+
export declare type AddressField = 'city' | 'company' | 'country_code' | 'first_name' | 'last_name' | 'line_1' | 'line_2' | 'phone' | 'state_code' | 'zip_code' | 'billing_info';
|
|
8
|
+
export declare type AddressFieldView = AddressField | 'full_address' | 'full_name';
|
|
9
|
+
export declare const addressFields: AddressField[];
|
|
10
|
+
export declare type AddressResource = Extract<ResourceErrorType, 'billing_address' | 'shipping_address'>;
|
|
11
|
+
export declare type AddressSchema = Address;
|
|
12
|
+
export interface AddressActionPayload {
|
|
13
|
+
errors: BaseError[];
|
|
14
|
+
billing_address: AddressCreate;
|
|
15
|
+
shipping_address: AddressCreate;
|
|
16
|
+
shipToDifferentAddress: boolean;
|
|
17
|
+
billingAddressId: string;
|
|
18
|
+
shippingAddressId: string;
|
|
19
|
+
isBusiness: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare type AddressState = Partial<AddressActionPayload>;
|
|
22
|
+
export interface AddressAction {
|
|
23
|
+
type: AddressActionType;
|
|
24
|
+
payload: Partial<AddressActionPayload>;
|
|
25
|
+
}
|
|
26
|
+
export declare const addressInitialState: AddressState;
|
|
27
|
+
export interface SetAddressErrors {
|
|
28
|
+
<V extends BaseError[]>(args: {
|
|
29
|
+
errors: V;
|
|
30
|
+
resource: Extract<ResourceErrorType, 'billing_address' | 'shipping_address'>;
|
|
31
|
+
dispatch?: Dispatch<AddressAction>;
|
|
32
|
+
currentErrors?: V;
|
|
33
|
+
}): void;
|
|
34
|
+
}
|
|
35
|
+
export declare type SetAddressParams<V extends AddressSchema> = {
|
|
36
|
+
values: V;
|
|
37
|
+
resource: AddressResource;
|
|
38
|
+
dispatch?: Dispatch<AddressAction>;
|
|
39
|
+
};
|
|
40
|
+
export interface SetAddress {
|
|
41
|
+
<V extends AddressSchema>(params: SetAddressParams<V>): void;
|
|
42
|
+
}
|
|
43
|
+
export interface SaveAddresses {
|
|
44
|
+
(params: {
|
|
45
|
+
orderId?: string;
|
|
46
|
+
order?: Order | null;
|
|
47
|
+
updateOrder?: typeof updateOrder;
|
|
48
|
+
config: CommerceLayerConfig;
|
|
49
|
+
state: AddressState;
|
|
50
|
+
dispatch: Dispatch<AddressAction>;
|
|
51
|
+
}): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
export declare const setAddressErrors: SetAddressErrors;
|
|
54
|
+
export declare const setAddress: SetAddress;
|
|
55
|
+
declare type SetCloneAddress = (id: string, resource: AddressResource, dispatch: Dispatch<AddressAction>) => void;
|
|
56
|
+
export declare const setCloneAddress: SetCloneAddress;
|
|
57
|
+
export declare const saveAddresses: SaveAddresses;
|
|
58
|
+
declare const addressReducer: (state: AddressState, reducer: AddressAction) => AddressState;
|
|
59
|
+
export default addressReducer;
|
|
@@ -1 +1,61 @@
|
|
|
1
|
-
import{BaseError}from'../typings/errors';
|
|
1
|
+
import { BaseError } from '../typings/errors';
|
|
2
|
+
import { Sku } from '@commercelayer/sdk';
|
|
3
|
+
import { CommerceLayerConfig } from '../context/CommerceLayerContext';
|
|
4
|
+
import { Dispatch } from 'react';
|
|
5
|
+
import { Items } from './ItemReducer';
|
|
6
|
+
export declare type DeliveryLeadTime = {
|
|
7
|
+
shipping_method: {
|
|
8
|
+
name: string;
|
|
9
|
+
reference: string;
|
|
10
|
+
price_amount_cents: number;
|
|
11
|
+
free_over_amount_cents: number;
|
|
12
|
+
formatted_price_amount: string;
|
|
13
|
+
formatted_free_over_amount: string;
|
|
14
|
+
};
|
|
15
|
+
min: LeadTimes;
|
|
16
|
+
max: LeadTimes;
|
|
17
|
+
};
|
|
18
|
+
declare type Level = {
|
|
19
|
+
delivery_lead_times: Partial<DeliveryLeadTime>[];
|
|
20
|
+
quantity: number;
|
|
21
|
+
};
|
|
22
|
+
declare type Inventory = {
|
|
23
|
+
inventory: {
|
|
24
|
+
available: boolean;
|
|
25
|
+
quantity: number;
|
|
26
|
+
levels: Level[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare type SkuInventory = Sku & Inventory;
|
|
30
|
+
export declare type LeadTimes = {
|
|
31
|
+
hours: number;
|
|
32
|
+
days: number;
|
|
33
|
+
};
|
|
34
|
+
export declare type AvailabilityPayload = {
|
|
35
|
+
quantity?: number | null;
|
|
36
|
+
errors?: BaseError[];
|
|
37
|
+
} & Partial<DeliveryLeadTime>;
|
|
38
|
+
export declare type AvailabilityState = AvailabilityPayload;
|
|
39
|
+
export interface AvailabilityAction {
|
|
40
|
+
type: AvailabilityActionType;
|
|
41
|
+
payload: AvailabilityPayload;
|
|
42
|
+
}
|
|
43
|
+
export declare const availabilityInitialState: AvailabilityState;
|
|
44
|
+
declare type GetAvailability = (args: {
|
|
45
|
+
skuCode: string;
|
|
46
|
+
dispatch: Dispatch<AvailabilityAction>;
|
|
47
|
+
config: CommerceLayerConfig;
|
|
48
|
+
setItem?: (item: Items) => void;
|
|
49
|
+
item?: Items;
|
|
50
|
+
}) => void;
|
|
51
|
+
export declare const getAvailability: GetAvailability;
|
|
52
|
+
declare type GetAvailabilityArgs = {
|
|
53
|
+
skusIds: string[];
|
|
54
|
+
dispatch: Dispatch<AvailabilityAction>;
|
|
55
|
+
config: CommerceLayerConfig;
|
|
56
|
+
setItem?: (item: Items) => void;
|
|
57
|
+
};
|
|
58
|
+
export declare function getAvailabilityByIds({ skusIds, config, setItem, }: GetAvailabilityArgs): Promise<void>;
|
|
59
|
+
export declare type AvailabilityActionType = 'setAvailability' | 'setErrors';
|
|
60
|
+
declare const availabilityReducer: (state: AvailabilityState, reducer: AvailabilityAction) => AvailabilityState;
|
|
61
|
+
export default availabilityReducer;
|
|
@@ -1 +1,31 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Dispatch } from 'react';
|
|
2
|
+
import { CommerceLayerConfig } from '../context/CommerceLayerContext';
|
|
3
|
+
import { Order } from '@commercelayer/sdk';
|
|
4
|
+
import { AddressResource } from './AddressReducer';
|
|
5
|
+
export declare type BillingAddressActionType = 'setBillingAddress' | 'setBillingCustomerAddressId' | 'cleanup';
|
|
6
|
+
export interface BillingAddressActionPayload {
|
|
7
|
+
_billing_address_clone_id: string;
|
|
8
|
+
billingCustomerAddressId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type BillingAddressState = Partial<BillingAddressActionPayload>;
|
|
11
|
+
export interface BillingAddressAction {
|
|
12
|
+
type: BillingAddressActionType;
|
|
13
|
+
payload: Partial<BillingAddressActionPayload>;
|
|
14
|
+
}
|
|
15
|
+
export declare const billingAddressInitialState: BillingAddressState;
|
|
16
|
+
export declare type SetBillingAddress = (id: string, options?: {
|
|
17
|
+
config: CommerceLayerConfig;
|
|
18
|
+
dispatch: Dispatch<BillingAddressAction>;
|
|
19
|
+
order?: Order;
|
|
20
|
+
shipToDifferentAddress?: boolean;
|
|
21
|
+
customerAddressId?: string;
|
|
22
|
+
}) => Promise<void>;
|
|
23
|
+
export declare const setBillingAddress: SetBillingAddress;
|
|
24
|
+
declare type SetBillingCustomerAddressId = (args: {
|
|
25
|
+
dispatch: Dispatch<BillingAddressAction>;
|
|
26
|
+
order: Order;
|
|
27
|
+
setCloneAddress: (id: string, resource: AddressResource) => void;
|
|
28
|
+
}) => void;
|
|
29
|
+
export declare const setBillingCustomerAddressId: SetBillingCustomerAddressId;
|
|
30
|
+
declare const billingAddressReducer: (state: BillingAddressState, reducer: BillingAddressAction) => BillingAddressState;
|
|
31
|
+
export default billingAddressReducer;
|
|
@@ -1 +1,50 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Dispatch } from 'react';
|
|
2
|
+
import { BaseError } from '../typings/errors';
|
|
3
|
+
import { Address, CustomerPaymentSource, Order } from '@commercelayer/sdk';
|
|
4
|
+
import { CommerceLayerConfig } from '../context/CommerceLayerContext';
|
|
5
|
+
import { updateOrder } from './OrderReducer';
|
|
6
|
+
export declare type CustomerActionType = 'setErrors' | 'setCustomerEmail' | 'setAddresses' | 'setPayments';
|
|
7
|
+
export interface CustomerActionPayload {
|
|
8
|
+
addresses: Address[];
|
|
9
|
+
payments: CustomerPaymentSource[];
|
|
10
|
+
customerEmail: string;
|
|
11
|
+
errors: BaseError[];
|
|
12
|
+
isGuest: boolean;
|
|
13
|
+
getCustomerPaymentSources: () => Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export declare type CustomerState = Partial<CustomerActionPayload>;
|
|
16
|
+
export interface CustomerAction {
|
|
17
|
+
type: CustomerActionType;
|
|
18
|
+
payload: Partial<CustomerActionPayload>;
|
|
19
|
+
}
|
|
20
|
+
export declare type SetSaveOnBlur = (args: {
|
|
21
|
+
saveOnBlur: boolean;
|
|
22
|
+
dispatch: Dispatch<CustomerAction>;
|
|
23
|
+
}) => void;
|
|
24
|
+
export declare type SaveCustomerUser = (args: {
|
|
25
|
+
config: CommerceLayerConfig;
|
|
26
|
+
customerEmail: string;
|
|
27
|
+
dispatch: Dispatch<CustomerAction>;
|
|
28
|
+
order?: Order;
|
|
29
|
+
updateOrder: typeof updateOrder;
|
|
30
|
+
}) => void;
|
|
31
|
+
export declare const saveCustomerUser: SaveCustomerUser;
|
|
32
|
+
export interface SetCustomerErrors {
|
|
33
|
+
<V extends BaseError[]>(errors: V, dispatch?: Dispatch<CustomerAction>): void;
|
|
34
|
+
}
|
|
35
|
+
export declare const setCustomerErrors: SetCustomerErrors;
|
|
36
|
+
export declare type SetCustomerEmail = (customerEmail: string, dispatch?: Dispatch<CustomerAction>) => void;
|
|
37
|
+
export declare const setCustomerEmail: SetCustomerEmail;
|
|
38
|
+
export declare type GetCustomerAddresses = (params: {
|
|
39
|
+
config: CommerceLayerConfig;
|
|
40
|
+
dispatch: Dispatch<CustomerAction>;
|
|
41
|
+
}) => Promise<void>;
|
|
42
|
+
export declare const getCustomerAddresses: GetCustomerAddresses;
|
|
43
|
+
export declare type GetCustomerPaymentSources = (params: {
|
|
44
|
+
dispatch: Dispatch<CustomerAction>;
|
|
45
|
+
order?: Order;
|
|
46
|
+
}) => Promise<void>;
|
|
47
|
+
export declare const getCustomerPaymentSources: GetCustomerPaymentSources;
|
|
48
|
+
export declare const customerInitialState: CustomerState;
|
|
49
|
+
declare const customerReducer: (state: CustomerState, reducer: CustomerAction) => CustomerState;
|
|
50
|
+
export default customerReducer;
|
|
@@ -1 +1,76 @@
|
|
|
1
|
-
import{Customer,Market,GiftCardRecipient,GiftCardRecipientCreate,Order}from'@commercelayer/sdk';
|
|
1
|
+
import { Customer, Market, GiftCardRecipient, GiftCardRecipientCreate, Order } from '@commercelayer/sdk';
|
|
2
|
+
import { BaseMetadata } from '../typings/index';
|
|
3
|
+
import { Dispatch } from 'react';
|
|
4
|
+
import { CommerceLayerConfig } from '../context/CommerceLayerContext';
|
|
5
|
+
import { BaseError } from '../typings/errors';
|
|
6
|
+
import { CreateOrder } from './OrderReducer';
|
|
7
|
+
export declare type GiftCardActionType = 'setAvailability' | 'setGiftCardRecipient' | 'setGiftCardErrors' | 'setGiftCardLoading';
|
|
8
|
+
export interface GiftCardRecipientI {
|
|
9
|
+
email: string;
|
|
10
|
+
firstName?: string;
|
|
11
|
+
lastName?: string;
|
|
12
|
+
referenceOrigin?: string;
|
|
13
|
+
reference?: string;
|
|
14
|
+
metadata?: BaseMetadata;
|
|
15
|
+
customer?: Customer;
|
|
16
|
+
}
|
|
17
|
+
export interface GiftCardI {
|
|
18
|
+
currencyCode?: string;
|
|
19
|
+
balanceCent?: number;
|
|
20
|
+
balanceMaxCents?: number;
|
|
21
|
+
singleUse?: boolean;
|
|
22
|
+
rechargeable?: boolean;
|
|
23
|
+
imageUrl?: string;
|
|
24
|
+
expiresAt?: null | Date;
|
|
25
|
+
firstName?: string;
|
|
26
|
+
lastName?: string;
|
|
27
|
+
email?: string;
|
|
28
|
+
referenceOrigin?: string;
|
|
29
|
+
recipientEmail?: string;
|
|
30
|
+
reference?: string;
|
|
31
|
+
metadata?: BaseMetadata;
|
|
32
|
+
orderId?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface GiftCardActionPayload extends GiftCardI {
|
|
35
|
+
market?: Market;
|
|
36
|
+
giftCardRecipient?: GiftCardRecipient;
|
|
37
|
+
errors?: BaseError[];
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface GiftCardState extends GiftCardActionPayload {
|
|
41
|
+
currencyCode: string;
|
|
42
|
+
balanceCent: number;
|
|
43
|
+
addGiftCardRecipient?: (values: GiftCardRecipientI & Record<string, any>) => void;
|
|
44
|
+
addGiftCard?: (values: GiftCardI & Record<string, any>) => void;
|
|
45
|
+
addGiftCardError?: (errors: BaseError[]) => void;
|
|
46
|
+
addGiftCardLoading?: (loading: boolean) => void;
|
|
47
|
+
}
|
|
48
|
+
export interface GiftCardAction {
|
|
49
|
+
type: GiftCardActionType;
|
|
50
|
+
payload: GiftCardActionPayload;
|
|
51
|
+
}
|
|
52
|
+
export declare const giftCardInitialState: GiftCardState;
|
|
53
|
+
export interface AddGiftCardRecipient {
|
|
54
|
+
<V extends GiftCardRecipientCreate>(values: V, config: CommerceLayerConfig, dispatch: Dispatch<GiftCardAction>): void;
|
|
55
|
+
}
|
|
56
|
+
export interface AddGiftCard {
|
|
57
|
+
<V extends GiftCardI>(values: V, configParameters: {
|
|
58
|
+
getOrder?: (id: string) => void;
|
|
59
|
+
createOrder?: CreateOrder;
|
|
60
|
+
config: CommerceLayerConfig;
|
|
61
|
+
dispatch: Dispatch<GiftCardAction>;
|
|
62
|
+
order?: Order;
|
|
63
|
+
}): void;
|
|
64
|
+
}
|
|
65
|
+
export interface AddGiftCardError {
|
|
66
|
+
<V extends BaseError[]>(errors: V, dispatch: Dispatch<GiftCardAction>): void;
|
|
67
|
+
}
|
|
68
|
+
export interface AddGiftCardLoading {
|
|
69
|
+
<V extends boolean>(loading: V, dispatch: Dispatch<GiftCardAction>): void;
|
|
70
|
+
}
|
|
71
|
+
export declare const addGiftCardRecipient: AddGiftCardRecipient;
|
|
72
|
+
export declare const addGiftCardLoading: AddGiftCardLoading;
|
|
73
|
+
export declare const addGiftCard: AddGiftCard;
|
|
74
|
+
export declare const addGiftCardError: AddGiftCardError;
|
|
75
|
+
declare const giftCardReducer: (state: GiftCardState, reducer: GiftCardAction) => GiftCardState;
|
|
76
|
+
export default giftCardReducer;
|
|
@@ -1 +1,69 @@
|
|
|
1
|
-
import{BaseUnsetState}from'../typings/index';
|
|
1
|
+
import { BaseUnsetState } from '../typings/index';
|
|
2
|
+
import { Price } from '@commercelayer/sdk';
|
|
3
|
+
import { Dispatch } from 'react';
|
|
4
|
+
import { SkuInventory } from './AvailabilityReducer';
|
|
5
|
+
export interface Items {
|
|
6
|
+
[skuCode: string]: SkuInventory;
|
|
7
|
+
}
|
|
8
|
+
export interface ItemPrices {
|
|
9
|
+
[skuCode: string]: Price;
|
|
10
|
+
}
|
|
11
|
+
export interface ItemQuantity {
|
|
12
|
+
[skuCode: string]: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ItemOption {
|
|
15
|
+
[key: string]: {
|
|
16
|
+
skuOptionId: string;
|
|
17
|
+
options: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface ItemOptions {
|
|
23
|
+
[skuCode: string]: ItemOption;
|
|
24
|
+
}
|
|
25
|
+
export declare type CustomLineItem = {
|
|
26
|
+
name?: string;
|
|
27
|
+
imageUrl?: string | null;
|
|
28
|
+
};
|
|
29
|
+
export interface CustomLineItems {
|
|
30
|
+
[skuCode: string]: CustomLineItem;
|
|
31
|
+
}
|
|
32
|
+
declare type ItemParams = {
|
|
33
|
+
type: ItemActionType;
|
|
34
|
+
key: 'items' | 'item' | 'quantity' | 'option' | 'prices' | 'lineItem' | 'lineItems' | 'skuCode';
|
|
35
|
+
};
|
|
36
|
+
declare type DataType = Items | ItemQuantity | ItemOptions | ItemPrices | CustomLineItems | CustomLineItem | string;
|
|
37
|
+
export interface SetItemState {
|
|
38
|
+
(data: DataType, params: ItemParams, dispatch: Dispatch<ItemAction>): void;
|
|
39
|
+
}
|
|
40
|
+
export declare const setItemState: SetItemState;
|
|
41
|
+
export declare const unsetItemState: BaseUnsetState<ItemAction>;
|
|
42
|
+
export declare type SetCustomLineItems = (lineItems: CustomLineItems) => void;
|
|
43
|
+
export declare type SetCustomLineItem = (lineItem: CustomLineItem) => void;
|
|
44
|
+
export interface ItemState {
|
|
45
|
+
skuCode?: string;
|
|
46
|
+
items?: Items;
|
|
47
|
+
item?: Items;
|
|
48
|
+
lineItems?: CustomLineItems;
|
|
49
|
+
lineItem?: CustomLineItem;
|
|
50
|
+
quantity?: ItemQuantity;
|
|
51
|
+
option?: ItemOptions;
|
|
52
|
+
prices?: ItemPrices;
|
|
53
|
+
setItems?: (items: Items) => void;
|
|
54
|
+
setItem?: (item: Items) => void;
|
|
55
|
+
setQuantity?: (quantity: ItemQuantity) => void;
|
|
56
|
+
setOption?: (option: ItemOptions) => void;
|
|
57
|
+
setPrices?: (prices: ItemPrices) => void;
|
|
58
|
+
setSkuCode?: (skuCode: string) => void;
|
|
59
|
+
setCustomLineItems: SetCustomLineItems;
|
|
60
|
+
setCustomLineItem?: SetCustomLineItem;
|
|
61
|
+
}
|
|
62
|
+
declare type ItemActionType = 'setItem' | 'setItems' | 'setQuantity' | 'setOption' | 'setPrices' | 'setCustomLineItems' | 'setCustomLineItem' | 'setSkuCode';
|
|
63
|
+
export interface ItemAction {
|
|
64
|
+
type: ItemActionType;
|
|
65
|
+
payload: Partial<ItemState>;
|
|
66
|
+
}
|
|
67
|
+
export declare const itemInitialState: Partial<ItemState>;
|
|
68
|
+
declare const itemReducer: (state: Partial<ItemState>, reducer: ItemAction) => Partial<ItemState>;
|
|
69
|
+
export default itemReducer;
|
|
@@ -1 +1,52 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Dispatch } from 'react';
|
|
2
|
+
import { CommerceLayerConfig } from '../context/CommerceLayerContext';
|
|
3
|
+
import { getOrderContext } from './OrderReducer';
|
|
4
|
+
import { LoaderType } from '../typings/index';
|
|
5
|
+
import { BaseError } from '../typings/errors';
|
|
6
|
+
import { Order, LineItem } from '@commercelayer/sdk';
|
|
7
|
+
export declare type UpdateLineItemParams = {
|
|
8
|
+
lineItemId: string;
|
|
9
|
+
quantity?: number;
|
|
10
|
+
dispatch: Dispatch<LineItemAction>;
|
|
11
|
+
config: CommerceLayerConfig;
|
|
12
|
+
getOrder: getOrderContext | undefined;
|
|
13
|
+
orderId: string;
|
|
14
|
+
errors: BaseError[] | undefined;
|
|
15
|
+
};
|
|
16
|
+
export interface UpdateLineItem {
|
|
17
|
+
(params: UpdateLineItemParams): void;
|
|
18
|
+
}
|
|
19
|
+
export declare type DeleteLineItemParam = Record<string, any> & UpdateLineItemParams;
|
|
20
|
+
export interface DeleteLineItem {
|
|
21
|
+
(params: DeleteLineItemParam): void;
|
|
22
|
+
}
|
|
23
|
+
export declare type GetLineItemsParams = {
|
|
24
|
+
dispatch: Dispatch<LineItemAction>;
|
|
25
|
+
config: CommerceLayerConfig;
|
|
26
|
+
order: Order | null;
|
|
27
|
+
filters: Record<string, any>;
|
|
28
|
+
};
|
|
29
|
+
export interface GetLineItems {
|
|
30
|
+
(params: GetLineItemsParams): void;
|
|
31
|
+
}
|
|
32
|
+
export interface LineItemPayload {
|
|
33
|
+
loading?: boolean;
|
|
34
|
+
loader?: LoaderType;
|
|
35
|
+
lineItems?: LineItem[];
|
|
36
|
+
errors?: BaseError[];
|
|
37
|
+
}
|
|
38
|
+
export interface LineItemState extends LineItemPayload {
|
|
39
|
+
updateLineItem?: (lineItemId: string, quantity?: number) => void;
|
|
40
|
+
deleteLineItem?: (lineItemId: string) => void;
|
|
41
|
+
}
|
|
42
|
+
export interface LineItemAction {
|
|
43
|
+
type: LineItemActionType;
|
|
44
|
+
payload: LineItemPayload;
|
|
45
|
+
}
|
|
46
|
+
export declare const getLineItems: GetLineItems;
|
|
47
|
+
export declare const updateLineItem: UpdateLineItem;
|
|
48
|
+
export declare const deleteLineItem: DeleteLineItem;
|
|
49
|
+
export declare const lineItemInitialState: LineItemState;
|
|
50
|
+
export declare type LineItemActionType = 'setLineItems' | 'setErrors' | 'setLoading';
|
|
51
|
+
declare const lineItemReducer: (state: LineItemState, reducer: LineItemAction) => LineItemState;
|
|
52
|
+
export default lineItemReducer;
|
|
@@ -1,4 +1,134 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Dispatch } from 'react';
|
|
2
|
+
import { SetLocalOrder, DeleteLocalOrder } from '../utils/localStorage';
|
|
3
|
+
import { CommerceLayerConfig } from '../context/CommerceLayerContext';
|
|
4
|
+
import { ItemOption, CustomLineItem } from './ItemReducer';
|
|
5
|
+
import { BaseMetadataObject } from '../typings/index';
|
|
6
|
+
import { BaseError } from '../typings/errors';
|
|
7
|
+
import { AddressResource } from './AddressReducer';
|
|
8
|
+
import { Order, OrderUpdate } from '@commercelayer/sdk';
|
|
9
|
+
export declare type GetOrderParams = Partial<{
|
|
10
|
+
clearWhenPlaced: boolean;
|
|
11
|
+
config: CommerceLayerConfig;
|
|
12
|
+
deleteLocalOrder: DeleteLocalOrder;
|
|
13
|
+
dispatch: Dispatch<OrderActions>;
|
|
14
|
+
id: string;
|
|
15
|
+
persistKey: string;
|
|
16
|
+
state: OrderState;
|
|
17
|
+
}>;
|
|
18
|
+
export interface GetOrder {
|
|
19
|
+
(params: GetOrderParams): Promise<void | Order>;
|
|
20
|
+
}
|
|
21
|
+
declare type CreateOrderParams = Pick<AddToCartParams, 'config' | 'dispatch' | 'persistKey' | 'state' | 'orderMetadata' | 'orderAttributes' | 'setLocalOrder'>;
|
|
22
|
+
export interface CreateOrder {
|
|
23
|
+
(params?: CreateOrderParams): Promise<string>;
|
|
24
|
+
}
|
|
25
|
+
export declare type AddToCartParams = Partial<{
|
|
26
|
+
bundleCode: string;
|
|
27
|
+
skuCode: string;
|
|
28
|
+
persistKey: string;
|
|
29
|
+
config: CommerceLayerConfig;
|
|
30
|
+
dispatch: Dispatch<OrderActions>;
|
|
31
|
+
state: Partial<OrderState>;
|
|
32
|
+
skuId: string;
|
|
33
|
+
quantity: number;
|
|
34
|
+
option: ItemOption;
|
|
35
|
+
lineItem: CustomLineItem;
|
|
36
|
+
orderMetadata: BaseMetadataObject;
|
|
37
|
+
orderAttributes: Record<string, any>;
|
|
38
|
+
errors: BaseError[];
|
|
39
|
+
setLocalOrder: SetLocalOrder;
|
|
40
|
+
buyNowMode: boolean;
|
|
41
|
+
checkoutUrl: string;
|
|
42
|
+
}>;
|
|
43
|
+
export interface AddToCartImportParams extends Omit<AddToCartParams, 'skuCode' | 'skuId' | 'quantity' | 'option' | 'lineItem'> {
|
|
44
|
+
lineItems: CustomLineItem[];
|
|
45
|
+
}
|
|
46
|
+
export declare type AddToCartReturn = Promise<{
|
|
47
|
+
success: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
export interface AddToCart {
|
|
50
|
+
(params: AddToCartParams): AddToCartReturn;
|
|
51
|
+
}
|
|
52
|
+
export interface AddToCartImport {
|
|
53
|
+
(params: AddToCartImportParams): AddToCartReturn;
|
|
54
|
+
}
|
|
55
|
+
export interface UnsetOrderState {
|
|
56
|
+
(dispatch: Dispatch<OrderActions>): void;
|
|
57
|
+
}
|
|
58
|
+
export declare type ResourceIncluded = 'billing_address' | 'shipping_address' | 'line_items.line_item_options.sku_option' | 'line_items.item' | 'available_customer_payment_sources.payment_source' | 'shipments.available_shipping_methods' | 'shipments.stock_transfers' | 'shipments.stock_transfers.line_item' | 'shipments.shipment_line_items.line_item' | 'shipments.shipping_method' | 'shipments.stock_location' | 'payment_source' | 'available_payment_methods' | 'payment_method';
|
|
59
|
+
declare type ResourceIncludedLoaded = Partial<Record<ResourceIncluded, boolean>>;
|
|
60
|
+
export interface OrderPayload {
|
|
61
|
+
loading?: boolean;
|
|
62
|
+
orderId?: string;
|
|
63
|
+
order?: Order;
|
|
64
|
+
errors?: BaseError[];
|
|
65
|
+
include?: ResourceIncluded[];
|
|
66
|
+
includeLoaded?: ResourceIncludedLoaded;
|
|
67
|
+
}
|
|
68
|
+
export declare type AddToCartValues = Pick<AddToCartParams, 'bundleCode' | 'lineItem' | 'quantity' | 'skuCode' | 'skuId' | 'option' | 'buyNowMode' | 'checkoutUrl'>;
|
|
69
|
+
export declare type AddToCartImportValues = Pick<AddToCartImportParams, 'lineItems'>;
|
|
70
|
+
export declare type getOrderContext = (id: string) => Promise<void | Order>;
|
|
71
|
+
export declare type OrderState = Partial<OrderPayload>;
|
|
72
|
+
export interface OrderActions {
|
|
73
|
+
type: OrderActionType;
|
|
74
|
+
payload: OrderPayload;
|
|
75
|
+
}
|
|
76
|
+
export declare type OrderActionType = 'setLoading' | 'setOrderId' | 'setOrder' | 'setSingleQuantity' | 'setCurrentSkuCodes' | 'setCurrentSkuPrices' | 'setCurrentItem' | 'setErrors' | 'setSaveAddressToCustomerAddressBook' | 'setGiftCardOrCouponCode' | 'setIncludesResource';
|
|
77
|
+
export declare const createOrder: CreateOrder;
|
|
78
|
+
export declare const getApiOrder: GetOrder;
|
|
79
|
+
export declare type UpdateOrderArgs = {
|
|
80
|
+
id: string;
|
|
81
|
+
attributes: Omit<OrderUpdate, 'id'>;
|
|
82
|
+
dispatch?: Dispatch<OrderActions>;
|
|
83
|
+
include?: string[];
|
|
84
|
+
config?: CommerceLayerConfig;
|
|
85
|
+
state?: OrderState;
|
|
86
|
+
};
|
|
87
|
+
export declare function updateOrder({ id, attributes, dispatch, config, include, state, }: UpdateOrderArgs): Promise<{
|
|
88
|
+
success: boolean;
|
|
89
|
+
error?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
success: boolean;
|
|
92
|
+
error: unknown;
|
|
93
|
+
}>;
|
|
94
|
+
export declare const setOrder: (order: Order, dispatch?: Dispatch<OrderActions> | undefined) => void;
|
|
95
|
+
export declare type AddResourceToInclude = {
|
|
96
|
+
resourcesIncluded?: ResourceIncluded[];
|
|
97
|
+
dispatch?: Dispatch<OrderActions>;
|
|
98
|
+
newResource?: ResourceIncluded | ResourceIncluded[];
|
|
99
|
+
resourceIncludedLoaded?: ResourceIncludedLoaded;
|
|
100
|
+
newResourceLoaded?: ResourceIncludedLoaded;
|
|
101
|
+
};
|
|
102
|
+
export declare function addResourceToInclude({ resourcesIncluded, dispatch, newResource, newResourceLoaded, resourceIncludedLoaded, }: AddResourceToInclude): void;
|
|
103
|
+
export declare const addToCart: AddToCart;
|
|
104
|
+
export declare const unsetOrderState: UnsetOrderState;
|
|
105
|
+
declare type OrderErrors = {
|
|
106
|
+
dispatch?: Dispatch<OrderActions>;
|
|
107
|
+
errors: BaseError[];
|
|
108
|
+
};
|
|
109
|
+
export declare function setOrderErrors({ dispatch, errors }: OrderErrors): {
|
|
110
|
+
success: boolean;
|
|
111
|
+
};
|
|
112
|
+
export declare type SaveAddressToCustomerAddressBook = (params: {
|
|
113
|
+
dispatch?: Dispatch<OrderActions>;
|
|
114
|
+
type: AddressResource;
|
|
115
|
+
value: boolean;
|
|
116
|
+
}) => void;
|
|
117
|
+
export declare const saveAddressToCustomerAddressBook: SaveAddressToCustomerAddressBook;
|
|
118
|
+
export declare type SetGiftCardOrCouponCode = (args: {
|
|
119
|
+
code: string;
|
|
120
|
+
codeType: OrderCodeType;
|
|
121
|
+
dispatch?: Dispatch<OrderActions>;
|
|
122
|
+
config?: CommerceLayerConfig;
|
|
123
|
+
order?: Order;
|
|
124
|
+
include?: string[];
|
|
125
|
+
state?: OrderState;
|
|
126
|
+
}) => Promise<{
|
|
127
|
+
success: boolean;
|
|
128
|
+
}>;
|
|
129
|
+
export declare const setGiftCardOrCouponCode: SetGiftCardOrCouponCode;
|
|
130
|
+
export declare type CodeType = 'coupon' | 'gift_card' | 'gift_card_or_coupon';
|
|
131
|
+
export declare type OrderCodeType = `${CodeType}_code`;
|
|
2
132
|
export declare type RemoveGiftCardOrCouponCode = (args: {
|
|
3
133
|
codeType: OrderCodeType;
|
|
4
134
|
dispatch?: Dispatch<OrderActions>;
|
|
@@ -12,4 +142,4 @@ export declare type RemoveGiftCardOrCouponCode = (args: {
|
|
|
12
142
|
export declare const removeGiftCardOrCouponCode: RemoveGiftCardOrCouponCode;
|
|
13
143
|
export declare const orderInitialState: Partial<OrderState>;
|
|
14
144
|
declare const orderReducer: (state: OrderState, reducer: OrderActions) => OrderState;
|
|
15
|
-
export default orderReducer;
|
|
145
|
+
export default orderReducer;
|