nextemos 4.7.1 → 4.7.3
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.
|
@@ -114,6 +114,7 @@ export interface IGetStockAlertsRequest extends IRequestBase {
|
|
|
114
114
|
export interface IAddStockAlertRequest extends IRequestBase {
|
|
115
115
|
productStockAlerts: {
|
|
116
116
|
productId: number;
|
|
117
|
+
stockBarCodeId: number;
|
|
117
118
|
}[];
|
|
118
119
|
}
|
|
119
120
|
export interface IRemoveStockAlertRequest extends IRequestBase {
|
|
@@ -96,4 +96,15 @@ exports.ShoppingCartService = {
|
|
|
96
96
|
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
97
97
|
});
|
|
98
98
|
},
|
|
99
|
+
ChangeCartDetail: function (data, options) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
102
|
+
serviceUrl: this.ServiceUrl(),
|
|
103
|
+
prefix: this.Prefix,
|
|
104
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
105
|
+
language: data === null || data === void 0 ? void 0 : data.language,
|
|
106
|
+
methodName: urls_1.default.ShoppingCart.ChangeCartDetail,
|
|
107
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
108
|
+
});
|
|
109
|
+
},
|
|
99
110
|
};
|
|
@@ -40,10 +40,31 @@ export interface IChangeQuantityRequest extends IGetCartRequest {
|
|
|
40
40
|
itemId: string;
|
|
41
41
|
quantity: number;
|
|
42
42
|
}
|
|
43
|
+
export interface IChangeCartDetailRequest extends IGetCartRequest {
|
|
44
|
+
orderNote?: string;
|
|
45
|
+
giftBoxNote?: string;
|
|
46
|
+
memberNote?: string;
|
|
47
|
+
shipperId?: number;
|
|
48
|
+
shippingAddressId?: number;
|
|
49
|
+
invoiceAddressId?: number;
|
|
50
|
+
isGiftBoxRequested?: boolean;
|
|
51
|
+
wareHouseId?: number;
|
|
52
|
+
paymentTypeId?: number;
|
|
53
|
+
payAtDoorPaymentTypeId?: number;
|
|
54
|
+
deliveryDate?: string;
|
|
55
|
+
deliveredPerson?: string;
|
|
56
|
+
sitePoint?: number;
|
|
57
|
+
bankPoint?: number;
|
|
58
|
+
couponCode?: string;
|
|
59
|
+
couponPrice?: number;
|
|
60
|
+
cardBin?: string;
|
|
61
|
+
reComputeShipper?: boolean;
|
|
62
|
+
}
|
|
43
63
|
export interface IShoppingCartService extends IService {
|
|
44
64
|
AddToCart: (data: IAddToCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
45
65
|
GetCartItemCount: (data: IGetCartItemCountRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartItemCountResponse>>;
|
|
46
66
|
GetCart: (data: IGetCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
47
67
|
RemoveFromCart: (data: IRemoveFromCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
48
68
|
ChangeQuantity: (data: IChangeQuantityRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
69
|
+
ChangeCartDetail: (data: IChangeCartDetailRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
49
70
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -105,6 +105,7 @@ exports.default = {
|
|
|
105
105
|
GetCart: '/{language}/ShoppingCartGateway/v1/GetCart',
|
|
106
106
|
RemoveFromCart: '/{language}/ShoppingCartGateway/v1/RemoveFromCart',
|
|
107
107
|
ChangeQuantity: '/{language}/ShoppingCartGateway/v1/ChangeQuantity',
|
|
108
|
+
ChangeCartDetail: '/{language}/ShoppingCartGateway/v1/ChangeCartDetail',
|
|
108
109
|
},
|
|
109
110
|
};
|
|
110
111
|
const getUrl = ({ isClient = false, language = process.env.DEFAULT_LANGUAGE || "tr", methodName, serviceUrl, prefix, id = '' }) => {
|