@ikas/storefront 0.0.160-alpha.7 → 0.0.160-alpha.8
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/build/api/customer/__generated__/getCustomerOrders.d.ts +1 -1
- package/build/api/customer/__generated__/listOrderRefundSettings.d.ts +13 -0
- package/build/api/customer/index.d.ts +2 -1
- package/build/index.es.js +5962 -190
- package/build/index.js +5962 -189
- package/build/models/data/index.d.ts +1 -0
- package/build/models/data/order/index.d.ts +16 -2
- package/build/models/data/order/line-item/index.d.ts +2 -0
- package/build/models/data/order/refund/settings.d.ts +6 -0
- package/build/store/customer.d.ts +2 -0
- package/package.json +2 -1
|
@@ -14,6 +14,7 @@ export type { IkasInstallmentInfo, IkasInstallmentPrice, IkasInstallmentInfoInpu
|
|
|
14
14
|
export * from "./merchant-settings/index";
|
|
15
15
|
export * from "./order/index";
|
|
16
16
|
export { IkasOrderLineItem } from "./order/line-item/index";
|
|
17
|
+
export { IkasOrderRefundSettings } from "./order/refund/settings";
|
|
17
18
|
export { IkasProduct, IkasProductType } from "./product/index";
|
|
18
19
|
export { IkasProductVariantType } from "./product/variant-type/index";
|
|
19
20
|
export { IkasProductVariant } from "./product/variant/index";
|
|
@@ -26,6 +26,7 @@ export declare class IkasOrder {
|
|
|
26
26
|
orderPackages: IkasOrderPackage[] | null;
|
|
27
27
|
currencyRates: IkasOrderCurrencyRate[] | null;
|
|
28
28
|
customerStore: IkasCustomerStore;
|
|
29
|
+
private _refundSettings;
|
|
29
30
|
constructor(data: IkasOrder);
|
|
30
31
|
get refundableItems(): IkasOrderLineItem[];
|
|
31
32
|
get unfullfilledItems(): IkasOrderLineItem[];
|
|
@@ -93,9 +94,22 @@ export declare enum IkasOrderPaymentStatus {
|
|
|
93
94
|
PARTIALLY_PAID = "PARTIALLY_PAID"
|
|
94
95
|
}
|
|
95
96
|
export declare enum IkasOrderPackageStatus {
|
|
96
|
-
|
|
97
|
+
CANCELLED = "CANCELLED",
|
|
98
|
+
CANCEL_REJECTED = "CANCEL_REJECTED",
|
|
99
|
+
CANCEL_REQUESTED = "CANCEL_REQUESTED",
|
|
100
|
+
DELIVERED = "DELIVERED",
|
|
101
|
+
FULFILLED = "FULFILLED",
|
|
102
|
+
READY_FOR_SHIPMENT = "READY_FOR_SHIPMENT",
|
|
103
|
+
PARTIALLY_CANCELLED = "PARTIALLY_CANCELLED",
|
|
104
|
+
PARTIALLY_DELIVERED = "PARTIALLY_DELIVERED",
|
|
97
105
|
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
|
|
98
|
-
|
|
106
|
+
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
107
|
+
REFUNDED = "REFUNDED",
|
|
108
|
+
REFUND_REJECTED = "REFUND_REJECTED",
|
|
109
|
+
REFUND_REQUESTED = "REFUND_REQUESTED",
|
|
110
|
+
REFUND_REQUEST_ACCEPTED = "REFUND_REQUEST_ACCEPTED",
|
|
111
|
+
UNABLE_TO_DELIVER = "UNABLE_TO_DELIVER",
|
|
112
|
+
UNFULFILLED = "UNFULFILLED"
|
|
99
113
|
}
|
|
100
114
|
export declare enum IkasOrderPackageFulfillStatus {
|
|
101
115
|
DELIVERED = "DELIVERED",
|
|
@@ -4,6 +4,7 @@ export declare class IkasOrderLineItem {
|
|
|
4
4
|
id: string;
|
|
5
5
|
createdAt: string;
|
|
6
6
|
updatedAt: string;
|
|
7
|
+
orderedAt: string;
|
|
7
8
|
deleted: boolean;
|
|
8
9
|
currencyCode: string;
|
|
9
10
|
discount?: IkasOrderLineDiscount | null;
|
|
@@ -17,6 +18,7 @@ export declare class IkasOrderLineItem {
|
|
|
17
18
|
variant: IkasOrderLineVariant;
|
|
18
19
|
status: OrderLineItemStatusEnum;
|
|
19
20
|
constructor(data: Partial<IkasOrderLineItem>);
|
|
21
|
+
get orderedAtDays(): number;
|
|
20
22
|
get priceWithQuantity(): number;
|
|
21
23
|
get finalPriceWithQuantity(): number;
|
|
22
24
|
get tax(): number;
|
|
@@ -9,6 +9,7 @@ export declare class IkasCustomerStore {
|
|
|
9
9
|
private _visitorSubscribedEmail;
|
|
10
10
|
private _lastViewedProducts;
|
|
11
11
|
private _customerConsentGranted;
|
|
12
|
+
private _refundSettings?;
|
|
12
13
|
constructor(baseStore?: IkasBaseStore);
|
|
13
14
|
get initialized(): boolean;
|
|
14
15
|
get canCreateEmailSubscription(): boolean;
|
|
@@ -30,6 +31,7 @@ export declare class IkasCustomerStore {
|
|
|
30
31
|
}) => Promise<IkasOrderTransaction[]>;
|
|
31
32
|
getFavoriteProductsIds: () => Promise<IkasFavoriteProduct[]>;
|
|
32
33
|
getFavoriteProducts: () => Promise<IkasProduct[]>;
|
|
34
|
+
getOrderRefundSettings: () => Promise<void>;
|
|
33
35
|
addItemToFavorite: (productId: string) => Promise<boolean>;
|
|
34
36
|
removeItemFromFavorite: (productId: string) => Promise<boolean>;
|
|
35
37
|
isProductFavorite: (productId: string) => Promise<boolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "0.0.160-alpha.
|
|
3
|
+
"version": "0.0.160-alpha.8",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"module": "./build/index.es.js",
|
|
6
6
|
"author": "Umut Ozan Yıldırım",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"graphql": "^15.3.0",
|
|
32
32
|
"graphql-tag": "^2.10.3",
|
|
33
33
|
"lodash": "^4.17.20",
|
|
34
|
+
"moment": "^2.29.1",
|
|
34
35
|
"node-fetch": "^2.6.1",
|
|
35
36
|
"query-string": "^6.13.8",
|
|
36
37
|
"uuid": "^8.3.2"
|