nextemos 4.10.12 → 4.10.13

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.
@@ -6,6 +6,9 @@ export interface IGetOrderDetailsResponse extends IResponse {
6
6
  export interface IGetRefundsResponse extends IResponsePaging {
7
7
  orders: IRefundItem[];
8
8
  }
9
+ export interface IGetRefundDetailResponse extends IResponse {
10
+ detail: IRefundDetail;
11
+ }
9
12
  export interface IGetOrdersResponse extends IResponsePaging {
10
13
  orders: IOrderListItem[];
11
14
  }
@@ -139,3 +142,18 @@ export interface IRefundItem {
139
142
  userAgent: string;
140
143
  totals: IOrderTotal[];
141
144
  }
145
+ export interface IRefundDetail {
146
+ isTaxIncluded: boolean;
147
+ docNo: string;
148
+ docDate: string;
149
+ statusId: number;
150
+ status: string;
151
+ customStatusId: number;
152
+ customStatus: string;
153
+ returnIbanNo: string;
154
+ referenceNo: string;
155
+ currency: string;
156
+ currencyCode: string;
157
+ items: IOrderItem[];
158
+ totals: IOrderTotal[];
159
+ }
@@ -55,4 +55,7 @@ exports.OrderManagementService = {
55
55
  GetRefunds: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
56
56
  return (0, __1.fetchRequest)().post(exports.OrderManagementService.Url(urls_1.default.OrderManagement.GetRefunds, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
57
57
  }),
58
+ GetRefundDetail: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
59
+ return (0, __1.fetchRequest)().post(exports.OrderManagementService.Url(urls_1.default.OrderManagement.GetRefundDetail, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
60
+ }),
58
61
  };
@@ -1,4 +1,4 @@
1
- import { IApiResponse, IGetOrderDetailsResponse, IGetOrdersResponse, IGetRefundsResponse, IRequestBase, IRequestInit, IService } from "../..";
1
+ import { IApiResponse, IGetOrderDetailsResponse, IGetOrdersResponse, IGetRefundDetailResponse, IGetRefundsResponse, IRequestBase, IRequestInit, IService } from "../..";
2
2
  export interface IGetOrderDetailsRequest extends IRequestBase {
3
3
  orderId?: number;
4
4
  docNo?: string;
@@ -15,8 +15,12 @@ export interface IGetOrdersRequest extends IRequestBase {
15
15
  export interface IGetRefundsRequest extends IRequestBase {
16
16
  orderId?: number;
17
17
  }
18
+ export interface IGetRefundDetailRequest extends IRequestBase {
19
+ orderId?: number;
20
+ }
18
21
  export interface IOrderManagementService extends IService {
19
22
  GetOrderDetails: (data: IGetOrderDetailsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetOrderDetailsResponse>>;
20
23
  GetOrders: (data: IGetOrdersRequest, options?: IRequestInit) => Promise<IApiResponse<IGetOrdersResponse>>;
21
24
  GetRefunds: (data: IGetRefundsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetRefundsResponse>>;
25
+ GetRefundDetail: (data: IGetRefundDetailRequest, options?: IRequestInit) => Promise<IApiResponse<IGetRefundDetailResponse>>;
22
26
  }
@@ -117,6 +117,7 @@ declare const _default: {
117
117
  GetOrderDetails: string;
118
118
  GetOrders: string;
119
119
  GetRefunds: string;
120
+ GetRefundDetail: string;
120
121
  };
121
122
  Payment: {
122
123
  GetBanks: string;
@@ -123,6 +123,7 @@ exports.default = {
123
123
  GetOrderDetails: '/{language}/OrderManagement/v1/GetOrderDetails',
124
124
  GetOrders: '/{language}/OrderManagement/v1/GetOrders',
125
125
  GetRefunds: '/{language}/OrderManagement/v1/GetRefunds',
126
+ GetRefundDetail: '/{language}/OrderManagement/v1/GetRefundDetail',
126
127
  },
127
128
  Payment: {
128
129
  GetBanks: '/{language}/Bank/v1/GetBanks',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "4.10.12",
3
+ "version": "4.10.13",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",