nextemos 6.0.2 → 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.
@@ -39,6 +39,8 @@ export interface IDoIyzicoTransactionResponse extends ITransactionResponse {
39
39
  }
40
40
  export interface IDoFreeOfChargeTransactionResponse extends ITransactionResponse {
41
41
  }
42
+ export interface IDoOtherPaymentTransactionResponse extends ITransactionResponse {
43
+ }
42
44
  export interface IGetInstallmentOptionsResponse extends IResponse {
43
45
  installmentOptions: IInstallmentOption[];
44
46
  }
@@ -93,6 +93,9 @@ exports.ShoppingCartService = {
93
93
  DoFreeOfChargeTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
94
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) }));
95
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
+ }),
96
99
  DoGarantipayTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
97
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) }));
98
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, IDoParamTransactionResponse } 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;
@@ -158,6 +162,7 @@ export interface IShoppingCartService extends IService {
158
162
  DoHepsipayTransaction: (data: IDoHepsipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoHepsipayTransactionResponse>>;
159
163
  DoBkmExpressTransaction: (data: IDoBkmExpressTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoBkmExpressTransactionResponse>>;
160
164
  DoPayAtDoorTransaction: (data: IDoPayAtDoorTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoPayAtDoorTransactionResponse>>;
165
+ DoOtherPaymentTransaction: (data: IDoOtherPaymentTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoOtherPaymentTransactionResponse>>;
161
166
  GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
162
167
  GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
163
168
  AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
@@ -166,6 +166,7 @@ declare const _default: {
166
166
  DoIyzicoCreditCardTransaction: string;
167
167
  DoIyzicoTransaction: string;
168
168
  DoFreeOfChargeTransaction: string;
169
+ DoOtherPaymentTransaction: string;
169
170
  DoGarantipayTransaction: string;
170
171
  DoHepsipayTransaction: string;
171
172
  DoBkmExpressTransaction: string;
@@ -177,6 +177,7 @@ exports.default = {
177
177
  DoIyzicoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoCreditCardTransaction",
178
178
  DoIyzicoTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction",
179
179
  DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
180
+ DoOtherPaymentTransaction: "/{language}/ShoppingCartGateway/v1/DoOtherPaymentTransaction",
180
181
  DoGarantipayTransaction: "/{language}/ShoppingCartGateway/v1/DoGarantipayTransaction",
181
182
  DoHepsipayTransaction: "/{language}/ShoppingCartGateway/v1/DoHepsipayTransaction",
182
183
  DoBkmExpressTransaction: "/{language}/ShoppingCartGateway/v1/DoBkmExpressTransaction",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",