nextemos 5.5.15 → 5.5.16
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.
|
@@ -27,6 +27,8 @@ export interface IDoTransferTransactionResponse extends ITransactionResponse {
|
|
|
27
27
|
}
|
|
28
28
|
export interface IDoHepsipayTransactionResponse extends ITransactionResponse {
|
|
29
29
|
}
|
|
30
|
+
export interface IDoBkmExpressTransactionResponse extends ITransactionResponse {
|
|
31
|
+
}
|
|
30
32
|
export interface IDoCreditCardTransactionResponse extends ITransactionResponse {
|
|
31
33
|
}
|
|
32
34
|
export interface IDoIyzicoCreditCardTransactionResponse extends ITransactionResponse {
|
|
@@ -96,6 +96,9 @@ exports.ShoppingCartService = {
|
|
|
96
96
|
DoHepsipayTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
97
97
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoHepsipayTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
98
98
|
}),
|
|
99
|
+
DoBkmExpressTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
100
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoBkmExpressTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
101
|
+
}),
|
|
99
102
|
GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
100
103
|
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) }));
|
|
101
104
|
}),
|
|
@@ -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 } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse, IDoHepsipayTransactionResponse, IDoBkmExpressTransactionResponse } from "../..";
|
|
2
2
|
export interface IAddToCartRequest {
|
|
3
3
|
flags?: string | number | string[];
|
|
4
4
|
productId: number;
|
|
@@ -106,6 +106,10 @@ export interface IDoHepsipayTransactionRequest extends IGetCartRequest {
|
|
|
106
106
|
isApprovedToSalesAggreementForm: boolean;
|
|
107
107
|
isApprovedToPreInformationForm: boolean;
|
|
108
108
|
}
|
|
109
|
+
export interface IDoBkmExpressTransactionRequest extends IGetCartRequest {
|
|
110
|
+
isApprovedToSalesAggreementForm: boolean;
|
|
111
|
+
isApprovedToPreInformationForm: boolean;
|
|
112
|
+
}
|
|
109
113
|
export interface IGetPreInfoFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
110
114
|
}
|
|
111
115
|
export interface IGetSalesAggreementFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
@@ -134,6 +138,7 @@ export interface IShoppingCartService extends IService {
|
|
|
134
138
|
DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
|
|
135
139
|
DoGarantipayTransaction: (data: IDoGarantipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoGarantipayTransactionResponse>>;
|
|
136
140
|
DoHepsipayTransaction: (data: IDoHepsipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoHepsipayTransactionResponse>>;
|
|
141
|
+
DoBkmExpressTransaction: (data: IDoBkmExpressTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoBkmExpressTransactionResponse>>;
|
|
137
142
|
GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
|
|
138
143
|
GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
|
|
139
144
|
AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
package/dist/services/urls.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ declare const _default: {
|
|
|
156
156
|
DoFreeOfChargeTransaction: string;
|
|
157
157
|
DoGarantipayTransaction: string;
|
|
158
158
|
DoHepsipayTransaction: string;
|
|
159
|
+
DoBkmExpressTransaction: string;
|
|
159
160
|
GetPreInfoForm: string;
|
|
160
161
|
GetSalesAggreementForm: string;
|
|
161
162
|
AddGiftBoxNote: string;
|
package/dist/services/urls.js
CHANGED
|
@@ -167,6 +167,7 @@ exports.default = {
|
|
|
167
167
|
DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
|
|
168
168
|
DoGarantipayTransaction: "/{language}/ShoppingCartGateway/v1/DoGarantipayTransaction",
|
|
169
169
|
DoHepsipayTransaction: "/{language}/ShoppingCartGateway/v1/DoHepsipayTransaction",
|
|
170
|
+
DoBkmExpressTransaction: "/{language}/ShoppingCartGateway/v1/DoBkmExpressTransaction",
|
|
170
171
|
GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
|
|
171
172
|
GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
|
|
172
173
|
AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
|