A Promise resolving to an object with pagination info and an array of past orders. When successful, it will append orders to Sales.orders
array.
{
"start": 0,
"pageSize": 10,
"maxResults": 27,
"orders": [
{
"orderNumber": "27JAD89AS",
"orderDate": "2019-06-05T17:42:54.266Z",
"orderType": "Parent or Renewal",
"orderStatus": "Pending,PartiallyPaid,Paid,Cancelled",
"totalAmount": 10,
"tax": 10,
"currency": "USD",
"products": [
{
"sku": "ABCD1234",
"name": "shoe",
"quantity": 1
}
],
"paymentGateway": "PaymentExpress,Spreedly,SlimPayCredit,PayULATAM",
"lastFour": "1234",
"nameOnPayment": "Mister Money",
"creditCardBrand": "Visa"
}
]
}