Home Reference Source

lib/endpoints/inbound.js


const generateEndpoints = require('./endpoints-utils');

const categoryName = 'FulfillmentInboundShipment';

const apiVersion = '2010-10-01';

const endpointList = [
    'GetInboundGuidanceForSKU',
    'GetInboundGuidanceForASIN',
    'CreateInboundShipmentPlan',
    'CreateInboundShipment',
    'UpdateInboundShipment',
    'GetPreorderInfo',
    'ConfirmPreorder',
    'GetPrepInstructionsForSKU',
    'GetPrepInstructionsForASIN',
    'PutTransportContent',
    'EstimateTransportRequest',
    'GetTransportContent',
    'ConfirmTransportRequest',
    'VoidTransportRequest',
    'GetPackageLabels',
    'GetUniquePackageLabels',
    'GetPalletLabels',
    'GetBillOfLading',
    'ListInboundShipments',
    'ListInboundShipmentsByNextToken',
    'ListInboundShipmentItems',
    'ListInboundShipmentItemsByNextToken',
    'GetServiceStatus',
];

const newEndpointList = {
    GetInboundGuidanceForASIN: {
        throttle: {
            maxInFlight: 200,
            restoreRate: 200,
        },
        params: {
            MarketplaceId: {
                type: 'xs:string',
                required: true,
            },
            ASINList: {
                type: 'xs:string',
                required: true,
                list: 'ASINList.Id',
            },
        },
    },
    GetInboundGuidanceForSKU: {
        throttle: {
            maxInFlight: 200,
            restoreRate: 200,
        },
        params: {
            MarketplaceId: {
                type: 'xs:string',
                required: true,
            },
            SellerSKUList: {
                type: 'xs:string',
                required: true,
                list: 'SellerSKUList.Id',
            },
        },
    },
};

/**
 * @private
 */

const endpoints = generateEndpoints(
    categoryName,
    apiVersion,
    endpointList,
    newEndpointList,
);

module.exports = endpoints;