nextemos 5.5.9 → 5.5.10

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 IGetAvailableStoresForCartResponse extends IResponse {
25
25
  }
26
26
  export interface IDoTransferTransactionResponse extends ITransactionResponse {
27
27
  }
28
+ export interface IDoHepsipayTransactionResponse extends ITransactionResponse {
29
+ }
28
30
  export interface IDoCreditCardTransactionResponse extends ITransactionResponse {
29
31
  }
30
32
  export interface IDoIyzicoCreditCardTransactionResponse extends ITransactionResponse {
@@ -93,6 +93,9 @@ exports.ShoppingCartService = {
93
93
  DoGarantipayTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
94
94
  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) }));
95
95
  }),
96
+ DoHepsipayTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
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
+ }),
96
99
  GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
97
100
  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) }));
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 } from "../..";
1
+ import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse, IDoHepsipayTransactionResponse } from "../..";
2
2
  export interface IAddToCartRequest {
3
3
  flags?: string | number | string[];
4
4
  productId: number;
@@ -102,6 +102,10 @@ export interface IDoGarantipayTransactionRequest extends IGetCartRequest {
102
102
  isApprovedToSalesAggreementForm: boolean;
103
103
  isApprovedToPreInformationForm: boolean;
104
104
  }
105
+ export interface IDoHepsipayTransactionRequest extends IGetCartRequest {
106
+ isApprovedToSalesAggreementForm: boolean;
107
+ isApprovedToPreInformationForm: boolean;
108
+ }
105
109
  export interface IGetPreInfoFormRequest extends Omit<IGetCartRequest, "flags"> {
106
110
  }
107
111
  export interface IGetSalesAggreementFormRequest extends Omit<IGetCartRequest, "flags"> {
@@ -129,6 +133,7 @@ export interface IShoppingCartService extends IService {
129
133
  DoIyzicoTransaction: (data: IDoIyzicoTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoTransactionResponse>>;
130
134
  DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
131
135
  DoGarantipayTransaction: (data: IDoGarantipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoGarantipayTransactionResponse>>;
136
+ DoHepsipayTransaction: (data: IDoHepsipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoHepsipayTransactionResponse>>;
132
137
  GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
133
138
  GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
134
139
  AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
@@ -154,6 +154,7 @@ declare const _default: {
154
154
  DoIyzicoTransaction: string;
155
155
  DoFreeOfChargeTransaction: string;
156
156
  DoGarantipayTransaction: string;
157
+ DoHepsipayTransaction: string;
157
158
  GetPreInfoForm: string;
158
159
  GetSalesAggreementForm: string;
159
160
  AddGiftBoxNote: string;
@@ -165,6 +165,7 @@ exports.default = {
165
165
  DoIyzicoTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction",
166
166
  DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
167
167
  DoGarantipayTransaction: "/{language}/ShoppingCartGateway/v1/DoGarantipayTransaction",
168
+ DoHepsipayTransaction: "/{language}/ShoppingCartGateway/v1/DoHepsipayTransaction",
168
169
  GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
169
170
  GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
170
171
  AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.5.9",
3
+ "version": "5.5.10",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",