ePages 6.17.17 - DE_EPAGES/Amazon/API/Object/AmazonConfig.pm

Package DE_EPAGES::Amazon::API::Object::AmazonConfig

object interface for AmazonConfig.

Base
DE_EPAGES::ProductPortal::API::Object::AmazonConfig

Functions

activateOrderScheduler
addProducts
getOrderDocuments
hideOffers
processFeedResults
remote
removeAllOffers
removeOffers
removeProducts
updateBestPrice
uploadOffers
uploadOrderAcknowledgement
uploadOrderFulfillment
uploadPrices
uploadStock

activateOrderScheduler

sets order scheduler to hourly, only if supported by remote adapter.

Syntax
$self->activateOrderScheduler();

addProducts

Creates AmazonOffer items.

Syntax
$AmazonConfig->addProducts($aProducts);
Input
$prepareProducts (ref.array.object)
Products

getOrderDocuments

Fetches the order documents for a list of OrderDocumentIDs

Syntax
$AmazonConfig->getOrderDocuments($aOrderDocuments)
Input
$aOrderDocuments (ref.array.string)
OrderDocumentIDs

hideOffers

Hides offers from portal by setting stock to zero.

Syntax
$AmazonConfig->hideOffers($aOffers);
Input
$aOffers (ref.array.object)
AmazonOffers

processFeedResults

Runs through the saved feed results and applies changes to the AmazonOffers affected by the feeds

Syntax
$AmazonConfig->processFeedResults();
Return
$FeedSummary (hash.ref
used keys are:
  • FeedsProcessed - number of feeds processed in this run.
  • FeedsPending - number of feeds still pending.)
  • Feed processing summary

    remote

    Instanciates a RemoteAdapter using RemoteAdapterFactory

    Syntax
    $self->remote( );
    Return
    $Remote (object)
    remote adapter

    removeAllOffers

    Removes all Offers from portal.

    Syntax
    $AmazonConfig->removeAllOffers;

    removeOffers

    Removes Offers from Amazon portal.

    Syntax
    $AmazonConfig->removeOffers($aOffers);
    Input
    $aOffers (ref.array.object)
    AmazonOffers

    removeProducts

    Removes a product from Amazon.

    Syntax
    $Object->removeProducts( $aProducts );
    Example
    $AmazonConfig->removeProducts( [ $Product ] );
    Input
    $aProducts (ref.array.object)
    Product list

    updateBestPrice

    Update the Best Price at Amazon for the given offers

    Syntax
    $self->updateBestPrice( $aOffers );
    Input
    $aOffers (ref.array)
    list of offers to update

    uploadOffers

    Generates and uploads the offer feed for a list of AmazonOffers

    Syntax
    $AmazonConfig->uploadOffers($aOffers)
    Input
    $aOffers (ref.array.object)
    AmazonOffers

    uploadOrderAcknowledgement

    Generates and uploads a feed for acknowledging the receipt of a list of offers

    Syntax
    $AmazonConfig->uploadOrderAcknowledgement($aOrderLineItems)
    Input
    $aOrderLineItems (ref.array.object)
    LineItemAmazonTransactions

    uploadOrderFulfillment

    Generates and uploads the order fulfillment feed for a list of CustomerOrders

    Syntax
    $AmazonConfig->uploadOrderFulfillment($aOrders)
    Input
    $aOrders (ref.array.object)
    CustomerOrders

    uploadPrices

    Generates and uploads the price feed for a list of AmazonOffers

    Syntax
    $AmazonConfig->uploadPrices($aOffers)
    Input
    $aOffers (ref.array.object)
    AmazonOffers

    uploadStock

    Generates and uploads the stock feed for a list of AmazonOffers

    Syntax
    $AmazonConfig->uploadStock($aOffers)
    Input
    $aOffers (ref.array.object)
    AmazonOffers
    $maxStock (integer)
    maximum limit of stock value