nextemos 5.4.3 → 5.4.5
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/payment/payment.types.d.ts +1 -0
- package/dist/services/shoppingcart/index.js +3 -0
- package/dist/services/shoppingcart/shoppingcart.types.d.ts +6 -1
- package/dist/services/urls.d.ts +1 -0
- package/dist/services/urls.js +1 -0
- package/package.json +1 -1
|
@@ -32,6 +32,8 @@ export interface IDoFreeOfChargeTransactionResponse extends ITransactionResponse
|
|
|
32
32
|
export interface IGetInstallmentOptionsResponse extends IResponse {
|
|
33
33
|
installmentOptions: IInstallmentOption[];
|
|
34
34
|
}
|
|
35
|
+
export interface IDoGarantipayTransactionResponse extends ITransactionResponse {
|
|
36
|
+
}
|
|
35
37
|
export interface IGetPreInfoFormResponse extends IResponse {
|
|
36
38
|
form: string;
|
|
37
39
|
}
|
|
@@ -87,6 +87,9 @@ exports.ShoppingCartService = {
|
|
|
87
87
|
DoFreeOfChargeTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
88
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
89
|
}),
|
|
90
|
+
DoGarantipayTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
91
|
+
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) }));
|
|
92
|
+
}),
|
|
90
93
|
GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
91
94
|
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) }));
|
|
92
95
|
}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse } 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 IDoGarantipayTransactionRequest extends IGetCartRequest {
|
|
102
|
+
isApprovedToSalesAggreementForm: boolean;
|
|
103
|
+
isApprovedToPreInformationForm: boolean;
|
|
104
|
+
}
|
|
101
105
|
export interface IGetPreInfoFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
102
106
|
}
|
|
103
107
|
export interface IGetSalesAggreementFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
@@ -122,6 +126,7 @@ export interface IShoppingCartService extends IService {
|
|
|
122
126
|
DoIyzicoCreditCardTransaction: (data: IDoIyzicoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoCreditCardTransactionResponse>>;
|
|
123
127
|
DoIyzicoTransaction: (data: IDoIyzicoTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoTransactionResponse>>;
|
|
124
128
|
DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
|
|
129
|
+
DoGarantipayTransaction: (data: IDoGarantipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoGarantipayTransactionResponse>>;
|
|
125
130
|
GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
|
|
126
131
|
GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
|
|
127
132
|
AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
package/dist/services/urls.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ declare const _default: {
|
|
|
145
145
|
DoIyzicoCreditCardTransaction: string;
|
|
146
146
|
DoIyzicoTransaction: string;
|
|
147
147
|
DoFreeOfChargeTransaction: string;
|
|
148
|
+
DoGarantipayTransaction: string;
|
|
148
149
|
GetPreInfoForm: string;
|
|
149
150
|
GetSalesAggreementForm: string;
|
|
150
151
|
AddGiftBoxNote: string;
|
package/dist/services/urls.js
CHANGED
|
@@ -156,6 +156,7 @@ exports.default = {
|
|
|
156
156
|
DoIyzicoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoCreditCardTransaction",
|
|
157
157
|
DoIyzicoTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction",
|
|
158
158
|
DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
|
|
159
|
+
DoGarantipayTransaction: "/{language}/ShoppingCartGateway/v1/DoGarantipayTransaction",
|
|
159
160
|
GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
|
|
160
161
|
GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
|
|
161
162
|
AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
|