Sha256: 40c000459c7c3ac3ea341dd4c2bc11f472b76fe9811980e45e2197457f6035a5

Contents?: true

Size: 1.35 KB

Versions: 8

Compression:

Stored size: 1.35 KB

Contents

module DHLEcommerceAPI
  class Shipment::Dropoff < Shipment
    # This creates a Shipment ONLY. 
    # DHL will expect the item to be dropped off at one of their locations.
    # Used in conjunction with the Pickup class.

    self.element_name = ""

    DEFAULT_ATTRIBUTES = {
      handover_method: 1,
      shipment_items: []
    }
  end
end

# shipment_with_dropoff_params = {
#   "shipment_items" => [
#     { 
#       "consignee_address" => { 
#         "company_name" => "Test",
#         "name" => "Test1",
#         "address1" => "NO 3 JALAN PPU 1",
#         "address2" => "TAMAN PERINDUSTRIAN PUCHONG UTAMA",
#         "address3" => nil,
#         "city" => "PUCHONG",
#         "state" => "SELANGOR",
#         "district" => nil,
#         "country" => "MY",
#         "post_code" => "57000",
#         "phone" => "0123456798",
#         "email" => nil 
#       },
#       "shipment_id" => "MYPTC000103",
#       "package_desc" => "Bread Materials",
#       "total_weight" => 2000,
#       "total_weight_uom" => "G",
#       "dimension_uom" => "CM",
#       "height" => nil,
#       "length" => nil,
#       "width" => nil,
#       "product_code" => "PDO",
#       "cod_value" => nil,
#       "insurance_value" => nil,
#       "total_value" => 300,
#       "currency" => "MYR",
#       "remarks" => nil,
#       "is_routing_info_required" => "Y" 
#     }
#   ],
# }

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dhl_ecommerce_api-0.1.7 lib/dhl_ecommerce_api/resources/shipment/dropoff.rb
dhl_ecommerce_api-0.1.6 lib/dhl_ecommerce_api/resources/shipment/dropoff.rb
dhl_ecommerce_api-0.1.5 lib/dhl_ecommerce_api/resources/shipment/dropoff.rb
dhl_ecommerce_api-0.1.4 lib/dhl_ecommerce_api/resources/shipment/dropoff.rb
dhl_ecommerce_api-0.1.3 lib/dhl_ecommerce_api/resources/shipment/dropoff.rb
dhl_ecommerce_api-0.1.2 lib/dhl_ecommerce_api/resources/shipment/dropoff.rb
dhl_ecommerce_api-0.1.1 lib/dhl_ecommerce_api/resources/shipment/dropoff.rb
dhl_ecommerce_api-0.1.0 lib/dhl_ecommerce_api/resources/shipment/dropoff.rb