nextemos 5.0.19 → 5.0.20
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.
|
@@ -30,6 +30,12 @@ export interface IDoIyzicoTransactionResponse extends ITransactionResponse {
|
|
|
30
30
|
export interface IGetInstallmentOptionsResponse extends IResponse {
|
|
31
31
|
installmentOptions: IInstallmentOption[];
|
|
32
32
|
}
|
|
33
|
+
export interface IGetPreInfoFormResponse extends IResponse {
|
|
34
|
+
form: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IGetSalesAggreementFormResponse extends IResponse {
|
|
37
|
+
form: string;
|
|
38
|
+
}
|
|
33
39
|
export interface ICart {
|
|
34
40
|
documentId: string;
|
|
35
41
|
docNo: string;
|
|
@@ -84,4 +84,10 @@ 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
|
+
GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
88
|
+
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
|
+
}),
|
|
90
|
+
GetSalesAggreementForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
91
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.GetSalesAggreementForm, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
92
|
+
}),
|
|
87
93
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse } from "../..";
|
|
2
2
|
export interface IAddToCartRequest {
|
|
3
3
|
flags?: string | number | string[];
|
|
4
4
|
productId: number;
|
|
@@ -94,6 +94,10 @@ export interface IDoIyzicoTransactionRequest extends IGetCartRequest {
|
|
|
94
94
|
isApprovedToSalesAggreementForm: boolean;
|
|
95
95
|
isApprovedToPreInformationForm: boolean;
|
|
96
96
|
}
|
|
97
|
+
export interface IGetPreInfoFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
98
|
+
}
|
|
99
|
+
export interface IGetSalesAggreementFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
100
|
+
}
|
|
97
101
|
export interface IShoppingCartService extends IService {
|
|
98
102
|
AddToCart: (data: IAddToCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
99
103
|
GetCartItemCount: (data: IGetCartItemCountRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartItemCountResponse>>;
|
|
@@ -106,4 +110,6 @@ export interface IShoppingCartService extends IService {
|
|
|
106
110
|
DoCreditCardTransaction: (data: IDoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoCreditCardTransactionResponse>>;
|
|
107
111
|
DoIyzicoCreditCardTransaction: (data: IDoIyzicoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoCreditCardTransactionResponse>>;
|
|
108
112
|
DoIyzicoTransaction: (data: IDoIyzicoTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoTransactionResponse>>;
|
|
113
|
+
GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
|
|
114
|
+
GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
|
|
109
115
|
}
|
package/dist/services/urls.d.ts
CHANGED
|
@@ -115,6 +115,8 @@ declare const _default: {
|
|
|
115
115
|
DoCreditCardTransaction: string;
|
|
116
116
|
DoIyzicoCreditCardTransaction: string;
|
|
117
117
|
DoIyzicoTransaction: string;
|
|
118
|
+
GetPreInfoForm: string;
|
|
119
|
+
GetSalesAggreementForm: string;
|
|
118
120
|
};
|
|
119
121
|
OrderManagement: {
|
|
120
122
|
GetMemberOrderDetails: string;
|
package/dist/services/urls.js
CHANGED
|
@@ -126,6 +126,8 @@ exports.default = {
|
|
|
126
126
|
DoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoCreditCardTransaction",
|
|
127
127
|
DoIyzicoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoCreditCardTransaction",
|
|
128
128
|
DoIyzicoTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction",
|
|
129
|
+
GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
|
|
130
|
+
GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
|
|
129
131
|
},
|
|
130
132
|
OrderManagement: {
|
|
131
133
|
GetMemberOrderDetails: "/{language}/OrderManagement/v1/GetMemberOrderDetails",
|