Sha256: c1009132bab5b4a6f4bb6b3b2be979bfb6e9388d031bc4d037abd2a30845406b

Contents?: true

Size: 1.41 KB

Versions: 5

Compression:

Stored size: 1.41 KB

Contents

module MuffinMan
  module Solicitations
    class V1 < SpApiClient
      SANDBOX_AMAZON_ORDER_ID = "123-1234567-1234567"
      SANDBOX_MARKETPLACE_IDS = "ATVPDKIKX0DER"
      attr_reader :amazon_order_id, :marketplace_ids

      # Sends a solicitation to a buyer asking for seller feedback and a product review for the specified order. Send only one productReviewAndSellerFeedback or free form proactive message per order.  **Usage Plan:**  | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 |  For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
      # @param amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent.
      # @param marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
      def create_product_review_and_seller_feedback_solicitation(amazon_order_id, marketplace_ids)
        @amazon_order_id = sandbox ? SANDBOX_AMAZON_ORDER_ID : amazon_order_id
        @marketplace_ids = sandbox ? SANDBOX_MARKETPLACE_IDS : marketplace_ids
        @local_var_path = '/solicitations/v1/orders/{amazonOrderId}/solicitations/productReviewAndSellerFeedback'.sub('{' + 'amazonOrderId' + '}', @amazon_order_id)
        @query_params = { "marketplaceIds" => @marketplace_ids }
        @request_type = 'POST'
        call_api
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
muffin_man-1.2.0 lib/muffin_man/solicitations/v1.rb
muffin_man-1.1.0 lib/muffin_man/solicitations/v1.rb
muffin_man-1.0.2 lib/muffin_man/solicitations/v1.rb
muffin_man-1.0.1 lib/muffin_man/solicitations/v1.rb
muffin_man-1.0.0 lib/muffin_man/solicitations/v1.rb