Subversion Repositories SmartDukaan

Rev

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

Rev 420 Rev 695
Line 21... Line 21...
21
 
21
 
22
import org.apache.thrift.*;
22
import org.apache.thrift.*;
23
import org.apache.thrift.meta_data.*;
23
import org.apache.thrift.meta_data.*;
24
import org.apache.thrift.protocol.*;
24
import org.apache.thrift.protocol.*;
25
 
25
 
26
public class PaymentGateway implements TBase<PaymentGateway._Fields>, java.io.Serializable, Cloneable {
26
public class PaymentGateway implements TBase<PaymentGateway._Fields>, java.io.Serializable, Cloneable, Comparable<PaymentGateway> {
27
  private static final TStruct STRUCT_DESC = new TStruct("PaymentGateway");
27
  private static final TStruct STRUCT_DESC = new TStruct("PaymentGateway");
28
 
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
-
 
30
  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)2);
-
 
31
  private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)3);
-
 
32
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)4);
30
  private static final TField GATEWAY_NAME_FIELD_DESC = new TField("gatewayName", TType.STRING, (short)2);
33
  private static final TField ALIAS_NAME_FIELD_DESC = new TField("aliasName", TType.STRING, (short)5);
31
  private static final TField GATEWAY_PRODUCTION_URL_FIELD_DESC = new TField("gatewayProductionUrl", TType.STRING, (short)3);
34
  private static final TField RESPONSE_URL_FIELD_DESC = new TField("responseUrl", TType.STRING, (short)6);
32
  private static final TField GATEWAY_STAGING_URL_FIELD_DESC = new TField("gatewayStagingUrl", TType.STRING, (short)4);
35
  private static final TField ERROR_URL_FIELD_DESC = new TField("errorUrl", TType.STRING, (short)7);
33
  private static final TField GATEWAY_INFO_FIELD_DESC = new TField("gatewayInfo", TType.MAP, (short)5);
36
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8);
34
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)6);
37
  private static final TField ATTRIBUTES_FIELD_DESC = new TField("attributes", TType.LIST, (short)9);
35
 
38
 
36
  private long id;
39
  private long id;
37
  private String gatewayName;
40
  private String name;
38
  private String gatewayProductionUrl;
-
 
39
  private String gatewayStagingUrl;
41
  private String url;
40
  private Map<String,String> gatewayInfo;
-
 
41
  private long addedOn;
42
  private long addedOn;
-
 
43
  private String aliasName;
-
 
44
  private String responseUrl;
-
 
45
  private String errorUrl;
-
 
46
  private PaymentGatewayStatus status;
-
 
47
  private List<Attribute> attributes;
42
 
48
 
43
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44
  public enum _Fields implements TFieldIdEnum {
50
  public enum _Fields implements TFieldIdEnum {
45
    ID((short)1, "id"),
51
    ID((short)1, "id"),
-
 
52
    NAME((short)2, "name"),
-
 
53
    URL((short)3, "url"),
-
 
54
    ADDED_ON((short)4, "addedOn"),
46
    GATEWAY_NAME((short)2, "gatewayName"),
55
    ALIAS_NAME((short)5, "aliasName"),
47
    GATEWAY_PRODUCTION_URL((short)3, "gatewayProductionUrl"),
56
    RESPONSE_URL((short)6, "responseUrl"),
48
    GATEWAY_STAGING_URL((short)4, "gatewayStagingUrl"),
57
    ERROR_URL((short)7, "errorUrl"),
-
 
58
    /**
-
 
59
     * 
-
 
60
     * @see PaymentGatewayStatus
-
 
61
     */
49
    GATEWAY_INFO((short)5, "gatewayInfo"),
62
    STATUS((short)8, "status"),
50
    ADDED_ON((short)6, "addedOn");
63
    ATTRIBUTES((short)9, "attributes");
51
 
64
 
52
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
65
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
53
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
66
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54
 
67
 
55
    static {
68
    static {
Line 106... Line 119...
106
  private BitSet __isset_bit_vector = new BitSet(2);
119
  private BitSet __isset_bit_vector = new BitSet(2);
107
 
120
 
108
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
121
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
109
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
122
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
110
        new FieldValueMetaData(TType.I64)));
123
        new FieldValueMetaData(TType.I64)));
111
    put(_Fields.GATEWAY_NAME, new FieldMetaData("gatewayName", TFieldRequirementType.DEFAULT, 
124
    put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
112
        new FieldValueMetaData(TType.STRING)));
125
        new FieldValueMetaData(TType.STRING)));
113
    put(_Fields.GATEWAY_PRODUCTION_URL, new FieldMetaData("gatewayProductionUrl", TFieldRequirementType.DEFAULT, 
126
    put(_Fields.URL, new FieldMetaData("url", TFieldRequirementType.DEFAULT, 
114
        new FieldValueMetaData(TType.STRING)));
127
        new FieldValueMetaData(TType.STRING)));
115
    put(_Fields.GATEWAY_STAGING_URL, new FieldMetaData("gatewayStagingUrl", TFieldRequirementType.DEFAULT, 
-
 
116
        new FieldValueMetaData(TType.STRING)));
-
 
117
    put(_Fields.GATEWAY_INFO, new FieldMetaData("gatewayInfo", TFieldRequirementType.DEFAULT, 
-
 
118
        new MapMetaData(TType.MAP, 
-
 
119
            new FieldValueMetaData(TType.STRING), 
-
 
120
            new FieldValueMetaData(TType.STRING))));
-
 
121
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
128
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
122
        new FieldValueMetaData(TType.I64)));
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))));
123
  }});
141
  }});
124
 
142
 
125
  static {
143
  static {
126
    FieldMetaData.addStructMetaDataMap(PaymentGateway.class, metaDataMap);
144
    FieldMetaData.addStructMetaDataMap(PaymentGateway.class, metaDataMap);
127
  }
145
  }
Line 129... Line 147...
129
  public PaymentGateway() {
147
  public PaymentGateway() {
130
  }
148
  }
131
 
149
 
132
  public PaymentGateway(
150
  public PaymentGateway(
133
    long id,
151
    long id,
-
 
152
    String name,
-
 
153
    String url,
-
 
154
    long addedOn,
134
    String gatewayName,
155
    String aliasName,
135
    String gatewayProductionUrl,
156
    String responseUrl,
136
    String gatewayStagingUrl,
157
    String errorUrl,
137
    Map<String,String> gatewayInfo,
158
    PaymentGatewayStatus status,
138
    long addedOn)
159
    List<Attribute> attributes)
139
  {
160
  {
140
    this();
161
    this();
141
    this.id = id;
162
    this.id = id;
142
    setIdIsSet(true);
163
    setIdIsSet(true);
143
    this.gatewayName = gatewayName;
164
    this.name = name;
144
    this.gatewayProductionUrl = gatewayProductionUrl;
-
 
145
    this.gatewayStagingUrl = gatewayStagingUrl;
-
 
146
    this.gatewayInfo = gatewayInfo;
165
    this.url = url;
147
    this.addedOn = addedOn;
166
    this.addedOn = addedOn;
148
    setAddedOnIsSet(true);
167
    setAddedOnIsSet(true);
-
 
168
    this.aliasName = aliasName;
-
 
169
    this.responseUrl = responseUrl;
-
 
170
    this.errorUrl = errorUrl;
-
 
171
    this.status = status;
-
 
172
    this.attributes = attributes;
149
  }
173
  }
150
 
174
 
151
  /**
175
  /**
152
   * Performs a deep copy on <i>other</i>.
176
   * Performs a deep copy on <i>other</i>.
153
   */
177
   */
154
  public PaymentGateway(PaymentGateway other) {
178
  public PaymentGateway(PaymentGateway other) {
155
    __isset_bit_vector.clear();
179
    __isset_bit_vector.clear();
156
    __isset_bit_vector.or(other.__isset_bit_vector);
180
    __isset_bit_vector.or(other.__isset_bit_vector);
157
    this.id = other.id;
181
    this.id = other.id;
158
    if (other.isSetGatewayName()) {
182
    if (other.isSetName()) {
159
      this.gatewayName = other.gatewayName;
183
      this.name = other.name;
-
 
184
    }
-
 
185
    if (other.isSetUrl()) {
-
 
186
      this.url = other.url;
160
    }
187
    }
-
 
188
    this.addedOn = other.addedOn;
161
    if (other.isSetGatewayProductionUrl()) {
189
    if (other.isSetAliasName()) {
162
      this.gatewayProductionUrl = other.gatewayProductionUrl;
190
      this.aliasName = other.aliasName;
163
    }
191
    }
164
    if (other.isSetGatewayStagingUrl()) {
192
    if (other.isSetResponseUrl()) {
165
      this.gatewayStagingUrl = other.gatewayStagingUrl;
193
      this.responseUrl = other.responseUrl;
166
    }
194
    }
167
    if (other.isSetGatewayInfo()) {
195
    if (other.isSetErrorUrl()) {
168
      Map<String,String> __this__gatewayInfo = new HashMap<String,String>();
-
 
169
      for (Map.Entry<String, String> other_element : other.gatewayInfo.entrySet()) {
196
      this.errorUrl = other.errorUrl;
170
 
197
    }
171
        String other_element_key = other_element.getKey();
198
    if (other.isSetStatus()) {
172
        String other_element_value = other_element.getValue();
199
      this.status = other.status;
173
 
200
    }
-
 
201
    if (other.isSetAttributes()) {
174
        String __this__gatewayInfo_copy_key = other_element_key;
202
      List<Attribute> __this__attributes = new ArrayList<Attribute>();
175
 
-
 
176
        String __this__gatewayInfo_copy_value = other_element_value;
203
      for (Attribute other_element : other.attributes) {
177
 
-
 
178
        __this__gatewayInfo.put(__this__gatewayInfo_copy_key, __this__gatewayInfo_copy_value);
204
        __this__attributes.add(new Attribute(other_element));
179
      }
205
      }
180
      this.gatewayInfo = __this__gatewayInfo;
206
      this.attributes = __this__attributes;
181
    }
207
    }
182
    this.addedOn = other.addedOn;
-
 
183
  }
208
  }
184
 
209
 
185
  public PaymentGateway deepCopy() {
210
  public PaymentGateway deepCopy() {
186
    return new PaymentGateway(this);
211
    return new PaymentGateway(this);
187
  }
212
  }
Line 212... Line 237...
212
 
237
 
213
  public void setIdIsSet(boolean value) {
238
  public void setIdIsSet(boolean value) {
214
    __isset_bit_vector.set(__ID_ISSET_ID, value);
239
    __isset_bit_vector.set(__ID_ISSET_ID, value);
215
  }
240
  }
216
 
241
 
217
  public String getGatewayName() {
242
  public String getName() {
218
    return this.gatewayName;
243
    return this.name;
219
  }
244
  }
220
 
245
 
221
  public PaymentGateway setGatewayName(String gatewayName) {
246
  public PaymentGateway setName(String name) {
222
    this.gatewayName = gatewayName;
247
    this.name = name;
223
    return this;
248
    return this;
224
  }
249
  }
225
 
250
 
226
  public void unsetGatewayName() {
251
  public void unsetName() {
227
    this.gatewayName = null;
252
    this.name = null;
228
  }
253
  }
229
 
254
 
230
  /** Returns true if field gatewayName is set (has been asigned a value) and false otherwise */
255
  /** Returns true if field name is set (has been asigned a value) and false otherwise */
231
  public boolean isSetGatewayName() {
256
  public boolean isSetName() {
232
    return this.gatewayName != null;
257
    return this.name != null;
233
  }
258
  }
234
 
259
 
235
  public void setGatewayNameIsSet(boolean value) {
260
  public void setNameIsSet(boolean value) {
236
    if (!value) {
261
    if (!value) {
237
      this.gatewayName = null;
262
      this.name = null;
238
    }
263
    }
239
  }
264
  }
240
 
265
 
241
  public String getGatewayProductionUrl() {
266
  public String getUrl() {
242
    return this.gatewayProductionUrl;
267
    return this.url;
243
  }
268
  }
244
 
269
 
245
  public PaymentGateway setGatewayProductionUrl(String gatewayProductionUrl) {
270
  public PaymentGateway setUrl(String url) {
246
    this.gatewayProductionUrl = gatewayProductionUrl;
271
    this.url = url;
247
    return this;
272
    return this;
248
  }
273
  }
249
 
274
 
250
  public void unsetGatewayProductionUrl() {
275
  public void unsetUrl() {
251
    this.gatewayProductionUrl = null;
276
    this.url = null;
252
  }
277
  }
253
 
278
 
254
  /** Returns true if field gatewayProductionUrl is set (has been asigned a value) and false otherwise */
279
  /** Returns true if field url is set (has been asigned a value) and false otherwise */
255
  public boolean isSetGatewayProductionUrl() {
280
  public boolean isSetUrl() {
256
    return this.gatewayProductionUrl != null;
281
    return this.url != null;
257
  }
282
  }
258
 
283
 
259
  public void setGatewayProductionUrlIsSet(boolean value) {
284
  public void setUrlIsSet(boolean value) {
260
    if (!value) {
285
    if (!value) {
261
      this.gatewayProductionUrl = null;
286
      this.url = null;
262
    }
287
    }
263
  }
288
  }
264
 
289
 
265
  public String getGatewayStagingUrl() {
290
  public long getAddedOn() {
266
    return this.gatewayStagingUrl;
291
    return this.addedOn;
267
  }
292
  }
268
 
293
 
269
  public PaymentGateway setGatewayStagingUrl(String gatewayStagingUrl) {
294
  public PaymentGateway setAddedOn(long addedOn) {
270
    this.gatewayStagingUrl = gatewayStagingUrl;
295
    this.addedOn = addedOn;
-
 
296
    setAddedOnIsSet(true);
271
    return this;
297
    return this;
272
  }
298
  }
273
 
299
 
274
  public void unsetGatewayStagingUrl() {
300
  public void unsetAddedOn() {
275
    this.gatewayStagingUrl = null;
301
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
276
  }
302
  }
277
 
303
 
278
  /** Returns true if field gatewayStagingUrl is set (has been asigned a value) and false otherwise */
304
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
279
  public boolean isSetGatewayStagingUrl() {
305
  public boolean isSetAddedOn() {
280
    return this.gatewayStagingUrl != null;
306
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
281
  }
307
  }
282
 
308
 
-
 
309
  public void setAddedOnIsSet(boolean value) {
-
 
310
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
-
 
311
  }
-
 
312
 
-
 
313
  public String getAliasName() {
-
 
314
    return this.aliasName;
-
 
315
  }
-
 
316
 
-
 
317
  public PaymentGateway setAliasName(String aliasName) {
-
 
318
    this.aliasName = aliasName;
-
 
319
    return this;
-
 
320
  }
-
 
321
 
-
 
322
  public void unsetAliasName() {
-
 
323
    this.aliasName = null;
-
 
324
  }
-
 
325
 
-
 
326
  /** Returns true if field aliasName is set (has been asigned a value) and false otherwise */
-
 
327
  public boolean isSetAliasName() {
-
 
328
    return this.aliasName != null;
-
 
329
  }
-
 
330
 
283
  public void setGatewayStagingUrlIsSet(boolean value) {
331
  public void setAliasNameIsSet(boolean value) {
284
    if (!value) {
332
    if (!value) {
285
      this.gatewayStagingUrl = null;
333
      this.aliasName = null;
286
    }
334
    }
287
  }
335
  }
288
 
336
 
289
  public int getGatewayInfoSize() {
337
  public String getResponseUrl() {
290
    return (this.gatewayInfo == null) ? 0 : this.gatewayInfo.size();
338
    return this.responseUrl;
291
  }
339
  }
292
 
340
 
293
  public void putToGatewayInfo(String key, String val) {
341
  public PaymentGateway setResponseUrl(String responseUrl) {
-
 
342
    this.responseUrl = responseUrl;
-
 
343
    return this;
-
 
344
  }
-
 
345
 
-
 
346
  public void unsetResponseUrl() {
294
    if (this.gatewayInfo == null) {
347
    this.responseUrl = null;
-
 
348
  }
-
 
349
 
-
 
350
  /** Returns true if field responseUrl is set (has been asigned a value) and false otherwise */
-
 
351
  public boolean isSetResponseUrl() {
-
 
352
    return this.responseUrl != null;
-
 
353
  }
-
 
354
 
-
 
355
  public void setResponseUrlIsSet(boolean value) {
-
 
356
    if (!value) {
295
      this.gatewayInfo = new HashMap<String,String>();
357
      this.responseUrl = null;
296
    }
358
    }
297
    this.gatewayInfo.put(key, val);
-
 
298
  }
359
  }
299
 
360
 
300
  public Map<String,String> getGatewayInfo() {
361
  public String getErrorUrl() {
301
    return this.gatewayInfo;
362
    return this.errorUrl;
302
  }
363
  }
303
 
364
 
304
  public PaymentGateway setGatewayInfo(Map<String,String> gatewayInfo) {
365
  public PaymentGateway setErrorUrl(String errorUrl) {
305
    this.gatewayInfo = gatewayInfo;
366
    this.errorUrl = errorUrl;
306
    return this;
367
    return this;
307
  }
368
  }
308
 
369
 
309
  public void unsetGatewayInfo() {
370
  public void unsetErrorUrl() {
310
    this.gatewayInfo = null;
371
    this.errorUrl = null;
311
  }
372
  }
312
 
373
 
313
  /** Returns true if field gatewayInfo is set (has been asigned a value) and false otherwise */
374
  /** Returns true if field errorUrl is set (has been asigned a value) and false otherwise */
314
  public boolean isSetGatewayInfo() {
375
  public boolean isSetErrorUrl() {
315
    return this.gatewayInfo != null;
376
    return this.errorUrl != null;
316
  }
377
  }
317
 
378
 
318
  public void setGatewayInfoIsSet(boolean value) {
379
  public void setErrorUrlIsSet(boolean value) {
319
    if (!value) {
380
    if (!value) {
320
      this.gatewayInfo = null;
381
      this.errorUrl = null;
321
    }
382
    }
322
  }
383
  }
323
 
384
 
-
 
385
  /**
-
 
386
   * 
-
 
387
   * @see PaymentGatewayStatus
-
 
388
   */
324
  public long getAddedOn() {
389
  public PaymentGatewayStatus getStatus() {
325
    return this.addedOn;
390
    return this.status;
326
  }
391
  }
327
 
392
 
-
 
393
  /**
-
 
394
   * 
328
  public PaymentGateway setAddedOn(long addedOn) {
395
   * @see PaymentGatewayStatus
-
 
396
   */
329
    this.addedOn = addedOn;
397
  public PaymentGateway setStatus(PaymentGatewayStatus status) {
330
    setAddedOnIsSet(true);
398
    this.status = status;
331
    return this;
399
    return this;
332
  }
400
  }
333
 
401
 
334
  public void unsetAddedOn() {
402
  public void unsetStatus() {
335
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
403
    this.status = null;
336
  }
404
  }
337
 
405
 
338
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
406
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
339
  public boolean isSetAddedOn() {
407
  public boolean isSetStatus() {
340
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
408
    return this.status != null;
341
  }
409
  }
342
 
410
 
343
  public void setAddedOnIsSet(boolean value) {
411
  public void setStatusIsSet(boolean value) {
-
 
412
    if (!value) {
-
 
413
      this.status = null;
-
 
414
    }
-
 
415
  }
-
 
416
 
-
 
417
  public int getAttributesSize() {
-
 
418
    return (this.attributes == null) ? 0 : this.attributes.size();
-
 
419
  }
-
 
420
 
-
 
421
  public java.util.Iterator<Attribute> getAttributesIterator() {
-
 
422
    return (this.attributes == null) ? null : this.attributes.iterator();
-
 
423
  }
-
 
424
 
-
 
425
  public void addToAttributes(Attribute elem) {
-
 
426
    if (this.attributes == null) {
-
 
427
      this.attributes = new ArrayList<Attribute>();
-
 
428
    }
-
 
429
    this.attributes.add(elem);
-
 
430
  }
-
 
431
 
-
 
432
  public List<Attribute> getAttributes() {
-
 
433
    return this.attributes;
-
 
434
  }
-
 
435
 
-
 
436
  public PaymentGateway setAttributes(List<Attribute> attributes) {
-
 
437
    this.attributes = attributes;
-
 
438
    return this;
-
 
439
  }
-
 
440
 
-
 
441
  public void unsetAttributes() {
-
 
442
    this.attributes = null;
-
 
443
  }
-
 
444
 
-
 
445
  /** Returns true if field attributes is set (has been asigned a value) and false otherwise */
-
 
446
  public boolean isSetAttributes() {
-
 
447
    return this.attributes != null;
-
 
448
  }
-
 
449
 
344
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
450
  public void setAttributesIsSet(boolean value) {
-
 
451
    if (!value) {
-
 
452
      this.attributes = null;
-
 
453
    }
345
  }
454
  }
346
 
455
 
347
  public void setFieldValue(_Fields field, Object value) {
456
  public void setFieldValue(_Fields field, Object value) {
348
    switch (field) {
457
    switch (field) {
349
    case ID:
458
    case ID:
Line 352... Line 461...
352
      } else {
461
      } else {
353
        setId((Long)value);
462
        setId((Long)value);
354
      }
463
      }
355
      break;
464
      break;
356
 
465
 
357
    case GATEWAY_NAME:
466
    case NAME:
358
      if (value == null) {
467
      if (value == null) {
359
        unsetGatewayName();
468
        unsetName();
360
      } else {
469
      } else {
361
        setGatewayName((String)value);
470
        setName((String)value);
362
      }
471
      }
363
      break;
472
      break;
364
 
473
 
365
    case GATEWAY_PRODUCTION_URL:
474
    case URL:
366
      if (value == null) {
475
      if (value == null) {
367
        unsetGatewayProductionUrl();
476
        unsetUrl();
368
      } else {
477
      } else {
369
        setGatewayProductionUrl((String)value);
478
        setUrl((String)value);
370
      }
479
      }
371
      break;
480
      break;
372
 
481
 
373
    case GATEWAY_STAGING_URL:
482
    case ADDED_ON:
374
      if (value == null) {
483
      if (value == null) {
375
        unsetGatewayStagingUrl();
484
        unsetAddedOn();
376
      } else {
485
      } else {
377
        setGatewayStagingUrl((String)value);
486
        setAddedOn((Long)value);
378
      }
487
      }
379
      break;
488
      break;
380
 
489
 
381
    case GATEWAY_INFO:
490
    case ALIAS_NAME:
382
      if (value == null) {
491
      if (value == null) {
383
        unsetGatewayInfo();
492
        unsetAliasName();
384
      } else {
493
      } else {
385
        setGatewayInfo((Map<String,String>)value);
494
        setAliasName((String)value);
386
      }
495
      }
387
      break;
496
      break;
388
 
497
 
389
    case ADDED_ON:
498
    case RESPONSE_URL:
390
      if (value == null) {
499
      if (value == null) {
391
        unsetAddedOn();
500
        unsetResponseUrl();
392
      } else {
501
      } else {
-
 
502
        setResponseUrl((String)value);
-
 
503
      }
-
 
504
      break;
-
 
505
 
-
 
506
    case ERROR_URL:
-
 
507
      if (value == null) {
-
 
508
        unsetErrorUrl();
-
 
509
      } else {
393
        setAddedOn((Long)value);
510
        setErrorUrl((String)value);
-
 
511
      }
-
 
512
      break;
-
 
513
 
-
 
514
    case STATUS:
-
 
515
      if (value == null) {
-
 
516
        unsetStatus();
-
 
517
      } else {
-
 
518
        setStatus((PaymentGatewayStatus)value);
-
 
519
      }
-
 
520
      break;
-
 
521
 
-
 
522
    case ATTRIBUTES:
-
 
523
      if (value == null) {
-
 
524
        unsetAttributes();
-
 
525
      } else {
-
 
526
        setAttributes((List<Attribute>)value);
394
      }
527
      }
395
      break;
528
      break;
396
 
529
 
397
    }
530
    }
398
  }
531
  }
Line 404... Line 537...
404
  public Object getFieldValue(_Fields field) {
537
  public Object getFieldValue(_Fields field) {
405
    switch (field) {
538
    switch (field) {
406
    case ID:
539
    case ID:
407
      return new Long(getId());
540
      return new Long(getId());
408
 
541
 
409
    case GATEWAY_NAME:
542
    case NAME:
410
      return getGatewayName();
543
      return getName();
411
 
-
 
412
    case GATEWAY_PRODUCTION_URL:
-
 
413
      return getGatewayProductionUrl();
-
 
414
 
-
 
415
    case GATEWAY_STAGING_URL:
-
 
416
      return getGatewayStagingUrl();
-
 
417
 
544
 
418
    case GATEWAY_INFO:
545
    case URL:
419
      return getGatewayInfo();
546
      return getUrl();
420
 
547
 
421
    case ADDED_ON:
548
    case ADDED_ON:
422
      return new Long(getAddedOn());
549
      return new Long(getAddedOn());
423
 
550
 
-
 
551
    case ALIAS_NAME:
-
 
552
      return getAliasName();
-
 
553
 
-
 
554
    case RESPONSE_URL:
-
 
555
      return getResponseUrl();
-
 
556
 
-
 
557
    case ERROR_URL:
-
 
558
      return getErrorUrl();
-
 
559
 
-
 
560
    case STATUS:
-
 
561
      return getStatus();
-
 
562
 
-
 
563
    case ATTRIBUTES:
-
 
564
      return getAttributes();
-
 
565
 
424
    }
566
    }
425
    throw new IllegalStateException();
567
    throw new IllegalStateException();
426
  }
568
  }
427
 
569
 
428
  public Object getFieldValue(int fieldId) {
570
  public Object getFieldValue(int fieldId) {
Line 432... Line 574...
432
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
574
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
433
  public boolean isSet(_Fields field) {
575
  public boolean isSet(_Fields field) {
434
    switch (field) {
576
    switch (field) {
435
    case ID:
577
    case ID:
436
      return isSetId();
578
      return isSetId();
437
    case GATEWAY_NAME:
579
    case NAME:
438
      return isSetGatewayName();
580
      return isSetName();
439
    case GATEWAY_PRODUCTION_URL:
-
 
440
      return isSetGatewayProductionUrl();
-
 
441
    case GATEWAY_STAGING_URL:
-
 
442
      return isSetGatewayStagingUrl();
-
 
443
    case GATEWAY_INFO:
581
    case URL:
444
      return isSetGatewayInfo();
582
      return isSetUrl();
445
    case ADDED_ON:
583
    case ADDED_ON:
446
      return isSetAddedOn();
584
      return isSetAddedOn();
-
 
585
    case ALIAS_NAME:
-
 
586
      return isSetAliasName();
-
 
587
    case RESPONSE_URL:
-
 
588
      return isSetResponseUrl();
-
 
589
    case ERROR_URL:
-
 
590
      return isSetErrorUrl();
-
 
591
    case STATUS:
-
 
592
      return isSetStatus();
-
 
593
    case ATTRIBUTES:
-
 
594
      return isSetAttributes();
447
    }
595
    }
448
    throw new IllegalStateException();
596
    throw new IllegalStateException();
449
  }
597
  }
450
 
598
 
451
  public boolean isSet(int fieldID) {
599
  public boolean isSet(int fieldID) {
Line 472... Line 620...
472
        return false;
620
        return false;
473
      if (this.id != that.id)
621
      if (this.id != that.id)
474
        return false;
622
        return false;
475
    }
623
    }
476
 
624
 
477
    boolean this_present_gatewayName = true && this.isSetGatewayName();
625
    boolean this_present_name = true && this.isSetName();
478
    boolean that_present_gatewayName = true && that.isSetGatewayName();
626
    boolean that_present_name = true && that.isSetName();
479
    if (this_present_gatewayName || that_present_gatewayName) {
627
    if (this_present_name || that_present_name) {
480
      if (!(this_present_gatewayName && that_present_gatewayName))
628
      if (!(this_present_name && that_present_name))
481
        return false;
629
        return false;
482
      if (!this.gatewayName.equals(that.gatewayName))
630
      if (!this.name.equals(that.name))
483
        return false;
631
        return false;
484
    }
632
    }
485
 
633
 
486
    boolean this_present_gatewayProductionUrl = true && this.isSetGatewayProductionUrl();
634
    boolean this_present_url = true && this.isSetUrl();
487
    boolean that_present_gatewayProductionUrl = true && that.isSetGatewayProductionUrl();
635
    boolean that_present_url = true && that.isSetUrl();
488
    if (this_present_gatewayProductionUrl || that_present_gatewayProductionUrl) {
636
    if (this_present_url || that_present_url) {
489
      if (!(this_present_gatewayProductionUrl && that_present_gatewayProductionUrl))
637
      if (!(this_present_url && that_present_url))
490
        return false;
638
        return false;
491
      if (!this.gatewayProductionUrl.equals(that.gatewayProductionUrl))
639
      if (!this.url.equals(that.url))
492
        return false;
640
        return false;
493
    }
641
    }
494
 
642
 
495
    boolean this_present_gatewayStagingUrl = true && this.isSetGatewayStagingUrl();
643
    boolean this_present_addedOn = true;
496
    boolean that_present_gatewayStagingUrl = true && that.isSetGatewayStagingUrl();
644
    boolean that_present_addedOn = true;
497
    if (this_present_gatewayStagingUrl || that_present_gatewayStagingUrl) {
645
    if (this_present_addedOn || that_present_addedOn) {
498
      if (!(this_present_gatewayStagingUrl && that_present_gatewayStagingUrl))
646
      if (!(this_present_addedOn && that_present_addedOn))
499
        return false;
647
        return false;
500
      if (!this.gatewayStagingUrl.equals(that.gatewayStagingUrl))
648
      if (this.addedOn != that.addedOn)
501
        return false;
649
        return false;
502
    }
650
    }
503
 
651
 
504
    boolean this_present_gatewayInfo = true && this.isSetGatewayInfo();
652
    boolean this_present_aliasName = true && this.isSetAliasName();
505
    boolean that_present_gatewayInfo = true && that.isSetGatewayInfo();
653
    boolean that_present_aliasName = true && that.isSetAliasName();
506
    if (this_present_gatewayInfo || that_present_gatewayInfo) {
654
    if (this_present_aliasName || that_present_aliasName) {
507
      if (!(this_present_gatewayInfo && that_present_gatewayInfo))
655
      if (!(this_present_aliasName && that_present_aliasName))
508
        return false;
656
        return false;
509
      if (!this.gatewayInfo.equals(that.gatewayInfo))
657
      if (!this.aliasName.equals(that.aliasName))
510
        return false;
658
        return false;
511
    }
659
    }
512
 
660
 
513
    boolean this_present_addedOn = true;
661
    boolean this_present_responseUrl = true && this.isSetResponseUrl();
514
    boolean that_present_addedOn = true;
662
    boolean that_present_responseUrl = true && that.isSetResponseUrl();
515
    if (this_present_addedOn || that_present_addedOn) {
663
    if (this_present_responseUrl || that_present_responseUrl) {
516
      if (!(this_present_addedOn && that_present_addedOn))
664
      if (!(this_present_responseUrl && that_present_responseUrl))
517
        return false;
665
        return false;
-
 
666
      if (!this.responseUrl.equals(that.responseUrl))
-
 
667
        return false;
-
 
668
    }
-
 
669
 
-
 
670
    boolean this_present_errorUrl = true && this.isSetErrorUrl();
-
 
671
    boolean that_present_errorUrl = true && that.isSetErrorUrl();
-
 
672
    if (this_present_errorUrl || that_present_errorUrl) {
-
 
673
      if (!(this_present_errorUrl && that_present_errorUrl))
-
 
674
        return false;
-
 
675
      if (!this.errorUrl.equals(that.errorUrl))
-
 
676
        return false;
-
 
677
    }
-
 
678
 
-
 
679
    boolean this_present_status = true && this.isSetStatus();
-
 
680
    boolean that_present_status = true && that.isSetStatus();
-
 
681
    if (this_present_status || that_present_status) {
-
 
682
      if (!(this_present_status && that_present_status))
-
 
683
        return false;
518
      if (this.addedOn != that.addedOn)
684
      if (!this.status.equals(that.status))
-
 
685
        return false;
-
 
686
    }
-
 
687
 
-
 
688
    boolean this_present_attributes = true && this.isSetAttributes();
-
 
689
    boolean that_present_attributes = true && that.isSetAttributes();
-
 
690
    if (this_present_attributes || that_present_attributes) {
-
 
691
      if (!(this_present_attributes && that_present_attributes))
-
 
692
        return false;
-
 
693
      if (!this.attributes.equals(that.attributes))
519
        return false;
694
        return false;
520
    }
695
    }
521
 
696
 
522
    return true;
697
    return true;
523
  }
698
  }
Line 525... Line 700...
525
  @Override
700
  @Override
526
  public int hashCode() {
701
  public int hashCode() {
527
    return 0;
702
    return 0;
528
  }
703
  }
529
 
704
 
-
 
705
  public int compareTo(PaymentGateway other) {
-
 
706
    if (!getClass().equals(other.getClass())) {
-
 
707
      return getClass().getName().compareTo(other.getClass().getName());
-
 
708
    }
-
 
709
 
-
 
710
    int lastComparison = 0;
-
 
711
    PaymentGateway typedOther = (PaymentGateway)other;
-
 
712
 
-
 
713
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
-
 
714
    if (lastComparison != 0) {
-
 
715
      return lastComparison;
-
 
716
    }
-
 
717
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
-
 
718
    if (lastComparison != 0) {
-
 
719
      return lastComparison;
-
 
720
    }
-
 
721
    lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
-
 
722
    if (lastComparison != 0) {
-
 
723
      return lastComparison;
-
 
724
    }
-
 
725
    lastComparison = TBaseHelper.compareTo(name, typedOther.name);
-
 
726
    if (lastComparison != 0) {
-
 
727
      return lastComparison;
-
 
728
    }
-
 
729
    lastComparison = Boolean.valueOf(isSetUrl()).compareTo(isSetUrl());
-
 
730
    if (lastComparison != 0) {
-
 
731
      return lastComparison;
-
 
732
    }
-
 
733
    lastComparison = TBaseHelper.compareTo(url, typedOther.url);
-
 
734
    if (lastComparison != 0) {
-
 
735
      return lastComparison;
-
 
736
    }
-
 
737
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(isSetAddedOn());
-
 
738
    if (lastComparison != 0) {
-
 
739
      return lastComparison;
-
 
740
    }
-
 
741
    lastComparison = TBaseHelper.compareTo(addedOn, typedOther.addedOn);
-
 
742
    if (lastComparison != 0) {
-
 
743
      return lastComparison;
-
 
744
    }
-
 
745
    lastComparison = Boolean.valueOf(isSetAliasName()).compareTo(isSetAliasName());
-
 
746
    if (lastComparison != 0) {
-
 
747
      return lastComparison;
-
 
748
    }
-
 
749
    lastComparison = TBaseHelper.compareTo(aliasName, typedOther.aliasName);
-
 
750
    if (lastComparison != 0) {
-
 
751
      return lastComparison;
-
 
752
    }
-
 
753
    lastComparison = Boolean.valueOf(isSetResponseUrl()).compareTo(isSetResponseUrl());
-
 
754
    if (lastComparison != 0) {
-
 
755
      return lastComparison;
-
 
756
    }
-
 
757
    lastComparison = TBaseHelper.compareTo(responseUrl, typedOther.responseUrl);
-
 
758
    if (lastComparison != 0) {
-
 
759
      return lastComparison;
-
 
760
    }
-
 
761
    lastComparison = Boolean.valueOf(isSetErrorUrl()).compareTo(isSetErrorUrl());
-
 
762
    if (lastComparison != 0) {
-
 
763
      return lastComparison;
-
 
764
    }
-
 
765
    lastComparison = TBaseHelper.compareTo(errorUrl, typedOther.errorUrl);
-
 
766
    if (lastComparison != 0) {
-
 
767
      return lastComparison;
-
 
768
    }
-
 
769
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
-
 
770
    if (lastComparison != 0) {
-
 
771
      return lastComparison;
-
 
772
    }
-
 
773
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
-
 
774
    if (lastComparison != 0) {
-
 
775
      return lastComparison;
-
 
776
    }
-
 
777
    lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(isSetAttributes());
-
 
778
    if (lastComparison != 0) {
-
 
779
      return lastComparison;
-
 
780
    }
-
 
781
    lastComparison = TBaseHelper.compareTo(attributes, typedOther.attributes);
-
 
782
    if (lastComparison != 0) {
-
 
783
      return lastComparison;
-
 
784
    }
-
 
785
    return 0;
-
 
786
  }
-
 
787
 
530
  public void read(TProtocol iprot) throws TException {
788
  public void read(TProtocol iprot) throws TException {
531
    TField field;
789
    TField field;
532
    iprot.readStructBegin();
790
    iprot.readStructBegin();
533
    while (true)
791
    while (true)
534
    {
792
    {
Line 547... Line 805...
547
              setIdIsSet(true);
805
              setIdIsSet(true);
548
            } else { 
806
            } else { 
549
              TProtocolUtil.skip(iprot, field.type);
807
              TProtocolUtil.skip(iprot, field.type);
550
            }
808
            }
551
            break;
809
            break;
-
 
810
          case NAME:
-
 
811
            if (field.type == TType.STRING) {
-
 
812
              this.name = iprot.readString();
-
 
813
            } else { 
-
 
814
              TProtocolUtil.skip(iprot, field.type);
-
 
815
            }
-
 
816
            break;
-
 
817
          case URL:
-
 
818
            if (field.type == TType.STRING) {
-
 
819
              this.url = iprot.readString();
-
 
820
            } else { 
-
 
821
              TProtocolUtil.skip(iprot, field.type);
-
 
822
            }
-
 
823
            break;
-
 
824
          case ADDED_ON:
-
 
825
            if (field.type == TType.I64) {
-
 
826
              this.addedOn = iprot.readI64();
-
 
827
              setAddedOnIsSet(true);
-
 
828
            } else { 
-
 
829
              TProtocolUtil.skip(iprot, field.type);
-
 
830
            }
-
 
831
            break;
552
          case GATEWAY_NAME:
832
          case ALIAS_NAME:
553
            if (field.type == TType.STRING) {
833
            if (field.type == TType.STRING) {
554
              this.gatewayName = iprot.readString();
834
              this.aliasName = iprot.readString();
555
            } else { 
835
            } else { 
556
              TProtocolUtil.skip(iprot, field.type);
836
              TProtocolUtil.skip(iprot, field.type);
557
            }
837
            }
558
            break;
838
            break;
559
          case GATEWAY_PRODUCTION_URL:
839
          case RESPONSE_URL:
560
            if (field.type == TType.STRING) {
840
            if (field.type == TType.STRING) {
561
              this.gatewayProductionUrl = iprot.readString();
841
              this.responseUrl = iprot.readString();
562
            } else { 
842
            } else { 
563
              TProtocolUtil.skip(iprot, field.type);
843
              TProtocolUtil.skip(iprot, field.type);
564
            }
844
            }
565
            break;
845
            break;
566
          case GATEWAY_STAGING_URL:
846
          case ERROR_URL:
567
            if (field.type == TType.STRING) {
847
            if (field.type == TType.STRING) {
568
              this.gatewayStagingUrl = iprot.readString();
848
              this.errorUrl = iprot.readString();
569
            } else { 
849
            } else { 
570
              TProtocolUtil.skip(iprot, field.type);
850
              TProtocolUtil.skip(iprot, field.type);
571
            }
851
            }
572
            break;
852
            break;
573
          case GATEWAY_INFO:
853
          case STATUS:
574
            if (field.type == TType.MAP) {
854
            if (field.type == TType.I32) {
575
              {
-
 
576
                TMap _map0 = iprot.readMapBegin();
-
 
577
                this.gatewayInfo = new HashMap<String,String>(2*_map0.size);
855
              this.status = PaymentGatewayStatus.findByValue(iprot.readI32());
578
                for (int _i1 = 0; _i1 < _map0.size; ++_i1)
-
 
579
                {
-
 
580
                  String _key2;
-
 
581
                  String _val3;
-
 
582
                  _key2 = iprot.readString();
-
 
583
                  _val3 = iprot.readString();
-
 
584
                  this.gatewayInfo.put(_key2, _val3);
-
 
585
                }
-
 
586
                iprot.readMapEnd();
-
 
587
              }
-
 
588
            } else { 
856
            } else { 
589
              TProtocolUtil.skip(iprot, field.type);
857
              TProtocolUtil.skip(iprot, field.type);
590
            }
858
            }
591
            break;
859
            break;
592
          case ADDED_ON:
860
          case ATTRIBUTES:
593
            if (field.type == TType.I64) {
861
            if (field.type == TType.LIST) {
-
 
862
              {
594
              this.addedOn = iprot.readI64();
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;
-
 
868
                  _elem2 = new Attribute();
595
              setAddedOnIsSet(true);
869
                  _elem2.read(iprot);
-
 
870
                  this.attributes.add(_elem2);
-
 
871
                }
-
 
872
                iprot.readListEnd();
-
 
873
              }
596
            } else { 
874
            } else { 
597
              TProtocolUtil.skip(iprot, field.type);
875
              TProtocolUtil.skip(iprot, field.type);
598
            }
876
            }
599
            break;
877
            break;
600
        }
878
        }
Line 610... Line 888...
610
 
888
 
611
    oprot.writeStructBegin(STRUCT_DESC);
889
    oprot.writeStructBegin(STRUCT_DESC);
612
    oprot.writeFieldBegin(ID_FIELD_DESC);
890
    oprot.writeFieldBegin(ID_FIELD_DESC);
613
    oprot.writeI64(this.id);
891
    oprot.writeI64(this.id);
614
    oprot.writeFieldEnd();
892
    oprot.writeFieldEnd();
615
    if (this.gatewayName != null) {
893
    if (this.name != null) {
616
      oprot.writeFieldBegin(GATEWAY_NAME_FIELD_DESC);
894
      oprot.writeFieldBegin(NAME_FIELD_DESC);
617
      oprot.writeString(this.gatewayName);
895
      oprot.writeString(this.name);
-
 
896
      oprot.writeFieldEnd();
-
 
897
    }
-
 
898
    if (this.url != null) {
-
 
899
      oprot.writeFieldBegin(URL_FIELD_DESC);
-
 
900
      oprot.writeString(this.url);
618
      oprot.writeFieldEnd();
901
      oprot.writeFieldEnd();
619
    }
902
    }
-
 
903
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
-
 
904
    oprot.writeI64(this.addedOn);
-
 
905
    oprot.writeFieldEnd();
620
    if (this.gatewayProductionUrl != null) {
906
    if (this.aliasName != null) {
621
      oprot.writeFieldBegin(GATEWAY_PRODUCTION_URL_FIELD_DESC);
907
      oprot.writeFieldBegin(ALIAS_NAME_FIELD_DESC);
622
      oprot.writeString(this.gatewayProductionUrl);
908
      oprot.writeString(this.aliasName);
623
      oprot.writeFieldEnd();
909
      oprot.writeFieldEnd();
624
    }
910
    }
625
    if (this.gatewayStagingUrl != null) {
911
    if (this.responseUrl != null) {
626
      oprot.writeFieldBegin(GATEWAY_STAGING_URL_FIELD_DESC);
912
      oprot.writeFieldBegin(RESPONSE_URL_FIELD_DESC);
627
      oprot.writeString(this.gatewayStagingUrl);
913
      oprot.writeString(this.responseUrl);
628
      oprot.writeFieldEnd();
914
      oprot.writeFieldEnd();
629
    }
915
    }
-
 
916
    if (this.errorUrl != null) {
-
 
917
      oprot.writeFieldBegin(ERROR_URL_FIELD_DESC);
-
 
918
      oprot.writeString(this.errorUrl);
-
 
919
      oprot.writeFieldEnd();
-
 
920
    }
-
 
921
    if (this.status != null) {
-
 
922
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
923
      oprot.writeI32(this.status.getValue());
-
 
924
      oprot.writeFieldEnd();
-
 
925
    }
630
    if (this.gatewayInfo != null) {
926
    if (this.attributes != null) {
631
      oprot.writeFieldBegin(GATEWAY_INFO_FIELD_DESC);
927
      oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
632
      {
928
      {
633
        oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.gatewayInfo.size()));
929
        oprot.writeListBegin(new TList(TType.STRUCT, this.attributes.size()));
634
        for (Map.Entry<String, String> _iter4 : this.gatewayInfo.entrySet())
930
        for (Attribute _iter3 : this.attributes)
635
        {
931
        {
636
          oprot.writeString(_iter4.getKey());
932
          _iter3.write(oprot);
637
          oprot.writeString(_iter4.getValue());
-
 
638
        }
933
        }
639
        oprot.writeMapEnd();
934
        oprot.writeListEnd();
640
      }
935
      }
641
      oprot.writeFieldEnd();
936
      oprot.writeFieldEnd();
642
    }
937
    }
643
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
-
 
644
    oprot.writeI64(this.addedOn);
-
 
645
    oprot.writeFieldEnd();
-
 
646
    oprot.writeFieldStop();
938
    oprot.writeFieldStop();
647
    oprot.writeStructEnd();
939
    oprot.writeStructEnd();
648
  }
940
  }
649
 
941
 
650
  @Override
942
  @Override
Line 654... Line 946...
654
 
946
 
655
    sb.append("id:");
947
    sb.append("id:");
656
    sb.append(this.id);
948
    sb.append(this.id);
657
    first = false;
949
    first = false;
658
    if (!first) sb.append(", ");
950
    if (!first) sb.append(", ");
659
    sb.append("gatewayName:");
951
    sb.append("name:");
660
    if (this.gatewayName == null) {
952
    if (this.name == null) {
661
      sb.append("null");
953
      sb.append("null");
662
    } else {
954
    } else {
663
      sb.append(this.gatewayName);
955
      sb.append(this.name);
664
    }
956
    }
665
    first = false;
957
    first = false;
666
    if (!first) sb.append(", ");
958
    if (!first) sb.append(", ");
667
    sb.append("gatewayProductionUrl:");
959
    sb.append("url:");
668
    if (this.gatewayProductionUrl == null) {
960
    if (this.url == null) {
669
      sb.append("null");
961
      sb.append("null");
670
    } else {
962
    } else {
671
      sb.append(this.gatewayProductionUrl);
963
      sb.append(this.url);
672
    }
964
    }
673
    first = false;
965
    first = false;
674
    if (!first) sb.append(", ");
966
    if (!first) sb.append(", ");
-
 
967
    sb.append("addedOn:");
-
 
968
    sb.append(this.addedOn);
-
 
969
    first = false;
-
 
970
    if (!first) sb.append(", ");
675
    sb.append("gatewayStagingUrl:");
971
    sb.append("aliasName:");
676
    if (this.gatewayStagingUrl == null) {
972
    if (this.aliasName == null) {
677
      sb.append("null");
973
      sb.append("null");
678
    } else {
974
    } else {
679
      sb.append(this.gatewayStagingUrl);
975
      sb.append(this.aliasName);
680
    }
976
    }
681
    first = false;
977
    first = false;
682
    if (!first) sb.append(", ");
978
    if (!first) sb.append(", ");
683
    sb.append("gatewayInfo:");
979
    sb.append("responseUrl:");
684
    if (this.gatewayInfo == null) {
980
    if (this.responseUrl == null) {
685
      sb.append("null");
981
      sb.append("null");
686
    } else {
982
    } else {
687
      sb.append(this.gatewayInfo);
983
      sb.append(this.responseUrl);
688
    }
984
    }
689
    first = false;
985
    first = false;
690
    if (!first) sb.append(", ");
986
    if (!first) sb.append(", ");
-
 
987
    sb.append("errorUrl:");
-
 
988
    if (this.errorUrl == null) {
-
 
989
      sb.append("null");
-
 
990
    } else {
-
 
991
      sb.append(this.errorUrl);
-
 
992
    }
-
 
993
    first = false;
-
 
994
    if (!first) sb.append(", ");
691
    sb.append("addedOn:");
995
    sb.append("status:");
-
 
996
    if (this.status == null) {
-
 
997
      sb.append("null");
-
 
998
    } else {
-
 
999
      String status_name = status.name();
-
 
1000
      if (status_name != null) {
-
 
1001
        sb.append(status_name);
-
 
1002
        sb.append(" (");
-
 
1003
      }
692
    sb.append(this.addedOn);
1004
      sb.append(this.status);
-
 
1005
      if (status_name != null) {
-
 
1006
        sb.append(")");
-
 
1007
      }
-
 
1008
    }
-
 
1009
    first = false;
-
 
1010
    if (!first) sb.append(", ");
-
 
1011
    sb.append("attributes:");
-
 
1012
    if (this.attributes == null) {
-
 
1013
      sb.append("null");
-
 
1014
    } else {
-
 
1015
      sb.append(this.attributes);
-
 
1016
    }
693
    first = false;
1017
    first = false;
694
    sb.append(")");
1018
    sb.append(")");
695
    return sb.toString();
1019
    return sb.toString();
696
  }
1020
  }
697
 
1021