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

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

18 Sep 2023 12:11PM UTC coverage: 13.219%. First build
#2658

push

web-flow
Merge 477a9da03 into ba706cfa8

1770 of 1770 new or added lines in 34 files covered. (100.0%)

10287 of 77817 relevant lines covered (13.22%)

0.13 hits per line

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

0.0
/src/main/java/com/adyen/model/balanceplatform/Counterparty.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.BankAccount;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * Counterparty
33
 */
34
@JsonPropertyOrder({
35
  Counterparty.JSON_PROPERTY_BANK_ACCOUNT,
36
  Counterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID
37
})
38

39
public class Counterparty {
40
  public static final String JSON_PROPERTY_BANK_ACCOUNT = "bankAccount";
41
  private BankAccount bankAccount;
42

43
  public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId";
44
  private String transferInstrumentId;
45

46
  public Counterparty() { 
×
47
  }
×
48

49
  public Counterparty bankAccount(BankAccount bankAccount) {
50
    this.bankAccount = bankAccount;
×
51
    return this;
×
52
  }
53

54
   /**
55
   * Get bankAccount
56
   * @return bankAccount
57
  **/
58
  @ApiModelProperty(value = "")
59
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT)
60
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
61

62
  public BankAccount getBankAccount() {
63
    return bankAccount;
×
64
  }
65

66

67
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT)
68
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69
  public void setBankAccount(BankAccount bankAccount) {
70
    this.bankAccount = bankAccount;
×
71
  }
×
72

73

74
  public Counterparty transferInstrumentId(String transferInstrumentId) {
75
    this.transferInstrumentId = transferInstrumentId;
×
76
    return this;
×
77
  }
78

79
   /**
80
   * Unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
81
   * @return transferInstrumentId
82
  **/
83
  @ApiModelProperty(value = "Unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).")
84
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
85
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
86

87
  public String getTransferInstrumentId() {
88
    return transferInstrumentId;
×
89
  }
90

91

92
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
93
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
94
  public void setTransferInstrumentId(String transferInstrumentId) {
95
    this.transferInstrumentId = transferInstrumentId;
×
96
  }
×
97

98

99
  /**
100
   * Return true if this Counterparty object is equal to o.
101
   */
102
  @Override
103
  public boolean equals(Object o) {
104
    if (this == o) {
×
105
      return true;
×
106
    }
107
    if (o == null || getClass() != o.getClass()) {
×
108
      return false;
×
109
    }
110
    Counterparty counterparty = (Counterparty) o;
×
111
    return Objects.equals(this.bankAccount, counterparty.bankAccount) &&
×
112
        Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId);
×
113
  }
114

115
  @Override
116
  public int hashCode() {
117
    return Objects.hash(bankAccount, transferInstrumentId);
×
118
  }
119

120
  @Override
121
  public String toString() {
122
    StringBuilder sb = new StringBuilder();
×
123
    sb.append("class Counterparty {\n");
×
124
    sb.append("    bankAccount: ").append(toIndentedString(bankAccount)).append("\n");
×
125
    sb.append("    transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n");
×
126
    sb.append("}");
×
127
    return sb.toString();
×
128
  }
129

130
  /**
131
   * Convert the given object to string with each line indented by 4 spaces
132
   * (except the first line).
133
   */
134
  private String toIndentedString(Object o) {
135
    if (o == null) {
×
136
      return "null";
×
137
    }
138
    return o.toString().replace("\n", "\n    ");
×
139
  }
140

141
/**
142
   * Create an instance of Counterparty given an JSON string
143
   *
144
   * @param jsonString JSON string
145
   * @return An instance of Counterparty
146
   * @throws JsonProcessingException if the JSON string is invalid with respect to Counterparty
147
   */
148
  public static Counterparty fromJson(String jsonString) throws JsonProcessingException {
149
    return JSON.getMapper().readValue(jsonString, Counterparty.class);
×
150
  }
151
/**
152
  * Convert an instance of Counterparty to an JSON string
153
  *
154
  * @return JSON string
155
  */
156
  public String toJson() throws JsonProcessingException {
157
    return JSON.getMapper().writeValueAsString(this);
×
158
  }
159
}
160

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

© 2025 Coveralls, Inc