JSON Hypertext Application Language (HAL) standard. */ namespace DoubleBreak\Spapi\Api; use DoubleBreak\Spapi\Client; class Solicitations extends Client { /** * Operation getSolicitationActionsForOrder * * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. * * @param array $queryParams * - *marketplaceIds* array - A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. * */ public function getSolicitationActionsForOrder($amazonOrderId, $queryParams = []) { return $this->send("/solicitations/v1/orders/{$amazonOrderId}", [ 'method' => 'GET', 'query' => $queryParams, ]); } public function getSolicitationActionsForOrderAsync($amazonOrderId, $queryParams = []) { return $this->sendAsync("/solicitations/v1/orders/{$amazonOrderId}", [ 'method' => 'GET', 'query' => $queryParams, ]); } /** * Operation createProductReviewAndSellerFeedbackSolicitation * * @param string $amazonOrderId An Amazon order identifier. This specifies the order for which a solicitation is sent. * * @param array $queryParams * - *marketplaceIds* array - A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. * */ public function createProductReviewAndSellerFeedbackSolicitation($amazonOrderId, $queryParams = []) { return $this->send("/solicitations/v1/orders/{$amazonOrderId}/solicitations/productReviewAndSellerFeedback", [ 'method' => 'POST', 'query' => $queryParams, ]); } public function createProductReviewAndSellerFeedbackSolicitationAsync($amazonOrderId, $queryParams = []) { return $this->sendAsync("/solicitations/v1/orders/{$amazonOrderId}/solicitations/productReviewAndSellerFeedback", [ 'method' => 'POST', 'query' => $queryParams, ]); } }