nextemos 5.1.15 → 5.1.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 IDoIyzicoCreditCardTransactionResponse extends ITransactionResp
27
27
  }
28
28
  export interface IDoIyzicoTransactionResponse extends ITransactionResponse {
29
29
  }
30
+ export interface IDoFreeOfChargeTransactionResponse extends ITransactionResponse {
31
+ }
30
32
  export interface IGetInstallmentOptionsResponse extends IResponse {
31
33
  installmentOptions: IInstallmentOption[];
32
34
  }
@@ -84,6 +84,9 @@ exports.ShoppingCartService = {
84
84
  DoIyzicoTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
85
85
  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) }));
86
86
  }),
87
+ DoFreeOfChargeTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
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
+ }),
87
90
  GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
88
91
  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) }));
89
92
  }),
@@ -1,4 +1,4 @@
1
- import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse } from "../..";
1
+ import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse } from "../..";
2
2
  export interface IAddToCartRequest {
3
3
  flags?: string | number | string[];
4
4
  productId: number;
@@ -94,6 +94,10 @@ export interface IDoIyzicoTransactionRequest extends IGetCartRequest {
94
94
  isApprovedToSalesAggreementForm: boolean;
95
95
  isApprovedToPreInformationForm: boolean;
96
96
  }
97
+ export interface IDoFreeOfChargeTransactionRequest extends IGetCartRequest {
98
+ isApprovedToSalesAggreementForm: boolean;
99
+ isApprovedToPreInformationForm: boolean;
100
+ }
97
101
  export interface IGetPreInfoFormRequest extends Omit<IGetCartRequest, "flags"> {
98
102
  }
99
103
  export interface IGetSalesAggreementFormRequest extends Omit<IGetCartRequest, "flags"> {
@@ -110,6 +114,7 @@ export interface IShoppingCartService extends IService {
110
114
  DoCreditCardTransaction: (data: IDoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoCreditCardTransactionResponse>>;
111
115
  DoIyzicoCreditCardTransaction: (data: IDoIyzicoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoCreditCardTransactionResponse>>;
112
116
  DoIyzicoTransaction: (data: IDoIyzicoTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoTransactionResponse>>;
117
+ DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
113
118
  GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
114
119
  GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
115
120
  }
@@ -116,6 +116,7 @@ declare const _default: {
116
116
  DoCreditCardTransaction: string;
117
117
  DoIyzicoCreditCardTransaction: string;
118
118
  DoIyzicoTransaction: string;
119
+ DoFreeOfChargeTransaction: string;
119
120
  GetPreInfoForm: string;
120
121
  GetSalesAggreementForm: string;
121
122
  };
@@ -127,6 +127,7 @@ exports.default = {
127
127
  DoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoCreditCardTransaction",
128
128
  DoIyzicoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoCreditCardTransaction",
129
129
  DoIyzicoTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction",
130
+ DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
130
131
  GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
131
132
  GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
132
133
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.1.15",
3
+ "version": "5.1.16",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",