shipxanh-oalazada
Version:
Lazada Open Platform SDK for Node.js
644 lines (416 loc) • 71.7 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _constants = require("./constants");
var _Common = require("./types/Common");
var _Order = require("./types/Order");
var _LazadaRequest = require("../LazadaRequest");
var _LazadaRequest2 = _interopRequireDefault(_LazadaRequest);
var _constants2 = require("../LazadaRequest/constants");
var _Request = require("../LazadaRequest/types/Request");
var _flowRuntime = require("flow-runtime");
var _flowRuntime2 = _interopRequireDefault(_flowRuntime);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Protocol = _flowRuntime2.default.tdz(function () {
return _Request.Protocol;
});
var HttpAction = _flowRuntime2.default.tdz(function () {
return _Request.HttpAction;
});
var OrderStatus = _flowRuntime2.default.tdz(function () {
return _Order.OrderStatus;
});
var APIAction = _flowRuntime2.default.tdz(function () {
return _Common.APIAction;
});
var getScheme = _flowRuntime2.default.annotate(function getScheme(protocol) {
var _protocolType = _flowRuntime2.default.ref(Protocol);
var _returnType = _flowRuntime2.default.return(_flowRuntime2.default.string());
_flowRuntime2.default.param("protocol", _protocolType).assert(protocol);
return _returnType.assert(protocol === _constants2.PROTOCOL.HTTP ? "http://" : "https://");
}, _flowRuntime2.default.function(_flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)), _flowRuntime2.default.return(_flowRuntime2.default.string())));
/**
*
* @param {Object} payload
*
*/
var getTransactionDetails = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function getTransactionDetails(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.GET;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType = _flowRuntime2.default.string();
var _appSecretType = _flowRuntime2.default.string();
var _gatewayType = _flowRuntime2.default.string();
var _accessTokenType = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType = _flowRuntime2.default.object(_flowRuntime2.default.property("offset", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("limit", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trans_type", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trade_order_id", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trade_order_line_id", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("start_time", _flowRuntime2.default.string()), _flowRuntime2.default.property("end_time", _flowRuntime2.default.string()));
var _actionType = _flowRuntime2.default.ref(HttpAction);
var _protocolType2 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType).assert(payload);
_flowRuntime2.default.param("action", _actionType, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType2, true).assert(protocol);
var apiPath = "/finance/transaction/details/get";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.get(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("offset", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("limit", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trans_type", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trade_order_id", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trade_order_line_id", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("start_time", _flowRuntime2.default.string()), _flowRuntime2.default.property("end_time", _flowRuntime2.default.string()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
*
* @param {Object} payload
*
*/
var getLogisticsFee = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function getLogisticsFee(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.GET;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType2 = _flowRuntime2.default.string();
var _appSecretType2 = _flowRuntime2.default.string();
var _gatewayType2 = _flowRuntime2.default.string();
var _accessTokenType2 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType2 = _flowRuntime2.default.object(_flowRuntime2.default.property("biz_flow_type", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("fee_type", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trade_order_id", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trade_order_line_id", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("seller_id", _flowRuntime2.default.string()), _flowRuntime2.default.property("request_type", _flowRuntime2.default.string()), _flowRuntime2.default.property("bill_start_time", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("bill_end_time", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("page_no", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("page_size", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("total_records", _flowRuntime2.default.string(), true));
var _actionType2 = _flowRuntime2.default.ref(HttpAction);
var _protocolType3 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType2).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType2).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType2).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType2).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType2).assert(payload);
_flowRuntime2.default.param("action", _actionType2, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType3, true).assert(protocol);
var apiPath = "/lbs/slb/queryLogisticsFeeDetail";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.get(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("biz_flow_type", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("fee_type", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trade_order_id", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("trade_order_line_id", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("seller_id", _flowRuntime2.default.string()), _flowRuntime2.default.property("request_type", _flowRuntime2.default.string()), _flowRuntime2.default.property("bill_start_time", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("bill_end_time", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("page_no", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("page_size", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("total_records", _flowRuntime2.default.string(), true))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
*
* @param {Object} payload
*
* created_after // ISO 8601 date format, require if no update_after
* created_before // ISO 8601 date format
* update_after // ISO 8601 date format, require if no update_after
* update_before // ISO 8601 date format
*
* status // pending | canceled | ready_to_ship | delivered | returned | shipped | failed | packed | unpaid
*
* sort_by // created_at | updated_at
* sort_direction // ASC | DESC
*
* offset
* limit // max 100
*/
var getOrders = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function getOrders(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.GET;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType3 = _flowRuntime2.default.string();
var _appSecretType3 = _flowRuntime2.default.string();
var _gatewayType3 = _flowRuntime2.default.string();
var _accessTokenType3 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType3 = _flowRuntime2.default.object(_flowRuntime2.default.property("created_after", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("created_before", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("update_after", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("update_before", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("status", _flowRuntime2.default.ref(OrderStatus), true), _flowRuntime2.default.property("sort_by", _flowRuntime2.default.union(_flowRuntime2.default.string("created_at"), _flowRuntime2.default.string("updated_at")), true), _flowRuntime2.default.property("sort_direction", _flowRuntime2.default.union(_flowRuntime2.default.string("ASC"), _flowRuntime2.default.string("DESC")), true), _flowRuntime2.default.property("offset", _flowRuntime2.default.number(), true), _flowRuntime2.default.property("limit", _flowRuntime2.default.number(), true));
var _actionType3 = _flowRuntime2.default.ref(HttpAction);
var _protocolType4 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType3).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType3).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType3).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType3).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType3).assert(payload);
_flowRuntime2.default.param("action", _actionType3, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType4, true).assert(protocol);
var apiPath = "/orders/get";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.get(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("created_after", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("created_before", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("update_after", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("update_before", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("status", _flowRuntime2.default.ref(OrderStatus), true), _flowRuntime2.default.property("sort_by", _flowRuntime2.default.union(_flowRuntime2.default.string("created_at"), _flowRuntime2.default.string("updated_at")), true), _flowRuntime2.default.property("sort_direction", _flowRuntime2.default.union(_flowRuntime2.default.string("ASC"), _flowRuntime2.default.string("DESC")), true), _flowRuntime2.default.property("offset", _flowRuntime2.default.number(), true), _flowRuntime2.default.property("limit", _flowRuntime2.default.number(), true))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Get the list of items for a single order.
* @param {Object} payload
* order_id
*/
var getOrder = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function getOrder(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.GET;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType4 = _flowRuntime2.default.string();
var _appSecretType4 = _flowRuntime2.default.string();
var _gatewayType4 = _flowRuntime2.default.string();
var _accessTokenType4 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType4 = _flowRuntime2.default.object(_flowRuntime2.default.property("order_id", _flowRuntime2.default.number()));
var _actionType4 = _flowRuntime2.default.ref(HttpAction);
var _protocolType5 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType4).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType4).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType4).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType4).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType4).assert(payload);
_flowRuntime2.default.param("action", _actionType4, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType5, true).assert(protocol);
var apiPath = "/order/get";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.get(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("order_id", _flowRuntime2.default.number()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Get the item information of an order.
* @param {Object} payload
* order_id {number| string}
*/
var getOrderItems = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function getOrderItems(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.GET;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType5 = _flowRuntime2.default.string();
var _appSecretType5 = _flowRuntime2.default.string();
var _gatewayType5 = _flowRuntime2.default.string();
var _accessTokenType5 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType5 = _flowRuntime2.default.object(_flowRuntime2.default.property("order_id", _flowRuntime2.default.string()));
var _actionType5 = _flowRuntime2.default.ref(HttpAction);
var _protocolType6 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType5).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType5).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType5).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType5).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType5).assert(payload);
_flowRuntime2.default.param("action", _actionType5, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType6, true).assert(protocol);
var apiPath = "/order/items/get";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.get(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("order_id", _flowRuntime2.default.string()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Get the item information of one or more orders.
* @param {Object} payload
* order_ids // stringify JSON array [42922, 32793] (Max List Size: 1000)
*/
var getMultipleOrderItems = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function getMultipleOrderItems(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.GET;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType6 = _flowRuntime2.default.string();
var _appSecretType6 = _flowRuntime2.default.string();
var _gatewayType6 = _flowRuntime2.default.string();
var _accessTokenType6 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType6 = _flowRuntime2.default.object(_flowRuntime2.default.property("order_ids", _flowRuntime2.default.string()));
var _actionType6 = _flowRuntime2.default.ref(HttpAction);
var _protocolType7 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType6).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType6).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType6).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType6).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType6).assert(payload);
_flowRuntime2.default.param("action", _actionType6, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType7, true).assert(protocol);
var apiPath = "/orders/items/get";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.get(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("order_ids", _flowRuntime2.default.string()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Get additional error context for the SetStatusToCanceled API.
* @param {Object} payload
* access_token :require
*/
var getFailureReasons = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function getFailureReasons(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.GET;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType7 = _flowRuntime2.default.string();
var _appSecretType7 = _flowRuntime2.default.string();
var _gatewayType7 = _flowRuntime2.default.string();
var _accessTokenType7 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType7 = _flowRuntime2.default.any();
var _actionType7 = _flowRuntime2.default.ref(HttpAction);
var _protocolType8 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType7).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType7).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType7).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType7).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType7).assert(payload);
_flowRuntime2.default.param("action", _actionType7, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType8, true).assert(protocol);
var apiPath = "/order/failure_reason/get";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.get(baseURL, appKey, appSecret, apiPath, accessToken);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.any()), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Cancel a single order item.
* @param {Object} payload
* reason_detail
* reason_id :require | ID of the cancel reason.
* order_item_id :require | Order item ID
*/
var setStatusToCanceled = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function setStatusToCanceled(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.POST;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType8 = _flowRuntime2.default.string();
var _appSecretType8 = _flowRuntime2.default.string();
var _gatewayType8 = _flowRuntime2.default.string();
var _accessTokenType8 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType8 = _flowRuntime2.default.object(_flowRuntime2.default.property("reason_detail", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("reason_id", _flowRuntime2.default.number()), _flowRuntime2.default.property("order_item_id", _flowRuntime2.default.number()));
var _actionType8 = _flowRuntime2.default.ref(HttpAction);
var _protocolType9 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType8).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType8).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType8).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType8).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType8).assert(payload);
_flowRuntime2.default.param("action", _actionType8, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType9, true).assert(protocol);
var apiPath = "/order/cancel";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.post(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("reason_detail", _flowRuntime2.default.string(), true), _flowRuntime2.default.property("reason_id", _flowRuntime2.default.number()), _flowRuntime2.default.property("order_item_id", _flowRuntime2.default.number()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Mark an order item as being ready to ship
* @param {Object} payload
* delivery_type :require // dropship (Now only 'dropship' is supported.)
* order_item_ids :require // e.g. [1832590,1832592]
* shipment_provider :require // name of shipment provider e.g. Aramax
* tracking_number :require
*/
var setStatusToReadyToShip = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function setStatusToReadyToShip(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.POST;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType9 = _flowRuntime2.default.string();
var _appSecretType9 = _flowRuntime2.default.string();
var _gatewayType9 = _flowRuntime2.default.string();
var _accessTokenType9 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType9 = _flowRuntime2.default.object(_flowRuntime2.default.property("delivery_type", _flowRuntime2.default.string()), _flowRuntime2.default.property("order_item_ids", _flowRuntime2.default.string()), _flowRuntime2.default.property("shipment_provider", _flowRuntime2.default.string()), _flowRuntime2.default.property("tracking_number", _flowRuntime2.default.string()));
var _actionType9 = _flowRuntime2.default.ref(HttpAction);
var _protocolType10 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType9).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType9).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType9).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType9).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType9).assert(payload);
_flowRuntime2.default.param("action", _actionType9, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType10, true).assert(protocol);
var apiPath = "/order/rts";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.post(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("delivery_type", _flowRuntime2.default.string()), _flowRuntime2.default.property("order_item_ids", _flowRuntime2.default.string()), _flowRuntime2.default.property("shipment_provider", _flowRuntime2.default.string()), _flowRuntime2.default.property("tracking_number", _flowRuntime2.default.string()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Mark an order item as being packed.
* All order items must have status 'pending'
* @param {Object} payload
* shipping_provider :require // name of shipment provider e.g. as Aramax Mandatory for the "dropship" delivery type.
* delivery_type :require // dropship | pickup | send_to_warehouse
* order_item_ids :require stringify JSON array // e.g. [1530553,1830236]
*/
var setStatusToPackedByMarketplace = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function setStatusToPackedByMarketplace(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.POST;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType10 = _flowRuntime2.default.string();
var _appSecretType10 = _flowRuntime2.default.string();
var _gatewayType10 = _flowRuntime2.default.string();
var _accessTokenType10 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType10 = _flowRuntime2.default.object(_flowRuntime2.default.property("shipping_provider", _flowRuntime2.default.string()), _flowRuntime2.default.property("delivery_type", _flowRuntime2.default.string()), _flowRuntime2.default.property("order_item_ids", _flowRuntime2.default.string()));
var _actionType10 = _flowRuntime2.default.ref(HttpAction);
var _protocolType11 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType10).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType10).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType10).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType10).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType10).assert(payload);
_flowRuntime2.default.param("action", _actionType10, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType11, true).assert(protocol);
var apiPath = "/order/pack";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.post(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("shipping_provider", _flowRuntime2.default.string()), _flowRuntime2.default.property("delivery_type", _flowRuntime2.default.string()), _flowRuntime2.default.property("order_item_ids", _flowRuntime2.default.string()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Set the invoice number for the specified order.
* @param {Object} payload
* order_item_id :require
* invoice_number : require
*/
var setInvoiceNumber = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function setInvoiceNumber(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.POST;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType11 = _flowRuntime2.default.string();
var _appSecretType11 = _flowRuntime2.default.string();
var _gatewayType11 = _flowRuntime2.default.string();
var _accessTokenType11 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType11 = _flowRuntime2.default.object(_flowRuntime2.default.property("order_item_id", _flowRuntime2.default.number()), _flowRuntime2.default.property("invoice_number", _flowRuntime2.default.string()));
var _actionType11 = _flowRuntime2.default.ref(HttpAction);
var _protocolType12 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType11).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType11).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType11).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType11).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType11).assert(payload);
_flowRuntime2.default.param("action", _actionType11, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType12, true).assert(protocol);
var apiPath = "/order/invoice_number/set";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.post(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("order_item_id", _flowRuntime2.default.number()), _flowRuntime2.default.property("invoice_number", _flowRuntime2.default.string()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Retrieve order-related documents, including invoices and shipping labels.
* @param {Object} payload
* access_token
* doc_type :require // invoice, shippingLabel, carrierManifest
* order_item_ids :require // max list size: 100 stringify JSON array
*/
var getDocument = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function getDocument(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.GET;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType12 = _flowRuntime2.default.string();
var _appSecretType12 = _flowRuntime2.default.string();
var _gatewayType12 = _flowRuntime2.default.string();
var _accessTokenType12 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType12 = _flowRuntime2.default.object(_flowRuntime2.default.property("doc_type", _flowRuntime2.default.string()), _flowRuntime2.default.property("order_item_ids", _flowRuntime2.default.string()));
var _actionType12 = _flowRuntime2.default.ref(HttpAction);
var _protocolType13 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType12).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType12).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType12).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType12).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType12).assert(payload);
_flowRuntime2.default.param("action", _actionType12, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType13, true).assert(protocol);
var apiPath = "/order/document/get";
var baseURL = getScheme(protocol) + gateway;
return _LazadaRequest2.default.get(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("doc_type", _flowRuntime2.default.string()), _flowRuntime2.default.property("order_item_ids", _flowRuntime2.default.string()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
/**
* Retrieve order-related documents, including invoices and shipping labels.
* @param {Object} payload
* access_token
* start_time :require // example: 2021-02-15
* end_time :require
* offset :require
*/
var getOrderTransactions = _flowRuntime2.default.ref(APIAction).assert(_flowRuntime2.default.annotate(function getOrderTransactions(appKey, appSecret, gateway, accessToken, payload) {
var action = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _constants2.HTTP_ACTION.GET;
var protocol = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _constants2.PROTOCOL.HTTPS;
var _appKeyType13 = _flowRuntime2.default.string();
var _appSecretType13 = _flowRuntime2.default.string();
var _gatewayType13 = _flowRuntime2.default.string();
var _accessTokenType13 = _flowRuntime2.default.nullable(_flowRuntime2.default.string());
var _payloadType13 = _flowRuntime2.default.object(_flowRuntime2.default.property("trade_order_id", _flowRuntime2.default.nullable(_flowRuntime2.default.string()), true), _flowRuntime2.default.property("start_time", _flowRuntime2.default.string()), _flowRuntime2.default.property("end_time", _flowRuntime2.default.string()), _flowRuntime2.default.property("offset", _flowRuntime2.default.string()));
var _actionType13 = _flowRuntime2.default.ref(HttpAction);
var _protocolType14 = _flowRuntime2.default.ref(Protocol);
_flowRuntime2.default.param("appKey", _appKeyType13).assert(appKey);
_flowRuntime2.default.param("appSecret", _appSecretType13).assert(appSecret);
_flowRuntime2.default.param("gateway", _gatewayType13).assert(gateway);
_flowRuntime2.default.param("accessToken", _accessTokenType13).assert(accessToken);
_flowRuntime2.default.param("payload", _payloadType13).assert(payload);
_flowRuntime2.default.param("action", _actionType13, true).assert(action);
_flowRuntime2.default.param("protocol", _protocolType14, true).assert(protocol);
var apiPath = "/finance/transaction/details/get";
var baseURL = getScheme(protocol) + gateway;
payload.limit = "500";
if (!(payload.trade_order_id.trim().length > 1)) {
delete payload.trade_order_id;
}
return _LazadaRequest2.default.get(baseURL, appKey, appSecret, apiPath, accessToken, payload);
}, _flowRuntime2.default.function(_flowRuntime2.default.param("appKey", _flowRuntime2.default.string()), _flowRuntime2.default.param("appSecret", _flowRuntime2.default.string()), _flowRuntime2.default.param("gateway", _flowRuntime2.default.string()), _flowRuntime2.default.param("accessToken", _flowRuntime2.default.nullable(_flowRuntime2.default.string())), _flowRuntime2.default.param("payload", _flowRuntime2.default.object(_flowRuntime2.default.property("trade_order_id", _flowRuntime2.default.nullable(_flowRuntime2.default.string()), true), _flowRuntime2.default.property("start_time", _flowRuntime2.default.string()), _flowRuntime2.default.property("end_time", _flowRuntime2.default.string()), _flowRuntime2.default.property("offset", _flowRuntime2.default.string()))), _flowRuntime2.default.param("action", _flowRuntime2.default.ref(HttpAction)), _flowRuntime2.default.param("protocol", _flowRuntime2.default.ref(Protocol)))));
exports.default = {
getOrders: getOrders,
getOrder: getOrder,
getOrderItems: getOrderItems,
getMultipleOrderItems: getMultipleOrderItems,
getFailureReasons: getFailureReasons,
setStatusToCanceled: setStatusToCanceled,
setStatusToReadyToShip: setStatusToReadyToShip,
setStatusToPackedByMarketplace: setStatusToPackedByMarketplace,
setInvoiceNumber: setInvoiceNumber,
getDocument: getDocument,
getOrderTransactions: getOrderTransactions,
getTransactionDetails: getTransactionDetails,
getLogisticsFee: getLogisticsFee
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MYXphZGFDbGllbnQvb3JkZXIuanMiXSwibmFtZXMiOlsiZ2V0U2NoZW1lIiwicHJvdG9jb2wiLCJQUk9UT0NPTCIsIkhUVFAiLCJhcHBLZXkiLCJhcHBTZWNyZXQiLCJnYXRld2F5IiwiYWNjZXNzVG9rZW4iLCJwYXlsb2FkIiwiYWN0aW9uIiwiSFRUUF9BQ1RJT04iLCJHRVQiLCJIVFRQUyIsImFwaVBhdGgiLCJiYXNlVVJMIiwiTGF6YWRhUmVxdWVzdCIsImdldCIsIlBPU1QiLCJwb3N0IiwibGltaXQiLCJ0cmFkZV9vcmRlcl9pZCIsInRyaW0iLCJsZW5ndGgiLCJnZXRPcmRlcnMiLCJnZXRPcmRlciIsImdldE9yZGVySXRlbXMiLCJnZXRNdWx0aXBsZU9yZGVySXRlbXMiLCJnZXRGYWlsdXJlUmVhc29ucyIsInNldFN0YXR1c1RvQ2FuY2VsZWQiLCJzZXRTdGF0dXNUb1JlYWR5VG9TaGlwIiwic2V0U3RhdHVzVG9QYWNrZWRCeU1hcmtldHBsYWNlIiwic2V0SW52b2ljZU51bWJlciIsImdldERvY3VtZW50IiwiZ2V0T3JkZXJUcmFuc2FjdGlvbnMiLCJnZXRUcmFuc2FjdGlvbkRldGFpbHMiLC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