caponica / AmazonMwsComplete

Name-spaced wrappers for the full set of Amazon MWS client libraries
56 stars 53 forks source link

Added method to retrieve orders since last updated date #10

Closed billhance closed 7 years ago

billhance commented 7 years ago

This adds a method to MwsOrderClientPack that allows the caller to retrieve orders from their last updated date (lastUpdatedAfter).

Example:

$dateSince = (new DateTime('now', new DateTimeZone('UTC')))->modify('-10 days');

$response = $orderClient->callListOrdersByLastUpdatedDate(
    $dateSince, 
    [
        $orderClient::STATUS_PARTIALLY_SHIPPED,
        $orderClient::STATUS_UNSHIPPED,
    ]
);