Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
123 ashish 1
/**
2
 * Autogenerated by Thrift
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.payments;
7
 
420 ashish 8
import java.util.List;
9
import java.util.ArrayList;
123 ashish 10
import java.util.Map;
11
import java.util.HashMap;
420 ashish 12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
123 ashish 21
 
420 ashish 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 {
27
  private static final TStruct STRUCT_DESC = new TStruct("PaymentGateway");
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField GATEWAY_NAME_FIELD_DESC = new TField("gatewayName", TType.STRING, (short)2);
31
  private static final TField GATEWAY_PRODUCTION_URL_FIELD_DESC = new TField("gatewayProductionUrl", TType.STRING, (short)3);
32
  private static final TField GATEWAY_STAGING_URL_FIELD_DESC = new TField("gatewayStagingUrl", TType.STRING, (short)4);
33
  private static final TField GATEWAY_INFO_FIELD_DESC = new TField("gatewayInfo", TType.MAP, (short)5);
34
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)6);
35
 
36
  private long id;
37
  private String gatewayName;
38
  private String gatewayProductionUrl;
39
  private String gatewayStagingUrl;
40
  private Map<String,String> gatewayInfo;
41
  private long addedOn;
42
 
43
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44
  public enum _Fields implements TFieldIdEnum {
45
    ID((short)1, "id"),
46
    GATEWAY_NAME((short)2, "gatewayName"),
47
    GATEWAY_PRODUCTION_URL((short)3, "gatewayProductionUrl"),
48
    GATEWAY_STAGING_URL((short)4, "gatewayStagingUrl"),
49
    GATEWAY_INFO((short)5, "gatewayInfo"),
50
    ADDED_ON((short)6, "addedOn");
51
 
52
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
53
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54
 
55
    static {
56
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
57
        byId.put((int)field._thriftId, field);
58
        byName.put(field.getFieldName(), field);
59
      }
123 ashish 60
    }
61
 
420 ashish 62
    /**
63
     * Find the _Fields constant that matches fieldId, or null if its not found.
64
     */
65
    public static _Fields findByThriftId(int fieldId) {
66
      return byId.get(fieldId);
67
    }
123 ashish 68
 
420 ashish 69
    /**
70
     * Find the _Fields constant that matches fieldId, throwing an exception
71
     * if it is not found.
72
     */
73
    public static _Fields findByThriftIdOrThrow(int fieldId) {
74
      _Fields fields = findByThriftId(fieldId);
75
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
76
      return fields;
77
    }
78
 
79
    /**
80
     * Find the _Fields constant that matches name, or null if its not found.
81
     */
82
    public static _Fields findByName(String name) {
83
      return byName.get(name);
84
    }
85
 
86
    private final short _thriftId;
87
    private final String _fieldName;
88
 
89
    _Fields(short thriftId, String fieldName) {
90
      _thriftId = thriftId;
91
      _fieldName = fieldName;
92
    }
93
 
94
    public short getThriftFieldId() {
95
      return _thriftId;
96
    }
97
 
98
    public String getFieldName() {
99
      return _fieldName;
100
    }
123 ashish 101
  }
102
 
420 ashish 103
  // isset id assignments
104
  private static final int __ID_ISSET_ID = 0;
105
  private static final int __ADDEDON_ISSET_ID = 1;
106
  private BitSet __isset_bit_vector = new BitSet(2);
107
 
108
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
109
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
110
        new FieldValueMetaData(TType.I64)));
111
    put(_Fields.GATEWAY_NAME, new FieldMetaData("gatewayName", TFieldRequirementType.DEFAULT, 
112
        new FieldValueMetaData(TType.STRING)));
113
    put(_Fields.GATEWAY_PRODUCTION_URL, new FieldMetaData("gatewayProductionUrl", TFieldRequirementType.DEFAULT, 
114
        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, 
122
        new FieldValueMetaData(TType.I64)));
123
  }});
124
 
125
  static {
126
    FieldMetaData.addStructMetaDataMap(PaymentGateway.class, metaDataMap);
123 ashish 127
  }
128
 
420 ashish 129
  public PaymentGateway() {
130
  }
131
 
132
  public PaymentGateway(
133
    long id,
134
    String gatewayName,
135
    String gatewayProductionUrl,
136
    String gatewayStagingUrl,
137
    Map<String,String> gatewayInfo,
138
    long addedOn)
139
  {
140
    this();
141
    this.id = id;
142
    setIdIsSet(true);
143
    this.gatewayName = gatewayName;
144
    this.gatewayProductionUrl = gatewayProductionUrl;
145
    this.gatewayStagingUrl = gatewayStagingUrl;
146
    this.gatewayInfo = gatewayInfo;
147
    this.addedOn = addedOn;
148
    setAddedOnIsSet(true);
149
  }
150
 
123 ashish 151
  /**
420 ashish 152
   * Performs a deep copy on <i>other</i>.
123 ashish 153
   */
420 ashish 154
  public PaymentGateway(PaymentGateway other) {
155
    __isset_bit_vector.clear();
156
    __isset_bit_vector.or(other.__isset_bit_vector);
157
    this.id = other.id;
158
    if (other.isSetGatewayName()) {
159
      this.gatewayName = other.gatewayName;
160
    }
161
    if (other.isSetGatewayProductionUrl()) {
162
      this.gatewayProductionUrl = other.gatewayProductionUrl;
163
    }
164
    if (other.isSetGatewayStagingUrl()) {
165
      this.gatewayStagingUrl = other.gatewayStagingUrl;
166
    }
167
    if (other.isSetGatewayInfo()) {
168
      Map<String,String> __this__gatewayInfo = new HashMap<String,String>();
169
      for (Map.Entry<String, String> other_element : other.gatewayInfo.entrySet()) {
170
 
171
        String other_element_key = other_element.getKey();
172
        String other_element_value = other_element.getValue();
173
 
174
        String __this__gatewayInfo_copy_key = other_element_key;
175
 
176
        String __this__gatewayInfo_copy_value = other_element_value;
177
 
178
        __this__gatewayInfo.put(__this__gatewayInfo_copy_key, __this__gatewayInfo_copy_value);
179
      }
180
      this.gatewayInfo = __this__gatewayInfo;
181
    }
182
    this.addedOn = other.addedOn;
123 ashish 183
  }
420 ashish 184
 
185
  public PaymentGateway deepCopy() {
186
    return new PaymentGateway(this);
187
  }
188
 
189
  @Deprecated
190
  public PaymentGateway clone() {
191
    return new PaymentGateway(this);
192
  }
193
 
194
  public long getId() {
195
    return this.id;
196
  }
197
 
198
  public PaymentGateway setId(long id) {
199
    this.id = id;
200
    setIdIsSet(true);
201
    return this;
202
  }
203
 
204
  public void unsetId() {
205
    __isset_bit_vector.clear(__ID_ISSET_ID);
206
  }
207
 
208
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
209
  public boolean isSetId() {
210
    return __isset_bit_vector.get(__ID_ISSET_ID);
211
  }
212
 
213
  public void setIdIsSet(boolean value) {
214
    __isset_bit_vector.set(__ID_ISSET_ID, value);
215
  }
216
 
217
  public String getGatewayName() {
218
    return this.gatewayName;
219
  }
220
 
221
  public PaymentGateway setGatewayName(String gatewayName) {
222
    this.gatewayName = gatewayName;
223
    return this;
224
  }
225
 
226
  public void unsetGatewayName() {
227
    this.gatewayName = null;
228
  }
229
 
230
  /** Returns true if field gatewayName is set (has been asigned a value) and false otherwise */
231
  public boolean isSetGatewayName() {
232
    return this.gatewayName != null;
233
  }
234
 
235
  public void setGatewayNameIsSet(boolean value) {
236
    if (!value) {
237
      this.gatewayName = null;
238
    }
239
  }
240
 
241
  public String getGatewayProductionUrl() {
242
    return this.gatewayProductionUrl;
243
  }
244
 
245
  public PaymentGateway setGatewayProductionUrl(String gatewayProductionUrl) {
246
    this.gatewayProductionUrl = gatewayProductionUrl;
247
    return this;
248
  }
249
 
250
  public void unsetGatewayProductionUrl() {
251
    this.gatewayProductionUrl = null;
252
  }
253
 
254
  /** Returns true if field gatewayProductionUrl is set (has been asigned a value) and false otherwise */
255
  public boolean isSetGatewayProductionUrl() {
256
    return this.gatewayProductionUrl != null;
257
  }
258
 
259
  public void setGatewayProductionUrlIsSet(boolean value) {
260
    if (!value) {
261
      this.gatewayProductionUrl = null;
262
    }
263
  }
264
 
265
  public String getGatewayStagingUrl() {
266
    return this.gatewayStagingUrl;
267
  }
268
 
269
  public PaymentGateway setGatewayStagingUrl(String gatewayStagingUrl) {
270
    this.gatewayStagingUrl = gatewayStagingUrl;
271
    return this;
272
  }
273
 
274
  public void unsetGatewayStagingUrl() {
275
    this.gatewayStagingUrl = null;
276
  }
277
 
278
  /** Returns true if field gatewayStagingUrl is set (has been asigned a value) and false otherwise */
279
  public boolean isSetGatewayStagingUrl() {
280
    return this.gatewayStagingUrl != null;
281
  }
282
 
283
  public void setGatewayStagingUrlIsSet(boolean value) {
284
    if (!value) {
285
      this.gatewayStagingUrl = null;
286
    }
287
  }
288
 
289
  public int getGatewayInfoSize() {
290
    return (this.gatewayInfo == null) ? 0 : this.gatewayInfo.size();
291
  }
292
 
293
  public void putToGatewayInfo(String key, String val) {
294
    if (this.gatewayInfo == null) {
295
      this.gatewayInfo = new HashMap<String,String>();
296
    }
297
    this.gatewayInfo.put(key, val);
298
  }
299
 
300
  public Map<String,String> getGatewayInfo() {
301
    return this.gatewayInfo;
302
  }
303
 
304
  public PaymentGateway setGatewayInfo(Map<String,String> gatewayInfo) {
305
    this.gatewayInfo = gatewayInfo;
306
    return this;
307
  }
308
 
309
  public void unsetGatewayInfo() {
310
    this.gatewayInfo = null;
311
  }
312
 
313
  /** Returns true if field gatewayInfo is set (has been asigned a value) and false otherwise */
314
  public boolean isSetGatewayInfo() {
315
    return this.gatewayInfo != null;
316
  }
317
 
318
  public void setGatewayInfoIsSet(boolean value) {
319
    if (!value) {
320
      this.gatewayInfo = null;
321
    }
322
  }
323
 
324
  public long getAddedOn() {
325
    return this.addedOn;
326
  }
327
 
328
  public PaymentGateway setAddedOn(long addedOn) {
329
    this.addedOn = addedOn;
330
    setAddedOnIsSet(true);
331
    return this;
332
  }
333
 
334
  public void unsetAddedOn() {
335
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
336
  }
337
 
338
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
339
  public boolean isSetAddedOn() {
340
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
341
  }
342
 
343
  public void setAddedOnIsSet(boolean value) {
344
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
345
  }
346
 
347
  public void setFieldValue(_Fields field, Object value) {
348
    switch (field) {
349
    case ID:
350
      if (value == null) {
351
        unsetId();
352
      } else {
353
        setId((Long)value);
354
      }
355
      break;
356
 
357
    case GATEWAY_NAME:
358
      if (value == null) {
359
        unsetGatewayName();
360
      } else {
361
        setGatewayName((String)value);
362
      }
363
      break;
364
 
365
    case GATEWAY_PRODUCTION_URL:
366
      if (value == null) {
367
        unsetGatewayProductionUrl();
368
      } else {
369
        setGatewayProductionUrl((String)value);
370
      }
371
      break;
372
 
373
    case GATEWAY_STAGING_URL:
374
      if (value == null) {
375
        unsetGatewayStagingUrl();
376
      } else {
377
        setGatewayStagingUrl((String)value);
378
      }
379
      break;
380
 
381
    case GATEWAY_INFO:
382
      if (value == null) {
383
        unsetGatewayInfo();
384
      } else {
385
        setGatewayInfo((Map<String,String>)value);
386
      }
387
      break;
388
 
389
    case ADDED_ON:
390
      if (value == null) {
391
        unsetAddedOn();
392
      } else {
393
        setAddedOn((Long)value);
394
      }
395
      break;
396
 
397
    }
398
  }
399
 
400
  public void setFieldValue(int fieldID, Object value) {
401
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
402
  }
403
 
404
  public Object getFieldValue(_Fields field) {
405
    switch (field) {
406
    case ID:
407
      return new Long(getId());
408
 
409
    case GATEWAY_NAME:
410
      return getGatewayName();
411
 
412
    case GATEWAY_PRODUCTION_URL:
413
      return getGatewayProductionUrl();
414
 
415
    case GATEWAY_STAGING_URL:
416
      return getGatewayStagingUrl();
417
 
418
    case GATEWAY_INFO:
419
      return getGatewayInfo();
420
 
421
    case ADDED_ON:
422
      return new Long(getAddedOn());
423
 
424
    }
425
    throw new IllegalStateException();
426
  }
427
 
428
  public Object getFieldValue(int fieldId) {
429
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
430
  }
431
 
432
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
433
  public boolean isSet(_Fields field) {
434
    switch (field) {
435
    case ID:
436
      return isSetId();
437
    case GATEWAY_NAME:
438
      return isSetGatewayName();
439
    case GATEWAY_PRODUCTION_URL:
440
      return isSetGatewayProductionUrl();
441
    case GATEWAY_STAGING_URL:
442
      return isSetGatewayStagingUrl();
443
    case GATEWAY_INFO:
444
      return isSetGatewayInfo();
445
    case ADDED_ON:
446
      return isSetAddedOn();
447
    }
448
    throw new IllegalStateException();
449
  }
450
 
451
  public boolean isSet(int fieldID) {
452
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
453
  }
454
 
455
  @Override
456
  public boolean equals(Object that) {
457
    if (that == null)
458
      return false;
459
    if (that instanceof PaymentGateway)
460
      return this.equals((PaymentGateway)that);
461
    return false;
462
  }
463
 
464
  public boolean equals(PaymentGateway that) {
465
    if (that == null)
466
      return false;
467
 
468
    boolean this_present_id = true;
469
    boolean that_present_id = true;
470
    if (this_present_id || that_present_id) {
471
      if (!(this_present_id && that_present_id))
472
        return false;
473
      if (this.id != that.id)
474
        return false;
475
    }
476
 
477
    boolean this_present_gatewayName = true && this.isSetGatewayName();
478
    boolean that_present_gatewayName = true && that.isSetGatewayName();
479
    if (this_present_gatewayName || that_present_gatewayName) {
480
      if (!(this_present_gatewayName && that_present_gatewayName))
481
        return false;
482
      if (!this.gatewayName.equals(that.gatewayName))
483
        return false;
484
    }
485
 
486
    boolean this_present_gatewayProductionUrl = true && this.isSetGatewayProductionUrl();
487
    boolean that_present_gatewayProductionUrl = true && that.isSetGatewayProductionUrl();
488
    if (this_present_gatewayProductionUrl || that_present_gatewayProductionUrl) {
489
      if (!(this_present_gatewayProductionUrl && that_present_gatewayProductionUrl))
490
        return false;
491
      if (!this.gatewayProductionUrl.equals(that.gatewayProductionUrl))
492
        return false;
493
    }
494
 
495
    boolean this_present_gatewayStagingUrl = true && this.isSetGatewayStagingUrl();
496
    boolean that_present_gatewayStagingUrl = true && that.isSetGatewayStagingUrl();
497
    if (this_present_gatewayStagingUrl || that_present_gatewayStagingUrl) {
498
      if (!(this_present_gatewayStagingUrl && that_present_gatewayStagingUrl))
499
        return false;
500
      if (!this.gatewayStagingUrl.equals(that.gatewayStagingUrl))
501
        return false;
502
    }
503
 
504
    boolean this_present_gatewayInfo = true && this.isSetGatewayInfo();
505
    boolean that_present_gatewayInfo = true && that.isSetGatewayInfo();
506
    if (this_present_gatewayInfo || that_present_gatewayInfo) {
507
      if (!(this_present_gatewayInfo && that_present_gatewayInfo))
508
        return false;
509
      if (!this.gatewayInfo.equals(that.gatewayInfo))
510
        return false;
511
    }
512
 
513
    boolean this_present_addedOn = true;
514
    boolean that_present_addedOn = true;
515
    if (this_present_addedOn || that_present_addedOn) {
516
      if (!(this_present_addedOn && that_present_addedOn))
517
        return false;
518
      if (this.addedOn != that.addedOn)
519
        return false;
520
    }
521
 
522
    return true;
523
  }
524
 
525
  @Override
526
  public int hashCode() {
527
    return 0;
528
  }
529
 
530
  public void read(TProtocol iprot) throws TException {
531
    TField field;
532
    iprot.readStructBegin();
533
    while (true)
534
    {
535
      field = iprot.readFieldBegin();
536
      if (field.type == TType.STOP) { 
537
        break;
538
      }
539
      _Fields fieldId = _Fields.findByThriftId(field.id);
540
      if (fieldId == null) {
541
        TProtocolUtil.skip(iprot, field.type);
542
      } else {
543
        switch (fieldId) {
544
          case ID:
545
            if (field.type == TType.I64) {
546
              this.id = iprot.readI64();
547
              setIdIsSet(true);
548
            } else { 
549
              TProtocolUtil.skip(iprot, field.type);
550
            }
551
            break;
552
          case GATEWAY_NAME:
553
            if (field.type == TType.STRING) {
554
              this.gatewayName = iprot.readString();
555
            } else { 
556
              TProtocolUtil.skip(iprot, field.type);
557
            }
558
            break;
559
          case GATEWAY_PRODUCTION_URL:
560
            if (field.type == TType.STRING) {
561
              this.gatewayProductionUrl = iprot.readString();
562
            } else { 
563
              TProtocolUtil.skip(iprot, field.type);
564
            }
565
            break;
566
          case GATEWAY_STAGING_URL:
567
            if (field.type == TType.STRING) {
568
              this.gatewayStagingUrl = iprot.readString();
569
            } else { 
570
              TProtocolUtil.skip(iprot, field.type);
571
            }
572
            break;
573
          case GATEWAY_INFO:
574
            if (field.type == TType.MAP) {
575
              {
576
                TMap _map0 = iprot.readMapBegin();
577
                this.gatewayInfo = new HashMap<String,String>(2*_map0.size);
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 { 
589
              TProtocolUtil.skip(iprot, field.type);
590
            }
591
            break;
592
          case ADDED_ON:
593
            if (field.type == TType.I64) {
594
              this.addedOn = iprot.readI64();
595
              setAddedOnIsSet(true);
596
            } else { 
597
              TProtocolUtil.skip(iprot, field.type);
598
            }
599
            break;
600
        }
601
        iprot.readFieldEnd();
602
      }
603
    }
604
    iprot.readStructEnd();
605
    validate();
606
  }
607
 
608
  public void write(TProtocol oprot) throws TException {
609
    validate();
610
 
611
    oprot.writeStructBegin(STRUCT_DESC);
612
    oprot.writeFieldBegin(ID_FIELD_DESC);
613
    oprot.writeI64(this.id);
614
    oprot.writeFieldEnd();
615
    if (this.gatewayName != null) {
616
      oprot.writeFieldBegin(GATEWAY_NAME_FIELD_DESC);
617
      oprot.writeString(this.gatewayName);
618
      oprot.writeFieldEnd();
619
    }
620
    if (this.gatewayProductionUrl != null) {
621
      oprot.writeFieldBegin(GATEWAY_PRODUCTION_URL_FIELD_DESC);
622
      oprot.writeString(this.gatewayProductionUrl);
623
      oprot.writeFieldEnd();
624
    }
625
    if (this.gatewayStagingUrl != null) {
626
      oprot.writeFieldBegin(GATEWAY_STAGING_URL_FIELD_DESC);
627
      oprot.writeString(this.gatewayStagingUrl);
628
      oprot.writeFieldEnd();
629
    }
630
    if (this.gatewayInfo != null) {
631
      oprot.writeFieldBegin(GATEWAY_INFO_FIELD_DESC);
632
      {
633
        oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.gatewayInfo.size()));
634
        for (Map.Entry<String, String> _iter4 : this.gatewayInfo.entrySet())
635
        {
636
          oprot.writeString(_iter4.getKey());
637
          oprot.writeString(_iter4.getValue());
638
        }
639
        oprot.writeMapEnd();
640
      }
641
      oprot.writeFieldEnd();
642
    }
643
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
644
    oprot.writeI64(this.addedOn);
645
    oprot.writeFieldEnd();
646
    oprot.writeFieldStop();
647
    oprot.writeStructEnd();
648
  }
649
 
650
  @Override
651
  public String toString() {
652
    StringBuilder sb = new StringBuilder("PaymentGateway(");
653
    boolean first = true;
654
 
655
    sb.append("id:");
656
    sb.append(this.id);
657
    first = false;
658
    if (!first) sb.append(", ");
659
    sb.append("gatewayName:");
660
    if (this.gatewayName == null) {
661
      sb.append("null");
662
    } else {
663
      sb.append(this.gatewayName);
664
    }
665
    first = false;
666
    if (!first) sb.append(", ");
667
    sb.append("gatewayProductionUrl:");
668
    if (this.gatewayProductionUrl == null) {
669
      sb.append("null");
670
    } else {
671
      sb.append(this.gatewayProductionUrl);
672
    }
673
    first = false;
674
    if (!first) sb.append(", ");
675
    sb.append("gatewayStagingUrl:");
676
    if (this.gatewayStagingUrl == null) {
677
      sb.append("null");
678
    } else {
679
      sb.append(this.gatewayStagingUrl);
680
    }
681
    first = false;
682
    if (!first) sb.append(", ");
683
    sb.append("gatewayInfo:");
684
    if (this.gatewayInfo == null) {
685
      sb.append("null");
686
    } else {
687
      sb.append(this.gatewayInfo);
688
    }
689
    first = false;
690
    if (!first) sb.append(", ");
691
    sb.append("addedOn:");
692
    sb.append(this.addedOn);
693
    first = false;
694
    sb.append(")");
695
    return sb.toString();
696
  }
697
 
698
  public void validate() throws TException {
699
    // check for required fields
700
  }
701
 
123 ashish 702
}
420 ashish 703