Class: DHLEcommerceEU::LabelResource

Inherits:
BaseResource show all
Defined in:
lib/dhl_ecommerce_eu/resources/label_resource.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#client

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from DHLEcommerceEU::BaseResource

Instance Method Details

#retrieve(piece_id, customer_id) ⇒ Label

Retrieve label for a shipment

Parameters:

  • piece_id (string)

    The shipment id

  • customer_id (string)

    The customer id

Returns:

  • (Label)

    Label object



11
12
13
# File 'lib/dhl_ecommerce_eu/resources/label_resource.rb', line 11

def retrieve(piece_id, customer_id)
  Label.new get_request('ccc/label-reprint', params: { pieceId: piece_id, customerId: customer_id }).parse
end