nextemos 5.5.15 → 5.6.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.
@@ -53,6 +53,10 @@ export interface IGuestRefundOrderResponse extends IRefundOrderResponse {
53
53
  export interface IGetInvoicesResponse extends IResponse {
54
54
  list: IInvoice[];
55
55
  }
56
+ export interface IGetSalesFormResponse extends IResponse {
57
+ name: string;
58
+ formHtml: string;
59
+ }
56
60
  export interface IInvoice {
57
61
  invoiceId: number;
58
62
  orderId: number;
@@ -27,6 +27,8 @@ export interface IDoTransferTransactionResponse extends ITransactionResponse {
27
27
  }
28
28
  export interface IDoHepsipayTransactionResponse extends ITransactionResponse {
29
29
  }
30
+ export interface IDoBkmExpressTransactionResponse extends ITransactionResponse {
31
+ }
30
32
  export interface IDoCreditCardTransactionResponse extends ITransactionResponse {
31
33
  }
32
34
  export interface IDoIyzicoCreditCardTransactionResponse extends ITransactionResponse {
@@ -93,4 +93,7 @@ exports.OrderManagementService = {
93
93
  GetGuestInvoices: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
94
94
  return (0, __1.fetchRequest)().post(exports.OrderManagementService.Url(urls_1.default.OrderManagement.GetGuestInvoices, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
95
95
  }),
96
+ GetSalesForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
97
+ return (0, __1.fetchRequest)().post(exports.OrderManagementService.Url(urls_1.default.OrderManagement.GetSalesForm, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
98
+ }),
96
99
  };
@@ -1,4 +1,4 @@
1
- import { IApiResponse, ICancelOrderResponse, IGetGuestMemberOrderDetailsResponse, IGetInvoicesResponse, IGetMemberOrderDetailsResponse, IGetOrderCancelReasonsResponse, IGetOrderReturnReasonsResponse, IGetOrdersResponse, IGetRefundDetailResponse, IGetRefundsResponse, IGuestCancelOrderResponse, IGuestRefundOrderResponse, IRefundOrderResponse, IRepeatOrderResponse, IRequestBase, IRequestInfo, IRequestInit, IService } from "../..";
1
+ import { IApiResponse, ICancelOrderResponse, IGetGuestMemberOrderDetailsResponse, IGetInvoicesResponse, IGetMemberOrderDetailsResponse, IGetOrderCancelReasonsResponse, IGetOrderReturnReasonsResponse, IGetOrdersResponse, IGetRefundDetailResponse, IGetRefundsResponse, IGetSalesFormResponse, IGuestCancelOrderResponse, IGuestRefundOrderResponse, IRefundOrderResponse, IRepeatOrderResponse, IRequestBase, IRequestInfo, IRequestInit, IService } from "../..";
2
2
  export interface IGetOrdersRequest extends IRequestBase {
3
3
  paymentType?: number;
4
4
  type?: "All" | "Active" | "Cancel";
@@ -69,6 +69,10 @@ export interface IGetGuestInvoicesRequest extends IRequestBase {
69
69
  email?: string;
70
70
  includeDetails?: boolean;
71
71
  }
72
+ export interface IGetSalesFormRequest extends IRequestBase {
73
+ orderId: number;
74
+ extraTypeId: number;
75
+ }
72
76
  export interface IOrderManagementService extends IService {
73
77
  GetMemberOrderDetails: (data: IGetMemberOrderDetailsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetMemberOrderDetailsResponse>>;
74
78
  GetGuestMemberOrderDetails: (data: IGetGuestMemberOrderDetailsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetGuestMemberOrderDetailsResponse>>;
@@ -84,4 +88,5 @@ export interface IOrderManagementService extends IService {
84
88
  GetOrderReturnReasons: (data: IGetOrderReturnReasonsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetOrderReturnReasonsResponse>>;
85
89
  GetInvoices: (data: IGetInvoicesRequest, options?: IRequestInit) => Promise<IApiResponse<IGetInvoicesResponse>>;
86
90
  GetGuestInvoices: (data: IGetGuestInvoicesRequest, options?: IRequestInit) => Promise<IApiResponse<IGetInvoicesResponse>>;
91
+ GetSalesForm: (data: IGetSalesFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesFormResponse>>;
87
92
  }
@@ -96,6 +96,9 @@ exports.ShoppingCartService = {
96
96
  DoHepsipayTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
97
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
98
  }),
99
+ DoBkmExpressTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
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
+ }),
99
102
  GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
100
103
  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) }));
101
104
  }),
@@ -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 } from "../..";
1
+ import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse, IDoHepsipayTransactionResponse, IDoBkmExpressTransactionResponse } from "../..";
2
2
  export interface IAddToCartRequest {
3
3
  flags?: string | number | string[];
4
4
  productId: number;
@@ -106,6 +106,10 @@ export interface IDoHepsipayTransactionRequest extends IGetCartRequest {
106
106
  isApprovedToSalesAggreementForm: boolean;
107
107
  isApprovedToPreInformationForm: boolean;
108
108
  }
109
+ export interface IDoBkmExpressTransactionRequest extends IGetCartRequest {
110
+ isApprovedToSalesAggreementForm: boolean;
111
+ isApprovedToPreInformationForm: boolean;
112
+ }
109
113
  export interface IGetPreInfoFormRequest extends Omit<IGetCartRequest, "flags"> {
110
114
  }
111
115
  export interface IGetSalesAggreementFormRequest extends Omit<IGetCartRequest, "flags"> {
@@ -134,6 +138,7 @@ export interface IShoppingCartService extends IService {
134
138
  DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
135
139
  DoGarantipayTransaction: (data: IDoGarantipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoGarantipayTransactionResponse>>;
136
140
  DoHepsipayTransaction: (data: IDoHepsipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoHepsipayTransactionResponse>>;
141
+ DoBkmExpressTransaction: (data: IDoBkmExpressTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoBkmExpressTransactionResponse>>;
137
142
  GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
138
143
  GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
139
144
  AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
@@ -156,6 +156,7 @@ declare const _default: {
156
156
  DoFreeOfChargeTransaction: string;
157
157
  DoGarantipayTransaction: string;
158
158
  DoHepsipayTransaction: string;
159
+ DoBkmExpressTransaction: string;
159
160
  GetPreInfoForm: string;
160
161
  GetSalesAggreementForm: string;
161
162
  AddGiftBoxNote: string;
@@ -176,6 +177,7 @@ declare const _default: {
176
177
  GetOrderReturnReasons: string;
177
178
  GetInvoices: string;
178
179
  GetGuestInvoices: string;
180
+ GetSalesForm: string;
179
181
  };
180
182
  Payment: {
181
183
  GetBanks: string;
@@ -167,6 +167,7 @@ exports.default = {
167
167
  DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
168
168
  DoGarantipayTransaction: "/{language}/ShoppingCartGateway/v1/DoGarantipayTransaction",
169
169
  DoHepsipayTransaction: "/{language}/ShoppingCartGateway/v1/DoHepsipayTransaction",
170
+ DoBkmExpressTransaction: "/{language}/ShoppingCartGateway/v1/DoBkmExpressTransaction",
170
171
  GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
171
172
  GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
172
173
  AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
@@ -187,6 +188,7 @@ exports.default = {
187
188
  GetOrderReturnReasons: "/{language}/OrderManagement/v1/GetOrderReturnReasons",
188
189
  GetInvoices: "/{language}/OrderManagement/v1/GetInvoices",
189
190
  GetGuestInvoices: "/{language}/OrderManagement/v1/GetGuestInvoices",
191
+ GetSalesForm: "/{language}/OrderManagement/v1/GetSalesForm",
190
192
  },
191
193
  Payment: {
192
194
  GetBanks: "/{language}/Bank/v1/GetBanks",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.5.15",
3
+ "version": "5.6.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",