• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-java-api-library / #2876

27 Nov 2023 10:42AM UTC coverage: 12.874%. First build
#2876

push

web-flow
Merge 842734962 into e27e7377f

5 of 335 new or added lines in 22 files covered. (1.49%)

12464 of 96819 relevant lines covered (12.87%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

15.44
/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java
1
/*
2
 * Configuration API
3
 *
4
 * The version of the OpenAPI document: 2
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.balanceplatform;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.balanceplatform.ActiveNetworkTokensRestriction;
20
import com.adyen.model.balanceplatform.BrandVariantsRestriction;
21
import com.adyen.model.balanceplatform.CounterpartyBankRestriction;
22
import com.adyen.model.balanceplatform.CountriesRestriction;
23
import com.adyen.model.balanceplatform.DayOfWeekRestriction;
24
import com.adyen.model.balanceplatform.DifferentCurrenciesRestriction;
25
import com.adyen.model.balanceplatform.EntryModesRestriction;
26
import com.adyen.model.balanceplatform.InternationalTransactionRestriction;
27
import com.adyen.model.balanceplatform.MatchingTransactionsRestriction;
28
import com.adyen.model.balanceplatform.MccsRestriction;
29
import com.adyen.model.balanceplatform.MerchantNamesRestriction;
30
import com.adyen.model.balanceplatform.MerchantsRestriction;
31
import com.adyen.model.balanceplatform.ProcessingTypesRestriction;
32
import com.adyen.model.balanceplatform.SameAmountRestriction;
33
import com.adyen.model.balanceplatform.SameCounterpartyRestriction;
34
import com.adyen.model.balanceplatform.TimeOfDayRestriction;
35
import com.adyen.model.balanceplatform.TotalAmountRestriction;
36
import com.fasterxml.jackson.annotation.JsonInclude;
37
import com.fasterxml.jackson.annotation.JsonProperty;
38
import com.fasterxml.jackson.annotation.JsonCreator;
39
import com.fasterxml.jackson.annotation.JsonTypeName;
40
import com.fasterxml.jackson.annotation.JsonValue;
41
import io.swagger.annotations.ApiModel;
42
import io.swagger.annotations.ApiModelProperty;
43
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
44
import com.fasterxml.jackson.core.JsonProcessingException;
45

46

47
/**
48
 * TransactionRuleRestrictions
49
 */
50
@JsonPropertyOrder({
51
  TransactionRuleRestrictions.JSON_PROPERTY_ACTIVE_NETWORK_TOKENS,
52
  TransactionRuleRestrictions.JSON_PROPERTY_BRAND_VARIANTS,
53
  TransactionRuleRestrictions.JSON_PROPERTY_COUNTERPARTY_BANK,
54
  TransactionRuleRestrictions.JSON_PROPERTY_COUNTRIES,
55
  TransactionRuleRestrictions.JSON_PROPERTY_DAY_OF_WEEK,
56
  TransactionRuleRestrictions.JSON_PROPERTY_DIFFERENT_CURRENCIES,
57
  TransactionRuleRestrictions.JSON_PROPERTY_ENTRY_MODES,
58
  TransactionRuleRestrictions.JSON_PROPERTY_INTERNATIONAL_TRANSACTION,
59
  TransactionRuleRestrictions.JSON_PROPERTY_MATCHING_TRANSACTIONS,
60
  TransactionRuleRestrictions.JSON_PROPERTY_MCCS,
61
  TransactionRuleRestrictions.JSON_PROPERTY_MERCHANT_NAMES,
62
  TransactionRuleRestrictions.JSON_PROPERTY_MERCHANTS,
63
  TransactionRuleRestrictions.JSON_PROPERTY_PROCESSING_TYPES,
64
  TransactionRuleRestrictions.JSON_PROPERTY_SAME_AMOUNT_RESTRICTION,
65
  TransactionRuleRestrictions.JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION,
66
  TransactionRuleRestrictions.JSON_PROPERTY_TIME_OF_DAY,
67
  TransactionRuleRestrictions.JSON_PROPERTY_TOTAL_AMOUNT
68
})
69

70
public class TransactionRuleRestrictions {
71
  public static final String JSON_PROPERTY_ACTIVE_NETWORK_TOKENS = "activeNetworkTokens";
72
  private ActiveNetworkTokensRestriction activeNetworkTokens;
73

74
  public static final String JSON_PROPERTY_BRAND_VARIANTS = "brandVariants";
75
  private BrandVariantsRestriction brandVariants;
76

77
  public static final String JSON_PROPERTY_COUNTERPARTY_BANK = "counterpartyBank";
78
  private CounterpartyBankRestriction counterpartyBank;
79

80
  public static final String JSON_PROPERTY_COUNTRIES = "countries";
81
  private CountriesRestriction countries;
82

83
  public static final String JSON_PROPERTY_DAY_OF_WEEK = "dayOfWeek";
84
  private DayOfWeekRestriction dayOfWeek;
85

86
  public static final String JSON_PROPERTY_DIFFERENT_CURRENCIES = "differentCurrencies";
87
  private DifferentCurrenciesRestriction differentCurrencies;
88

89
  public static final String JSON_PROPERTY_ENTRY_MODES = "entryModes";
90
  private EntryModesRestriction entryModes;
91

92
  public static final String JSON_PROPERTY_INTERNATIONAL_TRANSACTION = "internationalTransaction";
93
  private InternationalTransactionRestriction internationalTransaction;
94

95
  public static final String JSON_PROPERTY_MATCHING_TRANSACTIONS = "matchingTransactions";
96
  private MatchingTransactionsRestriction matchingTransactions;
97

98
  public static final String JSON_PROPERTY_MCCS = "mccs";
99
  private MccsRestriction mccs;
100

101
  public static final String JSON_PROPERTY_MERCHANT_NAMES = "merchantNames";
102
  private MerchantNamesRestriction merchantNames;
103

104
  public static final String JSON_PROPERTY_MERCHANTS = "merchants";
105
  private MerchantsRestriction merchants;
106

107
  public static final String JSON_PROPERTY_PROCESSING_TYPES = "processingTypes";
108
  private ProcessingTypesRestriction processingTypes;
109

110
  public static final String JSON_PROPERTY_SAME_AMOUNT_RESTRICTION = "sameAmountRestriction";
111
  private SameAmountRestriction sameAmountRestriction;
112

113
  public static final String JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION = "sameCounterpartyRestriction";
114
  private SameCounterpartyRestriction sameCounterpartyRestriction;
115

116
  public static final String JSON_PROPERTY_TIME_OF_DAY = "timeOfDay";
117
  private TimeOfDayRestriction timeOfDay;
118

119
  public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount";
120
  private TotalAmountRestriction totalAmount;
121

122
  public TransactionRuleRestrictions() { 
1✔
123
  }
1✔
124

125
  public TransactionRuleRestrictions activeNetworkTokens(ActiveNetworkTokensRestriction activeNetworkTokens) {
126
    this.activeNetworkTokens = activeNetworkTokens;
×
127
    return this;
×
128
  }
129

130
   /**
131
   * Get activeNetworkTokens
132
   * @return activeNetworkTokens
133
  **/
134
  @ApiModelProperty(value = "")
135
  @JsonProperty(JSON_PROPERTY_ACTIVE_NETWORK_TOKENS)
136
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
137

138
  public ActiveNetworkTokensRestriction getActiveNetworkTokens() {
139
    return activeNetworkTokens;
1✔
140
  }
141

142

143
  @JsonProperty(JSON_PROPERTY_ACTIVE_NETWORK_TOKENS)
144
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
145
  public void setActiveNetworkTokens(ActiveNetworkTokensRestriction activeNetworkTokens) {
146
    this.activeNetworkTokens = activeNetworkTokens;
×
147
  }
×
148

149

150
  public TransactionRuleRestrictions brandVariants(BrandVariantsRestriction brandVariants) {
151
    this.brandVariants = brandVariants;
×
152
    return this;
×
153
  }
154

155
   /**
156
   * Get brandVariants
157
   * @return brandVariants
158
  **/
159
  @ApiModelProperty(value = "")
160
  @JsonProperty(JSON_PROPERTY_BRAND_VARIANTS)
161
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
162

163
  public BrandVariantsRestriction getBrandVariants() {
164
    return brandVariants;
1✔
165
  }
166

167

168
  @JsonProperty(JSON_PROPERTY_BRAND_VARIANTS)
169
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
170
  public void setBrandVariants(BrandVariantsRestriction brandVariants) {
171
    this.brandVariants = brandVariants;
×
172
  }
×
173

174

175
  public TransactionRuleRestrictions counterpartyBank(CounterpartyBankRestriction counterpartyBank) {
176
    this.counterpartyBank = counterpartyBank;
×
177
    return this;
×
178
  }
179

180
   /**
181
   * Get counterpartyBank
182
   * @return counterpartyBank
183
  **/
184
  @ApiModelProperty(value = "")
185
  @JsonProperty(JSON_PROPERTY_COUNTERPARTY_BANK)
186
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
187

188
  public CounterpartyBankRestriction getCounterpartyBank() {
189
    return counterpartyBank;
1✔
190
  }
191

192

193
  @JsonProperty(JSON_PROPERTY_COUNTERPARTY_BANK)
194
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
195
  public void setCounterpartyBank(CounterpartyBankRestriction counterpartyBank) {
196
    this.counterpartyBank = counterpartyBank;
×
197
  }
×
198

199

200
  public TransactionRuleRestrictions countries(CountriesRestriction countries) {
201
    this.countries = countries;
×
202
    return this;
×
203
  }
204

205
   /**
206
   * Get countries
207
   * @return countries
208
  **/
209
  @ApiModelProperty(value = "")
210
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
211
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
212

213
  public CountriesRestriction getCountries() {
214
    return countries;
1✔
215
  }
216

217

218
  @JsonProperty(JSON_PROPERTY_COUNTRIES)
219
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
220
  public void setCountries(CountriesRestriction countries) {
221
    this.countries = countries;
×
222
  }
×
223

224

225
  public TransactionRuleRestrictions dayOfWeek(DayOfWeekRestriction dayOfWeek) {
226
    this.dayOfWeek = dayOfWeek;
×
227
    return this;
×
228
  }
229

230
   /**
231
   * Get dayOfWeek
232
   * @return dayOfWeek
233
  **/
234
  @ApiModelProperty(value = "")
235
  @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK)
236
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
237

238
  public DayOfWeekRestriction getDayOfWeek() {
239
    return dayOfWeek;
1✔
240
  }
241

242

243
  @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK)
244
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
245
  public void setDayOfWeek(DayOfWeekRestriction dayOfWeek) {
246
    this.dayOfWeek = dayOfWeek;
×
247
  }
×
248

249

250
  public TransactionRuleRestrictions differentCurrencies(DifferentCurrenciesRestriction differentCurrencies) {
251
    this.differentCurrencies = differentCurrencies;
×
252
    return this;
×
253
  }
254

255
   /**
256
   * Get differentCurrencies
257
   * @return differentCurrencies
258
  **/
259
  @ApiModelProperty(value = "")
260
  @JsonProperty(JSON_PROPERTY_DIFFERENT_CURRENCIES)
261
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
262

263
  public DifferentCurrenciesRestriction getDifferentCurrencies() {
264
    return differentCurrencies;
1✔
265
  }
266

267

268
  @JsonProperty(JSON_PROPERTY_DIFFERENT_CURRENCIES)
269
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
270
  public void setDifferentCurrencies(DifferentCurrenciesRestriction differentCurrencies) {
271
    this.differentCurrencies = differentCurrencies;
×
272
  }
×
273

274

275
  public TransactionRuleRestrictions entryModes(EntryModesRestriction entryModes) {
276
    this.entryModes = entryModes;
×
277
    return this;
×
278
  }
279

280
   /**
281
   * Get entryModes
282
   * @return entryModes
283
  **/
284
  @ApiModelProperty(value = "")
285
  @JsonProperty(JSON_PROPERTY_ENTRY_MODES)
286
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
287

288
  public EntryModesRestriction getEntryModes() {
289
    return entryModes;
1✔
290
  }
291

292

293
  @JsonProperty(JSON_PROPERTY_ENTRY_MODES)
294
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
295
  public void setEntryModes(EntryModesRestriction entryModes) {
296
    this.entryModes = entryModes;
×
297
  }
×
298

299

300
  public TransactionRuleRestrictions internationalTransaction(InternationalTransactionRestriction internationalTransaction) {
301
    this.internationalTransaction = internationalTransaction;
×
302
    return this;
×
303
  }
304

305
   /**
306
   * Get internationalTransaction
307
   * @return internationalTransaction
308
  **/
309
  @ApiModelProperty(value = "")
310
  @JsonProperty(JSON_PROPERTY_INTERNATIONAL_TRANSACTION)
311
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
312

313
  public InternationalTransactionRestriction getInternationalTransaction() {
314
    return internationalTransaction;
1✔
315
  }
316

317

318
  @JsonProperty(JSON_PROPERTY_INTERNATIONAL_TRANSACTION)
319
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
320
  public void setInternationalTransaction(InternationalTransactionRestriction internationalTransaction) {
321
    this.internationalTransaction = internationalTransaction;
×
322
  }
×
323

324

325
  public TransactionRuleRestrictions matchingTransactions(MatchingTransactionsRestriction matchingTransactions) {
326
    this.matchingTransactions = matchingTransactions;
×
327
    return this;
×
328
  }
329

330
   /**
331
   * Get matchingTransactions
332
   * @return matchingTransactions
333
  **/
334
  @ApiModelProperty(value = "")
335
  @JsonProperty(JSON_PROPERTY_MATCHING_TRANSACTIONS)
336
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
337

338
  public MatchingTransactionsRestriction getMatchingTransactions() {
339
    return matchingTransactions;
1✔
340
  }
341

342

343
  @JsonProperty(JSON_PROPERTY_MATCHING_TRANSACTIONS)
344
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
345
  public void setMatchingTransactions(MatchingTransactionsRestriction matchingTransactions) {
346
    this.matchingTransactions = matchingTransactions;
×
347
  }
×
348

349

350
  public TransactionRuleRestrictions mccs(MccsRestriction mccs) {
351
    this.mccs = mccs;
×
352
    return this;
×
353
  }
354

355
   /**
356
   * Get mccs
357
   * @return mccs
358
  **/
359
  @ApiModelProperty(value = "")
360
  @JsonProperty(JSON_PROPERTY_MCCS)
361
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
362

363
  public MccsRestriction getMccs() {
364
    return mccs;
1✔
365
  }
366

367

368
  @JsonProperty(JSON_PROPERTY_MCCS)
369
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
370
  public void setMccs(MccsRestriction mccs) {
371
    this.mccs = mccs;
×
372
  }
×
373

374

375
  public TransactionRuleRestrictions merchantNames(MerchantNamesRestriction merchantNames) {
376
    this.merchantNames = merchantNames;
×
377
    return this;
×
378
  }
379

380
   /**
381
   * Get merchantNames
382
   * @return merchantNames
383
  **/
384
  @ApiModelProperty(value = "")
385
  @JsonProperty(JSON_PROPERTY_MERCHANT_NAMES)
386
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
387

388
  public MerchantNamesRestriction getMerchantNames() {
389
    return merchantNames;
1✔
390
  }
391

392

393
  @JsonProperty(JSON_PROPERTY_MERCHANT_NAMES)
394
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
395
  public void setMerchantNames(MerchantNamesRestriction merchantNames) {
396
    this.merchantNames = merchantNames;
×
397
  }
×
398

399

400
  public TransactionRuleRestrictions merchants(MerchantsRestriction merchants) {
401
    this.merchants = merchants;
×
402
    return this;
×
403
  }
404

405
   /**
406
   * Get merchants
407
   * @return merchants
408
  **/
409
  @ApiModelProperty(value = "")
410
  @JsonProperty(JSON_PROPERTY_MERCHANTS)
411
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
412

413
  public MerchantsRestriction getMerchants() {
414
    return merchants;
1✔
415
  }
416

417

418
  @JsonProperty(JSON_PROPERTY_MERCHANTS)
419
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
420
  public void setMerchants(MerchantsRestriction merchants) {
421
    this.merchants = merchants;
×
422
  }
×
423

424

425
  public TransactionRuleRestrictions processingTypes(ProcessingTypesRestriction processingTypes) {
426
    this.processingTypes = processingTypes;
×
427
    return this;
×
428
  }
429

430
   /**
431
   * Get processingTypes
432
   * @return processingTypes
433
  **/
434
  @ApiModelProperty(value = "")
435
  @JsonProperty(JSON_PROPERTY_PROCESSING_TYPES)
436
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
437

438
  public ProcessingTypesRestriction getProcessingTypes() {
439
    return processingTypes;
1✔
440
  }
441

442

443
  @JsonProperty(JSON_PROPERTY_PROCESSING_TYPES)
444
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
445
  public void setProcessingTypes(ProcessingTypesRestriction processingTypes) {
446
    this.processingTypes = processingTypes;
1✔
447
  }
1✔
448

449

450
  public TransactionRuleRestrictions sameAmountRestriction(SameAmountRestriction sameAmountRestriction) {
NEW
451
    this.sameAmountRestriction = sameAmountRestriction;
×
NEW
452
    return this;
×
453
  }
454

455
   /**
456
   * Get sameAmountRestriction
457
   * @return sameAmountRestriction
458
  **/
459
  @ApiModelProperty(value = "")
460
  @JsonProperty(JSON_PROPERTY_SAME_AMOUNT_RESTRICTION)
461
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
462

463
  public SameAmountRestriction getSameAmountRestriction() {
464
    return sameAmountRestriction;
1✔
465
  }
466

467

468
  @JsonProperty(JSON_PROPERTY_SAME_AMOUNT_RESTRICTION)
469
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
470
  public void setSameAmountRestriction(SameAmountRestriction sameAmountRestriction) {
NEW
471
    this.sameAmountRestriction = sameAmountRestriction;
×
NEW
472
  }
×
473

474

475
  public TransactionRuleRestrictions sameCounterpartyRestriction(SameCounterpartyRestriction sameCounterpartyRestriction) {
NEW
476
    this.sameCounterpartyRestriction = sameCounterpartyRestriction;
×
NEW
477
    return this;
×
478
  }
479

480
   /**
481
   * Get sameCounterpartyRestriction
482
   * @return sameCounterpartyRestriction
483
  **/
484
  @ApiModelProperty(value = "")
485
  @JsonProperty(JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION)
486
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
487

488
  public SameCounterpartyRestriction getSameCounterpartyRestriction() {
489
    return sameCounterpartyRestriction;
1✔
490
  }
491

492

493
  @JsonProperty(JSON_PROPERTY_SAME_COUNTERPARTY_RESTRICTION)
494
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
495
  public void setSameCounterpartyRestriction(SameCounterpartyRestriction sameCounterpartyRestriction) {
NEW
496
    this.sameCounterpartyRestriction = sameCounterpartyRestriction;
×
NEW
497
  }
×
498

499

500
  public TransactionRuleRestrictions timeOfDay(TimeOfDayRestriction timeOfDay) {
501
    this.timeOfDay = timeOfDay;
×
502
    return this;
×
503
  }
504

505
   /**
506
   * Get timeOfDay
507
   * @return timeOfDay
508
  **/
509
  @ApiModelProperty(value = "")
510
  @JsonProperty(JSON_PROPERTY_TIME_OF_DAY)
511
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
512

513
  public TimeOfDayRestriction getTimeOfDay() {
514
    return timeOfDay;
1✔
515
  }
516

517

518
  @JsonProperty(JSON_PROPERTY_TIME_OF_DAY)
519
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
520
  public void setTimeOfDay(TimeOfDayRestriction timeOfDay) {
521
    this.timeOfDay = timeOfDay;
×
522
  }
×
523

524

525
  public TransactionRuleRestrictions totalAmount(TotalAmountRestriction totalAmount) {
526
    this.totalAmount = totalAmount;
×
527
    return this;
×
528
  }
529

530
   /**
531
   * Get totalAmount
532
   * @return totalAmount
533
  **/
534
  @ApiModelProperty(value = "")
535
  @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT)
536
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
537

538
  public TotalAmountRestriction getTotalAmount() {
539
    return totalAmount;
1✔
540
  }
541

542

543
  @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT)
544
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
545
  public void setTotalAmount(TotalAmountRestriction totalAmount) {
546
    this.totalAmount = totalAmount;
×
547
  }
×
548

549

550
  /**
551
   * Return true if this TransactionRuleRestrictions object is equal to o.
552
   */
553
  @Override
554
  public boolean equals(Object o) {
555
    if (this == o) {
×
556
      return true;
×
557
    }
558
    if (o == null || getClass() != o.getClass()) {
×
559
      return false;
×
560
    }
561
    TransactionRuleRestrictions transactionRuleRestrictions = (TransactionRuleRestrictions) o;
×
562
    return Objects.equals(this.activeNetworkTokens, transactionRuleRestrictions.activeNetworkTokens) &&
×
563
        Objects.equals(this.brandVariants, transactionRuleRestrictions.brandVariants) &&
×
564
        Objects.equals(this.counterpartyBank, transactionRuleRestrictions.counterpartyBank) &&
×
565
        Objects.equals(this.countries, transactionRuleRestrictions.countries) &&
×
566
        Objects.equals(this.dayOfWeek, transactionRuleRestrictions.dayOfWeek) &&
×
567
        Objects.equals(this.differentCurrencies, transactionRuleRestrictions.differentCurrencies) &&
×
568
        Objects.equals(this.entryModes, transactionRuleRestrictions.entryModes) &&
×
569
        Objects.equals(this.internationalTransaction, transactionRuleRestrictions.internationalTransaction) &&
×
570
        Objects.equals(this.matchingTransactions, transactionRuleRestrictions.matchingTransactions) &&
×
571
        Objects.equals(this.mccs, transactionRuleRestrictions.mccs) &&
×
572
        Objects.equals(this.merchantNames, transactionRuleRestrictions.merchantNames) &&
×
573
        Objects.equals(this.merchants, transactionRuleRestrictions.merchants) &&
×
574
        Objects.equals(this.processingTypes, transactionRuleRestrictions.processingTypes) &&
×
NEW
575
        Objects.equals(this.sameAmountRestriction, transactionRuleRestrictions.sameAmountRestriction) &&
×
NEW
576
        Objects.equals(this.sameCounterpartyRestriction, transactionRuleRestrictions.sameCounterpartyRestriction) &&
×
577
        Objects.equals(this.timeOfDay, transactionRuleRestrictions.timeOfDay) &&
×
578
        Objects.equals(this.totalAmount, transactionRuleRestrictions.totalAmount);
×
579
  }
580

581
  @Override
582
  public int hashCode() {
NEW
583
    return Objects.hash(activeNetworkTokens, brandVariants, counterpartyBank, countries, dayOfWeek, differentCurrencies, entryModes, internationalTransaction, matchingTransactions, mccs, merchantNames, merchants, processingTypes, sameAmountRestriction, sameCounterpartyRestriction, timeOfDay, totalAmount);
×
584
  }
585

586
  @Override
587
  public String toString() {
588
    StringBuilder sb = new StringBuilder();
×
589
    sb.append("class TransactionRuleRestrictions {\n");
×
590
    sb.append("    activeNetworkTokens: ").append(toIndentedString(activeNetworkTokens)).append("\n");
×
591
    sb.append("    brandVariants: ").append(toIndentedString(brandVariants)).append("\n");
×
592
    sb.append("    counterpartyBank: ").append(toIndentedString(counterpartyBank)).append("\n");
×
593
    sb.append("    countries: ").append(toIndentedString(countries)).append("\n");
×
594
    sb.append("    dayOfWeek: ").append(toIndentedString(dayOfWeek)).append("\n");
×
595
    sb.append("    differentCurrencies: ").append(toIndentedString(differentCurrencies)).append("\n");
×
596
    sb.append("    entryModes: ").append(toIndentedString(entryModes)).append("\n");
×
597
    sb.append("    internationalTransaction: ").append(toIndentedString(internationalTransaction)).append("\n");
×
598
    sb.append("    matchingTransactions: ").append(toIndentedString(matchingTransactions)).append("\n");
×
599
    sb.append("    mccs: ").append(toIndentedString(mccs)).append("\n");
×
600
    sb.append("    merchantNames: ").append(toIndentedString(merchantNames)).append("\n");
×
601
    sb.append("    merchants: ").append(toIndentedString(merchants)).append("\n");
×
602
    sb.append("    processingTypes: ").append(toIndentedString(processingTypes)).append("\n");
×
NEW
603
    sb.append("    sameAmountRestriction: ").append(toIndentedString(sameAmountRestriction)).append("\n");
×
NEW
604
    sb.append("    sameCounterpartyRestriction: ").append(toIndentedString(sameCounterpartyRestriction)).append("\n");
×
605
    sb.append("    timeOfDay: ").append(toIndentedString(timeOfDay)).append("\n");
×
606
    sb.append("    totalAmount: ").append(toIndentedString(totalAmount)).append("\n");
×
607
    sb.append("}");
×
608
    return sb.toString();
×
609
  }
610

611
  /**
612
   * Convert the given object to string with each line indented by 4 spaces
613
   * (except the first line).
614
   */
615
  private String toIndentedString(Object o) {
616
    if (o == null) {
×
617
      return "null";
×
618
    }
619
    return o.toString().replace("\n", "\n    ");
×
620
  }
621

622
/**
623
   * Create an instance of TransactionRuleRestrictions given an JSON string
624
   *
625
   * @param jsonString JSON string
626
   * @return An instance of TransactionRuleRestrictions
627
   * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRuleRestrictions
628
   */
629
  public static TransactionRuleRestrictions fromJson(String jsonString) throws JsonProcessingException {
630
    return JSON.getMapper().readValue(jsonString, TransactionRuleRestrictions.class);
×
631
  }
632
/**
633
  * Convert an instance of TransactionRuleRestrictions to an JSON string
634
  *
635
  * @return JSON string
636
  */
637
  public String toJson() throws JsonProcessingException {
638
    return JSON.getMapper().writeValueAsString(this);
×
639
  }
640
}
641

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc