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

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

23 Oct 2023 11:17AM UTC coverage: 12.828%. First build
#2732

push

web-flow
Merge c1e36748c into b98d01a7e

2569 of 2569 new or added lines in 108 files covered. (100.0%)

12356 of 96323 relevant lines covered (12.83%)

0.13 hits per line

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

21.05
/src/main/java/com/adyen/model/transfers/Counterparty.java
1
/*
2
 * Transfers API
3
 *
4
 * The version of the OpenAPI document: 4
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.transfers;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

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

39
public class Counterparty {
40
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId";
41
  private String accountHolderId;
42

43
  public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId";
44
  private String balanceAccountId;
45

46
  public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId";
47
  private String transferInstrumentId;
48

49
  public Counterparty() { 
1✔
50
  }
1✔
51

52
  public Counterparty accountHolderId(String accountHolderId) {
53
    this.accountHolderId = accountHolderId;
×
54
    return this;
×
55
  }
56

57
   /**
58
   * The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided.
59
   * @return accountHolderId
60
  **/
61
  @ApiModelProperty(value = "The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided.")
62
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID)
63
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
64

65
  public String getAccountHolderId() {
66
    return accountHolderId;
×
67
  }
68

69

70
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID)
71
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
72
  public void setAccountHolderId(String accountHolderId) {
73
    this.accountHolderId = accountHolderId;
1✔
74
  }
1✔
75

76

77
  public Counterparty balanceAccountId(String balanceAccountId) {
78
    this.balanceAccountId = balanceAccountId;
×
79
    return this;
×
80
  }
81

82
   /**
83
   * The identifier of the balance account that belongs to the receiving account holder.
84
   * @return balanceAccountId
85
  **/
86
  @ApiModelProperty(value = "The identifier of the balance account that belongs to the receiving account holder.")
87
  @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID)
88
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
89

90
  public String getBalanceAccountId() {
91
    return balanceAccountId;
×
92
  }
93

94

95
  @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID)
96
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
97
  public void setBalanceAccountId(String balanceAccountId) {
98
    this.balanceAccountId = balanceAccountId;
1✔
99
  }
1✔
100

101

102
  public Counterparty transferInstrumentId(String transferInstrumentId) {
103
    this.transferInstrumentId = transferInstrumentId;
×
104
    return this;
×
105
  }
106

107
   /**
108
   * The identifier of the transfer instrument that belongs to the legal entity of the account holder.
109
   * @return transferInstrumentId
110
  **/
111
  @ApiModelProperty(value = "The identifier of the transfer instrument that belongs to the legal entity of the account holder.")
112
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
113
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114

115
  public String getTransferInstrumentId() {
116
    return transferInstrumentId;
×
117
  }
118

119

120
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122
  public void setTransferInstrumentId(String transferInstrumentId) {
123
    this.transferInstrumentId = transferInstrumentId;
1✔
124
  }
1✔
125

126

127
  /**
128
   * Return true if this Counterparty object is equal to o.
129
   */
130
  @Override
131
  public boolean equals(Object o) {
132
    if (this == o) {
×
133
      return true;
×
134
    }
135
    if (o == null || getClass() != o.getClass()) {
×
136
      return false;
×
137
    }
138
    Counterparty counterparty = (Counterparty) o;
×
139
    return Objects.equals(this.accountHolderId, counterparty.accountHolderId) &&
×
140
        Objects.equals(this.balanceAccountId, counterparty.balanceAccountId) &&
×
141
        Objects.equals(this.transferInstrumentId, counterparty.transferInstrumentId);
×
142
  }
143

144
  @Override
145
  public int hashCode() {
146
    return Objects.hash(accountHolderId, balanceAccountId, transferInstrumentId);
×
147
  }
148

149
  @Override
150
  public String toString() {
151
    StringBuilder sb = new StringBuilder();
×
152
    sb.append("class Counterparty {\n");
×
153
    sb.append("    accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n");
×
154
    sb.append("    balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n");
×
155
    sb.append("    transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n");
×
156
    sb.append("}");
×
157
    return sb.toString();
×
158
  }
159

160
  /**
161
   * Convert the given object to string with each line indented by 4 spaces
162
   * (except the first line).
163
   */
164
  private String toIndentedString(Object o) {
165
    if (o == null) {
×
166
      return "null";
×
167
    }
168
    return o.toString().replace("\n", "\n    ");
×
169
  }
170

171
/**
172
   * Create an instance of Counterparty given an JSON string
173
   *
174
   * @param jsonString JSON string
175
   * @return An instance of Counterparty
176
   * @throws JsonProcessingException if the JSON string is invalid with respect to Counterparty
177
   */
178
  public static Counterparty fromJson(String jsonString) throws JsonProcessingException {
179
    return JSON.getMapper().readValue(jsonString, Counterparty.class);
×
180
  }
181
/**
182
  * Convert an instance of Counterparty to an JSON string
183
  *
184
  * @return JSON string
185
  */
186
  public String toJson() throws JsonProcessingException {
187
    return JSON.getMapper().writeValueAsString(this);
×
188
  }
189
}
190

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