Subversion Repositories SmartDukaan

Rev

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

Rev 6630 Rev 6762
Line 183... Line 183...
183
     * @param invoiceNumber
183
     * @param invoiceNumber
184
     * @param supplierId
184
     * @param supplierId
185
     */
185
     */
186
    public List<PurchaseReturn> getInvoice(String invoiceNumber, long supplierId) throws org.apache.thrift.TException;
186
    public List<PurchaseReturn> getInvoice(String invoiceNumber, long supplierId) throws org.apache.thrift.TException;
187
 
187
 
-
 
188
    /**
-
 
189
     *  * Inserts new Invoice/LineItem/Purchase Entries for Billed Product done through Our External Billing
-
 
190
     * *
-
 
191
     * 
-
 
192
     * @param invoiceNumber
-
 
193
     * @param unitPrice
-
 
194
     * @param itemId
-
 
195
     */
-
 
196
    public long createPurchaseForOurExtBilling(String invoiceNumber, double unitPrice, long itemId) throws org.apache.thrift.TException;
-
 
197
 
-
 
198
    public void fulfillPOForExtBilling(long itemId, long quantity) throws org.apache.thrift.TException;
-
 
199
 
188
  }
200
  }
189
 
201
 
190
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
202
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
191
 
203
 
192
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
204
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
Line 231... Line 243...
231
 
243
 
232
    public void getUnsettledPurchaseReturns(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUnsettledPurchaseReturns_call> resultHandler) throws org.apache.thrift.TException;
244
    public void getUnsettledPurchaseReturns(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUnsettledPurchaseReturns_call> resultHandler) throws org.apache.thrift.TException;
233
 
245
 
234
    public void getInvoice(String invoiceNumber, long supplierId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInvoice_call> resultHandler) throws org.apache.thrift.TException;
246
    public void getInvoice(String invoiceNumber, long supplierId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInvoice_call> resultHandler) throws org.apache.thrift.TException;
235
 
247
 
-
 
248
    public void createPurchaseForOurExtBilling(String invoiceNumber, double unitPrice, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseForOurExtBilling_call> resultHandler) throws org.apache.thrift.TException;
-
 
249
 
-
 
250
    public void fulfillPOForExtBilling(long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fulfillPOForExtBilling_call> resultHandler) throws org.apache.thrift.TException;
-
 
251
 
236
  }
252
  }
237
 
253
 
238
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
254
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
239
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
255
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
240
      public Factory() {}
256
      public Factory() {}
Line 789... Line 805...
789
        return result.success;
805
        return result.success;
790
      }
806
      }
791
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInvoice failed: unknown result");
807
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInvoice failed: unknown result");
792
    }
808
    }
793
 
809
 
-
 
810
    public long createPurchaseForOurExtBilling(String invoiceNumber, double unitPrice, long itemId) throws org.apache.thrift.TException
-
 
811
    {
-
 
812
      send_createPurchaseForOurExtBilling(invoiceNumber, unitPrice, itemId);
-
 
813
      return recv_createPurchaseForOurExtBilling();
-
 
814
    }
-
 
815
 
-
 
816
    public void send_createPurchaseForOurExtBilling(String invoiceNumber, double unitPrice, long itemId) throws org.apache.thrift.TException
-
 
817
    {
-
 
818
      createPurchaseForOurExtBilling_args args = new createPurchaseForOurExtBilling_args();
-
 
819
      args.setInvoiceNumber(invoiceNumber);
-
 
820
      args.setUnitPrice(unitPrice);
-
 
821
      args.setItemId(itemId);
-
 
822
      sendBase("createPurchaseForOurExtBilling", args);
-
 
823
    }
-
 
824
 
-
 
825
    public long recv_createPurchaseForOurExtBilling() throws org.apache.thrift.TException
-
 
826
    {
-
 
827
      createPurchaseForOurExtBilling_result result = new createPurchaseForOurExtBilling_result();
-
 
828
      receiveBase(result, "createPurchaseForOurExtBilling");
-
 
829
      if (result.isSetSuccess()) {
-
 
830
        return result.success;
-
 
831
      }
-
 
832
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPurchaseForOurExtBilling failed: unknown result");
-
 
833
    }
-
 
834
 
-
 
835
    public void fulfillPOForExtBilling(long itemId, long quantity) throws org.apache.thrift.TException
-
 
836
    {
-
 
837
      send_fulfillPOForExtBilling(itemId, quantity);
-
 
838
      recv_fulfillPOForExtBilling();
-
 
839
    }
-
 
840
 
-
 
841
    public void send_fulfillPOForExtBilling(long itemId, long quantity) throws org.apache.thrift.TException
-
 
842
    {
-
 
843
      fulfillPOForExtBilling_args args = new fulfillPOForExtBilling_args();
-
 
844
      args.setItemId(itemId);
-
 
845
      args.setQuantity(quantity);
-
 
846
      sendBase("fulfillPOForExtBilling", args);
-
 
847
    }
-
 
848
 
-
 
849
    public void recv_fulfillPOForExtBilling() throws org.apache.thrift.TException
-
 
850
    {
-
 
851
      fulfillPOForExtBilling_result result = new fulfillPOForExtBilling_result();
-
 
852
      receiveBase(result, "fulfillPOForExtBilling");
-
 
853
      return;
-
 
854
    }
-
 
855
 
794
  }
856
  }
795
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
857
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
796
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
858
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
797
      private org.apache.thrift.async.TAsyncClientManager clientManager;
859
      private org.apache.thrift.async.TAsyncClientManager clientManager;
798
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
860
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1529... Line 1591...
1529
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1591
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1530
        return (new Client(prot)).recv_getInvoice();
1592
        return (new Client(prot)).recv_getInvoice();
1531
      }
1593
      }
1532
    }
1594
    }
1533
 
1595
 
-
 
1596
    public void createPurchaseForOurExtBilling(String invoiceNumber, double unitPrice, long itemId, org.apache.thrift.async.AsyncMethodCallback<createPurchaseForOurExtBilling_call> resultHandler) throws org.apache.thrift.TException {
-
 
1597
      checkReady();
-
 
1598
      createPurchaseForOurExtBilling_call method_call = new createPurchaseForOurExtBilling_call(invoiceNumber, unitPrice, itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1599
      this.___currentMethod = method_call;
-
 
1600
      ___manager.call(method_call);
-
 
1601
    }
-
 
1602
 
-
 
1603
    public static class createPurchaseForOurExtBilling_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1604
      private String invoiceNumber;
-
 
1605
      private double unitPrice;
-
 
1606
      private long itemId;
-
 
1607
      public createPurchaseForOurExtBilling_call(String invoiceNumber, double unitPrice, long itemId, org.apache.thrift.async.AsyncMethodCallback<createPurchaseForOurExtBilling_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 {
-
 
1608
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1609
        this.invoiceNumber = invoiceNumber;
-
 
1610
        this.unitPrice = unitPrice;
-
 
1611
        this.itemId = itemId;
-
 
1612
      }
-
 
1613
 
-
 
1614
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1615
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPurchaseForOurExtBilling", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1616
        createPurchaseForOurExtBilling_args args = new createPurchaseForOurExtBilling_args();
-
 
1617
        args.setInvoiceNumber(invoiceNumber);
-
 
1618
        args.setUnitPrice(unitPrice);
-
 
1619
        args.setItemId(itemId);
-
 
1620
        args.write(prot);
-
 
1621
        prot.writeMessageEnd();
-
 
1622
      }
-
 
1623
 
-
 
1624
      public long getResult() throws org.apache.thrift.TException {
-
 
1625
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1626
          throw new IllegalStateException("Method call not finished!");
-
 
1627
        }
-
 
1628
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1629
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1630
        return (new Client(prot)).recv_createPurchaseForOurExtBilling();
-
 
1631
      }
-
 
1632
    }
-
 
1633
 
-
 
1634
    public void fulfillPOForExtBilling(long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<fulfillPOForExtBilling_call> resultHandler) throws org.apache.thrift.TException {
-
 
1635
      checkReady();
-
 
1636
      fulfillPOForExtBilling_call method_call = new fulfillPOForExtBilling_call(itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
-
 
1637
      this.___currentMethod = method_call;
-
 
1638
      ___manager.call(method_call);
-
 
1639
    }
-
 
1640
 
-
 
1641
    public static class fulfillPOForExtBilling_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1642
      private long itemId;
-
 
1643
      private long quantity;
-
 
1644
      public fulfillPOForExtBilling_call(long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<fulfillPOForExtBilling_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 {
-
 
1645
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1646
        this.itemId = itemId;
-
 
1647
        this.quantity = quantity;
-
 
1648
      }
-
 
1649
 
-
 
1650
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1651
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fulfillPOForExtBilling", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1652
        fulfillPOForExtBilling_args args = new fulfillPOForExtBilling_args();
-
 
1653
        args.setItemId(itemId);
-
 
1654
        args.setQuantity(quantity);
-
 
1655
        args.write(prot);
-
 
1656
        prot.writeMessageEnd();
-
 
1657
      }
-
 
1658
 
-
 
1659
      public void getResult() throws org.apache.thrift.TException {
-
 
1660
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1661
          throw new IllegalStateException("Method call not finished!");
-
 
1662
        }
-
 
1663
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1664
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1665
        (new Client(prot)).recv_fulfillPOForExtBilling();
-
 
1666
      }
-
 
1667
    }
-
 
1668
 
1534
  }
1669
  }
1535
 
1670
 
1536
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1671
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1537
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1672
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1538
    public Processor(I iface) {
1673
    public Processor(I iface) {
Line 1564... Line 1699...
1564
      processMap.put("updateSupplier", new updateSupplier());
1699
      processMap.put("updateSupplier", new updateSupplier());
1565
      processMap.put("createPurchaseReturn", new createPurchaseReturn());
1700
      processMap.put("createPurchaseReturn", new createPurchaseReturn());
1566
      processMap.put("settlePurchaseReturn", new settlePurchaseReturn());
1701
      processMap.put("settlePurchaseReturn", new settlePurchaseReturn());
1567
      processMap.put("getUnsettledPurchaseReturns", new getUnsettledPurchaseReturns());
1702
      processMap.put("getUnsettledPurchaseReturns", new getUnsettledPurchaseReturns());
1568
      processMap.put("getInvoice", new getInvoice());
1703
      processMap.put("getInvoice", new getInvoice());
-
 
1704
      processMap.put("createPurchaseForOurExtBilling", new createPurchaseForOurExtBilling());
-
 
1705
      processMap.put("fulfillPOForExtBilling", new fulfillPOForExtBilling());
1569
      return processMap;
1706
      return processMap;
1570
    }
1707
    }
1571
 
1708
 
1572
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
1709
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
1573
      public createPurchaseOrder() {
1710
      public createPurchaseOrder() {
Line 1979... Line 2116...
1979
        result.success = iface.getInvoice(args.invoiceNumber, args.supplierId);
2116
        result.success = iface.getInvoice(args.invoiceNumber, args.supplierId);
1980
        return result;
2117
        return result;
1981
      }
2118
      }
1982
    }
2119
    }
1983
 
2120
 
-
 
2121
    private static class createPurchaseForOurExtBilling<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseForOurExtBilling_args> {
-
 
2122
      public createPurchaseForOurExtBilling() {
-
 
2123
        super("createPurchaseForOurExtBilling");
-
 
2124
      }
-
 
2125
 
-
 
2126
      protected createPurchaseForOurExtBilling_args getEmptyArgsInstance() {
-
 
2127
        return new createPurchaseForOurExtBilling_args();
-
 
2128
      }
-
 
2129
 
-
 
2130
      protected createPurchaseForOurExtBilling_result getResult(I iface, createPurchaseForOurExtBilling_args args) throws org.apache.thrift.TException {
-
 
2131
        createPurchaseForOurExtBilling_result result = new createPurchaseForOurExtBilling_result();
-
 
2132
        result.success = iface.createPurchaseForOurExtBilling(args.invoiceNumber, args.unitPrice, args.itemId);
-
 
2133
        result.setSuccessIsSet(true);
-
 
2134
        return result;
-
 
2135
      }
-
 
2136
    }
-
 
2137
 
-
 
2138
    private static class fulfillPOForExtBilling<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fulfillPOForExtBilling_args> {
-
 
2139
      public fulfillPOForExtBilling() {
-
 
2140
        super("fulfillPOForExtBilling");
-
 
2141
      }
-
 
2142
 
-
 
2143
      protected fulfillPOForExtBilling_args getEmptyArgsInstance() {
-
 
2144
        return new fulfillPOForExtBilling_args();
-
 
2145
      }
-
 
2146
 
-
 
2147
      protected fulfillPOForExtBilling_result getResult(I iface, fulfillPOForExtBilling_args args) throws org.apache.thrift.TException {
-
 
2148
        fulfillPOForExtBilling_result result = new fulfillPOForExtBilling_result();
-
 
2149
        iface.fulfillPOForExtBilling(args.itemId, args.quantity);
-
 
2150
        return result;
-
 
2151
      }
-
 
2152
    }
-
 
2153
 
1984
  }
2154
  }
1985
 
2155
 
1986
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
2156
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
1987
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
2157
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
1988
 
2158
 
Line 16372... Line 16542...
16372
      sb.append(")");
16542
      sb.append(")");
16373
      return sb.toString();
16543
      return sb.toString();
16374
    }
16544
    }
16375
 
16545
 
16376
    public void validate() throws org.apache.thrift.TException {
16546
    public void validate() throws org.apache.thrift.TException {
-
 
16547
      // check for required fields
-
 
16548
    }
-
 
16549
 
-
 
16550
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16551
      try {
-
 
16552
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16553
      } catch (org.apache.thrift.TException te) {
-
 
16554
        throw new java.io.IOException(te);
-
 
16555
      }
-
 
16556
    }
-
 
16557
 
-
 
16558
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16559
      try {
-
 
16560
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16561
      } catch (org.apache.thrift.TException te) {
-
 
16562
        throw new java.io.IOException(te);
-
 
16563
      }
-
 
16564
    }
-
 
16565
 
-
 
16566
  }
-
 
16567
 
-
 
16568
  public static class createPurchaseForOurExtBilling_args implements org.apache.thrift.TBase<createPurchaseForOurExtBilling_args, createPurchaseForOurExtBilling_args._Fields>, java.io.Serializable, Cloneable   {
-
 
16569
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseForOurExtBilling_args");
-
 
16570
 
-
 
16571
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
16572
    private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
-
 
16573
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
16574
 
-
 
16575
    private String invoiceNumber; // required
-
 
16576
    private double unitPrice; // required
-
 
16577
    private long itemId; // required
-
 
16578
 
-
 
16579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
16581
      INVOICE_NUMBER((short)1, "invoiceNumber"),
-
 
16582
      UNIT_PRICE((short)2, "unitPrice"),
-
 
16583
      ITEM_ID((short)3, "itemId");
-
 
16584
 
-
 
16585
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16586
 
-
 
16587
      static {
-
 
16588
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16589
          byName.put(field.getFieldName(), field);
-
 
16590
        }
-
 
16591
      }
-
 
16592
 
-
 
16593
      /**
-
 
16594
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16595
       */
-
 
16596
      public static _Fields findByThriftId(int fieldId) {
-
 
16597
        switch(fieldId) {
-
 
16598
          case 1: // INVOICE_NUMBER
-
 
16599
            return INVOICE_NUMBER;
-
 
16600
          case 2: // UNIT_PRICE
-
 
16601
            return UNIT_PRICE;
-
 
16602
          case 3: // ITEM_ID
-
 
16603
            return ITEM_ID;
-
 
16604
          default:
-
 
16605
            return null;
-
 
16606
        }
-
 
16607
      }
-
 
16608
 
-
 
16609
      /**
-
 
16610
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16611
       * if it is not found.
-
 
16612
       */
-
 
16613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16614
        _Fields fields = findByThriftId(fieldId);
-
 
16615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16616
        return fields;
-
 
16617
      }
-
 
16618
 
-
 
16619
      /**
-
 
16620
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16621
       */
-
 
16622
      public static _Fields findByName(String name) {
-
 
16623
        return byName.get(name);
-
 
16624
      }
-
 
16625
 
-
 
16626
      private final short _thriftId;
-
 
16627
      private final String _fieldName;
-
 
16628
 
-
 
16629
      _Fields(short thriftId, String fieldName) {
-
 
16630
        _thriftId = thriftId;
-
 
16631
        _fieldName = fieldName;
-
 
16632
      }
-
 
16633
 
-
 
16634
      public short getThriftFieldId() {
-
 
16635
        return _thriftId;
-
 
16636
      }
-
 
16637
 
-
 
16638
      public String getFieldName() {
-
 
16639
        return _fieldName;
-
 
16640
      }
-
 
16641
    }
-
 
16642
 
-
 
16643
    // isset id assignments
-
 
16644
    private static final int __UNITPRICE_ISSET_ID = 0;
-
 
16645
    private static final int __ITEMID_ISSET_ID = 1;
-
 
16646
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
16647
 
-
 
16648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
16649
    static {
-
 
16650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
16651
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
16653
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
16655
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16656
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
16657
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
16658
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseForOurExtBilling_args.class, metaDataMap);
-
 
16659
    }
-
 
16660
 
-
 
16661
    public createPurchaseForOurExtBilling_args() {
-
 
16662
    }
-
 
16663
 
-
 
16664
    public createPurchaseForOurExtBilling_args(
-
 
16665
      String invoiceNumber,
-
 
16666
      double unitPrice,
-
 
16667
      long itemId)
-
 
16668
    {
-
 
16669
      this();
-
 
16670
      this.invoiceNumber = invoiceNumber;
-
 
16671
      this.unitPrice = unitPrice;
-
 
16672
      setUnitPriceIsSet(true);
-
 
16673
      this.itemId = itemId;
-
 
16674
      setItemIdIsSet(true);
-
 
16675
    }
-
 
16676
 
-
 
16677
    /**
-
 
16678
     * Performs a deep copy on <i>other</i>.
-
 
16679
     */
-
 
16680
    public createPurchaseForOurExtBilling_args(createPurchaseForOurExtBilling_args other) {
-
 
16681
      __isset_bit_vector.clear();
-
 
16682
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
16683
      if (other.isSetInvoiceNumber()) {
-
 
16684
        this.invoiceNumber = other.invoiceNumber;
-
 
16685
      }
-
 
16686
      this.unitPrice = other.unitPrice;
-
 
16687
      this.itemId = other.itemId;
-
 
16688
    }
-
 
16689
 
-
 
16690
    public createPurchaseForOurExtBilling_args deepCopy() {
-
 
16691
      return new createPurchaseForOurExtBilling_args(this);
-
 
16692
    }
-
 
16693
 
-
 
16694
    @Override
-
 
16695
    public void clear() {
-
 
16696
      this.invoiceNumber = null;
-
 
16697
      setUnitPriceIsSet(false);
-
 
16698
      this.unitPrice = 0.0;
-
 
16699
      setItemIdIsSet(false);
-
 
16700
      this.itemId = 0;
-
 
16701
    }
-
 
16702
 
-
 
16703
    public String getInvoiceNumber() {
-
 
16704
      return this.invoiceNumber;
-
 
16705
    }
-
 
16706
 
-
 
16707
    public void setInvoiceNumber(String invoiceNumber) {
-
 
16708
      this.invoiceNumber = invoiceNumber;
-
 
16709
    }
-
 
16710
 
-
 
16711
    public void unsetInvoiceNumber() {
-
 
16712
      this.invoiceNumber = null;
-
 
16713
    }
-
 
16714
 
-
 
16715
    /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
-
 
16716
    public boolean isSetInvoiceNumber() {
-
 
16717
      return this.invoiceNumber != null;
-
 
16718
    }
-
 
16719
 
-
 
16720
    public void setInvoiceNumberIsSet(boolean value) {
-
 
16721
      if (!value) {
-
 
16722
        this.invoiceNumber = null;
-
 
16723
      }
-
 
16724
    }
-
 
16725
 
-
 
16726
    public double getUnitPrice() {
-
 
16727
      return this.unitPrice;
-
 
16728
    }
-
 
16729
 
-
 
16730
    public void setUnitPrice(double unitPrice) {
-
 
16731
      this.unitPrice = unitPrice;
-
 
16732
      setUnitPriceIsSet(true);
-
 
16733
    }
-
 
16734
 
-
 
16735
    public void unsetUnitPrice() {
-
 
16736
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
-
 
16737
    }
-
 
16738
 
-
 
16739
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
-
 
16740
    public boolean isSetUnitPrice() {
-
 
16741
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
-
 
16742
    }
-
 
16743
 
-
 
16744
    public void setUnitPriceIsSet(boolean value) {
-
 
16745
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
-
 
16746
    }
-
 
16747
 
-
 
16748
    public long getItemId() {
-
 
16749
      return this.itemId;
-
 
16750
    }
-
 
16751
 
-
 
16752
    public void setItemId(long itemId) {
-
 
16753
      this.itemId = itemId;
-
 
16754
      setItemIdIsSet(true);
-
 
16755
    }
-
 
16756
 
-
 
16757
    public void unsetItemId() {
-
 
16758
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
16759
    }
-
 
16760
 
-
 
16761
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
16762
    public boolean isSetItemId() {
-
 
16763
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
16764
    }
-
 
16765
 
-
 
16766
    public void setItemIdIsSet(boolean value) {
-
 
16767
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
16768
    }
-
 
16769
 
-
 
16770
    public void setFieldValue(_Fields field, Object value) {
-
 
16771
      switch (field) {
-
 
16772
      case INVOICE_NUMBER:
-
 
16773
        if (value == null) {
-
 
16774
          unsetInvoiceNumber();
-
 
16775
        } else {
-
 
16776
          setInvoiceNumber((String)value);
-
 
16777
        }
-
 
16778
        break;
-
 
16779
 
-
 
16780
      case UNIT_PRICE:
-
 
16781
        if (value == null) {
-
 
16782
          unsetUnitPrice();
-
 
16783
        } else {
-
 
16784
          setUnitPrice((Double)value);
-
 
16785
        }
-
 
16786
        break;
-
 
16787
 
-
 
16788
      case ITEM_ID:
-
 
16789
        if (value == null) {
-
 
16790
          unsetItemId();
-
 
16791
        } else {
-
 
16792
          setItemId((Long)value);
-
 
16793
        }
-
 
16794
        break;
-
 
16795
 
-
 
16796
      }
-
 
16797
    }
-
 
16798
 
-
 
16799
    public Object getFieldValue(_Fields field) {
-
 
16800
      switch (field) {
-
 
16801
      case INVOICE_NUMBER:
-
 
16802
        return getInvoiceNumber();
-
 
16803
 
-
 
16804
      case UNIT_PRICE:
-
 
16805
        return Double.valueOf(getUnitPrice());
-
 
16806
 
-
 
16807
      case ITEM_ID:
-
 
16808
        return Long.valueOf(getItemId());
-
 
16809
 
-
 
16810
      }
-
 
16811
      throw new IllegalStateException();
-
 
16812
    }
-
 
16813
 
-
 
16814
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
16815
    public boolean isSet(_Fields field) {
-
 
16816
      if (field == null) {
-
 
16817
        throw new IllegalArgumentException();
-
 
16818
      }
-
 
16819
 
-
 
16820
      switch (field) {
-
 
16821
      case INVOICE_NUMBER:
-
 
16822
        return isSetInvoiceNumber();
-
 
16823
      case UNIT_PRICE:
-
 
16824
        return isSetUnitPrice();
-
 
16825
      case ITEM_ID:
-
 
16826
        return isSetItemId();
-
 
16827
      }
-
 
16828
      throw new IllegalStateException();
-
 
16829
    }
-
 
16830
 
-
 
16831
    @Override
-
 
16832
    public boolean equals(Object that) {
-
 
16833
      if (that == null)
-
 
16834
        return false;
-
 
16835
      if (that instanceof createPurchaseForOurExtBilling_args)
-
 
16836
        return this.equals((createPurchaseForOurExtBilling_args)that);
-
 
16837
      return false;
-
 
16838
    }
-
 
16839
 
-
 
16840
    public boolean equals(createPurchaseForOurExtBilling_args that) {
-
 
16841
      if (that == null)
-
 
16842
        return false;
-
 
16843
 
-
 
16844
      boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
-
 
16845
      boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
-
 
16846
      if (this_present_invoiceNumber || that_present_invoiceNumber) {
-
 
16847
        if (!(this_present_invoiceNumber && that_present_invoiceNumber))
-
 
16848
          return false;
-
 
16849
        if (!this.invoiceNumber.equals(that.invoiceNumber))
-
 
16850
          return false;
-
 
16851
      }
-
 
16852
 
-
 
16853
      boolean this_present_unitPrice = true;
-
 
16854
      boolean that_present_unitPrice = true;
-
 
16855
      if (this_present_unitPrice || that_present_unitPrice) {
-
 
16856
        if (!(this_present_unitPrice && that_present_unitPrice))
-
 
16857
          return false;
-
 
16858
        if (this.unitPrice != that.unitPrice)
-
 
16859
          return false;
-
 
16860
      }
-
 
16861
 
-
 
16862
      boolean this_present_itemId = true;
-
 
16863
      boolean that_present_itemId = true;
-
 
16864
      if (this_present_itemId || that_present_itemId) {
-
 
16865
        if (!(this_present_itemId && that_present_itemId))
-
 
16866
          return false;
-
 
16867
        if (this.itemId != that.itemId)
-
 
16868
          return false;
-
 
16869
      }
-
 
16870
 
-
 
16871
      return true;
-
 
16872
    }
-
 
16873
 
-
 
16874
    @Override
-
 
16875
    public int hashCode() {
-
 
16876
      return 0;
-
 
16877
    }
-
 
16878
 
-
 
16879
    public int compareTo(createPurchaseForOurExtBilling_args other) {
-
 
16880
      if (!getClass().equals(other.getClass())) {
-
 
16881
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16882
      }
-
 
16883
 
-
 
16884
      int lastComparison = 0;
-
 
16885
      createPurchaseForOurExtBilling_args typedOther = (createPurchaseForOurExtBilling_args)other;
-
 
16886
 
-
 
16887
      lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
-
 
16888
      if (lastComparison != 0) {
-
 
16889
        return lastComparison;
-
 
16890
      }
-
 
16891
      if (isSetInvoiceNumber()) {
-
 
16892
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
-
 
16893
        if (lastComparison != 0) {
-
 
16894
          return lastComparison;
-
 
16895
        }
-
 
16896
      }
-
 
16897
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
-
 
16898
      if (lastComparison != 0) {
-
 
16899
        return lastComparison;
-
 
16900
      }
-
 
16901
      if (isSetUnitPrice()) {
-
 
16902
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
-
 
16903
        if (lastComparison != 0) {
-
 
16904
          return lastComparison;
-
 
16905
        }
-
 
16906
      }
-
 
16907
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
16908
      if (lastComparison != 0) {
-
 
16909
        return lastComparison;
-
 
16910
      }
-
 
16911
      if (isSetItemId()) {
-
 
16912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
16913
        if (lastComparison != 0) {
-
 
16914
          return lastComparison;
-
 
16915
        }
-
 
16916
      }
-
 
16917
      return 0;
-
 
16918
    }
-
 
16919
 
-
 
16920
    public _Fields fieldForId(int fieldId) {
-
 
16921
      return _Fields.findByThriftId(fieldId);
-
 
16922
    }
-
 
16923
 
-
 
16924
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
16925
      org.apache.thrift.protocol.TField field;
-
 
16926
      iprot.readStructBegin();
-
 
16927
      while (true)
-
 
16928
      {
-
 
16929
        field = iprot.readFieldBegin();
-
 
16930
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
16931
          break;
-
 
16932
        }
-
 
16933
        switch (field.id) {
-
 
16934
          case 1: // INVOICE_NUMBER
-
 
16935
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
16936
              this.invoiceNumber = iprot.readString();
-
 
16937
            } else { 
-
 
16938
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16939
            }
-
 
16940
            break;
-
 
16941
          case 2: // UNIT_PRICE
-
 
16942
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
16943
              this.unitPrice = iprot.readDouble();
-
 
16944
              setUnitPriceIsSet(true);
-
 
16945
            } else { 
-
 
16946
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16947
            }
-
 
16948
            break;
-
 
16949
          case 3: // ITEM_ID
-
 
16950
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16951
              this.itemId = iprot.readI64();
-
 
16952
              setItemIdIsSet(true);
-
 
16953
            } else { 
-
 
16954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16955
            }
-
 
16956
            break;
-
 
16957
          default:
-
 
16958
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16959
        }
-
 
16960
        iprot.readFieldEnd();
-
 
16961
      }
-
 
16962
      iprot.readStructEnd();
-
 
16963
      validate();
-
 
16964
    }
-
 
16965
 
-
 
16966
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
16967
      validate();
-
 
16968
 
-
 
16969
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16970
      if (this.invoiceNumber != null) {
-
 
16971
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
-
 
16972
        oprot.writeString(this.invoiceNumber);
-
 
16973
        oprot.writeFieldEnd();
-
 
16974
      }
-
 
16975
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
-
 
16976
      oprot.writeDouble(this.unitPrice);
-
 
16977
      oprot.writeFieldEnd();
-
 
16978
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
16979
      oprot.writeI64(this.itemId);
-
 
16980
      oprot.writeFieldEnd();
-
 
16981
      oprot.writeFieldStop();
-
 
16982
      oprot.writeStructEnd();
-
 
16983
    }
-
 
16984
 
-
 
16985
    @Override
-
 
16986
    public String toString() {
-
 
16987
      StringBuilder sb = new StringBuilder("createPurchaseForOurExtBilling_args(");
-
 
16988
      boolean first = true;
-
 
16989
 
-
 
16990
      sb.append("invoiceNumber:");
-
 
16991
      if (this.invoiceNumber == null) {
-
 
16992
        sb.append("null");
-
 
16993
      } else {
-
 
16994
        sb.append(this.invoiceNumber);
-
 
16995
      }
-
 
16996
      first = false;
-
 
16997
      if (!first) sb.append(", ");
-
 
16998
      sb.append("unitPrice:");
-
 
16999
      sb.append(this.unitPrice);
-
 
17000
      first = false;
-
 
17001
      if (!first) sb.append(", ");
-
 
17002
      sb.append("itemId:");
-
 
17003
      sb.append(this.itemId);
-
 
17004
      first = false;
-
 
17005
      sb.append(")");
-
 
17006
      return sb.toString();
-
 
17007
    }
-
 
17008
 
-
 
17009
    public void validate() throws org.apache.thrift.TException {
-
 
17010
      // check for required fields
-
 
17011
    }
-
 
17012
 
-
 
17013
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17014
      try {
-
 
17015
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17016
      } catch (org.apache.thrift.TException te) {
-
 
17017
        throw new java.io.IOException(te);
-
 
17018
      }
-
 
17019
    }
-
 
17020
 
-
 
17021
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17022
      try {
-
 
17023
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
17024
        __isset_bit_vector = new BitSet(1);
-
 
17025
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17026
      } catch (org.apache.thrift.TException te) {
-
 
17027
        throw new java.io.IOException(te);
-
 
17028
      }
-
 
17029
    }
-
 
17030
 
-
 
17031
  }
-
 
17032
 
-
 
17033
  public static class createPurchaseForOurExtBilling_result implements org.apache.thrift.TBase<createPurchaseForOurExtBilling_result, createPurchaseForOurExtBilling_result._Fields>, java.io.Serializable, Cloneable   {
-
 
17034
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseForOurExtBilling_result");
-
 
17035
 
-
 
17036
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
17037
 
-
 
17038
    private long success; // required
-
 
17039
 
-
 
17040
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17041
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17042
      SUCCESS((short)0, "success");
-
 
17043
 
-
 
17044
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17045
 
-
 
17046
      static {
-
 
17047
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17048
          byName.put(field.getFieldName(), field);
-
 
17049
        }
-
 
17050
      }
-
 
17051
 
-
 
17052
      /**
-
 
17053
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17054
       */
-
 
17055
      public static _Fields findByThriftId(int fieldId) {
-
 
17056
        switch(fieldId) {
-
 
17057
          case 0: // SUCCESS
-
 
17058
            return SUCCESS;
-
 
17059
          default:
-
 
17060
            return null;
-
 
17061
        }
-
 
17062
      }
-
 
17063
 
-
 
17064
      /**
-
 
17065
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17066
       * if it is not found.
-
 
17067
       */
-
 
17068
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17069
        _Fields fields = findByThriftId(fieldId);
-
 
17070
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17071
        return fields;
-
 
17072
      }
-
 
17073
 
-
 
17074
      /**
-
 
17075
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17076
       */
-
 
17077
      public static _Fields findByName(String name) {
-
 
17078
        return byName.get(name);
-
 
17079
      }
-
 
17080
 
-
 
17081
      private final short _thriftId;
-
 
17082
      private final String _fieldName;
-
 
17083
 
-
 
17084
      _Fields(short thriftId, String fieldName) {
-
 
17085
        _thriftId = thriftId;
-
 
17086
        _fieldName = fieldName;
-
 
17087
      }
-
 
17088
 
-
 
17089
      public short getThriftFieldId() {
-
 
17090
        return _thriftId;
-
 
17091
      }
-
 
17092
 
-
 
17093
      public String getFieldName() {
-
 
17094
        return _fieldName;
-
 
17095
      }
-
 
17096
    }
-
 
17097
 
-
 
17098
    // isset id assignments
-
 
17099
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
17100
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17101
 
-
 
17102
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17103
    static {
-
 
17104
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17105
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17106
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
17107
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17108
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseForOurExtBilling_result.class, metaDataMap);
-
 
17109
    }
-
 
17110
 
-
 
17111
    public createPurchaseForOurExtBilling_result() {
-
 
17112
    }
-
 
17113
 
-
 
17114
    public createPurchaseForOurExtBilling_result(
-
 
17115
      long success)
-
 
17116
    {
-
 
17117
      this();
-
 
17118
      this.success = success;
-
 
17119
      setSuccessIsSet(true);
-
 
17120
    }
-
 
17121
 
-
 
17122
    /**
-
 
17123
     * Performs a deep copy on <i>other</i>.
-
 
17124
     */
-
 
17125
    public createPurchaseForOurExtBilling_result(createPurchaseForOurExtBilling_result other) {
-
 
17126
      __isset_bit_vector.clear();
-
 
17127
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17128
      this.success = other.success;
-
 
17129
    }
-
 
17130
 
-
 
17131
    public createPurchaseForOurExtBilling_result deepCopy() {
-
 
17132
      return new createPurchaseForOurExtBilling_result(this);
-
 
17133
    }
-
 
17134
 
-
 
17135
    @Override
-
 
17136
    public void clear() {
-
 
17137
      setSuccessIsSet(false);
-
 
17138
      this.success = 0;
-
 
17139
    }
-
 
17140
 
-
 
17141
    public long getSuccess() {
-
 
17142
      return this.success;
-
 
17143
    }
-
 
17144
 
-
 
17145
    public void setSuccess(long success) {
-
 
17146
      this.success = success;
-
 
17147
      setSuccessIsSet(true);
-
 
17148
    }
-
 
17149
 
-
 
17150
    public void unsetSuccess() {
-
 
17151
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
17152
    }
-
 
17153
 
-
 
17154
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
17155
    public boolean isSetSuccess() {
-
 
17156
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
17157
    }
-
 
17158
 
-
 
17159
    public void setSuccessIsSet(boolean value) {
-
 
17160
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
17161
    }
-
 
17162
 
-
 
17163
    public void setFieldValue(_Fields field, Object value) {
-
 
17164
      switch (field) {
-
 
17165
      case SUCCESS:
-
 
17166
        if (value == null) {
-
 
17167
          unsetSuccess();
-
 
17168
        } else {
-
 
17169
          setSuccess((Long)value);
-
 
17170
        }
-
 
17171
        break;
-
 
17172
 
-
 
17173
      }
-
 
17174
    }
-
 
17175
 
-
 
17176
    public Object getFieldValue(_Fields field) {
-
 
17177
      switch (field) {
-
 
17178
      case SUCCESS:
-
 
17179
        return Long.valueOf(getSuccess());
-
 
17180
 
-
 
17181
      }
-
 
17182
      throw new IllegalStateException();
-
 
17183
    }
-
 
17184
 
-
 
17185
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17186
    public boolean isSet(_Fields field) {
-
 
17187
      if (field == null) {
-
 
17188
        throw new IllegalArgumentException();
-
 
17189
      }
-
 
17190
 
-
 
17191
      switch (field) {
-
 
17192
      case SUCCESS:
-
 
17193
        return isSetSuccess();
-
 
17194
      }
-
 
17195
      throw new IllegalStateException();
-
 
17196
    }
-
 
17197
 
-
 
17198
    @Override
-
 
17199
    public boolean equals(Object that) {
-
 
17200
      if (that == null)
-
 
17201
        return false;
-
 
17202
      if (that instanceof createPurchaseForOurExtBilling_result)
-
 
17203
        return this.equals((createPurchaseForOurExtBilling_result)that);
-
 
17204
      return false;
-
 
17205
    }
-
 
17206
 
-
 
17207
    public boolean equals(createPurchaseForOurExtBilling_result that) {
-
 
17208
      if (that == null)
-
 
17209
        return false;
-
 
17210
 
-
 
17211
      boolean this_present_success = true;
-
 
17212
      boolean that_present_success = true;
-
 
17213
      if (this_present_success || that_present_success) {
-
 
17214
        if (!(this_present_success && that_present_success))
-
 
17215
          return false;
-
 
17216
        if (this.success != that.success)
-
 
17217
          return false;
-
 
17218
      }
-
 
17219
 
-
 
17220
      return true;
-
 
17221
    }
-
 
17222
 
-
 
17223
    @Override
-
 
17224
    public int hashCode() {
-
 
17225
      return 0;
-
 
17226
    }
-
 
17227
 
-
 
17228
    public int compareTo(createPurchaseForOurExtBilling_result other) {
-
 
17229
      if (!getClass().equals(other.getClass())) {
-
 
17230
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17231
      }
-
 
17232
 
-
 
17233
      int lastComparison = 0;
-
 
17234
      createPurchaseForOurExtBilling_result typedOther = (createPurchaseForOurExtBilling_result)other;
-
 
17235
 
-
 
17236
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
17237
      if (lastComparison != 0) {
-
 
17238
        return lastComparison;
-
 
17239
      }
-
 
17240
      if (isSetSuccess()) {
-
 
17241
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
17242
        if (lastComparison != 0) {
-
 
17243
          return lastComparison;
-
 
17244
        }
-
 
17245
      }
-
 
17246
      return 0;
-
 
17247
    }
-
 
17248
 
-
 
17249
    public _Fields fieldForId(int fieldId) {
-
 
17250
      return _Fields.findByThriftId(fieldId);
-
 
17251
    }
-
 
17252
 
-
 
17253
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17254
      org.apache.thrift.protocol.TField field;
-
 
17255
      iprot.readStructBegin();
-
 
17256
      while (true)
-
 
17257
      {
-
 
17258
        field = iprot.readFieldBegin();
-
 
17259
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17260
          break;
-
 
17261
        }
-
 
17262
        switch (field.id) {
-
 
17263
          case 0: // SUCCESS
-
 
17264
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
17265
              this.success = iprot.readI64();
-
 
17266
              setSuccessIsSet(true);
-
 
17267
            } else { 
-
 
17268
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17269
            }
-
 
17270
            break;
-
 
17271
          default:
-
 
17272
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17273
        }
-
 
17274
        iprot.readFieldEnd();
-
 
17275
      }
-
 
17276
      iprot.readStructEnd();
-
 
17277
      validate();
-
 
17278
    }
-
 
17279
 
-
 
17280
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17281
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17282
 
-
 
17283
      if (this.isSetSuccess()) {
-
 
17284
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
17285
        oprot.writeI64(this.success);
-
 
17286
        oprot.writeFieldEnd();
-
 
17287
      }
-
 
17288
      oprot.writeFieldStop();
-
 
17289
      oprot.writeStructEnd();
-
 
17290
    }
-
 
17291
 
-
 
17292
    @Override
-
 
17293
    public String toString() {
-
 
17294
      StringBuilder sb = new StringBuilder("createPurchaseForOurExtBilling_result(");
-
 
17295
      boolean first = true;
-
 
17296
 
-
 
17297
      sb.append("success:");
-
 
17298
      sb.append(this.success);
-
 
17299
      first = false;
-
 
17300
      sb.append(")");
-
 
17301
      return sb.toString();
-
 
17302
    }
-
 
17303
 
-
 
17304
    public void validate() throws org.apache.thrift.TException {
-
 
17305
      // check for required fields
-
 
17306
    }
-
 
17307
 
-
 
17308
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17309
      try {
-
 
17310
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17311
      } catch (org.apache.thrift.TException te) {
-
 
17312
        throw new java.io.IOException(te);
-
 
17313
      }
-
 
17314
    }
-
 
17315
 
-
 
17316
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17317
      try {
-
 
17318
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17319
      } catch (org.apache.thrift.TException te) {
-
 
17320
        throw new java.io.IOException(te);
-
 
17321
      }
-
 
17322
    }
-
 
17323
 
-
 
17324
  }
-
 
17325
 
-
 
17326
  public static class fulfillPOForExtBilling_args implements org.apache.thrift.TBase<fulfillPOForExtBilling_args, fulfillPOForExtBilling_args._Fields>, java.io.Serializable, Cloneable   {
-
 
17327
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fulfillPOForExtBilling_args");
-
 
17328
 
-
 
17329
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
17330
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
17331
 
-
 
17332
    private long itemId; // required
-
 
17333
    private long quantity; // required
-
 
17334
 
-
 
17335
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17336
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17337
      ITEM_ID((short)1, "itemId"),
-
 
17338
      QUANTITY((short)2, "quantity");
-
 
17339
 
-
 
17340
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17341
 
-
 
17342
      static {
-
 
17343
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17344
          byName.put(field.getFieldName(), field);
-
 
17345
        }
-
 
17346
      }
-
 
17347
 
-
 
17348
      /**
-
 
17349
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17350
       */
-
 
17351
      public static _Fields findByThriftId(int fieldId) {
-
 
17352
        switch(fieldId) {
-
 
17353
          case 1: // ITEM_ID
-
 
17354
            return ITEM_ID;
-
 
17355
          case 2: // QUANTITY
-
 
17356
            return QUANTITY;
-
 
17357
          default:
-
 
17358
            return null;
-
 
17359
        }
-
 
17360
      }
-
 
17361
 
-
 
17362
      /**
-
 
17363
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17364
       * if it is not found.
-
 
17365
       */
-
 
17366
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17367
        _Fields fields = findByThriftId(fieldId);
-
 
17368
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17369
        return fields;
-
 
17370
      }
-
 
17371
 
-
 
17372
      /**
-
 
17373
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17374
       */
-
 
17375
      public static _Fields findByName(String name) {
-
 
17376
        return byName.get(name);
-
 
17377
      }
-
 
17378
 
-
 
17379
      private final short _thriftId;
-
 
17380
      private final String _fieldName;
-
 
17381
 
-
 
17382
      _Fields(short thriftId, String fieldName) {
-
 
17383
        _thriftId = thriftId;
-
 
17384
        _fieldName = fieldName;
-
 
17385
      }
-
 
17386
 
-
 
17387
      public short getThriftFieldId() {
-
 
17388
        return _thriftId;
-
 
17389
      }
-
 
17390
 
-
 
17391
      public String getFieldName() {
-
 
17392
        return _fieldName;
-
 
17393
      }
-
 
17394
    }
-
 
17395
 
-
 
17396
    // isset id assignments
-
 
17397
    private static final int __ITEMID_ISSET_ID = 0;
-
 
17398
    private static final int __QUANTITY_ISSET_ID = 1;
-
 
17399
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
17400
 
-
 
17401
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17402
    static {
-
 
17403
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17404
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17405
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
17406
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17407
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
17408
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17409
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fulfillPOForExtBilling_args.class, metaDataMap);
-
 
17410
    }
-
 
17411
 
-
 
17412
    public fulfillPOForExtBilling_args() {
-
 
17413
    }
-
 
17414
 
-
 
17415
    public fulfillPOForExtBilling_args(
-
 
17416
      long itemId,
-
 
17417
      long quantity)
-
 
17418
    {
-
 
17419
      this();
-
 
17420
      this.itemId = itemId;
-
 
17421
      setItemIdIsSet(true);
-
 
17422
      this.quantity = quantity;
-
 
17423
      setQuantityIsSet(true);
-
 
17424
    }
-
 
17425
 
-
 
17426
    /**
-
 
17427
     * Performs a deep copy on <i>other</i>.
-
 
17428
     */
-
 
17429
    public fulfillPOForExtBilling_args(fulfillPOForExtBilling_args other) {
-
 
17430
      __isset_bit_vector.clear();
-
 
17431
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17432
      this.itemId = other.itemId;
-
 
17433
      this.quantity = other.quantity;
-
 
17434
    }
-
 
17435
 
-
 
17436
    public fulfillPOForExtBilling_args deepCopy() {
-
 
17437
      return new fulfillPOForExtBilling_args(this);
-
 
17438
    }
-
 
17439
 
-
 
17440
    @Override
-
 
17441
    public void clear() {
-
 
17442
      setItemIdIsSet(false);
-
 
17443
      this.itemId = 0;
-
 
17444
      setQuantityIsSet(false);
-
 
17445
      this.quantity = 0;
-
 
17446
    }
-
 
17447
 
-
 
17448
    public long getItemId() {
-
 
17449
      return this.itemId;
-
 
17450
    }
-
 
17451
 
-
 
17452
    public void setItemId(long itemId) {
-
 
17453
      this.itemId = itemId;
-
 
17454
      setItemIdIsSet(true);
-
 
17455
    }
-
 
17456
 
-
 
17457
    public void unsetItemId() {
-
 
17458
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
17459
    }
-
 
17460
 
-
 
17461
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
17462
    public boolean isSetItemId() {
-
 
17463
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
17464
    }
-
 
17465
 
-
 
17466
    public void setItemIdIsSet(boolean value) {
-
 
17467
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
17468
    }
-
 
17469
 
-
 
17470
    public long getQuantity() {
-
 
17471
      return this.quantity;
-
 
17472
    }
-
 
17473
 
-
 
17474
    public void setQuantity(long quantity) {
-
 
17475
      this.quantity = quantity;
-
 
17476
      setQuantityIsSet(true);
-
 
17477
    }
-
 
17478
 
-
 
17479
    public void unsetQuantity() {
-
 
17480
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
17481
    }
-
 
17482
 
-
 
17483
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
17484
    public boolean isSetQuantity() {
-
 
17485
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
17486
    }
-
 
17487
 
-
 
17488
    public void setQuantityIsSet(boolean value) {
-
 
17489
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
17490
    }
-
 
17491
 
-
 
17492
    public void setFieldValue(_Fields field, Object value) {
-
 
17493
      switch (field) {
-
 
17494
      case ITEM_ID:
-
 
17495
        if (value == null) {
-
 
17496
          unsetItemId();
-
 
17497
        } else {
-
 
17498
          setItemId((Long)value);
-
 
17499
        }
-
 
17500
        break;
-
 
17501
 
-
 
17502
      case QUANTITY:
-
 
17503
        if (value == null) {
-
 
17504
          unsetQuantity();
-
 
17505
        } else {
-
 
17506
          setQuantity((Long)value);
-
 
17507
        }
-
 
17508
        break;
-
 
17509
 
-
 
17510
      }
-
 
17511
    }
-
 
17512
 
-
 
17513
    public Object getFieldValue(_Fields field) {
-
 
17514
      switch (field) {
-
 
17515
      case ITEM_ID:
-
 
17516
        return Long.valueOf(getItemId());
-
 
17517
 
-
 
17518
      case QUANTITY:
-
 
17519
        return Long.valueOf(getQuantity());
-
 
17520
 
-
 
17521
      }
-
 
17522
      throw new IllegalStateException();
-
 
17523
    }
-
 
17524
 
-
 
17525
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17526
    public boolean isSet(_Fields field) {
-
 
17527
      if (field == null) {
-
 
17528
        throw new IllegalArgumentException();
-
 
17529
      }
-
 
17530
 
-
 
17531
      switch (field) {
-
 
17532
      case ITEM_ID:
-
 
17533
        return isSetItemId();
-
 
17534
      case QUANTITY:
-
 
17535
        return isSetQuantity();
-
 
17536
      }
-
 
17537
      throw new IllegalStateException();
-
 
17538
    }
-
 
17539
 
-
 
17540
    @Override
-
 
17541
    public boolean equals(Object that) {
-
 
17542
      if (that == null)
-
 
17543
        return false;
-
 
17544
      if (that instanceof fulfillPOForExtBilling_args)
-
 
17545
        return this.equals((fulfillPOForExtBilling_args)that);
-
 
17546
      return false;
-
 
17547
    }
-
 
17548
 
-
 
17549
    public boolean equals(fulfillPOForExtBilling_args that) {
-
 
17550
      if (that == null)
-
 
17551
        return false;
-
 
17552
 
-
 
17553
      boolean this_present_itemId = true;
-
 
17554
      boolean that_present_itemId = true;
-
 
17555
      if (this_present_itemId || that_present_itemId) {
-
 
17556
        if (!(this_present_itemId && that_present_itemId))
-
 
17557
          return false;
-
 
17558
        if (this.itemId != that.itemId)
-
 
17559
          return false;
-
 
17560
      }
-
 
17561
 
-
 
17562
      boolean this_present_quantity = true;
-
 
17563
      boolean that_present_quantity = true;
-
 
17564
      if (this_present_quantity || that_present_quantity) {
-
 
17565
        if (!(this_present_quantity && that_present_quantity))
-
 
17566
          return false;
-
 
17567
        if (this.quantity != that.quantity)
-
 
17568
          return false;
-
 
17569
      }
-
 
17570
 
-
 
17571
      return true;
-
 
17572
    }
-
 
17573
 
-
 
17574
    @Override
-
 
17575
    public int hashCode() {
-
 
17576
      return 0;
-
 
17577
    }
-
 
17578
 
-
 
17579
    public int compareTo(fulfillPOForExtBilling_args other) {
-
 
17580
      if (!getClass().equals(other.getClass())) {
-
 
17581
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17582
      }
-
 
17583
 
-
 
17584
      int lastComparison = 0;
-
 
17585
      fulfillPOForExtBilling_args typedOther = (fulfillPOForExtBilling_args)other;
-
 
17586
 
-
 
17587
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
17588
      if (lastComparison != 0) {
-
 
17589
        return lastComparison;
-
 
17590
      }
-
 
17591
      if (isSetItemId()) {
-
 
17592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
17593
        if (lastComparison != 0) {
-
 
17594
          return lastComparison;
-
 
17595
        }
-
 
17596
      }
-
 
17597
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
17598
      if (lastComparison != 0) {
-
 
17599
        return lastComparison;
-
 
17600
      }
-
 
17601
      if (isSetQuantity()) {
-
 
17602
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
17603
        if (lastComparison != 0) {
-
 
17604
          return lastComparison;
-
 
17605
        }
-
 
17606
      }
-
 
17607
      return 0;
-
 
17608
    }
-
 
17609
 
-
 
17610
    public _Fields fieldForId(int fieldId) {
-
 
17611
      return _Fields.findByThriftId(fieldId);
-
 
17612
    }
-
 
17613
 
-
 
17614
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17615
      org.apache.thrift.protocol.TField field;
-
 
17616
      iprot.readStructBegin();
-
 
17617
      while (true)
-
 
17618
      {
-
 
17619
        field = iprot.readFieldBegin();
-
 
17620
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17621
          break;
-
 
17622
        }
-
 
17623
        switch (field.id) {
-
 
17624
          case 1: // ITEM_ID
-
 
17625
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
17626
              this.itemId = iprot.readI64();
-
 
17627
              setItemIdIsSet(true);
-
 
17628
            } else { 
-
 
17629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17630
            }
-
 
17631
            break;
-
 
17632
          case 2: // QUANTITY
-
 
17633
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
17634
              this.quantity = iprot.readI64();
-
 
17635
              setQuantityIsSet(true);
-
 
17636
            } else { 
-
 
17637
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17638
            }
-
 
17639
            break;
-
 
17640
          default:
-
 
17641
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17642
        }
-
 
17643
        iprot.readFieldEnd();
-
 
17644
      }
-
 
17645
      iprot.readStructEnd();
-
 
17646
      validate();
-
 
17647
    }
-
 
17648
 
-
 
17649
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17650
      validate();
-
 
17651
 
-
 
17652
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17653
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
17654
      oprot.writeI64(this.itemId);
-
 
17655
      oprot.writeFieldEnd();
-
 
17656
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
17657
      oprot.writeI64(this.quantity);
-
 
17658
      oprot.writeFieldEnd();
-
 
17659
      oprot.writeFieldStop();
-
 
17660
      oprot.writeStructEnd();
-
 
17661
    }
-
 
17662
 
-
 
17663
    @Override
-
 
17664
    public String toString() {
-
 
17665
      StringBuilder sb = new StringBuilder("fulfillPOForExtBilling_args(");
-
 
17666
      boolean first = true;
-
 
17667
 
-
 
17668
      sb.append("itemId:");
-
 
17669
      sb.append(this.itemId);
-
 
17670
      first = false;
-
 
17671
      if (!first) sb.append(", ");
-
 
17672
      sb.append("quantity:");
-
 
17673
      sb.append(this.quantity);
-
 
17674
      first = false;
-
 
17675
      sb.append(")");
-
 
17676
      return sb.toString();
-
 
17677
    }
-
 
17678
 
-
 
17679
    public void validate() throws org.apache.thrift.TException {
-
 
17680
      // check for required fields
-
 
17681
    }
-
 
17682
 
-
 
17683
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17684
      try {
-
 
17685
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17686
      } catch (org.apache.thrift.TException te) {
-
 
17687
        throw new java.io.IOException(te);
-
 
17688
      }
-
 
17689
    }
-
 
17690
 
-
 
17691
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17692
      try {
-
 
17693
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
17694
        __isset_bit_vector = new BitSet(1);
-
 
17695
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17696
      } catch (org.apache.thrift.TException te) {
-
 
17697
        throw new java.io.IOException(te);
-
 
17698
      }
-
 
17699
    }
-
 
17700
 
-
 
17701
  }
-
 
17702
 
-
 
17703
  public static class fulfillPOForExtBilling_result implements org.apache.thrift.TBase<fulfillPOForExtBilling_result, fulfillPOForExtBilling_result._Fields>, java.io.Serializable, Cloneable   {
-
 
17704
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fulfillPOForExtBilling_result");
-
 
17705
 
-
 
17706
 
-
 
17707
 
-
 
17708
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17709
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17710
;
-
 
17711
 
-
 
17712
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17713
 
-
 
17714
      static {
-
 
17715
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17716
          byName.put(field.getFieldName(), field);
-
 
17717
        }
-
 
17718
      }
-
 
17719
 
-
 
17720
      /**
-
 
17721
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17722
       */
-
 
17723
      public static _Fields findByThriftId(int fieldId) {
-
 
17724
        switch(fieldId) {
-
 
17725
          default:
-
 
17726
            return null;
-
 
17727
        }
-
 
17728
      }
-
 
17729
 
-
 
17730
      /**
-
 
17731
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17732
       * if it is not found.
-
 
17733
       */
-
 
17734
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17735
        _Fields fields = findByThriftId(fieldId);
-
 
17736
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17737
        return fields;
-
 
17738
      }
-
 
17739
 
-
 
17740
      /**
-
 
17741
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17742
       */
-
 
17743
      public static _Fields findByName(String name) {
-
 
17744
        return byName.get(name);
-
 
17745
      }
-
 
17746
 
-
 
17747
      private final short _thriftId;
-
 
17748
      private final String _fieldName;
-
 
17749
 
-
 
17750
      _Fields(short thriftId, String fieldName) {
-
 
17751
        _thriftId = thriftId;
-
 
17752
        _fieldName = fieldName;
-
 
17753
      }
-
 
17754
 
-
 
17755
      public short getThriftFieldId() {
-
 
17756
        return _thriftId;
-
 
17757
      }
-
 
17758
 
-
 
17759
      public String getFieldName() {
-
 
17760
        return _fieldName;
-
 
17761
      }
-
 
17762
    }
-
 
17763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17764
    static {
-
 
17765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fulfillPOForExtBilling_result.class, metaDataMap);
-
 
17768
    }
-
 
17769
 
-
 
17770
    public fulfillPOForExtBilling_result() {
-
 
17771
    }
-
 
17772
 
-
 
17773
    /**
-
 
17774
     * Performs a deep copy on <i>other</i>.
-
 
17775
     */
-
 
17776
    public fulfillPOForExtBilling_result(fulfillPOForExtBilling_result other) {
-
 
17777
    }
-
 
17778
 
-
 
17779
    public fulfillPOForExtBilling_result deepCopy() {
-
 
17780
      return new fulfillPOForExtBilling_result(this);
-
 
17781
    }
-
 
17782
 
-
 
17783
    @Override
-
 
17784
    public void clear() {
-
 
17785
    }
-
 
17786
 
-
 
17787
    public void setFieldValue(_Fields field, Object value) {
-
 
17788
      switch (field) {
-
 
17789
      }
-
 
17790
    }
-
 
17791
 
-
 
17792
    public Object getFieldValue(_Fields field) {
-
 
17793
      switch (field) {
-
 
17794
      }
-
 
17795
      throw new IllegalStateException();
-
 
17796
    }
-
 
17797
 
-
 
17798
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17799
    public boolean isSet(_Fields field) {
-
 
17800
      if (field == null) {
-
 
17801
        throw new IllegalArgumentException();
-
 
17802
      }
-
 
17803
 
-
 
17804
      switch (field) {
-
 
17805
      }
-
 
17806
      throw new IllegalStateException();
-
 
17807
    }
-
 
17808
 
-
 
17809
    @Override
-
 
17810
    public boolean equals(Object that) {
-
 
17811
      if (that == null)
-
 
17812
        return false;
-
 
17813
      if (that instanceof fulfillPOForExtBilling_result)
-
 
17814
        return this.equals((fulfillPOForExtBilling_result)that);
-
 
17815
      return false;
-
 
17816
    }
-
 
17817
 
-
 
17818
    public boolean equals(fulfillPOForExtBilling_result that) {
-
 
17819
      if (that == null)
-
 
17820
        return false;
-
 
17821
 
-
 
17822
      return true;
-
 
17823
    }
-
 
17824
 
-
 
17825
    @Override
-
 
17826
    public int hashCode() {
-
 
17827
      return 0;
-
 
17828
    }
-
 
17829
 
-
 
17830
    public int compareTo(fulfillPOForExtBilling_result other) {
-
 
17831
      if (!getClass().equals(other.getClass())) {
-
 
17832
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17833
      }
-
 
17834
 
-
 
17835
      int lastComparison = 0;
-
 
17836
      fulfillPOForExtBilling_result typedOther = (fulfillPOForExtBilling_result)other;
-
 
17837
 
-
 
17838
      return 0;
-
 
17839
    }
-
 
17840
 
-
 
17841
    public _Fields fieldForId(int fieldId) {
-
 
17842
      return _Fields.findByThriftId(fieldId);
-
 
17843
    }
-
 
17844
 
-
 
17845
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17846
      org.apache.thrift.protocol.TField field;
-
 
17847
      iprot.readStructBegin();
-
 
17848
      while (true)
-
 
17849
      {
-
 
17850
        field = iprot.readFieldBegin();
-
 
17851
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17852
          break;
-
 
17853
        }
-
 
17854
        switch (field.id) {
-
 
17855
          default:
-
 
17856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17857
        }
-
 
17858
        iprot.readFieldEnd();
-
 
17859
      }
-
 
17860
      iprot.readStructEnd();
-
 
17861
      validate();
-
 
17862
    }
-
 
17863
 
-
 
17864
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17865
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17866
 
-
 
17867
      oprot.writeFieldStop();
-
 
17868
      oprot.writeStructEnd();
-
 
17869
    }
-
 
17870
 
-
 
17871
    @Override
-
 
17872
    public String toString() {
-
 
17873
      StringBuilder sb = new StringBuilder("fulfillPOForExtBilling_result(");
-
 
17874
      boolean first = true;
-
 
17875
 
-
 
17876
      sb.append(")");
-
 
17877
      return sb.toString();
-
 
17878
    }
-
 
17879
 
-
 
17880
    public void validate() throws org.apache.thrift.TException {
16377
      // check for required fields
17881
      // check for required fields
16378
    }
17882
    }
16379
 
17883
 
16380
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16381
      try {
17885
      try {