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

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

07 Aug 2024 01:54PM UTC coverage: 11.85%. First build
#3406

push

web-flow
Merge e17893d63 into 4d76e33cf

5 of 744 new or added lines in 34 files covered. (0.67%)

12525 of 105697 relevant lines covered (11.85%)

0.12 hits per line

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

7.69
/src/main/java/com/adyen/model/transfers/CounterpartyV3.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.adyen.model.transfers.BankAccountV3;
20
import com.adyen.model.transfers.Card;
21
import com.adyen.model.transfers.MerchantData;
22
import com.fasterxml.jackson.annotation.JsonInclude;
23
import com.fasterxml.jackson.annotation.JsonProperty;
24
import com.fasterxml.jackson.annotation.JsonCreator;
25
import com.fasterxml.jackson.annotation.JsonTypeName;
26
import com.fasterxml.jackson.annotation.JsonValue;
27
import io.swagger.annotations.ApiModel;
28
import io.swagger.annotations.ApiModelProperty;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * CounterpartyV3
35
 */
36
@JsonPropertyOrder({
37
  CounterpartyV3.JSON_PROPERTY_BALANCE_ACCOUNT_ID,
38
  CounterpartyV3.JSON_PROPERTY_BANK_ACCOUNT,
39
  CounterpartyV3.JSON_PROPERTY_CARD,
40
  CounterpartyV3.JSON_PROPERTY_MERCHANT,
41
  CounterpartyV3.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID
42
})
43

44
public class CounterpartyV3 {
45
  public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID = "balanceAccountId";
46
  private String balanceAccountId;
47

48
  public static final String JSON_PROPERTY_BANK_ACCOUNT = "bankAccount";
49
  private BankAccountV3 bankAccount;
50

51
  public static final String JSON_PROPERTY_CARD = "card";
52
  private Card card;
53

54
  public static final String JSON_PROPERTY_MERCHANT = "merchant";
55
  private MerchantData merchant;
56

57
  public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId";
58
  private String transferInstrumentId;
59

60
  public CounterpartyV3() { 
1✔
61
  }
1✔
62

63
  public CounterpartyV3 balanceAccountId(String balanceAccountId) {
64
    this.balanceAccountId = balanceAccountId;
×
65
    return this;
×
66
  }
67

68
   /**
69
   * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
70
   * @return balanceAccountId
71
  **/
72
  @ApiModelProperty(value = "The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).")
73
  @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID)
74
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
75

76
  public String getBalanceAccountId() {
77
    return balanceAccountId;
×
78
  }
79

80

81
 /**
82
  * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
83
  *
84
  * @param balanceAccountId
85
  */ 
86
  @JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT_ID)
87
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
88
  public void setBalanceAccountId(String balanceAccountId) {
89
    this.balanceAccountId = balanceAccountId;
×
90
  }
×
91

92

93
  public CounterpartyV3 bankAccount(BankAccountV3 bankAccount) {
94
    this.bankAccount = bankAccount;
×
95
    return this;
×
96
  }
97

98
   /**
99
   * Get bankAccount
100
   * @return bankAccount
101
  **/
102
  @ApiModelProperty(value = "")
103
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT)
104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
105

106
  public BankAccountV3 getBankAccount() {
107
    return bankAccount;
×
108
  }
109

110

111
 /**
112
  * bankAccount
113
  *
114
  * @param bankAccount
115
  */ 
116
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT)
117
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118
  public void setBankAccount(BankAccountV3 bankAccount) {
119
    this.bankAccount = bankAccount;
1✔
120
  }
1✔
121

122

123
  public CounterpartyV3 card(Card card) {
NEW
124
    this.card = card;
×
NEW
125
    return this;
×
126
  }
127

128
   /**
129
   * Get card
130
   * @return card
131
  **/
132
  @ApiModelProperty(value = "")
133
  @JsonProperty(JSON_PROPERTY_CARD)
134
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135

136
  public Card getCard() {
NEW
137
    return card;
×
138
  }
139

140

141
 /**
142
  * card
143
  *
144
  * @param card
145
  */ 
146
  @JsonProperty(JSON_PROPERTY_CARD)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148
  public void setCard(Card card) {
NEW
149
    this.card = card;
×
NEW
150
  }
×
151

152

153
  public CounterpartyV3 merchant(MerchantData merchant) {
154
    this.merchant = merchant;
×
155
    return this;
×
156
  }
157

158
   /**
159
   * Get merchant
160
   * @return merchant
161
  **/
162
  @ApiModelProperty(value = "")
163
  @JsonProperty(JSON_PROPERTY_MERCHANT)
164
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
165

166
  public MerchantData getMerchant() {
167
    return merchant;
×
168
  }
169

170

171
 /**
172
  * merchant
173
  *
174
  * @param merchant
175
  */ 
176
  @JsonProperty(JSON_PROPERTY_MERCHANT)
177
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
178
  public void setMerchant(MerchantData merchant) {
179
    this.merchant = merchant;
×
180
  }
×
181

182

183
  public CounterpartyV3 transferInstrumentId(String transferInstrumentId) {
184
    this.transferInstrumentId = transferInstrumentId;
×
185
    return this;
×
186
  }
187

188
   /**
189
   * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
190
   * @return transferInstrumentId
191
  **/
192
  @ApiModelProperty(value = "The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).")
193
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
194
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
195

196
  public String getTransferInstrumentId() {
197
    return transferInstrumentId;
×
198
  }
199

200

201
 /**
202
  * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
203
  *
204
  * @param transferInstrumentId
205
  */ 
206
  @JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
207
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
208
  public void setTransferInstrumentId(String transferInstrumentId) {
209
    this.transferInstrumentId = transferInstrumentId;
×
210
  }
×
211

212

213
  /**
214
   * Return true if this CounterpartyV3 object is equal to o.
215
   */
216
  @Override
217
  public boolean equals(Object o) {
218
    if (this == o) {
×
219
      return true;
×
220
    }
221
    if (o == null || getClass() != o.getClass()) {
×
222
      return false;
×
223
    }
224
    CounterpartyV3 counterpartyV3 = (CounterpartyV3) o;
×
225
    return Objects.equals(this.balanceAccountId, counterpartyV3.balanceAccountId) &&
×
226
        Objects.equals(this.bankAccount, counterpartyV3.bankAccount) &&
×
NEW
227
        Objects.equals(this.card, counterpartyV3.card) &&
×
228
        Objects.equals(this.merchant, counterpartyV3.merchant) &&
×
229
        Objects.equals(this.transferInstrumentId, counterpartyV3.transferInstrumentId);
×
230
  }
231

232
  @Override
233
  public int hashCode() {
NEW
234
    return Objects.hash(balanceAccountId, bankAccount, card, merchant, transferInstrumentId);
×
235
  }
236

237
  @Override
238
  public String toString() {
239
    StringBuilder sb = new StringBuilder();
×
240
    sb.append("class CounterpartyV3 {\n");
×
241
    sb.append("    balanceAccountId: ").append(toIndentedString(balanceAccountId)).append("\n");
×
242
    sb.append("    bankAccount: ").append(toIndentedString(bankAccount)).append("\n");
×
NEW
243
    sb.append("    card: ").append(toIndentedString(card)).append("\n");
×
244
    sb.append("    merchant: ").append(toIndentedString(merchant)).append("\n");
×
245
    sb.append("    transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n");
×
246
    sb.append("}");
×
247
    return sb.toString();
×
248
  }
249

250
  /**
251
   * Convert the given object to string with each line indented by 4 spaces
252
   * (except the first line).
253
   */
254
  private String toIndentedString(Object o) {
255
    if (o == null) {
×
256
      return "null";
×
257
    }
258
    return o.toString().replace("\n", "\n    ");
×
259
  }
260

261
/**
262
   * Create an instance of CounterpartyV3 given an JSON string
263
   *
264
   * @param jsonString JSON string
265
   * @return An instance of CounterpartyV3
266
   * @throws JsonProcessingException if the JSON string is invalid with respect to CounterpartyV3
267
   */
268
  public static CounterpartyV3 fromJson(String jsonString) throws JsonProcessingException {
269
    return JSON.getMapper().readValue(jsonString, CounterpartyV3.class);
×
270
  }
271
/**
272
  * Convert an instance of CounterpartyV3 to an JSON string
273
  *
274
  * @return JSON string
275
  */
276
  public String toJson() throws JsonProcessingException {
277
    return JSON.getMapper().writeValueAsString(this);
×
278
  }
279
}
280

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