• 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/CompensateNegativeBalanceNotificationContent.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.CompensateNegativeBalanceNotificationRecord;
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.util.ArrayList;
28
import java.util.List;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * CompensateNegativeBalanceNotificationContent
35
 */
36
@JsonPropertyOrder({
37
  CompensateNegativeBalanceNotificationContent.JSON_PROPERTY_RECORDS
38
})
39

40
public class CompensateNegativeBalanceNotificationContent {
41
  public static final String JSON_PROPERTY_RECORDS = "records";
42
  private List<CompensateNegativeBalanceNotificationRecord> records = null;
×
43

44
  public CompensateNegativeBalanceNotificationContent() { 
×
45
  }
×
46

47
  public CompensateNegativeBalanceNotificationContent records(List<CompensateNegativeBalanceNotificationRecord> records) {
48
    this.records = records;
×
49
    return this;
×
50
  }
51

52
  public CompensateNegativeBalanceNotificationContent addRecordsItem(CompensateNegativeBalanceNotificationRecord recordsItem) {
53
    if (this.records == null) {
×
54
      this.records = new ArrayList<>();
×
55
    }
56
    this.records.add(recordsItem);
×
57
    return this;
×
58
  }
59

60
   /**
61
   * A list of the negative balances compensated.
62
   * @return records
63
  **/
64
  @ApiModelProperty(value = "A list of the negative balances compensated.")
65
  @JsonProperty(JSON_PROPERTY_RECORDS)
66
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
67

68
  public List<CompensateNegativeBalanceNotificationRecord> getRecords() {
69
    return records;
×
70
  }
71

72

73
  @JsonProperty(JSON_PROPERTY_RECORDS)
74
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
75
  public void setRecords(List<CompensateNegativeBalanceNotificationRecord> records) {
76
    this.records = records;
×
77
  }
×
78

79

80
  /**
81
   * Return true if this CompensateNegativeBalanceNotificationContent object is equal to o.
82
   */
83
  @Override
84
  public boolean equals(Object o) {
85
    if (this == o) {
×
86
      return true;
×
87
    }
88
    if (o == null || getClass() != o.getClass()) {
×
89
      return false;
×
90
    }
91
    CompensateNegativeBalanceNotificationContent compensateNegativeBalanceNotificationContent = (CompensateNegativeBalanceNotificationContent) o;
×
92
    return Objects.equals(this.records, compensateNegativeBalanceNotificationContent.records);
×
93
  }
94

95
  @Override
96
  public int hashCode() {
97
    return Objects.hash(records);
×
98
  }
99

100
  @Override
101
  public String toString() {
102
    StringBuilder sb = new StringBuilder();
×
103
    sb.append("class CompensateNegativeBalanceNotificationContent {\n");
×
104
    sb.append("    records: ").append(toIndentedString(records)).append("\n");
×
105
    sb.append("}");
×
106
    return sb.toString();
×
107
  }
108

109
  /**
110
   * Convert the given object to string with each line indented by 4 spaces
111
   * (except the first line).
112
   */
113
  private String toIndentedString(Object o) {
114
    if (o == null) {
×
115
      return "null";
×
116
    }
117
    return o.toString().replace("\n", "\n    ");
×
118
  }
119

120
/**
121
   * Create an instance of CompensateNegativeBalanceNotificationContent given an JSON string
122
   *
123
   * @param jsonString JSON string
124
   * @return An instance of CompensateNegativeBalanceNotificationContent
125
   * @throws JsonProcessingException if the JSON string is invalid with respect to CompensateNegativeBalanceNotificationContent
126
   */
127
  public static CompensateNegativeBalanceNotificationContent fromJson(String jsonString) throws JsonProcessingException {
128
    return JSON.getMapper().readValue(jsonString, CompensateNegativeBalanceNotificationContent.class);
×
129
  }
130
/**
131
  * Convert an instance of CompensateNegativeBalanceNotificationContent to an JSON string
132
  *
133
  * @return JSON string
134
  */
135
  public String toJson() throws JsonProcessingException {
136
    return JSON.getMapper().writeValueAsString(this);
×
137
  }
138
}
139

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