Subversion Repositories SmartDukaan

Rev

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

Rev 6561 Rev 6679
Line 60... Line 60...
60
 
60
 
61
    /**
61
    /**
62
     * Creates a coupon with prefix (optional, pass null)and returns couponcode if successfully created.
62
     * Creates a coupon with prefix (optional, pass null)and returns couponcode if successfully created.
63
     * 
63
     * 
64
     * @param promotionId
64
     * @param promotionId
65
     * @param endOn
-
 
66
     * @param email
-
 
67
     * @param amount
65
     * @param arguments
68
     * @param isCod
66
     * @param isCod
69
     * @param usage
-
 
70
     * @param prefix
67
     * @param prefix
71
     */
68
     */
72
    public String createCoupon(long promotionId, long endOn, String email, long amount, boolean isCod, long usage, String prefix) throws PromotionException, org.apache.thrift.TException;
69
    public String createCoupon(long promotionId, String arguments, boolean isCod, String prefix) throws PromotionException, org.apache.thrift.TException;
73
 
70
 
74
    /**
71
    /**
75
     * Returns the count of successful payments done using a given coupon
72
     * Returns the count of successful payments done using a given coupon
76
     * 
73
     * 
77
     * @param couponCode
74
     * @param couponCode
Line 125... Line 122...
125
 
122
 
126
    public void deleteCoupon(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteCoupon_call> resultHandler) throws org.apache.thrift.TException;
123
    public void deleteCoupon(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteCoupon_call> resultHandler) throws org.apache.thrift.TException;
127
 
124
 
128
    public void getActiveCoupons(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActiveCoupons_call> resultHandler) throws org.apache.thrift.TException;
125
    public void getActiveCoupons(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActiveCoupons_call> resultHandler) throws org.apache.thrift.TException;
129
 
126
 
130
    public void createCoupon(long promotionId, long endOn, String email, long amount, boolean isCod, long usage, String prefix, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createCoupon_call> resultHandler) throws org.apache.thrift.TException;
127
    public void createCoupon(long promotionId, String arguments, boolean isCod, String prefix, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createCoupon_call> resultHandler) throws org.apache.thrift.TException;
131
 
128
 
132
    public void getSuccessfulPaymentCountForCoupon(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentCountForCoupon_call> resultHandler) throws org.apache.thrift.TException;
129
    public void getSuccessfulPaymentCountForCoupon(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentCountForCoupon_call> resultHandler) throws org.apache.thrift.TException;
133
 
130
 
134
    public void getRuleDocString(String ruleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRuleDocString_call> resultHandler) throws org.apache.thrift.TException;
131
    public void getRuleDocString(String ruleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRuleDocString_call> resultHandler) throws org.apache.thrift.TException;
135
 
132
 
Line 523... Line 520...
523
        throw result.pex;
520
        throw result.pex;
524
      }
521
      }
525
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActiveCoupons failed: unknown result");
522
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActiveCoupons failed: unknown result");
526
    }
523
    }
527
 
524
 
528
    public String createCoupon(long promotionId, long endOn, String email, long amount, boolean isCod, long usage, String prefix) throws PromotionException, org.apache.thrift.TException
525
    public String createCoupon(long promotionId, String arguments, boolean isCod, String prefix) throws PromotionException, org.apache.thrift.TException
529
    {
526
    {
530
      send_createCoupon(promotionId, endOn, email, amount, isCod, usage, prefix);
527
      send_createCoupon(promotionId, arguments, isCod, prefix);
531
      return recv_createCoupon();
528
      return recv_createCoupon();
532
    }
529
    }
533
 
530
 
534
    public void send_createCoupon(long promotionId, long endOn, String email, long amount, boolean isCod, long usage, String prefix) throws org.apache.thrift.TException
531
    public void send_createCoupon(long promotionId, String arguments, boolean isCod, String prefix) throws org.apache.thrift.TException
535
    {
532
    {
536
      createCoupon_args args = new createCoupon_args();
533
      createCoupon_args args = new createCoupon_args();
537
      args.setPromotionId(promotionId);
534
      args.setPromotionId(promotionId);
538
      args.setEndOn(endOn);
-
 
539
      args.setEmail(email);
-
 
540
      args.setAmount(amount);
535
      args.setArguments(arguments);
541
      args.setIsCod(isCod);
536
      args.setIsCod(isCod);
542
      args.setUsage(usage);
-
 
543
      args.setPrefix(prefix);
537
      args.setPrefix(prefix);
544
      sendBase("createCoupon", args);
538
      sendBase("createCoupon", args);
545
    }
539
    }
546
 
540
 
547
    public String recv_createCoupon() throws PromotionException, org.apache.thrift.TException
541
    public String recv_createCoupon() throws PromotionException, org.apache.thrift.TException
Line 1213... Line 1207...
1213
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1207
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1214
        return (new Client(prot)).recv_getActiveCoupons();
1208
        return (new Client(prot)).recv_getActiveCoupons();
1215
      }
1209
      }
1216
    }
1210
    }
1217
 
1211
 
1218
    public void createCoupon(long promotionId, long endOn, String email, long amount, boolean isCod, long usage, String prefix, org.apache.thrift.async.AsyncMethodCallback<createCoupon_call> resultHandler) throws org.apache.thrift.TException {
1212
    public void createCoupon(long promotionId, String arguments, boolean isCod, String prefix, org.apache.thrift.async.AsyncMethodCallback<createCoupon_call> resultHandler) throws org.apache.thrift.TException {
1219
      checkReady();
1213
      checkReady();
1220
      createCoupon_call method_call = new createCoupon_call(promotionId, endOn, email, amount, isCod, usage, prefix, resultHandler, this, ___protocolFactory, ___transport);
1214
      createCoupon_call method_call = new createCoupon_call(promotionId, arguments, isCod, prefix, resultHandler, this, ___protocolFactory, ___transport);
1221
      this.___currentMethod = method_call;
1215
      this.___currentMethod = method_call;
1222
      ___manager.call(method_call);
1216
      ___manager.call(method_call);
1223
    }
1217
    }
1224
 
1218
 
1225
    public static class createCoupon_call extends org.apache.thrift.async.TAsyncMethodCall {
1219
    public static class createCoupon_call extends org.apache.thrift.async.TAsyncMethodCall {
1226
      private long promotionId;
1220
      private long promotionId;
1227
      private long endOn;
-
 
1228
      private String email;
1221
      private String arguments;
1229
      private long amount;
-
 
1230
      private boolean isCod;
1222
      private boolean isCod;
1231
      private long usage;
-
 
1232
      private String prefix;
1223
      private String prefix;
1233
      public createCoupon_call(long promotionId, long endOn, String email, long amount, boolean isCod, long usage, String prefix, org.apache.thrift.async.AsyncMethodCallback<createCoupon_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 {
1224
      public createCoupon_call(long promotionId, String arguments, boolean isCod, String prefix, org.apache.thrift.async.AsyncMethodCallback<createCoupon_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 {
1234
        super(client, protocolFactory, transport, resultHandler, false);
1225
        super(client, protocolFactory, transport, resultHandler, false);
1235
        this.promotionId = promotionId;
1226
        this.promotionId = promotionId;
1236
        this.endOn = endOn;
-
 
1237
        this.email = email;
-
 
1238
        this.amount = amount;
1227
        this.arguments = arguments;
1239
        this.isCod = isCod;
1228
        this.isCod = isCod;
1240
        this.usage = usage;
-
 
1241
        this.prefix = prefix;
1229
        this.prefix = prefix;
1242
      }
1230
      }
1243
 
1231
 
1244
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1232
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1245
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createCoupon", org.apache.thrift.protocol.TMessageType.CALL, 0));
1233
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createCoupon", org.apache.thrift.protocol.TMessageType.CALL, 0));
1246
        createCoupon_args args = new createCoupon_args();
1234
        createCoupon_args args = new createCoupon_args();
1247
        args.setPromotionId(promotionId);
1235
        args.setPromotionId(promotionId);
1248
        args.setEndOn(endOn);
-
 
1249
        args.setEmail(email);
-
 
1250
        args.setAmount(amount);
1236
        args.setArguments(arguments);
1251
        args.setIsCod(isCod);
1237
        args.setIsCod(isCod);
1252
        args.setUsage(usage);
-
 
1253
        args.setPrefix(prefix);
1238
        args.setPrefix(prefix);
1254
        args.write(prot);
1239
        args.write(prot);
1255
        prot.writeMessageEnd();
1240
        prot.writeMessageEnd();
1256
      }
1241
      }
1257
 
1242
 
Line 1832... Line 1817...
1832
      }
1817
      }
1833
 
1818
 
1834
      protected createCoupon_result getResult(I iface, createCoupon_args args) throws org.apache.thrift.TException {
1819
      protected createCoupon_result getResult(I iface, createCoupon_args args) throws org.apache.thrift.TException {
1835
        createCoupon_result result = new createCoupon_result();
1820
        createCoupon_result result = new createCoupon_result();
1836
        try {
1821
        try {
1837
          result.success = iface.createCoupon(args.promotionId, args.endOn, args.email, args.amount, args.isCod, args.usage, args.prefix);
1822
          result.success = iface.createCoupon(args.promotionId, args.arguments, args.isCod, args.prefix);
1838
        } catch (PromotionException pex) {
1823
        } catch (PromotionException pex) {
1839
          result.pex = pex;
1824
          result.pex = pex;
1840
        }
1825
        }
1841
        return result;
1826
        return result;
1842
      }
1827
      }
Line 11909... Line 11894...
11909
 
11894
 
11910
  public static class createCoupon_args implements org.apache.thrift.TBase<createCoupon_args, createCoupon_args._Fields>, java.io.Serializable, Cloneable   {
11895
  public static class createCoupon_args implements org.apache.thrift.TBase<createCoupon_args, createCoupon_args._Fields>, java.io.Serializable, Cloneable   {
11911
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createCoupon_args");
11896
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createCoupon_args");
11912
 
11897
 
11913
    private static final org.apache.thrift.protocol.TField PROMOTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionId", org.apache.thrift.protocol.TType.I64, (short)1);
11898
    private static final org.apache.thrift.protocol.TField PROMOTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionId", org.apache.thrift.protocol.TType.I64, (short)1);
11914
    private static final org.apache.thrift.protocol.TField END_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("endOn", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
11915
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
11916
    private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)4);
11899
    private static final org.apache.thrift.protocol.TField ARGUMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("arguments", org.apache.thrift.protocol.TType.STRING, (short)2);
11917
    private static final org.apache.thrift.protocol.TField IS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("isCod", org.apache.thrift.protocol.TType.BOOL, (short)5);
11900
    private static final org.apache.thrift.protocol.TField IS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("isCod", org.apache.thrift.protocol.TType.BOOL, (short)3);
11918
    private static final org.apache.thrift.protocol.TField USAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("usage", org.apache.thrift.protocol.TType.I64, (short)6);
-
 
11919
    private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)7);
11901
    private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)4);
11920
 
11902
 
11921
    private long promotionId; // required
11903
    private long promotionId; // required
11922
    private long endOn; // required
-
 
11923
    private String email; // required
11904
    private String arguments; // required
11924
    private long amount; // required
-
 
11925
    private boolean isCod; // required
11905
    private boolean isCod; // required
11926
    private long usage; // required
-
 
11927
    private String prefix; // required
11906
    private String prefix; // required
11928
 
11907
 
11929
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11908
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11930
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11909
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11931
      PROMOTION_ID((short)1, "promotionId"),
11910
      PROMOTION_ID((short)1, "promotionId"),
11932
      END_ON((short)2, "endOn"),
-
 
11933
      EMAIL((short)3, "email"),
-
 
11934
      AMOUNT((short)4, "amount"),
11911
      ARGUMENTS((short)2, "arguments"),
11935
      IS_COD((short)5, "isCod"),
11912
      IS_COD((short)3, "isCod"),
11936
      USAGE((short)6, "usage"),
-
 
11937
      PREFIX((short)7, "prefix");
11913
      PREFIX((short)4, "prefix");
11938
 
11914
 
11939
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11940
 
11916
 
11941
      static {
11917
      static {
11942
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 11949... Line 11925...
11949
       */
11925
       */
11950
      public static _Fields findByThriftId(int fieldId) {
11926
      public static _Fields findByThriftId(int fieldId) {
11951
        switch(fieldId) {
11927
        switch(fieldId) {
11952
          case 1: // PROMOTION_ID
11928
          case 1: // PROMOTION_ID
11953
            return PROMOTION_ID;
11929
            return PROMOTION_ID;
11954
          case 2: // END_ON
-
 
11955
            return END_ON;
-
 
11956
          case 3: // EMAIL
-
 
11957
            return EMAIL;
-
 
11958
          case 4: // AMOUNT
11930
          case 2: // ARGUMENTS
11959
            return AMOUNT;
11931
            return ARGUMENTS;
11960
          case 5: // IS_COD
11932
          case 3: // IS_COD
11961
            return IS_COD;
11933
            return IS_COD;
11962
          case 6: // USAGE
-
 
11963
            return USAGE;
-
 
11964
          case 7: // PREFIX
11934
          case 4: // PREFIX
11965
            return PREFIX;
11935
            return PREFIX;
11966
          default:
11936
          default:
11967
            return null;
11937
            return null;
11968
        }
11938
        }
11969
      }
11939
      }
Line 12002... Line 11972...
12002
      }
11972
      }
12003
    }
11973
    }
12004
 
11974
 
12005
    // isset id assignments
11975
    // isset id assignments
12006
    private static final int __PROMOTIONID_ISSET_ID = 0;
11976
    private static final int __PROMOTIONID_ISSET_ID = 0;
12007
    private static final int __ENDON_ISSET_ID = 1;
-
 
12008
    private static final int __AMOUNT_ISSET_ID = 2;
-
 
12009
    private static final int __ISCOD_ISSET_ID = 3;
11977
    private static final int __ISCOD_ISSET_ID = 1;
12010
    private static final int __USAGE_ISSET_ID = 4;
-
 
12011
    private BitSet __isset_bit_vector = new BitSet(5);
11978
    private BitSet __isset_bit_vector = new BitSet(2);
12012
 
11979
 
12013
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11980
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12014
    static {
11981
    static {
12015
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11982
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12016
      tmpMap.put(_Fields.PROMOTION_ID, new org.apache.thrift.meta_data.FieldMetaData("promotionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11983
      tmpMap.put(_Fields.PROMOTION_ID, new org.apache.thrift.meta_data.FieldMetaData("promotionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12017
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11984
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12018
      tmpMap.put(_Fields.END_ON, new org.apache.thrift.meta_data.FieldMetaData("endOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11985
      tmpMap.put(_Fields.ARGUMENTS, new org.apache.thrift.meta_data.FieldMetaData("arguments", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12019
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12020
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11986
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12022
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12023
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12024
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11987
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12025
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11988
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12026
      tmpMap.put(_Fields.USAGE, new org.apache.thrift.meta_data.FieldMetaData("usage", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12027
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12028
      tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11989
      tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12030
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11991
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12031
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createCoupon_args.class, metaDataMap);
11992
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createCoupon_args.class, metaDataMap);
12032
    }
11993
    }
Line 12034... Line 11995...
12034
    public createCoupon_args() {
11995
    public createCoupon_args() {
12035
    }
11996
    }
12036
 
11997
 
12037
    public createCoupon_args(
11998
    public createCoupon_args(
12038
      long promotionId,
11999
      long promotionId,
12039
      long endOn,
-
 
12040
      String email,
12000
      String arguments,
12041
      long amount,
-
 
12042
      boolean isCod,
12001
      boolean isCod,
12043
      long usage,
-
 
12044
      String prefix)
12002
      String prefix)
12045
    {
12003
    {
12046
      this();
12004
      this();
12047
      this.promotionId = promotionId;
12005
      this.promotionId = promotionId;
12048
      setPromotionIdIsSet(true);
12006
      setPromotionIdIsSet(true);
12049
      this.endOn = endOn;
-
 
12050
      setEndOnIsSet(true);
-
 
12051
      this.email = email;
-
 
12052
      this.amount = amount;
12007
      this.arguments = arguments;
12053
      setAmountIsSet(true);
-
 
12054
      this.isCod = isCod;
12008
      this.isCod = isCod;
12055
      setIsCodIsSet(true);
12009
      setIsCodIsSet(true);
12056
      this.usage = usage;
-
 
12057
      setUsageIsSet(true);
-
 
12058
      this.prefix = prefix;
12010
      this.prefix = prefix;
12059
    }
12011
    }
12060
 
12012
 
12061
    /**
12013
    /**
12062
     * Performs a deep copy on <i>other</i>.
12014
     * Performs a deep copy on <i>other</i>.
12063
     */
12015
     */
12064
    public createCoupon_args(createCoupon_args other) {
12016
    public createCoupon_args(createCoupon_args other) {
12065
      __isset_bit_vector.clear();
12017
      __isset_bit_vector.clear();
12066
      __isset_bit_vector.or(other.__isset_bit_vector);
12018
      __isset_bit_vector.or(other.__isset_bit_vector);
12067
      this.promotionId = other.promotionId;
12019
      this.promotionId = other.promotionId;
12068
      this.endOn = other.endOn;
-
 
12069
      if (other.isSetEmail()) {
12020
      if (other.isSetArguments()) {
12070
        this.email = other.email;
12021
        this.arguments = other.arguments;
12071
      }
12022
      }
12072
      this.amount = other.amount;
-
 
12073
      this.isCod = other.isCod;
12023
      this.isCod = other.isCod;
12074
      this.usage = other.usage;
-
 
12075
      if (other.isSetPrefix()) {
12024
      if (other.isSetPrefix()) {
12076
        this.prefix = other.prefix;
12025
        this.prefix = other.prefix;
12077
      }
12026
      }
12078
    }
12027
    }
12079
 
12028
 
Line 12083... Line 12032...
12083
 
12032
 
12084
    @Override
12033
    @Override
12085
    public void clear() {
12034
    public void clear() {
12086
      setPromotionIdIsSet(false);
12035
      setPromotionIdIsSet(false);
12087
      this.promotionId = 0;
12036
      this.promotionId = 0;
12088
      setEndOnIsSet(false);
-
 
12089
      this.endOn = 0;
-
 
12090
      this.email = null;
12037
      this.arguments = null;
12091
      setAmountIsSet(false);
-
 
12092
      this.amount = 0;
-
 
12093
      setIsCodIsSet(false);
12038
      setIsCodIsSet(false);
12094
      this.isCod = false;
12039
      this.isCod = false;
12095
      setUsageIsSet(false);
-
 
12096
      this.usage = 0;
-
 
12097
      this.prefix = null;
12040
      this.prefix = null;
12098
    }
12041
    }
12099
 
12042
 
12100
    public long getPromotionId() {
12043
    public long getPromotionId() {
12101
      return this.promotionId;
12044
      return this.promotionId;
Line 12117... Line 12060...
12117
 
12060
 
12118
    public void setPromotionIdIsSet(boolean value) {
12061
    public void setPromotionIdIsSet(boolean value) {
12119
      __isset_bit_vector.set(__PROMOTIONID_ISSET_ID, value);
12062
      __isset_bit_vector.set(__PROMOTIONID_ISSET_ID, value);
12120
    }
12063
    }
12121
 
12064
 
12122
    public long getEndOn() {
-
 
12123
      return this.endOn;
-
 
12124
    }
-
 
12125
 
-
 
12126
    public void setEndOn(long endOn) {
-
 
12127
      this.endOn = endOn;
-
 
12128
      setEndOnIsSet(true);
-
 
12129
    }
-
 
12130
 
-
 
12131
    public void unsetEndOn() {
-
 
12132
      __isset_bit_vector.clear(__ENDON_ISSET_ID);
-
 
12133
    }
-
 
12134
 
-
 
12135
    /** Returns true if field endOn is set (has been assigned a value) and false otherwise */
-
 
12136
    public boolean isSetEndOn() {
-
 
12137
      return __isset_bit_vector.get(__ENDON_ISSET_ID);
-
 
12138
    }
-
 
12139
 
-
 
12140
    public void setEndOnIsSet(boolean value) {
-
 
12141
      __isset_bit_vector.set(__ENDON_ISSET_ID, value);
-
 
12142
    }
-
 
12143
 
-
 
12144
    public String getEmail() {
12065
    public String getArguments() {
12145
      return this.email;
12066
      return this.arguments;
12146
    }
12067
    }
12147
 
12068
 
12148
    public void setEmail(String email) {
12069
    public void setArguments(String arguments) {
12149
      this.email = email;
12070
      this.arguments = arguments;
12150
    }
12071
    }
12151
 
12072
 
12152
    public void unsetEmail() {
12073
    public void unsetArguments() {
12153
      this.email = null;
12074
      this.arguments = null;
12154
    }
12075
    }
12155
 
12076
 
12156
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
12077
    /** Returns true if field arguments is set (has been assigned a value) and false otherwise */
12157
    public boolean isSetEmail() {
12078
    public boolean isSetArguments() {
12158
      return this.email != null;
12079
      return this.arguments != null;
12159
    }
12080
    }
12160
 
12081
 
12161
    public void setEmailIsSet(boolean value) {
12082
    public void setArgumentsIsSet(boolean value) {
12162
      if (!value) {
12083
      if (!value) {
12163
        this.email = null;
12084
        this.arguments = null;
12164
      }
12085
      }
12165
    }
12086
    }
12166
 
12087
 
12167
    public long getAmount() {
-
 
12168
      return this.amount;
-
 
12169
    }
-
 
12170
 
-
 
12171
    public void setAmount(long amount) {
-
 
12172
      this.amount = amount;
-
 
12173
      setAmountIsSet(true);
-
 
12174
    }
-
 
12175
 
-
 
12176
    public void unsetAmount() {
-
 
12177
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
-
 
12178
    }
-
 
12179
 
-
 
12180
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
-
 
12181
    public boolean isSetAmount() {
-
 
12182
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
-
 
12183
    }
-
 
12184
 
-
 
12185
    public void setAmountIsSet(boolean value) {
-
 
12186
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
-
 
12187
    }
-
 
12188
 
-
 
12189
    public boolean isIsCod() {
12088
    public boolean isIsCod() {
12190
      return this.isCod;
12089
      return this.isCod;
12191
    }
12090
    }
12192
 
12091
 
12193
    public void setIsCod(boolean isCod) {
12092
    public void setIsCod(boolean isCod) {
Line 12206... Line 12105...
12206
 
12105
 
12207
    public void setIsCodIsSet(boolean value) {
12106
    public void setIsCodIsSet(boolean value) {
12208
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
12107
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
12209
    }
12108
    }
12210
 
12109
 
12211
    public long getUsage() {
-
 
12212
      return this.usage;
-
 
12213
    }
-
 
12214
 
-
 
12215
    public void setUsage(long usage) {
-
 
12216
      this.usage = usage;
-
 
12217
      setUsageIsSet(true);
-
 
12218
    }
-
 
12219
 
-
 
12220
    public void unsetUsage() {
-
 
12221
      __isset_bit_vector.clear(__USAGE_ISSET_ID);
-
 
12222
    }
-
 
12223
 
-
 
12224
    /** Returns true if field usage is set (has been assigned a value) and false otherwise */
-
 
12225
    public boolean isSetUsage() {
-
 
12226
      return __isset_bit_vector.get(__USAGE_ISSET_ID);
-
 
12227
    }
-
 
12228
 
-
 
12229
    public void setUsageIsSet(boolean value) {
-
 
12230
      __isset_bit_vector.set(__USAGE_ISSET_ID, value);
-
 
12231
    }
-
 
12232
 
-
 
12233
    public String getPrefix() {
12110
    public String getPrefix() {
12234
      return this.prefix;
12111
      return this.prefix;
12235
    }
12112
    }
12236
 
12113
 
12237
    public void setPrefix(String prefix) {
12114
    public void setPrefix(String prefix) {
Line 12261... Line 12138...
12261
        } else {
12138
        } else {
12262
          setPromotionId((Long)value);
12139
          setPromotionId((Long)value);
12263
        }
12140
        }
12264
        break;
12141
        break;
12265
 
12142
 
12266
      case END_ON:
-
 
12267
        if (value == null) {
-
 
12268
          unsetEndOn();
-
 
12269
        } else {
-
 
12270
          setEndOn((Long)value);
-
 
12271
        }
-
 
12272
        break;
-
 
12273
 
-
 
12274
      case EMAIL:
-
 
12275
        if (value == null) {
-
 
12276
          unsetEmail();
-
 
12277
        } else {
-
 
12278
          setEmail((String)value);
-
 
12279
        }
-
 
12280
        break;
-
 
12281
 
-
 
12282
      case AMOUNT:
12143
      case ARGUMENTS:
12283
        if (value == null) {
12144
        if (value == null) {
12284
          unsetAmount();
12145
          unsetArguments();
12285
        } else {
12146
        } else {
12286
          setAmount((Long)value);
12147
          setArguments((String)value);
12287
        }
12148
        }
12288
        break;
12149
        break;
12289
 
12150
 
12290
      case IS_COD:
12151
      case IS_COD:
12291
        if (value == null) {
12152
        if (value == null) {
Line 12293... Line 12154...
12293
        } else {
12154
        } else {
12294
          setIsCod((Boolean)value);
12155
          setIsCod((Boolean)value);
12295
        }
12156
        }
12296
        break;
12157
        break;
12297
 
12158
 
12298
      case USAGE:
-
 
12299
        if (value == null) {
-
 
12300
          unsetUsage();
-
 
12301
        } else {
-
 
12302
          setUsage((Long)value);
-
 
12303
        }
-
 
12304
        break;
-
 
12305
 
-
 
12306
      case PREFIX:
12159
      case PREFIX:
12307
        if (value == null) {
12160
        if (value == null) {
12308
          unsetPrefix();
12161
          unsetPrefix();
12309
        } else {
12162
        } else {
12310
          setPrefix((String)value);
12163
          setPrefix((String)value);
Line 12317... Line 12170...
12317
    public Object getFieldValue(_Fields field) {
12170
    public Object getFieldValue(_Fields field) {
12318
      switch (field) {
12171
      switch (field) {
12319
      case PROMOTION_ID:
12172
      case PROMOTION_ID:
12320
        return Long.valueOf(getPromotionId());
12173
        return Long.valueOf(getPromotionId());
12321
 
12174
 
12322
      case END_ON:
12175
      case ARGUMENTS:
12323
        return Long.valueOf(getEndOn());
-
 
12324
 
-
 
12325
      case EMAIL:
-
 
12326
        return getEmail();
12176
        return getArguments();
12327
 
-
 
12328
      case AMOUNT:
-
 
12329
        return Long.valueOf(getAmount());
-
 
12330
 
12177
 
12331
      case IS_COD:
12178
      case IS_COD:
12332
        return Boolean.valueOf(isIsCod());
12179
        return Boolean.valueOf(isIsCod());
12333
 
12180
 
12334
      case USAGE:
-
 
12335
        return Long.valueOf(getUsage());
-
 
12336
 
-
 
12337
      case PREFIX:
12181
      case PREFIX:
12338
        return getPrefix();
12182
        return getPrefix();
12339
 
12183
 
12340
      }
12184
      }
12341
      throw new IllegalStateException();
12185
      throw new IllegalStateException();
Line 12348... Line 12192...
12348
      }
12192
      }
12349
 
12193
 
12350
      switch (field) {
12194
      switch (field) {
12351
      case PROMOTION_ID:
12195
      case PROMOTION_ID:
12352
        return isSetPromotionId();
12196
        return isSetPromotionId();
12353
      case END_ON:
-
 
12354
        return isSetEndOn();
-
 
12355
      case EMAIL:
-
 
12356
        return isSetEmail();
-
 
12357
      case AMOUNT:
12197
      case ARGUMENTS:
12358
        return isSetAmount();
12198
        return isSetArguments();
12359
      case IS_COD:
12199
      case IS_COD:
12360
        return isSetIsCod();
12200
        return isSetIsCod();
12361
      case USAGE:
-
 
12362
        return isSetUsage();
-
 
12363
      case PREFIX:
12201
      case PREFIX:
12364
        return isSetPrefix();
12202
        return isSetPrefix();
12365
      }
12203
      }
12366
      throw new IllegalStateException();
12204
      throw new IllegalStateException();
12367
    }
12205
    }
Line 12386... Line 12224...
12386
          return false;
12224
          return false;
12387
        if (this.promotionId != that.promotionId)
12225
        if (this.promotionId != that.promotionId)
12388
          return false;
12226
          return false;
12389
      }
12227
      }
12390
 
12228
 
12391
      boolean this_present_endOn = true;
-
 
12392
      boolean that_present_endOn = true;
-
 
12393
      if (this_present_endOn || that_present_endOn) {
-
 
12394
        if (!(this_present_endOn && that_present_endOn))
-
 
12395
          return false;
-
 
12396
        if (this.endOn != that.endOn)
-
 
12397
          return false;
-
 
12398
      }
-
 
12399
 
-
 
12400
      boolean this_present_email = true && this.isSetEmail();
12229
      boolean this_present_arguments = true && this.isSetArguments();
12401
      boolean that_present_email = true && that.isSetEmail();
12230
      boolean that_present_arguments = true && that.isSetArguments();
12402
      if (this_present_email || that_present_email) {
-
 
12403
        if (!(this_present_email && that_present_email))
-
 
12404
          return false;
-
 
12405
        if (!this.email.equals(that.email))
-
 
12406
          return false;
-
 
12407
      }
-
 
12408
 
-
 
12409
      boolean this_present_amount = true;
-
 
12410
      boolean that_present_amount = true;
-
 
12411
      if (this_present_amount || that_present_amount) {
12231
      if (this_present_arguments || that_present_arguments) {
12412
        if (!(this_present_amount && that_present_amount))
12232
        if (!(this_present_arguments && that_present_arguments))
12413
          return false;
12233
          return false;
12414
        if (this.amount != that.amount)
12234
        if (!this.arguments.equals(that.arguments))
12415
          return false;
12235
          return false;
12416
      }
12236
      }
12417
 
12237
 
12418
      boolean this_present_isCod = true;
12238
      boolean this_present_isCod = true;
12419
      boolean that_present_isCod = true;
12239
      boolean that_present_isCod = true;
Line 12422... Line 12242...
12422
          return false;
12242
          return false;
12423
        if (this.isCod != that.isCod)
12243
        if (this.isCod != that.isCod)
12424
          return false;
12244
          return false;
12425
      }
12245
      }
12426
 
12246
 
12427
      boolean this_present_usage = true;
-
 
12428
      boolean that_present_usage = true;
-
 
12429
      if (this_present_usage || that_present_usage) {
-
 
12430
        if (!(this_present_usage && that_present_usage))
-
 
12431
          return false;
-
 
12432
        if (this.usage != that.usage)
-
 
12433
          return false;
-
 
12434
      }
-
 
12435
 
-
 
12436
      boolean this_present_prefix = true && this.isSetPrefix();
12247
      boolean this_present_prefix = true && this.isSetPrefix();
12437
      boolean that_present_prefix = true && that.isSetPrefix();
12248
      boolean that_present_prefix = true && that.isSetPrefix();
12438
      if (this_present_prefix || that_present_prefix) {
12249
      if (this_present_prefix || that_present_prefix) {
12439
        if (!(this_present_prefix && that_present_prefix))
12250
        if (!(this_present_prefix && that_present_prefix))
12440
          return false;
12251
          return false;
Line 12466... Line 12277...
12466
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionId, typedOther.promotionId);
12277
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionId, typedOther.promotionId);
12467
        if (lastComparison != 0) {
12278
        if (lastComparison != 0) {
12468
          return lastComparison;
12279
          return lastComparison;
12469
        }
12280
        }
12470
      }
12281
      }
12471
      lastComparison = Boolean.valueOf(isSetEndOn()).compareTo(typedOther.isSetEndOn());
12282
      lastComparison = Boolean.valueOf(isSetArguments()).compareTo(typedOther.isSetArguments());
12472
      if (lastComparison != 0) {
-
 
12473
        return lastComparison;
-
 
12474
      }
-
 
12475
      if (isSetEndOn()) {
-
 
12476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endOn, typedOther.endOn);
-
 
12477
        if (lastComparison != 0) {
-
 
12478
          return lastComparison;
-
 
12479
        }
-
 
12480
      }
-
 
12481
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
-
 
12482
      if (lastComparison != 0) {
12283
      if (lastComparison != 0) {
12483
        return lastComparison;
12284
        return lastComparison;
12484
      }
12285
      }
12485
      if (isSetEmail()) {
-
 
12486
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
-
 
12487
        if (lastComparison != 0) {
-
 
12488
          return lastComparison;
-
 
12489
        }
-
 
12490
      }
-
 
12491
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
-
 
12492
      if (lastComparison != 0) {
-
 
12493
        return lastComparison;
-
 
12494
      }
-
 
12495
      if (isSetAmount()) {
12286
      if (isSetArguments()) {
12496
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
12287
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.arguments, typedOther.arguments);
12497
        if (lastComparison != 0) {
12288
        if (lastComparison != 0) {
12498
          return lastComparison;
12289
          return lastComparison;
12499
        }
12290
        }
12500
      }
12291
      }
12501
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
12292
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
Line 12506... Line 12297...
12506
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
12297
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
12507
        if (lastComparison != 0) {
12298
        if (lastComparison != 0) {
12508
          return lastComparison;
12299
          return lastComparison;
12509
        }
12300
        }
12510
      }
12301
      }
12511
      lastComparison = Boolean.valueOf(isSetUsage()).compareTo(typedOther.isSetUsage());
-
 
12512
      if (lastComparison != 0) {
-
 
12513
        return lastComparison;
-
 
12514
      }
-
 
12515
      if (isSetUsage()) {
-
 
12516
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.usage, typedOther.usage);
-
 
12517
        if (lastComparison != 0) {
-
 
12518
          return lastComparison;
-
 
12519
        }
-
 
12520
      }
-
 
12521
      lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(typedOther.isSetPrefix());
12302
      lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(typedOther.isSetPrefix());
12522
      if (lastComparison != 0) {
12303
      if (lastComparison != 0) {
12523
        return lastComparison;
12304
        return lastComparison;
12524
      }
12305
      }
12525
      if (isSetPrefix()) {
12306
      if (isSetPrefix()) {
Line 12551... Line 12332...
12551
              setPromotionIdIsSet(true);
12332
              setPromotionIdIsSet(true);
12552
            } else { 
12333
            } else { 
12553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12334
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12554
            }
12335
            }
12555
            break;
12336
            break;
12556
          case 2: // END_ON
12337
          case 2: // ARGUMENTS
12557
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12558
              this.endOn = iprot.readI64();
-
 
12559
              setEndOnIsSet(true);
-
 
12560
            } else { 
-
 
12561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12562
            }
-
 
12563
            break;
-
 
12564
          case 3: // EMAIL
-
 
12565
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12338
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12566
              this.email = iprot.readString();
12339
              this.arguments = iprot.readString();
12567
            } else { 
12340
            } else { 
12568
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12341
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12569
            }
12342
            }
12570
            break;
12343
            break;
12571
          case 4: // AMOUNT
-
 
12572
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12573
              this.amount = iprot.readI64();
-
 
12574
              setAmountIsSet(true);
-
 
12575
            } else { 
-
 
12576
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12577
            }
-
 
12578
            break;
-
 
12579
          case 5: // IS_COD
12344
          case 3: // IS_COD
12580
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12345
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12581
              this.isCod = iprot.readBool();
12346
              this.isCod = iprot.readBool();
12582
              setIsCodIsSet(true);
12347
              setIsCodIsSet(true);
12583
            } else { 
12348
            } else { 
12584
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12585
            }
12350
            }
12586
            break;
12351
            break;
12587
          case 6: // USAGE
-
 
12588
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
12589
              this.usage = iprot.readI64();
-
 
12590
              setUsageIsSet(true);
-
 
12591
            } else { 
-
 
12592
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12593
            }
-
 
12594
            break;
-
 
12595
          case 7: // PREFIX
12352
          case 4: // PREFIX
12596
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12353
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12597
              this.prefix = iprot.readString();
12354
              this.prefix = iprot.readString();
12598
            } else { 
12355
            } else { 
12599
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12356
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12600
            }
12357
            }
Line 12613... Line 12370...
12613
 
12370
 
12614
      oprot.writeStructBegin(STRUCT_DESC);
12371
      oprot.writeStructBegin(STRUCT_DESC);
12615
      oprot.writeFieldBegin(PROMOTION_ID_FIELD_DESC);
12372
      oprot.writeFieldBegin(PROMOTION_ID_FIELD_DESC);
12616
      oprot.writeI64(this.promotionId);
12373
      oprot.writeI64(this.promotionId);
12617
      oprot.writeFieldEnd();
12374
      oprot.writeFieldEnd();
12618
      oprot.writeFieldBegin(END_ON_FIELD_DESC);
-
 
12619
      oprot.writeI64(this.endOn);
-
 
12620
      oprot.writeFieldEnd();
-
 
12621
      if (this.email != null) {
12375
      if (this.arguments != null) {
12622
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
12376
        oprot.writeFieldBegin(ARGUMENTS_FIELD_DESC);
12623
        oprot.writeString(this.email);
12377
        oprot.writeString(this.arguments);
12624
        oprot.writeFieldEnd();
12378
        oprot.writeFieldEnd();
12625
      }
12379
      }
12626
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
-
 
12627
      oprot.writeI64(this.amount);
-
 
12628
      oprot.writeFieldEnd();
-
 
12629
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
12380
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
12630
      oprot.writeBool(this.isCod);
12381
      oprot.writeBool(this.isCod);
12631
      oprot.writeFieldEnd();
12382
      oprot.writeFieldEnd();
12632
      oprot.writeFieldBegin(USAGE_FIELD_DESC);
-
 
12633
      oprot.writeI64(this.usage);
-
 
12634
      oprot.writeFieldEnd();
-
 
12635
      if (this.prefix != null) {
12383
      if (this.prefix != null) {
12636
        oprot.writeFieldBegin(PREFIX_FIELD_DESC);
12384
        oprot.writeFieldBegin(PREFIX_FIELD_DESC);
12637
        oprot.writeString(this.prefix);
12385
        oprot.writeString(this.prefix);
12638
        oprot.writeFieldEnd();
12386
        oprot.writeFieldEnd();
12639
      }
12387
      }
Line 12648... Line 12396...
12648
 
12396
 
12649
      sb.append("promotionId:");
12397
      sb.append("promotionId:");
12650
      sb.append(this.promotionId);
12398
      sb.append(this.promotionId);
12651
      first = false;
12399
      first = false;
12652
      if (!first) sb.append(", ");
12400
      if (!first) sb.append(", ");
12653
      sb.append("endOn:");
12401
      sb.append("arguments:");
12654
      sb.append(this.endOn);
-
 
12655
      first = false;
-
 
12656
      if (!first) sb.append(", ");
-
 
12657
      sb.append("email:");
-
 
12658
      if (this.email == null) {
12402
      if (this.arguments == null) {
12659
        sb.append("null");
12403
        sb.append("null");
12660
      } else {
12404
      } else {
12661
        sb.append(this.email);
12405
        sb.append(this.arguments);
12662
      }
12406
      }
12663
      first = false;
12407
      first = false;
12664
      if (!first) sb.append(", ");
12408
      if (!first) sb.append(", ");
12665
      sb.append("amount:");
-
 
12666
      sb.append(this.amount);
-
 
12667
      first = false;
-
 
12668
      if (!first) sb.append(", ");
-
 
12669
      sb.append("isCod:");
12409
      sb.append("isCod:");
12670
      sb.append(this.isCod);
12410
      sb.append(this.isCod);
12671
      first = false;
12411
      first = false;
12672
      if (!first) sb.append(", ");
12412
      if (!first) sb.append(", ");
12673
      sb.append("usage:");
-
 
12674
      sb.append(this.usage);
-
 
12675
      first = false;
-
 
12676
      if (!first) sb.append(", ");
-
 
12677
      sb.append("prefix:");
12413
      sb.append("prefix:");
12678
      if (this.prefix == null) {
12414
      if (this.prefix == null) {
12679
        sb.append("null");
12415
        sb.append("null");
12680
      } else {
12416
      } else {
12681
        sb.append(this.prefix);
12417
        sb.append(this.prefix);