| Line 297... |
Line 297... |
| 297 |
*/
|
297 |
*/
|
| 298 |
public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
|
298 |
public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
|
| 299 |
|
299 |
|
| 300 |
/**
|
300 |
/**
|
| 301 |
* Sends out an email to the account manager of the original courier provider used to ship the order.
|
301 |
* Sends out an email to the account manager of the original courier provider used to ship the order.
|
| 302 |
* If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
|
302 |
* If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
|
| 303 |
* If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
|
303 |
* If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
|
| 304 |
* For any other status, it returns false.
|
304 |
* For any other status, it returns false.
|
| 305 |
* Throws an exception if the order with the given id couldn't be found.
|
305 |
* Throws an exception if the order with the given id couldn't be found.
|
| 306 |
*
|
306 |
*
|
| 307 |
* @param orderId
|
307 |
* @param orderId
|
| 308 |
*/
|
308 |
*/
|
| 309 |
public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
|
309 |
public boolean requestPickupNumber(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
|
| 310 |
|
310 |
|
| 311 |
/**
|
311 |
/**
|
| 312 |
* If the order status is DOA_PICKUP_REQUESTED, it does the following
|
312 |
* If the order status is DOA_PICKUP_REQUEST_RAISED, it does the following
|
| 313 |
* 1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
|
313 |
* 1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
|
| 314 |
* 2. Changes order status to be DOA_PICKUP_AUTHORIZED.
|
314 |
* 2. Changes order status to be DOA_PICKUP_AUTHORIZED.
|
| 315 |
* 3. Returns true
|
315 |
* 3. Returns true
|
| 316 |
* If the order is in any other status, it returns false.
|
316 |
* If the order is in any other status, it returns false.
|
| 317 |
* Throws an exception if the order with the given id couldn't be found.
|
317 |
* Throws an exception if the order with the given id couldn't be found.
|
| Line 329... |
Line 329... |
| 329 |
* @param pickupDetails
|
329 |
* @param pickupDetails
|
| 330 |
*/
|
330 |
*/
|
| 331 |
public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException;
|
331 |
public List<Order> markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException;
|
| 332 |
|
332 |
|
| 333 |
/**
|
333 |
/**
|
| 334 |
* If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
|
334 |
* If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
|
| 335 |
* If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
|
335 |
* If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
|
| 336 |
* If the order is in any other state, it returns false.
|
336 |
* If the order is in any other state, it returns false.
|
| 337 |
* Throws an exception if the order with the given id couldn't be found.
|
337 |
* Throws an exception if the order with the given id couldn't be found.
|
| 338 |
*
|
338 |
*
|
| 339 |
* @param orderId
|
339 |
* @param orderId
|
| 340 |
*/
|
340 |
*/
|
| 341 |
public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
|
341 |
public boolean receiveReturn(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
|
| 342 |
|
342 |
|
| 343 |
/**
|
343 |
/**
|
| 344 |
* Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
|
344 |
* Used to validate the DOA certificate for an order in the DOA_RECEIVED_PRESTINE state. If the certificate is valid,
|
| 345 |
* the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
|
345 |
* the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
|
| 346 |
* If the order is in any other state, it returns false.
|
346 |
* If the order is in any other state, it returns false.
|
| 347 |
* Throws an exception if the order with the given id couldn't be found.
|
347 |
* Throws an exception if the order with the given id couldn't be found.
|
| 348 |
*
|
348 |
*
|
| 349 |
* @param orderId
|
349 |
* @param orderId
|
| Line 357... |
Line 357... |
| 357 |
* 2. Marks the current order as one of the final states SALES_RET_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
|
357 |
* 2. Marks the current order as one of the final states SALES_RET_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
|
| 358 |
*
|
358 |
*
|
| 359 |
* If the order is in DOA_CERT_VALID state, it does the following:
|
359 |
* If the order is in DOA_CERT_VALID state, it does the following:
|
| 360 |
* 1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
|
360 |
* 1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
|
| 361 |
* 2. Creates a return order for the warehouse executive to return the DOA material.
|
361 |
* 2. Creates a return order for the warehouse executive to return the DOA material.
|
| 362 |
* 3. Marks the current order as the final DOA_RESHIPPED state.
|
362 |
* 3. Marks the current order as the final DOA_VALID_RESHIPPED state.
|
| 363 |
*
|
363 |
*
|
| 364 |
* Returns the id of the newly created order.
|
364 |
* Returns the id of the newly created order.
|
| 365 |
*
|
365 |
*
|
| 366 |
* Throws an exception if the order with the given id couldn't be found.
|
366 |
* Throws an exception if the order with the given id couldn't be found.
|
| 367 |
*
|
367 |
*
|
| Line 38407... |
Line 38407... |
| 38407 |
}
|
38407 |
}
|
| 38408 |
}
|
38408 |
}
|
| 38409 |
|
38409 |
|
| 38410 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
38410 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 38411 |
try {
|
38411 |
try {
|
| - |
|
38412 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
38413 |
__isset_bit_vector = new BitSet(1);
|
| 38412 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
38414 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 38413 |
} catch (org.apache.thrift.TException te) {
|
38415 |
} catch (org.apache.thrift.TException te) {
|
| 38414 |
throw new java.io.IOException(te);
|
38416 |
throw new java.io.IOException(te);
|
| 38415 |
}
|
38417 |
}
|
| 38416 |
}
|
38418 |
}
|