Subversion Repositories SmartDukaan

Rev

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

Rev 4269 Rev 4283
Line 197... Line 197...
197
     * 
197
     * 
198
     * @param orderId
198
     * @param orderId
199
     */
199
     */
200
    public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
200
    public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
201
 
201
 
202
    public boolean billOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
-
 
203
 
-
 
204
    /**
202
    /**
205
     * Add billing details such as the bill number and the biller to the Order.
203
     * Add billing details such as the bill number and the biller to the Order.
206
     * Should be used when the bill is issued by a 3rd party and we've to feed
-
 
207
     * the information into our system.
-
 
208
     * 
-
 
209
     * @param orderId
-
 
210
     * @param invoice_number
-
 
211
     * @param billed_by
-
 
212
     * @param jacketNumber
-
 
213
     */
-
 
214
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber) throws TransactionServiceException, org.apache.thrift.TException;
-
 
215
 
-
 
216
    /**
-
 
217
     * Adds jacket number, item number and IMEI no. to the order. Doesn't update
204
     * Adds jacket number, item number and IMEI no. to the order. Doesn't update
218
     * the IMEI no. if a -1 is supplied.
205
     * the IMEI no. if a -1 is supplied.
219
     * Also, it generates an invoice number for the order, marks the order as
206
     * Also, it generates an invoice number for the order, marks the order as
220
     * BILLED and sets the billing timestamp.
207
     * BILLED and sets the billing timestamp.
221
     * It should be used when we are billing the orders ourselves.
-
 
222
     * 
-
 
223
     * Returns false if it doesn't find the order with the given ID.
208
     * Returns false if it doesn't find the order with the given ID.
224
     * 
209
     * 
225
     * @param orderId
210
     * @param orderId
226
     * @param jacketNumber
211
     * @param invoice_number
227
     * @param imeiNumber
212
     * @param imeiNumber
228
     * @param itemNumber
213
     * @param itemNumber
229
     * @param billedBy
214
     * @param billed_by
-
 
215
     * @param jacketNumber
230
     * @param billingType
216
     * @param billingType
-
 
217
     * @param vendorId
231
     */
218
     */
232
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, org.apache.thrift.TException;
219
    public boolean addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
233
 
220
 
234
    /**
221
    /**
235
     * Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
222
     * Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
236
     * given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
223
     * given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
237
     * 
224
     * 
Line 615... Line 602...
615
 
602
 
616
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;
603
    public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;
617
 
604
 
618
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
605
    public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;
619
 
606
 
620
    public void billOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.billOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
621
 
-
 
622
    public void addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
607
    public void addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;
623
 
-
 
624
    public void addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addJacketNumber_call> resultHandler) throws org.apache.thrift.TException;
-
 
625
 
608
 
626
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException;
609
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException;
627
 
610
 
628
    public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
611
    public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;
629
 
612
 
Line 1519... Line 1502...
1519
        throw result.ex;
1502
        throw result.ex;
1520
      }
1503
      }
1521
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1504
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1522
    }
1505
    }
1523
 
1506
 
1524
    public boolean billOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException
-
 
1525
    {
-
 
1526
      send_billOrder(orderId);
-
 
1527
      return recv_billOrder();
-
 
1528
    }
-
 
1529
 
-
 
1530
    public void send_billOrder(long orderId) throws org.apache.thrift.TException
-
 
1531
    {
-
 
1532
      billOrder_args args = new billOrder_args();
-
 
1533
      args.setOrderId(orderId);
-
 
1534
      sendBase("billOrder", args);
-
 
1535
    }
-
 
1536
 
-
 
1537
    public boolean recv_billOrder() throws TransactionServiceException, org.apache.thrift.TException
-
 
1538
    {
-
 
1539
      billOrder_result result = new billOrder_result();
-
 
1540
      receiveBase(result, "billOrder");
-
 
1541
      if (result.isSetSuccess()) {
-
 
1542
        return result.success;
-
 
1543
      }
-
 
1544
      if (result.ex != null) {
-
 
1545
        throw result.ex;
-
 
1546
      }
-
 
1547
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
-
 
1548
    }
-
 
1549
 
-
 
1550
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber) throws TransactionServiceException, org.apache.thrift.TException
1507
    public boolean addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId) throws TransactionServiceException, org.apache.thrift.TException
1551
    {
1508
    {
1552
      send_addBillingDetails(orderId, invoice_number, billed_by, jacketNumber);
1509
      send_addBillingDetails(orderId, invoice_number, imeiNumber, itemNumber, billed_by, jacketNumber, billingType, vendorId);
1553
      return recv_addBillingDetails();
1510
      return recv_addBillingDetails();
1554
    }
1511
    }
1555
 
1512
 
1556
    public void send_addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber) throws org.apache.thrift.TException
1513
    public void send_addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId) throws org.apache.thrift.TException
1557
    {
1514
    {
1558
      addBillingDetails_args args = new addBillingDetails_args();
1515
      addBillingDetails_args args = new addBillingDetails_args();
1559
      args.setOrderId(orderId);
1516
      args.setOrderId(orderId);
1560
      args.setInvoice_number(invoice_number);
1517
      args.setInvoice_number(invoice_number);
-
 
1518
      args.setImeiNumber(imeiNumber);
-
 
1519
      args.setItemNumber(itemNumber);
1561
      args.setBilled_by(billed_by);
1520
      args.setBilled_by(billed_by);
1562
      args.setJacketNumber(jacketNumber);
1521
      args.setJacketNumber(jacketNumber);
-
 
1522
      args.setBillingType(billingType);
-
 
1523
      args.setVendorId(vendorId);
1563
      sendBase("addBillingDetails", args);
1524
      sendBase("addBillingDetails", args);
1564
    }
1525
    }
1565
 
1526
 
1566
    public boolean recv_addBillingDetails() throws TransactionServiceException, org.apache.thrift.TException
1527
    public boolean recv_addBillingDetails() throws TransactionServiceException, org.apache.thrift.TException
1567
    {
1528
    {
Line 1574... Line 1535...
1574
        throw result.ex;
1535
        throw result.ex;
1575
      }
1536
      }
1576
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1537
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1577
    }
1538
    }
1578
 
1539
 
1579
    public boolean addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws TransactionServiceException, org.apache.thrift.TException
-
 
1580
    {
-
 
1581
      send_addJacketNumber(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType);
-
 
1582
      return recv_addJacketNumber();
-
 
1583
    }
-
 
1584
 
-
 
1585
    public void send_addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType) throws org.apache.thrift.TException
-
 
1586
    {
-
 
1587
      addJacketNumber_args args = new addJacketNumber_args();
-
 
1588
      args.setOrderId(orderId);
-
 
1589
      args.setJacketNumber(jacketNumber);
-
 
1590
      args.setImeiNumber(imeiNumber);
-
 
1591
      args.setItemNumber(itemNumber);
-
 
1592
      args.setBilledBy(billedBy);
-
 
1593
      args.setBillingType(billingType);
-
 
1594
      sendBase("addJacketNumber", args);
-
 
1595
    }
-
 
1596
 
-
 
1597
    public boolean recv_addJacketNumber() throws TransactionServiceException, org.apache.thrift.TException
-
 
1598
    {
-
 
1599
      addJacketNumber_result result = new addJacketNumber_result();
-
 
1600
      receiveBase(result, "addJacketNumber");
-
 
1601
      if (result.isSetSuccess()) {
-
 
1602
        return result.success;
-
 
1603
      }
-
 
1604
      if (result.ex != null) {
-
 
1605
        throw result.ex;
-
 
1606
      }
-
 
1607
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
-
 
1608
    }
-
 
1609
 
-
 
1610
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException
1540
    public boolean markOrdersAsManifested(long warehouseId, long providerId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException
1611
    {
1541
    {
1612
      send_markOrdersAsManifested(warehouseId, providerId, cod);
1542
      send_markOrdersAsManifested(warehouseId, providerId, cod);
1613
      return recv_markOrdersAsManifested();
1543
      return recv_markOrdersAsManifested();
1614
    }
1544
    }
Line 3484... Line 3414...
3484
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3414
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3485
        return (new Client(prot)).recv_acceptOrder();
3415
        return (new Client(prot)).recv_acceptOrder();
3486
      }
3416
      }
3487
    }
3417
    }
3488
 
3418
 
3489
    public void billOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<billOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
3490
      checkReady();
-
 
3491
      billOrder_call method_call = new billOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
3492
      this.___currentMethod = method_call;
-
 
3493
      ___manager.call(method_call);
-
 
3494
    }
-
 
3495
 
-
 
3496
    public static class billOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3497
      private long orderId;
-
 
3498
      public billOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<billOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
3499
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3500
        this.orderId = orderId;
-
 
3501
      }
-
 
3502
 
-
 
3503
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3504
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("billOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3505
        billOrder_args args = new billOrder_args();
-
 
3506
        args.setOrderId(orderId);
-
 
3507
        args.write(prot);
-
 
3508
        prot.writeMessageEnd();
-
 
3509
      }
-
 
3510
 
-
 
3511
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
3512
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3513
          throw new IllegalStateException("Method call not finished!");
-
 
3514
        }
-
 
3515
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3516
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3517
        return (new Client(prot)).recv_billOrder();
-
 
3518
      }
-
 
3519
    }
-
 
3520
 
-
 
3521
    public void addBillingDetails(long orderId, String invoice_number, String billed_by, long jacketNumber, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
3419
    public void addBillingDetails(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {
3522
      checkReady();
3420
      checkReady();
3523
      addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, billed_by, jacketNumber, resultHandler, this, ___protocolFactory, ___transport);
3421
      addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, imeiNumber, itemNumber, billed_by, jacketNumber, billingType, vendorId, resultHandler, this, ___protocolFactory, ___transport);
3524
      this.___currentMethod = method_call;
3422
      this.___currentMethod = method_call;
3525
      ___manager.call(method_call);
3423
      ___manager.call(method_call);
3526
    }
3424
    }
3527
 
3425
 
3528
    public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
3426
    public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
3529
      private long orderId;
3427
      private long orderId;
3530
      private String invoice_number;
3428
      private String invoice_number;
-
 
3429
      private long imeiNumber;
-
 
3430
      private String itemNumber;
3531
      private String billed_by;
3431
      private String billed_by;
3532
      private long jacketNumber;
3432
      private long jacketNumber;
-
 
3433
      private long billingType;
-
 
3434
      private long vendorId;
3533
      public addBillingDetails_call(long orderId, String invoice_number, String billed_by, long jacketNumber, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3435
      public addBillingDetails_call(long orderId, String invoice_number, long imeiNumber, String itemNumber, String billed_by, long jacketNumber, long billingType, long vendorId, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3534
        super(client, protocolFactory, transport, resultHandler, false);
3436
        super(client, protocolFactory, transport, resultHandler, false);
3535
        this.orderId = orderId;
3437
        this.orderId = orderId;
3536
        this.invoice_number = invoice_number;
3438
        this.invoice_number = invoice_number;
-
 
3439
        this.imeiNumber = imeiNumber;
-
 
3440
        this.itemNumber = itemNumber;
3537
        this.billed_by = billed_by;
3441
        this.billed_by = billed_by;
3538
        this.jacketNumber = jacketNumber;
3442
        this.jacketNumber = jacketNumber;
-
 
3443
        this.billingType = billingType;
-
 
3444
        this.vendorId = vendorId;
3539
      }
3445
      }
3540
 
3446
 
3541
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3447
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3542
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBillingDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
3448
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBillingDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
3543
        addBillingDetails_args args = new addBillingDetails_args();
3449
        addBillingDetails_args args = new addBillingDetails_args();
3544
        args.setOrderId(orderId);
3450
        args.setOrderId(orderId);
3545
        args.setInvoice_number(invoice_number);
3451
        args.setInvoice_number(invoice_number);
3546
        args.setBilled_by(billed_by);
-
 
3547
        args.setJacketNumber(jacketNumber);
-
 
3548
        args.write(prot);
-
 
3549
        prot.writeMessageEnd();
-
 
3550
      }
-
 
3551
 
-
 
3552
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
3553
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3554
          throw new IllegalStateException("Method call not finished!");
-
 
3555
        }
-
 
3556
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3557
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3558
        return (new Client(prot)).recv_addBillingDetails();
-
 
3559
      }
-
 
3560
    }
-
 
3561
 
-
 
3562
    public void addJacketNumber(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType, org.apache.thrift.async.AsyncMethodCallback<addJacketNumber_call> resultHandler) throws org.apache.thrift.TException {
-
 
3563
      checkReady();
-
 
3564
      addJacketNumber_call method_call = new addJacketNumber_call(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType, resultHandler, this, ___protocolFactory, ___transport);
-
 
3565
      this.___currentMethod = method_call;
-
 
3566
      ___manager.call(method_call);
-
 
3567
    }
-
 
3568
 
-
 
3569
    public static class addJacketNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3570
      private long orderId;
-
 
3571
      private long jacketNumber;
-
 
3572
      private long imeiNumber;
-
 
3573
      private String itemNumber;
-
 
3574
      private String billedBy;
-
 
3575
      private long billingType;
-
 
3576
      public addJacketNumber_call(long orderId, long jacketNumber, long imeiNumber, String itemNumber, String billedBy, long billingType, org.apache.thrift.async.AsyncMethodCallback<addJacketNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
3577
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3578
        this.orderId = orderId;
-
 
3579
        this.jacketNumber = jacketNumber;
-
 
3580
        this.imeiNumber = imeiNumber;
-
 
3581
        this.itemNumber = itemNumber;
-
 
3582
        this.billedBy = billedBy;
-
 
3583
        this.billingType = billingType;
-
 
3584
      }
-
 
3585
 
-
 
3586
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3587
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addJacketNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3588
        addJacketNumber_args args = new addJacketNumber_args();
-
 
3589
        args.setOrderId(orderId);
-
 
3590
        args.setJacketNumber(jacketNumber);
-
 
3591
        args.setImeiNumber(imeiNumber);
3452
        args.setImeiNumber(imeiNumber);
3592
        args.setItemNumber(itemNumber);
3453
        args.setItemNumber(itemNumber);
3593
        args.setBilledBy(billedBy);
3454
        args.setBilled_by(billed_by);
-
 
3455
        args.setJacketNumber(jacketNumber);
3594
        args.setBillingType(billingType);
3456
        args.setBillingType(billingType);
-
 
3457
        args.setVendorId(vendorId);
3595
        args.write(prot);
3458
        args.write(prot);
3596
        prot.writeMessageEnd();
3459
        prot.writeMessageEnd();
3597
      }
3460
      }
3598
 
3461
 
3599
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3462
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3600
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3463
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3601
          throw new IllegalStateException("Method call not finished!");
3464
          throw new IllegalStateException("Method call not finished!");
3602
        }
3465
        }
3603
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3466
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3604
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3467
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3605
        return (new Client(prot)).recv_addJacketNumber();
3468
        return (new Client(prot)).recv_addBillingDetails();
3606
      }
3469
      }
3607
    }
3470
    }
3608
 
3471
 
3609
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException {
3472
    public void markOrdersAsManifested(long warehouseId, long providerId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsManifested_call> resultHandler) throws org.apache.thrift.TException {
3610
      checkReady();
3473
      checkReady();
Line 4712... Line 4575...
4712
      processMap.put("getValidOrders", new getValidOrders());
4575
      processMap.put("getValidOrders", new getValidOrders());
4713
      processMap.put("batchOrders", new batchOrders());
4576
      processMap.put("batchOrders", new batchOrders());
4714
      processMap.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
4577
      processMap.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());
4715
      processMap.put("verifyOrder", new verifyOrder());
4578
      processMap.put("verifyOrder", new verifyOrder());
4716
      processMap.put("acceptOrder", new acceptOrder());
4579
      processMap.put("acceptOrder", new acceptOrder());
4717
      processMap.put("billOrder", new billOrder());
-
 
4718
      processMap.put("addBillingDetails", new addBillingDetails());
4580
      processMap.put("addBillingDetails", new addBillingDetails());
4719
      processMap.put("addJacketNumber", new addJacketNumber());
-
 
4720
      processMap.put("markOrdersAsManifested", new markOrdersAsManifested());
4581
      processMap.put("markOrdersAsManifested", new markOrdersAsManifested());
4721
      processMap.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
4582
      processMap.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());
4722
      processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());
4583
      processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());
4723
      processMap.put("markOrdersAsFailed", new markOrdersAsFailed());
4584
      processMap.put("markOrdersAsFailed", new markOrdersAsFailed());
4724
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
4585
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
Line 5356... Line 5217...
5356
        }
5217
        }
5357
        return result;
5218
        return result;
5358
      }
5219
      }
5359
    }
5220
    }
5360
 
5221
 
5361
    private static class billOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, billOrder_args> {
-
 
5362
      public billOrder() {
-
 
5363
        super("billOrder");
-
 
5364
      }
-
 
5365
 
-
 
5366
      protected billOrder_args getEmptyArgsInstance() {
-
 
5367
        return new billOrder_args();
-
 
5368
      }
-
 
5369
 
-
 
5370
      protected billOrder_result getResult(I iface, billOrder_args args) throws org.apache.thrift.TException {
-
 
5371
        billOrder_result result = new billOrder_result();
-
 
5372
        try {
-
 
5373
          result.success = iface.billOrder(args.orderId);
-
 
5374
          result.setSuccessIsSet(true);
-
 
5375
        } catch (TransactionServiceException ex) {
-
 
5376
          result.ex = ex;
-
 
5377
        }
-
 
5378
        return result;
-
 
5379
      }
-
 
5380
    }
-
 
5381
 
-
 
5382
    private static class addBillingDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBillingDetails_args> {
5222
    private static class addBillingDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBillingDetails_args> {
5383
      public addBillingDetails() {
5223
      public addBillingDetails() {
5384
        super("addBillingDetails");
5224
        super("addBillingDetails");
5385
      }
5225
      }
5386
 
5226
 
Line 5389... Line 5229...
5389
      }
5229
      }
5390
 
5230
 
5391
      protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {
5231
      protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {
5392
        addBillingDetails_result result = new addBillingDetails_result();
5232
        addBillingDetails_result result = new addBillingDetails_result();
5393
        try {
5233
        try {
5394
          result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.billed_by, args.jacketNumber);
-
 
5395
          result.setSuccessIsSet(true);
-
 
5396
        } catch (TransactionServiceException ex) {
-
 
5397
          result.ex = ex;
-
 
5398
        }
-
 
5399
        return result;
-
 
5400
      }
-
 
5401
    }
-
 
5402
 
-
 
5403
    private static class addJacketNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addJacketNumber_args> {
-
 
5404
      public addJacketNumber() {
-
 
5405
        super("addJacketNumber");
-
 
5406
      }
-
 
5407
 
-
 
5408
      protected addJacketNumber_args getEmptyArgsInstance() {
-
 
5409
        return new addJacketNumber_args();
-
 
5410
      }
-
 
5411
 
-
 
5412
      protected addJacketNumber_result getResult(I iface, addJacketNumber_args args) throws org.apache.thrift.TException {
-
 
5413
        addJacketNumber_result result = new addJacketNumber_result();
-
 
5414
        try {
-
 
5415
          result.success = iface.addJacketNumber(args.orderId, args.jacketNumber, args.imeiNumber, args.itemNumber, args.billedBy, args.billingType);
5234
          result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.imeiNumber, args.itemNumber, args.billed_by, args.jacketNumber, args.billingType, args.vendorId);
5416
          result.setSuccessIsSet(true);
5235
          result.setSuccessIsSet(true);
5417
        } catch (TransactionServiceException ex) {
5236
        } catch (TransactionServiceException ex) {
5418
          result.ex = ex;
5237
          result.ex = ex;
5419
        }
5238
        }
5420
        return result;
5239
        return result;
Line 29494... Line 29313...
29494
      }
29313
      }
29495
    }
29314
    }
29496
 
29315
 
29497
  }
29316
  }
29498
 
29317
 
29499
  public static class billOrder_args implements org.apache.thrift.TBase<billOrder_args, billOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
29500
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("billOrder_args");
-
 
29501
 
-
 
29502
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
29503
 
-
 
29504
    private long orderId; // required
-
 
29505
 
-
 
29506
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29507
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
29508
      ORDER_ID((short)1, "orderId");
-
 
29509
 
-
 
29510
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29511
 
-
 
29512
      static {
-
 
29513
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29514
          byName.put(field.getFieldName(), field);
-
 
29515
        }
-
 
29516
      }
-
 
29517
 
-
 
29518
      /**
-
 
29519
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29520
       */
-
 
29521
      public static _Fields findByThriftId(int fieldId) {
-
 
29522
        switch(fieldId) {
-
 
29523
          case 1: // ORDER_ID
-
 
29524
            return ORDER_ID;
-
 
29525
          default:
-
 
29526
            return null;
-
 
29527
        }
-
 
29528
      }
-
 
29529
 
-
 
29530
      /**
-
 
29531
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29532
       * if it is not found.
-
 
29533
       */
-
 
29534
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29535
        _Fields fields = findByThriftId(fieldId);
-
 
29536
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29537
        return fields;
-
 
29538
      }
-
 
29539
 
-
 
29540
      /**
-
 
29541
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29542
       */
-
 
29543
      public static _Fields findByName(String name) {
-
 
29544
        return byName.get(name);
-
 
29545
      }
-
 
29546
 
-
 
29547
      private final short _thriftId;
-
 
29548
      private final String _fieldName;
-
 
29549
 
-
 
29550
      _Fields(short thriftId, String fieldName) {
-
 
29551
        _thriftId = thriftId;
-
 
29552
        _fieldName = fieldName;
-
 
29553
      }
-
 
29554
 
-
 
29555
      public short getThriftFieldId() {
-
 
29556
        return _thriftId;
-
 
29557
      }
-
 
29558
 
-
 
29559
      public String getFieldName() {
-
 
29560
        return _fieldName;
-
 
29561
      }
-
 
29562
    }
-
 
29563
 
-
 
29564
    // isset id assignments
-
 
29565
    private static final int __ORDERID_ISSET_ID = 0;
-
 
29566
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
29567
 
-
 
29568
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
29569
    static {
-
 
29570
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
29571
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29572
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
29573
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
29574
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(billOrder_args.class, metaDataMap);
-
 
29575
    }
-
 
29576
 
-
 
29577
    public billOrder_args() {
-
 
29578
    }
-
 
29579
 
-
 
29580
    public billOrder_args(
-
 
29581
      long orderId)
-
 
29582
    {
-
 
29583
      this();
-
 
29584
      this.orderId = orderId;
-
 
29585
      setOrderIdIsSet(true);
-
 
29586
    }
-
 
29587
 
-
 
29588
    /**
-
 
29589
     * Performs a deep copy on <i>other</i>.
-
 
29590
     */
-
 
29591
    public billOrder_args(billOrder_args other) {
-
 
29592
      __isset_bit_vector.clear();
-
 
29593
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
29594
      this.orderId = other.orderId;
-
 
29595
    }
-
 
29596
 
-
 
29597
    public billOrder_args deepCopy() {
-
 
29598
      return new billOrder_args(this);
-
 
29599
    }
-
 
29600
 
-
 
29601
    @Override
-
 
29602
    public void clear() {
-
 
29603
      setOrderIdIsSet(false);
-
 
29604
      this.orderId = 0;
-
 
29605
    }
-
 
29606
 
-
 
29607
    public long getOrderId() {
-
 
29608
      return this.orderId;
-
 
29609
    }
-
 
29610
 
-
 
29611
    public void setOrderId(long orderId) {
-
 
29612
      this.orderId = orderId;
-
 
29613
      setOrderIdIsSet(true);
-
 
29614
    }
-
 
29615
 
-
 
29616
    public void unsetOrderId() {
-
 
29617
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
29618
    }
-
 
29619
 
-
 
29620
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
29621
    public boolean isSetOrderId() {
-
 
29622
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
29623
    }
-
 
29624
 
-
 
29625
    public void setOrderIdIsSet(boolean value) {
-
 
29626
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
29627
    }
-
 
29628
 
-
 
29629
    public void setFieldValue(_Fields field, Object value) {
-
 
29630
      switch (field) {
-
 
29631
      case ORDER_ID:
-
 
29632
        if (value == null) {
-
 
29633
          unsetOrderId();
-
 
29634
        } else {
-
 
29635
          setOrderId((Long)value);
-
 
29636
        }
-
 
29637
        break;
-
 
29638
 
-
 
29639
      }
-
 
29640
    }
-
 
29641
 
-
 
29642
    public Object getFieldValue(_Fields field) {
-
 
29643
      switch (field) {
-
 
29644
      case ORDER_ID:
-
 
29645
        return Long.valueOf(getOrderId());
-
 
29646
 
-
 
29647
      }
-
 
29648
      throw new IllegalStateException();
-
 
29649
    }
-
 
29650
 
-
 
29651
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
29652
    public boolean isSet(_Fields field) {
-
 
29653
      if (field == null) {
-
 
29654
        throw new IllegalArgumentException();
-
 
29655
      }
-
 
29656
 
-
 
29657
      switch (field) {
-
 
29658
      case ORDER_ID:
-
 
29659
        return isSetOrderId();
-
 
29660
      }
-
 
29661
      throw new IllegalStateException();
-
 
29662
    }
-
 
29663
 
-
 
29664
    @Override
-
 
29665
    public boolean equals(Object that) {
-
 
29666
      if (that == null)
-
 
29667
        return false;
-
 
29668
      if (that instanceof billOrder_args)
-
 
29669
        return this.equals((billOrder_args)that);
-
 
29670
      return false;
-
 
29671
    }
-
 
29672
 
-
 
29673
    public boolean equals(billOrder_args that) {
-
 
29674
      if (that == null)
-
 
29675
        return false;
-
 
29676
 
-
 
29677
      boolean this_present_orderId = true;
-
 
29678
      boolean that_present_orderId = true;
-
 
29679
      if (this_present_orderId || that_present_orderId) {
-
 
29680
        if (!(this_present_orderId && that_present_orderId))
-
 
29681
          return false;
-
 
29682
        if (this.orderId != that.orderId)
-
 
29683
          return false;
-
 
29684
      }
-
 
29685
 
-
 
29686
      return true;
-
 
29687
    }
-
 
29688
 
-
 
29689
    @Override
-
 
29690
    public int hashCode() {
-
 
29691
      return 0;
-
 
29692
    }
-
 
29693
 
-
 
29694
    public int compareTo(billOrder_args other) {
-
 
29695
      if (!getClass().equals(other.getClass())) {
-
 
29696
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29697
      }
-
 
29698
 
-
 
29699
      int lastComparison = 0;
-
 
29700
      billOrder_args typedOther = (billOrder_args)other;
-
 
29701
 
-
 
29702
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
29703
      if (lastComparison != 0) {
-
 
29704
        return lastComparison;
-
 
29705
      }
-
 
29706
      if (isSetOrderId()) {
-
 
29707
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
29708
        if (lastComparison != 0) {
-
 
29709
          return lastComparison;
-
 
29710
        }
-
 
29711
      }
-
 
29712
      return 0;
-
 
29713
    }
-
 
29714
 
-
 
29715
    public _Fields fieldForId(int fieldId) {
-
 
29716
      return _Fields.findByThriftId(fieldId);
-
 
29717
    }
-
 
29718
 
-
 
29719
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
29720
      org.apache.thrift.protocol.TField field;
-
 
29721
      iprot.readStructBegin();
-
 
29722
      while (true)
-
 
29723
      {
-
 
29724
        field = iprot.readFieldBegin();
-
 
29725
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
29726
          break;
-
 
29727
        }
-
 
29728
        switch (field.id) {
-
 
29729
          case 1: // ORDER_ID
-
 
29730
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
29731
              this.orderId = iprot.readI64();
-
 
29732
              setOrderIdIsSet(true);
-
 
29733
            } else { 
-
 
29734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29735
            }
-
 
29736
            break;
-
 
29737
          default:
-
 
29738
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29739
        }
-
 
29740
        iprot.readFieldEnd();
-
 
29741
      }
-
 
29742
      iprot.readStructEnd();
-
 
29743
      validate();
-
 
29744
    }
-
 
29745
 
-
 
29746
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
29747
      validate();
-
 
29748
 
-
 
29749
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29750
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
29751
      oprot.writeI64(this.orderId);
-
 
29752
      oprot.writeFieldEnd();
-
 
29753
      oprot.writeFieldStop();
-
 
29754
      oprot.writeStructEnd();
-
 
29755
    }
-
 
29756
 
-
 
29757
    @Override
-
 
29758
    public String toString() {
-
 
29759
      StringBuilder sb = new StringBuilder("billOrder_args(");
-
 
29760
      boolean first = true;
-
 
29761
 
-
 
29762
      sb.append("orderId:");
-
 
29763
      sb.append(this.orderId);
-
 
29764
      first = false;
-
 
29765
      sb.append(")");
-
 
29766
      return sb.toString();
-
 
29767
    }
-
 
29768
 
-
 
29769
    public void validate() throws org.apache.thrift.TException {
-
 
29770
      // check for required fields
-
 
29771
    }
-
 
29772
 
-
 
29773
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
29774
      try {
-
 
29775
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
29776
      } catch (org.apache.thrift.TException te) {
-
 
29777
        throw new java.io.IOException(te);
-
 
29778
      }
-
 
29779
    }
-
 
29780
 
-
 
29781
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
29782
      try {
-
 
29783
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
29784
        __isset_bit_vector = new BitSet(1);
-
 
29785
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
29786
      } catch (org.apache.thrift.TException te) {
-
 
29787
        throw new java.io.IOException(te);
-
 
29788
      }
-
 
29789
    }
-
 
29790
 
-
 
29791
  }
-
 
29792
 
-
 
29793
  public static class billOrder_result implements org.apache.thrift.TBase<billOrder_result, billOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
29794
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("billOrder_result");
-
 
29795
 
-
 
29796
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
29797
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
29798
 
-
 
29799
    private boolean success; // required
-
 
29800
    private TransactionServiceException ex; // required
-
 
29801
 
-
 
29802
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29803
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
29804
      SUCCESS((short)0, "success"),
-
 
29805
      EX((short)1, "ex");
-
 
29806
 
-
 
29807
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29808
 
-
 
29809
      static {
-
 
29810
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29811
          byName.put(field.getFieldName(), field);
-
 
29812
        }
-
 
29813
      }
-
 
29814
 
-
 
29815
      /**
-
 
29816
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29817
       */
-
 
29818
      public static _Fields findByThriftId(int fieldId) {
-
 
29819
        switch(fieldId) {
-
 
29820
          case 0: // SUCCESS
-
 
29821
            return SUCCESS;
-
 
29822
          case 1: // EX
-
 
29823
            return EX;
-
 
29824
          default:
-
 
29825
            return null;
-
 
29826
        }
-
 
29827
      }
-
 
29828
 
-
 
29829
      /**
-
 
29830
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29831
       * if it is not found.
-
 
29832
       */
-
 
29833
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29834
        _Fields fields = findByThriftId(fieldId);
-
 
29835
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29836
        return fields;
-
 
29837
      }
-
 
29838
 
-
 
29839
      /**
-
 
29840
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29841
       */
-
 
29842
      public static _Fields findByName(String name) {
-
 
29843
        return byName.get(name);
-
 
29844
      }
-
 
29845
 
-
 
29846
      private final short _thriftId;
-
 
29847
      private final String _fieldName;
-
 
29848
 
-
 
29849
      _Fields(short thriftId, String fieldName) {
-
 
29850
        _thriftId = thriftId;
-
 
29851
        _fieldName = fieldName;
-
 
29852
      }
-
 
29853
 
-
 
29854
      public short getThriftFieldId() {
-
 
29855
        return _thriftId;
-
 
29856
      }
-
 
29857
 
-
 
29858
      public String getFieldName() {
-
 
29859
        return _fieldName;
-
 
29860
      }
-
 
29861
    }
-
 
29862
 
-
 
29863
    // isset id assignments
-
 
29864
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
29865
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
29866
 
-
 
29867
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
29868
    static {
-
 
29869
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
29870
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29871
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
29872
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29873
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
29874
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
29875
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(billOrder_result.class, metaDataMap);
-
 
29876
    }
-
 
29877
 
-
 
29878
    public billOrder_result() {
-
 
29879
    }
-
 
29880
 
-
 
29881
    public billOrder_result(
-
 
29882
      boolean success,
-
 
29883
      TransactionServiceException ex)
-
 
29884
    {
-
 
29885
      this();
-
 
29886
      this.success = success;
-
 
29887
      setSuccessIsSet(true);
-
 
29888
      this.ex = ex;
-
 
29889
    }
-
 
29890
 
-
 
29891
    /**
-
 
29892
     * Performs a deep copy on <i>other</i>.
-
 
29893
     */
-
 
29894
    public billOrder_result(billOrder_result other) {
-
 
29895
      __isset_bit_vector.clear();
-
 
29896
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
29897
      this.success = other.success;
-
 
29898
      if (other.isSetEx()) {
-
 
29899
        this.ex = new TransactionServiceException(other.ex);
-
 
29900
      }
-
 
29901
    }
-
 
29902
 
-
 
29903
    public billOrder_result deepCopy() {
-
 
29904
      return new billOrder_result(this);
-
 
29905
    }
-
 
29906
 
-
 
29907
    @Override
-
 
29908
    public void clear() {
-
 
29909
      setSuccessIsSet(false);
-
 
29910
      this.success = false;
-
 
29911
      this.ex = null;
-
 
29912
    }
-
 
29913
 
-
 
29914
    public boolean isSuccess() {
-
 
29915
      return this.success;
-
 
29916
    }
-
 
29917
 
-
 
29918
    public void setSuccess(boolean success) {
-
 
29919
      this.success = success;
-
 
29920
      setSuccessIsSet(true);
-
 
29921
    }
-
 
29922
 
-
 
29923
    public void unsetSuccess() {
-
 
29924
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
29925
    }
-
 
29926
 
-
 
29927
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
29928
    public boolean isSetSuccess() {
-
 
29929
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
29930
    }
-
 
29931
 
-
 
29932
    public void setSuccessIsSet(boolean value) {
-
 
29933
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
29934
    }
-
 
29935
 
-
 
29936
    public TransactionServiceException getEx() {
-
 
29937
      return this.ex;
-
 
29938
    }
-
 
29939
 
-
 
29940
    public void setEx(TransactionServiceException ex) {
-
 
29941
      this.ex = ex;
-
 
29942
    }
-
 
29943
 
-
 
29944
    public void unsetEx() {
-
 
29945
      this.ex = null;
-
 
29946
    }
-
 
29947
 
-
 
29948
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
29949
    public boolean isSetEx() {
-
 
29950
      return this.ex != null;
-
 
29951
    }
-
 
29952
 
-
 
29953
    public void setExIsSet(boolean value) {
-
 
29954
      if (!value) {
-
 
29955
        this.ex = null;
-
 
29956
      }
-
 
29957
    }
-
 
29958
 
-
 
29959
    public void setFieldValue(_Fields field, Object value) {
-
 
29960
      switch (field) {
-
 
29961
      case SUCCESS:
-
 
29962
        if (value == null) {
-
 
29963
          unsetSuccess();
-
 
29964
        } else {
-
 
29965
          setSuccess((Boolean)value);
-
 
29966
        }
-
 
29967
        break;
-
 
29968
 
-
 
29969
      case EX:
-
 
29970
        if (value == null) {
-
 
29971
          unsetEx();
-
 
29972
        } else {
-
 
29973
          setEx((TransactionServiceException)value);
-
 
29974
        }
-
 
29975
        break;
-
 
29976
 
-
 
29977
      }
-
 
29978
    }
-
 
29979
 
-
 
29980
    public Object getFieldValue(_Fields field) {
-
 
29981
      switch (field) {
-
 
29982
      case SUCCESS:
-
 
29983
        return Boolean.valueOf(isSuccess());
-
 
29984
 
-
 
29985
      case EX:
-
 
29986
        return getEx();
-
 
29987
 
-
 
29988
      }
-
 
29989
      throw new IllegalStateException();
-
 
29990
    }
-
 
29991
 
-
 
29992
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
29993
    public boolean isSet(_Fields field) {
-
 
29994
      if (field == null) {
-
 
29995
        throw new IllegalArgumentException();
-
 
29996
      }
-
 
29997
 
-
 
29998
      switch (field) {
-
 
29999
      case SUCCESS:
-
 
30000
        return isSetSuccess();
-
 
30001
      case EX:
-
 
30002
        return isSetEx();
-
 
30003
      }
-
 
30004
      throw new IllegalStateException();
-
 
30005
    }
-
 
30006
 
-
 
30007
    @Override
-
 
30008
    public boolean equals(Object that) {
-
 
30009
      if (that == null)
-
 
30010
        return false;
-
 
30011
      if (that instanceof billOrder_result)
-
 
30012
        return this.equals((billOrder_result)that);
-
 
30013
      return false;
-
 
30014
    }
-
 
30015
 
-
 
30016
    public boolean equals(billOrder_result that) {
-
 
30017
      if (that == null)
-
 
30018
        return false;
-
 
30019
 
-
 
30020
      boolean this_present_success = true;
-
 
30021
      boolean that_present_success = true;
-
 
30022
      if (this_present_success || that_present_success) {
-
 
30023
        if (!(this_present_success && that_present_success))
-
 
30024
          return false;
-
 
30025
        if (this.success != that.success)
-
 
30026
          return false;
-
 
30027
      }
-
 
30028
 
-
 
30029
      boolean this_present_ex = true && this.isSetEx();
-
 
30030
      boolean that_present_ex = true && that.isSetEx();
-
 
30031
      if (this_present_ex || that_present_ex) {
-
 
30032
        if (!(this_present_ex && that_present_ex))
-
 
30033
          return false;
-
 
30034
        if (!this.ex.equals(that.ex))
-
 
30035
          return false;
-
 
30036
      }
-
 
30037
 
-
 
30038
      return true;
-
 
30039
    }
-
 
30040
 
-
 
30041
    @Override
-
 
30042
    public int hashCode() {
-
 
30043
      return 0;
-
 
30044
    }
-
 
30045
 
-
 
30046
    public int compareTo(billOrder_result other) {
-
 
30047
      if (!getClass().equals(other.getClass())) {
-
 
30048
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30049
      }
-
 
30050
 
-
 
30051
      int lastComparison = 0;
-
 
30052
      billOrder_result typedOther = (billOrder_result)other;
-
 
30053
 
-
 
30054
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
30055
      if (lastComparison != 0) {
-
 
30056
        return lastComparison;
-
 
30057
      }
-
 
30058
      if (isSetSuccess()) {
-
 
30059
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
30060
        if (lastComparison != 0) {
-
 
30061
          return lastComparison;
-
 
30062
        }
-
 
30063
      }
-
 
30064
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
30065
      if (lastComparison != 0) {
-
 
30066
        return lastComparison;
-
 
30067
      }
-
 
30068
      if (isSetEx()) {
-
 
30069
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
30070
        if (lastComparison != 0) {
-
 
30071
          return lastComparison;
-
 
30072
        }
-
 
30073
      }
-
 
30074
      return 0;
-
 
30075
    }
-
 
30076
 
-
 
30077
    public _Fields fieldForId(int fieldId) {
-
 
30078
      return _Fields.findByThriftId(fieldId);
-
 
30079
    }
-
 
30080
 
-
 
30081
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
30082
      org.apache.thrift.protocol.TField field;
-
 
30083
      iprot.readStructBegin();
-
 
30084
      while (true)
-
 
30085
      {
-
 
30086
        field = iprot.readFieldBegin();
-
 
30087
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
30088
          break;
-
 
30089
        }
-
 
30090
        switch (field.id) {
-
 
30091
          case 0: // SUCCESS
-
 
30092
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
30093
              this.success = iprot.readBool();
-
 
30094
              setSuccessIsSet(true);
-
 
30095
            } else { 
-
 
30096
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30097
            }
-
 
30098
            break;
-
 
30099
          case 1: // EX
-
 
30100
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
30101
              this.ex = new TransactionServiceException();
-
 
30102
              this.ex.read(iprot);
-
 
30103
            } else { 
-
 
30104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30105
            }
-
 
30106
            break;
-
 
30107
          default:
-
 
30108
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30109
        }
-
 
30110
        iprot.readFieldEnd();
-
 
30111
      }
-
 
30112
      iprot.readStructEnd();
-
 
30113
      validate();
-
 
30114
    }
-
 
30115
 
-
 
30116
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
30117
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30118
 
-
 
30119
      if (this.isSetSuccess()) {
-
 
30120
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
30121
        oprot.writeBool(this.success);
-
 
30122
        oprot.writeFieldEnd();
-
 
30123
      } else if (this.isSetEx()) {
-
 
30124
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
30125
        this.ex.write(oprot);
-
 
30126
        oprot.writeFieldEnd();
-
 
30127
      }
-
 
30128
      oprot.writeFieldStop();
-
 
30129
      oprot.writeStructEnd();
-
 
30130
    }
-
 
30131
 
-
 
30132
    @Override
-
 
30133
    public String toString() {
-
 
30134
      StringBuilder sb = new StringBuilder("billOrder_result(");
-
 
30135
      boolean first = true;
-
 
30136
 
-
 
30137
      sb.append("success:");
-
 
30138
      sb.append(this.success);
-
 
30139
      first = false;
-
 
30140
      if (!first) sb.append(", ");
-
 
30141
      sb.append("ex:");
-
 
30142
      if (this.ex == null) {
-
 
30143
        sb.append("null");
-
 
30144
      } else {
-
 
30145
        sb.append(this.ex);
-
 
30146
      }
-
 
30147
      first = false;
-
 
30148
      sb.append(")");
-
 
30149
      return sb.toString();
-
 
30150
    }
-
 
30151
 
-
 
30152
    public void validate() throws org.apache.thrift.TException {
-
 
30153
      // check for required fields
-
 
30154
    }
-
 
30155
 
-
 
30156
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
30157
      try {
-
 
30158
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
30159
      } catch (org.apache.thrift.TException te) {
-
 
30160
        throw new java.io.IOException(te);
-
 
30161
      }
-
 
30162
    }
-
 
30163
 
-
 
30164
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
30165
      try {
-
 
30166
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
30167
      } catch (org.apache.thrift.TException te) {
-
 
30168
        throw new java.io.IOException(te);
-
 
30169
      }
-
 
30170
    }
-
 
30171
 
-
 
30172
  }
-
 
30173
 
-
 
30174
  public static class addBillingDetails_args implements org.apache.thrift.TBase<addBillingDetails_args, addBillingDetails_args._Fields>, java.io.Serializable, Cloneable   {
29318
  public static class addBillingDetails_args implements org.apache.thrift.TBase<addBillingDetails_args, addBillingDetails_args._Fields>, java.io.Serializable, Cloneable   {
30175
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");
29319
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");
30176
 
29320
 
30177
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
29321
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
30178
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)2);
29322
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
29323
    private static final org.apache.thrift.protocol.TField IMEI_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("imeiNumber", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
29324
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
30179
    private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billed_by", org.apache.thrift.protocol.TType.STRING, (short)3);
29325
    private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billed_by", org.apache.thrift.protocol.TType.STRING, (short)5);
30180
    private static final org.apache.thrift.protocol.TField JACKET_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("jacketNumber", org.apache.thrift.protocol.TType.I64, (short)4);
29326
    private static final org.apache.thrift.protocol.TField JACKET_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("jacketNumber", org.apache.thrift.protocol.TType.I64, (short)6);
-
 
29327
    private static final org.apache.thrift.protocol.TField BILLING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("billingType", org.apache.thrift.protocol.TType.I64, (short)7);
-
 
29328
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)8);
30181
 
29329
 
30182
    private long orderId; // required
29330
    private long orderId; // required
30183
    private String invoice_number; // required
29331
    private String invoice_number; // required
-
 
29332
    private long imeiNumber; // required
-
 
29333
    private String itemNumber; // required
30184
    private String billed_by; // required
29334
    private String billed_by; // required
30185
    private long jacketNumber; // required
29335
    private long jacketNumber; // required
-
 
29336
    private long billingType; // required
-
 
29337
    private long vendorId; // required
30186
 
29338
 
30187
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30188
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30189
      ORDER_ID((short)1, "orderId"),
29341
      ORDER_ID((short)1, "orderId"),
30190
      INVOICE_NUMBER((short)2, "invoice_number"),
29342
      INVOICE_NUMBER((short)2, "invoice_number"),
-
 
29343
      IMEI_NUMBER((short)3, "imeiNumber"),
-
 
29344
      ITEM_NUMBER((short)4, "itemNumber"),
30191
      BILLED_BY((short)3, "billed_by"),
29345
      BILLED_BY((short)5, "billed_by"),
30192
      JACKET_NUMBER((short)4, "jacketNumber");
29346
      JACKET_NUMBER((short)6, "jacketNumber"),
-
 
29347
      BILLING_TYPE((short)7, "billingType"),
-
 
29348
      VENDOR_ID((short)8, "vendorId");
30193
 
29349
 
30194
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29350
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30195
 
29351
 
30196
      static {
29352
      static {
30197
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29353
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 30206... Line 29362...
30206
        switch(fieldId) {
29362
        switch(fieldId) {
30207
          case 1: // ORDER_ID
29363
          case 1: // ORDER_ID
30208
            return ORDER_ID;
29364
            return ORDER_ID;
30209
          case 2: // INVOICE_NUMBER
29365
          case 2: // INVOICE_NUMBER
30210
            return INVOICE_NUMBER;
29366
            return INVOICE_NUMBER;
-
 
29367
          case 3: // IMEI_NUMBER
-
 
29368
            return IMEI_NUMBER;
-
 
29369
          case 4: // ITEM_NUMBER
-
 
29370
            return ITEM_NUMBER;
30211
          case 3: // BILLED_BY
29371
          case 5: // BILLED_BY
30212
            return BILLED_BY;
29372
            return BILLED_BY;
30213
          case 4: // JACKET_NUMBER
29373
          case 6: // JACKET_NUMBER
30214
            return JACKET_NUMBER;
29374
            return JACKET_NUMBER;
-
 
29375
          case 7: // BILLING_TYPE
-
 
29376
            return BILLING_TYPE;
-
 
29377
          case 8: // VENDOR_ID
-
 
29378
            return VENDOR_ID;
30215
          default:
29379
          default:
30216
            return null;
29380
            return null;
30217
        }
29381
        }
30218
      }
29382
      }
30219
 
29383
 
Line 30251... Line 29415...
30251
      }
29415
      }
30252
    }
29416
    }
30253
 
29417
 
30254
    // isset id assignments
29418
    // isset id assignments
30255
    private static final int __ORDERID_ISSET_ID = 0;
29419
    private static final int __ORDERID_ISSET_ID = 0;
-
 
29420
    private static final int __IMEINUMBER_ISSET_ID = 1;
30256
    private static final int __JACKETNUMBER_ISSET_ID = 1;
29421
    private static final int __JACKETNUMBER_ISSET_ID = 2;
-
 
29422
    private static final int __BILLINGTYPE_ISSET_ID = 3;
-
 
29423
    private static final int __VENDORID_ISSET_ID = 4;
30257
    private BitSet __isset_bit_vector = new BitSet(2);
29424
    private BitSet __isset_bit_vector = new BitSet(5);
30258
 
29425
 
30259
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29426
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30260
    static {
29427
    static {
30261
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29428
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30262
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29429
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30263
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29430
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30264
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoice_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29431
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoice_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30265
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
29432
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
29433
      tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imeiNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29434
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
29435
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30266
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29437
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30267
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
29438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30268
      tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29439
      tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30269
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
29441
      tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29442
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
29443
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29444
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30270
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29445
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30271
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);
29446
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);
30272
    }
29447
    }
30273
 
29448
 
30274
    public addBillingDetails_args() {
29449
    public addBillingDetails_args() {
30275
    }
29450
    }
30276
 
29451
 
30277
    public addBillingDetails_args(
29452
    public addBillingDetails_args(
30278
      long orderId,
29453
      long orderId,
30279
      String invoice_number,
29454
      String invoice_number,
-
 
29455
      long imeiNumber,
-
 
29456
      String itemNumber,
30280
      String billed_by,
29457
      String billed_by,
30281
      long jacketNumber)
29458
      long jacketNumber,
-
 
29459
      long billingType,
-
 
29460
      long vendorId)
30282
    {
29461
    {
30283
      this();
29462
      this();
30284
      this.orderId = orderId;
29463
      this.orderId = orderId;
30285
      setOrderIdIsSet(true);
29464
      setOrderIdIsSet(true);
30286
      this.invoice_number = invoice_number;
29465
      this.invoice_number = invoice_number;
-
 
29466
      this.imeiNumber = imeiNumber;
-
 
29467
      setImeiNumberIsSet(true);
-
 
29468
      this.itemNumber = itemNumber;
30287
      this.billed_by = billed_by;
29469
      this.billed_by = billed_by;
30288
      this.jacketNumber = jacketNumber;
29470
      this.jacketNumber = jacketNumber;
30289
      setJacketNumberIsSet(true);
29471
      setJacketNumberIsSet(true);
-
 
29472
      this.billingType = billingType;
-
 
29473
      setBillingTypeIsSet(true);
-
 
29474
      this.vendorId = vendorId;
-
 
29475
      setVendorIdIsSet(true);
30290
    }
29476
    }
30291
 
29477
 
30292
    /**
29478
    /**
30293
     * Performs a deep copy on <i>other</i>.
29479
     * Performs a deep copy on <i>other</i>.
30294
     */
29480
     */
Line 30297... Line 29483...
30297
      __isset_bit_vector.or(other.__isset_bit_vector);
29483
      __isset_bit_vector.or(other.__isset_bit_vector);
30298
      this.orderId = other.orderId;
29484
      this.orderId = other.orderId;
30299
      if (other.isSetInvoice_number()) {
29485
      if (other.isSetInvoice_number()) {
30300
        this.invoice_number = other.invoice_number;
29486
        this.invoice_number = other.invoice_number;
30301
      }
29487
      }
-
 
29488
      this.imeiNumber = other.imeiNumber;
-
 
29489
      if (other.isSetItemNumber()) {
-
 
29490
        this.itemNumber = other.itemNumber;
-
 
29491
      }
30302
      if (other.isSetBilled_by()) {
29492
      if (other.isSetBilled_by()) {
30303
        this.billed_by = other.billed_by;
29493
        this.billed_by = other.billed_by;
30304
      }
29494
      }
30305
      this.jacketNumber = other.jacketNumber;
29495
      this.jacketNumber = other.jacketNumber;
-
 
29496
      this.billingType = other.billingType;
-
 
29497
      this.vendorId = other.vendorId;
30306
    }
29498
    }
30307
 
29499
 
30308
    public addBillingDetails_args deepCopy() {
29500
    public addBillingDetails_args deepCopy() {
30309
      return new addBillingDetails_args(this);
29501
      return new addBillingDetails_args(this);
30310
    }
29502
    }
Line 30312... Line 29504...
30312
    @Override
29504
    @Override
30313
    public void clear() {
29505
    public void clear() {
30314
      setOrderIdIsSet(false);
29506
      setOrderIdIsSet(false);
30315
      this.orderId = 0;
29507
      this.orderId = 0;
30316
      this.invoice_number = null;
29508
      this.invoice_number = null;
-
 
29509
      setImeiNumberIsSet(false);
-
 
29510
      this.imeiNumber = 0;
-
 
29511
      this.itemNumber = null;
30317
      this.billed_by = null;
29512
      this.billed_by = null;
30318
      setJacketNumberIsSet(false);
29513
      setJacketNumberIsSet(false);
30319
      this.jacketNumber = 0;
29514
      this.jacketNumber = 0;
-
 
29515
      setBillingTypeIsSet(false);
-
 
29516
      this.billingType = 0;
-
 
29517
      setVendorIdIsSet(false);
-
 
29518
      this.vendorId = 0;
30320
    }
29519
    }
30321
 
29520
 
30322
    public long getOrderId() {
29521
    public long getOrderId() {
30323
      return this.orderId;
29522
      return this.orderId;
30324
    }
29523
    }
Line 30362... Line 29561...
30362
      if (!value) {
29561
      if (!value) {
30363
        this.invoice_number = null;
29562
        this.invoice_number = null;
30364
      }
29563
      }
30365
    }
29564
    }
30366
 
29565
 
30367
    public String getBilled_by() {
-
 
30368
      return this.billed_by;
-
 
30369
    }
-
 
30370
 
-
 
30371
    public void setBilled_by(String billed_by) {
-
 
30372
      this.billed_by = billed_by;
-
 
30373
    }
-
 
30374
 
-
 
30375
    public void unsetBilled_by() {
-
 
30376
      this.billed_by = null;
-
 
30377
    }
-
 
30378
 
-
 
30379
    /** Returns true if field billed_by is set (has been assigned a value) and false otherwise */
-
 
30380
    public boolean isSetBilled_by() {
-
 
30381
      return this.billed_by != null;
-
 
30382
    }
-
 
30383
 
-
 
30384
    public void setBilled_byIsSet(boolean value) {
-
 
30385
      if (!value) {
-
 
30386
        this.billed_by = null;
-
 
30387
      }
-
 
30388
    }
-
 
30389
 
-
 
30390
    public long getJacketNumber() {
-
 
30391
      return this.jacketNumber;
-
 
30392
    }
-
 
30393
 
-
 
30394
    public void setJacketNumber(long jacketNumber) {
-
 
30395
      this.jacketNumber = jacketNumber;
-
 
30396
      setJacketNumberIsSet(true);
-
 
30397
    }
-
 
30398
 
-
 
30399
    public void unsetJacketNumber() {
-
 
30400
      __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
-
 
30401
    }
-
 
30402
 
-
 
30403
    /** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */
-
 
30404
    public boolean isSetJacketNumber() {
-
 
30405
      return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
-
 
30406
    }
-
 
30407
 
-
 
30408
    public void setJacketNumberIsSet(boolean value) {
-
 
30409
      __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
-
 
30410
    }
-
 
30411
 
-
 
30412
    public void setFieldValue(_Fields field, Object value) {
-
 
30413
      switch (field) {
-
 
30414
      case ORDER_ID:
-
 
30415
        if (value == null) {
-
 
30416
          unsetOrderId();
-
 
30417
        } else {
-
 
30418
          setOrderId((Long)value);
-
 
30419
        }
-
 
30420
        break;
-
 
30421
 
-
 
30422
      case INVOICE_NUMBER:
-
 
30423
        if (value == null) {
-
 
30424
          unsetInvoice_number();
-
 
30425
        } else {
-
 
30426
          setInvoice_number((String)value);
-
 
30427
        }
-
 
30428
        break;
-
 
30429
 
-
 
30430
      case BILLED_BY:
-
 
30431
        if (value == null) {
-
 
30432
          unsetBilled_by();
-
 
30433
        } else {
-
 
30434
          setBilled_by((String)value);
-
 
30435
        }
-
 
30436
        break;
-
 
30437
 
-
 
30438
      case JACKET_NUMBER:
-
 
30439
        if (value == null) {
-
 
30440
          unsetJacketNumber();
-
 
30441
        } else {
-
 
30442
          setJacketNumber((Long)value);
-
 
30443
        }
-
 
30444
        break;
-
 
30445
 
-
 
30446
      }
-
 
30447
    }
-
 
30448
 
-
 
30449
    public Object getFieldValue(_Fields field) {
-
 
30450
      switch (field) {
-
 
30451
      case ORDER_ID:
-
 
30452
        return Long.valueOf(getOrderId());
-
 
30453
 
-
 
30454
      case INVOICE_NUMBER:
-
 
30455
        return getInvoice_number();
-
 
30456
 
-
 
30457
      case BILLED_BY:
-
 
30458
        return getBilled_by();
-
 
30459
 
-
 
30460
      case JACKET_NUMBER:
-
 
30461
        return Long.valueOf(getJacketNumber());
-
 
30462
 
-
 
30463
      }
-
 
30464
      throw new IllegalStateException();
-
 
30465
    }
-
 
30466
 
-
 
30467
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
30468
    public boolean isSet(_Fields field) {
-
 
30469
      if (field == null) {
-
 
30470
        throw new IllegalArgumentException();
-
 
30471
      }
-
 
30472
 
-
 
30473
      switch (field) {
-
 
30474
      case ORDER_ID:
-
 
30475
        return isSetOrderId();
-
 
30476
      case INVOICE_NUMBER:
-
 
30477
        return isSetInvoice_number();
-
 
30478
      case BILLED_BY:
-
 
30479
        return isSetBilled_by();
-
 
30480
      case JACKET_NUMBER:
-
 
30481
        return isSetJacketNumber();
-
 
30482
      }
-
 
30483
      throw new IllegalStateException();
-
 
30484
    }
-
 
30485
 
-
 
30486
    @Override
-
 
30487
    public boolean equals(Object that) {
-
 
30488
      if (that == null)
-
 
30489
        return false;
-
 
30490
      if (that instanceof addBillingDetails_args)
-
 
30491
        return this.equals((addBillingDetails_args)that);
-
 
30492
      return false;
-
 
30493
    }
-
 
30494
 
-
 
30495
    public boolean equals(addBillingDetails_args that) {
-
 
30496
      if (that == null)
-
 
30497
        return false;
-
 
30498
 
-
 
30499
      boolean this_present_orderId = true;
-
 
30500
      boolean that_present_orderId = true;
-
 
30501
      if (this_present_orderId || that_present_orderId) {
-
 
30502
        if (!(this_present_orderId && that_present_orderId))
-
 
30503
          return false;
-
 
30504
        if (this.orderId != that.orderId)
-
 
30505
          return false;
-
 
30506
      }
-
 
30507
 
-
 
30508
      boolean this_present_invoice_number = true && this.isSetInvoice_number();
-
 
30509
      boolean that_present_invoice_number = true && that.isSetInvoice_number();
-
 
30510
      if (this_present_invoice_number || that_present_invoice_number) {
-
 
30511
        if (!(this_present_invoice_number && that_present_invoice_number))
-
 
30512
          return false;
-
 
30513
        if (!this.invoice_number.equals(that.invoice_number))
-
 
30514
          return false;
-
 
30515
      }
-
 
30516
 
-
 
30517
      boolean this_present_billed_by = true && this.isSetBilled_by();
-
 
30518
      boolean that_present_billed_by = true && that.isSetBilled_by();
-
 
30519
      if (this_present_billed_by || that_present_billed_by) {
-
 
30520
        if (!(this_present_billed_by && that_present_billed_by))
-
 
30521
          return false;
-
 
30522
        if (!this.billed_by.equals(that.billed_by))
-
 
30523
          return false;
-
 
30524
      }
-
 
30525
 
-
 
30526
      boolean this_present_jacketNumber = true;
-
 
30527
      boolean that_present_jacketNumber = true;
-
 
30528
      if (this_present_jacketNumber || that_present_jacketNumber) {
-
 
30529
        if (!(this_present_jacketNumber && that_present_jacketNumber))
-
 
30530
          return false;
-
 
30531
        if (this.jacketNumber != that.jacketNumber)
-
 
30532
          return false;
-
 
30533
      }
-
 
30534
 
-
 
30535
      return true;
-
 
30536
    }
-
 
30537
 
-
 
30538
    @Override
-
 
30539
    public int hashCode() {
-
 
30540
      return 0;
-
 
30541
    }
-
 
30542
 
-
 
30543
    public int compareTo(addBillingDetails_args other) {
-
 
30544
      if (!getClass().equals(other.getClass())) {
-
 
30545
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30546
      }
-
 
30547
 
-
 
30548
      int lastComparison = 0;
-
 
30549
      addBillingDetails_args typedOther = (addBillingDetails_args)other;
-
 
30550
 
-
 
30551
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
30552
      if (lastComparison != 0) {
-
 
30553
        return lastComparison;
-
 
30554
      }
-
 
30555
      if (isSetOrderId()) {
-
 
30556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
30557
        if (lastComparison != 0) {
-
 
30558
          return lastComparison;
-
 
30559
        }
-
 
30560
      }
-
 
30561
      lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(typedOther.isSetInvoice_number());
-
 
30562
      if (lastComparison != 0) {
-
 
30563
        return lastComparison;
-
 
30564
      }
-
 
30565
      if (isSetInvoice_number()) {
-
 
30566
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoice_number, typedOther.invoice_number);
-
 
30567
        if (lastComparison != 0) {
-
 
30568
          return lastComparison;
-
 
30569
        }
-
 
30570
      }
-
 
30571
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(typedOther.isSetBilled_by());
-
 
30572
      if (lastComparison != 0) {
-
 
30573
        return lastComparison;
-
 
30574
      }
-
 
30575
      if (isSetBilled_by()) {
-
 
30576
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billed_by, typedOther.billed_by);
-
 
30577
        if (lastComparison != 0) {
-
 
30578
          return lastComparison;
-
 
30579
        }
-
 
30580
      }
-
 
30581
      lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());
-
 
30582
      if (lastComparison != 0) {
-
 
30583
        return lastComparison;
-
 
30584
      }
-
 
30585
      if (isSetJacketNumber()) {
-
 
30586
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);
-
 
30587
        if (lastComparison != 0) {
-
 
30588
          return lastComparison;
-
 
30589
        }
-
 
30590
      }
-
 
30591
      return 0;
-
 
30592
    }
-
 
30593
 
-
 
30594
    public _Fields fieldForId(int fieldId) {
-
 
30595
      return _Fields.findByThriftId(fieldId);
-
 
30596
    }
-
 
30597
 
-
 
30598
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
30599
      org.apache.thrift.protocol.TField field;
-
 
30600
      iprot.readStructBegin();
-
 
30601
      while (true)
-
 
30602
      {
-
 
30603
        field = iprot.readFieldBegin();
-
 
30604
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
30605
          break;
-
 
30606
        }
-
 
30607
        switch (field.id) {
-
 
30608
          case 1: // ORDER_ID
-
 
30609
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
30610
              this.orderId = iprot.readI64();
-
 
30611
              setOrderIdIsSet(true);
-
 
30612
            } else { 
-
 
30613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30614
            }
-
 
30615
            break;
-
 
30616
          case 2: // INVOICE_NUMBER
-
 
30617
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
30618
              this.invoice_number = iprot.readString();
-
 
30619
            } else { 
-
 
30620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30621
            }
-
 
30622
            break;
-
 
30623
          case 3: // BILLED_BY
-
 
30624
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
30625
              this.billed_by = iprot.readString();
-
 
30626
            } else { 
-
 
30627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30628
            }
-
 
30629
            break;
-
 
30630
          case 4: // JACKET_NUMBER
-
 
30631
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
30632
              this.jacketNumber = iprot.readI64();
-
 
30633
              setJacketNumberIsSet(true);
-
 
30634
            } else { 
-
 
30635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30636
            }
-
 
30637
            break;
-
 
30638
          default:
-
 
30639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30640
        }
-
 
30641
        iprot.readFieldEnd();
-
 
30642
      }
-
 
30643
      iprot.readStructEnd();
-
 
30644
      validate();
-
 
30645
    }
-
 
30646
 
-
 
30647
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
30648
      validate();
-
 
30649
 
-
 
30650
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30651
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
30652
      oprot.writeI64(this.orderId);
-
 
30653
      oprot.writeFieldEnd();
-
 
30654
      if (this.invoice_number != null) {
-
 
30655
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
-
 
30656
        oprot.writeString(this.invoice_number);
-
 
30657
        oprot.writeFieldEnd();
-
 
30658
      }
-
 
30659
      if (this.billed_by != null) {
-
 
30660
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
-
 
30661
        oprot.writeString(this.billed_by);
-
 
30662
        oprot.writeFieldEnd();
-
 
30663
      }
-
 
30664
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
-
 
30665
      oprot.writeI64(this.jacketNumber);
-
 
30666
      oprot.writeFieldEnd();
-
 
30667
      oprot.writeFieldStop();
-
 
30668
      oprot.writeStructEnd();
-
 
30669
    }
-
 
30670
 
-
 
30671
    @Override
-
 
30672
    public String toString() {
-
 
30673
      StringBuilder sb = new StringBuilder("addBillingDetails_args(");
-
 
30674
      boolean first = true;
-
 
30675
 
-
 
30676
      sb.append("orderId:");
-
 
30677
      sb.append(this.orderId);
-
 
30678
      first = false;
-
 
30679
      if (!first) sb.append(", ");
-
 
30680
      sb.append("invoice_number:");
-
 
30681
      if (this.invoice_number == null) {
-
 
30682
        sb.append("null");
-
 
30683
      } else {
-
 
30684
        sb.append(this.invoice_number);
-
 
30685
      }
-
 
30686
      first = false;
-
 
30687
      if (!first) sb.append(", ");
-
 
30688
      sb.append("billed_by:");
-
 
30689
      if (this.billed_by == null) {
-
 
30690
        sb.append("null");
-
 
30691
      } else {
-
 
30692
        sb.append(this.billed_by);
-
 
30693
      }
-
 
30694
      first = false;
-
 
30695
      if (!first) sb.append(", ");
-
 
30696
      sb.append("jacketNumber:");
-
 
30697
      sb.append(this.jacketNumber);
-
 
30698
      first = false;
-
 
30699
      sb.append(")");
-
 
30700
      return sb.toString();
-
 
30701
    }
-
 
30702
 
-
 
30703
    public void validate() throws org.apache.thrift.TException {
-
 
30704
      // check for required fields
-
 
30705
    }
-
 
30706
 
-
 
30707
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
30708
      try {
-
 
30709
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
30710
      } catch (org.apache.thrift.TException te) {
-
 
30711
        throw new java.io.IOException(te);
-
 
30712
      }
-
 
30713
    }
-
 
30714
 
-
 
30715
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
30716
      try {
-
 
30717
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
30718
        __isset_bit_vector = new BitSet(1);
-
 
30719
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
30720
      } catch (org.apache.thrift.TException te) {
-
 
30721
        throw new java.io.IOException(te);
-
 
30722
      }
-
 
30723
    }
-
 
30724
 
-
 
30725
  }
-
 
30726
 
-
 
30727
  public static class addBillingDetails_result implements org.apache.thrift.TBase<addBillingDetails_result, addBillingDetails_result._Fields>, java.io.Serializable, Cloneable   {
-
 
30728
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_result");
-
 
30729
 
-
 
30730
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
30731
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
30732
 
-
 
30733
    private boolean success; // required
-
 
30734
    private TransactionServiceException ex; // required
-
 
30735
 
-
 
30736
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30737
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
30738
      SUCCESS((short)0, "success"),
-
 
30739
      EX((short)1, "ex");
-
 
30740
 
-
 
30741
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30742
 
-
 
30743
      static {
-
 
30744
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30745
          byName.put(field.getFieldName(), field);
-
 
30746
        }
-
 
30747
      }
-
 
30748
 
-
 
30749
      /**
-
 
30750
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30751
       */
-
 
30752
      public static _Fields findByThriftId(int fieldId) {
-
 
30753
        switch(fieldId) {
-
 
30754
          case 0: // SUCCESS
-
 
30755
            return SUCCESS;
-
 
30756
          case 1: // EX
-
 
30757
            return EX;
-
 
30758
          default:
-
 
30759
            return null;
-
 
30760
        }
-
 
30761
      }
-
 
30762
 
-
 
30763
      /**
-
 
30764
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30765
       * if it is not found.
-
 
30766
       */
-
 
30767
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30768
        _Fields fields = findByThriftId(fieldId);
-
 
30769
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30770
        return fields;
-
 
30771
      }
-
 
30772
 
-
 
30773
      /**
-
 
30774
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30775
       */
-
 
30776
      public static _Fields findByName(String name) {
-
 
30777
        return byName.get(name);
-
 
30778
      }
-
 
30779
 
-
 
30780
      private final short _thriftId;
-
 
30781
      private final String _fieldName;
-
 
30782
 
-
 
30783
      _Fields(short thriftId, String fieldName) {
-
 
30784
        _thriftId = thriftId;
-
 
30785
        _fieldName = fieldName;
-
 
30786
      }
-
 
30787
 
-
 
30788
      public short getThriftFieldId() {
-
 
30789
        return _thriftId;
-
 
30790
      }
-
 
30791
 
-
 
30792
      public String getFieldName() {
-
 
30793
        return _fieldName;
-
 
30794
      }
-
 
30795
    }
-
 
30796
 
-
 
30797
    // isset id assignments
-
 
30798
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
30799
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
30800
 
-
 
30801
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
30802
    static {
-
 
30803
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
30804
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
30805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
30806
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
30807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
30808
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
30809
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_result.class, metaDataMap);
-
 
30810
    }
-
 
30811
 
-
 
30812
    public addBillingDetails_result() {
-
 
30813
    }
-
 
30814
 
-
 
30815
    public addBillingDetails_result(
-
 
30816
      boolean success,
-
 
30817
      TransactionServiceException ex)
-
 
30818
    {
-
 
30819
      this();
-
 
30820
      this.success = success;
-
 
30821
      setSuccessIsSet(true);
-
 
30822
      this.ex = ex;
-
 
30823
    }
-
 
30824
 
-
 
30825
    /**
-
 
30826
     * Performs a deep copy on <i>other</i>.
-
 
30827
     */
-
 
30828
    public addBillingDetails_result(addBillingDetails_result other) {
-
 
30829
      __isset_bit_vector.clear();
-
 
30830
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
30831
      this.success = other.success;
-
 
30832
      if (other.isSetEx()) {
-
 
30833
        this.ex = new TransactionServiceException(other.ex);
-
 
30834
      }
-
 
30835
    }
-
 
30836
 
-
 
30837
    public addBillingDetails_result deepCopy() {
-
 
30838
      return new addBillingDetails_result(this);
-
 
30839
    }
-
 
30840
 
-
 
30841
    @Override
-
 
30842
    public void clear() {
-
 
30843
      setSuccessIsSet(false);
-
 
30844
      this.success = false;
-
 
30845
      this.ex = null;
-
 
30846
    }
-
 
30847
 
-
 
30848
    public boolean isSuccess() {
-
 
30849
      return this.success;
-
 
30850
    }
-
 
30851
 
-
 
30852
    public void setSuccess(boolean success) {
-
 
30853
      this.success = success;
-
 
30854
      setSuccessIsSet(true);
-
 
30855
    }
-
 
30856
 
-
 
30857
    public void unsetSuccess() {
-
 
30858
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
30859
    }
-
 
30860
 
-
 
30861
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
30862
    public boolean isSetSuccess() {
-
 
30863
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
30864
    }
-
 
30865
 
-
 
30866
    public void setSuccessIsSet(boolean value) {
-
 
30867
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
30868
    }
-
 
30869
 
-
 
30870
    public TransactionServiceException getEx() {
-
 
30871
      return this.ex;
-
 
30872
    }
-
 
30873
 
-
 
30874
    public void setEx(TransactionServiceException ex) {
-
 
30875
      this.ex = ex;
-
 
30876
    }
-
 
30877
 
-
 
30878
    public void unsetEx() {
-
 
30879
      this.ex = null;
-
 
30880
    }
-
 
30881
 
-
 
30882
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
30883
    public boolean isSetEx() {
-
 
30884
      return this.ex != null;
-
 
30885
    }
-
 
30886
 
-
 
30887
    public void setExIsSet(boolean value) {
-
 
30888
      if (!value) {
-
 
30889
        this.ex = null;
-
 
30890
      }
-
 
30891
    }
-
 
30892
 
-
 
30893
    public void setFieldValue(_Fields field, Object value) {
-
 
30894
      switch (field) {
-
 
30895
      case SUCCESS:
-
 
30896
        if (value == null) {
-
 
30897
          unsetSuccess();
-
 
30898
        } else {
-
 
30899
          setSuccess((Boolean)value);
-
 
30900
        }
-
 
30901
        break;
-
 
30902
 
-
 
30903
      case EX:
-
 
30904
        if (value == null) {
-
 
30905
          unsetEx();
-
 
30906
        } else {
-
 
30907
          setEx((TransactionServiceException)value);
-
 
30908
        }
-
 
30909
        break;
-
 
30910
 
-
 
30911
      }
-
 
30912
    }
-
 
30913
 
-
 
30914
    public Object getFieldValue(_Fields field) {
-
 
30915
      switch (field) {
-
 
30916
      case SUCCESS:
-
 
30917
        return Boolean.valueOf(isSuccess());
-
 
30918
 
-
 
30919
      case EX:
-
 
30920
        return getEx();
-
 
30921
 
-
 
30922
      }
-
 
30923
      throw new IllegalStateException();
-
 
30924
    }
-
 
30925
 
-
 
30926
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
30927
    public boolean isSet(_Fields field) {
-
 
30928
      if (field == null) {
-
 
30929
        throw new IllegalArgumentException();
-
 
30930
      }
-
 
30931
 
-
 
30932
      switch (field) {
-
 
30933
      case SUCCESS:
-
 
30934
        return isSetSuccess();
-
 
30935
      case EX:
-
 
30936
        return isSetEx();
-
 
30937
      }
-
 
30938
      throw new IllegalStateException();
-
 
30939
    }
-
 
30940
 
-
 
30941
    @Override
-
 
30942
    public boolean equals(Object that) {
-
 
30943
      if (that == null)
-
 
30944
        return false;
-
 
30945
      if (that instanceof addBillingDetails_result)
-
 
30946
        return this.equals((addBillingDetails_result)that);
-
 
30947
      return false;
-
 
30948
    }
-
 
30949
 
-
 
30950
    public boolean equals(addBillingDetails_result that) {
-
 
30951
      if (that == null)
-
 
30952
        return false;
-
 
30953
 
-
 
30954
      boolean this_present_success = true;
-
 
30955
      boolean that_present_success = true;
-
 
30956
      if (this_present_success || that_present_success) {
-
 
30957
        if (!(this_present_success && that_present_success))
-
 
30958
          return false;
-
 
30959
        if (this.success != that.success)
-
 
30960
          return false;
-
 
30961
      }
-
 
30962
 
-
 
30963
      boolean this_present_ex = true && this.isSetEx();
-
 
30964
      boolean that_present_ex = true && that.isSetEx();
-
 
30965
      if (this_present_ex || that_present_ex) {
-
 
30966
        if (!(this_present_ex && that_present_ex))
-
 
30967
          return false;
-
 
30968
        if (!this.ex.equals(that.ex))
-
 
30969
          return false;
-
 
30970
      }
-
 
30971
 
-
 
30972
      return true;
-
 
30973
    }
-
 
30974
 
-
 
30975
    @Override
-
 
30976
    public int hashCode() {
-
 
30977
      return 0;
-
 
30978
    }
-
 
30979
 
-
 
30980
    public int compareTo(addBillingDetails_result other) {
-
 
30981
      if (!getClass().equals(other.getClass())) {
-
 
30982
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30983
      }
-
 
30984
 
-
 
30985
      int lastComparison = 0;
-
 
30986
      addBillingDetails_result typedOther = (addBillingDetails_result)other;
-
 
30987
 
-
 
30988
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
30989
      if (lastComparison != 0) {
-
 
30990
        return lastComparison;
-
 
30991
      }
-
 
30992
      if (isSetSuccess()) {
-
 
30993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
30994
        if (lastComparison != 0) {
-
 
30995
          return lastComparison;
-
 
30996
        }
-
 
30997
      }
-
 
30998
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
30999
      if (lastComparison != 0) {
-
 
31000
        return lastComparison;
-
 
31001
      }
-
 
31002
      if (isSetEx()) {
-
 
31003
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
31004
        if (lastComparison != 0) {
-
 
31005
          return lastComparison;
-
 
31006
        }
-
 
31007
      }
-
 
31008
      return 0;
-
 
31009
    }
-
 
31010
 
-
 
31011
    public _Fields fieldForId(int fieldId) {
-
 
31012
      return _Fields.findByThriftId(fieldId);
-
 
31013
    }
-
 
31014
 
-
 
31015
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
31016
      org.apache.thrift.protocol.TField field;
-
 
31017
      iprot.readStructBegin();
-
 
31018
      while (true)
-
 
31019
      {
-
 
31020
        field = iprot.readFieldBegin();
-
 
31021
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
31022
          break;
-
 
31023
        }
-
 
31024
        switch (field.id) {
-
 
31025
          case 0: // SUCCESS
-
 
31026
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
31027
              this.success = iprot.readBool();
-
 
31028
              setSuccessIsSet(true);
-
 
31029
            } else { 
-
 
31030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
31031
            }
-
 
31032
            break;
-
 
31033
          case 1: // EX
-
 
31034
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
31035
              this.ex = new TransactionServiceException();
-
 
31036
              this.ex.read(iprot);
-
 
31037
            } else { 
-
 
31038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
31039
            }
-
 
31040
            break;
-
 
31041
          default:
-
 
31042
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
31043
        }
-
 
31044
        iprot.readFieldEnd();
-
 
31045
      }
-
 
31046
      iprot.readStructEnd();
-
 
31047
      validate();
-
 
31048
    }
-
 
31049
 
-
 
31050
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
31051
      oprot.writeStructBegin(STRUCT_DESC);
-
 
31052
 
-
 
31053
      if (this.isSetSuccess()) {
-
 
31054
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
31055
        oprot.writeBool(this.success);
-
 
31056
        oprot.writeFieldEnd();
-
 
31057
      } else if (this.isSetEx()) {
-
 
31058
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
31059
        this.ex.write(oprot);
-
 
31060
        oprot.writeFieldEnd();
-
 
31061
      }
-
 
31062
      oprot.writeFieldStop();
-
 
31063
      oprot.writeStructEnd();
-
 
31064
    }
-
 
31065
 
-
 
31066
    @Override
-
 
31067
    public String toString() {
-
 
31068
      StringBuilder sb = new StringBuilder("addBillingDetails_result(");
-
 
31069
      boolean first = true;
-
 
31070
 
-
 
31071
      sb.append("success:");
-
 
31072
      sb.append(this.success);
-
 
31073
      first = false;
-
 
31074
      if (!first) sb.append(", ");
-
 
31075
      sb.append("ex:");
-
 
31076
      if (this.ex == null) {
-
 
31077
        sb.append("null");
-
 
31078
      } else {
-
 
31079
        sb.append(this.ex);
-
 
31080
      }
-
 
31081
      first = false;
-
 
31082
      sb.append(")");
-
 
31083
      return sb.toString();
-
 
31084
    }
-
 
31085
 
-
 
31086
    public void validate() throws org.apache.thrift.TException {
-
 
31087
      // check for required fields
-
 
31088
    }
-
 
31089
 
-
 
31090
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
31091
      try {
-
 
31092
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
31093
      } catch (org.apache.thrift.TException te) {
-
 
31094
        throw new java.io.IOException(te);
-
 
31095
      }
-
 
31096
    }
-
 
31097
 
-
 
31098
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
31099
      try {
-
 
31100
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
31101
      } catch (org.apache.thrift.TException te) {
-
 
31102
        throw new java.io.IOException(te);
-
 
31103
      }
-
 
31104
    }
-
 
31105
 
-
 
31106
  }
-
 
31107
 
-
 
31108
  public static class addJacketNumber_args implements org.apache.thrift.TBase<addJacketNumber_args, addJacketNumber_args._Fields>, java.io.Serializable, Cloneable   {
-
 
31109
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addJacketNumber_args");
-
 
31110
 
-
 
31111
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
31112
    private static final org.apache.thrift.protocol.TField JACKET_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("jacketNumber", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
31113
    private static final org.apache.thrift.protocol.TField IMEI_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("imeiNumber", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
31114
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
-
 
31115
    private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billedBy", org.apache.thrift.protocol.TType.STRING, (short)5);
-
 
31116
    private static final org.apache.thrift.protocol.TField BILLING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("billingType", org.apache.thrift.protocol.TType.I64, (short)6);
-
 
31117
 
-
 
31118
    private long orderId; // required
-
 
31119
    private long jacketNumber; // required
-
 
31120
    private long imeiNumber; // required
-
 
31121
    private String itemNumber; // required
-
 
31122
    private String billedBy; // required
-
 
31123
    private long billingType; // required
-
 
31124
 
-
 
31125
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
31126
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
31127
      ORDER_ID((short)1, "orderId"),
-
 
31128
      JACKET_NUMBER((short)2, "jacketNumber"),
-
 
31129
      IMEI_NUMBER((short)3, "imeiNumber"),
-
 
31130
      ITEM_NUMBER((short)4, "itemNumber"),
-
 
31131
      BILLED_BY((short)5, "billedBy"),
-
 
31132
      BILLING_TYPE((short)6, "billingType");
-
 
31133
 
-
 
31134
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
31135
 
-
 
31136
      static {
-
 
31137
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
31138
          byName.put(field.getFieldName(), field);
-
 
31139
        }
-
 
31140
      }
-
 
31141
 
-
 
31142
      /**
-
 
31143
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
31144
       */
-
 
31145
      public static _Fields findByThriftId(int fieldId) {
-
 
31146
        switch(fieldId) {
-
 
31147
          case 1: // ORDER_ID
-
 
31148
            return ORDER_ID;
-
 
31149
          case 2: // JACKET_NUMBER
-
 
31150
            return JACKET_NUMBER;
-
 
31151
          case 3: // IMEI_NUMBER
-
 
31152
            return IMEI_NUMBER;
-
 
31153
          case 4: // ITEM_NUMBER
-
 
31154
            return ITEM_NUMBER;
-
 
31155
          case 5: // BILLED_BY
-
 
31156
            return BILLED_BY;
-
 
31157
          case 6: // BILLING_TYPE
-
 
31158
            return BILLING_TYPE;
-
 
31159
          default:
-
 
31160
            return null;
-
 
31161
        }
-
 
31162
      }
-
 
31163
 
-
 
31164
      /**
-
 
31165
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
31166
       * if it is not found.
-
 
31167
       */
-
 
31168
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
31169
        _Fields fields = findByThriftId(fieldId);
-
 
31170
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
31171
        return fields;
-
 
31172
      }
-
 
31173
 
-
 
31174
      /**
-
 
31175
       * Find the _Fields constant that matches name, or null if its not found.
-
 
31176
       */
-
 
31177
      public static _Fields findByName(String name) {
-
 
31178
        return byName.get(name);
-
 
31179
      }
-
 
31180
 
-
 
31181
      private final short _thriftId;
-
 
31182
      private final String _fieldName;
-
 
31183
 
-
 
31184
      _Fields(short thriftId, String fieldName) {
-
 
31185
        _thriftId = thriftId;
-
 
31186
        _fieldName = fieldName;
-
 
31187
      }
-
 
31188
 
-
 
31189
      public short getThriftFieldId() {
-
 
31190
        return _thriftId;
-
 
31191
      }
-
 
31192
 
-
 
31193
      public String getFieldName() {
-
 
31194
        return _fieldName;
-
 
31195
      }
-
 
31196
    }
-
 
31197
 
-
 
31198
    // isset id assignments
-
 
31199
    private static final int __ORDERID_ISSET_ID = 0;
-
 
31200
    private static final int __JACKETNUMBER_ISSET_ID = 1;
-
 
31201
    private static final int __IMEINUMBER_ISSET_ID = 2;
-
 
31202
    private static final int __BILLINGTYPE_ISSET_ID = 3;
-
 
31203
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
31204
 
-
 
31205
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
31206
    static {
-
 
31207
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
31208
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31209
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
31210
      tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31211
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
31212
      tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imeiNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31213
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
31214
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
31216
      tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
31218
      tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
31219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
31220
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
31221
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addJacketNumber_args.class, metaDataMap);
-
 
31222
    }
-
 
31223
 
-
 
31224
    public addJacketNumber_args() {
-
 
31225
    }
-
 
31226
 
-
 
31227
    public addJacketNumber_args(
-
 
31228
      long orderId,
-
 
31229
      long jacketNumber,
-
 
31230
      long imeiNumber,
-
 
31231
      String itemNumber,
-
 
31232
      String billedBy,
-
 
31233
      long billingType)
-
 
31234
    {
-
 
31235
      this();
-
 
31236
      this.orderId = orderId;
-
 
31237
      setOrderIdIsSet(true);
-
 
31238
      this.jacketNumber = jacketNumber;
-
 
31239
      setJacketNumberIsSet(true);
-
 
31240
      this.imeiNumber = imeiNumber;
-
 
31241
      setImeiNumberIsSet(true);
-
 
31242
      this.itemNumber = itemNumber;
-
 
31243
      this.billedBy = billedBy;
-
 
31244
      this.billingType = billingType;
-
 
31245
      setBillingTypeIsSet(true);
-
 
31246
    }
-
 
31247
 
-
 
31248
    /**
-
 
31249
     * Performs a deep copy on <i>other</i>.
-
 
31250
     */
-
 
31251
    public addJacketNumber_args(addJacketNumber_args other) {
-
 
31252
      __isset_bit_vector.clear();
-
 
31253
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
31254
      this.orderId = other.orderId;
-
 
31255
      this.jacketNumber = other.jacketNumber;
-
 
31256
      this.imeiNumber = other.imeiNumber;
-
 
31257
      if (other.isSetItemNumber()) {
-
 
31258
        this.itemNumber = other.itemNumber;
-
 
31259
      }
-
 
31260
      if (other.isSetBilledBy()) {
-
 
31261
        this.billedBy = other.billedBy;
-
 
31262
      }
-
 
31263
      this.billingType = other.billingType;
-
 
31264
    }
-
 
31265
 
-
 
31266
    public addJacketNumber_args deepCopy() {
-
 
31267
      return new addJacketNumber_args(this);
-
 
31268
    }
-
 
31269
 
-
 
31270
    @Override
-
 
31271
    public void clear() {
-
 
31272
      setOrderIdIsSet(false);
-
 
31273
      this.orderId = 0;
-
 
31274
      setJacketNumberIsSet(false);
-
 
31275
      this.jacketNumber = 0;
-
 
31276
      setImeiNumberIsSet(false);
-
 
31277
      this.imeiNumber = 0;
-
 
31278
      this.itemNumber = null;
-
 
31279
      this.billedBy = null;
-
 
31280
      setBillingTypeIsSet(false);
-
 
31281
      this.billingType = 0;
-
 
31282
    }
-
 
31283
 
-
 
31284
    public long getOrderId() {
-
 
31285
      return this.orderId;
-
 
31286
    }
-
 
31287
 
-
 
31288
    public void setOrderId(long orderId) {
-
 
31289
      this.orderId = orderId;
-
 
31290
      setOrderIdIsSet(true);
-
 
31291
    }
-
 
31292
 
-
 
31293
    public void unsetOrderId() {
-
 
31294
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
31295
    }
-
 
31296
 
-
 
31297
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
31298
    public boolean isSetOrderId() {
-
 
31299
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
31300
    }
-
 
31301
 
-
 
31302
    public void setOrderIdIsSet(boolean value) {
-
 
31303
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
31304
    }
-
 
31305
 
-
 
31306
    public long getJacketNumber() {
-
 
31307
      return this.jacketNumber;
-
 
31308
    }
-
 
31309
 
-
 
31310
    public void setJacketNumber(long jacketNumber) {
-
 
31311
      this.jacketNumber = jacketNumber;
-
 
31312
      setJacketNumberIsSet(true);
-
 
31313
    }
-
 
31314
 
-
 
31315
    public void unsetJacketNumber() {
-
 
31316
      __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
-
 
31317
    }
-
 
31318
 
-
 
31319
    /** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */
-
 
31320
    public boolean isSetJacketNumber() {
-
 
31321
      return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
-
 
31322
    }
-
 
31323
 
-
 
31324
    public void setJacketNumberIsSet(boolean value) {
-
 
31325
      __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
-
 
31326
    }
-
 
31327
 
-
 
31328
    public long getImeiNumber() {
29566
    public long getImeiNumber() {
31329
      return this.imeiNumber;
29567
      return this.imeiNumber;
31330
    }
29568
    }
31331
 
29569
 
31332
    public void setImeiNumber(long imeiNumber) {
29570
    public void setImeiNumber(long imeiNumber) {
Line 31368... Line 29606...
31368
      if (!value) {
29606
      if (!value) {
31369
        this.itemNumber = null;
29607
        this.itemNumber = null;
31370
      }
29608
      }
31371
    }
29609
    }
31372
 
29610
 
31373
    public String getBilledBy() {
29611
    public String getBilled_by() {
31374
      return this.billedBy;
29612
      return this.billed_by;
31375
    }
29613
    }
31376
 
29614
 
31377
    public void setBilledBy(String billedBy) {
29615
    public void setBilled_by(String billed_by) {
31378
      this.billedBy = billedBy;
29616
      this.billed_by = billed_by;
31379
    }
29617
    }
31380
 
29618
 
31381
    public void unsetBilledBy() {
29619
    public void unsetBilled_by() {
31382
      this.billedBy = null;
29620
      this.billed_by = null;
31383
    }
29621
    }
31384
 
29622
 
31385
    /** Returns true if field billedBy is set (has been assigned a value) and false otherwise */
29623
    /** Returns true if field billed_by is set (has been assigned a value) and false otherwise */
31386
    public boolean isSetBilledBy() {
29624
    public boolean isSetBilled_by() {
31387
      return this.billedBy != null;
29625
      return this.billed_by != null;
31388
    }
29626
    }
31389
 
29627
 
31390
    public void setBilledByIsSet(boolean value) {
29628
    public void setBilled_byIsSet(boolean value) {
31391
      if (!value) {
29629
      if (!value) {
31392
        this.billedBy = null;
29630
        this.billed_by = null;
31393
      }
29631
      }
31394
    }
29632
    }
31395
 
29633
 
-
 
29634
    public long getJacketNumber() {
-
 
29635
      return this.jacketNumber;
-
 
29636
    }
-
 
29637
 
-
 
29638
    public void setJacketNumber(long jacketNumber) {
-
 
29639
      this.jacketNumber = jacketNumber;
-
 
29640
      setJacketNumberIsSet(true);
-
 
29641
    }
-
 
29642
 
-
 
29643
    public void unsetJacketNumber() {
-
 
29644
      __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
-
 
29645
    }
-
 
29646
 
-
 
29647
    /** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */
-
 
29648
    public boolean isSetJacketNumber() {
-
 
29649
      return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
-
 
29650
    }
-
 
29651
 
-
 
29652
    public void setJacketNumberIsSet(boolean value) {
-
 
29653
      __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
-
 
29654
    }
-
 
29655
 
31396
    public long getBillingType() {
29656
    public long getBillingType() {
31397
      return this.billingType;
29657
      return this.billingType;
31398
    }
29658
    }
31399
 
29659
 
31400
    public void setBillingType(long billingType) {
29660
    public void setBillingType(long billingType) {
Line 31413... Line 29673...
31413
 
29673
 
31414
    public void setBillingTypeIsSet(boolean value) {
29674
    public void setBillingTypeIsSet(boolean value) {
31415
      __isset_bit_vector.set(__BILLINGTYPE_ISSET_ID, value);
29675
      __isset_bit_vector.set(__BILLINGTYPE_ISSET_ID, value);
31416
    }
29676
    }
31417
 
29677
 
-
 
29678
    public long getVendorId() {
-
 
29679
      return this.vendorId;
-
 
29680
    }
-
 
29681
 
-
 
29682
    public void setVendorId(long vendorId) {
-
 
29683
      this.vendorId = vendorId;
-
 
29684
      setVendorIdIsSet(true);
-
 
29685
    }
-
 
29686
 
-
 
29687
    public void unsetVendorId() {
-
 
29688
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
-
 
29689
    }
-
 
29690
 
-
 
29691
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
-
 
29692
    public boolean isSetVendorId() {
-
 
29693
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
-
 
29694
    }
-
 
29695
 
-
 
29696
    public void setVendorIdIsSet(boolean value) {
-
 
29697
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
-
 
29698
    }
-
 
29699
 
31418
    public void setFieldValue(_Fields field, Object value) {
29700
    public void setFieldValue(_Fields field, Object value) {
31419
      switch (field) {
29701
      switch (field) {
31420
      case ORDER_ID:
29702
      case ORDER_ID:
31421
        if (value == null) {
29703
        if (value == null) {
31422
          unsetOrderId();
29704
          unsetOrderId();
31423
        } else {
29705
        } else {
31424
          setOrderId((Long)value);
29706
          setOrderId((Long)value);
31425
        }
29707
        }
31426
        break;
29708
        break;
31427
 
29709
 
31428
      case JACKET_NUMBER:
29710
      case INVOICE_NUMBER:
31429
        if (value == null) {
29711
        if (value == null) {
31430
          unsetJacketNumber();
29712
          unsetInvoice_number();
31431
        } else {
29713
        } else {
31432
          setJacketNumber((Long)value);
29714
          setInvoice_number((String)value);
31433
        }
29715
        }
31434
        break;
29716
        break;
31435
 
29717
 
31436
      case IMEI_NUMBER:
29718
      case IMEI_NUMBER:
31437
        if (value == null) {
29719
        if (value == null) {
Line 31449... Line 29731...
31449
        }
29731
        }
31450
        break;
29732
        break;
31451
 
29733
 
31452
      case BILLED_BY:
29734
      case BILLED_BY:
31453
        if (value == null) {
29735
        if (value == null) {
31454
          unsetBilledBy();
29736
          unsetBilled_by();
-
 
29737
        } else {
-
 
29738
          setBilled_by((String)value);
-
 
29739
        }
-
 
29740
        break;
-
 
29741
 
-
 
29742
      case JACKET_NUMBER:
-
 
29743
        if (value == null) {
-
 
29744
          unsetJacketNumber();
31455
        } else {
29745
        } else {
31456
          setBilledBy((String)value);
29746
          setJacketNumber((Long)value);
31457
        }
29747
        }
31458
        break;
29748
        break;
31459
 
29749
 
31460
      case BILLING_TYPE:
29750
      case BILLING_TYPE:
31461
        if (value == null) {
29751
        if (value == null) {
Line 31463... Line 29753...
31463
        } else {
29753
        } else {
31464
          setBillingType((Long)value);
29754
          setBillingType((Long)value);
31465
        }
29755
        }
31466
        break;
29756
        break;
31467
 
29757
 
-
 
29758
      case VENDOR_ID:
-
 
29759
        if (value == null) {
-
 
29760
          unsetVendorId();
-
 
29761
        } else {
-
 
29762
          setVendorId((Long)value);
-
 
29763
        }
-
 
29764
        break;
-
 
29765
 
31468
      }
29766
      }
31469
    }
29767
    }
31470
 
29768
 
31471
    public Object getFieldValue(_Fields field) {
29769
    public Object getFieldValue(_Fields field) {
31472
      switch (field) {
29770
      switch (field) {
31473
      case ORDER_ID:
29771
      case ORDER_ID:
31474
        return Long.valueOf(getOrderId());
29772
        return Long.valueOf(getOrderId());
31475
 
29773
 
31476
      case JACKET_NUMBER:
29774
      case INVOICE_NUMBER:
31477
        return Long.valueOf(getJacketNumber());
29775
        return getInvoice_number();
31478
 
29776
 
31479
      case IMEI_NUMBER:
29777
      case IMEI_NUMBER:
31480
        return Long.valueOf(getImeiNumber());
29778
        return Long.valueOf(getImeiNumber());
31481
 
29779
 
31482
      case ITEM_NUMBER:
29780
      case ITEM_NUMBER:
31483
        return getItemNumber();
29781
        return getItemNumber();
31484
 
29782
 
31485
      case BILLED_BY:
29783
      case BILLED_BY:
31486
        return getBilledBy();
29784
        return getBilled_by();
-
 
29785
 
-
 
29786
      case JACKET_NUMBER:
-
 
29787
        return Long.valueOf(getJacketNumber());
31487
 
29788
 
31488
      case BILLING_TYPE:
29789
      case BILLING_TYPE:
31489
        return Long.valueOf(getBillingType());
29790
        return Long.valueOf(getBillingType());
31490
 
29791
 
-
 
29792
      case VENDOR_ID:
-
 
29793
        return Long.valueOf(getVendorId());
-
 
29794
 
31491
      }
29795
      }
31492
      throw new IllegalStateException();
29796
      throw new IllegalStateException();
31493
    }
29797
    }
31494
 
29798
 
31495
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29799
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 31499... Line 29803...
31499
      }
29803
      }
31500
 
29804
 
31501
      switch (field) {
29805
      switch (field) {
31502
      case ORDER_ID:
29806
      case ORDER_ID:
31503
        return isSetOrderId();
29807
        return isSetOrderId();
31504
      case JACKET_NUMBER:
29808
      case INVOICE_NUMBER:
31505
        return isSetJacketNumber();
29809
        return isSetInvoice_number();
31506
      case IMEI_NUMBER:
29810
      case IMEI_NUMBER:
31507
        return isSetImeiNumber();
29811
        return isSetImeiNumber();
31508
      case ITEM_NUMBER:
29812
      case ITEM_NUMBER:
31509
        return isSetItemNumber();
29813
        return isSetItemNumber();
31510
      case BILLED_BY:
29814
      case BILLED_BY:
31511
        return isSetBilledBy();
29815
        return isSetBilled_by();
-
 
29816
      case JACKET_NUMBER:
-
 
29817
        return isSetJacketNumber();
31512
      case BILLING_TYPE:
29818
      case BILLING_TYPE:
31513
        return isSetBillingType();
29819
        return isSetBillingType();
-
 
29820
      case VENDOR_ID:
-
 
29821
        return isSetVendorId();
31514
      }
29822
      }
31515
      throw new IllegalStateException();
29823
      throw new IllegalStateException();
31516
    }
29824
    }
31517
 
29825
 
31518
    @Override
29826
    @Override
31519
    public boolean equals(Object that) {
29827
    public boolean equals(Object that) {
31520
      if (that == null)
29828
      if (that == null)
31521
        return false;
29829
        return false;
31522
      if (that instanceof addJacketNumber_args)
29830
      if (that instanceof addBillingDetails_args)
31523
        return this.equals((addJacketNumber_args)that);
29831
        return this.equals((addBillingDetails_args)that);
31524
      return false;
29832
      return false;
31525
    }
29833
    }
31526
 
29834
 
31527
    public boolean equals(addJacketNumber_args that) {
29835
    public boolean equals(addBillingDetails_args that) {
31528
      if (that == null)
29836
      if (that == null)
31529
        return false;
29837
        return false;
31530
 
29838
 
31531
      boolean this_present_orderId = true;
29839
      boolean this_present_orderId = true;
31532
      boolean that_present_orderId = true;
29840
      boolean that_present_orderId = true;
Line 31535... Line 29843...
31535
          return false;
29843
          return false;
31536
        if (this.orderId != that.orderId)
29844
        if (this.orderId != that.orderId)
31537
          return false;
29845
          return false;
31538
      }
29846
      }
31539
 
29847
 
31540
      boolean this_present_jacketNumber = true;
29848
      boolean this_present_invoice_number = true && this.isSetInvoice_number();
31541
      boolean that_present_jacketNumber = true;
29849
      boolean that_present_invoice_number = true && that.isSetInvoice_number();
31542
      if (this_present_jacketNumber || that_present_jacketNumber) {
29850
      if (this_present_invoice_number || that_present_invoice_number) {
31543
        if (!(this_present_jacketNumber && that_present_jacketNumber))
29851
        if (!(this_present_invoice_number && that_present_invoice_number))
31544
          return false;
29852
          return false;
31545
        if (this.jacketNumber != that.jacketNumber)
29853
        if (!this.invoice_number.equals(that.invoice_number))
31546
          return false;
29854
          return false;
31547
      }
29855
      }
31548
 
29856
 
31549
      boolean this_present_imeiNumber = true;
29857
      boolean this_present_imeiNumber = true;
31550
      boolean that_present_imeiNumber = true;
29858
      boolean that_present_imeiNumber = true;
Line 31562... Line 29870...
31562
          return false;
29870
          return false;
31563
        if (!this.itemNumber.equals(that.itemNumber))
29871
        if (!this.itemNumber.equals(that.itemNumber))
31564
          return false;
29872
          return false;
31565
      }
29873
      }
31566
 
29874
 
31567
      boolean this_present_billedBy = true && this.isSetBilledBy();
29875
      boolean this_present_billed_by = true && this.isSetBilled_by();
31568
      boolean that_present_billedBy = true && that.isSetBilledBy();
29876
      boolean that_present_billed_by = true && that.isSetBilled_by();
31569
      if (this_present_billedBy || that_present_billedBy) {
29877
      if (this_present_billed_by || that_present_billed_by) {
31570
        if (!(this_present_billedBy && that_present_billedBy))
29878
        if (!(this_present_billed_by && that_present_billed_by))
31571
          return false;
29879
          return false;
31572
        if (!this.billedBy.equals(that.billedBy))
29880
        if (!this.billed_by.equals(that.billed_by))
-
 
29881
          return false;
-
 
29882
      }
-
 
29883
 
-
 
29884
      boolean this_present_jacketNumber = true;
-
 
29885
      boolean that_present_jacketNumber = true;
-
 
29886
      if (this_present_jacketNumber || that_present_jacketNumber) {
-
 
29887
        if (!(this_present_jacketNumber && that_present_jacketNumber))
-
 
29888
          return false;
-
 
29889
        if (this.jacketNumber != that.jacketNumber)
31573
          return false;
29890
          return false;
31574
      }
29891
      }
31575
 
29892
 
31576
      boolean this_present_billingType = true;
29893
      boolean this_present_billingType = true;
31577
      boolean that_present_billingType = true;
29894
      boolean that_present_billingType = true;
Line 31580... Line 29897...
31580
          return false;
29897
          return false;
31581
        if (this.billingType != that.billingType)
29898
        if (this.billingType != that.billingType)
31582
          return false;
29899
          return false;
31583
      }
29900
      }
31584
 
29901
 
-
 
29902
      boolean this_present_vendorId = true;
-
 
29903
      boolean that_present_vendorId = true;
-
 
29904
      if (this_present_vendorId || that_present_vendorId) {
-
 
29905
        if (!(this_present_vendorId && that_present_vendorId))
-
 
29906
          return false;
-
 
29907
        if (this.vendorId != that.vendorId)
-
 
29908
          return false;
-
 
29909
      }
-
 
29910
 
31585
      return true;
29911
      return true;
31586
    }
29912
    }
31587
 
29913
 
31588
    @Override
29914
    @Override
31589
    public int hashCode() {
29915
    public int hashCode() {
31590
      return 0;
29916
      return 0;
31591
    }
29917
    }
31592
 
29918
 
31593
    public int compareTo(addJacketNumber_args other) {
29919
    public int compareTo(addBillingDetails_args other) {
31594
      if (!getClass().equals(other.getClass())) {
29920
      if (!getClass().equals(other.getClass())) {
31595
        return getClass().getName().compareTo(other.getClass().getName());
29921
        return getClass().getName().compareTo(other.getClass().getName());
31596
      }
29922
      }
31597
 
29923
 
31598
      int lastComparison = 0;
29924
      int lastComparison = 0;
31599
      addJacketNumber_args typedOther = (addJacketNumber_args)other;
29925
      addBillingDetails_args typedOther = (addBillingDetails_args)other;
31600
 
29926
 
31601
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
29927
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
31602
      if (lastComparison != 0) {
29928
      if (lastComparison != 0) {
31603
        return lastComparison;
29929
        return lastComparison;
31604
      }
29930
      }
Line 31606... Line 29932...
31606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
29932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
31607
        if (lastComparison != 0) {
29933
        if (lastComparison != 0) {
31608
          return lastComparison;
29934
          return lastComparison;
31609
        }
29935
        }
31610
      }
29936
      }
31611
      lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());
29937
      lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(typedOther.isSetInvoice_number());
31612
      if (lastComparison != 0) {
29938
      if (lastComparison != 0) {
31613
        return lastComparison;
29939
        return lastComparison;
31614
      }
29940
      }
31615
      if (isSetJacketNumber()) {
29941
      if (isSetInvoice_number()) {
31616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);
29942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoice_number, typedOther.invoice_number);
31617
        if (lastComparison != 0) {
29943
        if (lastComparison != 0) {
31618
          return lastComparison;
29944
          return lastComparison;
31619
        }
29945
        }
31620
      }
29946
      }
31621
      lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(typedOther.isSetImeiNumber());
29947
      lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(typedOther.isSetImeiNumber());
Line 31636... Line 29962...
31636
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
29962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
31637
        if (lastComparison != 0) {
29963
        if (lastComparison != 0) {
31638
          return lastComparison;
29964
          return lastComparison;
31639
        }
29965
        }
31640
      }
29966
      }
31641
      lastComparison = Boolean.valueOf(isSetBilledBy()).compareTo(typedOther.isSetBilledBy());
29967
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(typedOther.isSetBilled_by());
31642
      if (lastComparison != 0) {
29968
      if (lastComparison != 0) {
31643
        return lastComparison;
29969
        return lastComparison;
31644
      }
29970
      }
31645
      if (isSetBilledBy()) {
29971
      if (isSetBilled_by()) {
31646
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billedBy, typedOther.billedBy);
29972
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billed_by, typedOther.billed_by);
-
 
29973
        if (lastComparison != 0) {
-
 
29974
          return lastComparison;
-
 
29975
        }
-
 
29976
      }
-
 
29977
      lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());
-
 
29978
      if (lastComparison != 0) {
-
 
29979
        return lastComparison;
-
 
29980
      }
-
 
29981
      if (isSetJacketNumber()) {
-
 
29982
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);
31647
        if (lastComparison != 0) {
29983
        if (lastComparison != 0) {
31648
          return lastComparison;
29984
          return lastComparison;
31649
        }
29985
        }
31650
      }
29986
      }
31651
      lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(typedOther.isSetBillingType());
29987
      lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(typedOther.isSetBillingType());
Line 31656... Line 29992...
31656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingType, typedOther.billingType);
29992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingType, typedOther.billingType);
31657
        if (lastComparison != 0) {
29993
        if (lastComparison != 0) {
31658
          return lastComparison;
29994
          return lastComparison;
31659
        }
29995
        }
31660
      }
29996
      }
-
 
29997
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
-
 
29998
      if (lastComparison != 0) {
-
 
29999
        return lastComparison;
-
 
30000
      }
-
 
30001
      if (isSetVendorId()) {
-
 
30002
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
-
 
30003
        if (lastComparison != 0) {
-
 
30004
          return lastComparison;
-
 
30005
        }
-
 
30006
      }
31661
      return 0;
30007
      return 0;
31662
    }
30008
    }
31663
 
30009
 
31664
    public _Fields fieldForId(int fieldId) {
30010
    public _Fields fieldForId(int fieldId) {
31665
      return _Fields.findByThriftId(fieldId);
30011
      return _Fields.findByThriftId(fieldId);
Line 31681... Line 30027...
31681
              setOrderIdIsSet(true);
30027
              setOrderIdIsSet(true);
31682
            } else { 
30028
            } else { 
31683
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30029
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31684
            }
30030
            }
31685
            break;
30031
            break;
31686
          case 2: // JACKET_NUMBER
30032
          case 2: // INVOICE_NUMBER
31687
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30033
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31688
              this.jacketNumber = iprot.readI64();
30034
              this.invoice_number = iprot.readString();
31689
              setJacketNumberIsSet(true);
-
 
31690
            } else { 
30035
            } else { 
31691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31692
            }
30037
            }
31693
            break;
30038
            break;
31694
          case 3: // IMEI_NUMBER
30039
          case 3: // IMEI_NUMBER
Line 31706... Line 30051...
31706
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31707
            }
30052
            }
31708
            break;
30053
            break;
31709
          case 5: // BILLED_BY
30054
          case 5: // BILLED_BY
31710
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
30055
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31711
              this.billedBy = iprot.readString();
30056
              this.billed_by = iprot.readString();
-
 
30057
            } else { 
-
 
30058
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30059
            }
-
 
30060
            break;
-
 
30061
          case 6: // JACKET_NUMBER
-
 
30062
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
30063
              this.jacketNumber = iprot.readI64();
-
 
30064
              setJacketNumberIsSet(true);
31712
            } else { 
30065
            } else { 
31713
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30066
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31714
            }
30067
            }
31715
            break;
30068
            break;
31716
          case 6: // BILLING_TYPE
30069
          case 7: // BILLING_TYPE
31717
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30070
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31718
              this.billingType = iprot.readI64();
30071
              this.billingType = iprot.readI64();
31719
              setBillingTypeIsSet(true);
30072
              setBillingTypeIsSet(true);
31720
            } else { 
30073
            } else { 
31721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30074
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31722
            }
30075
            }
31723
            break;
30076
            break;
-
 
30077
          case 8: // VENDOR_ID
-
 
30078
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
30079
              this.vendorId = iprot.readI64();
-
 
30080
              setVendorIdIsSet(true);
-
 
30081
            } else { 
-
 
30082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
30083
            }
-
 
30084
            break;
31724
          default:
30085
          default:
31725
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30086
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31726
        }
30087
        }
31727
        iprot.readFieldEnd();
30088
        iprot.readFieldEnd();
31728
      }
30089
      }
Line 31735... Line 30096...
31735
 
30096
 
31736
      oprot.writeStructBegin(STRUCT_DESC);
30097
      oprot.writeStructBegin(STRUCT_DESC);
31737
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
30098
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
31738
      oprot.writeI64(this.orderId);
30099
      oprot.writeI64(this.orderId);
31739
      oprot.writeFieldEnd();
30100
      oprot.writeFieldEnd();
-
 
30101
      if (this.invoice_number != null) {
31740
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
30102
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
31741
      oprot.writeI64(this.jacketNumber);
30103
        oprot.writeString(this.invoice_number);
31742
      oprot.writeFieldEnd();
30104
        oprot.writeFieldEnd();
-
 
30105
      }
31743
      oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
30106
      oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
31744
      oprot.writeI64(this.imeiNumber);
30107
      oprot.writeI64(this.imeiNumber);
31745
      oprot.writeFieldEnd();
30108
      oprot.writeFieldEnd();
31746
      if (this.itemNumber != null) {
30109
      if (this.itemNumber != null) {
31747
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
30110
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
31748
        oprot.writeString(this.itemNumber);
30111
        oprot.writeString(this.itemNumber);
31749
        oprot.writeFieldEnd();
30112
        oprot.writeFieldEnd();
31750
      }
30113
      }
31751
      if (this.billedBy != null) {
30114
      if (this.billed_by != null) {
31752
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
30115
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
31753
        oprot.writeString(this.billedBy);
30116
        oprot.writeString(this.billed_by);
31754
        oprot.writeFieldEnd();
30117
        oprot.writeFieldEnd();
31755
      }
30118
      }
-
 
30119
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
-
 
30120
      oprot.writeI64(this.jacketNumber);
-
 
30121
      oprot.writeFieldEnd();
31756
      oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);
30122
      oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);
31757
      oprot.writeI64(this.billingType);
30123
      oprot.writeI64(this.billingType);
31758
      oprot.writeFieldEnd();
30124
      oprot.writeFieldEnd();
-
 
30125
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
-
 
30126
      oprot.writeI64(this.vendorId);
-
 
30127
      oprot.writeFieldEnd();
31759
      oprot.writeFieldStop();
30128
      oprot.writeFieldStop();
31760
      oprot.writeStructEnd();
30129
      oprot.writeStructEnd();
31761
    }
30130
    }
31762
 
30131
 
31763
    @Override
30132
    @Override
31764
    public String toString() {
30133
    public String toString() {
31765
      StringBuilder sb = new StringBuilder("addJacketNumber_args(");
30134
      StringBuilder sb = new StringBuilder("addBillingDetails_args(");
31766
      boolean first = true;
30135
      boolean first = true;
31767
 
30136
 
31768
      sb.append("orderId:");
30137
      sb.append("orderId:");
31769
      sb.append(this.orderId);
30138
      sb.append(this.orderId);
31770
      first = false;
30139
      first = false;
31771
      if (!first) sb.append(", ");
30140
      if (!first) sb.append(", ");
31772
      sb.append("jacketNumber:");
30141
      sb.append("invoice_number:");
-
 
30142
      if (this.invoice_number == null) {
-
 
30143
        sb.append("null");
-
 
30144
      } else {
31773
      sb.append(this.jacketNumber);
30145
        sb.append(this.invoice_number);
-
 
30146
      }
31774
      first = false;
30147
      first = false;
31775
      if (!first) sb.append(", ");
30148
      if (!first) sb.append(", ");
31776
      sb.append("imeiNumber:");
30149
      sb.append("imeiNumber:");
31777
      sb.append(this.imeiNumber);
30150
      sb.append(this.imeiNumber);
31778
      first = false;
30151
      first = false;
Line 31783... Line 30156...
31783
      } else {
30156
      } else {
31784
        sb.append(this.itemNumber);
30157
        sb.append(this.itemNumber);
31785
      }
30158
      }
31786
      first = false;
30159
      first = false;
31787
      if (!first) sb.append(", ");
30160
      if (!first) sb.append(", ");
31788
      sb.append("billedBy:");
30161
      sb.append("billed_by:");
31789
      if (this.billedBy == null) {
30162
      if (this.billed_by == null) {
31790
        sb.append("null");
30163
        sb.append("null");
31791
      } else {
30164
      } else {
31792
        sb.append(this.billedBy);
30165
        sb.append(this.billed_by);
31793
      }
30166
      }
31794
      first = false;
30167
      first = false;
31795
      if (!first) sb.append(", ");
30168
      if (!first) sb.append(", ");
-
 
30169
      sb.append("jacketNumber:");
-
 
30170
      sb.append(this.jacketNumber);
-
 
30171
      first = false;
-
 
30172
      if (!first) sb.append(", ");
31796
      sb.append("billingType:");
30173
      sb.append("billingType:");
31797
      sb.append(this.billingType);
30174
      sb.append(this.billingType);
31798
      first = false;
30175
      first = false;
-
 
30176
      if (!first) sb.append(", ");
-
 
30177
      sb.append("vendorId:");
-
 
30178
      sb.append(this.vendorId);
-
 
30179
      first = false;
31799
      sb.append(")");
30180
      sb.append(")");
31800
      return sb.toString();
30181
      return sb.toString();
31801
    }
30182
    }
31802
 
30183
 
31803
    public void validate() throws org.apache.thrift.TException {
30184
    public void validate() throws org.apache.thrift.TException {
Line 31820... Line 30201...
31820
      }
30201
      }
31821
    }
30202
    }
31822
 
30203
 
31823
  }
30204
  }
31824
 
30205
 
31825
  public static class addJacketNumber_result implements org.apache.thrift.TBase<addJacketNumber_result, addJacketNumber_result._Fields>, java.io.Serializable, Cloneable   {
30206
  public static class addBillingDetails_result implements org.apache.thrift.TBase<addBillingDetails_result, addBillingDetails_result._Fields>, java.io.Serializable, Cloneable   {
31826
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addJacketNumber_result");
30207
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_result");
31827
 
30208
 
31828
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
30209
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
31829
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
30210
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
31830
 
30211
 
31831
    private boolean success; // required
30212
    private boolean success; // required
Line 31902... Line 30283...
31902
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30283
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31903
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
30284
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31904
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30285
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31905
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30286
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31906
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30287
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31907
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addJacketNumber_result.class, metaDataMap);
30288
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_result.class, metaDataMap);
31908
    }
30289
    }
31909
 
30290
 
31910
    public addJacketNumber_result() {
30291
    public addBillingDetails_result() {
31911
    }
30292
    }
31912
 
30293
 
31913
    public addJacketNumber_result(
30294
    public addBillingDetails_result(
31914
      boolean success,
30295
      boolean success,
31915
      TransactionServiceException ex)
30296
      TransactionServiceException ex)
31916
    {
30297
    {
31917
      this();
30298
      this();
31918
      this.success = success;
30299
      this.success = success;
Line 31921... Line 30302...
31921
    }
30302
    }
31922
 
30303
 
31923
    /**
30304
    /**
31924
     * Performs a deep copy on <i>other</i>.
30305
     * Performs a deep copy on <i>other</i>.
31925
     */
30306
     */
31926
    public addJacketNumber_result(addJacketNumber_result other) {
30307
    public addBillingDetails_result(addBillingDetails_result other) {
31927
      __isset_bit_vector.clear();
30308
      __isset_bit_vector.clear();
31928
      __isset_bit_vector.or(other.__isset_bit_vector);
30309
      __isset_bit_vector.or(other.__isset_bit_vector);
31929
      this.success = other.success;
30310
      this.success = other.success;
31930
      if (other.isSetEx()) {
30311
      if (other.isSetEx()) {
31931
        this.ex = new TransactionServiceException(other.ex);
30312
        this.ex = new TransactionServiceException(other.ex);
31932
      }
30313
      }
31933
    }
30314
    }
31934
 
30315
 
31935
    public addJacketNumber_result deepCopy() {
30316
    public addBillingDetails_result deepCopy() {
31936
      return new addJacketNumber_result(this);
30317
      return new addBillingDetails_result(this);
31937
    }
30318
    }
31938
 
30319
 
31939
    @Override
30320
    @Override
31940
    public void clear() {
30321
    public void clear() {
31941
      setSuccessIsSet(false);
30322
      setSuccessIsSet(false);
Line 32038... Line 30419...
32038
 
30419
 
32039
    @Override
30420
    @Override
32040
    public boolean equals(Object that) {
30421
    public boolean equals(Object that) {
32041
      if (that == null)
30422
      if (that == null)
32042
        return false;
30423
        return false;
32043
      if (that instanceof addJacketNumber_result)
30424
      if (that instanceof addBillingDetails_result)
32044
        return this.equals((addJacketNumber_result)that);
30425
        return this.equals((addBillingDetails_result)that);
32045
      return false;
30426
      return false;
32046
    }
30427
    }
32047
 
30428
 
32048
    public boolean equals(addJacketNumber_result that) {
30429
    public boolean equals(addBillingDetails_result that) {
32049
      if (that == null)
30430
      if (that == null)
32050
        return false;
30431
        return false;
32051
 
30432
 
32052
      boolean this_present_success = true;
30433
      boolean this_present_success = true;
32053
      boolean that_present_success = true;
30434
      boolean that_present_success = true;
Line 32073... Line 30454...
32073
    @Override
30454
    @Override
32074
    public int hashCode() {
30455
    public int hashCode() {
32075
      return 0;
30456
      return 0;
32076
    }
30457
    }
32077
 
30458
 
32078
    public int compareTo(addJacketNumber_result other) {
30459
    public int compareTo(addBillingDetails_result other) {
32079
      if (!getClass().equals(other.getClass())) {
30460
      if (!getClass().equals(other.getClass())) {
32080
        return getClass().getName().compareTo(other.getClass().getName());
30461
        return getClass().getName().compareTo(other.getClass().getName());
32081
      }
30462
      }
32082
 
30463
 
32083
      int lastComparison = 0;
30464
      int lastComparison = 0;
32084
      addJacketNumber_result typedOther = (addJacketNumber_result)other;
30465
      addBillingDetails_result typedOther = (addBillingDetails_result)other;
32085
 
30466
 
32086
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30467
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32087
      if (lastComparison != 0) {
30468
      if (lastComparison != 0) {
32088
        return lastComparison;
30469
        return lastComparison;
32089
      }
30470
      }
Line 32161... Line 30542...
32161
      oprot.writeStructEnd();
30542
      oprot.writeStructEnd();
32162
    }
30543
    }
32163
 
30544
 
32164
    @Override
30545
    @Override
32165
    public String toString() {
30546
    public String toString() {
32166
      StringBuilder sb = new StringBuilder("addJacketNumber_result(");
30547
      StringBuilder sb = new StringBuilder("addBillingDetails_result(");
32167
      boolean first = true;
30548
      boolean first = true;
32168
 
30549
 
32169
      sb.append("success:");
30550
      sb.append("success:");
32170
      sb.append(this.success);
30551
      sb.append(this.success);
32171
      first = false;
30552
      first = false;