lineofflight / peddler

Amazon Selling Partner API (SP-API) in Ruby
MIT License
307 stars 130 forks source link

Please add FBAInbound_GetPalletLabels #74

Closed noorani786 closed 7 years ago

noorani786 commented 8 years ago

The API method to retrieve pallet labels is missing. Can you please add?

http://docs.developer.amazonservices.com/en_US/fba_inbound/FBAInbound_GetPalletLabels.html

Thanks!

hakanensari commented 8 years ago

See #73.

noorani786 commented 7 years ago

I have implemented this but getting an accessing denied when trying to push another branch onto your repository so I can create a pull request. Here is the implementation:

 # Returns PDF document data for printing pallet labels for an inbound shipment
      #
      # @see http://docs.developer.amazonservices.com/en_US/fba_inbound/FBAInbound_GetPackageLabels.html
      # @param [String] shipment_id
      # @param [String] page_type
      # @param [String] number_of_pallets
      # @return [Peddler::XMLParser]
      def get_pallet_labels(shipment_id, page_type, opts = {})
        operation('GetPalletLabels')
          .add('ShipmentId' => shipment_id,
               'PageType' => page_type,
               'NumberOfPallets' => number_of_pallets)
        run
      end