Class: Delhivery::PickUpService

Inherits:
BaseService show all
Defined in:
lib/delhivery/services/pickup_service.rb

Class Method Summary collapse

Class Method Details

.request_pickup(dateTime, location, count) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/delhivery/services/pickup_service.rb', line 4

def request_pickup(dateTime, location, count)
  connection.post(path, {
    pickup_time: dateTime.strftime("%H:%M:%S"),
    pickup_date: dateTime.strftime("%Y%m%d"),
    pickup_location: location,
    expected_package_count: count
    }
  )
end