nextemos 6.0.1 → 6.0.2
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,6 +31,8 @@ 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 {
|
|
@@ -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
|
}),
|
|
@@ -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 } from "../..";
|
|
2
2
|
export interface IAddToCartRequest {
|
|
3
3
|
flags?: string | number | string[];
|
|
4
4
|
productId: number;
|
|
@@ -110,6 +110,8 @@ export interface IDoBkmExpressTransactionRequest extends IGetCartRequest {
|
|
|
110
110
|
isApprovedToSalesAggreementForm: boolean;
|
|
111
111
|
isApprovedToPreInformationForm: boolean;
|
|
112
112
|
}
|
|
113
|
+
export interface IDoParamTransactionRequest extends Omit<IDoCreditCardTransactionRequest, "supplier" | "saveCreditCardIntoSupplier" | "bankPoint"> {
|
|
114
|
+
}
|
|
113
115
|
interface ICartFormRequestBase extends Omit<IGetCartRequest, "flags"> {
|
|
114
116
|
paymentMethodTypeId?: number;
|
|
115
117
|
installmentId?: number;
|
|
@@ -148,6 +150,7 @@ export interface IShoppingCartService extends IService {
|
|
|
148
150
|
GetInstallmentOptions: (data: IGetInstallmentOptionsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetInstallmentOptionsResponse>>;
|
|
149
151
|
DoTransferTransaction: (data: IDoTransferTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoTransferTransactionResponse>>;
|
|
150
152
|
DoCreditCardTransaction: (data: IDoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoCreditCardTransactionResponse>>;
|
|
153
|
+
DoParamTransaction: (data: IDoParamTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoParamTransactionResponse>>;
|
|
151
154
|
DoIyzicoCreditCardTransaction: (data: IDoIyzicoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoCreditCardTransactionResponse>>;
|
|
152
155
|
DoIyzicoTransaction: (data: IDoIyzicoTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoTransactionResponse>>;
|
|
153
156
|
DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
|
package/dist/services/urls.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ 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;
|
package/dist/services/urls.js
CHANGED
|
@@ -173,6 +173,7 @@ 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",
|