Subversion Repositories SmartDukaan

Rev

Rev 3427 | Rev 3451 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3427 Rev 3431
Line 1... Line 1...
1
#
1
#
2
# Autogenerated by Thrift
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
5
#
6
 
6
 
7
from thrift.Thrift import *
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
9
from ttypes import *
10
from thrift.Thrift import TProcessor
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
13
try:
14
  from thrift.protocol import fastbinary
14
  from thrift.protocol import fastbinary
15
except:
15
except:
16
  fastbinary = None
16
  fastbinary = None
17
 
17
 
Line 82... Line 82...
82
    pass
82
    pass
83
 
83
 
84
  def getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
84
  def getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
85
    """
85
    """
86
    Returns orders within a range of their billing dates
86
    Returns orders within a range of their billing dates
87
    
87
 
88
    Parameters:
88
    Parameters:
89
     - status
89
     - status
90
     - start_billing_date
90
     - start_billing_date
91
     - end_billing_date
91
     - end_billing_date
92
     - warehouse_id
92
     - warehouse_id
Line 95... Line 95...
95
 
95
 
96
  def getOrdersByShippingDate(self, fromShippingDate, toShippingDate, providerId, warehouseId):
96
  def getOrdersByShippingDate(self, fromShippingDate, toShippingDate, providerId, warehouseId):
97
    """
97
    """
98
    Returns orders for a particular provider and warehouse which were shipped between the given dates.
98
    Returns orders for a particular provider and warehouse which were shipped between the given dates.
99
    Pass providerId and warehouseId as -1 to ignore both the parameters.
99
    Pass providerId and warehouseId as -1 to ignore both the parameters.
100
    
100
 
101
    Parameters:
101
    Parameters:
102
     - fromShippingDate
102
     - fromShippingDate
103
     - toShippingDate
103
     - toShippingDate
104
     - providerId
104
     - providerId
105
     - warehouseId
105
     - warehouseId
Line 107... Line 107...
107
    pass
107
    pass
108
 
108
 
109
  def getReturnableOrdersForCustomer(self, customer_id, limit):
109
  def getReturnableOrdersForCustomer(self, customer_id, limit):
110
    """
110
    """
111
    Returns order ids for orders which can be returned
111
    Returns order ids for orders which can be returned
112
    
112
 
113
    Parameters:
113
    Parameters:
114
     - customer_id
114
     - customer_id
115
     - limit
115
     - limit
116
    """
116
    """
117
    pass
117
    pass
118
 
118
 
119
  def getCancellableOrdersForCustomer(self, customer_id, limit):
119
  def getCancellableOrdersForCustomer(self, customer_id, limit):
120
    """
120
    """
121
    Returns order ids for orders which can be cancelled
121
    Returns order ids for orders which can be cancelled
122
    
122
 
123
    Parameters:
123
    Parameters:
124
     - customer_id
124
     - customer_id
125
     - limit
125
     - limit
126
    """
126
    """
127
    pass
127
    pass
Line 137... Line 137...
137
 
137
 
138
  def getOrdersForTransaction(self, transactionId, customerId):
138
  def getOrdersForTransaction(self, transactionId, customerId):
139
    """
139
    """
140
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
140
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
141
    only user who owns the transaction can view its order details.
141
    only user who owns the transaction can view its order details.
142
    
142
 
143
    Parameters:
143
    Parameters:
144
     - transactionId
144
     - transactionId
145
     - customerId
145
     - customerId
146
    """
146
    """
147
    pass
147
    pass
148
 
148
 
149
  def getOrdersForCustomer(self, customerId, from_date, to_date, statuses):
149
  def getOrdersForCustomer(self, customerId, from_date, to_date, statuses):
150
    """
150
    """
151
    Returns list of orders for the given customer created between the given dates and having the given statuses.
151
    Returns list of orders for the given customer created between the given dates and having the given statuses.
152
    Pass and empty list to ignore filtering on statuses.
152
    Pass and empty list to ignore filtering on statuses.
153
    
153
 
154
    Parameters:
154
    Parameters:
155
     - customerId
155
     - customerId
156
     - from_date
156
     - from_date
157
     - to_date
157
     - to_date
158
     - statuses
158
     - statuses
Line 182... Line 182...
182
 
182
 
183
  def getOrderForCustomer(self, orderId, customerId):
183
  def getOrderForCustomer(self, orderId, customerId):
184
    """
184
    """
185
    Returns an order for the order Id. Also checks if the order belongs to the customer whose Id is passed.
185
    Returns an order for the order Id. Also checks if the order belongs to the customer whose Id is passed.
186
    Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
186
    Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
187
    
187
 
188
    Parameters:
188
    Parameters:
189
     - orderId
189
     - orderId
190
     - customerId
190
     - customerId
191
    """
191
    """
192
    pass
192
    pass
Line 230... Line 230...
230
 
230
 
231
  def getValidOrders(self, limit):
231
  def getValidOrders(self, limit):
232
    """
232
    """
233
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
233
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
234
    If limit is passed as 0, then all valid Orders are returned.
234
    If limit is passed as 0, then all valid Orders are returned.
235
    
235
 
236
    Parameters:
236
    Parameters:
237
     - limit
237
     - limit
238
    """
238
    """
239
    pass
239
    pass
240
 
240
 
241
  def batchOrders(self, warehouseId):
241
  def batchOrders(self, warehouseId):
242
    """
242
    """
243
    Create a batch of all the pending orders for the given warehouse.
243
    Create a batch of all the pending orders for the given warehouse.
244
    The returned list is orderd by created_timestamp.
244
    The returned list is orderd by created_timestamp.
245
    If there are no pending orders, an empty list is returned.
245
    If there are no pending orders, an empty list is returned.
246
    
246
 
247
    Parameters:
247
    Parameters:
248
     - warehouseId
248
     - warehouseId
249
    """
249
    """
250
    pass
250
    pass
251
 
251
 
252
  def markOrderAsOutOfStock(self, orderId):
252
  def markOrderAsOutOfStock(self, orderId):
253
    """
253
    """
254
    Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
254
    Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
255
    
255
 
256
    Parameters:
256
    Parameters:
257
     - orderId
257
     - orderId
258
    """
258
    """
259
    pass
259
    pass
260
 
260
 
Line 262... Line 262...
262
    """
262
    """
263
    Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
263
    Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
264
    timestamp. It is intended to be used for COD orders but can be harmlessly
264
    timestamp. It is intended to be used for COD orders but can be harmlessly
265
    used for all other orders as well.
265
    used for all other orders as well.
266
    Throws an exception if no such order exists.
266
    Throws an exception if no such order exists.
267
    
267
 
268
    Parameters:
268
    Parameters:
269
     - orderId
269
     - orderId
270
    """
270
    """
271
    pass
271
    pass
272
 
272
 
Line 274... Line 274...
274
    """
274
    """
275
    Marks the given order as ACCEPTED and updates the accepted timestamp. If the
275
    Marks the given order as ACCEPTED and updates the accepted timestamp. If the
276
    given order is not a COD order, it also captures the payment if the same has
276
    given order is not a COD order, it also captures the payment if the same has
277
    not been captured.
277
    not been captured.
278
    Throws an exception if no such order exists.
278
    Throws an exception if no such order exists.
279
    
279
 
280
    Parameters:
280
    Parameters:
281
     - orderId
281
     - orderId
282
    """
282
    """
283
    pass
283
    pass
284
 
284
 
Line 292... Line 292...
292
  def addBillingDetails(self, orderId, invoice_number, billed_by):
292
  def addBillingDetails(self, orderId, invoice_number, billed_by):
293
    """
293
    """
294
    Add billing details such as the bill number and the biller to the Order.
294
    Add billing details such as the bill number and the biller to the Order.
295
    Should be used when the bill is issued by a 3rd party and we've to feed
295
    Should be used when the bill is issued by a 3rd party and we've to feed
296
    the information into our system.
296
    the information into our system.
297
    
297
 
298
    Parameters:
298
    Parameters:
299
     - orderId
299
     - orderId
300
     - invoice_number
300
     - invoice_number
301
     - billed_by
301
     - billed_by
302
    """
302
    """
Line 307... Line 307...
307
    Adds jacket number, item number and IMEI no. to the order. Doesn't update
307
    Adds jacket number, item number and IMEI no. to the order. Doesn't update
308
    the IMEI no. if a -1 is supplied.
308
    the IMEI no. if a -1 is supplied.
309
    Also, it generates an invoice number for the order, marks the order as
309
    Also, it generates an invoice number for the order, marks the order as
310
    BILLED and sets the billing timestamp.
310
    BILLED and sets the billing timestamp.
311
    It should be used when we are billing the orders ourselves.
311
    It should be used when we are billing the orders ourselves.
312
    
312
 
313
    Returns false if it doesn't find the order with the given ID.
313
    Returns false if it doesn't find the order with the given ID.
314
    
314
 
315
    Parameters:
315
    Parameters:
316
     - orderId
316
     - orderId
317
     - jacketNumber
317
     - jacketNumber
318
     - imeiNumber
318
     - imeiNumber
319
     - itemNumber
319
     - itemNumber
Line 324... Line 324...
324
 
324
 
325
  def markOrdersAsManifested(self, warehouseId, providerId, cod):
325
  def markOrdersAsManifested(self, warehouseId, providerId, cod):
326
    """
326
    """
327
    Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
327
    Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
328
    given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
328
    given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
329
    
329
 
330
    Parameters:
330
    Parameters:
331
     - warehouseId
331
     - warehouseId
332
     - providerId
332
     - providerId
333
     - cod
333
     - cod
334
    """
334
    """
Line 337... Line 337...
337
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
337
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
338
    """
338
    """
339
    Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
339
    Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
340
    Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
340
    Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
341
    Raises an exception if we encounter report for an AWB number that we did not ship.
341
    Raises an exception if we encounter report for an AWB number that we did not ship.
342
    
342
 
343
    Parameters:
343
    Parameters:
344
     - providerId
344
     - providerId
345
     - pickupDetails
345
     - pickupDetails
346
    """
346
    """
347
    pass
347
    pass
Line 349... Line 349...
349
  def markOrdersAsDelivered(self, providerId, deliveredOrders):
349
  def markOrdersAsDelivered(self, providerId, deliveredOrders):
350
    """
350
    """
351
    Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
351
    Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
352
    the name of the receiver.
352
    the name of the receiver.
353
    Raises an exception if we encounter report for an AWB number that we did not ship.
353
    Raises an exception if we encounter report for an AWB number that we did not ship.
354
    
354
 
355
    Parameters:
355
    Parameters:
356
     - providerId
356
     - providerId
357
     - deliveredOrders
357
     - deliveredOrders
358
    """
358
    """
359
    pass
359
    pass
360
 
360
 
361
  def markOrdersAsFailed(self, providerId, returnedOrders):
361
  def markOrdersAsFailed(self, providerId, returnedOrders):
362
    """
362
    """
363
    Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
363
    Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
364
    Raises an exception if we encounter report for an AWB number that we did not ship.
364
    Raises an exception if we encounter report for an AWB number that we did not ship.
365
    
365
 
366
    Parameters:
366
    Parameters:
367
     - providerId
367
     - providerId
368
     - returnedOrders
368
     - returnedOrders
369
    """
369
    """
370
    pass
370
    pass
371
 
371
 
372
  def updateNonDeliveryReason(self, providerId, undeliveredOrders):
372
  def updateNonDeliveryReason(self, providerId, undeliveredOrders):
373
    """
373
    """
374
    Update the status description of orders whose AWB numbers are keys of the Map.
374
    Update the status description of orders whose AWB numbers are keys of the Map.
375
    
375
 
376
    Parameters:
376
    Parameters:
377
     - providerId
377
     - providerId
378
     - undeliveredOrders
378
     - undeliveredOrders
379
    """
379
    """
380
    pass
380
    pass
Line 383... Line 383...
383
    """
383
    """
384
    Returns the list of orders whose delivery time has passed but have not been
384
    Returns the list of orders whose delivery time has passed but have not been
385
    delivered yet for the given provider and warehouse. To get a complete list of
385
    delivered yet for the given provider and warehouse. To get a complete list of
386
    undelivered orders, pass them as -1.
386
    undelivered orders, pass them as -1.
387
    Returns an empty list if no such orders exist.
387
    Returns an empty list if no such orders exist.
388
    
388
 
389
    Parameters:
389
    Parameters:
390
     - providerId
390
     - providerId
391
     - warehouseId
391
     - warehouseId
392
    """
392
    """
393
    pass
393
    pass
Line 395... Line 395...
395
  def toggleDOAFlag(self, orderId):
395
  def toggleDOAFlag(self, orderId):
396
    """
396
    """
397
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
397
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
398
    Returns the final flag status.
398
    Returns the final flag status.
399
    Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
399
    Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
400
    
400
 
401
    Parameters:
401
    Parameters:
402
     - orderId
402
     - orderId
403
    """
403
    """
404
    pass
404
    pass
405
 
405
 
Line 408... Line 408...
408
    Sends out an email to the account manager of the original courier provider used to ship the order.
408
    Sends out an email to the account manager of the original courier provider used to ship the order.
409
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
409
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
410
    If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
410
    If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
411
    For any other status, it returns false.
411
    For any other status, it returns false.
412
    Throws an exception if the order with the given id couldn't be found.
412
    Throws an exception if the order with the given id couldn't be found.
413
    
413
 
414
    Parameters:
414
    Parameters:
415
     - orderId
415
     - orderId
416
    """
416
    """
417
    pass
417
    pass
418
 
418
 
Line 422... Line 422...
422
    	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
422
    	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
423
    	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
423
    	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
424
    	3. Returns true
424
    	3. Returns true
425
    If the order is in any other status, it returns false.
425
    If the order is in any other status, it returns false.
426
    Throws an exception if the order with the given id couldn't be found.
426
    Throws an exception if the order with the given id couldn't be found.
427
    
427
 
428
    Parameters:
428
    Parameters:
429
     - orderId
429
     - orderId
430
     - pickupNumber
430
     - pickupNumber
431
    """
431
    """
432
    pass
432
    pass
433
 
433
 
434
  def markDoasAsPickedUp(self, providerId, pickupDetails):
434
  def markDoasAsPickedUp(self, providerId, pickupDetails):
435
    """
435
    """
436
    Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
436
    Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
437
    Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
437
    Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
438
    
438
 
439
    Parameters:
439
    Parameters:
440
     - providerId
440
     - providerId
441
     - pickupDetails
441
     - pickupDetails
442
    """
442
    """
443
    pass
443
    pass
Line 446... Line 446...
446
    """
446
    """
447
    If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
447
    If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
448
    If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
448
    If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
449
    If the order is in any other state, it returns false.
449
    If the order is in any other state, it returns false.
450
    Throws an exception if the order with the given id couldn't be found.
450
    Throws an exception if the order with the given id couldn't be found.
451
    
451
 
452
    Parameters:
452
    Parameters:
453
     - orderId
453
     - orderId
454
    """
454
    """
455
    pass
455
    pass
456
 
456
 
Line 458... Line 458...
458
    """
458
    """
459
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
459
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
460
    the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
460
    the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
461
    If the order is in any other state, it returns false.
461
    If the order is in any other state, it returns false.
462
    Throws an exception if the order with the given id couldn't be found.
462
    Throws an exception if the order with the given id couldn't be found.
463
    
463
 
464
    Parameters:
464
    Parameters:
465
     - orderId
465
     - orderId
466
     - isValid
466
     - isValid
467
    """
467
    """
468
    pass
468
    pass
Line 475... Line 475...
475
    	
475
    	
476
    If the order is in DOA_CERT_VALID state, it does the following:
476
    If the order is in DOA_CERT_VALID state, it does the following:
477
    	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
477
    	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
478
    	2. Creates a return order for the warehouse executive to return the DOA material.
478
    	2. Creates a return order for the warehouse executive to return the DOA material.
479
    	3. Marks the current order as the final DOA_RESHIPPED state.
479
    	3. Marks the current order as the final DOA_RESHIPPED state.
480
    
480
 
481
    Returns the id of the newly created order.
481
    Returns the id of the newly created order.
482
    
482
 
483
    Throws an exception if the order with the given id couldn't be found.
483
    Throws an exception if the order with the given id couldn't be found.
484
    
484
 
485
    Parameters:
485
    Parameters:
486
     - orderId
486
     - orderId
487
    """
487
    """
488
    pass
488
    pass
489
 
489
 
Line 491... Line 491...
491
    """
491
    """
492
    If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
492
    If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
493
    	1. Creates a refund request for batch processing.
493
    	1. Creates a refund request for batch processing.
494
    	2. Creates a return order for the warehouse executive to return the shipped material.
494
    	2. Creates a return order for the warehouse executive to return the shipped material.
495
    	3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
495
    	3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
496
    
496
 
497
    If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
497
    If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
498
    	1. Creates a refund request for batch processing.
498
    	1. Creates a refund request for batch processing.
499
    	2. Cancels the reservation of the item in the warehouse.
499
    	2. Cancels the reservation of the item in the warehouse.
500
    	3. Marks the current order as the REFUNDED final state.
500
    	3. Marks the current order as the REFUNDED final state.
501
    
501
 
502
    For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
502
    For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
503
    	1. Cancels the reservation of the item in the warehouse.
503
    	1. Cancels the reservation of the item in the warehouse.
504
    	2. Marks the current order as CANCELED.
504
    	2. Marks the current order as CANCELED.
505
    	
505
    	
506
    In all cases, it updates the reason for cancellation or refund and the person who performed the action.
506
    In all cases, it updates the reason for cancellation or refund and the person who performed the action.
507
     
507
     
508
    Returns True if it is successful, False otherwise.
508
    Returns True if it is successful, False otherwise.
509
    
509
 
510
    Throws an exception if the order with the given id couldn't be found.
510
    Throws an exception if the order with the given id couldn't be found.
511
    
511
 
512
    Parameters:
512
    Parameters:
513
     - orderId
513
     - orderId
514
     - refundedBy
514
     - refundedBy
515
     - reason
515
     - reason
516
    """
516
    """
Line 518... Line 518...
518
 
518
 
519
  def getReturnOrders(self, warehouseId, fromDate, toDate):
519
  def getReturnOrders(self, warehouseId, fromDate, toDate):
520
    """
520
    """
521
    Get all return orders created between the from and to dates for the given warehouse.
521
    Get all return orders created between the from and to dates for the given warehouse.
522
    Ignores the warehouse if it is passed as -1.
522
    Ignores the warehouse if it is passed as -1.
523
    
523
 
524
    Parameters:
524
    Parameters:
525
     - warehouseId
525
     - warehouseId
526
     - fromDate
526
     - fromDate
527
     - toDate
527
     - toDate
528
    """
528
    """
Line 530... Line 530...
530
 
530
 
531
  def getReturnOrder(self, id):
531
  def getReturnOrder(self, id):
532
    """
532
    """
533
    Returns the ReturnOrder corresponding to the given id.
533
    Returns the ReturnOrder corresponding to the given id.
534
    Throws an exception if the return order with the given id couldn't be found.
534
    Throws an exception if the return order with the given id couldn't be found.
535
    
535
 
536
    Parameters:
536
    Parameters:
537
     - id
537
     - id
538
    """
538
    """
539
    pass
539
    pass
540
 
540
 
541
  def processReturn(self, returnOrderId):
541
  def processReturn(self, returnOrderId):
542
    """
542
    """
543
    Marks the return order with the given id as processed. Raises an exception if no such return order exists.
543
    Marks the return order with the given id as processed. Raises an exception if no such return order exists.
544
    
544
 
545
    Parameters:
545
    Parameters:
546
     - returnOrderId
546
     - returnOrderId
547
    """
547
    """
548
    pass
548
    pass
549
 
549
 
550
  def createPurchaseOrder(self, warehouseId):
550
  def createPurchaseOrder(self, warehouseId):
551
    """
551
    """
552
    Creates a purchase order corresponding to all the pending orders of the given warehouse.
552
    Creates a purchase order corresponding to all the pending orders of the given warehouse.
553
    Returns the PO no. of the newly created purchase order. Returns -1 no new purchase order had to be created.
553
    Returns the PO no. of the newly created purchase order. Returns -1 no new purchase order had to be created.
554
    
554
 
555
    Parameters:
555
    Parameters:
556
     - warehouseId
556
     - warehouseId
557
    """
557
    """
558
    pass
558
    pass
559
 
559
 
Line 586... Line 586...
586
      self._iprot.readMessageEnd()
586
      self._iprot.readMessageEnd()
587
      raise x
587
      raise x
588
    result = createTransaction_result()
588
    result = createTransaction_result()
589
    result.read(self._iprot)
589
    result.read(self._iprot)
590
    self._iprot.readMessageEnd()
590
    self._iprot.readMessageEnd()
591
    if result.success != None:
591
    if result.success is not None:
592
      return result.success
592
      return result.success
593
    if result.ex != None:
593
    if result.ex is not None:
594
      raise result.ex
594
      raise result.ex
595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
596
 
596
 
597
  def getTransaction(self, id):
597
  def getTransaction(self, id):
598
    """
598
    """
Line 618... Line 618...
618
      self._iprot.readMessageEnd()
618
      self._iprot.readMessageEnd()
619
      raise x
619
      raise x
620
    result = getTransaction_result()
620
    result = getTransaction_result()
621
    result.read(self._iprot)
621
    result.read(self._iprot)
622
    self._iprot.readMessageEnd()
622
    self._iprot.readMessageEnd()
623
    if result.success != None:
623
    if result.success is not None:
624
      return result.success
624
      return result.success
625
    if result.ex != None:
625
    if result.ex is not None:
626
      raise result.ex
626
      raise result.ex
627
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
627
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
628
 
628
 
629
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
629
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
630
    """
630
    """
Line 656... Line 656...
656
      self._iprot.readMessageEnd()
656
      self._iprot.readMessageEnd()
657
      raise x
657
      raise x
658
    result = getTransactionsForCustomer_result()
658
    result = getTransactionsForCustomer_result()
659
    result.read(self._iprot)
659
    result.read(self._iprot)
660
    self._iprot.readMessageEnd()
660
    self._iprot.readMessageEnd()
661
    if result.success != None:
661
    if result.success is not None:
662
      return result.success
662
      return result.success
663
    if result.ex != None:
663
    if result.ex is not None:
664
      raise result.ex
664
      raise result.ex
665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
666
 
666
 
667
  def getTransactionsForShoppingCartId(self, shoppingCartId):
667
  def getTransactionsForShoppingCartId(self, shoppingCartId):
668
    """
668
    """
Line 688... Line 688...
688
      self._iprot.readMessageEnd()
688
      self._iprot.readMessageEnd()
689
      raise x
689
      raise x
690
    result = getTransactionsForShoppingCartId_result()
690
    result = getTransactionsForShoppingCartId_result()
691
    result.read(self._iprot)
691
    result.read(self._iprot)
692
    self._iprot.readMessageEnd()
692
    self._iprot.readMessageEnd()
693
    if result.success != None:
693
    if result.success is not None:
694
      return result.success
694
      return result.success
695
    if result.ex != None:
695
    if result.ex is not None:
696
      raise result.ex
696
      raise result.ex
697
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");
697
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");
698
 
698
 
699
  def getTransactionStatus(self, transactionId):
699
  def getTransactionStatus(self, transactionId):
700
    """
700
    """
Line 720... Line 720...
720
      self._iprot.readMessageEnd()
720
      self._iprot.readMessageEnd()
721
      raise x
721
      raise x
722
    result = getTransactionStatus_result()
722
    result = getTransactionStatus_result()
723
    result.read(self._iprot)
723
    result.read(self._iprot)
724
    self._iprot.readMessageEnd()
724
    self._iprot.readMessageEnd()
725
    if result.success != None:
725
    if result.success is not None:
726
      return result.success
726
      return result.success
727
    if result.ex != None:
727
    if result.ex is not None:
728
      raise result.ex
728
      raise result.ex
729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
730
 
730
 
731
  def changeTransactionStatus(self, transactionId, status, description):
731
  def changeTransactionStatus(self, transactionId, status, description):
732
    """
732
    """
Line 756... Line 756...
756
      self._iprot.readMessageEnd()
756
      self._iprot.readMessageEnd()
757
      raise x
757
      raise x
758
    result = changeTransactionStatus_result()
758
    result = changeTransactionStatus_result()
759
    result.read(self._iprot)
759
    result.read(self._iprot)
760
    self._iprot.readMessageEnd()
760
    self._iprot.readMessageEnd()
761
    if result.success != None:
761
    if result.success is not None:
762
      return result.success
762
      return result.success
763
    if result.ex != None:
763
    if result.ex is not None:
764
      raise result.ex
764
      raise result.ex
765
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
765
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
766
 
766
 
767
  def enqueueTransactionInfoEmail(self, transactionId):
767
  def enqueueTransactionInfoEmail(self, transactionId):
768
    """
768
    """
Line 788... Line 788...
788
      self._iprot.readMessageEnd()
788
      self._iprot.readMessageEnd()
789
      raise x
789
      raise x
790
    result = enqueueTransactionInfoEmail_result()
790
    result = enqueueTransactionInfoEmail_result()
791
    result.read(self._iprot)
791
    result.read(self._iprot)
792
    self._iprot.readMessageEnd()
792
    self._iprot.readMessageEnd()
793
    if result.success != None:
793
    if result.success is not None:
794
      return result.success
794
      return result.success
795
    if result.ex != None:
795
    if result.ex is not None:
796
      raise result.ex
796
      raise result.ex
797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "enqueueTransactionInfoEmail failed: unknown result");
797
    raise TApplicationException(TApplicationException.MISSING_RESULT, "enqueueTransactionInfoEmail failed: unknown result");
798
 
798
 
799
  def getAllOrders(self, status, from_date, to_date, warehouse_id):
799
  def getAllOrders(self, status, from_date, to_date, warehouse_id):
800
    """
800
    """
Line 826... Line 826...
826
      self._iprot.readMessageEnd()
826
      self._iprot.readMessageEnd()
827
      raise x
827
      raise x
828
    result = getAllOrders_result()
828
    result = getAllOrders_result()
829
    result.read(self._iprot)
829
    result.read(self._iprot)
830
    self._iprot.readMessageEnd()
830
    self._iprot.readMessageEnd()
831
    if result.success != None:
831
    if result.success is not None:
832
      return result.success
832
      return result.success
833
    if result.ex != None:
833
    if result.ex is not None:
834
      raise result.ex
834
      raise result.ex
835
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
835
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
836
 
836
 
837
  def getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
837
  def getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
838
    """
838
    """
839
    Returns orders within a range of their billing dates
839
    Returns orders within a range of their billing dates
840
    
840
 
841
    Parameters:
841
    Parameters:
842
     - status
842
     - status
843
     - start_billing_date
843
     - start_billing_date
844
     - end_billing_date
844
     - end_billing_date
845
     - warehouse_id
845
     - warehouse_id
Line 866... Line 866...
866
      self._iprot.readMessageEnd()
866
      self._iprot.readMessageEnd()
867
      raise x
867
      raise x
868
    result = getOrdersByBillingDate_result()
868
    result = getOrdersByBillingDate_result()
869
    result.read(self._iprot)
869
    result.read(self._iprot)
870
    self._iprot.readMessageEnd()
870
    self._iprot.readMessageEnd()
871
    if result.success != None:
871
    if result.success is not None:
872
      return result.success
872
      return result.success
873
    if result.ex != None:
873
    if result.ex is not None:
874
      raise result.ex
874
      raise result.ex
875
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
875
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
876
 
876
 
877
  def getOrdersByShippingDate(self, fromShippingDate, toShippingDate, providerId, warehouseId):
877
  def getOrdersByShippingDate(self, fromShippingDate, toShippingDate, providerId, warehouseId):
878
    """
878
    """
879
    Returns orders for a particular provider and warehouse which were shipped between the given dates.
879
    Returns orders for a particular provider and warehouse which were shipped between the given dates.
880
    Pass providerId and warehouseId as -1 to ignore both the parameters.
880
    Pass providerId and warehouseId as -1 to ignore both the parameters.
881
    
881
 
882
    Parameters:
882
    Parameters:
883
     - fromShippingDate
883
     - fromShippingDate
884
     - toShippingDate
884
     - toShippingDate
885
     - providerId
885
     - providerId
886
     - warehouseId
886
     - warehouseId
Line 907... Line 907...
907
      self._iprot.readMessageEnd()
907
      self._iprot.readMessageEnd()
908
      raise x
908
      raise x
909
    result = getOrdersByShippingDate_result()
909
    result = getOrdersByShippingDate_result()
910
    result.read(self._iprot)
910
    result.read(self._iprot)
911
    self._iprot.readMessageEnd()
911
    self._iprot.readMessageEnd()
912
    if result.success != None:
912
    if result.success is not None:
913
      return result.success
913
      return result.success
914
    if result.ex != None:
914
    if result.ex is not None:
915
      raise result.ex
915
      raise result.ex
916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByShippingDate failed: unknown result");
916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByShippingDate failed: unknown result");
917
 
917
 
918
  def getReturnableOrdersForCustomer(self, customer_id, limit):
918
  def getReturnableOrdersForCustomer(self, customer_id, limit):
919
    """
919
    """
920
    Returns order ids for orders which can be returned
920
    Returns order ids for orders which can be returned
921
    
921
 
922
    Parameters:
922
    Parameters:
923
     - customer_id
923
     - customer_id
924
     - limit
924
     - limit
925
    """
925
    """
926
    self.send_getReturnableOrdersForCustomer(customer_id, limit)
926
    self.send_getReturnableOrdersForCustomer(customer_id, limit)
Line 943... Line 943...
943
      self._iprot.readMessageEnd()
943
      self._iprot.readMessageEnd()
944
      raise x
944
      raise x
945
    result = getReturnableOrdersForCustomer_result()
945
    result = getReturnableOrdersForCustomer_result()
946
    result.read(self._iprot)
946
    result.read(self._iprot)
947
    self._iprot.readMessageEnd()
947
    self._iprot.readMessageEnd()
948
    if result.success != None:
948
    if result.success is not None:
949
      return result.success
949
      return result.success
950
    if result.ex != None:
950
    if result.ex is not None:
951
      raise result.ex
951
      raise result.ex
952
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnableOrdersForCustomer failed: unknown result");
952
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnableOrdersForCustomer failed: unknown result");
953
 
953
 
954
  def getCancellableOrdersForCustomer(self, customer_id, limit):
954
  def getCancellableOrdersForCustomer(self, customer_id, limit):
955
    """
955
    """
956
    Returns order ids for orders which can be cancelled
956
    Returns order ids for orders which can be cancelled
957
    
957
 
958
    Parameters:
958
    Parameters:
959
     - customer_id
959
     - customer_id
960
     - limit
960
     - limit
961
    """
961
    """
962
    self.send_getCancellableOrdersForCustomer(customer_id, limit)
962
    self.send_getCancellableOrdersForCustomer(customer_id, limit)
Line 979... Line 979...
979
      self._iprot.readMessageEnd()
979
      self._iprot.readMessageEnd()
980
      raise x
980
      raise x
981
    result = getCancellableOrdersForCustomer_result()
981
    result = getCancellableOrdersForCustomer_result()
982
    result.read(self._iprot)
982
    result.read(self._iprot)
983
    self._iprot.readMessageEnd()
983
    self._iprot.readMessageEnd()
984
    if result.success != None:
984
    if result.success is not None:
985
      return result.success
985
      return result.success
986
    if result.ex != None:
986
    if result.ex is not None:
987
      raise result.ex
987
      raise result.ex
988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCancellableOrdersForCustomer failed: unknown result");
988
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCancellableOrdersForCustomer failed: unknown result");
989
 
989
 
990
  def changeOrderStatus(self, orderId, status, description):
990
  def changeOrderStatus(self, orderId, status, description):
991
    """
991
    """
Line 1015... Line 1015...
1015
      self._iprot.readMessageEnd()
1015
      self._iprot.readMessageEnd()
1016
      raise x
1016
      raise x
1017
    result = changeOrderStatus_result()
1017
    result = changeOrderStatus_result()
1018
    result.read(self._iprot)
1018
    result.read(self._iprot)
1019
    self._iprot.readMessageEnd()
1019
    self._iprot.readMessageEnd()
1020
    if result.success != None:
1020
    if result.success is not None:
1021
      return result.success
1021
      return result.success
1022
    if result.ex != None:
1022
    if result.ex is not None:
1023
      raise result.ex
1023
      raise result.ex
1024
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
1024
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
1025
 
1025
 
1026
  def getOrdersForTransaction(self, transactionId, customerId):
1026
  def getOrdersForTransaction(self, transactionId, customerId):
1027
    """
1027
    """
1028
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
1028
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
1029
    only user who owns the transaction can view its order details.
1029
    only user who owns the transaction can view its order details.
1030
    
1030
 
1031
    Parameters:
1031
    Parameters:
1032
     - transactionId
1032
     - transactionId
1033
     - customerId
1033
     - customerId
1034
    """
1034
    """
1035
    self.send_getOrdersForTransaction(transactionId, customerId)
1035
    self.send_getOrdersForTransaction(transactionId, customerId)
Line 1052... Line 1052...
1052
      self._iprot.readMessageEnd()
1052
      self._iprot.readMessageEnd()
1053
      raise x
1053
      raise x
1054
    result = getOrdersForTransaction_result()
1054
    result = getOrdersForTransaction_result()
1055
    result.read(self._iprot)
1055
    result.read(self._iprot)
1056
    self._iprot.readMessageEnd()
1056
    self._iprot.readMessageEnd()
1057
    if result.success != None:
1057
    if result.success is not None:
1058
      return result.success
1058
      return result.success
1059
    if result.ex != None:
1059
    if result.ex is not None:
1060
      raise result.ex
1060
      raise result.ex
1061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
1061
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
1062
 
1062
 
1063
  def getOrdersForCustomer(self, customerId, from_date, to_date, statuses):
1063
  def getOrdersForCustomer(self, customerId, from_date, to_date, statuses):
1064
    """
1064
    """
1065
    Returns list of orders for the given customer created between the given dates and having the given statuses.
1065
    Returns list of orders for the given customer created between the given dates and having the given statuses.
1066
    Pass and empty list to ignore filtering on statuses.
1066
    Pass and empty list to ignore filtering on statuses.
1067
    
1067
 
1068
    Parameters:
1068
    Parameters:
1069
     - customerId
1069
     - customerId
1070
     - from_date
1070
     - from_date
1071
     - to_date
1071
     - to_date
1072
     - statuses
1072
     - statuses
Line 1093... Line 1093...
1093
      self._iprot.readMessageEnd()
1093
      self._iprot.readMessageEnd()
1094
      raise x
1094
      raise x
1095
    result = getOrdersForCustomer_result()
1095
    result = getOrdersForCustomer_result()
1096
    result.read(self._iprot)
1096
    result.read(self._iprot)
1097
    self._iprot.readMessageEnd()
1097
    self._iprot.readMessageEnd()
1098
    if result.success != None:
1098
    if result.success is not None:
1099
      return result.success
1099
      return result.success
1100
    if result.ex != None:
1100
    if result.ex is not None:
1101
      raise result.ex
1101
      raise result.ex
1102
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
1102
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
1103
 
1103
 
1104
  def createOrder(self, order):
1104
  def createOrder(self, order):
1105
    """
1105
    """
Line 1125... Line 1125...
1125
      self._iprot.readMessageEnd()
1125
      self._iprot.readMessageEnd()
1126
      raise x
1126
      raise x
1127
    result = createOrder_result()
1127
    result = createOrder_result()
1128
    result.read(self._iprot)
1128
    result.read(self._iprot)
1129
    self._iprot.readMessageEnd()
1129
    self._iprot.readMessageEnd()
1130
    if result.success != None:
1130
    if result.success is not None:
1131
      return result.success
1131
      return result.success
1132
    if result.ex != None:
1132
    if result.ex is not None:
1133
      raise result.ex
1133
      raise result.ex
1134
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
1134
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
1135
 
1135
 
1136
  def getOrder(self, id):
1136
  def getOrder(self, id):
1137
    """
1137
    """
Line 1157... Line 1157...
1157
      self._iprot.readMessageEnd()
1157
      self._iprot.readMessageEnd()
1158
      raise x
1158
      raise x
1159
    result = getOrder_result()
1159
    result = getOrder_result()
1160
    result.read(self._iprot)
1160
    result.read(self._iprot)
1161
    self._iprot.readMessageEnd()
1161
    self._iprot.readMessageEnd()
1162
    if result.success != None:
1162
    if result.success is not None:
1163
      return result.success
1163
      return result.success
1164
    if result.ex != None:
1164
    if result.ex is not None:
1165
      raise result.ex
1165
      raise result.ex
1166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
1166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
1167
 
1167
 
1168
  def getLineItemsForOrder(self, orderId):
1168
  def getLineItemsForOrder(self, orderId):
1169
    """
1169
    """
Line 1189... Line 1189...
1189
      self._iprot.readMessageEnd()
1189
      self._iprot.readMessageEnd()
1190
      raise x
1190
      raise x
1191
    result = getLineItemsForOrder_result()
1191
    result = getLineItemsForOrder_result()
1192
    result.read(self._iprot)
1192
    result.read(self._iprot)
1193
    self._iprot.readMessageEnd()
1193
    self._iprot.readMessageEnd()
1194
    if result.success != None:
1194
    if result.success is not None:
1195
      return result.success
1195
      return result.success
1196
    if result.ex != None:
1196
    if result.ex is not None:
1197
      raise result.ex
1197
      raise result.ex
1198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
1198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
1199
 
1199
 
1200
  def getOrderForCustomer(self, orderId, customerId):
1200
  def getOrderForCustomer(self, orderId, customerId):
1201
    """
1201
    """
1202
    Returns an order for the order Id. Also checks if the order belongs to the customer whose Id is passed.
1202
    Returns an order for the order Id. Also checks if the order belongs to the customer whose Id is passed.
1203
    Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
1203
    Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
1204
    
1204
 
1205
    Parameters:
1205
    Parameters:
1206
     - orderId
1206
     - orderId
1207
     - customerId
1207
     - customerId
1208
    """
1208
    """
1209
    self.send_getOrderForCustomer(orderId, customerId)
1209
    self.send_getOrderForCustomer(orderId, customerId)
Line 1226... Line 1226...
1226
      self._iprot.readMessageEnd()
1226
      self._iprot.readMessageEnd()
1227
      raise x
1227
      raise x
1228
    result = getOrderForCustomer_result()
1228
    result = getOrderForCustomer_result()
1229
    result.read(self._iprot)
1229
    result.read(self._iprot)
1230
    self._iprot.readMessageEnd()
1230
    self._iprot.readMessageEnd()
1231
    if result.success != None:
1231
    if result.success is not None:
1232
      return result.success
1232
      return result.success
1233
    if result.ex != None:
1233
    if result.ex is not None:
1234
      raise result.ex
1234
      raise result.ex
1235
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1235
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1236
 
1236
 
1237
  def getAlerts(self, orderId, valid):
1237
  def getAlerts(self, orderId, valid):
1238
    """
1238
    """
Line 1260... Line 1260...
1260
      self._iprot.readMessageEnd()
1260
      self._iprot.readMessageEnd()
1261
      raise x
1261
      raise x
1262
    result = getAlerts_result()
1262
    result = getAlerts_result()
1263
    result.read(self._iprot)
1263
    result.read(self._iprot)
1264
    self._iprot.readMessageEnd()
1264
    self._iprot.readMessageEnd()
1265
    if result.success != None:
1265
    if result.success is not None:
1266
      return result.success
1266
      return result.success
1267
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
1267
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
1268
 
1268
 
1269
  def setAlert(self, orderId, unset, type, comment):
1269
  def setAlert(self, orderId, unset, type, comment):
1270
    """
1270
    """
Line 1322... Line 1322...
1322
      self._iprot.readMessageEnd()
1322
      self._iprot.readMessageEnd()
1323
      raise x
1323
      raise x
1324
    result = getValidOrderCount_result()
1324
    result = getValidOrderCount_result()
1325
    result.read(self._iprot)
1325
    result.read(self._iprot)
1326
    self._iprot.readMessageEnd()
1326
    self._iprot.readMessageEnd()
1327
    if result.success != None:
1327
    if result.success is not None:
1328
      return result.success
1328
      return result.success
1329
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
1329
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
1330
 
1330
 
1331
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
1331
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
1332
    """
1332
    """
Line 1350... Line 1350...
1350
      self._iprot.readMessageEnd()
1350
      self._iprot.readMessageEnd()
1351
      raise x
1351
      raise x
1352
    result = getNoOfCustomersWithSuccessfulTransaction_result()
1352
    result = getNoOfCustomersWithSuccessfulTransaction_result()
1353
    result.read(self._iprot)
1353
    result.read(self._iprot)
1354
    self._iprot.readMessageEnd()
1354
    self._iprot.readMessageEnd()
1355
    if result.success != None:
1355
    if result.success is not None:
1356
      return result.success
1356
      return result.success
1357
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
1357
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
1358
 
1358
 
1359
  def getValidOrdersAmountRange(self, ):
1359
  def getValidOrdersAmountRange(self, ):
1360
    """
1360
    """
Line 1379... Line 1379...
1379
      self._iprot.readMessageEnd()
1379
      self._iprot.readMessageEnd()
1380
      raise x
1380
      raise x
1381
    result = getValidOrdersAmountRange_result()
1381
    result = getValidOrdersAmountRange_result()
1382
    result.read(self._iprot)
1382
    result.read(self._iprot)
1383
    self._iprot.readMessageEnd()
1383
    self._iprot.readMessageEnd()
1384
    if result.success != None:
1384
    if result.success is not None:
1385
      return result.success
1385
      return result.success
1386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
1386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
1387
 
1387
 
1388
  def getValidOrders(self, limit):
1388
  def getValidOrders(self, limit):
1389
    """
1389
    """
1390
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
1390
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
1391
    If limit is passed as 0, then all valid Orders are returned.
1391
    If limit is passed as 0, then all valid Orders are returned.
1392
    
1392
 
1393
    Parameters:
1393
    Parameters:
1394
     - limit
1394
     - limit
1395
    """
1395
    """
1396
    self.send_getValidOrders(limit)
1396
    self.send_getValidOrders(limit)
1397
    return self.recv_getValidOrders()
1397
    return self.recv_getValidOrders()
Line 1412... Line 1412...
1412
      self._iprot.readMessageEnd()
1412
      self._iprot.readMessageEnd()
1413
      raise x
1413
      raise x
1414
    result = getValidOrders_result()
1414
    result = getValidOrders_result()
1415
    result.read(self._iprot)
1415
    result.read(self._iprot)
1416
    self._iprot.readMessageEnd()
1416
    self._iprot.readMessageEnd()
1417
    if result.success != None:
1417
    if result.success is not None:
1418
      return result.success
1418
      return result.success
1419
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1419
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1420
 
1420
 
1421
  def batchOrders(self, warehouseId):
1421
  def batchOrders(self, warehouseId):
1422
    """
1422
    """
1423
    Create a batch of all the pending orders for the given warehouse.
1423
    Create a batch of all the pending orders for the given warehouse.
1424
    The returned list is orderd by created_timestamp.
1424
    The returned list is orderd by created_timestamp.
1425
    If there are no pending orders, an empty list is returned.
1425
    If there are no pending orders, an empty list is returned.
1426
    
1426
 
1427
    Parameters:
1427
    Parameters:
1428
     - warehouseId
1428
     - warehouseId
1429
    """
1429
    """
1430
    self.send_batchOrders(warehouseId)
1430
    self.send_batchOrders(warehouseId)
1431
    return self.recv_batchOrders()
1431
    return self.recv_batchOrders()
Line 1446... Line 1446...
1446
      self._iprot.readMessageEnd()
1446
      self._iprot.readMessageEnd()
1447
      raise x
1447
      raise x
1448
    result = batchOrders_result()
1448
    result = batchOrders_result()
1449
    result.read(self._iprot)
1449
    result.read(self._iprot)
1450
    self._iprot.readMessageEnd()
1450
    self._iprot.readMessageEnd()
1451
    if result.success != None:
1451
    if result.success is not None:
1452
      return result.success
1452
      return result.success
1453
    if result.ex != None:
1453
    if result.ex is not None:
1454
      raise result.ex
1454
      raise result.ex
1455
    raise TApplicationException(TApplicationException.MISSING_RESULT, "batchOrders failed: unknown result");
1455
    raise TApplicationException(TApplicationException.MISSING_RESULT, "batchOrders failed: unknown result");
1456
 
1456
 
1457
  def markOrderAsOutOfStock(self, orderId):
1457
  def markOrderAsOutOfStock(self, orderId):
1458
    """
1458
    """
1459
    Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
1459
    Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
1460
    
1460
 
1461
    Parameters:
1461
    Parameters:
1462
     - orderId
1462
     - orderId
1463
    """
1463
    """
1464
    self.send_markOrderAsOutOfStock(orderId)
1464
    self.send_markOrderAsOutOfStock(orderId)
1465
    return self.recv_markOrderAsOutOfStock()
1465
    return self.recv_markOrderAsOutOfStock()
Line 1480... Line 1480...
1480
      self._iprot.readMessageEnd()
1480
      self._iprot.readMessageEnd()
1481
      raise x
1481
      raise x
1482
    result = markOrderAsOutOfStock_result()
1482
    result = markOrderAsOutOfStock_result()
1483
    result.read(self._iprot)
1483
    result.read(self._iprot)
1484
    self._iprot.readMessageEnd()
1484
    self._iprot.readMessageEnd()
1485
    if result.success != None:
1485
    if result.success is not None:
1486
      return result.success
1486
      return result.success
1487
    if result.ex != None:
1487
    if result.ex is not None:
1488
      raise result.ex
1488
      raise result.ex
1489
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
1489
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
1490
 
1490
 
1491
  def verifyOrder(self, orderId):
1491
  def verifyOrder(self, orderId):
1492
    """
1492
    """
1493
    Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
1493
    Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
1494
    timestamp. It is intended to be used for COD orders but can be harmlessly
1494
    timestamp. It is intended to be used for COD orders but can be harmlessly
1495
    used for all other orders as well.
1495
    used for all other orders as well.
1496
    Throws an exception if no such order exists.
1496
    Throws an exception if no such order exists.
1497
    
1497
 
1498
    Parameters:
1498
    Parameters:
1499
     - orderId
1499
     - orderId
1500
    """
1500
    """
1501
    self.send_verifyOrder(orderId)
1501
    self.send_verifyOrder(orderId)
1502
    return self.recv_verifyOrder()
1502
    return self.recv_verifyOrder()
Line 1517... Line 1517...
1517
      self._iprot.readMessageEnd()
1517
      self._iprot.readMessageEnd()
1518
      raise x
1518
      raise x
1519
    result = verifyOrder_result()
1519
    result = verifyOrder_result()
1520
    result.read(self._iprot)
1520
    result.read(self._iprot)
1521
    self._iprot.readMessageEnd()
1521
    self._iprot.readMessageEnd()
1522
    if result.success != None:
1522
    if result.success is not None:
1523
      return result.success
1523
      return result.success
1524
    if result.ex != None:
1524
    if result.ex is not None:
1525
      raise result.ex
1525
      raise result.ex
1526
    raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyOrder failed: unknown result");
1526
    raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyOrder failed: unknown result");
1527
 
1527
 
1528
  def acceptOrder(self, orderId):
1528
  def acceptOrder(self, orderId):
1529
    """
1529
    """
1530
    Marks the given order as ACCEPTED and updates the accepted timestamp. If the
1530
    Marks the given order as ACCEPTED and updates the accepted timestamp. If the
1531
    given order is not a COD order, it also captures the payment if the same has
1531
    given order is not a COD order, it also captures the payment if the same has
1532
    not been captured.
1532
    not been captured.
1533
    Throws an exception if no such order exists.
1533
    Throws an exception if no such order exists.
1534
    
1534
 
1535
    Parameters:
1535
    Parameters:
1536
     - orderId
1536
     - orderId
1537
    """
1537
    """
1538
    self.send_acceptOrder(orderId)
1538
    self.send_acceptOrder(orderId)
1539
    return self.recv_acceptOrder()
1539
    return self.recv_acceptOrder()
Line 1554... Line 1554...
1554
      self._iprot.readMessageEnd()
1554
      self._iprot.readMessageEnd()
1555
      raise x
1555
      raise x
1556
    result = acceptOrder_result()
1556
    result = acceptOrder_result()
1557
    result.read(self._iprot)
1557
    result.read(self._iprot)
1558
    self._iprot.readMessageEnd()
1558
    self._iprot.readMessageEnd()
1559
    if result.success != None:
1559
    if result.success is not None:
1560
      return result.success
1560
      return result.success
1561
    if result.ex != None:
1561
    if result.ex is not None:
1562
      raise result.ex
1562
      raise result.ex
1563
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1563
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1564
 
1564
 
1565
  def billOrder(self, orderId):
1565
  def billOrder(self, orderId):
1566
    """
1566
    """
Line 1586... Line 1586...
1586
      self._iprot.readMessageEnd()
1586
      self._iprot.readMessageEnd()
1587
      raise x
1587
      raise x
1588
    result = billOrder_result()
1588
    result = billOrder_result()
1589
    result.read(self._iprot)
1589
    result.read(self._iprot)
1590
    self._iprot.readMessageEnd()
1590
    self._iprot.readMessageEnd()
1591
    if result.success != None:
1591
    if result.success is not None:
1592
      return result.success
1592
      return result.success
1593
    if result.ex != None:
1593
    if result.ex is not None:
1594
      raise result.ex
1594
      raise result.ex
1595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
1595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
1596
 
1596
 
1597
  def addBillingDetails(self, orderId, invoice_number, billed_by):
1597
  def addBillingDetails(self, orderId, invoice_number, billed_by):
1598
    """
1598
    """
1599
    Add billing details such as the bill number and the biller to the Order.
1599
    Add billing details such as the bill number and the biller to the Order.
1600
    Should be used when the bill is issued by a 3rd party and we've to feed
1600
    Should be used when the bill is issued by a 3rd party and we've to feed
1601
    the information into our system.
1601
    the information into our system.
1602
    
1602
 
1603
    Parameters:
1603
    Parameters:
1604
     - orderId
1604
     - orderId
1605
     - invoice_number
1605
     - invoice_number
1606
     - billed_by
1606
     - billed_by
1607
    """
1607
    """
Line 1626... Line 1626...
1626
      self._iprot.readMessageEnd()
1626
      self._iprot.readMessageEnd()
1627
      raise x
1627
      raise x
1628
    result = addBillingDetails_result()
1628
    result = addBillingDetails_result()
1629
    result.read(self._iprot)
1629
    result.read(self._iprot)
1630
    self._iprot.readMessageEnd()
1630
    self._iprot.readMessageEnd()
1631
    if result.success != None:
1631
    if result.success is not None:
1632
      return result.success
1632
      return result.success
1633
    if result.ex != None:
1633
    if result.ex is not None:
1634
      raise result.ex
1634
      raise result.ex
1635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1636
 
1636
 
1637
  def addJacketNumber(self, orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType):
1637
  def addJacketNumber(self, orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType):
1638
    """
1638
    """
1639
    Adds jacket number, item number and IMEI no. to the order. Doesn't update
1639
    Adds jacket number, item number and IMEI no. to the order. Doesn't update
1640
    the IMEI no. if a -1 is supplied.
1640
    the IMEI no. if a -1 is supplied.
1641
    Also, it generates an invoice number for the order, marks the order as
1641
    Also, it generates an invoice number for the order, marks the order as
1642
    BILLED and sets the billing timestamp.
1642
    BILLED and sets the billing timestamp.
1643
    It should be used when we are billing the orders ourselves.
1643
    It should be used when we are billing the orders ourselves.
1644
    
1644
 
1645
    Returns false if it doesn't find the order with the given ID.
1645
    Returns false if it doesn't find the order with the given ID.
1646
    
1646
 
1647
    Parameters:
1647
    Parameters:
1648
     - orderId
1648
     - orderId
1649
     - jacketNumber
1649
     - jacketNumber
1650
     - imeiNumber
1650
     - imeiNumber
1651
     - itemNumber
1651
     - itemNumber
Line 1676... Line 1676...
1676
      self._iprot.readMessageEnd()
1676
      self._iprot.readMessageEnd()
1677
      raise x
1677
      raise x
1678
    result = addJacketNumber_result()
1678
    result = addJacketNumber_result()
1679
    result.read(self._iprot)
1679
    result.read(self._iprot)
1680
    self._iprot.readMessageEnd()
1680
    self._iprot.readMessageEnd()
1681
    if result.success != None:
1681
    if result.success is not None:
1682
      return result.success
1682
      return result.success
1683
    if result.ex != None:
1683
    if result.ex is not None:
1684
      raise result.ex
1684
      raise result.ex
1685
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
1685
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
1686
 
1686
 
1687
  def markOrdersAsManifested(self, warehouseId, providerId, cod):
1687
  def markOrdersAsManifested(self, warehouseId, providerId, cod):
1688
    """
1688
    """
1689
    Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
1689
    Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
1690
    given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
1690
    given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
1691
    
1691
 
1692
    Parameters:
1692
    Parameters:
1693
     - warehouseId
1693
     - warehouseId
1694
     - providerId
1694
     - providerId
1695
     - cod
1695
     - cod
1696
    """
1696
    """
Line 1715... Line 1715...
1715
      self._iprot.readMessageEnd()
1715
      self._iprot.readMessageEnd()
1716
      raise x
1716
      raise x
1717
    result = markOrdersAsManifested_result()
1717
    result = markOrdersAsManifested_result()
1718
    result.read(self._iprot)
1718
    result.read(self._iprot)
1719
    self._iprot.readMessageEnd()
1719
    self._iprot.readMessageEnd()
1720
    if result.success != None:
1720
    if result.success is not None:
1721
      return result.success
1721
      return result.success
1722
    if result.ex != None:
1722
    if result.ex is not None:
1723
      raise result.ex
1723
      raise result.ex
1724
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsManifested failed: unknown result");
1724
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsManifested failed: unknown result");
1725
 
1725
 
1726
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
1726
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
1727
    """
1727
    """
1728
    Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
1728
    Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
1729
    Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
1729
    Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
1730
    Raises an exception if we encounter report for an AWB number that we did not ship.
1730
    Raises an exception if we encounter report for an AWB number that we did not ship.
1731
    
1731
 
1732
    Parameters:
1732
    Parameters:
1733
     - providerId
1733
     - providerId
1734
     - pickupDetails
1734
     - pickupDetails
1735
    """
1735
    """
1736
    self.send_markOrdersAsPickedUp(providerId, pickupDetails)
1736
    self.send_markOrdersAsPickedUp(providerId, pickupDetails)
Line 1753... Line 1753...
1753
      self._iprot.readMessageEnd()
1753
      self._iprot.readMessageEnd()
1754
      raise x
1754
      raise x
1755
    result = markOrdersAsPickedUp_result()
1755
    result = markOrdersAsPickedUp_result()
1756
    result.read(self._iprot)
1756
    result.read(self._iprot)
1757
    self._iprot.readMessageEnd()
1757
    self._iprot.readMessageEnd()
1758
    if result.success != None:
1758
    if result.success is not None:
1759
      return result.success
1759
      return result.success
1760
    if result.ex != None:
1760
    if result.ex is not None:
1761
      raise result.ex
1761
      raise result.ex
1762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
1762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
1763
 
1763
 
1764
  def markOrdersAsDelivered(self, providerId, deliveredOrders):
1764
  def markOrdersAsDelivered(self, providerId, deliveredOrders):
1765
    """
1765
    """
1766
    Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
1766
    Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
1767
    the name of the receiver.
1767
    the name of the receiver.
1768
    Raises an exception if we encounter report for an AWB number that we did not ship.
1768
    Raises an exception if we encounter report for an AWB number that we did not ship.
1769
    
1769
 
1770
    Parameters:
1770
    Parameters:
1771
     - providerId
1771
     - providerId
1772
     - deliveredOrders
1772
     - deliveredOrders
1773
    """
1773
    """
1774
    self.send_markOrdersAsDelivered(providerId, deliveredOrders)
1774
    self.send_markOrdersAsDelivered(providerId, deliveredOrders)
Line 1791... Line 1791...
1791
      self._iprot.readMessageEnd()
1791
      self._iprot.readMessageEnd()
1792
      raise x
1792
      raise x
1793
    result = markOrdersAsDelivered_result()
1793
    result = markOrdersAsDelivered_result()
1794
    result.read(self._iprot)
1794
    result.read(self._iprot)
1795
    self._iprot.readMessageEnd()
1795
    self._iprot.readMessageEnd()
1796
    if result.ex != None:
1796
    if result.ex is not None:
1797
      raise result.ex
1797
      raise result.ex
1798
    return
1798
    return
1799
 
1799
 
1800
  def markOrdersAsFailed(self, providerId, returnedOrders):
1800
  def markOrdersAsFailed(self, providerId, returnedOrders):
1801
    """
1801
    """
1802
    Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
1802
    Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
1803
    Raises an exception if we encounter report for an AWB number that we did not ship.
1803
    Raises an exception if we encounter report for an AWB number that we did not ship.
1804
    
1804
 
1805
    Parameters:
1805
    Parameters:
1806
     - providerId
1806
     - providerId
1807
     - returnedOrders
1807
     - returnedOrders
1808
    """
1808
    """
1809
    self.send_markOrdersAsFailed(providerId, returnedOrders)
1809
    self.send_markOrdersAsFailed(providerId, returnedOrders)
Line 1826... Line 1826...
1826
      self._iprot.readMessageEnd()
1826
      self._iprot.readMessageEnd()
1827
      raise x
1827
      raise x
1828
    result = markOrdersAsFailed_result()
1828
    result = markOrdersAsFailed_result()
1829
    result.read(self._iprot)
1829
    result.read(self._iprot)
1830
    self._iprot.readMessageEnd()
1830
    self._iprot.readMessageEnd()
1831
    if result.ex != None:
1831
    if result.ex is not None:
1832
      raise result.ex
1832
      raise result.ex
1833
    return
1833
    return
1834
 
1834
 
1835
  def updateNonDeliveryReason(self, providerId, undeliveredOrders):
1835
  def updateNonDeliveryReason(self, providerId, undeliveredOrders):
1836
    """
1836
    """
1837
    Update the status description of orders whose AWB numbers are keys of the Map.
1837
    Update the status description of orders whose AWB numbers are keys of the Map.
1838
    
1838
 
1839
    Parameters:
1839
    Parameters:
1840
     - providerId
1840
     - providerId
1841
     - undeliveredOrders
1841
     - undeliveredOrders
1842
    """
1842
    """
1843
    self.send_updateNonDeliveryReason(providerId, undeliveredOrders)
1843
    self.send_updateNonDeliveryReason(providerId, undeliveredOrders)
Line 1860... Line 1860...
1860
      self._iprot.readMessageEnd()
1860
      self._iprot.readMessageEnd()
1861
      raise x
1861
      raise x
1862
    result = updateNonDeliveryReason_result()
1862
    result = updateNonDeliveryReason_result()
1863
    result.read(self._iprot)
1863
    result.read(self._iprot)
1864
    self._iprot.readMessageEnd()
1864
    self._iprot.readMessageEnd()
1865
    if result.ex != None:
1865
    if result.ex is not None:
1866
      raise result.ex
1866
      raise result.ex
1867
    return
1867
    return
1868
 
1868
 
1869
  def getUndeliveredOrders(self, providerId, warehouseId):
1869
  def getUndeliveredOrders(self, providerId, warehouseId):
1870
    """
1870
    """
1871
    Returns the list of orders whose delivery time has passed but have not been
1871
    Returns the list of orders whose delivery time has passed but have not been
1872
    delivered yet for the given provider and warehouse. To get a complete list of
1872
    delivered yet for the given provider and warehouse. To get a complete list of
1873
    undelivered orders, pass them as -1.
1873
    undelivered orders, pass them as -1.
1874
    Returns an empty list if no such orders exist.
1874
    Returns an empty list if no such orders exist.
1875
    
1875
 
1876
    Parameters:
1876
    Parameters:
1877
     - providerId
1877
     - providerId
1878
     - warehouseId
1878
     - warehouseId
1879
    """
1879
    """
1880
    self.send_getUndeliveredOrders(providerId, warehouseId)
1880
    self.send_getUndeliveredOrders(providerId, warehouseId)
Line 1897... Line 1897...
1897
      self._iprot.readMessageEnd()
1897
      self._iprot.readMessageEnd()
1898
      raise x
1898
      raise x
1899
    result = getUndeliveredOrders_result()
1899
    result = getUndeliveredOrders_result()
1900
    result.read(self._iprot)
1900
    result.read(self._iprot)
1901
    self._iprot.readMessageEnd()
1901
    self._iprot.readMessageEnd()
1902
    if result.success != None:
1902
    if result.success is not None:
1903
      return result.success
1903
      return result.success
1904
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1904
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1905
 
1905
 
1906
  def toggleDOAFlag(self, orderId):
1906
  def toggleDOAFlag(self, orderId):
1907
    """
1907
    """
1908
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
1908
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
1909
    Returns the final flag status.
1909
    Returns the final flag status.
1910
    Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
1910
    Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
1911
    
1911
 
1912
    Parameters:
1912
    Parameters:
1913
     - orderId
1913
     - orderId
1914
    """
1914
    """
1915
    self.send_toggleDOAFlag(orderId)
1915
    self.send_toggleDOAFlag(orderId)
1916
    return self.recv_toggleDOAFlag()
1916
    return self.recv_toggleDOAFlag()
Line 1931... Line 1931...
1931
      self._iprot.readMessageEnd()
1931
      self._iprot.readMessageEnd()
1932
      raise x
1932
      raise x
1933
    result = toggleDOAFlag_result()
1933
    result = toggleDOAFlag_result()
1934
    result.read(self._iprot)
1934
    result.read(self._iprot)
1935
    self._iprot.readMessageEnd()
1935
    self._iprot.readMessageEnd()
1936
    if result.success != None:
1936
    if result.success is not None:
1937
      return result.success
1937
      return result.success
1938
    if result.ex != None:
1938
    if result.ex is not None:
1939
      raise result.ex
1939
      raise result.ex
1940
    raise TApplicationException(TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
1940
    raise TApplicationException(TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
1941
 
1941
 
1942
  def requestPickupNumber(self, orderId):
1942
  def requestPickupNumber(self, orderId):
1943
    """
1943
    """
1944
    Sends out an email to the account manager of the original courier provider used to ship the order.
1944
    Sends out an email to the account manager of the original courier provider used to ship the order.
1945
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
1945
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
1946
    If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
1946
    If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
1947
    For any other status, it returns false.
1947
    For any other status, it returns false.
1948
    Throws an exception if the order with the given id couldn't be found.
1948
    Throws an exception if the order with the given id couldn't be found.
1949
    
1949
 
1950
    Parameters:
1950
    Parameters:
1951
     - orderId
1951
     - orderId
1952
    """
1952
    """
1953
    self.send_requestPickupNumber(orderId)
1953
    self.send_requestPickupNumber(orderId)
1954
    return self.recv_requestPickupNumber()
1954
    return self.recv_requestPickupNumber()
Line 1969... Line 1969...
1969
      self._iprot.readMessageEnd()
1969
      self._iprot.readMessageEnd()
1970
      raise x
1970
      raise x
1971
    result = requestPickupNumber_result()
1971
    result = requestPickupNumber_result()
1972
    result.read(self._iprot)
1972
    result.read(self._iprot)
1973
    self._iprot.readMessageEnd()
1973
    self._iprot.readMessageEnd()
1974
    if result.success != None:
1974
    if result.success is not None:
1975
      return result.success
1975
      return result.success
1976
    if result.ex != None:
1976
    if result.ex is not None:
1977
      raise result.ex
1977
      raise result.ex
1978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "requestPickupNumber failed: unknown result");
1978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "requestPickupNumber failed: unknown result");
1979
 
1979
 
1980
  def authorizePickup(self, orderId, pickupNumber):
1980
  def authorizePickup(self, orderId, pickupNumber):
1981
    """
1981
    """
Line 1983... Line 1983...
1983
    	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
1983
    	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
1984
    	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
1984
    	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
1985
    	3. Returns true
1985
    	3. Returns true
1986
    If the order is in any other status, it returns false.
1986
    If the order is in any other status, it returns false.
1987
    Throws an exception if the order with the given id couldn't be found.
1987
    Throws an exception if the order with the given id couldn't be found.
1988
    
1988
 
1989
    Parameters:
1989
    Parameters:
1990
     - orderId
1990
     - orderId
1991
     - pickupNumber
1991
     - pickupNumber
1992
    """
1992
    """
1993
    self.send_authorizePickup(orderId, pickupNumber)
1993
    self.send_authorizePickup(orderId, pickupNumber)
Line 2010... Line 2010...
2010
      self._iprot.readMessageEnd()
2010
      self._iprot.readMessageEnd()
2011
      raise x
2011
      raise x
2012
    result = authorizePickup_result()
2012
    result = authorizePickup_result()
2013
    result.read(self._iprot)
2013
    result.read(self._iprot)
2014
    self._iprot.readMessageEnd()
2014
    self._iprot.readMessageEnd()
2015
    if result.success != None:
2015
    if result.success is not None:
2016
      return result.success
2016
      return result.success
2017
    if result.ex != None:
2017
    if result.ex is not None:
2018
      raise result.ex
2018
      raise result.ex
2019
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
2019
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
2020
 
2020
 
2021
  def markDoasAsPickedUp(self, providerId, pickupDetails):
2021
  def markDoasAsPickedUp(self, providerId, pickupDetails):
2022
    """
2022
    """
2023
    Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
2023
    Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
2024
    Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
2024
    Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
2025
    
2025
 
2026
    Parameters:
2026
    Parameters:
2027
     - providerId
2027
     - providerId
2028
     - pickupDetails
2028
     - pickupDetails
2029
    """
2029
    """
2030
    self.send_markDoasAsPickedUp(providerId, pickupDetails)
2030
    self.send_markDoasAsPickedUp(providerId, pickupDetails)
Line 2047... Line 2047...
2047
      self._iprot.readMessageEnd()
2047
      self._iprot.readMessageEnd()
2048
      raise x
2048
      raise x
2049
    result = markDoasAsPickedUp_result()
2049
    result = markDoasAsPickedUp_result()
2050
    result.read(self._iprot)
2050
    result.read(self._iprot)
2051
    self._iprot.readMessageEnd()
2051
    self._iprot.readMessageEnd()
2052
    if result.success != None:
2052
    if result.success is not None:
2053
      return result.success
2053
      return result.success
2054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markDoasAsPickedUp failed: unknown result");
2054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markDoasAsPickedUp failed: unknown result");
2055
 
2055
 
2056
  def receiveReturn(self, orderId):
2056
  def receiveReturn(self, orderId):
2057
    """
2057
    """
2058
    If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
2058
    If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
2059
    If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
2059
    If the order status is SALES_RETURN_IN_TRANSIT, marks the order status as SALES_RET_RECEIVED and returns true.
2060
    If the order is in any other state, it returns false.
2060
    If the order is in any other state, it returns false.
2061
    Throws an exception if the order with the given id couldn't be found.
2061
    Throws an exception if the order with the given id couldn't be found.
2062
    
2062
 
2063
    Parameters:
2063
    Parameters:
2064
     - orderId
2064
     - orderId
2065
    """
2065
    """
2066
    self.send_receiveReturn(orderId)
2066
    self.send_receiveReturn(orderId)
2067
    return self.recv_receiveReturn()
2067
    return self.recv_receiveReturn()
Line 2082... Line 2082...
2082
      self._iprot.readMessageEnd()
2082
      self._iprot.readMessageEnd()
2083
      raise x
2083
      raise x
2084
    result = receiveReturn_result()
2084
    result = receiveReturn_result()
2085
    result.read(self._iprot)
2085
    result.read(self._iprot)
2086
    self._iprot.readMessageEnd()
2086
    self._iprot.readMessageEnd()
2087
    if result.success != None:
2087
    if result.success is not None:
2088
      return result.success
2088
      return result.success
2089
    if result.ex != None:
2089
    if result.ex is not None:
2090
      raise result.ex
2090
      raise result.ex
2091
    raise TApplicationException(TApplicationException.MISSING_RESULT, "receiveReturn failed: unknown result");
2091
    raise TApplicationException(TApplicationException.MISSING_RESULT, "receiveReturn failed: unknown result");
2092
 
2092
 
2093
  def validateDoa(self, orderId, isValid):
2093
  def validateDoa(self, orderId, isValid):
2094
    """
2094
    """
2095
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
2095
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
2096
    the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
2096
    the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
2097
    If the order is in any other state, it returns false.
2097
    If the order is in any other state, it returns false.
2098
    Throws an exception if the order with the given id couldn't be found.
2098
    Throws an exception if the order with the given id couldn't be found.
2099
    
2099
 
2100
    Parameters:
2100
    Parameters:
2101
     - orderId
2101
     - orderId
2102
     - isValid
2102
     - isValid
2103
    """
2103
    """
2104
    self.send_validateDoa(orderId, isValid)
2104
    self.send_validateDoa(orderId, isValid)
Line 2121... Line 2121...
2121
      self._iprot.readMessageEnd()
2121
      self._iprot.readMessageEnd()
2122
      raise x
2122
      raise x
2123
    result = validateDoa_result()
2123
    result = validateDoa_result()
2124
    result.read(self._iprot)
2124
    result.read(self._iprot)
2125
    self._iprot.readMessageEnd()
2125
    self._iprot.readMessageEnd()
2126
    if result.success != None:
2126
    if result.success is not None:
2127
      return result.success
2127
      return result.success
2128
    if result.ex != None:
2128
    if result.ex is not None:
2129
      raise result.ex
2129
      raise result.ex
2130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
2130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
2131
 
2131
 
2132
  def reshipOrder(self, orderId):
2132
  def reshipOrder(self, orderId):
2133
    """
2133
    """
Line 2137... Line 2137...
2137
    	
2137
    	
2138
    If the order is in DOA_CERT_VALID state, it does the following:
2138
    If the order is in DOA_CERT_VALID state, it does the following:
2139
    	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
2139
    	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
2140
    	2. Creates a return order for the warehouse executive to return the DOA material.
2140
    	2. Creates a return order for the warehouse executive to return the DOA material.
2141
    	3. Marks the current order as the final DOA_RESHIPPED state.
2141
    	3. Marks the current order as the final DOA_RESHIPPED state.
2142
    
2142
 
2143
    Returns the id of the newly created order.
2143
    Returns the id of the newly created order.
2144
    
2144
 
2145
    Throws an exception if the order with the given id couldn't be found.
2145
    Throws an exception if the order with the given id couldn't be found.
2146
    
2146
 
2147
    Parameters:
2147
    Parameters:
2148
     - orderId
2148
     - orderId
2149
    """
2149
    """
2150
    self.send_reshipOrder(orderId)
2150
    self.send_reshipOrder(orderId)
2151
    return self.recv_reshipOrder()
2151
    return self.recv_reshipOrder()
Line 2166... Line 2166...
2166
      self._iprot.readMessageEnd()
2166
      self._iprot.readMessageEnd()
2167
      raise x
2167
      raise x
2168
    result = reshipOrder_result()
2168
    result = reshipOrder_result()
2169
    result.read(self._iprot)
2169
    result.read(self._iprot)
2170
    self._iprot.readMessageEnd()
2170
    self._iprot.readMessageEnd()
2171
    if result.success != None:
2171
    if result.success is not None:
2172
      return result.success
2172
      return result.success
2173
    if result.ex != None:
2173
    if result.ex is not None:
2174
      raise result.ex
2174
      raise result.ex
2175
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reshipOrder failed: unknown result");
2175
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reshipOrder failed: unknown result");
2176
 
2176
 
2177
  def refundOrder(self, orderId, refundedBy, reason):
2177
  def refundOrder(self, orderId, refundedBy, reason):
2178
    """
2178
    """
2179
    If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
2179
    If the order is in SALES_RET_RECEIVED, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
2180
    	1. Creates a refund request for batch processing.
2180
    	1. Creates a refund request for batch processing.
2181
    	2. Creates a return order for the warehouse executive to return the shipped material.
2181
    	2. Creates a return order for the warehouse executive to return the shipped material.
2182
    	3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
2182
    	3. Marks the current order as SALES_RET_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
2183
    
2183
 
2184
    If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
2184
    If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
2185
    	1. Creates a refund request for batch processing.
2185
    	1. Creates a refund request for batch processing.
2186
    	2. Cancels the reservation of the item in the warehouse.
2186
    	2. Cancels the reservation of the item in the warehouse.
2187
    	3. Marks the current order as the REFUNDED final state.
2187
    	3. Marks the current order as the REFUNDED final state.
2188
    
2188
 
2189
    For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
2189
    For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
2190
    	1. Cancels the reservation of the item in the warehouse.
2190
    	1. Cancels the reservation of the item in the warehouse.
2191
    	2. Marks the current order as CANCELED.
2191
    	2. Marks the current order as CANCELED.
2192
    	
2192
    	
2193
    In all cases, it updates the reason for cancellation or refund and the person who performed the action.
2193
    In all cases, it updates the reason for cancellation or refund and the person who performed the action.
2194
     
2194
     
2195
    Returns True if it is successful, False otherwise.
2195
    Returns True if it is successful, False otherwise.
2196
    
2196
 
2197
    Throws an exception if the order with the given id couldn't be found.
2197
    Throws an exception if the order with the given id couldn't be found.
2198
    
2198
 
2199
    Parameters:
2199
    Parameters:
2200
     - orderId
2200
     - orderId
2201
     - refundedBy
2201
     - refundedBy
2202
     - reason
2202
     - reason
2203
    """
2203
    """
Line 2222... Line 2222...
2222
      self._iprot.readMessageEnd()
2222
      self._iprot.readMessageEnd()
2223
      raise x
2223
      raise x
2224
    result = refundOrder_result()
2224
    result = refundOrder_result()
2225
    result.read(self._iprot)
2225
    result.read(self._iprot)
2226
    self._iprot.readMessageEnd()
2226
    self._iprot.readMessageEnd()
2227
    if result.success != None:
2227
    if result.success is not None:
2228
      return result.success
2228
      return result.success
2229
    if result.ex != None:
2229
    if result.ex is not None:
2230
      raise result.ex
2230
      raise result.ex
2231
    raise TApplicationException(TApplicationException.MISSING_RESULT, "refundOrder failed: unknown result");
2231
    raise TApplicationException(TApplicationException.MISSING_RESULT, "refundOrder failed: unknown result");
2232
 
2232
 
2233
  def getReturnOrders(self, warehouseId, fromDate, toDate):
2233
  def getReturnOrders(self, warehouseId, fromDate, toDate):
2234
    """
2234
    """
2235
    Get all return orders created between the from and to dates for the given warehouse.
2235
    Get all return orders created between the from and to dates for the given warehouse.
2236
    Ignores the warehouse if it is passed as -1.
2236
    Ignores the warehouse if it is passed as -1.
2237
    
2237
 
2238
    Parameters:
2238
    Parameters:
2239
     - warehouseId
2239
     - warehouseId
2240
     - fromDate
2240
     - fromDate
2241
     - toDate
2241
     - toDate
2242
    """
2242
    """
Line 2261... Line 2261...
2261
      self._iprot.readMessageEnd()
2261
      self._iprot.readMessageEnd()
2262
      raise x
2262
      raise x
2263
    result = getReturnOrders_result()
2263
    result = getReturnOrders_result()
2264
    result.read(self._iprot)
2264
    result.read(self._iprot)
2265
    self._iprot.readMessageEnd()
2265
    self._iprot.readMessageEnd()
2266
    if result.success != None:
2266
    if result.success is not None:
2267
      return result.success
2267
      return result.success
2268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnOrders failed: unknown result");
2268
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnOrders failed: unknown result");
2269
 
2269
 
2270
  def getReturnOrder(self, id):
2270
  def getReturnOrder(self, id):
2271
    """
2271
    """
2272
    Returns the ReturnOrder corresponding to the given id.
2272
    Returns the ReturnOrder corresponding to the given id.
2273
    Throws an exception if the return order with the given id couldn't be found.
2273
    Throws an exception if the return order with the given id couldn't be found.
2274
    
2274
 
2275
    Parameters:
2275
    Parameters:
2276
     - id
2276
     - id
2277
    """
2277
    """
2278
    self.send_getReturnOrder(id)
2278
    self.send_getReturnOrder(id)
2279
    return self.recv_getReturnOrder()
2279
    return self.recv_getReturnOrder()
Line 2294... Line 2294...
2294
      self._iprot.readMessageEnd()
2294
      self._iprot.readMessageEnd()
2295
      raise x
2295
      raise x
2296
    result = getReturnOrder_result()
2296
    result = getReturnOrder_result()
2297
    result.read(self._iprot)
2297
    result.read(self._iprot)
2298
    self._iprot.readMessageEnd()
2298
    self._iprot.readMessageEnd()
2299
    if result.success != None:
2299
    if result.success is not None:
2300
      return result.success
2300
      return result.success
2301
    if result.ex != None:
2301
    if result.ex is not None:
2302
      raise result.ex
2302
      raise result.ex
2303
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnOrder failed: unknown result");
2303
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnOrder failed: unknown result");
2304
 
2304
 
2305
  def processReturn(self, returnOrderId):
2305
  def processReturn(self, returnOrderId):
2306
    """
2306
    """
2307
    Marks the return order with the given id as processed. Raises an exception if no such return order exists.
2307
    Marks the return order with the given id as processed. Raises an exception if no such return order exists.
2308
    
2308
 
2309
    Parameters:
2309
    Parameters:
2310
     - returnOrderId
2310
     - returnOrderId
2311
    """
2311
    """
2312
    self.send_processReturn(returnOrderId)
2312
    self.send_processReturn(returnOrderId)
2313
    self.recv_processReturn()
2313
    self.recv_processReturn()
Line 2328... Line 2328...
2328
      self._iprot.readMessageEnd()
2328
      self._iprot.readMessageEnd()
2329
      raise x
2329
      raise x
2330
    result = processReturn_result()
2330
    result = processReturn_result()
2331
    result.read(self._iprot)
2331
    result.read(self._iprot)
2332
    self._iprot.readMessageEnd()
2332
    self._iprot.readMessageEnd()
2333
    if result.ex != None:
2333
    if result.ex is not None:
2334
      raise result.ex
2334
      raise result.ex
2335
    return
2335
    return
2336
 
2336
 
2337
  def createPurchaseOrder(self, warehouseId):
2337
  def createPurchaseOrder(self, warehouseId):
2338
    """
2338
    """
2339
    Creates a purchase order corresponding to all the pending orders of the given warehouse.
2339
    Creates a purchase order corresponding to all the pending orders of the given warehouse.
2340
    Returns the PO no. of the newly created purchase order. Returns -1 no new purchase order had to be created.
2340
    Returns the PO no. of the newly created purchase order. Returns -1 no new purchase order had to be created.
2341
    
2341
 
2342
    Parameters:
2342
    Parameters:
2343
     - warehouseId
2343
     - warehouseId
2344
    """
2344
    """
2345
    self.send_createPurchaseOrder(warehouseId)
2345
    self.send_createPurchaseOrder(warehouseId)
2346
    return self.recv_createPurchaseOrder()
2346
    return self.recv_createPurchaseOrder()
Line 2361... Line 2361...
2361
      self._iprot.readMessageEnd()
2361
      self._iprot.readMessageEnd()
2362
      raise x
2362
      raise x
2363
    result = createPurchaseOrder_result()
2363
    result = createPurchaseOrder_result()
2364
    result.read(self._iprot)
2364
    result.read(self._iprot)
2365
    self._iprot.readMessageEnd()
2365
    self._iprot.readMessageEnd()
2366
    if result.success != None:
2366
    if result.success is not None:
2367
      return result.success
2367
      return result.success
2368
    if result.ex != None:
2368
    if result.ex is not None:
2369
      raise result.ex
2369
      raise result.ex
2370
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
2370
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
2371
 
2371
 
2372
 
2372
 
2373
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2373
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
Line 3152... Line 3152...
3152
  def write(self, oprot):
3152
  def write(self, oprot):
3153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3155
      return
3155
      return
3156
    oprot.writeStructBegin('createTransaction_args')
3156
    oprot.writeStructBegin('createTransaction_args')
3157
    if self.transaction != None:
3157
    if self.transaction is not None:
3158
      oprot.writeFieldBegin('transaction', TType.STRUCT, 1)
3158
      oprot.writeFieldBegin('transaction', TType.STRUCT, 1)
3159
      self.transaction.write(oprot)
3159
      self.transaction.write(oprot)
3160
      oprot.writeFieldEnd()
3160
      oprot.writeFieldEnd()
3161
    oprot.writeFieldStop()
3161
    oprot.writeFieldStop()
3162
    oprot.writeStructEnd()
3162
    oprot.writeStructEnd()
3163
 
3163
 
-
 
3164
  def validate(self):
-
 
3165
    return
-
 
3166
 
-
 
3167
 
3164
  def __repr__(self):
3168
  def __repr__(self):
3165
    L = ['%s=%r' % (key, value)
3169
    L = ['%s=%r' % (key, value)
3166
      for key, value in self.__dict__.iteritems()]
3170
      for key, value in self.__dict__.iteritems()]
3167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3168
 
3172
 
Line 3216... Line 3220...
3216
  def write(self, oprot):
3220
  def write(self, oprot):
3217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3219
      return
3223
      return
3220
    oprot.writeStructBegin('createTransaction_result')
3224
    oprot.writeStructBegin('createTransaction_result')
3221
    if self.success != None:
3225
    if self.success is not None:
3222
      oprot.writeFieldBegin('success', TType.I64, 0)
3226
      oprot.writeFieldBegin('success', TType.I64, 0)
3223
      oprot.writeI64(self.success)
3227
      oprot.writeI64(self.success)
3224
      oprot.writeFieldEnd()
3228
      oprot.writeFieldEnd()
3225
    if self.ex != None:
3229
    if self.ex is not None:
3226
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3230
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3227
      self.ex.write(oprot)
3231
      self.ex.write(oprot)
3228
      oprot.writeFieldEnd()
3232
      oprot.writeFieldEnd()
3229
    oprot.writeFieldStop()
3233
    oprot.writeFieldStop()
3230
    oprot.writeStructEnd()
3234
    oprot.writeStructEnd()
3231
 
3235
 
-
 
3236
  def validate(self):
-
 
3237
    return
-
 
3238
 
-
 
3239
 
3232
  def __repr__(self):
3240
  def __repr__(self):
3233
    L = ['%s=%r' % (key, value)
3241
    L = ['%s=%r' % (key, value)
3234
      for key, value in self.__dict__.iteritems()]
3242
      for key, value in self.__dict__.iteritems()]
3235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3236
 
3244
 
Line 3276... Line 3284...
3276
  def write(self, oprot):
3284
  def write(self, oprot):
3277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3279
      return
3287
      return
3280
    oprot.writeStructBegin('getTransaction_args')
3288
    oprot.writeStructBegin('getTransaction_args')
3281
    if self.id != None:
3289
    if self.id is not None:
3282
      oprot.writeFieldBegin('id', TType.I64, 1)
3290
      oprot.writeFieldBegin('id', TType.I64, 1)
3283
      oprot.writeI64(self.id)
3291
      oprot.writeI64(self.id)
3284
      oprot.writeFieldEnd()
3292
      oprot.writeFieldEnd()
3285
    oprot.writeFieldStop()
3293
    oprot.writeFieldStop()
3286
    oprot.writeStructEnd()
3294
    oprot.writeStructEnd()
3287
 
3295
 
-
 
3296
  def validate(self):
-
 
3297
    return
-
 
3298
 
-
 
3299
 
3288
  def __repr__(self):
3300
  def __repr__(self):
3289
    L = ['%s=%r' % (key, value)
3301
    L = ['%s=%r' % (key, value)
3290
      for key, value in self.__dict__.iteritems()]
3302
      for key, value in self.__dict__.iteritems()]
3291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3292
 
3304
 
Line 3341... Line 3353...
3341
  def write(self, oprot):
3353
  def write(self, oprot):
3342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3344
      return
3356
      return
3345
    oprot.writeStructBegin('getTransaction_result')
3357
    oprot.writeStructBegin('getTransaction_result')
3346
    if self.success != None:
3358
    if self.success is not None:
3347
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3359
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3348
      self.success.write(oprot)
3360
      self.success.write(oprot)
3349
      oprot.writeFieldEnd()
3361
      oprot.writeFieldEnd()
3350
    if self.ex != None:
3362
    if self.ex is not None:
3351
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3363
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3352
      self.ex.write(oprot)
3364
      self.ex.write(oprot)
3353
      oprot.writeFieldEnd()
3365
      oprot.writeFieldEnd()
3354
    oprot.writeFieldStop()
3366
    oprot.writeFieldStop()
3355
    oprot.writeStructEnd()
3367
    oprot.writeStructEnd()
3356
 
3368
 
-
 
3369
  def validate(self):
-
 
3370
    return
-
 
3371
 
-
 
3372
 
3357
  def __repr__(self):
3373
  def __repr__(self):
3358
    L = ['%s=%r' % (key, value)
3374
    L = ['%s=%r' % (key, value)
3359
      for key, value in self.__dict__.iteritems()]
3375
      for key, value in self.__dict__.iteritems()]
3360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3361
 
3377
 
Line 3425... Line 3441...
3425
  def write(self, oprot):
3441
  def write(self, oprot):
3426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3428
      return
3444
      return
3429
    oprot.writeStructBegin('getTransactionsForCustomer_args')
3445
    oprot.writeStructBegin('getTransactionsForCustomer_args')
3430
    if self.customerId != None:
3446
    if self.customerId is not None:
3431
      oprot.writeFieldBegin('customerId', TType.I64, 1)
3447
      oprot.writeFieldBegin('customerId', TType.I64, 1)
3432
      oprot.writeI64(self.customerId)
3448
      oprot.writeI64(self.customerId)
3433
      oprot.writeFieldEnd()
3449
      oprot.writeFieldEnd()
3434
    if self.from_date != None:
3450
    if self.from_date is not None:
3435
      oprot.writeFieldBegin('from_date', TType.I64, 2)
3451
      oprot.writeFieldBegin('from_date', TType.I64, 2)
3436
      oprot.writeI64(self.from_date)
3452
      oprot.writeI64(self.from_date)
3437
      oprot.writeFieldEnd()
3453
      oprot.writeFieldEnd()
3438
    if self.to_date != None:
3454
    if self.to_date is not None:
3439
      oprot.writeFieldBegin('to_date', TType.I64, 3)
3455
      oprot.writeFieldBegin('to_date', TType.I64, 3)
3440
      oprot.writeI64(self.to_date)
3456
      oprot.writeI64(self.to_date)
3441
      oprot.writeFieldEnd()
3457
      oprot.writeFieldEnd()
3442
    if self.status != None:
3458
    if self.status is not None:
3443
      oprot.writeFieldBegin('status', TType.I32, 4)
3459
      oprot.writeFieldBegin('status', TType.I32, 4)
3444
      oprot.writeI32(self.status)
3460
      oprot.writeI32(self.status)
3445
      oprot.writeFieldEnd()
3461
      oprot.writeFieldEnd()
3446
    oprot.writeFieldStop()
3462
    oprot.writeFieldStop()
3447
    oprot.writeStructEnd()
3463
    oprot.writeStructEnd()
3448
 
3464
 
-
 
3465
  def validate(self):
-
 
3466
    return
-
 
3467
 
-
 
3468
 
3449
  def __repr__(self):
3469
  def __repr__(self):
3450
    L = ['%s=%r' % (key, value)
3470
    L = ['%s=%r' % (key, value)
3451
      for key, value in self.__dict__.iteritems()]
3471
      for key, value in self.__dict__.iteritems()]
3452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3453
 
3473
 
Line 3507... Line 3527...
3507
  def write(self, oprot):
3527
  def write(self, oprot):
3508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3510
      return
3530
      return
3511
    oprot.writeStructBegin('getTransactionsForCustomer_result')
3531
    oprot.writeStructBegin('getTransactionsForCustomer_result')
3512
    if self.success != None:
3532
    if self.success is not None:
3513
      oprot.writeFieldBegin('success', TType.LIST, 0)
3533
      oprot.writeFieldBegin('success', TType.LIST, 0)
3514
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3534
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3515
      for iter20 in self.success:
3535
      for iter20 in self.success:
3516
        iter20.write(oprot)
3536
        iter20.write(oprot)
3517
      oprot.writeListEnd()
3537
      oprot.writeListEnd()
3518
      oprot.writeFieldEnd()
3538
      oprot.writeFieldEnd()
3519
    if self.ex != None:
3539
    if self.ex is not None:
3520
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3540
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3521
      self.ex.write(oprot)
3541
      self.ex.write(oprot)
3522
      oprot.writeFieldEnd()
3542
      oprot.writeFieldEnd()
3523
    oprot.writeFieldStop()
3543
    oprot.writeFieldStop()
3524
    oprot.writeStructEnd()
3544
    oprot.writeStructEnd()
3525
 
3545
 
-
 
3546
  def validate(self):
-
 
3547
    return
-
 
3548
 
-
 
3549
 
3526
  def __repr__(self):
3550
  def __repr__(self):
3527
    L = ['%s=%r' % (key, value)
3551
    L = ['%s=%r' % (key, value)
3528
      for key, value in self.__dict__.iteritems()]
3552
      for key, value in self.__dict__.iteritems()]
3529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3530
 
3554
 
Line 3570... Line 3594...
3570
  def write(self, oprot):
3594
  def write(self, oprot):
3571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3573
      return
3597
      return
3574
    oprot.writeStructBegin('getTransactionsForShoppingCartId_args')
3598
    oprot.writeStructBegin('getTransactionsForShoppingCartId_args')
3575
    if self.shoppingCartId != None:
3599
    if self.shoppingCartId is not None:
3576
      oprot.writeFieldBegin('shoppingCartId', TType.I64, 1)
3600
      oprot.writeFieldBegin('shoppingCartId', TType.I64, 1)
3577
      oprot.writeI64(self.shoppingCartId)
3601
      oprot.writeI64(self.shoppingCartId)
3578
      oprot.writeFieldEnd()
3602
      oprot.writeFieldEnd()
3579
    oprot.writeFieldStop()
3603
    oprot.writeFieldStop()
3580
    oprot.writeStructEnd()
3604
    oprot.writeStructEnd()
3581
 
3605
 
-
 
3606
  def validate(self):
-
 
3607
    return
-
 
3608
 
-
 
3609
 
3582
  def __repr__(self):
3610
  def __repr__(self):
3583
    L = ['%s=%r' % (key, value)
3611
    L = ['%s=%r' % (key, value)
3584
      for key, value in self.__dict__.iteritems()]
3612
      for key, value in self.__dict__.iteritems()]
3585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3586
 
3614
 
Line 3640... Line 3668...
3640
  def write(self, oprot):
3668
  def write(self, oprot):
3641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3643
      return
3671
      return
3644
    oprot.writeStructBegin('getTransactionsForShoppingCartId_result')
3672
    oprot.writeStructBegin('getTransactionsForShoppingCartId_result')
3645
    if self.success != None:
3673
    if self.success is not None:
3646
      oprot.writeFieldBegin('success', TType.LIST, 0)
3674
      oprot.writeFieldBegin('success', TType.LIST, 0)
3647
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3675
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3648
      for iter27 in self.success:
3676
      for iter27 in self.success:
3649
        iter27.write(oprot)
3677
        iter27.write(oprot)
3650
      oprot.writeListEnd()
3678
      oprot.writeListEnd()
3651
      oprot.writeFieldEnd()
3679
      oprot.writeFieldEnd()
3652
    if self.ex != None:
3680
    if self.ex is not None:
3653
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3681
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3654
      self.ex.write(oprot)
3682
      self.ex.write(oprot)
3655
      oprot.writeFieldEnd()
3683
      oprot.writeFieldEnd()
3656
    oprot.writeFieldStop()
3684
    oprot.writeFieldStop()
3657
    oprot.writeStructEnd()
3685
    oprot.writeStructEnd()
3658
 
3686
 
-
 
3687
  def validate(self):
-
 
3688
    return
-
 
3689
 
-
 
3690
 
3659
  def __repr__(self):
3691
  def __repr__(self):
3660
    L = ['%s=%r' % (key, value)
3692
    L = ['%s=%r' % (key, value)
3661
      for key, value in self.__dict__.iteritems()]
3693
      for key, value in self.__dict__.iteritems()]
3662
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3663
 
3695
 
Line 3703... Line 3735...
3703
  def write(self, oprot):
3735
  def write(self, oprot):
3704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3706
      return
3738
      return
3707
    oprot.writeStructBegin('getTransactionStatus_args')
3739
    oprot.writeStructBegin('getTransactionStatus_args')
3708
    if self.transactionId != None:
3740
    if self.transactionId is not None:
3709
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
3741
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
3710
      oprot.writeI64(self.transactionId)
3742
      oprot.writeI64(self.transactionId)
3711
      oprot.writeFieldEnd()
3743
      oprot.writeFieldEnd()
3712
    oprot.writeFieldStop()
3744
    oprot.writeFieldStop()
3713
    oprot.writeStructEnd()
3745
    oprot.writeStructEnd()
3714
 
3746
 
-
 
3747
  def validate(self):
-
 
3748
    return
-
 
3749
 
-
 
3750
 
3715
  def __repr__(self):
3751
  def __repr__(self):
3716
    L = ['%s=%r' % (key, value)
3752
    L = ['%s=%r' % (key, value)
3717
      for key, value in self.__dict__.iteritems()]
3753
      for key, value in self.__dict__.iteritems()]
3718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3719
 
3755
 
Line 3767... Line 3803...
3767
  def write(self, oprot):
3803
  def write(self, oprot):
3768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3770
      return
3806
      return
3771
    oprot.writeStructBegin('getTransactionStatus_result')
3807
    oprot.writeStructBegin('getTransactionStatus_result')
3772
    if self.success != None:
3808
    if self.success is not None:
3773
      oprot.writeFieldBegin('success', TType.I32, 0)
3809
      oprot.writeFieldBegin('success', TType.I32, 0)
3774
      oprot.writeI32(self.success)
3810
      oprot.writeI32(self.success)
3775
      oprot.writeFieldEnd()
3811
      oprot.writeFieldEnd()
3776
    if self.ex != None:
3812
    if self.ex is not None:
3777
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3813
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3778
      self.ex.write(oprot)
3814
      self.ex.write(oprot)
3779
      oprot.writeFieldEnd()
3815
      oprot.writeFieldEnd()
3780
    oprot.writeFieldStop()
3816
    oprot.writeFieldStop()
3781
    oprot.writeStructEnd()
3817
    oprot.writeStructEnd()
3782
 
3818
 
-
 
3819
  def validate(self):
-
 
3820
    return
-
 
3821
 
-
 
3822
 
3783
  def __repr__(self):
3823
  def __repr__(self):
3784
    L = ['%s=%r' % (key, value)
3824
    L = ['%s=%r' % (key, value)
3785
      for key, value in self.__dict__.iteritems()]
3825
      for key, value in self.__dict__.iteritems()]
3786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3787
 
3827
 
Line 3843... Line 3883...
3843
  def write(self, oprot):
3883
  def write(self, oprot):
3844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3846
      return
3886
      return
3847
    oprot.writeStructBegin('changeTransactionStatus_args')
3887
    oprot.writeStructBegin('changeTransactionStatus_args')
3848
    if self.transactionId != None:
3888
    if self.transactionId is not None:
3849
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
3889
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
3850
      oprot.writeI64(self.transactionId)
3890
      oprot.writeI64(self.transactionId)
3851
      oprot.writeFieldEnd()
3891
      oprot.writeFieldEnd()
3852
    if self.status != None:
3892
    if self.status is not None:
3853
      oprot.writeFieldBegin('status', TType.I32, 2)
3893
      oprot.writeFieldBegin('status', TType.I32, 2)
3854
      oprot.writeI32(self.status)
3894
      oprot.writeI32(self.status)
3855
      oprot.writeFieldEnd()
3895
      oprot.writeFieldEnd()
3856
    if self.description != None:
3896
    if self.description is not None:
3857
      oprot.writeFieldBegin('description', TType.STRING, 3)
3897
      oprot.writeFieldBegin('description', TType.STRING, 3)
3858
      oprot.writeString(self.description)
3898
      oprot.writeString(self.description)
3859
      oprot.writeFieldEnd()
3899
      oprot.writeFieldEnd()
3860
    oprot.writeFieldStop()
3900
    oprot.writeFieldStop()
3861
    oprot.writeStructEnd()
3901
    oprot.writeStructEnd()
3862
 
3902
 
-
 
3903
  def validate(self):
-
 
3904
    return
-
 
3905
 
-
 
3906
 
3863
  def __repr__(self):
3907
  def __repr__(self):
3864
    L = ['%s=%r' % (key, value)
3908
    L = ['%s=%r' % (key, value)
3865
      for key, value in self.__dict__.iteritems()]
3909
      for key, value in self.__dict__.iteritems()]
3866
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3867
 
3911
 
Line 3915... Line 3959...
3915
  def write(self, oprot):
3959
  def write(self, oprot):
3916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3918
      return
3962
      return
3919
    oprot.writeStructBegin('changeTransactionStatus_result')
3963
    oprot.writeStructBegin('changeTransactionStatus_result')
3920
    if self.success != None:
3964
    if self.success is not None:
3921
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3965
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3922
      oprot.writeBool(self.success)
3966
      oprot.writeBool(self.success)
3923
      oprot.writeFieldEnd()
3967
      oprot.writeFieldEnd()
3924
    if self.ex != None:
3968
    if self.ex is not None:
3925
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3969
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3926
      self.ex.write(oprot)
3970
      self.ex.write(oprot)
3927
      oprot.writeFieldEnd()
3971
      oprot.writeFieldEnd()
3928
    oprot.writeFieldStop()
3972
    oprot.writeFieldStop()
3929
    oprot.writeStructEnd()
3973
    oprot.writeStructEnd()
3930
 
3974
 
-
 
3975
  def validate(self):
-
 
3976
    return
-
 
3977
 
-
 
3978
 
3931
  def __repr__(self):
3979
  def __repr__(self):
3932
    L = ['%s=%r' % (key, value)
3980
    L = ['%s=%r' % (key, value)
3933
      for key, value in self.__dict__.iteritems()]
3981
      for key, value in self.__dict__.iteritems()]
3934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3935
 
3983
 
Line 3975... Line 4023...
3975
  def write(self, oprot):
4023
  def write(self, oprot):
3976
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3977
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3978
      return
4026
      return
3979
    oprot.writeStructBegin('enqueueTransactionInfoEmail_args')
4027
    oprot.writeStructBegin('enqueueTransactionInfoEmail_args')
3980
    if self.transactionId != None:
4028
    if self.transactionId is not None:
3981
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
4029
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
3982
      oprot.writeI64(self.transactionId)
4030
      oprot.writeI64(self.transactionId)
3983
      oprot.writeFieldEnd()
4031
      oprot.writeFieldEnd()
3984
    oprot.writeFieldStop()
4032
    oprot.writeFieldStop()
3985
    oprot.writeStructEnd()
4033
    oprot.writeStructEnd()
3986
 
4034
 
-
 
4035
  def validate(self):
-
 
4036
    return
-
 
4037
 
-
 
4038
 
3987
  def __repr__(self):
4039
  def __repr__(self):
3988
    L = ['%s=%r' % (key, value)
4040
    L = ['%s=%r' % (key, value)
3989
      for key, value in self.__dict__.iteritems()]
4041
      for key, value in self.__dict__.iteritems()]
3990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3991
 
4043
 
Line 4039... Line 4091...
4039
  def write(self, oprot):
4091
  def write(self, oprot):
4040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4042
      return
4094
      return
4043
    oprot.writeStructBegin('enqueueTransactionInfoEmail_result')
4095
    oprot.writeStructBegin('enqueueTransactionInfoEmail_result')
4044
    if self.success != None:
4096
    if self.success is not None:
4045
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4097
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4046
      oprot.writeBool(self.success)
4098
      oprot.writeBool(self.success)
4047
      oprot.writeFieldEnd()
4099
      oprot.writeFieldEnd()
4048
    if self.ex != None:
4100
    if self.ex is not None:
4049
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4101
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4050
      self.ex.write(oprot)
4102
      self.ex.write(oprot)
4051
      oprot.writeFieldEnd()
4103
      oprot.writeFieldEnd()
4052
    oprot.writeFieldStop()
4104
    oprot.writeFieldStop()
4053
    oprot.writeStructEnd()
4105
    oprot.writeStructEnd()
4054
 
4106
 
-
 
4107
  def validate(self):
-
 
4108
    return
-
 
4109
 
-
 
4110
 
4055
  def __repr__(self):
4111
  def __repr__(self):
4056
    L = ['%s=%r' % (key, value)
4112
    L = ['%s=%r' % (key, value)
4057
      for key, value in self.__dict__.iteritems()]
4113
      for key, value in self.__dict__.iteritems()]
4058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4059
 
4115
 
Line 4123... Line 4179...
4123
  def write(self, oprot):
4179
  def write(self, oprot):
4124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4126
      return
4182
      return
4127
    oprot.writeStructBegin('getAllOrders_args')
4183
    oprot.writeStructBegin('getAllOrders_args')
4128
    if self.status != None:
4184
    if self.status is not None:
4129
      oprot.writeFieldBegin('status', TType.I32, 1)
4185
      oprot.writeFieldBegin('status', TType.I32, 1)
4130
      oprot.writeI32(self.status)
4186
      oprot.writeI32(self.status)
4131
      oprot.writeFieldEnd()
4187
      oprot.writeFieldEnd()
4132
    if self.from_date != None:
4188
    if self.from_date is not None:
4133
      oprot.writeFieldBegin('from_date', TType.I64, 2)
4189
      oprot.writeFieldBegin('from_date', TType.I64, 2)
4134
      oprot.writeI64(self.from_date)
4190
      oprot.writeI64(self.from_date)
4135
      oprot.writeFieldEnd()
4191
      oprot.writeFieldEnd()
4136
    if self.to_date != None:
4192
    if self.to_date is not None:
4137
      oprot.writeFieldBegin('to_date', TType.I64, 3)
4193
      oprot.writeFieldBegin('to_date', TType.I64, 3)
4138
      oprot.writeI64(self.to_date)
4194
      oprot.writeI64(self.to_date)
4139
      oprot.writeFieldEnd()
4195
      oprot.writeFieldEnd()
4140
    if self.warehouse_id != None:
4196
    if self.warehouse_id is not None:
4141
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
4197
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
4142
      oprot.writeI64(self.warehouse_id)
4198
      oprot.writeI64(self.warehouse_id)
4143
      oprot.writeFieldEnd()
4199
      oprot.writeFieldEnd()
4144
    oprot.writeFieldStop()
4200
    oprot.writeFieldStop()
4145
    oprot.writeStructEnd()
4201
    oprot.writeStructEnd()
4146
 
4202
 
-
 
4203
  def validate(self):
-
 
4204
    return
-
 
4205
 
-
 
4206
 
4147
  def __repr__(self):
4207
  def __repr__(self):
4148
    L = ['%s=%r' % (key, value)
4208
    L = ['%s=%r' % (key, value)
4149
      for key, value in self.__dict__.iteritems()]
4209
      for key, value in self.__dict__.iteritems()]
4150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4151
 
4211
 
Line 4205... Line 4265...
4205
  def write(self, oprot):
4265
  def write(self, oprot):
4206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4208
      return
4268
      return
4209
    oprot.writeStructBegin('getAllOrders_result')
4269
    oprot.writeStructBegin('getAllOrders_result')
4210
    if self.success != None:
4270
    if self.success is not None:
4211
      oprot.writeFieldBegin('success', TType.LIST, 0)
4271
      oprot.writeFieldBegin('success', TType.LIST, 0)
4212
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4272
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4213
      for iter34 in self.success:
4273
      for iter34 in self.success:
4214
        iter34.write(oprot)
4274
        iter34.write(oprot)
4215
      oprot.writeListEnd()
4275
      oprot.writeListEnd()
4216
      oprot.writeFieldEnd()
4276
      oprot.writeFieldEnd()
4217
    if self.ex != None:
4277
    if self.ex is not None:
4218
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4278
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4219
      self.ex.write(oprot)
4279
      self.ex.write(oprot)
4220
      oprot.writeFieldEnd()
4280
      oprot.writeFieldEnd()
4221
    oprot.writeFieldStop()
4281
    oprot.writeFieldStop()
4222
    oprot.writeStructEnd()
4282
    oprot.writeStructEnd()
4223
 
4283
 
-
 
4284
  def validate(self):
-
 
4285
    return
-
 
4286
 
-
 
4287
 
4224
  def __repr__(self):
4288
  def __repr__(self):
4225
    L = ['%s=%r' % (key, value)
4289
    L = ['%s=%r' % (key, value)
4226
      for key, value in self.__dict__.iteritems()]
4290
      for key, value in self.__dict__.iteritems()]
4227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4228
 
4292
 
Line 4292... Line 4356...
4292
  def write(self, oprot):
4356
  def write(self, oprot):
4293
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4294
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4295
      return
4359
      return
4296
    oprot.writeStructBegin('getOrdersByBillingDate_args')
4360
    oprot.writeStructBegin('getOrdersByBillingDate_args')
4297
    if self.status != None:
4361
    if self.status is not None:
4298
      oprot.writeFieldBegin('status', TType.I32, 1)
4362
      oprot.writeFieldBegin('status', TType.I32, 1)
4299
      oprot.writeI32(self.status)
4363
      oprot.writeI32(self.status)
4300
      oprot.writeFieldEnd()
4364
      oprot.writeFieldEnd()
4301
    if self.start_billing_date != None:
4365
    if self.start_billing_date is not None:
4302
      oprot.writeFieldBegin('start_billing_date', TType.I64, 2)
4366
      oprot.writeFieldBegin('start_billing_date', TType.I64, 2)
4303
      oprot.writeI64(self.start_billing_date)
4367
      oprot.writeI64(self.start_billing_date)
4304
      oprot.writeFieldEnd()
4368
      oprot.writeFieldEnd()
4305
    if self.end_billing_date != None:
4369
    if self.end_billing_date is not None:
4306
      oprot.writeFieldBegin('end_billing_date', TType.I64, 3)
4370
      oprot.writeFieldBegin('end_billing_date', TType.I64, 3)
4307
      oprot.writeI64(self.end_billing_date)
4371
      oprot.writeI64(self.end_billing_date)
4308
      oprot.writeFieldEnd()
4372
      oprot.writeFieldEnd()
4309
    if self.warehouse_id != None:
4373
    if self.warehouse_id is not None:
4310
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
4374
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
4311
      oprot.writeI64(self.warehouse_id)
4375
      oprot.writeI64(self.warehouse_id)
4312
      oprot.writeFieldEnd()
4376
      oprot.writeFieldEnd()
4313
    oprot.writeFieldStop()
4377
    oprot.writeFieldStop()
4314
    oprot.writeStructEnd()
4378
    oprot.writeStructEnd()
4315
 
4379
 
-
 
4380
  def validate(self):
-
 
4381
    return
-
 
4382
 
-
 
4383
 
4316
  def __repr__(self):
4384
  def __repr__(self):
4317
    L = ['%s=%r' % (key, value)
4385
    L = ['%s=%r' % (key, value)
4318
      for key, value in self.__dict__.iteritems()]
4386
      for key, value in self.__dict__.iteritems()]
4319
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4320
 
4388
 
Line 4374... Line 4442...
4374
  def write(self, oprot):
4442
  def write(self, oprot):
4375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4377
      return
4445
      return
4378
    oprot.writeStructBegin('getOrdersByBillingDate_result')
4446
    oprot.writeStructBegin('getOrdersByBillingDate_result')
4379
    if self.success != None:
4447
    if self.success is not None:
4380
      oprot.writeFieldBegin('success', TType.LIST, 0)
4448
      oprot.writeFieldBegin('success', TType.LIST, 0)
4381
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4449
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4382
      for iter41 in self.success:
4450
      for iter41 in self.success:
4383
        iter41.write(oprot)
4451
        iter41.write(oprot)
4384
      oprot.writeListEnd()
4452
      oprot.writeListEnd()
4385
      oprot.writeFieldEnd()
4453
      oprot.writeFieldEnd()
4386
    if self.ex != None:
4454
    if self.ex is not None:
4387
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4455
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4388
      self.ex.write(oprot)
4456
      self.ex.write(oprot)
4389
      oprot.writeFieldEnd()
4457
      oprot.writeFieldEnd()
4390
    oprot.writeFieldStop()
4458
    oprot.writeFieldStop()
4391
    oprot.writeStructEnd()
4459
    oprot.writeStructEnd()
4392
 
4460
 
-
 
4461
  def validate(self):
-
 
4462
    return
-
 
4463
 
-
 
4464
 
4393
  def __repr__(self):
4465
  def __repr__(self):
4394
    L = ['%s=%r' % (key, value)
4466
    L = ['%s=%r' % (key, value)
4395
      for key, value in self.__dict__.iteritems()]
4467
      for key, value in self.__dict__.iteritems()]
4396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4397
 
4469
 
Line 4461... Line 4533...
4461
  def write(self, oprot):
4533
  def write(self, oprot):
4462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4464
      return
4536
      return
4465
    oprot.writeStructBegin('getOrdersByShippingDate_args')
4537
    oprot.writeStructBegin('getOrdersByShippingDate_args')
4466
    if self.fromShippingDate != None:
4538
    if self.fromShippingDate is not None:
4467
      oprot.writeFieldBegin('fromShippingDate', TType.I64, 1)
4539
      oprot.writeFieldBegin('fromShippingDate', TType.I64, 1)
4468
      oprot.writeI64(self.fromShippingDate)
4540
      oprot.writeI64(self.fromShippingDate)
4469
      oprot.writeFieldEnd()
4541
      oprot.writeFieldEnd()
4470
    if self.toShippingDate != None:
4542
    if self.toShippingDate is not None:
4471
      oprot.writeFieldBegin('toShippingDate', TType.I64, 2)
4543
      oprot.writeFieldBegin('toShippingDate', TType.I64, 2)
4472
      oprot.writeI64(self.toShippingDate)
4544
      oprot.writeI64(self.toShippingDate)
4473
      oprot.writeFieldEnd()
4545
      oprot.writeFieldEnd()
4474
    if self.providerId != None:
4546
    if self.providerId is not None:
4475
      oprot.writeFieldBegin('providerId', TType.I64, 3)
4547
      oprot.writeFieldBegin('providerId', TType.I64, 3)
4476
      oprot.writeI64(self.providerId)
4548
      oprot.writeI64(self.providerId)
4477
      oprot.writeFieldEnd()
4549
      oprot.writeFieldEnd()
4478
    if self.warehouseId != None:
4550
    if self.warehouseId is not None:
4479
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
4551
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
4480
      oprot.writeI64(self.warehouseId)
4552
      oprot.writeI64(self.warehouseId)
4481
      oprot.writeFieldEnd()
4553
      oprot.writeFieldEnd()
4482
    oprot.writeFieldStop()
4554
    oprot.writeFieldStop()
4483
    oprot.writeStructEnd()
4555
    oprot.writeStructEnd()
4484
 
4556
 
-
 
4557
  def validate(self):
-
 
4558
    return
-
 
4559
 
-
 
4560
 
4485
  def __repr__(self):
4561
  def __repr__(self):
4486
    L = ['%s=%r' % (key, value)
4562
    L = ['%s=%r' % (key, value)
4487
      for key, value in self.__dict__.iteritems()]
4563
      for key, value in self.__dict__.iteritems()]
4488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4489
 
4565
 
Line 4543... Line 4619...
4543
  def write(self, oprot):
4619
  def write(self, oprot):
4544
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4545
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4546
      return
4622
      return
4547
    oprot.writeStructBegin('getOrdersByShippingDate_result')
4623
    oprot.writeStructBegin('getOrdersByShippingDate_result')
4548
    if self.success != None:
4624
    if self.success is not None:
4549
      oprot.writeFieldBegin('success', TType.LIST, 0)
4625
      oprot.writeFieldBegin('success', TType.LIST, 0)
4550
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4626
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4551
      for iter48 in self.success:
4627
      for iter48 in self.success:
4552
        iter48.write(oprot)
4628
        iter48.write(oprot)
4553
      oprot.writeListEnd()
4629
      oprot.writeListEnd()
4554
      oprot.writeFieldEnd()
4630
      oprot.writeFieldEnd()
4555
    if self.ex != None:
4631
    if self.ex is not None:
4556
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4632
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4557
      self.ex.write(oprot)
4633
      self.ex.write(oprot)
4558
      oprot.writeFieldEnd()
4634
      oprot.writeFieldEnd()
4559
    oprot.writeFieldStop()
4635
    oprot.writeFieldStop()
4560
    oprot.writeStructEnd()
4636
    oprot.writeStructEnd()
4561
 
4637
 
-
 
4638
  def validate(self):
-
 
4639
    return
-
 
4640
 
-
 
4641
 
4562
  def __repr__(self):
4642
  def __repr__(self):
4563
    L = ['%s=%r' % (key, value)
4643
    L = ['%s=%r' % (key, value)
4564
      for key, value in self.__dict__.iteritems()]
4644
      for key, value in self.__dict__.iteritems()]
4565
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4566
 
4646
 
Line 4614... Line 4694...
4614
  def write(self, oprot):
4694
  def write(self, oprot):
4615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4695
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4696
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4617
      return
4697
      return
4618
    oprot.writeStructBegin('getReturnableOrdersForCustomer_args')
4698
    oprot.writeStructBegin('getReturnableOrdersForCustomer_args')
4619
    if self.customer_id != None:
4699
    if self.customer_id is not None:
4620
      oprot.writeFieldBegin('customer_id', TType.I64, 1)
4700
      oprot.writeFieldBegin('customer_id', TType.I64, 1)
4621
      oprot.writeI64(self.customer_id)
4701
      oprot.writeI64(self.customer_id)
4622
      oprot.writeFieldEnd()
4702
      oprot.writeFieldEnd()
4623
    if self.limit != None:
4703
    if self.limit is not None:
4624
      oprot.writeFieldBegin('limit', TType.I64, 2)
4704
      oprot.writeFieldBegin('limit', TType.I64, 2)
4625
      oprot.writeI64(self.limit)
4705
      oprot.writeI64(self.limit)
4626
      oprot.writeFieldEnd()
4706
      oprot.writeFieldEnd()
4627
    oprot.writeFieldStop()
4707
    oprot.writeFieldStop()
4628
    oprot.writeStructEnd()
4708
    oprot.writeStructEnd()
4629
 
4709
 
-
 
4710
  def validate(self):
-
 
4711
    return
-
 
4712
 
-
 
4713
 
4630
  def __repr__(self):
4714
  def __repr__(self):
4631
    L = ['%s=%r' % (key, value)
4715
    L = ['%s=%r' % (key, value)
4632
      for key, value in self.__dict__.iteritems()]
4716
      for key, value in self.__dict__.iteritems()]
4633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4634
 
4718
 
Line 4687... Line 4771...
4687
  def write(self, oprot):
4771
  def write(self, oprot):
4688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4690
      return
4774
      return
4691
    oprot.writeStructBegin('getReturnableOrdersForCustomer_result')
4775
    oprot.writeStructBegin('getReturnableOrdersForCustomer_result')
4692
    if self.success != None:
4776
    if self.success is not None:
4693
      oprot.writeFieldBegin('success', TType.LIST, 0)
4777
      oprot.writeFieldBegin('success', TType.LIST, 0)
4694
      oprot.writeListBegin(TType.I64, len(self.success))
4778
      oprot.writeListBegin(TType.I64, len(self.success))
4695
      for iter55 in self.success:
4779
      for iter55 in self.success:
4696
        oprot.writeI64(iter55)
4780
        oprot.writeI64(iter55)
4697
      oprot.writeListEnd()
4781
      oprot.writeListEnd()
4698
      oprot.writeFieldEnd()
4782
      oprot.writeFieldEnd()
4699
    if self.ex != None:
4783
    if self.ex is not None:
4700
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4784
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4701
      self.ex.write(oprot)
4785
      self.ex.write(oprot)
4702
      oprot.writeFieldEnd()
4786
      oprot.writeFieldEnd()
4703
    oprot.writeFieldStop()
4787
    oprot.writeFieldStop()
4704
    oprot.writeStructEnd()
4788
    oprot.writeStructEnd()
4705
 
4789
 
-
 
4790
  def validate(self):
-
 
4791
    return
-
 
4792
 
-
 
4793
 
4706
  def __repr__(self):
4794
  def __repr__(self):
4707
    L = ['%s=%r' % (key, value)
4795
    L = ['%s=%r' % (key, value)
4708
      for key, value in self.__dict__.iteritems()]
4796
      for key, value in self.__dict__.iteritems()]
4709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4710
 
4798
 
Line 4758... Line 4846...
4758
  def write(self, oprot):
4846
  def write(self, oprot):
4759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4761
      return
4849
      return
4762
    oprot.writeStructBegin('getCancellableOrdersForCustomer_args')
4850
    oprot.writeStructBegin('getCancellableOrdersForCustomer_args')
4763
    if self.customer_id != None:
4851
    if self.customer_id is not None:
4764
      oprot.writeFieldBegin('customer_id', TType.I64, 1)
4852
      oprot.writeFieldBegin('customer_id', TType.I64, 1)
4765
      oprot.writeI64(self.customer_id)
4853
      oprot.writeI64(self.customer_id)
4766
      oprot.writeFieldEnd()
4854
      oprot.writeFieldEnd()
4767
    if self.limit != None:
4855
    if self.limit is not None:
4768
      oprot.writeFieldBegin('limit', TType.I64, 2)
4856
      oprot.writeFieldBegin('limit', TType.I64, 2)
4769
      oprot.writeI64(self.limit)
4857
      oprot.writeI64(self.limit)
4770
      oprot.writeFieldEnd()
4858
      oprot.writeFieldEnd()
4771
    oprot.writeFieldStop()
4859
    oprot.writeFieldStop()
4772
    oprot.writeStructEnd()
4860
    oprot.writeStructEnd()
4773
 
4861
 
-
 
4862
  def validate(self):
-
 
4863
    return
-
 
4864
 
-
 
4865
 
4774
  def __repr__(self):
4866
  def __repr__(self):
4775
    L = ['%s=%r' % (key, value)
4867
    L = ['%s=%r' % (key, value)
4776
      for key, value in self.__dict__.iteritems()]
4868
      for key, value in self.__dict__.iteritems()]
4777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4778
 
4870
 
Line 4831... Line 4923...
4831
  def write(self, oprot):
4923
  def write(self, oprot):
4832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4834
      return
4926
      return
4835
    oprot.writeStructBegin('getCancellableOrdersForCustomer_result')
4927
    oprot.writeStructBegin('getCancellableOrdersForCustomer_result')
4836
    if self.success != None:
4928
    if self.success is not None:
4837
      oprot.writeFieldBegin('success', TType.LIST, 0)
4929
      oprot.writeFieldBegin('success', TType.LIST, 0)
4838
      oprot.writeListBegin(TType.I64, len(self.success))
4930
      oprot.writeListBegin(TType.I64, len(self.success))
4839
      for iter62 in self.success:
4931
      for iter62 in self.success:
4840
        oprot.writeI64(iter62)
4932
        oprot.writeI64(iter62)
4841
      oprot.writeListEnd()
4933
      oprot.writeListEnd()
4842
      oprot.writeFieldEnd()
4934
      oprot.writeFieldEnd()
4843
    if self.ex != None:
4935
    if self.ex is not None:
4844
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4936
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4845
      self.ex.write(oprot)
4937
      self.ex.write(oprot)
4846
      oprot.writeFieldEnd()
4938
      oprot.writeFieldEnd()
4847
    oprot.writeFieldStop()
4939
    oprot.writeFieldStop()
4848
    oprot.writeStructEnd()
4940
    oprot.writeStructEnd()
4849
 
4941
 
-
 
4942
  def validate(self):
-
 
4943
    return
-
 
4944
 
-
 
4945
 
4850
  def __repr__(self):
4946
  def __repr__(self):
4851
    L = ['%s=%r' % (key, value)
4947
    L = ['%s=%r' % (key, value)
4852
      for key, value in self.__dict__.iteritems()]
4948
      for key, value in self.__dict__.iteritems()]
4853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4854
 
4950
 
Line 4910... Line 5006...
4910
  def write(self, oprot):
5006
  def write(self, oprot):
4911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4913
      return
5009
      return
4914
    oprot.writeStructBegin('changeOrderStatus_args')
5010
    oprot.writeStructBegin('changeOrderStatus_args')
4915
    if self.orderId != None:
5011
    if self.orderId is not None:
4916
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5012
      oprot.writeFieldBegin('orderId', TType.I64, 1)
4917
      oprot.writeI64(self.orderId)
5013
      oprot.writeI64(self.orderId)
4918
      oprot.writeFieldEnd()
5014
      oprot.writeFieldEnd()
4919
    if self.status != None:
5015
    if self.status is not None:
4920
      oprot.writeFieldBegin('status', TType.I32, 2)
5016
      oprot.writeFieldBegin('status', TType.I32, 2)
4921
      oprot.writeI32(self.status)
5017
      oprot.writeI32(self.status)
4922
      oprot.writeFieldEnd()
5018
      oprot.writeFieldEnd()
4923
    if self.description != None:
5019
    if self.description is not None:
4924
      oprot.writeFieldBegin('description', TType.STRING, 3)
5020
      oprot.writeFieldBegin('description', TType.STRING, 3)
4925
      oprot.writeString(self.description)
5021
      oprot.writeString(self.description)
4926
      oprot.writeFieldEnd()
5022
      oprot.writeFieldEnd()
4927
    oprot.writeFieldStop()
5023
    oprot.writeFieldStop()
4928
    oprot.writeStructEnd()
5024
    oprot.writeStructEnd()
4929
 
5025
 
-
 
5026
  def validate(self):
-
 
5027
    return
-
 
5028
 
-
 
5029
 
4930
  def __repr__(self):
5030
  def __repr__(self):
4931
    L = ['%s=%r' % (key, value)
5031
    L = ['%s=%r' % (key, value)
4932
      for key, value in self.__dict__.iteritems()]
5032
      for key, value in self.__dict__.iteritems()]
4933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4934
 
5034
 
Line 4982... Line 5082...
4982
  def write(self, oprot):
5082
  def write(self, oprot):
4983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4985
      return
5085
      return
4986
    oprot.writeStructBegin('changeOrderStatus_result')
5086
    oprot.writeStructBegin('changeOrderStatus_result')
4987
    if self.success != None:
5087
    if self.success is not None:
4988
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5088
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4989
      oprot.writeBool(self.success)
5089
      oprot.writeBool(self.success)
4990
      oprot.writeFieldEnd()
5090
      oprot.writeFieldEnd()
4991
    if self.ex != None:
5091
    if self.ex is not None:
4992
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5092
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4993
      self.ex.write(oprot)
5093
      self.ex.write(oprot)
4994
      oprot.writeFieldEnd()
5094
      oprot.writeFieldEnd()
4995
    oprot.writeFieldStop()
5095
    oprot.writeFieldStop()
4996
    oprot.writeStructEnd()
5096
    oprot.writeStructEnd()
4997
 
5097
 
-
 
5098
  def validate(self):
-
 
5099
    return
-
 
5100
 
-
 
5101
 
4998
  def __repr__(self):
5102
  def __repr__(self):
4999
    L = ['%s=%r' % (key, value)
5103
    L = ['%s=%r' % (key, value)
5000
      for key, value in self.__dict__.iteritems()]
5104
      for key, value in self.__dict__.iteritems()]
5001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5002
 
5106
 
Line 5050... Line 5154...
5050
  def write(self, oprot):
5154
  def write(self, oprot):
5051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5053
      return
5157
      return
5054
    oprot.writeStructBegin('getOrdersForTransaction_args')
5158
    oprot.writeStructBegin('getOrdersForTransaction_args')
5055
    if self.transactionId != None:
5159
    if self.transactionId is not None:
5056
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
5160
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
5057
      oprot.writeI64(self.transactionId)
5161
      oprot.writeI64(self.transactionId)
5058
      oprot.writeFieldEnd()
5162
      oprot.writeFieldEnd()
5059
    if self.customerId != None:
5163
    if self.customerId is not None:
5060
      oprot.writeFieldBegin('customerId', TType.I64, 2)
5164
      oprot.writeFieldBegin('customerId', TType.I64, 2)
5061
      oprot.writeI64(self.customerId)
5165
      oprot.writeI64(self.customerId)
5062
      oprot.writeFieldEnd()
5166
      oprot.writeFieldEnd()
5063
    oprot.writeFieldStop()
5167
    oprot.writeFieldStop()
5064
    oprot.writeStructEnd()
5168
    oprot.writeStructEnd()
5065
 
5169
 
-
 
5170
  def validate(self):
-
 
5171
    return
-
 
5172
 
-
 
5173
 
5066
  def __repr__(self):
5174
  def __repr__(self):
5067
    L = ['%s=%r' % (key, value)
5175
    L = ['%s=%r' % (key, value)
5068
      for key, value in self.__dict__.iteritems()]
5176
      for key, value in self.__dict__.iteritems()]
5069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5070
 
5178
 
Line 5124... Line 5232...
5124
  def write(self, oprot):
5232
  def write(self, oprot):
5125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5127
      return
5235
      return
5128
    oprot.writeStructBegin('getOrdersForTransaction_result')
5236
    oprot.writeStructBegin('getOrdersForTransaction_result')
5129
    if self.success != None:
5237
    if self.success is not None:
5130
      oprot.writeFieldBegin('success', TType.LIST, 0)
5238
      oprot.writeFieldBegin('success', TType.LIST, 0)
5131
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5239
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5132
      for iter69 in self.success:
5240
      for iter69 in self.success:
5133
        iter69.write(oprot)
5241
        iter69.write(oprot)
5134
      oprot.writeListEnd()
5242
      oprot.writeListEnd()
5135
      oprot.writeFieldEnd()
5243
      oprot.writeFieldEnd()
5136
    if self.ex != None:
5244
    if self.ex is not None:
5137
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5245
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5138
      self.ex.write(oprot)
5246
      self.ex.write(oprot)
5139
      oprot.writeFieldEnd()
5247
      oprot.writeFieldEnd()
5140
    oprot.writeFieldStop()
5248
    oprot.writeFieldStop()
5141
    oprot.writeStructEnd()
5249
    oprot.writeStructEnd()
5142
 
5250
 
-
 
5251
  def validate(self):
-
 
5252
    return
-
 
5253
 
-
 
5254
 
5143
  def __repr__(self):
5255
  def __repr__(self):
5144
    L = ['%s=%r' % (key, value)
5256
    L = ['%s=%r' % (key, value)
5145
      for key, value in self.__dict__.iteritems()]
5257
      for key, value in self.__dict__.iteritems()]
5146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5147
 
5259
 
Line 5216... Line 5328...
5216
  def write(self, oprot):
5328
  def write(self, oprot):
5217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5219
      return
5331
      return
5220
    oprot.writeStructBegin('getOrdersForCustomer_args')
5332
    oprot.writeStructBegin('getOrdersForCustomer_args')
5221
    if self.customerId != None:
5333
    if self.customerId is not None:
5222
      oprot.writeFieldBegin('customerId', TType.I64, 1)
5334
      oprot.writeFieldBegin('customerId', TType.I64, 1)
5223
      oprot.writeI64(self.customerId)
5335
      oprot.writeI64(self.customerId)
5224
      oprot.writeFieldEnd()
5336
      oprot.writeFieldEnd()
5225
    if self.from_date != None:
5337
    if self.from_date is not None:
5226
      oprot.writeFieldBegin('from_date', TType.I64, 2)
5338
      oprot.writeFieldBegin('from_date', TType.I64, 2)
5227
      oprot.writeI64(self.from_date)
5339
      oprot.writeI64(self.from_date)
5228
      oprot.writeFieldEnd()
5340
      oprot.writeFieldEnd()
5229
    if self.to_date != None:
5341
    if self.to_date is not None:
5230
      oprot.writeFieldBegin('to_date', TType.I64, 3)
5342
      oprot.writeFieldBegin('to_date', TType.I64, 3)
5231
      oprot.writeI64(self.to_date)
5343
      oprot.writeI64(self.to_date)
5232
      oprot.writeFieldEnd()
5344
      oprot.writeFieldEnd()
5233
    if self.statuses != None:
5345
    if self.statuses is not None:
5234
      oprot.writeFieldBegin('statuses', TType.LIST, 4)
5346
      oprot.writeFieldBegin('statuses', TType.LIST, 4)
5235
      oprot.writeListBegin(TType.I32, len(self.statuses))
5347
      oprot.writeListBegin(TType.I32, len(self.statuses))
5236
      for iter76 in self.statuses:
5348
      for iter76 in self.statuses:
5237
        oprot.writeI32(iter76)
5349
        oprot.writeI32(iter76)
5238
      oprot.writeListEnd()
5350
      oprot.writeListEnd()
5239
      oprot.writeFieldEnd()
5351
      oprot.writeFieldEnd()
5240
    oprot.writeFieldStop()
5352
    oprot.writeFieldStop()
5241
    oprot.writeStructEnd()
5353
    oprot.writeStructEnd()
5242
 
5354
 
-
 
5355
  def validate(self):
-
 
5356
    return
-
 
5357
 
-
 
5358
 
5243
  def __repr__(self):
5359
  def __repr__(self):
5244
    L = ['%s=%r' % (key, value)
5360
    L = ['%s=%r' % (key, value)
5245
      for key, value in self.__dict__.iteritems()]
5361
      for key, value in self.__dict__.iteritems()]
5246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5247
 
5363
 
Line 5301... Line 5417...
5301
  def write(self, oprot):
5417
  def write(self, oprot):
5302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5304
      return
5420
      return
5305
    oprot.writeStructBegin('getOrdersForCustomer_result')
5421
    oprot.writeStructBegin('getOrdersForCustomer_result')
5306
    if self.success != None:
5422
    if self.success is not None:
5307
      oprot.writeFieldBegin('success', TType.LIST, 0)
5423
      oprot.writeFieldBegin('success', TType.LIST, 0)
5308
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5424
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5309
      for iter83 in self.success:
5425
      for iter83 in self.success:
5310
        iter83.write(oprot)
5426
        iter83.write(oprot)
5311
      oprot.writeListEnd()
5427
      oprot.writeListEnd()
5312
      oprot.writeFieldEnd()
5428
      oprot.writeFieldEnd()
5313
    if self.ex != None:
5429
    if self.ex is not None:
5314
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5430
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5315
      self.ex.write(oprot)
5431
      self.ex.write(oprot)
5316
      oprot.writeFieldEnd()
5432
      oprot.writeFieldEnd()
5317
    oprot.writeFieldStop()
5433
    oprot.writeFieldStop()
5318
    oprot.writeStructEnd()
5434
    oprot.writeStructEnd()
5319
 
5435
 
-
 
5436
  def validate(self):
-
 
5437
    return
-
 
5438
 
-
 
5439
 
5320
  def __repr__(self):
5440
  def __repr__(self):
5321
    L = ['%s=%r' % (key, value)
5441
    L = ['%s=%r' % (key, value)
5322
      for key, value in self.__dict__.iteritems()]
5442
      for key, value in self.__dict__.iteritems()]
5323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5324
 
5444
 
Line 5365... Line 5485...
5365
  def write(self, oprot):
5485
  def write(self, oprot):
5366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5368
      return
5488
      return
5369
    oprot.writeStructBegin('createOrder_args')
5489
    oprot.writeStructBegin('createOrder_args')
5370
    if self.order != None:
5490
    if self.order is not None:
5371
      oprot.writeFieldBegin('order', TType.STRUCT, 1)
5491
      oprot.writeFieldBegin('order', TType.STRUCT, 1)
5372
      self.order.write(oprot)
5492
      self.order.write(oprot)
5373
      oprot.writeFieldEnd()
5493
      oprot.writeFieldEnd()
5374
    oprot.writeFieldStop()
5494
    oprot.writeFieldStop()
5375
    oprot.writeStructEnd()
5495
    oprot.writeStructEnd()
5376
 
5496
 
-
 
5497
  def validate(self):
-
 
5498
    return
-
 
5499
 
-
 
5500
 
5377
  def __repr__(self):
5501
  def __repr__(self):
5378
    L = ['%s=%r' % (key, value)
5502
    L = ['%s=%r' % (key, value)
5379
      for key, value in self.__dict__.iteritems()]
5503
      for key, value in self.__dict__.iteritems()]
5380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5381
 
5505
 
Line 5429... Line 5553...
5429
  def write(self, oprot):
5553
  def write(self, oprot):
5430
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5431
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5432
      return
5556
      return
5433
    oprot.writeStructBegin('createOrder_result')
5557
    oprot.writeStructBegin('createOrder_result')
5434
    if self.success != None:
5558
    if self.success is not None:
5435
      oprot.writeFieldBegin('success', TType.I64, 0)
5559
      oprot.writeFieldBegin('success', TType.I64, 0)
5436
      oprot.writeI64(self.success)
5560
      oprot.writeI64(self.success)
5437
      oprot.writeFieldEnd()
5561
      oprot.writeFieldEnd()
5438
    if self.ex != None:
5562
    if self.ex is not None:
5439
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5563
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5440
      self.ex.write(oprot)
5564
      self.ex.write(oprot)
5441
      oprot.writeFieldEnd()
5565
      oprot.writeFieldEnd()
5442
    oprot.writeFieldStop()
5566
    oprot.writeFieldStop()
5443
    oprot.writeStructEnd()
5567
    oprot.writeStructEnd()
5444
 
5568
 
-
 
5569
  def validate(self):
-
 
5570
    return
-
 
5571
 
-
 
5572
 
5445
  def __repr__(self):
5573
  def __repr__(self):
5446
    L = ['%s=%r' % (key, value)
5574
    L = ['%s=%r' % (key, value)
5447
      for key, value in self.__dict__.iteritems()]
5575
      for key, value in self.__dict__.iteritems()]
5448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5449
 
5577
 
Line 5489... Line 5617...
5489
  def write(self, oprot):
5617
  def write(self, oprot):
5490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5492
      return
5620
      return
5493
    oprot.writeStructBegin('getOrder_args')
5621
    oprot.writeStructBegin('getOrder_args')
5494
    if self.id != None:
5622
    if self.id is not None:
5495
      oprot.writeFieldBegin('id', TType.I64, 1)
5623
      oprot.writeFieldBegin('id', TType.I64, 1)
5496
      oprot.writeI64(self.id)
5624
      oprot.writeI64(self.id)
5497
      oprot.writeFieldEnd()
5625
      oprot.writeFieldEnd()
5498
    oprot.writeFieldStop()
5626
    oprot.writeFieldStop()
5499
    oprot.writeStructEnd()
5627
    oprot.writeStructEnd()
5500
 
5628
 
-
 
5629
  def validate(self):
-
 
5630
    return
-
 
5631
 
-
 
5632
 
5501
  def __repr__(self):
5633
  def __repr__(self):
5502
    L = ['%s=%r' % (key, value)
5634
    L = ['%s=%r' % (key, value)
5503
      for key, value in self.__dict__.iteritems()]
5635
      for key, value in self.__dict__.iteritems()]
5504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5505
 
5637
 
Line 5554... Line 5686...
5554
  def write(self, oprot):
5686
  def write(self, oprot):
5555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5557
      return
5689
      return
5558
    oprot.writeStructBegin('getOrder_result')
5690
    oprot.writeStructBegin('getOrder_result')
5559
    if self.success != None:
5691
    if self.success is not None:
5560
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5692
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5561
      self.success.write(oprot)
5693
      self.success.write(oprot)
5562
      oprot.writeFieldEnd()
5694
      oprot.writeFieldEnd()
5563
    if self.ex != None:
5695
    if self.ex is not None:
5564
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5696
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5565
      self.ex.write(oprot)
5697
      self.ex.write(oprot)
5566
      oprot.writeFieldEnd()
5698
      oprot.writeFieldEnd()
5567
    oprot.writeFieldStop()
5699
    oprot.writeFieldStop()
5568
    oprot.writeStructEnd()
5700
    oprot.writeStructEnd()
5569
 
5701
 
-
 
5702
  def validate(self):
-
 
5703
    return
-
 
5704
 
-
 
5705
 
5570
  def __repr__(self):
5706
  def __repr__(self):
5571
    L = ['%s=%r' % (key, value)
5707
    L = ['%s=%r' % (key, value)
5572
      for key, value in self.__dict__.iteritems()]
5708
      for key, value in self.__dict__.iteritems()]
5573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5574
 
5710
 
Line 5614... Line 5750...
5614
  def write(self, oprot):
5750
  def write(self, oprot):
5615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5617
      return
5753
      return
5618
    oprot.writeStructBegin('getLineItemsForOrder_args')
5754
    oprot.writeStructBegin('getLineItemsForOrder_args')
5619
    if self.orderId != None:
5755
    if self.orderId is not None:
5620
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5756
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5621
      oprot.writeI64(self.orderId)
5757
      oprot.writeI64(self.orderId)
5622
      oprot.writeFieldEnd()
5758
      oprot.writeFieldEnd()
5623
    oprot.writeFieldStop()
5759
    oprot.writeFieldStop()
5624
    oprot.writeStructEnd()
5760
    oprot.writeStructEnd()
5625
 
5761
 
-
 
5762
  def validate(self):
-
 
5763
    return
-
 
5764
 
-
 
5765
 
5626
  def __repr__(self):
5766
  def __repr__(self):
5627
    L = ['%s=%r' % (key, value)
5767
    L = ['%s=%r' % (key, value)
5628
      for key, value in self.__dict__.iteritems()]
5768
      for key, value in self.__dict__.iteritems()]
5629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5630
 
5770
 
Line 5684... Line 5824...
5684
  def write(self, oprot):
5824
  def write(self, oprot):
5685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5687
      return
5827
      return
5688
    oprot.writeStructBegin('getLineItemsForOrder_result')
5828
    oprot.writeStructBegin('getLineItemsForOrder_result')
5689
    if self.success != None:
5829
    if self.success is not None:
5690
      oprot.writeFieldBegin('success', TType.LIST, 0)
5830
      oprot.writeFieldBegin('success', TType.LIST, 0)
5691
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5831
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5692
      for iter90 in self.success:
5832
      for iter90 in self.success:
5693
        iter90.write(oprot)
5833
        iter90.write(oprot)
5694
      oprot.writeListEnd()
5834
      oprot.writeListEnd()
5695
      oprot.writeFieldEnd()
5835
      oprot.writeFieldEnd()
5696
    if self.ex != None:
5836
    if self.ex is not None:
5697
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5837
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5698
      self.ex.write(oprot)
5838
      self.ex.write(oprot)
5699
      oprot.writeFieldEnd()
5839
      oprot.writeFieldEnd()
5700
    oprot.writeFieldStop()
5840
    oprot.writeFieldStop()
5701
    oprot.writeStructEnd()
5841
    oprot.writeStructEnd()
5702
 
5842
 
-
 
5843
  def validate(self):
-
 
5844
    return
-
 
5845
 
-
 
5846
 
5703
  def __repr__(self):
5847
  def __repr__(self):
5704
    L = ['%s=%r' % (key, value)
5848
    L = ['%s=%r' % (key, value)
5705
      for key, value in self.__dict__.iteritems()]
5849
      for key, value in self.__dict__.iteritems()]
5706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5707
 
5851
 
Line 5755... Line 5899...
5755
  def write(self, oprot):
5899
  def write(self, oprot):
5756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5758
      return
5902
      return
5759
    oprot.writeStructBegin('getOrderForCustomer_args')
5903
    oprot.writeStructBegin('getOrderForCustomer_args')
5760
    if self.orderId != None:
5904
    if self.orderId is not None:
5761
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5905
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5762
      oprot.writeI64(self.orderId)
5906
      oprot.writeI64(self.orderId)
5763
      oprot.writeFieldEnd()
5907
      oprot.writeFieldEnd()
5764
    if self.customerId != None:
5908
    if self.customerId is not None:
5765
      oprot.writeFieldBegin('customerId', TType.I64, 2)
5909
      oprot.writeFieldBegin('customerId', TType.I64, 2)
5766
      oprot.writeI64(self.customerId)
5910
      oprot.writeI64(self.customerId)
5767
      oprot.writeFieldEnd()
5911
      oprot.writeFieldEnd()
5768
    oprot.writeFieldStop()
5912
    oprot.writeFieldStop()
5769
    oprot.writeStructEnd()
5913
    oprot.writeStructEnd()
5770
 
5914
 
-
 
5915
  def validate(self):
-
 
5916
    return
-
 
5917
 
-
 
5918
 
5771
  def __repr__(self):
5919
  def __repr__(self):
5772
    L = ['%s=%r' % (key, value)
5920
    L = ['%s=%r' % (key, value)
5773
      for key, value in self.__dict__.iteritems()]
5921
      for key, value in self.__dict__.iteritems()]
5774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5775
 
5923
 
Line 5824... Line 5972...
5824
  def write(self, oprot):
5972
  def write(self, oprot):
5825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5827
      return
5975
      return
5828
    oprot.writeStructBegin('getOrderForCustomer_result')
5976
    oprot.writeStructBegin('getOrderForCustomer_result')
5829
    if self.success != None:
5977
    if self.success is not None:
5830
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5978
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5831
      self.success.write(oprot)
5979
      self.success.write(oprot)
5832
      oprot.writeFieldEnd()
5980
      oprot.writeFieldEnd()
5833
    if self.ex != None:
5981
    if self.ex is not None:
5834
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5982
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5835
      self.ex.write(oprot)
5983
      self.ex.write(oprot)
5836
      oprot.writeFieldEnd()
5984
      oprot.writeFieldEnd()
5837
    oprot.writeFieldStop()
5985
    oprot.writeFieldStop()
5838
    oprot.writeStructEnd()
5986
    oprot.writeStructEnd()
5839
 
5987
 
-
 
5988
  def validate(self):
-
 
5989
    return
-
 
5990
 
-
 
5991
 
5840
  def __repr__(self):
5992
  def __repr__(self):
5841
    L = ['%s=%r' % (key, value)
5993
    L = ['%s=%r' % (key, value)
5842
      for key, value in self.__dict__.iteritems()]
5994
      for key, value in self.__dict__.iteritems()]
5843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5844
 
5996
 
Line 5892... Line 6044...
5892
  def write(self, oprot):
6044
  def write(self, oprot):
5893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5895
      return
6047
      return
5896
    oprot.writeStructBegin('getAlerts_args')
6048
    oprot.writeStructBegin('getAlerts_args')
5897
    if self.orderId != None:
6049
    if self.orderId is not None:
5898
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6050
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5899
      oprot.writeI64(self.orderId)
6051
      oprot.writeI64(self.orderId)
5900
      oprot.writeFieldEnd()
6052
      oprot.writeFieldEnd()
5901
    if self.valid != None:
6053
    if self.valid is not None:
5902
      oprot.writeFieldBegin('valid', TType.BOOL, 2)
6054
      oprot.writeFieldBegin('valid', TType.BOOL, 2)
5903
      oprot.writeBool(self.valid)
6055
      oprot.writeBool(self.valid)
5904
      oprot.writeFieldEnd()
6056
      oprot.writeFieldEnd()
5905
    oprot.writeFieldStop()
6057
    oprot.writeFieldStop()
5906
    oprot.writeStructEnd()
6058
    oprot.writeStructEnd()
5907
 
6059
 
-
 
6060
  def validate(self):
-
 
6061
    return
-
 
6062
 
-
 
6063
 
5908
  def __repr__(self):
6064
  def __repr__(self):
5909
    L = ['%s=%r' % (key, value)
6065
    L = ['%s=%r' % (key, value)
5910
      for key, value in self.__dict__.iteritems()]
6066
      for key, value in self.__dict__.iteritems()]
5911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5912
 
6068
 
Line 5957... Line 6113...
5957
  def write(self, oprot):
6113
  def write(self, oprot):
5958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5960
      return
6116
      return
5961
    oprot.writeStructBegin('getAlerts_result')
6117
    oprot.writeStructBegin('getAlerts_result')
5962
    if self.success != None:
6118
    if self.success is not None:
5963
      oprot.writeFieldBegin('success', TType.LIST, 0)
6119
      oprot.writeFieldBegin('success', TType.LIST, 0)
5964
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6120
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5965
      for iter97 in self.success:
6121
      for iter97 in self.success:
5966
        iter97.write(oprot)
6122
        iter97.write(oprot)
5967
      oprot.writeListEnd()
6123
      oprot.writeListEnd()
5968
      oprot.writeFieldEnd()
6124
      oprot.writeFieldEnd()
5969
    oprot.writeFieldStop()
6125
    oprot.writeFieldStop()
5970
    oprot.writeStructEnd()
6126
    oprot.writeStructEnd()
5971
 
6127
 
-
 
6128
  def validate(self):
-
 
6129
    return
-
 
6130
 
-
 
6131
 
5972
  def __repr__(self):
6132
  def __repr__(self):
5973
    L = ['%s=%r' % (key, value)
6133
    L = ['%s=%r' % (key, value)
5974
      for key, value in self.__dict__.iteritems()]
6134
      for key, value in self.__dict__.iteritems()]
5975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5976
 
6136
 
Line 6040... Line 6200...
6040
  def write(self, oprot):
6200
  def write(self, oprot):
6041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6043
      return
6203
      return
6044
    oprot.writeStructBegin('setAlert_args')
6204
    oprot.writeStructBegin('setAlert_args')
6045
    if self.orderId != None:
6205
    if self.orderId is not None:
6046
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6206
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6047
      oprot.writeI64(self.orderId)
6207
      oprot.writeI64(self.orderId)
6048
      oprot.writeFieldEnd()
6208
      oprot.writeFieldEnd()
6049
    if self.unset != None:
6209
    if self.unset is not None:
6050
      oprot.writeFieldBegin('unset', TType.BOOL, 2)
6210
      oprot.writeFieldBegin('unset', TType.BOOL, 2)
6051
      oprot.writeBool(self.unset)
6211
      oprot.writeBool(self.unset)
6052
      oprot.writeFieldEnd()
6212
      oprot.writeFieldEnd()
6053
    if self.type != None:
6213
    if self.type is not None:
6054
      oprot.writeFieldBegin('type', TType.I64, 3)
6214
      oprot.writeFieldBegin('type', TType.I64, 3)
6055
      oprot.writeI64(self.type)
6215
      oprot.writeI64(self.type)
6056
      oprot.writeFieldEnd()
6216
      oprot.writeFieldEnd()
6057
    if self.comment != None:
6217
    if self.comment is not None:
6058
      oprot.writeFieldBegin('comment', TType.STRING, 4)
6218
      oprot.writeFieldBegin('comment', TType.STRING, 4)
6059
      oprot.writeString(self.comment)
6219
      oprot.writeString(self.comment)
6060
      oprot.writeFieldEnd()
6220
      oprot.writeFieldEnd()
6061
    oprot.writeFieldStop()
6221
    oprot.writeFieldStop()
6062
    oprot.writeStructEnd()
6222
    oprot.writeStructEnd()
6063
 
6223
 
-
 
6224
  def validate(self):
-
 
6225
    return
-
 
6226
 
-
 
6227
 
6064
  def __repr__(self):
6228
  def __repr__(self):
6065
    L = ['%s=%r' % (key, value)
6229
    L = ['%s=%r' % (key, value)
6066
      for key, value in self.__dict__.iteritems()]
6230
      for key, value in self.__dict__.iteritems()]
6067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6068
 
6232
 
Line 6097... Line 6261...
6097
      return
6261
      return
6098
    oprot.writeStructBegin('setAlert_result')
6262
    oprot.writeStructBegin('setAlert_result')
6099
    oprot.writeFieldStop()
6263
    oprot.writeFieldStop()
6100
    oprot.writeStructEnd()
6264
    oprot.writeStructEnd()
6101
 
6265
 
-
 
6266
  def validate(self):
-
 
6267
    return
-
 
6268
 
-
 
6269
 
6102
  def __repr__(self):
6270
  def __repr__(self):
6103
    L = ['%s=%r' % (key, value)
6271
    L = ['%s=%r' % (key, value)
6104
      for key, value in self.__dict__.iteritems()]
6272
      for key, value in self.__dict__.iteritems()]
6105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6106
 
6274
 
Line 6135... Line 6303...
6135
      return
6303
      return
6136
    oprot.writeStructBegin('getValidOrderCount_args')
6304
    oprot.writeStructBegin('getValidOrderCount_args')
6137
    oprot.writeFieldStop()
6305
    oprot.writeFieldStop()
6138
    oprot.writeStructEnd()
6306
    oprot.writeStructEnd()
6139
 
6307
 
-
 
6308
  def validate(self):
-
 
6309
    return
-
 
6310
 
-
 
6311
 
6140
  def __repr__(self):
6312
  def __repr__(self):
6141
    L = ['%s=%r' % (key, value)
6313
    L = ['%s=%r' % (key, value)
6142
      for key, value in self.__dict__.iteritems()]
6314
      for key, value in self.__dict__.iteritems()]
6143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6144
 
6316
 
Line 6183... Line 6355...
6183
  def write(self, oprot):
6355
  def write(self, oprot):
6184
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6185
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6186
      return
6358
      return
6187
    oprot.writeStructBegin('getValidOrderCount_result')
6359
    oprot.writeStructBegin('getValidOrderCount_result')
6188
    if self.success != None:
6360
    if self.success is not None:
6189
      oprot.writeFieldBegin('success', TType.I64, 0)
6361
      oprot.writeFieldBegin('success', TType.I64, 0)
6190
      oprot.writeI64(self.success)
6362
      oprot.writeI64(self.success)
6191
      oprot.writeFieldEnd()
6363
      oprot.writeFieldEnd()
6192
    oprot.writeFieldStop()
6364
    oprot.writeFieldStop()
6193
    oprot.writeStructEnd()
6365
    oprot.writeStructEnd()
6194
 
6366
 
-
 
6367
  def validate(self):
-
 
6368
    return
-
 
6369
 
-
 
6370
 
6195
  def __repr__(self):
6371
  def __repr__(self):
6196
    L = ['%s=%r' % (key, value)
6372
    L = ['%s=%r' % (key, value)
6197
      for key, value in self.__dict__.iteritems()]
6373
      for key, value in self.__dict__.iteritems()]
6198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6199
 
6375
 
Line 6228... Line 6404...
6228
      return
6404
      return
6229
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_args')
6405
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_args')
6230
    oprot.writeFieldStop()
6406
    oprot.writeFieldStop()
6231
    oprot.writeStructEnd()
6407
    oprot.writeStructEnd()
6232
 
6408
 
-
 
6409
  def validate(self):
-
 
6410
    return
-
 
6411
 
-
 
6412
 
6233
  def __repr__(self):
6413
  def __repr__(self):
6234
    L = ['%s=%r' % (key, value)
6414
    L = ['%s=%r' % (key, value)
6235
      for key, value in self.__dict__.iteritems()]
6415
      for key, value in self.__dict__.iteritems()]
6236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6237
 
6417
 
Line 6276... Line 6456...
6276
  def write(self, oprot):
6456
  def write(self, oprot):
6277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6279
      return
6459
      return
6280
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_result')
6460
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_result')
6281
    if self.success != None:
6461
    if self.success is not None:
6282
      oprot.writeFieldBegin('success', TType.I64, 0)
6462
      oprot.writeFieldBegin('success', TType.I64, 0)
6283
      oprot.writeI64(self.success)
6463
      oprot.writeI64(self.success)
6284
      oprot.writeFieldEnd()
6464
      oprot.writeFieldEnd()
6285
    oprot.writeFieldStop()
6465
    oprot.writeFieldStop()
6286
    oprot.writeStructEnd()
6466
    oprot.writeStructEnd()
6287
 
6467
 
-
 
6468
  def validate(self):
-
 
6469
    return
-
 
6470
 
-
 
6471
 
6288
  def __repr__(self):
6472
  def __repr__(self):
6289
    L = ['%s=%r' % (key, value)
6473
    L = ['%s=%r' % (key, value)
6290
      for key, value in self.__dict__.iteritems()]
6474
      for key, value in self.__dict__.iteritems()]
6291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6292
 
6476
 
Line 6321... Line 6505...
6321
      return
6505
      return
6322
    oprot.writeStructBegin('getValidOrdersAmountRange_args')
6506
    oprot.writeStructBegin('getValidOrdersAmountRange_args')
6323
    oprot.writeFieldStop()
6507
    oprot.writeFieldStop()
6324
    oprot.writeStructEnd()
6508
    oprot.writeStructEnd()
6325
 
6509
 
-
 
6510
  def validate(self):
-
 
6511
    return
-
 
6512
 
-
 
6513
 
6326
  def __repr__(self):
6514
  def __repr__(self):
6327
    L = ['%s=%r' % (key, value)
6515
    L = ['%s=%r' % (key, value)
6328
      for key, value in self.__dict__.iteritems()]
6516
      for key, value in self.__dict__.iteritems()]
6329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6517
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6330
 
6518
 
Line 6374... Line 6562...
6374
  def write(self, oprot):
6562
  def write(self, oprot):
6375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6377
      return
6565
      return
6378
    oprot.writeStructBegin('getValidOrdersAmountRange_result')
6566
    oprot.writeStructBegin('getValidOrdersAmountRange_result')
6379
    if self.success != None:
6567
    if self.success is not None:
6380
      oprot.writeFieldBegin('success', TType.LIST, 0)
6568
      oprot.writeFieldBegin('success', TType.LIST, 0)
6381
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
6569
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
6382
      for iter104 in self.success:
6570
      for iter104 in self.success:
6383
        oprot.writeDouble(iter104)
6571
        oprot.writeDouble(iter104)
6384
      oprot.writeListEnd()
6572
      oprot.writeListEnd()
6385
      oprot.writeFieldEnd()
6573
      oprot.writeFieldEnd()
6386
    oprot.writeFieldStop()
6574
    oprot.writeFieldStop()
6387
    oprot.writeStructEnd()
6575
    oprot.writeStructEnd()
6388
 
6576
 
-
 
6577
  def validate(self):
-
 
6578
    return
-
 
6579
 
-
 
6580
 
6389
  def __repr__(self):
6581
  def __repr__(self):
6390
    L = ['%s=%r' % (key, value)
6582
    L = ['%s=%r' % (key, value)
6391
      for key, value in self.__dict__.iteritems()]
6583
      for key, value in self.__dict__.iteritems()]
6392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6393
 
6585
 
Line 6433... Line 6625...
6433
  def write(self, oprot):
6625
  def write(self, oprot):
6434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6436
      return
6628
      return
6437
    oprot.writeStructBegin('getValidOrders_args')
6629
    oprot.writeStructBegin('getValidOrders_args')
6438
    if self.limit != None:
6630
    if self.limit is not None:
6439
      oprot.writeFieldBegin('limit', TType.I64, 1)
6631
      oprot.writeFieldBegin('limit', TType.I64, 1)
6440
      oprot.writeI64(self.limit)
6632
      oprot.writeI64(self.limit)
6441
      oprot.writeFieldEnd()
6633
      oprot.writeFieldEnd()
6442
    oprot.writeFieldStop()
6634
    oprot.writeFieldStop()
6443
    oprot.writeStructEnd()
6635
    oprot.writeStructEnd()
6444
 
6636
 
-
 
6637
  def validate(self):
-
 
6638
    return
-
 
6639
 
-
 
6640
 
6445
  def __repr__(self):
6641
  def __repr__(self):
6446
    L = ['%s=%r' % (key, value)
6642
    L = ['%s=%r' % (key, value)
6447
      for key, value in self.__dict__.iteritems()]
6643
      for key, value in self.__dict__.iteritems()]
6448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6449
 
6645
 
Line 6494... Line 6690...
6494
  def write(self, oprot):
6690
  def write(self, oprot):
6495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6497
      return
6693
      return
6498
    oprot.writeStructBegin('getValidOrders_result')
6694
    oprot.writeStructBegin('getValidOrders_result')
6499
    if self.success != None:
6695
    if self.success is not None:
6500
      oprot.writeFieldBegin('success', TType.LIST, 0)
6696
      oprot.writeFieldBegin('success', TType.LIST, 0)
6501
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6697
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6502
      for iter111 in self.success:
6698
      for iter111 in self.success:
6503
        iter111.write(oprot)
6699
        iter111.write(oprot)
6504
      oprot.writeListEnd()
6700
      oprot.writeListEnd()
6505
      oprot.writeFieldEnd()
6701
      oprot.writeFieldEnd()
6506
    oprot.writeFieldStop()
6702
    oprot.writeFieldStop()
6507
    oprot.writeStructEnd()
6703
    oprot.writeStructEnd()
6508
 
6704
 
-
 
6705
  def validate(self):
-
 
6706
    return
-
 
6707
 
-
 
6708
 
6509
  def __repr__(self):
6709
  def __repr__(self):
6510
    L = ['%s=%r' % (key, value)
6710
    L = ['%s=%r' % (key, value)
6511
      for key, value in self.__dict__.iteritems()]
6711
      for key, value in self.__dict__.iteritems()]
6512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6513
 
6713
 
Line 6553... Line 6753...
6553
  def write(self, oprot):
6753
  def write(self, oprot):
6554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6556
      return
6756
      return
6557
    oprot.writeStructBegin('batchOrders_args')
6757
    oprot.writeStructBegin('batchOrders_args')
6558
    if self.warehouseId != None:
6758
    if self.warehouseId is not None:
6559
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
6759
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
6560
      oprot.writeI64(self.warehouseId)
6760
      oprot.writeI64(self.warehouseId)
6561
      oprot.writeFieldEnd()
6761
      oprot.writeFieldEnd()
6562
    oprot.writeFieldStop()
6762
    oprot.writeFieldStop()
6563
    oprot.writeStructEnd()
6763
    oprot.writeStructEnd()
6564
 
6764
 
-
 
6765
  def validate(self):
-
 
6766
    return
-
 
6767
 
-
 
6768
 
6565
  def __repr__(self):
6769
  def __repr__(self):
6566
    L = ['%s=%r' % (key, value)
6770
    L = ['%s=%r' % (key, value)
6567
      for key, value in self.__dict__.iteritems()]
6771
      for key, value in self.__dict__.iteritems()]
6568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6569
 
6773
 
Line 6623... Line 6827...
6623
  def write(self, oprot):
6827
  def write(self, oprot):
6624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6626
      return
6830
      return
6627
    oprot.writeStructBegin('batchOrders_result')
6831
    oprot.writeStructBegin('batchOrders_result')
6628
    if self.success != None:
6832
    if self.success is not None:
6629
      oprot.writeFieldBegin('success', TType.LIST, 0)
6833
      oprot.writeFieldBegin('success', TType.LIST, 0)
6630
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6834
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6631
      for iter118 in self.success:
6835
      for iter118 in self.success:
6632
        iter118.write(oprot)
6836
        iter118.write(oprot)
6633
      oprot.writeListEnd()
6837
      oprot.writeListEnd()
6634
      oprot.writeFieldEnd()
6838
      oprot.writeFieldEnd()
6635
    if self.ex != None:
6839
    if self.ex is not None:
6636
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6840
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6637
      self.ex.write(oprot)
6841
      self.ex.write(oprot)
6638
      oprot.writeFieldEnd()
6842
      oprot.writeFieldEnd()
6639
    oprot.writeFieldStop()
6843
    oprot.writeFieldStop()
6640
    oprot.writeStructEnd()
6844
    oprot.writeStructEnd()
6641
 
6845
 
-
 
6846
  def validate(self):
-
 
6847
    return
-
 
6848
 
-
 
6849
 
6642
  def __repr__(self):
6850
  def __repr__(self):
6643
    L = ['%s=%r' % (key, value)
6851
    L = ['%s=%r' % (key, value)
6644
      for key, value in self.__dict__.iteritems()]
6852
      for key, value in self.__dict__.iteritems()]
6645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6646
 
6854
 
Line 6686... Line 6894...
6686
  def write(self, oprot):
6894
  def write(self, oprot):
6687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6689
      return
6897
      return
6690
    oprot.writeStructBegin('markOrderAsOutOfStock_args')
6898
    oprot.writeStructBegin('markOrderAsOutOfStock_args')
6691
    if self.orderId != None:
6899
    if self.orderId is not None:
6692
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6900
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6693
      oprot.writeI64(self.orderId)
6901
      oprot.writeI64(self.orderId)
6694
      oprot.writeFieldEnd()
6902
      oprot.writeFieldEnd()
6695
    oprot.writeFieldStop()
6903
    oprot.writeFieldStop()
6696
    oprot.writeStructEnd()
6904
    oprot.writeStructEnd()
6697
 
6905
 
-
 
6906
  def validate(self):
-
 
6907
    return
-
 
6908
 
-
 
6909
 
6698
  def __repr__(self):
6910
  def __repr__(self):
6699
    L = ['%s=%r' % (key, value)
6911
    L = ['%s=%r' % (key, value)
6700
      for key, value in self.__dict__.iteritems()]
6912
      for key, value in self.__dict__.iteritems()]
6701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6702
 
6914
 
Line 6750... Line 6962...
6750
  def write(self, oprot):
6962
  def write(self, oprot):
6751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6753
      return
6965
      return
6754
    oprot.writeStructBegin('markOrderAsOutOfStock_result')
6966
    oprot.writeStructBegin('markOrderAsOutOfStock_result')
6755
    if self.success != None:
6967
    if self.success is not None:
6756
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6968
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6757
      oprot.writeBool(self.success)
6969
      oprot.writeBool(self.success)
6758
      oprot.writeFieldEnd()
6970
      oprot.writeFieldEnd()
6759
    if self.ex != None:
6971
    if self.ex is not None:
6760
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6972
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6761
      self.ex.write(oprot)
6973
      self.ex.write(oprot)
6762
      oprot.writeFieldEnd()
6974
      oprot.writeFieldEnd()
6763
    oprot.writeFieldStop()
6975
    oprot.writeFieldStop()
6764
    oprot.writeStructEnd()
6976
    oprot.writeStructEnd()
6765
 
6977
 
-
 
6978
  def validate(self):
-
 
6979
    return
-
 
6980
 
-
 
6981
 
6766
  def __repr__(self):
6982
  def __repr__(self):
6767
    L = ['%s=%r' % (key, value)
6983
    L = ['%s=%r' % (key, value)
6768
      for key, value in self.__dict__.iteritems()]
6984
      for key, value in self.__dict__.iteritems()]
6769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6770
 
6986
 
Line 6810... Line 7026...
6810
  def write(self, oprot):
7026
  def write(self, oprot):
6811
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6812
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6813
      return
7029
      return
6814
    oprot.writeStructBegin('verifyOrder_args')
7030
    oprot.writeStructBegin('verifyOrder_args')
6815
    if self.orderId != None:
7031
    if self.orderId is not None:
6816
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7032
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6817
      oprot.writeI64(self.orderId)
7033
      oprot.writeI64(self.orderId)
6818
      oprot.writeFieldEnd()
7034
      oprot.writeFieldEnd()
6819
    oprot.writeFieldStop()
7035
    oprot.writeFieldStop()
6820
    oprot.writeStructEnd()
7036
    oprot.writeStructEnd()
6821
 
7037
 
-
 
7038
  def validate(self):
-
 
7039
    return
-
 
7040
 
-
 
7041
 
6822
  def __repr__(self):
7042
  def __repr__(self):
6823
    L = ['%s=%r' % (key, value)
7043
    L = ['%s=%r' % (key, value)
6824
      for key, value in self.__dict__.iteritems()]
7044
      for key, value in self.__dict__.iteritems()]
6825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6826
 
7046
 
Line 6874... Line 7094...
6874
  def write(self, oprot):
7094
  def write(self, oprot):
6875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6877
      return
7097
      return
6878
    oprot.writeStructBegin('verifyOrder_result')
7098
    oprot.writeStructBegin('verifyOrder_result')
6879
    if self.success != None:
7099
    if self.success is not None:
6880
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7100
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6881
      oprot.writeBool(self.success)
7101
      oprot.writeBool(self.success)
6882
      oprot.writeFieldEnd()
7102
      oprot.writeFieldEnd()
6883
    if self.ex != None:
7103
    if self.ex is not None:
6884
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7104
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6885
      self.ex.write(oprot)
7105
      self.ex.write(oprot)
6886
      oprot.writeFieldEnd()
7106
      oprot.writeFieldEnd()
6887
    oprot.writeFieldStop()
7107
    oprot.writeFieldStop()
6888
    oprot.writeStructEnd()
7108
    oprot.writeStructEnd()
6889
 
7109
 
-
 
7110
  def validate(self):
-
 
7111
    return
-
 
7112
 
-
 
7113
 
6890
  def __repr__(self):
7114
  def __repr__(self):
6891
    L = ['%s=%r' % (key, value)
7115
    L = ['%s=%r' % (key, value)
6892
      for key, value in self.__dict__.iteritems()]
7116
      for key, value in self.__dict__.iteritems()]
6893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6894
 
7118
 
Line 6934... Line 7158...
6934
  def write(self, oprot):
7158
  def write(self, oprot):
6935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6937
      return
7161
      return
6938
    oprot.writeStructBegin('acceptOrder_args')
7162
    oprot.writeStructBegin('acceptOrder_args')
6939
    if self.orderId != None:
7163
    if self.orderId is not None:
6940
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7164
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6941
      oprot.writeI64(self.orderId)
7165
      oprot.writeI64(self.orderId)
6942
      oprot.writeFieldEnd()
7166
      oprot.writeFieldEnd()
6943
    oprot.writeFieldStop()
7167
    oprot.writeFieldStop()
6944
    oprot.writeStructEnd()
7168
    oprot.writeStructEnd()
6945
 
7169
 
-
 
7170
  def validate(self):
-
 
7171
    return
-
 
7172
 
-
 
7173
 
6946
  def __repr__(self):
7174
  def __repr__(self):
6947
    L = ['%s=%r' % (key, value)
7175
    L = ['%s=%r' % (key, value)
6948
      for key, value in self.__dict__.iteritems()]
7176
      for key, value in self.__dict__.iteritems()]
6949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6950
 
7178
 
Line 6998... Line 7226...
6998
  def write(self, oprot):
7226
  def write(self, oprot):
6999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7001
      return
7229
      return
7002
    oprot.writeStructBegin('acceptOrder_result')
7230
    oprot.writeStructBegin('acceptOrder_result')
7003
    if self.success != None:
7231
    if self.success is not None:
7004
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7232
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7005
      oprot.writeBool(self.success)
7233
      oprot.writeBool(self.success)
7006
      oprot.writeFieldEnd()
7234
      oprot.writeFieldEnd()
7007
    if self.ex != None:
7235
    if self.ex is not None:
7008
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7236
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7009
      self.ex.write(oprot)
7237
      self.ex.write(oprot)
7010
      oprot.writeFieldEnd()
7238
      oprot.writeFieldEnd()
7011
    oprot.writeFieldStop()
7239
    oprot.writeFieldStop()
7012
    oprot.writeStructEnd()
7240
    oprot.writeStructEnd()
7013
 
7241
 
-
 
7242
  def validate(self):
-
 
7243
    return
-
 
7244
 
-
 
7245
 
7014
  def __repr__(self):
7246
  def __repr__(self):
7015
    L = ['%s=%r' % (key, value)
7247
    L = ['%s=%r' % (key, value)
7016
      for key, value in self.__dict__.iteritems()]
7248
      for key, value in self.__dict__.iteritems()]
7017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7018
 
7250
 
Line 7058... Line 7290...
7058
  def write(self, oprot):
7290
  def write(self, oprot):
7059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7061
      return
7293
      return
7062
    oprot.writeStructBegin('billOrder_args')
7294
    oprot.writeStructBegin('billOrder_args')
7063
    if self.orderId != None:
7295
    if self.orderId is not None:
7064
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7296
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7065
      oprot.writeI64(self.orderId)
7297
      oprot.writeI64(self.orderId)
7066
      oprot.writeFieldEnd()
7298
      oprot.writeFieldEnd()
7067
    oprot.writeFieldStop()
7299
    oprot.writeFieldStop()
7068
    oprot.writeStructEnd()
7300
    oprot.writeStructEnd()
7069
 
7301
 
-
 
7302
  def validate(self):
-
 
7303
    return
-
 
7304
 
-
 
7305
 
7070
  def __repr__(self):
7306
  def __repr__(self):
7071
    L = ['%s=%r' % (key, value)
7307
    L = ['%s=%r' % (key, value)
7072
      for key, value in self.__dict__.iteritems()]
7308
      for key, value in self.__dict__.iteritems()]
7073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7074
 
7310
 
Line 7122... Line 7358...
7122
  def write(self, oprot):
7358
  def write(self, oprot):
7123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7125
      return
7361
      return
7126
    oprot.writeStructBegin('billOrder_result')
7362
    oprot.writeStructBegin('billOrder_result')
7127
    if self.success != None:
7363
    if self.success is not None:
7128
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7364
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7129
      oprot.writeBool(self.success)
7365
      oprot.writeBool(self.success)
7130
      oprot.writeFieldEnd()
7366
      oprot.writeFieldEnd()
7131
    if self.ex != None:
7367
    if self.ex is not None:
7132
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7368
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7133
      self.ex.write(oprot)
7369
      self.ex.write(oprot)
7134
      oprot.writeFieldEnd()
7370
      oprot.writeFieldEnd()
7135
    oprot.writeFieldStop()
7371
    oprot.writeFieldStop()
7136
    oprot.writeStructEnd()
7372
    oprot.writeStructEnd()
7137
 
7373
 
-
 
7374
  def validate(self):
-
 
7375
    return
-
 
7376
 
-
 
7377
 
7138
  def __repr__(self):
7378
  def __repr__(self):
7139
    L = ['%s=%r' % (key, value)
7379
    L = ['%s=%r' % (key, value)
7140
      for key, value in self.__dict__.iteritems()]
7380
      for key, value in self.__dict__.iteritems()]
7141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7142
 
7382
 
Line 7198... Line 7438...
7198
  def write(self, oprot):
7438
  def write(self, oprot):
7199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7439
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7440
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7201
      return
7441
      return
7202
    oprot.writeStructBegin('addBillingDetails_args')
7442
    oprot.writeStructBegin('addBillingDetails_args')
7203
    if self.orderId != None:
7443
    if self.orderId is not None:
7204
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7444
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7205
      oprot.writeI64(self.orderId)
7445
      oprot.writeI64(self.orderId)
7206
      oprot.writeFieldEnd()
7446
      oprot.writeFieldEnd()
7207
    if self.invoice_number != None:
7447
    if self.invoice_number is not None:
7208
      oprot.writeFieldBegin('invoice_number', TType.STRING, 2)
7448
      oprot.writeFieldBegin('invoice_number', TType.STRING, 2)
7209
      oprot.writeString(self.invoice_number)
7449
      oprot.writeString(self.invoice_number)
7210
      oprot.writeFieldEnd()
7450
      oprot.writeFieldEnd()
7211
    if self.billed_by != None:
7451
    if self.billed_by is not None:
7212
      oprot.writeFieldBegin('billed_by', TType.STRING, 3)
7452
      oprot.writeFieldBegin('billed_by', TType.STRING, 3)
7213
      oprot.writeString(self.billed_by)
7453
      oprot.writeString(self.billed_by)
7214
      oprot.writeFieldEnd()
7454
      oprot.writeFieldEnd()
7215
    oprot.writeFieldStop()
7455
    oprot.writeFieldStop()
7216
    oprot.writeStructEnd()
7456
    oprot.writeStructEnd()
7217
 
7457
 
-
 
7458
  def validate(self):
-
 
7459
    return
-
 
7460
 
-
 
7461
 
7218
  def __repr__(self):
7462
  def __repr__(self):
7219
    L = ['%s=%r' % (key, value)
7463
    L = ['%s=%r' % (key, value)
7220
      for key, value in self.__dict__.iteritems()]
7464
      for key, value in self.__dict__.iteritems()]
7221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7222
 
7466
 
Line 7270... Line 7514...
7270
  def write(self, oprot):
7514
  def write(self, oprot):
7271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7273
      return
7517
      return
7274
    oprot.writeStructBegin('addBillingDetails_result')
7518
    oprot.writeStructBegin('addBillingDetails_result')
7275
    if self.success != None:
7519
    if self.success is not None:
7276
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7520
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7277
      oprot.writeBool(self.success)
7521
      oprot.writeBool(self.success)
7278
      oprot.writeFieldEnd()
7522
      oprot.writeFieldEnd()
7279
    if self.ex != None:
7523
    if self.ex is not None:
7280
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7524
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7281
      self.ex.write(oprot)
7525
      self.ex.write(oprot)
7282
      oprot.writeFieldEnd()
7526
      oprot.writeFieldEnd()
7283
    oprot.writeFieldStop()
7527
    oprot.writeFieldStop()
7284
    oprot.writeStructEnd()
7528
    oprot.writeStructEnd()
7285
 
7529
 
-
 
7530
  def validate(self):
-
 
7531
    return
-
 
7532
 
-
 
7533
 
7286
  def __repr__(self):
7534
  def __repr__(self):
7287
    L = ['%s=%r' % (key, value)
7535
    L = ['%s=%r' % (key, value)
7288
      for key, value in self.__dict__.iteritems()]
7536
      for key, value in self.__dict__.iteritems()]
7289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7290
 
7538
 
Line 7370... Line 7618...
7370
  def write(self, oprot):
7618
  def write(self, oprot):
7371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7373
      return
7621
      return
7374
    oprot.writeStructBegin('addJacketNumber_args')
7622
    oprot.writeStructBegin('addJacketNumber_args')
7375
    if self.orderId != None:
7623
    if self.orderId is not None:
7376
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7624
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7377
      oprot.writeI64(self.orderId)
7625
      oprot.writeI64(self.orderId)
7378
      oprot.writeFieldEnd()
7626
      oprot.writeFieldEnd()
7379
    if self.jacketNumber != None:
7627
    if self.jacketNumber is not None:
7380
      oprot.writeFieldBegin('jacketNumber', TType.I64, 2)
7628
      oprot.writeFieldBegin('jacketNumber', TType.I64, 2)
7381
      oprot.writeI64(self.jacketNumber)
7629
      oprot.writeI64(self.jacketNumber)
7382
      oprot.writeFieldEnd()
7630
      oprot.writeFieldEnd()
7383
    if self.imeiNumber != None:
7631
    if self.imeiNumber is not None:
7384
      oprot.writeFieldBegin('imeiNumber', TType.I64, 3)
7632
      oprot.writeFieldBegin('imeiNumber', TType.I64, 3)
7385
      oprot.writeI64(self.imeiNumber)
7633
      oprot.writeI64(self.imeiNumber)
7386
      oprot.writeFieldEnd()
7634
      oprot.writeFieldEnd()
7387
    if self.itemNumber != None:
7635
    if self.itemNumber is not None:
7388
      oprot.writeFieldBegin('itemNumber', TType.STRING, 4)
7636
      oprot.writeFieldBegin('itemNumber', TType.STRING, 4)
7389
      oprot.writeString(self.itemNumber)
7637
      oprot.writeString(self.itemNumber)
7390
      oprot.writeFieldEnd()
7638
      oprot.writeFieldEnd()
7391
    if self.billedBy != None:
7639
    if self.billedBy is not None:
7392
      oprot.writeFieldBegin('billedBy', TType.STRING, 5)
7640
      oprot.writeFieldBegin('billedBy', TType.STRING, 5)
7393
      oprot.writeString(self.billedBy)
7641
      oprot.writeString(self.billedBy)
7394
      oprot.writeFieldEnd()
7642
      oprot.writeFieldEnd()
7395
    if self.billingType != None:
7643
    if self.billingType is not None:
7396
      oprot.writeFieldBegin('billingType', TType.I64, 6)
7644
      oprot.writeFieldBegin('billingType', TType.I64, 6)
7397
      oprot.writeI64(self.billingType)
7645
      oprot.writeI64(self.billingType)
7398
      oprot.writeFieldEnd()
7646
      oprot.writeFieldEnd()
7399
    oprot.writeFieldStop()
7647
    oprot.writeFieldStop()
7400
    oprot.writeStructEnd()
7648
    oprot.writeStructEnd()
7401
 
7649
 
-
 
7650
  def validate(self):
-
 
7651
    return
-
 
7652
 
-
 
7653
 
7402
  def __repr__(self):
7654
  def __repr__(self):
7403
    L = ['%s=%r' % (key, value)
7655
    L = ['%s=%r' % (key, value)
7404
      for key, value in self.__dict__.iteritems()]
7656
      for key, value in self.__dict__.iteritems()]
7405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7657
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7406
 
7658
 
Line 7454... Line 7706...
7454
  def write(self, oprot):
7706
  def write(self, oprot):
7455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7457
      return
7709
      return
7458
    oprot.writeStructBegin('addJacketNumber_result')
7710
    oprot.writeStructBegin('addJacketNumber_result')
7459
    if self.success != None:
7711
    if self.success is not None:
7460
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7712
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7461
      oprot.writeBool(self.success)
7713
      oprot.writeBool(self.success)
7462
      oprot.writeFieldEnd()
7714
      oprot.writeFieldEnd()
7463
    if self.ex != None:
7715
    if self.ex is not None:
7464
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7716
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7465
      self.ex.write(oprot)
7717
      self.ex.write(oprot)
7466
      oprot.writeFieldEnd()
7718
      oprot.writeFieldEnd()
7467
    oprot.writeFieldStop()
7719
    oprot.writeFieldStop()
7468
    oprot.writeStructEnd()
7720
    oprot.writeStructEnd()
7469
 
7721
 
-
 
7722
  def validate(self):
-
 
7723
    return
-
 
7724
 
-
 
7725
 
7470
  def __repr__(self):
7726
  def __repr__(self):
7471
    L = ['%s=%r' % (key, value)
7727
    L = ['%s=%r' % (key, value)
7472
      for key, value in self.__dict__.iteritems()]
7728
      for key, value in self.__dict__.iteritems()]
7473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7474
 
7730
 
Line 7530... Line 7786...
7530
  def write(self, oprot):
7786
  def write(self, oprot):
7531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7533
      return
7789
      return
7534
    oprot.writeStructBegin('markOrdersAsManifested_args')
7790
    oprot.writeStructBegin('markOrdersAsManifested_args')
7535
    if self.warehouseId != None:
7791
    if self.warehouseId is not None:
7536
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7792
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7537
      oprot.writeI64(self.warehouseId)
7793
      oprot.writeI64(self.warehouseId)
7538
      oprot.writeFieldEnd()
7794
      oprot.writeFieldEnd()
7539
    if self.providerId != None:
7795
    if self.providerId is not None:
7540
      oprot.writeFieldBegin('providerId', TType.I64, 2)
7796
      oprot.writeFieldBegin('providerId', TType.I64, 2)
7541
      oprot.writeI64(self.providerId)
7797
      oprot.writeI64(self.providerId)
7542
      oprot.writeFieldEnd()
7798
      oprot.writeFieldEnd()
7543
    if self.cod != None:
7799
    if self.cod is not None:
7544
      oprot.writeFieldBegin('cod', TType.BOOL, 3)
7800
      oprot.writeFieldBegin('cod', TType.BOOL, 3)
7545
      oprot.writeBool(self.cod)
7801
      oprot.writeBool(self.cod)
7546
      oprot.writeFieldEnd()
7802
      oprot.writeFieldEnd()
7547
    oprot.writeFieldStop()
7803
    oprot.writeFieldStop()
7548
    oprot.writeStructEnd()
7804
    oprot.writeStructEnd()
7549
 
7805
 
-
 
7806
  def validate(self):
-
 
7807
    return
-
 
7808
 
-
 
7809
 
7550
  def __repr__(self):
7810
  def __repr__(self):
7551
    L = ['%s=%r' % (key, value)
7811
    L = ['%s=%r' % (key, value)
7552
      for key, value in self.__dict__.iteritems()]
7812
      for key, value in self.__dict__.iteritems()]
7553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7554
 
7814
 
Line 7602... Line 7862...
7602
  def write(self, oprot):
7862
  def write(self, oprot):
7603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7605
      return
7865
      return
7606
    oprot.writeStructBegin('markOrdersAsManifested_result')
7866
    oprot.writeStructBegin('markOrdersAsManifested_result')
7607
    if self.success != None:
7867
    if self.success is not None:
7608
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7868
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7609
      oprot.writeBool(self.success)
7869
      oprot.writeBool(self.success)
7610
      oprot.writeFieldEnd()
7870
      oprot.writeFieldEnd()
7611
    if self.ex != None:
7871
    if self.ex is not None:
7612
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7872
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7613
      self.ex.write(oprot)
7873
      self.ex.write(oprot)
7614
      oprot.writeFieldEnd()
7874
      oprot.writeFieldEnd()
7615
    oprot.writeFieldStop()
7875
    oprot.writeFieldStop()
7616
    oprot.writeStructEnd()
7876
    oprot.writeStructEnd()
7617
 
7877
 
-
 
7878
  def validate(self):
-
 
7879
    return
-
 
7880
 
-
 
7881
 
7618
  def __repr__(self):
7882
  def __repr__(self):
7619
    L = ['%s=%r' % (key, value)
7883
    L = ['%s=%r' % (key, value)
7620
      for key, value in self.__dict__.iteritems()]
7884
      for key, value in self.__dict__.iteritems()]
7621
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7622
 
7886
 
Line 7676... Line 7940...
7676
  def write(self, oprot):
7940
  def write(self, oprot):
7677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7679
      return
7943
      return
7680
    oprot.writeStructBegin('markOrdersAsPickedUp_args')
7944
    oprot.writeStructBegin('markOrdersAsPickedUp_args')
7681
    if self.providerId != None:
7945
    if self.providerId is not None:
7682
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7946
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7683
      oprot.writeI64(self.providerId)
7947
      oprot.writeI64(self.providerId)
7684
      oprot.writeFieldEnd()
7948
      oprot.writeFieldEnd()
7685
    if self.pickupDetails != None:
7949
    if self.pickupDetails is not None:
7686
      oprot.writeFieldBegin('pickupDetails', TType.MAP, 2)
7950
      oprot.writeFieldBegin('pickupDetails', TType.MAP, 2)
7687
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.pickupDetails))
7951
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.pickupDetails))
7688
      for kiter126,viter127 in self.pickupDetails.items():
7952
      for kiter126,viter127 in self.pickupDetails.items():
7689
        oprot.writeString(kiter126)
7953
        oprot.writeString(kiter126)
7690
        oprot.writeString(viter127)
7954
        oprot.writeString(viter127)
7691
      oprot.writeMapEnd()
7955
      oprot.writeMapEnd()
7692
      oprot.writeFieldEnd()
7956
      oprot.writeFieldEnd()
7693
    oprot.writeFieldStop()
7957
    oprot.writeFieldStop()
7694
    oprot.writeStructEnd()
7958
    oprot.writeStructEnd()
7695
 
7959
 
-
 
7960
  def validate(self):
-
 
7961
    return
-
 
7962
 
-
 
7963
 
7696
  def __repr__(self):
7964
  def __repr__(self):
7697
    L = ['%s=%r' % (key, value)
7965
    L = ['%s=%r' % (key, value)
7698
      for key, value in self.__dict__.iteritems()]
7966
      for key, value in self.__dict__.iteritems()]
7699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7700
 
7968
 
Line 7754... Line 8022...
7754
  def write(self, oprot):
8022
  def write(self, oprot):
7755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7757
      return
8025
      return
7758
    oprot.writeStructBegin('markOrdersAsPickedUp_result')
8026
    oprot.writeStructBegin('markOrdersAsPickedUp_result')
7759
    if self.success != None:
8027
    if self.success is not None:
7760
      oprot.writeFieldBegin('success', TType.LIST, 0)
8028
      oprot.writeFieldBegin('success', TType.LIST, 0)
7761
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8029
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7762
      for iter134 in self.success:
8030
      for iter134 in self.success:
7763
        iter134.write(oprot)
8031
        iter134.write(oprot)
7764
      oprot.writeListEnd()
8032
      oprot.writeListEnd()
7765
      oprot.writeFieldEnd()
8033
      oprot.writeFieldEnd()
7766
    if self.ex != None:
8034
    if self.ex is not None:
7767
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8035
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7768
      self.ex.write(oprot)
8036
      self.ex.write(oprot)
7769
      oprot.writeFieldEnd()
8037
      oprot.writeFieldEnd()
7770
    oprot.writeFieldStop()
8038
    oprot.writeFieldStop()
7771
    oprot.writeStructEnd()
8039
    oprot.writeStructEnd()
7772
 
8040
 
-
 
8041
  def validate(self):
-
 
8042
    return
-
 
8043
 
-
 
8044
 
7773
  def __repr__(self):
8045
  def __repr__(self):
7774
    L = ['%s=%r' % (key, value)
8046
    L = ['%s=%r' % (key, value)
7775
      for key, value in self.__dict__.iteritems()]
8047
      for key, value in self.__dict__.iteritems()]
7776
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7777
 
8049
 
Line 7831... Line 8103...
7831
  def write(self, oprot):
8103
  def write(self, oprot):
7832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7834
      return
8106
      return
7835
    oprot.writeStructBegin('markOrdersAsDelivered_args')
8107
    oprot.writeStructBegin('markOrdersAsDelivered_args')
7836
    if self.providerId != None:
8108
    if self.providerId is not None:
7837
      oprot.writeFieldBegin('providerId', TType.I64, 1)
8109
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7838
      oprot.writeI64(self.providerId)
8110
      oprot.writeI64(self.providerId)
7839
      oprot.writeFieldEnd()
8111
      oprot.writeFieldEnd()
7840
    if self.deliveredOrders != None:
8112
    if self.deliveredOrders is not None:
7841
      oprot.writeFieldBegin('deliveredOrders', TType.MAP, 2)
8113
      oprot.writeFieldBegin('deliveredOrders', TType.MAP, 2)
7842
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.deliveredOrders))
8114
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.deliveredOrders))
7843
      for kiter142,viter143 in self.deliveredOrders.items():
8115
      for kiter142,viter143 in self.deliveredOrders.items():
7844
        oprot.writeString(kiter142)
8116
        oprot.writeString(kiter142)
7845
        oprot.writeString(viter143)
8117
        oprot.writeString(viter143)
7846
      oprot.writeMapEnd()
8118
      oprot.writeMapEnd()
7847
      oprot.writeFieldEnd()
8119
      oprot.writeFieldEnd()
7848
    oprot.writeFieldStop()
8120
    oprot.writeFieldStop()
7849
    oprot.writeStructEnd()
8121
    oprot.writeStructEnd()
7850
 
8122
 
-
 
8123
  def validate(self):
-
 
8124
    return
-
 
8125
 
-
 
8126
 
7851
  def __repr__(self):
8127
  def __repr__(self):
7852
    L = ['%s=%r' % (key, value)
8128
    L = ['%s=%r' % (key, value)
7853
      for key, value in self.__dict__.iteritems()]
8129
      for key, value in self.__dict__.iteritems()]
7854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7855
 
8131
 
Line 7896... Line 8172...
7896
  def write(self, oprot):
8172
  def write(self, oprot):
7897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7899
      return
8175
      return
7900
    oprot.writeStructBegin('markOrdersAsDelivered_result')
8176
    oprot.writeStructBegin('markOrdersAsDelivered_result')
7901
    if self.ex != None:
8177
    if self.ex is not None:
7902
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8178
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7903
      self.ex.write(oprot)
8179
      self.ex.write(oprot)
7904
      oprot.writeFieldEnd()
8180
      oprot.writeFieldEnd()
7905
    oprot.writeFieldStop()
8181
    oprot.writeFieldStop()
7906
    oprot.writeStructEnd()
8182
    oprot.writeStructEnd()
7907
 
8183
 
-
 
8184
  def validate(self):
-
 
8185
    return
-
 
8186
 
-
 
8187
 
7908
  def __repr__(self):
8188
  def __repr__(self):
7909
    L = ['%s=%r' % (key, value)
8189
    L = ['%s=%r' % (key, value)
7910
      for key, value in self.__dict__.iteritems()]
8190
      for key, value in self.__dict__.iteritems()]
7911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7912
 
8192
 
Line 7966... Line 8246...
7966
  def write(self, oprot):
8246
  def write(self, oprot):
7967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7969
      return
8249
      return
7970
    oprot.writeStructBegin('markOrdersAsFailed_args')
8250
    oprot.writeStructBegin('markOrdersAsFailed_args')
7971
    if self.providerId != None:
8251
    if self.providerId is not None:
7972
      oprot.writeFieldBegin('providerId', TType.I64, 1)
8252
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7973
      oprot.writeI64(self.providerId)
8253
      oprot.writeI64(self.providerId)
7974
      oprot.writeFieldEnd()
8254
      oprot.writeFieldEnd()
7975
    if self.returnedOrders != None:
8255
    if self.returnedOrders is not None:
7976
      oprot.writeFieldBegin('returnedOrders', TType.MAP, 2)
8256
      oprot.writeFieldBegin('returnedOrders', TType.MAP, 2)
7977
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.returnedOrders))
8257
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.returnedOrders))
7978
      for kiter151,viter152 in self.returnedOrders.items():
8258
      for kiter151,viter152 in self.returnedOrders.items():
7979
        oprot.writeString(kiter151)
8259
        oprot.writeString(kiter151)
7980
        oprot.writeString(viter152)
8260
        oprot.writeString(viter152)
7981
      oprot.writeMapEnd()
8261
      oprot.writeMapEnd()
7982
      oprot.writeFieldEnd()
8262
      oprot.writeFieldEnd()
7983
    oprot.writeFieldStop()
8263
    oprot.writeFieldStop()
7984
    oprot.writeStructEnd()
8264
    oprot.writeStructEnd()
7985
 
8265
 
-
 
8266
  def validate(self):
-
 
8267
    return
-
 
8268
 
-
 
8269
 
7986
  def __repr__(self):
8270
  def __repr__(self):
7987
    L = ['%s=%r' % (key, value)
8271
    L = ['%s=%r' % (key, value)
7988
      for key, value in self.__dict__.iteritems()]
8272
      for key, value in self.__dict__.iteritems()]
7989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7990
 
8274
 
Line 8031... Line 8315...
8031
  def write(self, oprot):
8315
  def write(self, oprot):
8032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8034
      return
8318
      return
8035
    oprot.writeStructBegin('markOrdersAsFailed_result')
8319
    oprot.writeStructBegin('markOrdersAsFailed_result')
8036
    if self.ex != None:
8320
    if self.ex is not None:
8037
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8321
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8038
      self.ex.write(oprot)
8322
      self.ex.write(oprot)
8039
      oprot.writeFieldEnd()
8323
      oprot.writeFieldEnd()
8040
    oprot.writeFieldStop()
8324
    oprot.writeFieldStop()
8041
    oprot.writeStructEnd()
8325
    oprot.writeStructEnd()
8042
 
8326
 
-
 
8327
  def validate(self):
-
 
8328
    return
-
 
8329
 
-
 
8330
 
8043
  def __repr__(self):
8331
  def __repr__(self):
8044
    L = ['%s=%r' % (key, value)
8332
    L = ['%s=%r' % (key, value)
8045
      for key, value in self.__dict__.iteritems()]
8333
      for key, value in self.__dict__.iteritems()]
8046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8047
 
8335
 
Line 8101... Line 8389...
8101
  def write(self, oprot):
8389
  def write(self, oprot):
8102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8104
      return
8392
      return
8105
    oprot.writeStructBegin('updateNonDeliveryReason_args')
8393
    oprot.writeStructBegin('updateNonDeliveryReason_args')
8106
    if self.providerId != None:
8394
    if self.providerId is not None:
8107
      oprot.writeFieldBegin('providerId', TType.I64, 1)
8395
      oprot.writeFieldBegin('providerId', TType.I64, 1)
8108
      oprot.writeI64(self.providerId)
8396
      oprot.writeI64(self.providerId)
8109
      oprot.writeFieldEnd()
8397
      oprot.writeFieldEnd()
8110
    if self.undeliveredOrders != None:
8398
    if self.undeliveredOrders is not None:
8111
      oprot.writeFieldBegin('undeliveredOrders', TType.MAP, 2)
8399
      oprot.writeFieldBegin('undeliveredOrders', TType.MAP, 2)
8112
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.undeliveredOrders))
8400
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.undeliveredOrders))
8113
      for kiter160,viter161 in self.undeliveredOrders.items():
8401
      for kiter160,viter161 in self.undeliveredOrders.items():
8114
        oprot.writeString(kiter160)
8402
        oprot.writeString(kiter160)
8115
        oprot.writeString(viter161)
8403
        oprot.writeString(viter161)
8116
      oprot.writeMapEnd()
8404
      oprot.writeMapEnd()
8117
      oprot.writeFieldEnd()
8405
      oprot.writeFieldEnd()
8118
    oprot.writeFieldStop()
8406
    oprot.writeFieldStop()
8119
    oprot.writeStructEnd()
8407
    oprot.writeStructEnd()
8120
 
8408
 
-
 
8409
  def validate(self):
-
 
8410
    return
-
 
8411
 
-
 
8412
 
8121
  def __repr__(self):
8413
  def __repr__(self):
8122
    L = ['%s=%r' % (key, value)
8414
    L = ['%s=%r' % (key, value)
8123
      for key, value in self.__dict__.iteritems()]
8415
      for key, value in self.__dict__.iteritems()]
8124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8125
 
8417
 
Line 8166... Line 8458...
8166
  def write(self, oprot):
8458
  def write(self, oprot):
8167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8459
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8460
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8169
      return
8461
      return
8170
    oprot.writeStructBegin('updateNonDeliveryReason_result')
8462
    oprot.writeStructBegin('updateNonDeliveryReason_result')
8171
    if self.ex != None:
8463
    if self.ex is not None:
8172
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8464
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8173
      self.ex.write(oprot)
8465
      self.ex.write(oprot)
8174
      oprot.writeFieldEnd()
8466
      oprot.writeFieldEnd()
8175
    oprot.writeFieldStop()
8467
    oprot.writeFieldStop()
8176
    oprot.writeStructEnd()
8468
    oprot.writeStructEnd()
8177
 
8469
 
-
 
8470
  def validate(self):
-
 
8471
    return
-
 
8472
 
-
 
8473
 
8178
  def __repr__(self):
8474
  def __repr__(self):
8179
    L = ['%s=%r' % (key, value)
8475
    L = ['%s=%r' % (key, value)
8180
      for key, value in self.__dict__.iteritems()]
8476
      for key, value in self.__dict__.iteritems()]
8181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8182
 
8478
 
Line 8230... Line 8526...
8230
  def write(self, oprot):
8526
  def write(self, oprot):
8231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8233
      return
8529
      return
8234
    oprot.writeStructBegin('getUndeliveredOrders_args')
8530
    oprot.writeStructBegin('getUndeliveredOrders_args')
8235
    if self.providerId != None:
8531
    if self.providerId is not None:
8236
      oprot.writeFieldBegin('providerId', TType.I64, 1)
8532
      oprot.writeFieldBegin('providerId', TType.I64, 1)
8237
      oprot.writeI64(self.providerId)
8533
      oprot.writeI64(self.providerId)
8238
      oprot.writeFieldEnd()
8534
      oprot.writeFieldEnd()
8239
    if self.warehouseId != None:
8535
    if self.warehouseId is not None:
8240
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8536
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8241
      oprot.writeI64(self.warehouseId)
8537
      oprot.writeI64(self.warehouseId)
8242
      oprot.writeFieldEnd()
8538
      oprot.writeFieldEnd()
8243
    oprot.writeFieldStop()
8539
    oprot.writeFieldStop()
8244
    oprot.writeStructEnd()
8540
    oprot.writeStructEnd()
8245
 
8541
 
-
 
8542
  def validate(self):
-
 
8543
    return
-
 
8544
 
-
 
8545
 
8246
  def __repr__(self):
8546
  def __repr__(self):
8247
    L = ['%s=%r' % (key, value)
8547
    L = ['%s=%r' % (key, value)
8248
      for key, value in self.__dict__.iteritems()]
8548
      for key, value in self.__dict__.iteritems()]
8249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8250
 
8550
 
Line 8295... Line 8595...
8295
  def write(self, oprot):
8595
  def write(self, oprot):
8296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8298
      return
8598
      return
8299
    oprot.writeStructBegin('getUndeliveredOrders_result')
8599
    oprot.writeStructBegin('getUndeliveredOrders_result')
8300
    if self.success != None:
8600
    if self.success is not None:
8301
      oprot.writeFieldBegin('success', TType.LIST, 0)
8601
      oprot.writeFieldBegin('success', TType.LIST, 0)
8302
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8602
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8303
      for iter168 in self.success:
8603
      for iter168 in self.success:
8304
        iter168.write(oprot)
8604
        iter168.write(oprot)
8305
      oprot.writeListEnd()
8605
      oprot.writeListEnd()
8306
      oprot.writeFieldEnd()
8606
      oprot.writeFieldEnd()
8307
    oprot.writeFieldStop()
8607
    oprot.writeFieldStop()
8308
    oprot.writeStructEnd()
8608
    oprot.writeStructEnd()
8309
 
8609
 
-
 
8610
  def validate(self):
-
 
8611
    return
-
 
8612
 
-
 
8613
 
8310
  def __repr__(self):
8614
  def __repr__(self):
8311
    L = ['%s=%r' % (key, value)
8615
    L = ['%s=%r' % (key, value)
8312
      for key, value in self.__dict__.iteritems()]
8616
      for key, value in self.__dict__.iteritems()]
8313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8314
 
8618
 
Line 8354... Line 8658...
8354
  def write(self, oprot):
8658
  def write(self, oprot):
8355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8357
      return
8661
      return
8358
    oprot.writeStructBegin('toggleDOAFlag_args')
8662
    oprot.writeStructBegin('toggleDOAFlag_args')
8359
    if self.orderId != None:
8663
    if self.orderId is not None:
8360
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8664
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8361
      oprot.writeI64(self.orderId)
8665
      oprot.writeI64(self.orderId)
8362
      oprot.writeFieldEnd()
8666
      oprot.writeFieldEnd()
8363
    oprot.writeFieldStop()
8667
    oprot.writeFieldStop()
8364
    oprot.writeStructEnd()
8668
    oprot.writeStructEnd()
8365
 
8669
 
-
 
8670
  def validate(self):
-
 
8671
    return
-
 
8672
 
-
 
8673
 
8366
  def __repr__(self):
8674
  def __repr__(self):
8367
    L = ['%s=%r' % (key, value)
8675
    L = ['%s=%r' % (key, value)
8368
      for key, value in self.__dict__.iteritems()]
8676
      for key, value in self.__dict__.iteritems()]
8369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8370
 
8678
 
Line 8418... Line 8726...
8418
  def write(self, oprot):
8726
  def write(self, oprot):
8419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8727
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8728
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8421
      return
8729
      return
8422
    oprot.writeStructBegin('toggleDOAFlag_result')
8730
    oprot.writeStructBegin('toggleDOAFlag_result')
8423
    if self.success != None:
8731
    if self.success is not None:
8424
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8732
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8425
      oprot.writeBool(self.success)
8733
      oprot.writeBool(self.success)
8426
      oprot.writeFieldEnd()
8734
      oprot.writeFieldEnd()
8427
    if self.ex != None:
8735
    if self.ex is not None:
8428
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8736
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8429
      self.ex.write(oprot)
8737
      self.ex.write(oprot)
8430
      oprot.writeFieldEnd()
8738
      oprot.writeFieldEnd()
8431
    oprot.writeFieldStop()
8739
    oprot.writeFieldStop()
8432
    oprot.writeStructEnd()
8740
    oprot.writeStructEnd()
8433
 
8741
 
-
 
8742
  def validate(self):
-
 
8743
    return
-
 
8744
 
-
 
8745
 
8434
  def __repr__(self):
8746
  def __repr__(self):
8435
    L = ['%s=%r' % (key, value)
8747
    L = ['%s=%r' % (key, value)
8436
      for key, value in self.__dict__.iteritems()]
8748
      for key, value in self.__dict__.iteritems()]
8437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8438
 
8750
 
Line 8478... Line 8790...
8478
  def write(self, oprot):
8790
  def write(self, oprot):
8479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8481
      return
8793
      return
8482
    oprot.writeStructBegin('requestPickupNumber_args')
8794
    oprot.writeStructBegin('requestPickupNumber_args')
8483
    if self.orderId != None:
8795
    if self.orderId is not None:
8484
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8796
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8485
      oprot.writeI64(self.orderId)
8797
      oprot.writeI64(self.orderId)
8486
      oprot.writeFieldEnd()
8798
      oprot.writeFieldEnd()
8487
    oprot.writeFieldStop()
8799
    oprot.writeFieldStop()
8488
    oprot.writeStructEnd()
8800
    oprot.writeStructEnd()
8489
 
8801
 
-
 
8802
  def validate(self):
-
 
8803
    return
-
 
8804
 
-
 
8805
 
8490
  def __repr__(self):
8806
  def __repr__(self):
8491
    L = ['%s=%r' % (key, value)
8807
    L = ['%s=%r' % (key, value)
8492
      for key, value in self.__dict__.iteritems()]
8808
      for key, value in self.__dict__.iteritems()]
8493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8494
 
8810
 
Line 8542... Line 8858...
8542
  def write(self, oprot):
8858
  def write(self, oprot):
8543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8545
      return
8861
      return
8546
    oprot.writeStructBegin('requestPickupNumber_result')
8862
    oprot.writeStructBegin('requestPickupNumber_result')
8547
    if self.success != None:
8863
    if self.success is not None:
8548
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8864
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8549
      oprot.writeBool(self.success)
8865
      oprot.writeBool(self.success)
8550
      oprot.writeFieldEnd()
8866
      oprot.writeFieldEnd()
8551
    if self.ex != None:
8867
    if self.ex is not None:
8552
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8868
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8553
      self.ex.write(oprot)
8869
      self.ex.write(oprot)
8554
      oprot.writeFieldEnd()
8870
      oprot.writeFieldEnd()
8555
    oprot.writeFieldStop()
8871
    oprot.writeFieldStop()
8556
    oprot.writeStructEnd()
8872
    oprot.writeStructEnd()
8557
 
8873
 
-
 
8874
  def validate(self):
-
 
8875
    return
-
 
8876
 
-
 
8877
 
8558
  def __repr__(self):
8878
  def __repr__(self):
8559
    L = ['%s=%r' % (key, value)
8879
    L = ['%s=%r' % (key, value)
8560
      for key, value in self.__dict__.iteritems()]
8880
      for key, value in self.__dict__.iteritems()]
8561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8881
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8562
 
8882
 
Line 8610... Line 8930...
8610
  def write(self, oprot):
8930
  def write(self, oprot):
8611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8613
      return
8933
      return
8614
    oprot.writeStructBegin('authorizePickup_args')
8934
    oprot.writeStructBegin('authorizePickup_args')
8615
    if self.orderId != None:
8935
    if self.orderId is not None:
8616
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8936
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8617
      oprot.writeI64(self.orderId)
8937
      oprot.writeI64(self.orderId)
8618
      oprot.writeFieldEnd()
8938
      oprot.writeFieldEnd()
8619
    if self.pickupNumber != None:
8939
    if self.pickupNumber is not None:
8620
      oprot.writeFieldBegin('pickupNumber', TType.STRING, 2)
8940
      oprot.writeFieldBegin('pickupNumber', TType.STRING, 2)
8621
      oprot.writeString(self.pickupNumber)
8941
      oprot.writeString(self.pickupNumber)
8622
      oprot.writeFieldEnd()
8942
      oprot.writeFieldEnd()
8623
    oprot.writeFieldStop()
8943
    oprot.writeFieldStop()
8624
    oprot.writeStructEnd()
8944
    oprot.writeStructEnd()
8625
 
8945
 
-
 
8946
  def validate(self):
-
 
8947
    return
-
 
8948
 
-
 
8949
 
8626
  def __repr__(self):
8950
  def __repr__(self):
8627
    L = ['%s=%r' % (key, value)
8951
    L = ['%s=%r' % (key, value)
8628
      for key, value in self.__dict__.iteritems()]
8952
      for key, value in self.__dict__.iteritems()]
8629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8630
 
8954
 
Line 8678... Line 9002...
8678
  def write(self, oprot):
9002
  def write(self, oprot):
8679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8681
      return
9005
      return
8682
    oprot.writeStructBegin('authorizePickup_result')
9006
    oprot.writeStructBegin('authorizePickup_result')
8683
    if self.success != None:
9007
    if self.success is not None:
8684
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9008
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8685
      oprot.writeBool(self.success)
9009
      oprot.writeBool(self.success)
8686
      oprot.writeFieldEnd()
9010
      oprot.writeFieldEnd()
8687
    if self.ex != None:
9011
    if self.ex is not None:
8688
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9012
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8689
      self.ex.write(oprot)
9013
      self.ex.write(oprot)
8690
      oprot.writeFieldEnd()
9014
      oprot.writeFieldEnd()
8691
    oprot.writeFieldStop()
9015
    oprot.writeFieldStop()
8692
    oprot.writeStructEnd()
9016
    oprot.writeStructEnd()
8693
 
9017
 
-
 
9018
  def validate(self):
-
 
9019
    return
-
 
9020
 
-
 
9021
 
8694
  def __repr__(self):
9022
  def __repr__(self):
8695
    L = ['%s=%r' % (key, value)
9023
    L = ['%s=%r' % (key, value)
8696
      for key, value in self.__dict__.iteritems()]
9024
      for key, value in self.__dict__.iteritems()]
8697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8698
 
9026
 
Line 8752... Line 9080...
8752
  def write(self, oprot):
9080
  def write(self, oprot):
8753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8755
      return
9083
      return
8756
    oprot.writeStructBegin('markDoasAsPickedUp_args')
9084
    oprot.writeStructBegin('markDoasAsPickedUp_args')
8757
    if self.providerId != None:
9085
    if self.providerId is not None:
8758
      oprot.writeFieldBegin('providerId', TType.I64, 1)
9086
      oprot.writeFieldBegin('providerId', TType.I64, 1)
8759
      oprot.writeI64(self.providerId)
9087
      oprot.writeI64(self.providerId)
8760
      oprot.writeFieldEnd()
9088
      oprot.writeFieldEnd()
8761
    if self.pickupDetails != None:
9089
    if self.pickupDetails is not None:
8762
      oprot.writeFieldBegin('pickupDetails', TType.MAP, 2)
9090
      oprot.writeFieldBegin('pickupDetails', TType.MAP, 2)
8763
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.pickupDetails))
9091
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.pickupDetails))
8764
      for kiter176,viter177 in self.pickupDetails.items():
9092
      for kiter176,viter177 in self.pickupDetails.items():
8765
        oprot.writeString(kiter176)
9093
        oprot.writeString(kiter176)
8766
        oprot.writeString(viter177)
9094
        oprot.writeString(viter177)
8767
      oprot.writeMapEnd()
9095
      oprot.writeMapEnd()
8768
      oprot.writeFieldEnd()
9096
      oprot.writeFieldEnd()
8769
    oprot.writeFieldStop()
9097
    oprot.writeFieldStop()
8770
    oprot.writeStructEnd()
9098
    oprot.writeStructEnd()
8771
 
9099
 
-
 
9100
  def validate(self):
-
 
9101
    return
-
 
9102
 
-
 
9103
 
8772
  def __repr__(self):
9104
  def __repr__(self):
8773
    L = ['%s=%r' % (key, value)
9105
    L = ['%s=%r' % (key, value)
8774
      for key, value in self.__dict__.iteritems()]
9106
      for key, value in self.__dict__.iteritems()]
8775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8776
 
9108
 
Line 8821... Line 9153...
8821
  def write(self, oprot):
9153
  def write(self, oprot):
8822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8824
      return
9156
      return
8825
    oprot.writeStructBegin('markDoasAsPickedUp_result')
9157
    oprot.writeStructBegin('markDoasAsPickedUp_result')
8826
    if self.success != None:
9158
    if self.success is not None:
8827
      oprot.writeFieldBegin('success', TType.LIST, 0)
9159
      oprot.writeFieldBegin('success', TType.LIST, 0)
8828
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9160
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8829
      for iter184 in self.success:
9161
      for iter184 in self.success:
8830
        iter184.write(oprot)
9162
        iter184.write(oprot)
8831
      oprot.writeListEnd()
9163
      oprot.writeListEnd()
8832
      oprot.writeFieldEnd()
9164
      oprot.writeFieldEnd()
8833
    oprot.writeFieldStop()
9165
    oprot.writeFieldStop()
8834
    oprot.writeStructEnd()
9166
    oprot.writeStructEnd()
8835
 
9167
 
-
 
9168
  def validate(self):
-
 
9169
    return
-
 
9170
 
-
 
9171
 
8836
  def __repr__(self):
9172
  def __repr__(self):
8837
    L = ['%s=%r' % (key, value)
9173
    L = ['%s=%r' % (key, value)
8838
      for key, value in self.__dict__.iteritems()]
9174
      for key, value in self.__dict__.iteritems()]
8839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8840
 
9176
 
Line 8880... Line 9216...
8880
  def write(self, oprot):
9216
  def write(self, oprot):
8881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8883
      return
9219
      return
8884
    oprot.writeStructBegin('receiveReturn_args')
9220
    oprot.writeStructBegin('receiveReturn_args')
8885
    if self.orderId != None:
9221
    if self.orderId is not None:
8886
      oprot.writeFieldBegin('orderId', TType.I64, 1)
9222
      oprot.writeFieldBegin('orderId', TType.I64, 1)
8887
      oprot.writeI64(self.orderId)
9223
      oprot.writeI64(self.orderId)
8888
      oprot.writeFieldEnd()
9224
      oprot.writeFieldEnd()
8889
    oprot.writeFieldStop()
9225
    oprot.writeFieldStop()
8890
    oprot.writeStructEnd()
9226
    oprot.writeStructEnd()
8891
 
9227
 
-
 
9228
  def validate(self):
-
 
9229
    return
-
 
9230
 
-
 
9231
 
8892
  def __repr__(self):
9232
  def __repr__(self):
8893
    L = ['%s=%r' % (key, value)
9233
    L = ['%s=%r' % (key, value)
8894
      for key, value in self.__dict__.iteritems()]
9234
      for key, value in self.__dict__.iteritems()]
8895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8896
 
9236
 
Line 8944... Line 9284...
8944
  def write(self, oprot):
9284
  def write(self, oprot):
8945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8947
      return
9287
      return
8948
    oprot.writeStructBegin('receiveReturn_result')
9288
    oprot.writeStructBegin('receiveReturn_result')
8949
    if self.success != None:
9289
    if self.success is not None:
8950
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9290
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8951
      oprot.writeBool(self.success)
9291
      oprot.writeBool(self.success)
8952
      oprot.writeFieldEnd()
9292
      oprot.writeFieldEnd()
8953
    if self.ex != None:
9293
    if self.ex is not None:
8954
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9294
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8955
      self.ex.write(oprot)
9295
      self.ex.write(oprot)
8956
      oprot.writeFieldEnd()
9296
      oprot.writeFieldEnd()
8957
    oprot.writeFieldStop()
9297
    oprot.writeFieldStop()
8958
    oprot.writeStructEnd()
9298
    oprot.writeStructEnd()
8959
 
9299
 
-
 
9300
  def validate(self):
-
 
9301
    return
-
 
9302
 
-
 
9303
 
8960
  def __repr__(self):
9304
  def __repr__(self):
8961
    L = ['%s=%r' % (key, value)
9305
    L = ['%s=%r' % (key, value)
8962
      for key, value in self.__dict__.iteritems()]
9306
      for key, value in self.__dict__.iteritems()]
8963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8964
 
9308
 
Line 9012... Line 9356...
9012
  def write(self, oprot):
9356
  def write(self, oprot):
9013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9015
      return
9359
      return
9016
    oprot.writeStructBegin('validateDoa_args')
9360
    oprot.writeStructBegin('validateDoa_args')
9017
    if self.orderId != None:
9361
    if self.orderId is not None:
9018
      oprot.writeFieldBegin('orderId', TType.I64, 1)
9362
      oprot.writeFieldBegin('orderId', TType.I64, 1)
9019
      oprot.writeI64(self.orderId)
9363
      oprot.writeI64(self.orderId)
9020
      oprot.writeFieldEnd()
9364
      oprot.writeFieldEnd()
9021
    if self.isValid != None:
9365
    if self.isValid is not None:
9022
      oprot.writeFieldBegin('isValid', TType.BOOL, 2)
9366
      oprot.writeFieldBegin('isValid', TType.BOOL, 2)
9023
      oprot.writeBool(self.isValid)
9367
      oprot.writeBool(self.isValid)
9024
      oprot.writeFieldEnd()
9368
      oprot.writeFieldEnd()
9025
    oprot.writeFieldStop()
9369
    oprot.writeFieldStop()
9026
    oprot.writeStructEnd()
9370
    oprot.writeStructEnd()
9027
 
9371
 
-
 
9372
  def validate(self):
-
 
9373
    return
-
 
9374
 
-
 
9375
 
9028
  def __repr__(self):
9376
  def __repr__(self):
9029
    L = ['%s=%r' % (key, value)
9377
    L = ['%s=%r' % (key, value)
9030
      for key, value in self.__dict__.iteritems()]
9378
      for key, value in self.__dict__.iteritems()]
9031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9379
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9032
 
9380
 
Line 9080... Line 9428...
9080
  def write(self, oprot):
9428
  def write(self, oprot):
9081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9083
      return
9431
      return
9084
    oprot.writeStructBegin('validateDoa_result')
9432
    oprot.writeStructBegin('validateDoa_result')
9085
    if self.success != None:
9433
    if self.success is not None:
9086
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9434
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9087
      oprot.writeBool(self.success)
9435
      oprot.writeBool(self.success)
9088
      oprot.writeFieldEnd()
9436
      oprot.writeFieldEnd()
9089
    if self.ex != None:
9437
    if self.ex is not None:
9090
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9438
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9091
      self.ex.write(oprot)
9439
      self.ex.write(oprot)
9092
      oprot.writeFieldEnd()
9440
      oprot.writeFieldEnd()
9093
    oprot.writeFieldStop()
9441
    oprot.writeFieldStop()
9094
    oprot.writeStructEnd()
9442
    oprot.writeStructEnd()
9095
 
9443
 
-
 
9444
  def validate(self):
-
 
9445
    return
-
 
9446
 
-
 
9447
 
9096
  def __repr__(self):
9448
  def __repr__(self):
9097
    L = ['%s=%r' % (key, value)
9449
    L = ['%s=%r' % (key, value)
9098
      for key, value in self.__dict__.iteritems()]
9450
      for key, value in self.__dict__.iteritems()]
9099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9100
 
9452
 
Line 9140... Line 9492...
9140
  def write(self, oprot):
9492
  def write(self, oprot):
9141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9143
      return
9495
      return
9144
    oprot.writeStructBegin('reshipOrder_args')
9496
    oprot.writeStructBegin('reshipOrder_args')
9145
    if self.orderId != None:
9497
    if self.orderId is not None:
9146
      oprot.writeFieldBegin('orderId', TType.I64, 1)
9498
      oprot.writeFieldBegin('orderId', TType.I64, 1)
9147
      oprot.writeI64(self.orderId)
9499
      oprot.writeI64(self.orderId)
9148
      oprot.writeFieldEnd()
9500
      oprot.writeFieldEnd()
9149
    oprot.writeFieldStop()
9501
    oprot.writeFieldStop()
9150
    oprot.writeStructEnd()
9502
    oprot.writeStructEnd()
9151
 
9503
 
-
 
9504
  def validate(self):
-
 
9505
    return
-
 
9506
 
-
 
9507
 
9152
  def __repr__(self):
9508
  def __repr__(self):
9153
    L = ['%s=%r' % (key, value)
9509
    L = ['%s=%r' % (key, value)
9154
      for key, value in self.__dict__.iteritems()]
9510
      for key, value in self.__dict__.iteritems()]
9155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9156
 
9512
 
Line 9204... Line 9560...
9204
  def write(self, oprot):
9560
  def write(self, oprot):
9205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9207
      return
9563
      return
9208
    oprot.writeStructBegin('reshipOrder_result')
9564
    oprot.writeStructBegin('reshipOrder_result')
9209
    if self.success != None:
9565
    if self.success is not None:
9210
      oprot.writeFieldBegin('success', TType.I64, 0)
9566
      oprot.writeFieldBegin('success', TType.I64, 0)
9211
      oprot.writeI64(self.success)
9567
      oprot.writeI64(self.success)
9212
      oprot.writeFieldEnd()
9568
      oprot.writeFieldEnd()
9213
    if self.ex != None:
9569
    if self.ex is not None:
9214
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9570
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9215
      self.ex.write(oprot)
9571
      self.ex.write(oprot)
9216
      oprot.writeFieldEnd()
9572
      oprot.writeFieldEnd()
9217
    oprot.writeFieldStop()
9573
    oprot.writeFieldStop()
9218
    oprot.writeStructEnd()
9574
    oprot.writeStructEnd()
9219
 
9575
 
-
 
9576
  def validate(self):
-
 
9577
    return
-
 
9578
 
-
 
9579
 
9220
  def __repr__(self):
9580
  def __repr__(self):
9221
    L = ['%s=%r' % (key, value)
9581
    L = ['%s=%r' % (key, value)
9222
      for key, value in self.__dict__.iteritems()]
9582
      for key, value in self.__dict__.iteritems()]
9223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9224
 
9584
 
Line 9280... Line 9640...
9280
  def write(self, oprot):
9640
  def write(self, oprot):
9281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9283
      return
9643
      return
9284
    oprot.writeStructBegin('refundOrder_args')
9644
    oprot.writeStructBegin('refundOrder_args')
9285
    if self.orderId != None:
9645
    if self.orderId is not None:
9286
      oprot.writeFieldBegin('orderId', TType.I64, 1)
9646
      oprot.writeFieldBegin('orderId', TType.I64, 1)
9287
      oprot.writeI64(self.orderId)
9647
      oprot.writeI64(self.orderId)
9288
      oprot.writeFieldEnd()
9648
      oprot.writeFieldEnd()
9289
    if self.refundedBy != None:
9649
    if self.refundedBy is not None:
9290
      oprot.writeFieldBegin('refundedBy', TType.STRING, 2)
9650
      oprot.writeFieldBegin('refundedBy', TType.STRING, 2)
9291
      oprot.writeString(self.refundedBy)
9651
      oprot.writeString(self.refundedBy)
9292
      oprot.writeFieldEnd()
9652
      oprot.writeFieldEnd()
9293
    if self.reason != None:
9653
    if self.reason is not None:
9294
      oprot.writeFieldBegin('reason', TType.STRING, 3)
9654
      oprot.writeFieldBegin('reason', TType.STRING, 3)
9295
      oprot.writeString(self.reason)
9655
      oprot.writeString(self.reason)
9296
      oprot.writeFieldEnd()
9656
      oprot.writeFieldEnd()
9297
    oprot.writeFieldStop()
9657
    oprot.writeFieldStop()
9298
    oprot.writeStructEnd()
9658
    oprot.writeStructEnd()
9299
 
9659
 
-
 
9660
  def validate(self):
-
 
9661
    return
-
 
9662
 
-
 
9663
 
9300
  def __repr__(self):
9664
  def __repr__(self):
9301
    L = ['%s=%r' % (key, value)
9665
    L = ['%s=%r' % (key, value)
9302
      for key, value in self.__dict__.iteritems()]
9666
      for key, value in self.__dict__.iteritems()]
9303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9304
 
9668
 
Line 9352... Line 9716...
9352
  def write(self, oprot):
9716
  def write(self, oprot):
9353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9355
      return
9719
      return
9356
    oprot.writeStructBegin('refundOrder_result')
9720
    oprot.writeStructBegin('refundOrder_result')
9357
    if self.success != None:
9721
    if self.success is not None:
9358
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9722
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9359
      oprot.writeBool(self.success)
9723
      oprot.writeBool(self.success)
9360
      oprot.writeFieldEnd()
9724
      oprot.writeFieldEnd()
9361
    if self.ex != None:
9725
    if self.ex is not None:
9362
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9726
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9363
      self.ex.write(oprot)
9727
      self.ex.write(oprot)
9364
      oprot.writeFieldEnd()
9728
      oprot.writeFieldEnd()
9365
    oprot.writeFieldStop()
9729
    oprot.writeFieldStop()
9366
    oprot.writeStructEnd()
9730
    oprot.writeStructEnd()
9367
 
9731
 
-
 
9732
  def validate(self):
-
 
9733
    return
-
 
9734
 
-
 
9735
 
9368
  def __repr__(self):
9736
  def __repr__(self):
9369
    L = ['%s=%r' % (key, value)
9737
    L = ['%s=%r' % (key, value)
9370
      for key, value in self.__dict__.iteritems()]
9738
      for key, value in self.__dict__.iteritems()]
9371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9372
 
9740
 
Line 9428... Line 9796...
9428
  def write(self, oprot):
9796
  def write(self, oprot):
9429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9431
      return
9799
      return
9432
    oprot.writeStructBegin('getReturnOrders_args')
9800
    oprot.writeStructBegin('getReturnOrders_args')
9433
    if self.warehouseId != None:
9801
    if self.warehouseId is not None:
9434
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9802
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9435
      oprot.writeI64(self.warehouseId)
9803
      oprot.writeI64(self.warehouseId)
9436
      oprot.writeFieldEnd()
9804
      oprot.writeFieldEnd()
9437
    if self.fromDate != None:
9805
    if self.fromDate is not None:
9438
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
9806
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
9439
      oprot.writeI64(self.fromDate)
9807
      oprot.writeI64(self.fromDate)
9440
      oprot.writeFieldEnd()
9808
      oprot.writeFieldEnd()
9441
    if self.toDate != None:
9809
    if self.toDate is not None:
9442
      oprot.writeFieldBegin('toDate', TType.I64, 3)
9810
      oprot.writeFieldBegin('toDate', TType.I64, 3)
9443
      oprot.writeI64(self.toDate)
9811
      oprot.writeI64(self.toDate)
9444
      oprot.writeFieldEnd()
9812
      oprot.writeFieldEnd()
9445
    oprot.writeFieldStop()
9813
    oprot.writeFieldStop()
9446
    oprot.writeStructEnd()
9814
    oprot.writeStructEnd()
9447
 
9815
 
-
 
9816
  def validate(self):
-
 
9817
    return
-
 
9818
 
-
 
9819
 
9448
  def __repr__(self):
9820
  def __repr__(self):
9449
    L = ['%s=%r' % (key, value)
9821
    L = ['%s=%r' % (key, value)
9450
      for key, value in self.__dict__.iteritems()]
9822
      for key, value in self.__dict__.iteritems()]
9451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9452
 
9824
 
Line 9497... Line 9869...
9497
  def write(self, oprot):
9869
  def write(self, oprot):
9498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9500
      return
9872
      return
9501
    oprot.writeStructBegin('getReturnOrders_result')
9873
    oprot.writeStructBegin('getReturnOrders_result')
9502
    if self.success != None:
9874
    if self.success is not None:
9503
      oprot.writeFieldBegin('success', TType.LIST, 0)
9875
      oprot.writeFieldBegin('success', TType.LIST, 0)
9504
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9876
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9505
      for iter191 in self.success:
9877
      for iter191 in self.success:
9506
        iter191.write(oprot)
9878
        iter191.write(oprot)
9507
      oprot.writeListEnd()
9879
      oprot.writeListEnd()
9508
      oprot.writeFieldEnd()
9880
      oprot.writeFieldEnd()
9509
    oprot.writeFieldStop()
9881
    oprot.writeFieldStop()
9510
    oprot.writeStructEnd()
9882
    oprot.writeStructEnd()
9511
 
9883
 
-
 
9884
  def validate(self):
-
 
9885
    return
-
 
9886
 
-
 
9887
 
9512
  def __repr__(self):
9888
  def __repr__(self):
9513
    L = ['%s=%r' % (key, value)
9889
    L = ['%s=%r' % (key, value)
9514
      for key, value in self.__dict__.iteritems()]
9890
      for key, value in self.__dict__.iteritems()]
9515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9516
 
9892
 
Line 9556... Line 9932...
9556
  def write(self, oprot):
9932
  def write(self, oprot):
9557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9559
      return
9935
      return
9560
    oprot.writeStructBegin('getReturnOrder_args')
9936
    oprot.writeStructBegin('getReturnOrder_args')
9561
    if self.id != None:
9937
    if self.id is not None:
9562
      oprot.writeFieldBegin('id', TType.I64, 1)
9938
      oprot.writeFieldBegin('id', TType.I64, 1)
9563
      oprot.writeI64(self.id)
9939
      oprot.writeI64(self.id)
9564
      oprot.writeFieldEnd()
9940
      oprot.writeFieldEnd()
9565
    oprot.writeFieldStop()
9941
    oprot.writeFieldStop()
9566
    oprot.writeStructEnd()
9942
    oprot.writeStructEnd()
9567
 
9943
 
-
 
9944
  def validate(self):
-
 
9945
    return
-
 
9946
 
-
 
9947
 
9568
  def __repr__(self):
9948
  def __repr__(self):
9569
    L = ['%s=%r' % (key, value)
9949
    L = ['%s=%r' % (key, value)
9570
      for key, value in self.__dict__.iteritems()]
9950
      for key, value in self.__dict__.iteritems()]
9571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9572
 
9952
 
Line 9621... Line 10001...
9621
  def write(self, oprot):
10001
  def write(self, oprot):
9622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9624
      return
10004
      return
9625
    oprot.writeStructBegin('getReturnOrder_result')
10005
    oprot.writeStructBegin('getReturnOrder_result')
9626
    if self.success != None:
10006
    if self.success is not None:
9627
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10007
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9628
      self.success.write(oprot)
10008
      self.success.write(oprot)
9629
      oprot.writeFieldEnd()
10009
      oprot.writeFieldEnd()
9630
    if self.ex != None:
10010
    if self.ex is not None:
9631
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
10011
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9632
      self.ex.write(oprot)
10012
      self.ex.write(oprot)
9633
      oprot.writeFieldEnd()
10013
      oprot.writeFieldEnd()
9634
    oprot.writeFieldStop()
10014
    oprot.writeFieldStop()
9635
    oprot.writeStructEnd()
10015
    oprot.writeStructEnd()
9636
 
10016
 
-
 
10017
  def validate(self):
-
 
10018
    return
-
 
10019
 
-
 
10020
 
9637
  def __repr__(self):
10021
  def __repr__(self):
9638
    L = ['%s=%r' % (key, value)
10022
    L = ['%s=%r' % (key, value)
9639
      for key, value in self.__dict__.iteritems()]
10023
      for key, value in self.__dict__.iteritems()]
9640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9641
 
10025
 
Line 9681... Line 10065...
9681
  def write(self, oprot):
10065
  def write(self, oprot):
9682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9684
      return
10068
      return
9685
    oprot.writeStructBegin('processReturn_args')
10069
    oprot.writeStructBegin('processReturn_args')
9686
    if self.returnOrderId != None:
10070
    if self.returnOrderId is not None:
9687
      oprot.writeFieldBegin('returnOrderId', TType.I64, 1)
10071
      oprot.writeFieldBegin('returnOrderId', TType.I64, 1)
9688
      oprot.writeI64(self.returnOrderId)
10072
      oprot.writeI64(self.returnOrderId)
9689
      oprot.writeFieldEnd()
10073
      oprot.writeFieldEnd()
9690
    oprot.writeFieldStop()
10074
    oprot.writeFieldStop()
9691
    oprot.writeStructEnd()
10075
    oprot.writeStructEnd()
9692
 
10076
 
-
 
10077
  def validate(self):
-
 
10078
    return
-
 
10079
 
-
 
10080
 
9693
  def __repr__(self):
10081
  def __repr__(self):
9694
    L = ['%s=%r' % (key, value)
10082
    L = ['%s=%r' % (key, value)
9695
      for key, value in self.__dict__.iteritems()]
10083
      for key, value in self.__dict__.iteritems()]
9696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9697
 
10085
 
Line 9738... Line 10126...
9738
  def write(self, oprot):
10126
  def write(self, oprot):
9739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9741
      return
10129
      return
9742
    oprot.writeStructBegin('processReturn_result')
10130
    oprot.writeStructBegin('processReturn_result')
9743
    if self.ex != None:
10131
    if self.ex is not None:
9744
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
10132
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9745
      self.ex.write(oprot)
10133
      self.ex.write(oprot)
9746
      oprot.writeFieldEnd()
10134
      oprot.writeFieldEnd()
9747
    oprot.writeFieldStop()
10135
    oprot.writeFieldStop()
9748
    oprot.writeStructEnd()
10136
    oprot.writeStructEnd()
9749
 
10137
 
-
 
10138
  def validate(self):
-
 
10139
    return
-
 
10140
 
-
 
10141
 
9750
  def __repr__(self):
10142
  def __repr__(self):
9751
    L = ['%s=%r' % (key, value)
10143
    L = ['%s=%r' % (key, value)
9752
      for key, value in self.__dict__.iteritems()]
10144
      for key, value in self.__dict__.iteritems()]
9753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9754
 
10146
 
Line 9794... Line 10186...
9794
  def write(self, oprot):
10186
  def write(self, oprot):
9795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9797
      return
10189
      return
9798
    oprot.writeStructBegin('createPurchaseOrder_args')
10190
    oprot.writeStructBegin('createPurchaseOrder_args')
9799
    if self.warehouseId != None:
10191
    if self.warehouseId is not None:
9800
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
10192
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
9801
      oprot.writeI64(self.warehouseId)
10193
      oprot.writeI64(self.warehouseId)
9802
      oprot.writeFieldEnd()
10194
      oprot.writeFieldEnd()
9803
    oprot.writeFieldStop()
10195
    oprot.writeFieldStop()
9804
    oprot.writeStructEnd()
10196
    oprot.writeStructEnd()
9805
 
10197
 
-
 
10198
  def validate(self):
-
 
10199
    return
-
 
10200
 
-
 
10201
 
9806
  def __repr__(self):
10202
  def __repr__(self):
9807
    L = ['%s=%r' % (key, value)
10203
    L = ['%s=%r' % (key, value)
9808
      for key, value in self.__dict__.iteritems()]
10204
      for key, value in self.__dict__.iteritems()]
9809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10205
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9810
 
10206
 
Line 9858... Line 10254...
9858
  def write(self, oprot):
10254
  def write(self, oprot):
9859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9861
      return
10257
      return
9862
    oprot.writeStructBegin('createPurchaseOrder_result')
10258
    oprot.writeStructBegin('createPurchaseOrder_result')
9863
    if self.success != None:
10259
    if self.success is not None:
9864
      oprot.writeFieldBegin('success', TType.I64, 0)
10260
      oprot.writeFieldBegin('success', TType.I64, 0)
9865
      oprot.writeI64(self.success)
10261
      oprot.writeI64(self.success)
9866
      oprot.writeFieldEnd()
10262
      oprot.writeFieldEnd()
9867
    if self.ex != None:
10263
    if self.ex is not None:
9868
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
10264
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9869
      self.ex.write(oprot)
10265
      self.ex.write(oprot)
9870
      oprot.writeFieldEnd()
10266
      oprot.writeFieldEnd()
9871
    oprot.writeFieldStop()
10267
    oprot.writeFieldStop()
9872
    oprot.writeStructEnd()
10268
    oprot.writeStructEnd()
9873
 
10269
 
-
 
10270
  def validate(self):
-
 
10271
    return
-
 
10272
 
-
 
10273
 
9874
  def __repr__(self):
10274
  def __repr__(self):
9875
    L = ['%s=%r' % (key, value)
10275
    L = ['%s=%r' % (key, value)
9876
      for key, value in self.__dict__.iteritems()]
10276
      for key, value in self.__dict__.iteritems()]
9877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9878
 
10278
 
9879
  def __eq__(self, other):
10279
  def __eq__(self, other):
9880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9881
 
10281
 
9882
  def __ne__(self, other):
10282
  def __ne__(self, other):
9883
    return not (self == other)
10283
    return not (self == other)
9884
 
-
 
9885
 
-