send("/orders/v0/orders", [ 'method' => 'GET', 'query' => $queryParams, ]); } public function getOrdersAsync($queryParams = []) { return $this->sendAsync("/orders/v0/orders", [ 'method' => 'GET', 'query' => $queryParams, ]); } /** * Operation getOrder * * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. * */ public function getOrder($orderId) { return $this->send("/orders/v0/orders/{$orderId}", [ 'method' => 'GET', ]); } public function getOrderAsync($orderId) { return $this->sendAsync("/orders/v0/orders/{$orderId}", [ 'method' => 'GET', ]); } /** * Operation getOrderBuyerInfo * * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. * */ public function getOrderBuyerInfo($orderId) { return $this->send("/orders/v0/orders/{$orderId}/buyerInfo", [ 'method' => 'GET', ]); } public function getOrderBuyerInfoAsync($orderId) { return $this->sendAsync("/orders/v0/orders/{$orderId}/buyerInfo", [ 'method' => 'GET', ]); } /** * Operation getOrderAddress * * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. * */ public function getOrderAddress($orderId) { return $this->send("/orders/v0/orders/{$orderId}/address", [ 'method' => 'GET', ]); } public function getOrderAddressAsync($orderId) { return $this->sendAsync("/orders/v0/orders/{$orderId}/address", [ 'method' => 'GET', ]); } /** * Operation getOrderItems * * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. * * @param array $queryParams * - *nextToken* string - A string token returned in the response of your previous request. * */ public function getOrderItems($orderId, $queryParams = []) { return $this->send("/orders/v0/orders/{$orderId}/orderItems", [ 'method' => 'GET', 'query' => $queryParams, ]); } public function getOrderItemsAsync($orderId, $queryParams = []) { return $this->sendAsync("/orders/v0/orders/{$orderId}/orderItems", [ 'method' => 'GET', 'query' => $queryParams, ]); } /** * Operation getOrderItemsBuyerInfo * * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. * * @param array $queryParams * - *nextToken* string - A string token returned in the response of your previous request. * */ public function getOrderItemsBuyerInfo($orderId, $queryParams = []) { return $this->send("/orders/v0/orders/{$orderId}/orderItems/buyerInfo", [ 'method' => 'GET', 'query' => $queryParams, ]); } public function getOrderItemsBuyerInfoAsync($orderId, $queryParams = []) { return $this->sendAsync("/orders/v0/orders/{$orderId}/orderItems/buyerInfo", [ 'method' => 'GET', 'query' => $queryParams, ]); } /** * Operation updateShipmentStatus * * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. * */ public function updateShipmentStatus($orderId, $body = []) { return $this->send("/orders/v0/orders/{$orderId}/shipment", [ 'method' => 'POST', 'json' => $body ]); } public function updateShipmentStatusAsync($orderId, $body = []) { return $this->sendAsync("/orders/v0/orders/{$orderId}/shipment", [ 'method' => 'POST', 'json' => $body ]); } /** * Operation getOrderRegulatedInfo * * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. * */ public function getOrderRegulatedInfo($orderId) { return $this->send("/orders/v0/orders/{$orderId}/regulatedInfo", [ 'method' => 'GET', ]); } public function getOrderRegulatedInfoAsync($orderId) { return $this->sendAsync("/orders/v0/orders/{$orderId}/regulatedInfo", [ 'method' => 'GET', ]); } /** * Operation updateVerificationStatus * * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. * */ public function updateVerificationStatus($orderId, $body = []) { return $this->send("/orders/v0/orders/{$orderId}/regulatedInfo", [ 'method' => 'PATCH', 'json' => $body ]); } public function updateVerificationStatusAsync($orderId, $body = []) { return $this->sendAsync("/orders/v0/orders/{$orderId}/regulatedInfo", [ 'method' => 'PATCH', 'json' => $body ]); } }