• 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/CompensateNegativeBalanceNotificationRecord.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.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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * CompensateNegativeBalanceNotificationRecord
34
 */
35
@JsonPropertyOrder({
36
  CompensateNegativeBalanceNotificationRecord.JSON_PROPERTY_ACCOUNT_CODE,
37
  CompensateNegativeBalanceNotificationRecord.JSON_PROPERTY_AMOUNT,
38
  CompensateNegativeBalanceNotificationRecord.JSON_PROPERTY_TRANSFER_DATE
39
})
40

41
public class CompensateNegativeBalanceNotificationRecord {
42
  public static final String JSON_PROPERTY_ACCOUNT_CODE = "accountCode";
43
  private String accountCode;
44

45
  public static final String JSON_PROPERTY_AMOUNT = "amount";
46
  private Amount amount;
47

48
  public static final String JSON_PROPERTY_TRANSFER_DATE = "transferDate";
49
  private OffsetDateTime transferDate;
50

51
  public CompensateNegativeBalanceNotificationRecord() { 
×
52
  }
×
53

54
  public CompensateNegativeBalanceNotificationRecord accountCode(String accountCode) {
55
    this.accountCode = accountCode;
×
56
    return this;
×
57
  }
58

59
   /**
60
   * The code of the account whose negative balance has been compensated.
61
   * @return accountCode
62
  **/
63
  @ApiModelProperty(value = "The code of the account whose negative balance has been compensated.")
64
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
65
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
66

67
  public String getAccountCode() {
68
    return accountCode;
×
69
  }
70

71

72
  @JsonProperty(JSON_PROPERTY_ACCOUNT_CODE)
73
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
74
  public void setAccountCode(String accountCode) {
75
    this.accountCode = accountCode;
×
76
  }
×
77

78

79
  public CompensateNegativeBalanceNotificationRecord amount(Amount amount) {
80
    this.amount = amount;
×
81
    return this;
×
82
  }
83

84
   /**
85
   * Get amount
86
   * @return amount
87
  **/
88
  @ApiModelProperty(value = "")
89
  @JsonProperty(JSON_PROPERTY_AMOUNT)
90
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91

92
  public Amount getAmount() {
93
    return amount;
×
94
  }
95

96

97
  @JsonProperty(JSON_PROPERTY_AMOUNT)
98
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
99
  public void setAmount(Amount amount) {
100
    this.amount = amount;
×
101
  }
×
102

103

104
  public CompensateNegativeBalanceNotificationRecord transferDate(OffsetDateTime transferDate) {
105
    this.transferDate = transferDate;
×
106
    return this;
×
107
  }
108

109
   /**
110
   * The date on which the compensation took place.
111
   * @return transferDate
112
  **/
113
  @ApiModelProperty(value = "The date on which the compensation took place.")
114
  @JsonProperty(JSON_PROPERTY_TRANSFER_DATE)
115
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116

117
  public OffsetDateTime getTransferDate() {
118
    return transferDate;
×
119
  }
120

121

122
  @JsonProperty(JSON_PROPERTY_TRANSFER_DATE)
123
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
124
  public void setTransferDate(OffsetDateTime transferDate) {
125
    this.transferDate = transferDate;
×
126
  }
×
127

128

129
  /**
130
   * Return true if this CompensateNegativeBalanceNotificationRecord object is equal to o.
131
   */
132
  @Override
133
  public boolean equals(Object o) {
134
    if (this == o) {
×
135
      return true;
×
136
    }
137
    if (o == null || getClass() != o.getClass()) {
×
138
      return false;
×
139
    }
140
    CompensateNegativeBalanceNotificationRecord compensateNegativeBalanceNotificationRecord = (CompensateNegativeBalanceNotificationRecord) o;
×
141
    return Objects.equals(this.accountCode, compensateNegativeBalanceNotificationRecord.accountCode) &&
×
142
        Objects.equals(this.amount, compensateNegativeBalanceNotificationRecord.amount) &&
×
143
        Objects.equals(this.transferDate, compensateNegativeBalanceNotificationRecord.transferDate);
×
144
  }
145

146
  @Override
147
  public int hashCode() {
148
    return Objects.hash(accountCode, amount, transferDate);
×
149
  }
150

151
  @Override
152
  public String toString() {
153
    StringBuilder sb = new StringBuilder();
×
154
    sb.append("class CompensateNegativeBalanceNotificationRecord {\n");
×
155
    sb.append("    accountCode: ").append(toIndentedString(accountCode)).append("\n");
×
156
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
157
    sb.append("    transferDate: ").append(toIndentedString(transferDate)).append("\n");
×
158
    sb.append("}");
×
159
    return sb.toString();
×
160
  }
161

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

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

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