Subversion Repositories SmartDukaan

Rev

Rev 1013 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1013 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.payments;
6
package in.shop2020.payments;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class PaymentGateway implements TBase<PaymentGateway._Fields>, java.io.Serializable, Cloneable, Comparable<PaymentGateway> {
23
public class PaymentGateway implements org.apache.thrift.TBase<PaymentGateway, PaymentGateway._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("PaymentGateway");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PaymentGateway");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
31
  private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)3);
32
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)4);
33
  private static final TField ALIAS_NAME_FIELD_DESC = new TField("aliasName", TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField ALIAS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("aliasName", org.apache.thrift.protocol.TType.STRING, (short)5);
34
  private static final TField RESPONSE_URL_FIELD_DESC = new TField("responseUrl", TType.STRING, (short)6);
31
  private static final org.apache.thrift.protocol.TField RESPONSE_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("responseUrl", org.apache.thrift.protocol.TType.STRING, (short)6);
35
  private static final TField ERROR_URL_FIELD_DESC = new TField("errorUrl", TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField ERROR_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("errorUrl", org.apache.thrift.protocol.TType.STRING, (short)7);
36
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8);
33
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)8);
37
  private static final TField ATTRIBUTES_FIELD_DESC = new TField("attributes", TType.LIST, (short)9);
34
  private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.LIST, (short)9);
38
 
35
 
39
  private long id;
36
  private long id; // required
40
  private String name;
37
  private String name; // required
41
  private String url;
38
  private String url; // required
42
  private long addedOn;
39
  private long addedOn; // required
43
  private String aliasName;
40
  private String aliasName; // required
44
  private String responseUrl;
41
  private String responseUrl; // required
45
  private String errorUrl;
42
  private String errorUrl; // required
46
  private PaymentGatewayStatus status;
43
  private PaymentGatewayStatus status; // required
47
  private List<Attribute> attributes;
44
  private List<Attribute> attributes; // required
48
 
45
 
49
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50
  public enum _Fields implements TFieldIdEnum {
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51
    ID((short)1, "id"),
48
    ID((short)1, "id"),
52
    NAME((short)2, "name"),
49
    NAME((short)2, "name"),
53
    URL((short)3, "url"),
50
    URL((short)3, "url"),
54
    ADDED_ON((short)4, "addedOn"),
51
    ADDED_ON((short)4, "addedOn"),
55
    ALIAS_NAME((short)5, "aliasName"),
52
    ALIAS_NAME((short)5, "aliasName"),
Line 60... Line 57...
60
     * @see PaymentGatewayStatus
57
     * @see PaymentGatewayStatus
61
     */
58
     */
62
    STATUS((short)8, "status"),
59
    STATUS((short)8, "status"),
63
    ATTRIBUTES((short)9, "attributes");
60
    ATTRIBUTES((short)9, "attributes");
64
 
61
 
65
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
66
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
67
 
63
 
68
    static {
64
    static {
69
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
65
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
70
        byId.put((int)field._thriftId, field);
-
 
71
        byName.put(field.getFieldName(), field);
66
        byName.put(field.getFieldName(), field);
72
      }
67
      }
73
    }
68
    }
74
 
69
 
75
    /**
70
    /**
76
     * Find the _Fields constant that matches fieldId, or null if its not found.
71
     * Find the _Fields constant that matches fieldId, or null if its not found.
77
     */
72
     */
78
    public static _Fields findByThriftId(int fieldId) {
73
    public static _Fields findByThriftId(int fieldId) {
79
      return byId.get(fieldId);
74
      switch(fieldId) {
-
 
75
        case 1: // ID
-
 
76
          return ID;
-
 
77
        case 2: // NAME
-
 
78
          return NAME;
-
 
79
        case 3: // URL
-
 
80
          return URL;
-
 
81
        case 4: // ADDED_ON
-
 
82
          return ADDED_ON;
-
 
83
        case 5: // ALIAS_NAME
-
 
84
          return ALIAS_NAME;
-
 
85
        case 6: // RESPONSE_URL
-
 
86
          return RESPONSE_URL;
-
 
87
        case 7: // ERROR_URL
-
 
88
          return ERROR_URL;
-
 
89
        case 8: // STATUS
-
 
90
          return STATUS;
-
 
91
        case 9: // ATTRIBUTES
-
 
92
          return ATTRIBUTES;
-
 
93
        default:
-
 
94
          return null;
-
 
95
      }
80
    }
96
    }
81
 
97
 
82
    /**
98
    /**
83
     * Find the _Fields constant that matches fieldId, throwing an exception
99
     * Find the _Fields constant that matches fieldId, throwing an exception
84
     * if it is not found.
100
     * if it is not found.
Line 116... Line 132...
116
  // isset id assignments
132
  // isset id assignments
117
  private static final int __ID_ISSET_ID = 0;
133
  private static final int __ID_ISSET_ID = 0;
118
  private static final int __ADDEDON_ISSET_ID = 1;
134
  private static final int __ADDEDON_ISSET_ID = 1;
119
  private BitSet __isset_bit_vector = new BitSet(2);
135
  private BitSet __isset_bit_vector = new BitSet(2);
120
 
136
 
121
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
137
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
122
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
123
        new FieldValueMetaData(TType.I64)));
-
 
124
    put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-
 
125
        new FieldValueMetaData(TType.STRING)));
-
 
126
    put(_Fields.URL, new FieldMetaData("url", TFieldRequirementType.DEFAULT, 
-
 
127
        new FieldValueMetaData(TType.STRING)));
-
 
128
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
-
 
129
        new FieldValueMetaData(TType.I64)));
-
 
130
    put(_Fields.ALIAS_NAME, new FieldMetaData("aliasName", TFieldRequirementType.DEFAULT, 
-
 
131
        new FieldValueMetaData(TType.STRING)));
-
 
132
    put(_Fields.RESPONSE_URL, new FieldMetaData("responseUrl", TFieldRequirementType.DEFAULT, 
-
 
133
        new FieldValueMetaData(TType.STRING)));
-
 
134
    put(_Fields.ERROR_URL, new FieldMetaData("errorUrl", TFieldRequirementType.DEFAULT, 
-
 
135
        new FieldValueMetaData(TType.STRING)));
-
 
136
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
137
        new EnumMetaData(TType.ENUM, PaymentGatewayStatus.class)));
-
 
138
    put(_Fields.ATTRIBUTES, new FieldMetaData("attributes", TFieldRequirementType.DEFAULT, 
-
 
139
        new ListMetaData(TType.LIST, 
-
 
140
            new StructMetaData(TType.STRUCT, Attribute.class))));
-
 
141
  }});
-
 
142
 
-
 
143
  static {
138
  static {
-
 
139
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
140
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
141
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
142
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
143
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
144
    tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
145
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
146
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
147
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
148
    tmpMap.put(_Fields.ALIAS_NAME, new org.apache.thrift.meta_data.FieldMetaData("aliasName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
149
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
150
    tmpMap.put(_Fields.RESPONSE_URL, new org.apache.thrift.meta_data.FieldMetaData("responseUrl", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
151
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
152
    tmpMap.put(_Fields.ERROR_URL, new org.apache.thrift.meta_data.FieldMetaData("errorUrl", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
154
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
155
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentGatewayStatus.class)));
-
 
156
    tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
157
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
158
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
-
 
159
    metaDataMap = Collections.unmodifiableMap(tmpMap);
144
    FieldMetaData.addStructMetaDataMap(PaymentGateway.class, metaDataMap);
160
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PaymentGateway.class, metaDataMap);
145
  }
161
  }
146
 
162
 
147
  public PaymentGateway() {
163
  public PaymentGateway() {
148
  }
164
  }
149
 
165
 
Line 209... Line 225...
209
 
225
 
210
  public PaymentGateway deepCopy() {
226
  public PaymentGateway deepCopy() {
211
    return new PaymentGateway(this);
227
    return new PaymentGateway(this);
212
  }
228
  }
213
 
229
 
214
  @Deprecated
230
  @Override
215
  public PaymentGateway clone() {
231
  public void clear() {
-
 
232
    setIdIsSet(false);
-
 
233
    this.id = 0;
-
 
234
    this.name = null;
-
 
235
    this.url = null;
216
    return new PaymentGateway(this);
236
    setAddedOnIsSet(false);
-
 
237
    this.addedOn = 0;
-
 
238
    this.aliasName = null;
-
 
239
    this.responseUrl = null;
-
 
240
    this.errorUrl = null;
-
 
241
    this.status = null;
-
 
242
    this.attributes = null;
217
  }
243
  }
218
 
244
 
219
  public long getId() {
245
  public long getId() {
220
    return this.id;
246
    return this.id;
221
  }
247
  }
222
 
248
 
223
  public PaymentGateway setId(long id) {
249
  public void setId(long id) {
224
    this.id = id;
250
    this.id = id;
225
    setIdIsSet(true);
251
    setIdIsSet(true);
226
    return this;
-
 
227
  }
252
  }
228
 
253
 
229
  public void unsetId() {
254
  public void unsetId() {
230
    __isset_bit_vector.clear(__ID_ISSET_ID);
255
    __isset_bit_vector.clear(__ID_ISSET_ID);
231
  }
256
  }
232
 
257
 
233
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
258
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
234
  public boolean isSetId() {
259
  public boolean isSetId() {
235
    return __isset_bit_vector.get(__ID_ISSET_ID);
260
    return __isset_bit_vector.get(__ID_ISSET_ID);
236
  }
261
  }
237
 
262
 
238
  public void setIdIsSet(boolean value) {
263
  public void setIdIsSet(boolean value) {
Line 241... Line 266...
241
 
266
 
242
  public String getName() {
267
  public String getName() {
243
    return this.name;
268
    return this.name;
244
  }
269
  }
245
 
270
 
246
  public PaymentGateway setName(String name) {
271
  public void setName(String name) {
247
    this.name = name;
272
    this.name = name;
248
    return this;
-
 
249
  }
273
  }
250
 
274
 
251
  public void unsetName() {
275
  public void unsetName() {
252
    this.name = null;
276
    this.name = null;
253
  }
277
  }
254
 
278
 
255
  /** Returns true if field name is set (has been asigned a value) and false otherwise */
279
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
256
  public boolean isSetName() {
280
  public boolean isSetName() {
257
    return this.name != null;
281
    return this.name != null;
258
  }
282
  }
259
 
283
 
260
  public void setNameIsSet(boolean value) {
284
  public void setNameIsSet(boolean value) {
Line 265... Line 289...
265
 
289
 
266
  public String getUrl() {
290
  public String getUrl() {
267
    return this.url;
291
    return this.url;
268
  }
292
  }
269
 
293
 
270
  public PaymentGateway setUrl(String url) {
294
  public void setUrl(String url) {
271
    this.url = url;
295
    this.url = url;
272
    return this;
-
 
273
  }
296
  }
274
 
297
 
275
  public void unsetUrl() {
298
  public void unsetUrl() {
276
    this.url = null;
299
    this.url = null;
277
  }
300
  }
278
 
301
 
279
  /** Returns true if field url is set (has been asigned a value) and false otherwise */
302
  /** Returns true if field url is set (has been assigned a value) and false otherwise */
280
  public boolean isSetUrl() {
303
  public boolean isSetUrl() {
281
    return this.url != null;
304
    return this.url != null;
282
  }
305
  }
283
 
306
 
284
  public void setUrlIsSet(boolean value) {
307
  public void setUrlIsSet(boolean value) {
Line 289... Line 312...
289
 
312
 
290
  public long getAddedOn() {
313
  public long getAddedOn() {
291
    return this.addedOn;
314
    return this.addedOn;
292
  }
315
  }
293
 
316
 
294
  public PaymentGateway setAddedOn(long addedOn) {
317
  public void setAddedOn(long addedOn) {
295
    this.addedOn = addedOn;
318
    this.addedOn = addedOn;
296
    setAddedOnIsSet(true);
319
    setAddedOnIsSet(true);
297
    return this;
-
 
298
  }
320
  }
299
 
321
 
300
  public void unsetAddedOn() {
322
  public void unsetAddedOn() {
301
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
323
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
302
  }
324
  }
303
 
325
 
304
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
326
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
305
  public boolean isSetAddedOn() {
327
  public boolean isSetAddedOn() {
306
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
328
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
307
  }
329
  }
308
 
330
 
309
  public void setAddedOnIsSet(boolean value) {
331
  public void setAddedOnIsSet(boolean value) {
Line 312... Line 334...
312
 
334
 
313
  public String getAliasName() {
335
  public String getAliasName() {
314
    return this.aliasName;
336
    return this.aliasName;
315
  }
337
  }
316
 
338
 
317
  public PaymentGateway setAliasName(String aliasName) {
339
  public void setAliasName(String aliasName) {
318
    this.aliasName = aliasName;
340
    this.aliasName = aliasName;
319
    return this;
-
 
320
  }
341
  }
321
 
342
 
322
  public void unsetAliasName() {
343
  public void unsetAliasName() {
323
    this.aliasName = null;
344
    this.aliasName = null;
324
  }
345
  }
325
 
346
 
326
  /** Returns true if field aliasName is set (has been asigned a value) and false otherwise */
347
  /** Returns true if field aliasName is set (has been assigned a value) and false otherwise */
327
  public boolean isSetAliasName() {
348
  public boolean isSetAliasName() {
328
    return this.aliasName != null;
349
    return this.aliasName != null;
329
  }
350
  }
330
 
351
 
331
  public void setAliasNameIsSet(boolean value) {
352
  public void setAliasNameIsSet(boolean value) {
Line 336... Line 357...
336
 
357
 
337
  public String getResponseUrl() {
358
  public String getResponseUrl() {
338
    return this.responseUrl;
359
    return this.responseUrl;
339
  }
360
  }
340
 
361
 
341
  public PaymentGateway setResponseUrl(String responseUrl) {
362
  public void setResponseUrl(String responseUrl) {
342
    this.responseUrl = responseUrl;
363
    this.responseUrl = responseUrl;
343
    return this;
-
 
344
  }
364
  }
345
 
365
 
346
  public void unsetResponseUrl() {
366
  public void unsetResponseUrl() {
347
    this.responseUrl = null;
367
    this.responseUrl = null;
348
  }
368
  }
349
 
369
 
350
  /** Returns true if field responseUrl is set (has been asigned a value) and false otherwise */
370
  /** Returns true if field responseUrl is set (has been assigned a value) and false otherwise */
351
  public boolean isSetResponseUrl() {
371
  public boolean isSetResponseUrl() {
352
    return this.responseUrl != null;
372
    return this.responseUrl != null;
353
  }
373
  }
354
 
374
 
355
  public void setResponseUrlIsSet(boolean value) {
375
  public void setResponseUrlIsSet(boolean value) {
Line 360... Line 380...
360
 
380
 
361
  public String getErrorUrl() {
381
  public String getErrorUrl() {
362
    return this.errorUrl;
382
    return this.errorUrl;
363
  }
383
  }
364
 
384
 
365
  public PaymentGateway setErrorUrl(String errorUrl) {
385
  public void setErrorUrl(String errorUrl) {
366
    this.errorUrl = errorUrl;
386
    this.errorUrl = errorUrl;
367
    return this;
-
 
368
  }
387
  }
369
 
388
 
370
  public void unsetErrorUrl() {
389
  public void unsetErrorUrl() {
371
    this.errorUrl = null;
390
    this.errorUrl = null;
372
  }
391
  }
373
 
392
 
374
  /** Returns true if field errorUrl is set (has been asigned a value) and false otherwise */
393
  /** Returns true if field errorUrl is set (has been assigned a value) and false otherwise */
375
  public boolean isSetErrorUrl() {
394
  public boolean isSetErrorUrl() {
376
    return this.errorUrl != null;
395
    return this.errorUrl != null;
377
  }
396
  }
378
 
397
 
379
  public void setErrorUrlIsSet(boolean value) {
398
  public void setErrorUrlIsSet(boolean value) {
Line 392... Line 411...
392
 
411
 
393
  /**
412
  /**
394
   * 
413
   * 
395
   * @see PaymentGatewayStatus
414
   * @see PaymentGatewayStatus
396
   */
415
   */
397
  public PaymentGateway setStatus(PaymentGatewayStatus status) {
416
  public void setStatus(PaymentGatewayStatus status) {
398
    this.status = status;
417
    this.status = status;
399
    return this;
-
 
400
  }
418
  }
401
 
419
 
402
  public void unsetStatus() {
420
  public void unsetStatus() {
403
    this.status = null;
421
    this.status = null;
404
  }
422
  }
405
 
423
 
406
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
424
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
407
  public boolean isSetStatus() {
425
  public boolean isSetStatus() {
408
    return this.status != null;
426
    return this.status != null;
409
  }
427
  }
410
 
428
 
411
  public void setStatusIsSet(boolean value) {
429
  public void setStatusIsSet(boolean value) {
Line 431... Line 449...
431
 
449
 
432
  public List<Attribute> getAttributes() {
450
  public List<Attribute> getAttributes() {
433
    return this.attributes;
451
    return this.attributes;
434
  }
452
  }
435
 
453
 
436
  public PaymentGateway setAttributes(List<Attribute> attributes) {
454
  public void setAttributes(List<Attribute> attributes) {
437
    this.attributes = attributes;
455
    this.attributes = attributes;
438
    return this;
-
 
439
  }
456
  }
440
 
457
 
441
  public void unsetAttributes() {
458
  public void unsetAttributes() {
442
    this.attributes = null;
459
    this.attributes = null;
443
  }
460
  }
444
 
461
 
445
  /** Returns true if field attributes is set (has been asigned a value) and false otherwise */
462
  /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
446
  public boolean isSetAttributes() {
463
  public boolean isSetAttributes() {
447
    return this.attributes != null;
464
    return this.attributes != null;
448
  }
465
  }
449
 
466
 
450
  public void setAttributesIsSet(boolean value) {
467
  public void setAttributesIsSet(boolean value) {
Line 528... Line 545...
528
      break;
545
      break;
529
 
546
 
530
    }
547
    }
531
  }
548
  }
532
 
549
 
533
  public void setFieldValue(int fieldID, Object value) {
-
 
534
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
535
  }
-
 
536
 
-
 
537
  public Object getFieldValue(_Fields field) {
550
  public Object getFieldValue(_Fields field) {
538
    switch (field) {
551
    switch (field) {
539
    case ID:
552
    case ID:
540
      return new Long(getId());
553
      return Long.valueOf(getId());
541
 
554
 
542
    case NAME:
555
    case NAME:
543
      return getName();
556
      return getName();
544
 
557
 
545
    case URL:
558
    case URL:
546
      return getUrl();
559
      return getUrl();
547
 
560
 
548
    case ADDED_ON:
561
    case ADDED_ON:
549
      return new Long(getAddedOn());
562
      return Long.valueOf(getAddedOn());
550
 
563
 
551
    case ALIAS_NAME:
564
    case ALIAS_NAME:
552
      return getAliasName();
565
      return getAliasName();
553
 
566
 
554
    case RESPONSE_URL:
567
    case RESPONSE_URL:
Line 565... Line 578...
565
 
578
 
566
    }
579
    }
567
    throw new IllegalStateException();
580
    throw new IllegalStateException();
568
  }
581
  }
569
 
582
 
570
  public Object getFieldValue(int fieldId) {
-
 
571
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
572
  }
-
 
573
 
-
 
574
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
583
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
575
  public boolean isSet(_Fields field) {
584
  public boolean isSet(_Fields field) {
-
 
585
    if (field == null) {
-
 
586
      throw new IllegalArgumentException();
-
 
587
    }
-
 
588
 
576
    switch (field) {
589
    switch (field) {
577
    case ID:
590
    case ID:
578
      return isSetId();
591
      return isSetId();
579
    case NAME:
592
    case NAME:
580
      return isSetName();
593
      return isSetName();
Line 594... Line 607...
594
      return isSetAttributes();
607
      return isSetAttributes();
595
    }
608
    }
596
    throw new IllegalStateException();
609
    throw new IllegalStateException();
597
  }
610
  }
598
 
611
 
599
  public boolean isSet(int fieldID) {
-
 
600
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
601
  }
-
 
602
 
-
 
603
  @Override
612
  @Override
604
  public boolean equals(Object that) {
613
  public boolean equals(Object that) {
605
    if (that == null)
614
    if (that == null)
606
      return false;
615
      return false;
607
    if (that instanceof PaymentGateway)
616
    if (that instanceof PaymentGateway)
Line 708... Line 717...
708
    }
717
    }
709
 
718
 
710
    int lastComparison = 0;
719
    int lastComparison = 0;
711
    PaymentGateway typedOther = (PaymentGateway)other;
720
    PaymentGateway typedOther = (PaymentGateway)other;
712
 
721
 
713
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
722
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
714
    if (lastComparison != 0) {
723
    if (lastComparison != 0) {
715
      return lastComparison;
724
      return lastComparison;
716
    }
725
    }
-
 
726
    if (isSetId()) {
717
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
727
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
718
    if (lastComparison != 0) {
728
      if (lastComparison != 0) {
719
      return lastComparison;
729
        return lastComparison;
-
 
730
      }
720
    }
731
    }
721
    lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
732
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
722
    if (lastComparison != 0) {
733
    if (lastComparison != 0) {
723
      return lastComparison;
734
      return lastComparison;
724
    }
735
    }
-
 
736
    if (isSetName()) {
725
    lastComparison = TBaseHelper.compareTo(name, typedOther.name);
737
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
726
    if (lastComparison != 0) {
738
      if (lastComparison != 0) {
727
      return lastComparison;
739
        return lastComparison;
-
 
740
      }
728
    }
741
    }
729
    lastComparison = Boolean.valueOf(isSetUrl()).compareTo(isSetUrl());
742
    lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
730
    if (lastComparison != 0) {
743
    if (lastComparison != 0) {
731
      return lastComparison;
744
      return lastComparison;
732
    }
745
    }
-
 
746
    if (isSetUrl()) {
733
    lastComparison = TBaseHelper.compareTo(url, typedOther.url);
747
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
734
    if (lastComparison != 0) {
748
      if (lastComparison != 0) {
735
      return lastComparison;
749
        return lastComparison;
-
 
750
      }
736
    }
751
    }
737
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(isSetAddedOn());
752
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
738
    if (lastComparison != 0) {
753
    if (lastComparison != 0) {
739
      return lastComparison;
754
      return lastComparison;
740
    }
755
    }
-
 
756
    if (isSetAddedOn()) {
741
    lastComparison = TBaseHelper.compareTo(addedOn, typedOther.addedOn);
757
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
742
    if (lastComparison != 0) {
758
      if (lastComparison != 0) {
743
      return lastComparison;
759
        return lastComparison;
-
 
760
      }
744
    }
761
    }
745
    lastComparison = Boolean.valueOf(isSetAliasName()).compareTo(isSetAliasName());
762
    lastComparison = Boolean.valueOf(isSetAliasName()).compareTo(typedOther.isSetAliasName());
746
    if (lastComparison != 0) {
763
    if (lastComparison != 0) {
747
      return lastComparison;
764
      return lastComparison;
748
    }
765
    }
-
 
766
    if (isSetAliasName()) {
749
    lastComparison = TBaseHelper.compareTo(aliasName, typedOther.aliasName);
767
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aliasName, typedOther.aliasName);
750
    if (lastComparison != 0) {
768
      if (lastComparison != 0) {
751
      return lastComparison;
769
        return lastComparison;
-
 
770
      }
752
    }
771
    }
753
    lastComparison = Boolean.valueOf(isSetResponseUrl()).compareTo(isSetResponseUrl());
772
    lastComparison = Boolean.valueOf(isSetResponseUrl()).compareTo(typedOther.isSetResponseUrl());
754
    if (lastComparison != 0) {
773
    if (lastComparison != 0) {
755
      return lastComparison;
774
      return lastComparison;
756
    }
775
    }
-
 
776
    if (isSetResponseUrl()) {
757
    lastComparison = TBaseHelper.compareTo(responseUrl, typedOther.responseUrl);
777
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.responseUrl, typedOther.responseUrl);
758
    if (lastComparison != 0) {
778
      if (lastComparison != 0) {
759
      return lastComparison;
779
        return lastComparison;
-
 
780
      }
760
    }
781
    }
761
    lastComparison = Boolean.valueOf(isSetErrorUrl()).compareTo(isSetErrorUrl());
782
    lastComparison = Boolean.valueOf(isSetErrorUrl()).compareTo(typedOther.isSetErrorUrl());
762
    if (lastComparison != 0) {
783
    if (lastComparison != 0) {
763
      return lastComparison;
784
      return lastComparison;
764
    }
785
    }
-
 
786
    if (isSetErrorUrl()) {
765
    lastComparison = TBaseHelper.compareTo(errorUrl, typedOther.errorUrl);
787
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorUrl, typedOther.errorUrl);
766
    if (lastComparison != 0) {
788
      if (lastComparison != 0) {
767
      return lastComparison;
789
        return lastComparison;
-
 
790
      }
768
    }
791
    }
769
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
792
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
770
    if (lastComparison != 0) {
793
    if (lastComparison != 0) {
771
      return lastComparison;
794
      return lastComparison;
772
    }
795
    }
-
 
796
    if (isSetStatus()) {
773
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
797
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
774
    if (lastComparison != 0) {
798
      if (lastComparison != 0) {
775
      return lastComparison;
799
        return lastComparison;
-
 
800
      }
776
    }
801
    }
777
    lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(isSetAttributes());
802
    lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
778
    if (lastComparison != 0) {
803
    if (lastComparison != 0) {
779
      return lastComparison;
804
      return lastComparison;
780
    }
805
    }
-
 
806
    if (isSetAttributes()) {
781
    lastComparison = TBaseHelper.compareTo(attributes, typedOther.attributes);
807
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
782
    if (lastComparison != 0) {
808
      if (lastComparison != 0) {
783
      return lastComparison;
809
        return lastComparison;
-
 
810
      }
784
    }
811
    }
785
    return 0;
812
    return 0;
786
  }
813
  }
787
 
814
 
-
 
815
  public _Fields fieldForId(int fieldId) {
-
 
816
    return _Fields.findByThriftId(fieldId);
-
 
817
  }
-
 
818
 
788
  public void read(TProtocol iprot) throws TException {
819
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
789
    TField field;
820
    org.apache.thrift.protocol.TField field;
790
    iprot.readStructBegin();
821
    iprot.readStructBegin();
791
    while (true)
822
    while (true)
792
    {
823
    {
793
      field = iprot.readFieldBegin();
824
      field = iprot.readFieldBegin();
794
      if (field.type == TType.STOP) { 
825
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
795
        break;
826
        break;
796
      }
827
      }
797
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
798
      if (fieldId == null) {
-
 
799
        TProtocolUtil.skip(iprot, field.type);
-
 
800
      } else {
-
 
801
        switch (fieldId) {
828
      switch (field.id) {
802
          case ID:
829
        case 1: // ID
803
            if (field.type == TType.I64) {
830
          if (field.type == org.apache.thrift.protocol.TType.I64) {
804
              this.id = iprot.readI64();
831
            this.id = iprot.readI64();
805
              setIdIsSet(true);
832
            setIdIsSet(true);
806
            } else { 
833
          } else { 
807
              TProtocolUtil.skip(iprot, field.type);
834
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
808
            }
835
          }
809
            break;
836
          break;
810
          case NAME:
837
        case 2: // NAME
811
            if (field.type == TType.STRING) {
838
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
812
              this.name = iprot.readString();
839
            this.name = iprot.readString();
813
            } else { 
840
          } else { 
814
              TProtocolUtil.skip(iprot, field.type);
841
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
815
            }
842
          }
816
            break;
843
          break;
817
          case URL:
844
        case 3: // URL
818
            if (field.type == TType.STRING) {
845
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
819
              this.url = iprot.readString();
846
            this.url = iprot.readString();
820
            } else { 
847
          } else { 
821
              TProtocolUtil.skip(iprot, field.type);
848
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
822
            }
849
          }
823
            break;
850
          break;
824
          case ADDED_ON:
851
        case 4: // ADDED_ON
825
            if (field.type == TType.I64) {
852
          if (field.type == org.apache.thrift.protocol.TType.I64) {
826
              this.addedOn = iprot.readI64();
853
            this.addedOn = iprot.readI64();
827
              setAddedOnIsSet(true);
854
            setAddedOnIsSet(true);
828
            } else { 
855
          } else { 
829
              TProtocolUtil.skip(iprot, field.type);
856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
830
            }
857
          }
831
            break;
858
          break;
832
          case ALIAS_NAME:
859
        case 5: // ALIAS_NAME
833
            if (field.type == TType.STRING) {
860
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
834
              this.aliasName = iprot.readString();
861
            this.aliasName = iprot.readString();
835
            } else { 
862
          } else { 
836
              TProtocolUtil.skip(iprot, field.type);
863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
837
            }
864
          }
838
            break;
865
          break;
839
          case RESPONSE_URL:
866
        case 6: // RESPONSE_URL
840
            if (field.type == TType.STRING) {
867
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
841
              this.responseUrl = iprot.readString();
868
            this.responseUrl = iprot.readString();
842
            } else { 
869
          } else { 
843
              TProtocolUtil.skip(iprot, field.type);
870
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
844
            }
871
          }
845
            break;
872
          break;
846
          case ERROR_URL:
873
        case 7: // ERROR_URL
847
            if (field.type == TType.STRING) {
874
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
848
              this.errorUrl = iprot.readString();
875
            this.errorUrl = iprot.readString();
849
            } else { 
876
          } else { 
850
              TProtocolUtil.skip(iprot, field.type);
877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
851
            }
878
          }
852
            break;
879
          break;
853
          case STATUS:
880
        case 8: // STATUS
854
            if (field.type == TType.I32) {
881
          if (field.type == org.apache.thrift.protocol.TType.I32) {
855
              this.status = PaymentGatewayStatus.findByValue(iprot.readI32());
882
            this.status = PaymentGatewayStatus.findByValue(iprot.readI32());
856
            } else { 
883
          } else { 
857
              TProtocolUtil.skip(iprot, field.type);
884
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
858
            }
885
          }
859
            break;
886
          break;
860
          case ATTRIBUTES:
887
        case 9: // ATTRIBUTES
861
            if (field.type == TType.LIST) {
888
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
889
            {
-
 
890
              org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
-
 
891
              this.attributes = new ArrayList<Attribute>(_list0.size);
-
 
892
              for (int _i1 = 0; _i1 < _list0.size; ++_i1)
862
              {
893
              {
863
                TList _list0 = iprot.readListBegin();
-
 
864
                this.attributes = new ArrayList<Attribute>(_list0.size);
-
 
865
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
-
 
866
                {
-
 
867
                  Attribute _elem2;
894
                Attribute _elem2; // required
868
                  _elem2 = new Attribute();
895
                _elem2 = new Attribute();
869
                  _elem2.read(iprot);
896
                _elem2.read(iprot);
870
                  this.attributes.add(_elem2);
897
                this.attributes.add(_elem2);
871
                }
-
 
872
                iprot.readListEnd();
-
 
873
              }
898
              }
874
            } else { 
899
              iprot.readListEnd();
875
              TProtocolUtil.skip(iprot, field.type);
-
 
876
            }
900
            }
877
            break;
901
          } else { 
-
 
902
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
878
        }
903
          }
879
        iprot.readFieldEnd();
904
          break;
-
 
905
        default:
-
 
906
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
880
      }
907
      }
-
 
908
      iprot.readFieldEnd();
881
    }
909
    }
882
    iprot.readStructEnd();
910
    iprot.readStructEnd();
883
    validate();
911
    validate();
884
  }
912
  }
885
 
913
 
886
  public void write(TProtocol oprot) throws TException {
914
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
887
    validate();
915
    validate();
888
 
916
 
889
    oprot.writeStructBegin(STRUCT_DESC);
917
    oprot.writeStructBegin(STRUCT_DESC);
890
    oprot.writeFieldBegin(ID_FIELD_DESC);
918
    oprot.writeFieldBegin(ID_FIELD_DESC);
891
    oprot.writeI64(this.id);
919
    oprot.writeI64(this.id);
Line 924... Line 952...
924
      oprot.writeFieldEnd();
952
      oprot.writeFieldEnd();
925
    }
953
    }
926
    if (this.attributes != null) {
954
    if (this.attributes != null) {
927
      oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
955
      oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
928
      {
956
      {
929
        oprot.writeListBegin(new TList(TType.STRUCT, this.attributes.size()));
957
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
930
        for (Attribute _iter3 : this.attributes)
958
        for (Attribute _iter3 : this.attributes)
931
        {
959
        {
932
          _iter3.write(oprot);
960
          _iter3.write(oprot);
933
        }
961
        }
934
        oprot.writeListEnd();
962
        oprot.writeListEnd();
Line 994... Line 1022...
994
    if (!first) sb.append(", ");
1022
    if (!first) sb.append(", ");
995
    sb.append("status:");
1023
    sb.append("status:");
996
    if (this.status == null) {
1024
    if (this.status == null) {
997
      sb.append("null");
1025
      sb.append("null");
998
    } else {
1026
    } else {
999
      String status_name = status.name();
-
 
1000
      if (status_name != null) {
-
 
1001
        sb.append(status_name);
-
 
1002
        sb.append(" (");
-
 
1003
      }
-
 
1004
      sb.append(this.status);
1027
      sb.append(this.status);
1005
      if (status_name != null) {
-
 
1006
        sb.append(")");
-
 
1007
      }
-
 
1008
    }
1028
    }
1009
    first = false;
1029
    first = false;
1010
    if (!first) sb.append(", ");
1030
    if (!first) sb.append(", ");
1011
    sb.append("attributes:");
1031
    sb.append("attributes:");
1012
    if (this.attributes == null) {
1032
    if (this.attributes == null) {
Line 1017... Line 1037...
1017
    first = false;
1037
    first = false;
1018
    sb.append(")");
1038
    sb.append(")");
1019
    return sb.toString();
1039
    return sb.toString();
1020
  }
1040
  }
1021
 
1041
 
1022
  public void validate() throws TException {
1042
  public void validate() throws org.apache.thrift.TException {
1023
    // check for required fields
1043
    // check for required fields
1024
  }
1044
  }
1025
 
1045
 
-
 
1046
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1047
    try {
-
 
1048
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1049
    } catch (org.apache.thrift.TException te) {
-
 
1050
      throw new java.io.IOException(te);
-
 
1051
    }
-
 
1052
  }
-
 
1053
 
-
 
1054
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1055
    try {
-
 
1056
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1057
      __isset_bit_vector = new BitSet(1);
-
 
1058
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1059
    } catch (org.apache.thrift.TException te) {
-
 
1060
      throw new java.io.IOException(te);
-
 
1061
    }
-
 
1062
  }
-
 
1063
 
1026
}
1064
}
1027
 
1065