• 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/TransferFundsNotificationContent.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.Amount;
20
import com.adyen.model.marketpaywebhooks.ErrorFieldType;
21
import com.adyen.model.marketpaywebhooks.OperationStatus;
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 java.util.ArrayList;
30
import java.util.List;
31
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
32
import com.fasterxml.jackson.core.JsonProcessingException;
33

34

35
/**
36
 * TransferFundsNotificationContent
37
 */
38
@JsonPropertyOrder({
39
  TransferFundsNotificationContent.JSON_PROPERTY_AMOUNT,
40
  TransferFundsNotificationContent.JSON_PROPERTY_DESTINATION_ACCOUNT_CODE,
41
  TransferFundsNotificationContent.JSON_PROPERTY_INVALID_FIELDS,
42
  TransferFundsNotificationContent.JSON_PROPERTY_MERCHANT_REFERENCE,
43
  TransferFundsNotificationContent.JSON_PROPERTY_SOURCE_ACCOUNT_CODE,
44
  TransferFundsNotificationContent.JSON_PROPERTY_STATUS,
45
  TransferFundsNotificationContent.JSON_PROPERTY_TRANSFER_CODE
46
})
47

48
public class TransferFundsNotificationContent {
49
  public static final String JSON_PROPERTY_AMOUNT = "amount";
50
  private Amount amount;
51

52
  public static final String JSON_PROPERTY_DESTINATION_ACCOUNT_CODE = "destinationAccountCode";
53
  private String destinationAccountCode;
54

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

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

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

64
  public static final String JSON_PROPERTY_STATUS = "status";
65
  private OperationStatus status;
66

67
  public static final String JSON_PROPERTY_TRANSFER_CODE = "transferCode";
68
  private String transferCode;
69

70
  public TransferFundsNotificationContent() { 
×
71
  }
×
72

73
  public TransferFundsNotificationContent amount(Amount amount) {
74
    this.amount = amount;
×
75
    return this;
×
76
  }
77

78
   /**
79
   * Get amount
80
   * @return amount
81
  **/
82
  @ApiModelProperty(value = "")
83
  @JsonProperty(JSON_PROPERTY_AMOUNT)
84
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
85

86
  public Amount getAmount() {
87
    return amount;
×
88
  }
89

90

91
  @JsonProperty(JSON_PROPERTY_AMOUNT)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93
  public void setAmount(Amount amount) {
94
    this.amount = amount;
×
95
  }
×
96

97

98
  public TransferFundsNotificationContent destinationAccountCode(String destinationAccountCode) {
99
    this.destinationAccountCode = destinationAccountCode;
×
100
    return this;
×
101
  }
102

103
   /**
104
   * The code of the Account to which funds were credited.
105
   * @return destinationAccountCode
106
  **/
107
  @ApiModelProperty(value = "The code of the Account to which funds were credited.")
108
  @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT_CODE)
109
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110

111
  public String getDestinationAccountCode() {
112
    return destinationAccountCode;
×
113
  }
114

115

116
  @JsonProperty(JSON_PROPERTY_DESTINATION_ACCOUNT_CODE)
117
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118
  public void setDestinationAccountCode(String destinationAccountCode) {
119
    this.destinationAccountCode = destinationAccountCode;
×
120
  }
×
121

122

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

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

136
   /**
137
   * Invalid fields list.
138
   * @return invalidFields
139
  **/
140
  @ApiModelProperty(value = "Invalid fields list.")
141
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
142
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
143

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

148

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

155

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

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

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

173

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

180

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

186
   /**
187
   * The code of the Account from which funds were debited.
188
   * @return sourceAccountCode
189
  **/
190
  @ApiModelProperty(value = "The code of the Account from which funds were debited.")
191
  @JsonProperty(JSON_PROPERTY_SOURCE_ACCOUNT_CODE)
192
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
193

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

198

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

205

206
  public TransferFundsNotificationContent status(OperationStatus status) {
207
    this.status = status;
×
208
    return this;
×
209
  }
210

211
   /**
212
   * Get status
213
   * @return status
214
  **/
215
  @ApiModelProperty(value = "")
216
  @JsonProperty(JSON_PROPERTY_STATUS)
217
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
218

219
  public OperationStatus getStatus() {
220
    return status;
×
221
  }
222

223

224
  @JsonProperty(JSON_PROPERTY_STATUS)
225
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
226
  public void setStatus(OperationStatus status) {
227
    this.status = status;
×
228
  }
×
229

230

231
  public TransferFundsNotificationContent transferCode(String transferCode) {
232
    this.transferCode = transferCode;
×
233
    return this;
×
234
  }
235

236
   /**
237
   * The transfer code.
238
   * @return transferCode
239
  **/
240
  @ApiModelProperty(value = "The transfer code.")
241
  @JsonProperty(JSON_PROPERTY_TRANSFER_CODE)
242
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
243

244
  public String getTransferCode() {
245
    return transferCode;
×
246
  }
247

248

249
  @JsonProperty(JSON_PROPERTY_TRANSFER_CODE)
250
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
251
  public void setTransferCode(String transferCode) {
252
    this.transferCode = transferCode;
×
253
  }
×
254

255

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

277
  @Override
278
  public int hashCode() {
279
    return Objects.hash(amount, destinationAccountCode, invalidFields, merchantReference, sourceAccountCode, status, transferCode);
×
280
  }
281

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

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

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

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