nextemos 5.7.2 → 5.7.4

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.
@@ -81,6 +81,7 @@ export interface IMember {
81
81
  isAnonymised: boolean;
82
82
  lastShoppingDate: string;
83
83
  sessionKey: string;
84
+ customStatusId?: number;
84
85
  }
85
86
  export interface ICreateMemberResponse extends IResponse {
86
87
  data?: IMember;
@@ -108,6 +108,12 @@ exports.ShoppingCartService = {
108
108
  AddGiftBoxNote: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
109
109
  return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.AddGiftBoxNote, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
110
110
  }),
111
+ AddGiftCardCoupon: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
112
+ return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.AddGiftCardCoupon, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
113
+ }),
114
+ RemoveGiftCardCoupon: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
115
+ return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.RemoveGiftCardCoupon, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
116
+ }),
111
117
  GetAvailableStoresForCart: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
112
118
  return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.GetAvailableStoresForCart, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
113
119
  }),
@@ -121,6 +121,13 @@ export interface IAddGiftBoxNoteRequest extends IGetCartRequest {
121
121
  isGiftBoxRequested: boolean;
122
122
  }[];
123
123
  }
124
+ export interface IAddGiftCardCouponRequest extends IGetCartRequest {
125
+ couponCode: string;
126
+ price?: number;
127
+ }
128
+ export interface IRemoveGiftCardCouponRequest extends IGetCartRequest {
129
+ couponCode: string;
130
+ }
124
131
  export interface IGetAvailableStoresForCartRequest extends Omit<IGetCartRequest, "flags"> {
125
132
  }
126
133
  export interface IShoppingCartService extends IService {
@@ -144,4 +151,6 @@ export interface IShoppingCartService extends IService {
144
151
  AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
145
152
  GetAvailableStoresForCart: (data: IGetAvailableStoresForCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetAvailableStoresForCartResponse>>;
146
153
  DropCart: (data: IGetCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
154
+ AddGiftCardCoupon: (data: IAddGiftCardCouponRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
155
+ RemoveGiftCardCoupon: (data: IRemoveGiftCardCouponRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
147
156
  }
@@ -160,6 +160,8 @@ declare const _default: {
160
160
  GetPreInfoForm: string;
161
161
  GetSalesAggreementForm: string;
162
162
  AddGiftBoxNote: string;
163
+ AddGiftCardCoupon: string;
164
+ RemoveGiftCardCoupon: string;
163
165
  GetAvailableStoresForCart: string;
164
166
  };
165
167
  OrderManagement: {
@@ -171,6 +171,8 @@ exports.default = {
171
171
  GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
172
172
  GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
173
173
  AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
174
+ AddGiftCardCoupon: "/{language}/ShoppingCartGateway/v1/AddGiftCardCoupon",
175
+ RemoveGiftCardCoupon: "/{language}/ShoppingCartGateway/v1/RemoveGiftCardCoupon",
174
176
  GetAvailableStoresForCart: "/{language}/ShoppingCartGateway/v1/GetAvailableStoresForCart",
175
177
  },
176
178
  OrderManagement: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.7.2",
3
+ "version": "5.7.4",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",