nextemos 4.11.0 → 4.11.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.
@@ -25,6 +25,8 @@ export interface IDoCreditCardTransactionResponse extends ITransactionResponse {
25
25
  }
26
26
  export interface IDoIyzicoCreditCardTransactionResponse extends ITransactionResponse {
27
27
  }
28
+ export interface IDoIyzicoTransactionResponse extends ITransactionResponse {
29
+ }
28
30
  export interface IGetInstallmentOptionsResponse extends IResponse {
29
31
  installmentOptions: IInstallmentOption[];
30
32
  }
@@ -76,4 +76,7 @@ exports.ShoppingCartService = {
76
76
  DoIyzicoCreditCardTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
77
77
  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) }));
78
78
  }),
79
+ DoIyzicoTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
80
+ return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoIyzicoTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
81
+ }),
79
82
  };
@@ -1,4 +1,4 @@
1
- import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse } from "../..";
1
+ import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse } from "../..";
2
2
  export interface IAddToCartRequest {
3
3
  flags?: string | number | string[];
4
4
  productId: number;
@@ -95,6 +95,10 @@ export interface IDoCreditCardTransactionRequest extends IGetCartRequest {
95
95
  }
96
96
  export interface IDoIyzicoCreditCardTransactionRequest extends Omit<IDoCreditCardTransactionRequest, "supplier" | "saveCreditCardIntoSupplier" | "bankPoint"> {
97
97
  }
98
+ export interface IDoIyzicoTransactionRequest extends IGetCartRequest {
99
+ isApprovedToSalesAggreementForm: boolean;
100
+ isApprovedToPreInformationForm: boolean;
101
+ }
98
102
  export interface IShoppingCartService extends IService {
99
103
  AddToCart: (data: IAddToCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
100
104
  GetCartItemCount: (data: IGetCartItemCountRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartItemCountResponse>>;
@@ -106,4 +110,5 @@ export interface IShoppingCartService extends IService {
106
110
  DoTransferTransaction: (data: IDoTransferTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoTransferTransactionResponse>>;
107
111
  DoCreditCardTransaction: (data: IDoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoCreditCardTransactionResponse>>;
108
112
  DoIyzicoCreditCardTransaction: (data: IDoIyzicoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoCreditCardTransactionResponse>>;
113
+ DoIyzicoTransaction: (data: IDoIyzicoTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoTransactionResponse>>;
109
114
  }
@@ -113,6 +113,7 @@ declare const _default: {
113
113
  DoTransferTransaction: string;
114
114
  DoCreditCardTransaction: string;
115
115
  DoIyzicoCreditCardTransaction: string;
116
+ DoIyzicoTransaction: string;
116
117
  };
117
118
  OrderManagement: {
118
119
  GetOrderDetails: string;
@@ -119,6 +119,7 @@ exports.default = {
119
119
  DoTransferTransaction: '/{language}/ShoppingCartGateway/v1/DoTransferTransaction',
120
120
  DoCreditCardTransaction: '/{language}/ShoppingCartGateway/v1/DoCreditCardTransaction',
121
121
  DoIyzicoCreditCardTransaction: '/{language}/ShoppingCartGateway/v1/DoIyzicoCreditCardTransaction',
122
+ DoIyzicoTransaction: '/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction',
122
123
  },
123
124
  OrderManagement: {
124
125
  GetOrderDetails: '/{language}/OrderManagement/v1/GetOrderDetails',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "4.11.0",
3
+ "version": "4.11.2",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",