nextemos 5.4.6 → 5.4.7
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TotalTypes } from "nextemos/enums";
|
|
2
2
|
import { IAddress } from "./address";
|
|
3
3
|
import { IResponse } from "./response";
|
|
4
|
+
import { IWarehouse } from "./stock";
|
|
4
5
|
export interface ITransactionResponse extends IResponse {
|
|
5
6
|
orderNo: string;
|
|
6
7
|
isCompleted: boolean;
|
|
@@ -19,6 +20,9 @@ export interface IGetCartResponse extends IResponse {
|
|
|
19
20
|
export interface IGetCartItemCountResponse extends IResponse {
|
|
20
21
|
count: number;
|
|
21
22
|
}
|
|
23
|
+
export interface IGetAvailableStoresForCartResponse extends IResponse {
|
|
24
|
+
data: IWarehouse[];
|
|
25
|
+
}
|
|
22
26
|
export interface IDoTransferTransactionResponse extends ITransactionResponse {
|
|
23
27
|
}
|
|
24
28
|
export interface IDoCreditCardTransactionResponse extends ITransactionResponse {
|
|
@@ -99,4 +99,7 @@ exports.ShoppingCartService = {
|
|
|
99
99
|
AddGiftBoxNote: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
100
100
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.AddGiftBoxNote, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
101
101
|
}),
|
|
102
|
+
GetAvailableStoresForCart: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
103
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.GetAvailableStoresForCart, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
104
|
+
}),
|
|
102
105
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse } from "../..";
|
|
2
2
|
export interface IAddToCartRequest {
|
|
3
3
|
flags?: string | number | string[];
|
|
4
4
|
productId: number;
|
|
@@ -113,6 +113,8 @@ export interface IAddGiftBoxNoteRequest extends IGetCartRequest {
|
|
|
113
113
|
isGiftBoxRequested: boolean;
|
|
114
114
|
}[];
|
|
115
115
|
}
|
|
116
|
+
export interface IGetAvailableStoresForCartRequest extends Omit<IGetCartRequest, "flags"> {
|
|
117
|
+
}
|
|
116
118
|
export interface IShoppingCartService extends IService {
|
|
117
119
|
AddToCart: (data: IAddToCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
118
120
|
GetCartItemCount: (data: IGetCartItemCountRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartItemCountResponse>>;
|
|
@@ -130,4 +132,5 @@ export interface IShoppingCartService extends IService {
|
|
|
130
132
|
GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
|
|
131
133
|
GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
|
|
132
134
|
AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
135
|
+
GetAvailableStoresForCart: (data: IGetAvailableStoresForCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetAvailableStoresForCartResponse>>;
|
|
133
136
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -160,6 +160,7 @@ exports.default = {
|
|
|
160
160
|
GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
|
|
161
161
|
GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
|
|
162
162
|
AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
|
|
163
|
+
GetAvailableStoresForCart: "/{language}/ShoppingCartGateway/v1/GetAvailableStoresForCart",
|
|
163
164
|
},
|
|
164
165
|
OrderManagement: {
|
|
165
166
|
GetMemberOrderDetails: "/{language}/OrderManagement/v1/GetMemberOrderDetails",
|