nextemos 5.1.15 → 5.1.17
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/interfaces/shoppingcart.d.ts +2 -0
- package/dist/services/product/index.js +3 -3
- package/dist/services/shoppingcart/index.js +3 -0
- package/dist/services/shoppingcart/shoppingcart.types.d.ts +7 -1
- package/dist/services/urls.d.ts +1 -0
- package/dist/services/urls.js +1 -0
- package/package.json +1 -1
|
@@ -27,6 +27,8 @@ export interface IDoIyzicoCreditCardTransactionResponse extends ITransactionResp
|
|
|
27
27
|
}
|
|
28
28
|
export interface IDoIyzicoTransactionResponse extends ITransactionResponse {
|
|
29
29
|
}
|
|
30
|
+
export interface IDoFreeOfChargeTransactionResponse extends ITransactionResponse {
|
|
31
|
+
}
|
|
30
32
|
export interface IGetInstallmentOptionsResponse extends IResponse {
|
|
31
33
|
installmentOptions: IInstallmentOption[];
|
|
32
34
|
}
|
|
@@ -61,13 +61,13 @@ exports.ProductService = {
|
|
|
61
61
|
return (0, __1.fetchRequest)().post(exports.ProductService.Url(urls_1.default.Product.GetAllProductsRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
62
62
|
}),
|
|
63
63
|
CategoryTree: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
64
|
-
return (0, __1.fetchRequest)().
|
|
64
|
+
return (0, __1.fetchRequest)().post(exports.ProductService.Url(urls_1.default.ProductCategory.CategoryTree, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
65
65
|
}),
|
|
66
66
|
AllCategories: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
67
|
-
return (0, __1.fetchRequest)().
|
|
67
|
+
return (0, __1.fetchRequest)().post(exports.ProductService.Url(urls_1.default.ProductCategory.All, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
68
68
|
}),
|
|
69
69
|
Hierarchy: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
70
|
-
return (0, __1.fetchRequest)().
|
|
70
|
+
return (0, __1.fetchRequest)().post(exports.ProductService.Url(urls_1.default.ProductCategory.Hierarchy, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
71
71
|
}),
|
|
72
72
|
ProductCategory: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
73
73
|
var _a;
|
|
@@ -84,6 +84,9 @@ exports.ShoppingCartService = {
|
|
|
84
84
|
DoIyzicoTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
85
85
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoIyzicoTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
86
86
|
}),
|
|
87
|
+
DoFreeOfChargeTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
88
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoFreeOfChargeTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
89
|
+
}),
|
|
87
90
|
GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
88
91
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.GetPreInfoForm, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
89
92
|
}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse } from "../..";
|
|
2
2
|
export interface IAddToCartRequest {
|
|
3
3
|
flags?: string | number | string[];
|
|
4
4
|
productId: number;
|
|
@@ -94,6 +94,11 @@ export interface IDoIyzicoTransactionRequest extends IGetCartRequest {
|
|
|
94
94
|
isApprovedToSalesAggreementForm: boolean;
|
|
95
95
|
isApprovedToPreInformationForm: boolean;
|
|
96
96
|
}
|
|
97
|
+
export interface IDoFreeOfChargeTransactionRequest extends IGetCartRequest {
|
|
98
|
+
isApprovedToSalesAggreementForm: boolean;
|
|
99
|
+
isApprovedToPreInformationForm: boolean;
|
|
100
|
+
paymentTypeId: number;
|
|
101
|
+
}
|
|
97
102
|
export interface IGetPreInfoFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
98
103
|
}
|
|
99
104
|
export interface IGetSalesAggreementFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
@@ -110,6 +115,7 @@ export interface IShoppingCartService extends IService {
|
|
|
110
115
|
DoCreditCardTransaction: (data: IDoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoCreditCardTransactionResponse>>;
|
|
111
116
|
DoIyzicoCreditCardTransaction: (data: IDoIyzicoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoCreditCardTransactionResponse>>;
|
|
112
117
|
DoIyzicoTransaction: (data: IDoIyzicoTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoTransactionResponse>>;
|
|
118
|
+
DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
|
|
113
119
|
GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
|
|
114
120
|
GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
|
|
115
121
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -127,6 +127,7 @@ exports.default = {
|
|
|
127
127
|
DoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoCreditCardTransaction",
|
|
128
128
|
DoIyzicoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoCreditCardTransaction",
|
|
129
129
|
DoIyzicoTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction",
|
|
130
|
+
DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
|
|
130
131
|
GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
|
|
131
132
|
GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
|
|
132
133
|
},
|