Odessa Content Sharing  





  Register now   Forgot password ?

UpdatePack_Destination

Step 3 : Update package destionation

delivery_type : dictionary : till_at
delivery_take_type : dictionary : bring_type
delivery_asap : dictionary : urgent

taken_type : dictionary : till_at
taken_bring_type : dictionary : bring_type
taken_asap: dictionary : urgent

pack_insurance_mode  : 1 if auto insurance other way item value is larger

[
    {     
        "pack_id" : "10",
        "pack_from_lat" : "18272.332992",
        "pack_from_lng" : "45645.123234",
        "pack_from_text" : "new york",
        "pack_to_lat" : "2342.2342",
        "pack_to_lng" : "1233.2323",
        "pack_to_text" : "baku",
        "distance" : "188",
        "distance_time" : "22",
        
        "taken_time" : "2017-04-17 15:32:00",
        "taken_type" : "400",
        "taken_asap" : "my new package",
        
        "delivery_time" : "2017-05-17 15:32:00",
        "delivery_type" : "400",
        "delivery_asap" : "my new package",
        
        "log_session_key" : "CCC4C0C0-9426-4408-B229-14C80B23E3D92017032923210",
        "log_device_id"   : "deviceid123",
        "log_user_argent" : "Firefox",
        "log_device_type" : "APPLE_PHONE"        
    }
]
 

This will return the cost of package with insurance and without insurance 

{"code":"0","inserted_id":-1,"details":{"pack_price_with_ins":90.4491,"pack_price_without_ins":90.4491,"pack_insurance_price":0,"pack_insurance_mode":1,"pack_auto_ins":"500"}}

pack_auto_ins - this is auto insurance price 500 usd as anar said

pack_price_with_ins - this is package price with insurance . it will be the same with pack_price_without_ins if the item value s under < 500

pack_insurance_mode will 2 if item_value > pack_auto_ins  and will 1 if  item_value < pack_auto_ins