nextemos 5.2.14 → 5.2.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.
|
@@ -260,6 +260,10 @@ export interface IRefundItem {
|
|
|
260
260
|
userAgent: string;
|
|
261
261
|
totals: IOrderTotal[];
|
|
262
262
|
}
|
|
263
|
+
export interface IOrderRefundDetailItem extends IOrderItem {
|
|
264
|
+
returnReasonId: number;
|
|
265
|
+
returnReason: string;
|
|
266
|
+
}
|
|
263
267
|
export interface IRefundDetail {
|
|
264
268
|
isTaxIncluded: boolean;
|
|
265
269
|
docNo: string;
|
|
@@ -272,7 +276,7 @@ export interface IRefundDetail {
|
|
|
272
276
|
referenceNo: string;
|
|
273
277
|
currency: string;
|
|
274
278
|
currencyCode: string;
|
|
275
|
-
items:
|
|
279
|
+
items: IOrderRefundDetailItem[];
|
|
276
280
|
totals: IOrderTotal[];
|
|
277
281
|
}
|
|
278
282
|
export interface IOrderShipmentItem {
|
|
@@ -93,4 +93,7 @@ exports.ShoppingCartService = {
|
|
|
93
93
|
GetSalesAggreementForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
94
94
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.GetSalesAggreementForm, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
95
95
|
}),
|
|
96
|
+
AddGiftBoxNote: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
97
|
+
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) }));
|
|
98
|
+
}),
|
|
96
99
|
};
|
|
@@ -102,6 +102,13 @@ export interface IGetPreInfoFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
|
102
102
|
}
|
|
103
103
|
export interface IGetSalesAggreementFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
104
104
|
}
|
|
105
|
+
export interface IAddGiftBoxNoteRequest extends IGetCartRequest {
|
|
106
|
+
giftBoxNotes: {
|
|
107
|
+
documentId: string;
|
|
108
|
+
giftBoxNote: string;
|
|
109
|
+
isGiftBoxRequested: boolean;
|
|
110
|
+
}[];
|
|
111
|
+
}
|
|
105
112
|
export interface IShoppingCartService extends IService {
|
|
106
113
|
AddToCart: (data: IAddToCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
107
114
|
GetCartItemCount: (data: IGetCartItemCountRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartItemCountResponse>>;
|
|
@@ -117,4 +124,5 @@ export interface IShoppingCartService extends IService {
|
|
|
117
124
|
DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
|
|
118
125
|
GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
|
|
119
126
|
GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
|
|
127
|
+
AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
120
128
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -135,6 +135,7 @@ exports.default = {
|
|
|
135
135
|
DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
|
|
136
136
|
GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
|
|
137
137
|
GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
|
|
138
|
+
AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
|
|
138
139
|
},
|
|
139
140
|
OrderManagement: {
|
|
140
141
|
GetMemberOrderDetails: "/{language}/OrderManagement/v1/GetMemberOrderDetails",
|