nextemos 5.10.11 → 6.0.0

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 IDoHepsipayTransactionResponse extends ITransactionResponse {
27
27
  }
28
28
  export interface IDoBkmExpressTransactionResponse extends ITransactionResponse {
29
29
  }
30
+ export interface IDoPayAtDoorTransactionResponse extends ITransactionResponse {
31
+ }
30
32
  export interface IDoCreditCardTransactionResponse extends ITransactionResponse {
31
33
  }
32
34
  export interface IDoIyzicoCreditCardTransactionResponse extends ITransactionResponse {
@@ -99,6 +99,9 @@ exports.ShoppingCartService = {
99
99
  DoBkmExpressTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
100
100
  return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoBkmExpressTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
101
101
  }),
102
+ DoPayAtDoorTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
103
+ return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoPayAtDoorTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
104
+ }),
102
105
  GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
103
106
  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) }));
104
107
  }),
@@ -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 } from "../..";
1
+ import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse, IDoHepsipayTransactionResponse, IDoBkmExpressTransactionResponse, IDoPayAtDoorTransactionResponse } from "../..";
2
2
  export interface IAddToCartRequest {
3
3
  flags?: string | number | string[];
4
4
  productId: number;
@@ -130,6 +130,12 @@ export interface IAddGiftCardCouponRequest extends IGetCartRequest {
130
130
  export interface IRemoveGiftCardCouponRequest extends IGetCartRequest {
131
131
  couponCode: string;
132
132
  }
133
+ export interface IDoPayAtDoorTransactionRequest extends IGetCartRequest {
134
+ cash: boolean;
135
+ creditCard: boolean;
136
+ isApprovedToSalesAggreementForm: boolean;
137
+ isApprovedToPreInformationForm: boolean;
138
+ }
133
139
  export interface IGetAvailableStoresForCartRequest extends Omit<IGetCartRequest, "flags"> {
134
140
  }
135
141
  export interface IShoppingCartService extends IService {
@@ -148,6 +154,7 @@ export interface IShoppingCartService extends IService {
148
154
  DoGarantipayTransaction: (data: IDoGarantipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoGarantipayTransactionResponse>>;
149
155
  DoHepsipayTransaction: (data: IDoHepsipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoHepsipayTransactionResponse>>;
150
156
  DoBkmExpressTransaction: (data: IDoBkmExpressTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoBkmExpressTransactionResponse>>;
157
+ DoPayAtDoorTransaction: (data: IDoPayAtDoorTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoPayAtDoorTransactionResponse>>;
151
158
  GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
152
159
  GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
153
160
  AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
@@ -168,6 +168,7 @@ declare const _default: {
168
168
  DoGarantipayTransaction: string;
169
169
  DoHepsipayTransaction: string;
170
170
  DoBkmExpressTransaction: string;
171
+ DoPayAtDoorTransaction: string;
171
172
  GetPreInfoForm: string;
172
173
  GetSalesAggreementForm: string;
173
174
  AddGiftBoxNote: string;
@@ -179,6 +179,7 @@ exports.default = {
179
179
  DoGarantipayTransaction: "/{language}/ShoppingCartGateway/v1/DoGarantipayTransaction",
180
180
  DoHepsipayTransaction: "/{language}/ShoppingCartGateway/v1/DoHepsipayTransaction",
181
181
  DoBkmExpressTransaction: "/{language}/ShoppingCartGateway/v1/DoBkmExpressTransaction",
182
+ DoPayAtDoorTransaction: "/{language}/ShoppingCartGateway/v1/DoPayAtDoorTransaction",
182
183
  GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
183
184
  GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
184
185
  AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.10.11",
3
+ "version": "6.0.0",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",