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

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

25 Nov 2024 12:07PM CUT coverage: 12.344%. First build
#3831

push

web-flow
Merge f618317d7 into 36684da51

13126 of 106332 relevant lines covered (12.34%)

0.12 hits per line

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

0.0
/src/main/java/com/adyen/model/acswebhooks/Resource.java
1
/*
2
 * Authentication webhooks
3
 *
4
 * The version of the OpenAPI document: 1
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.acswebhooks;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import java.time.OffsetDateTime;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * Resource
33
 */
34
@JsonPropertyOrder({
35
  Resource.JSON_PROPERTY_BALANCE_PLATFORM,
36
  Resource.JSON_PROPERTY_CREATION_DATE,
37
  Resource.JSON_PROPERTY_ID
38
})
39

40
public class Resource {
41
  public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform";
42
  private String balancePlatform;
43

44
  public static final String JSON_PROPERTY_CREATION_DATE = "creationDate";
45
  private OffsetDateTime creationDate;
46

47
  public static final String JSON_PROPERTY_ID = "id";
48
  private String id;
49

50
  public Resource() { 
×
51
  }
×
52

53
  /**
54
   * The unique identifier of the balance platform.
55
   *
56
   * @param balancePlatform
57
   * @return the current {@code Resource} instance, allowing for method chaining
58
   */
59
  public Resource balancePlatform(String balancePlatform) {
60
    this.balancePlatform = balancePlatform;
×
61
    return this;
×
62
  }
63

64
  /**
65
   * The unique identifier of the balance platform.
66
   * @return balancePlatform
67
   */
68
  @ApiModelProperty(value = "The unique identifier of the balance platform.")
69
  @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
70
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
71
  public String getBalancePlatform() {
72
    return balancePlatform;
×
73
  }
74

75
  /**
76
   * The unique identifier of the balance platform.
77
   *
78
   * @param balancePlatform
79
   */ 
80
  @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
81
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
82
  public void setBalancePlatform(String balancePlatform) {
83
    this.balancePlatform = balancePlatform;
×
84
  }
×
85

86
  /**
87
   * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
88
   *
89
   * @param creationDate
90
   * @return the current {@code Resource} instance, allowing for method chaining
91
   */
92
  public Resource creationDate(OffsetDateTime creationDate) {
93
    this.creationDate = creationDate;
×
94
    return this;
×
95
  }
96

97
  /**
98
   * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
99
   * @return creationDate
100
   */
101
  @ApiModelProperty(value = "The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.")
102
  @JsonProperty(JSON_PROPERTY_CREATION_DATE)
103
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
104
  public OffsetDateTime getCreationDate() {
105
    return creationDate;
×
106
  }
107

108
  /**
109
   * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
110
   *
111
   * @param creationDate
112
   */ 
113
  @JsonProperty(JSON_PROPERTY_CREATION_DATE)
114
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
115
  public void setCreationDate(OffsetDateTime creationDate) {
116
    this.creationDate = creationDate;
×
117
  }
×
118

119
  /**
120
   * The ID of the resource.
121
   *
122
   * @param id
123
   * @return the current {@code Resource} instance, allowing for method chaining
124
   */
125
  public Resource id(String id) {
126
    this.id = id;
×
127
    return this;
×
128
  }
129

130
  /**
131
   * The ID of the resource.
132
   * @return id
133
   */
134
  @ApiModelProperty(value = "The ID of the resource.")
135
  @JsonProperty(JSON_PROPERTY_ID)
136
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
137
  public String getId() {
138
    return id;
×
139
  }
140

141
  /**
142
   * The ID of the resource.
143
   *
144
   * @param id
145
   */ 
146
  @JsonProperty(JSON_PROPERTY_ID)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148
  public void setId(String id) {
149
    this.id = id;
×
150
  }
×
151

152
  /**
153
   * Return true if this Resource object is equal to o.
154
   */
155
  @Override
156
  public boolean equals(Object o) {
157
    if (this == o) {
×
158
      return true;
×
159
    }
160
    if (o == null || getClass() != o.getClass()) {
×
161
      return false;
×
162
    }
163
    Resource resource = (Resource) o;
×
164
    return Objects.equals(this.balancePlatform, resource.balancePlatform) &&
×
165
        Objects.equals(this.creationDate, resource.creationDate) &&
×
166
        Objects.equals(this.id, resource.id);
×
167
  }
168

169
  @Override
170
  public int hashCode() {
171
    return Objects.hash(balancePlatform, creationDate, id);
×
172
  }
173

174
  @Override
175
  public String toString() {
176
    StringBuilder sb = new StringBuilder();
×
177
    sb.append("class Resource {\n");
×
178
    sb.append("    balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n");
×
179
    sb.append("    creationDate: ").append(toIndentedString(creationDate)).append("\n");
×
180
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
181
    sb.append("}");
×
182
    return sb.toString();
×
183
  }
184

185
  /**
186
   * Convert the given object to string with each line indented by 4 spaces
187
   * (except the first line).
188
   */
189
  private String toIndentedString(Object o) {
190
    if (o == null) {
×
191
      return "null";
×
192
    }
193
    return o.toString().replace("\n", "\n    ");
×
194
  }
195

196
/**
197
   * Create an instance of Resource given an JSON string
198
   *
199
   * @param jsonString JSON string
200
   * @return An instance of Resource
201
   * @throws JsonProcessingException if the JSON string is invalid with respect to Resource
202
   */
203
  public static Resource fromJson(String jsonString) throws JsonProcessingException {
204
    return JSON.getMapper().readValue(jsonString, Resource.class);
×
205
  }
206
/**
207
  * Convert an instance of Resource to an JSON string
208
  *
209
  * @return JSON string
210
  */
211
  public String toJson() throws JsonProcessingException {
212
    return JSON.getMapper().writeValueAsString(this);
×
213
  }
214
}
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