nextemos 6.0.1 → 6.0.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.
|
@@ -31,12 +31,16 @@ export interface IDoPayAtDoorTransactionResponse extends ITransactionResponse {
|
|
|
31
31
|
}
|
|
32
32
|
export interface IDoCreditCardTransactionResponse extends ITransactionResponse {
|
|
33
33
|
}
|
|
34
|
+
export interface IDoParamTransactionResponse extends ITransactionResponse {
|
|
35
|
+
}
|
|
34
36
|
export interface IDoIyzicoCreditCardTransactionResponse extends ITransactionResponse {
|
|
35
37
|
}
|
|
36
38
|
export interface IDoIyzicoTransactionResponse extends ITransactionResponse {
|
|
37
39
|
}
|
|
38
40
|
export interface IDoFreeOfChargeTransactionResponse extends ITransactionResponse {
|
|
39
41
|
}
|
|
42
|
+
export interface IDoOtherPaymentTransactionResponse extends ITransactionResponse {
|
|
43
|
+
}
|
|
40
44
|
export interface IGetInstallmentOptionsResponse extends IResponse {
|
|
41
45
|
installmentOptions: IInstallmentOption[];
|
|
42
46
|
}
|
|
@@ -81,6 +81,9 @@ exports.ShoppingCartService = {
|
|
|
81
81
|
DoCreditCardTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
82
82
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoCreditCardTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
83
83
|
}),
|
|
84
|
+
DoParamTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
85
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoParamTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
86
|
+
}),
|
|
84
87
|
DoIyzicoCreditCardTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
85
88
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoIyzicoCreditCardTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
86
89
|
}),
|
|
@@ -90,6 +93,9 @@ exports.ShoppingCartService = {
|
|
|
90
93
|
DoFreeOfChargeTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
91
94
|
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) }));
|
|
92
95
|
}),
|
|
96
|
+
DoOtherPaymentTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
97
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoOtherPaymentTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
98
|
+
}),
|
|
93
99
|
DoGarantipayTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
94
100
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoGarantipayTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
95
101
|
}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse, IDoHepsipayTransactionResponse, IDoBkmExpressTransactionResponse, IDoPayAtDoorTransactionResponse } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse, IDoHepsipayTransactionResponse, IDoBkmExpressTransactionResponse, IDoPayAtDoorTransactionResponse, IDoParamTransactionResponse, IDoOtherPaymentTransactionResponse } from "../..";
|
|
2
2
|
export interface IAddToCartRequest {
|
|
3
3
|
flags?: string | number | string[];
|
|
4
4
|
productId: number;
|
|
@@ -98,6 +98,10 @@ export interface IDoFreeOfChargeTransactionRequest extends IGetCartRequest {
|
|
|
98
98
|
isApprovedToSalesAggreementForm: boolean;
|
|
99
99
|
isApprovedToPreInformationForm: boolean;
|
|
100
100
|
}
|
|
101
|
+
export interface IDoOtherPaymentTransactionRequest extends IGetCartRequest {
|
|
102
|
+
isApprovedToSalesAggreementForm: boolean;
|
|
103
|
+
isApprovedToPreInformationForm: boolean;
|
|
104
|
+
}
|
|
101
105
|
export interface IDoGarantipayTransactionRequest extends IGetCartRequest {
|
|
102
106
|
isApprovedToSalesAggreementForm: boolean;
|
|
103
107
|
isApprovedToPreInformationForm: boolean;
|
|
@@ -110,6 +114,8 @@ export interface IDoBkmExpressTransactionRequest extends IGetCartRequest {
|
|
|
110
114
|
isApprovedToSalesAggreementForm: boolean;
|
|
111
115
|
isApprovedToPreInformationForm: boolean;
|
|
112
116
|
}
|
|
117
|
+
export interface IDoParamTransactionRequest extends Omit<IDoCreditCardTransactionRequest, "supplier" | "saveCreditCardIntoSupplier" | "bankPoint"> {
|
|
118
|
+
}
|
|
113
119
|
interface ICartFormRequestBase extends Omit<IGetCartRequest, "flags"> {
|
|
114
120
|
paymentMethodTypeId?: number;
|
|
115
121
|
installmentId?: number;
|
|
@@ -148,6 +154,7 @@ export interface IShoppingCartService extends IService {
|
|
|
148
154
|
GetInstallmentOptions: (data: IGetInstallmentOptionsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetInstallmentOptionsResponse>>;
|
|
149
155
|
DoTransferTransaction: (data: IDoTransferTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoTransferTransactionResponse>>;
|
|
150
156
|
DoCreditCardTransaction: (data: IDoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoCreditCardTransactionResponse>>;
|
|
157
|
+
DoParamTransaction: (data: IDoParamTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoParamTransactionResponse>>;
|
|
151
158
|
DoIyzicoCreditCardTransaction: (data: IDoIyzicoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoCreditCardTransactionResponse>>;
|
|
152
159
|
DoIyzicoTransaction: (data: IDoIyzicoTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoTransactionResponse>>;
|
|
153
160
|
DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
|
|
@@ -155,6 +162,7 @@ export interface IShoppingCartService extends IService {
|
|
|
155
162
|
DoHepsipayTransaction: (data: IDoHepsipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoHepsipayTransactionResponse>>;
|
|
156
163
|
DoBkmExpressTransaction: (data: IDoBkmExpressTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoBkmExpressTransactionResponse>>;
|
|
157
164
|
DoPayAtDoorTransaction: (data: IDoPayAtDoorTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoPayAtDoorTransactionResponse>>;
|
|
165
|
+
DoOtherPaymentTransaction: (data: IDoOtherPaymentTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoOtherPaymentTransactionResponse>>;
|
|
158
166
|
GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
|
|
159
167
|
GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
|
|
160
168
|
AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
package/dist/services/urls.d.ts
CHANGED
|
@@ -162,9 +162,11 @@ declare const _default: {
|
|
|
162
162
|
GetInstallmentOptions: string;
|
|
163
163
|
DoTransferTransaction: string;
|
|
164
164
|
DoCreditCardTransaction: string;
|
|
165
|
+
DoParamTransaction: string;
|
|
165
166
|
DoIyzicoCreditCardTransaction: string;
|
|
166
167
|
DoIyzicoTransaction: string;
|
|
167
168
|
DoFreeOfChargeTransaction: string;
|
|
169
|
+
DoOtherPaymentTransaction: string;
|
|
168
170
|
DoGarantipayTransaction: string;
|
|
169
171
|
DoHepsipayTransaction: string;
|
|
170
172
|
DoBkmExpressTransaction: string;
|
package/dist/services/urls.js
CHANGED
|
@@ -173,9 +173,11 @@ exports.default = {
|
|
|
173
173
|
GetInstallmentOptions: "/{language}/ShoppingCartGateway/v1/GetInstallmentOptions",
|
|
174
174
|
DoTransferTransaction: "/{language}/ShoppingCartGateway/v1/DoTransferTransaction",
|
|
175
175
|
DoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoCreditCardTransaction",
|
|
176
|
+
DoParamTransaction: "/{language}/ShoppingCartGateway/v1/DoParamTransaction",
|
|
176
177
|
DoIyzicoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoCreditCardTransaction",
|
|
177
178
|
DoIyzicoTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction",
|
|
178
179
|
DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
|
|
180
|
+
DoOtherPaymentTransaction: "/{language}/ShoppingCartGateway/v1/DoOtherPaymentTransaction",
|
|
179
181
|
DoGarantipayTransaction: "/{language}/ShoppingCartGateway/v1/DoGarantipayTransaction",
|
|
180
182
|
DoHepsipayTransaction: "/{language}/ShoppingCartGateway/v1/DoHepsipayTransaction",
|
|
181
183
|
DoBkmExpressTransaction: "/{language}/ShoppingCartGateway/v1/DoBkmExpressTransaction",
|