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

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

16 Oct 2023 09:08AM CUT coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

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/marketpaywebhooks/BeneficiarySetupNotificationContent.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
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.marketpaywebhooks;
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.marketpaywebhooks.ErrorFieldType;
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 java.time.OffsetDateTime;
28
import java.util.ArrayList;
29
import java.util.List;
30
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * BeneficiarySetupNotificationContent
36
 */
37
@JsonPropertyOrder({
38
  BeneficiarySetupNotificationContent.JSON_PROPERTY_DESTINATION_ACCOUNT_CODE,
39
  BeneficiarySetupNotificationContent.JSON_PROPERTY_DESTINATION_ACCOUNT_HOLDER_CODE,
40
  BeneficiarySetupNotificationContent.JSON_PROPERTY_INVALID_FIELDS,
41
  BeneficiarySetupNotificationContent.JSON_PROPERTY_MERCHANT_REFERENCE,
42
  BeneficiarySetupNotificationContent.JSON_PROPERTY_SOURCE_ACCOUNT_CODE,
43
  BeneficiarySetupNotificationContent.JSON_PROPERTY_SOURCE_ACCOUNT_HOLDER_CODE,
44
  BeneficiarySetupNotificationContent.JSON_PROPERTY_TRANSFER_DATE
45
})
46

47
public class BeneficiarySetupNotificationContent {
48
  public static final String JSON_PROPERTY_DESTINATION_ACCOUNT_CODE = "destinationAccountCode";
49
  private String destinationAccountCode;
50

51
  public static final String JSON_PROPERTY_DESTINATION_ACCOUNT_HOLDER_CODE = "destinationAccountHolderCode";
52
  private String destinationAccountHolderCode;
53

54
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
55
  private List<ErrorFieldType> invalidFields = null;
×
56

57
  public static final String JSON_PROPERTY_MERCHANT_REFERENCE = "merchantReference";
58
  private String merchantReference;
59

60
  public static final String JSON_PROPERTY_SOURCE_ACCOUNT_CODE = "sourceAccountCode";
61
  private String sourceAccountCode;
62

63
  public static final String JSON_PROPERTY_SOURCE_ACCOUNT_HOLDER_CODE = "sourceAccountHolderCode";
64
  private String sourceAccountHolderCode;
65

66
  public static final String JSON_PROPERTY_TRANSFER_DATE = "transferDate";
67
  private OffsetDateTime transferDate;
68

69
  public BeneficiarySetupNotificationContent() { 
×
70
  }
×
71

72
  public BeneficiarySetupNotificationContent destinationAccountCode(String destinationAccountCode) {
73
    this.destinationAccountCode = destinationAccountCode;
×
74
    return this;
×
75
  }
76

77
   /**
78
   * The code of the beneficiary account.
79
   * @return destinationAccountCode
80
  **/
81
  @ApiModelProperty(value = "The code of the beneficiary account.")
82
  @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT_CODE)
83
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
84

85
  public String getDestinationAccountCode() {
86
    return destinationAccountCode;
×
87
  }
88

89

90
  @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT_CODE)
91
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
92
  public void setDestinationAccountCode(String destinationAccountCode) {
93
    this.destinationAccountCode = destinationAccountCode;
×
94
  }
×
95

96

97
  public BeneficiarySetupNotificationContent destinationAccountHolderCode(String destinationAccountHolderCode) {
98
    this.destinationAccountHolderCode = destinationAccountHolderCode;
×
99
    return this;
×
100
  }
101

102
   /**
103
   * The code of the beneficiary Account Holder.
104
   * @return destinationAccountHolderCode
105
  **/
106
  @ApiModelProperty(value = "The code of the beneficiary Account Holder.")
107
  @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT_HOLDER_CODE)
108
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109

110
  public String getDestinationAccountHolderCode() {
111
    return destinationAccountHolderCode;
×
112
  }
113

114

115
  @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT_HOLDER_CODE)
116
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
117
  public void setDestinationAccountHolderCode(String destinationAccountHolderCode) {
118
    this.destinationAccountHolderCode = destinationAccountHolderCode;
×
119
  }
×
120

121

122
  public BeneficiarySetupNotificationContent invalidFields(List<ErrorFieldType> invalidFields) {
123
    this.invalidFields = invalidFields;
×
124
    return this;
×
125
  }
126

127
  public BeneficiarySetupNotificationContent addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
128
    if (this.invalidFields == null) {
×
129
      this.invalidFields = new ArrayList<>();
×
130
    }
131
    this.invalidFields.add(invalidFieldsItem);
×
132
    return this;
×
133
  }
134

135
   /**
136
   * A listing of the invalid fields which have caused the Setup Beneficiary request to fail. If this is empty, the Setup Beneficiary request has succeeded.
137
   * @return invalidFields
138
  **/
139
  @ApiModelProperty(value = "A listing of the invalid fields which have caused the Setup Beneficiary request to fail. If this is empty, the Setup Beneficiary request has succeeded.")
140
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
141
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
142

143
  public List<ErrorFieldType> getInvalidFields() {
144
    return invalidFields;
×
145
  }
146

147

148
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
149
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
150
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
151
    this.invalidFields = invalidFields;
×
152
  }
×
153

154

155
  public BeneficiarySetupNotificationContent merchantReference(String merchantReference) {
156
    this.merchantReference = merchantReference;
×
157
    return this;
×
158
  }
159

160
   /**
161
   * The reference provided by the merchant.
162
   * @return merchantReference
163
  **/
164
  @ApiModelProperty(value = "The reference provided by the merchant.")
165
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
166
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
167

168
  public String getMerchantReference() {
169
    return merchantReference;
×
170
  }
171

172

173
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
174
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
175
  public void setMerchantReference(String merchantReference) {
176
    this.merchantReference = merchantReference;
×
177
  }
×
178

179

180
  public BeneficiarySetupNotificationContent sourceAccountCode(String sourceAccountCode) {
181
    this.sourceAccountCode = sourceAccountCode;
×
182
    return this;
×
183
  }
184

185
   /**
186
   * The code of the benefactor account.
187
   * @return sourceAccountCode
188
  **/
189
  @ApiModelProperty(value = "The code of the benefactor account.")
190
  @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_CODE)
191
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
192

193
  public String getSourceAccountCode() {
194
    return sourceAccountCode;
×
195
  }
196

197

198
  @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_CODE)
199
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
200
  public void setSourceAccountCode(String sourceAccountCode) {
201
    this.sourceAccountCode = sourceAccountCode;
×
202
  }
×
203

204

205
  public BeneficiarySetupNotificationContent sourceAccountHolderCode(String sourceAccountHolderCode) {
206
    this.sourceAccountHolderCode = sourceAccountHolderCode;
×
207
    return this;
×
208
  }
209

210
   /**
211
   * The code of the benefactor Account Holder.
212
   * @return sourceAccountHolderCode
213
  **/
214
  @ApiModelProperty(value = "The code of the benefactor Account Holder.")
215
  @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_HOLDER_CODE)
216
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
217

218
  public String getSourceAccountHolderCode() {
219
    return sourceAccountHolderCode;
×
220
  }
221

222

223
  @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_HOLDER_CODE)
224
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
225
  public void setSourceAccountHolderCode(String sourceAccountHolderCode) {
226
    this.sourceAccountHolderCode = sourceAccountHolderCode;
×
227
  }
×
228

229

230
  public BeneficiarySetupNotificationContent transferDate(OffsetDateTime transferDate) {
231
    this.transferDate = transferDate;
×
232
    return this;
×
233
  }
234

235
   /**
236
   * The date on which the beneficiary was set up and funds transferred from benefactor to beneficiary.
237
   * @return transferDate
238
  **/
239
  @ApiModelProperty(value = "The date on which the beneficiary was set up and funds transferred from benefactor to beneficiary.")
240
  @JsonProperty(JSON_PROPERTY_TRANSFER_DATE)
241
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
242

243
  public OffsetDateTime getTransferDate() {
244
    return transferDate;
×
245
  }
246

247

248
  @JsonProperty(JSON_PROPERTY_TRANSFER_DATE)
249
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
250
  public void setTransferDate(OffsetDateTime transferDate) {
251
    this.transferDate = transferDate;
×
252
  }
×
253

254

255
  /**
256
   * Return true if this BeneficiarySetupNotificationContent object is equal to o.
257
   */
258
  @Override
259
  public boolean equals(Object o) {
260
    if (this == o) {
×
261
      return true;
×
262
    }
263
    if (o == null || getClass() != o.getClass()) {
×
264
      return false;
×
265
    }
266
    BeneficiarySetupNotificationContent beneficiarySetupNotificationContent = (BeneficiarySetupNotificationContent) o;
×
267
    return Objects.equals(this.destinationAccountCode, beneficiarySetupNotificationContent.destinationAccountCode) &&
×
268
        Objects.equals(this.destinationAccountHolderCode, beneficiarySetupNotificationContent.destinationAccountHolderCode) &&
×
269
        Objects.equals(this.invalidFields, beneficiarySetupNotificationContent.invalidFields) &&
×
270
        Objects.equals(this.merchantReference, beneficiarySetupNotificationContent.merchantReference) &&
×
271
        Objects.equals(this.sourceAccountCode, beneficiarySetupNotificationContent.sourceAccountCode) &&
×
272
        Objects.equals(this.sourceAccountHolderCode, beneficiarySetupNotificationContent.sourceAccountHolderCode) &&
×
273
        Objects.equals(this.transferDate, beneficiarySetupNotificationContent.transferDate);
×
274
  }
275

276
  @Override
277
  public int hashCode() {
278
    return Objects.hash(destinationAccountCode, destinationAccountHolderCode, invalidFields, merchantReference, sourceAccountCode, sourceAccountHolderCode, transferDate);
×
279
  }
280

281
  @Override
282
  public String toString() {
283
    StringBuilder sb = new StringBuilder();
×
284
    sb.append("class BeneficiarySetupNotificationContent {\n");
×
285
    sb.append("    destinationAccountCode: ").append(toIndentedString(destinationAccountCode)).append("\n");
×
286
    sb.append("    destinationAccountHolderCode: ").append(toIndentedString(destinationAccountHolderCode)).append("\n");
×
287
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
288
    sb.append("    merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
×
289
    sb.append("    sourceAccountCode: ").append(toIndentedString(sourceAccountCode)).append("\n");
×
290
    sb.append("    sourceAccountHolderCode: ").append(toIndentedString(sourceAccountHolderCode)).append("\n");
×
291
    sb.append("    transferDate: ").append(toIndentedString(transferDate)).append("\n");
×
292
    sb.append("}");
×
293
    return sb.toString();
×
294
  }
295

296
  /**
297
   * Convert the given object to string with each line indented by 4 spaces
298
   * (except the first line).
299
   */
300
  private String toIndentedString(Object o) {
301
    if (o == null) {
×
302
      return "null";
×
303
    }
304
    return o.toString().replace("\n", "\n    ");
×
305
  }
306

307
/**
308
   * Create an instance of BeneficiarySetupNotificationContent given an JSON string
309
   *
310
   * @param jsonString JSON string
311
   * @return An instance of BeneficiarySetupNotificationContent
312
   * @throws JsonProcessingException if the JSON string is invalid with respect to BeneficiarySetupNotificationContent
313
   */
314
  public static BeneficiarySetupNotificationContent fromJson(String jsonString) throws JsonProcessingException {
315
    return JSON.getMapper().readValue(jsonString, BeneficiarySetupNotificationContent.class);
×
316
  }
317
/**
318
  * Convert an instance of BeneficiarySetupNotificationContent to an JSON string
319
  *
320
  * @return JSON string
321
  */
322
  public String toJson() throws JsonProcessingException {
323
    return JSON.getMapper().writeValueAsString(this);
×
324
  }
325
}
326

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