Rev 442 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
namespace java in.shop2020.logisticsnamespace py shop2020.thriftpy.logisticsstruct ShipmentUpdate{1:string pin,2:i64 timestamp,3:string description}struct ShipmentStatusInfo{1:string awb,3:i64 provider_id,4:list<ShipmentUpdate> updates,5:ShipmentUpdate currentUpdate}struct Provider{1:i64 id,2:string name}struct Shipment{1:string warehouse_name,2:string awb,3:string origin,4:string destination,5:i64 timestamp,6:string recepient_name,7:string recepient_address,8:string recepient_pincode,9:string recepient_phone,10:string shipment_weight,11:string shipment_contents}service LogisticsService{//APIs to be used by shop2020 componentsvoid addEmptyAWBs(1:list<string> numbers, 2:i64 provider_id),string getEmptyAWB(1:i64 provider_id),list<Provider> getProviders(),Provider getProvider(1:i64 provider_id),ShipmentStatusInfo getShipmentInfo(1:string awb),//APIs to be used by logistic providerlist<Shipment> getShipments(1:i64 warehouse_id, 2:i64 from_date, 3:i64 to_date, 4:i64 provider_id),list<Shipment> getTodaysShipments(1:i64 warehouse_id,2:i64 provider_id)}