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

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

02 Oct 2024 09:21AM UTC coverage: 11.815%. First build
#3609

push

web-flow
Merge 53e60049d into 3aab4fab9

0 of 7 new or added lines in 6 files covered. (0.0%)

12578 of 106461 relevant lines covered (11.81%)

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/legalentitymanagement/TermsOfServiceAcceptanceInfo.java
1
/*
2
 * Legal Entity Management API
3
 *
4
 * The version of the OpenAPI document: 3
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.legalentitymanagement;
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
 * TermsOfServiceAcceptanceInfo
33
 */
34
@JsonPropertyOrder({
35
  TermsOfServiceAcceptanceInfo.JSON_PROPERTY_ACCEPTED_BY,
36
  TermsOfServiceAcceptanceInfo.JSON_PROPERTY_ACCEPTED_FOR,
37
  TermsOfServiceAcceptanceInfo.JSON_PROPERTY_CREATED_AT,
38
  TermsOfServiceAcceptanceInfo.JSON_PROPERTY_ID,
39
  TermsOfServiceAcceptanceInfo.JSON_PROPERTY_TYPE
40
})
41

42
public class TermsOfServiceAcceptanceInfo {
43
  public static final String JSON_PROPERTY_ACCEPTED_BY = "acceptedBy";
44
  private String acceptedBy;
45

46
  public static final String JSON_PROPERTY_ACCEPTED_FOR = "acceptedFor";
47
  private String acceptedFor;
48

49
  public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
50
  private OffsetDateTime createdAt;
51

52
  public static final String JSON_PROPERTY_ID = "id";
53
  private String id;
54

55
  /**
56
   * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
57
   */
58
  public enum TypeEnum {
×
59
    ADYENACCOUNT("adyenAccount"),
×
60
    
61
    ADYENCAPITAL("adyenCapital"),
×
62
    
63
    ADYENCARD("adyenCard"),
×
64
    
NEW
65
    ADYENCHARGECARD("adyenChargeCard"),
×
66
    
67
    ADYENFORPLATFORMSADVANCED("adyenForPlatformsAdvanced"),
×
68
    
69
    ADYENFORPLATFORMSMANAGE("adyenForPlatformsManage"),
×
70
    
71
    ADYENFRANCHISEE("adyenFranchisee"),
×
72
    
73
    ADYENISSUING("adyenIssuing"),
×
74
    
75
    ADYENPCCR("adyenPccr");
×
76

77
    private String value;
78

79
    TypeEnum(String value) {
×
80
      this.value = value;
×
81
    }
×
82

83
    @JsonValue
84
    public String getValue() {
85
      return value;
×
86
    }
87

88
    @Override
89
    public String toString() {
90
      return String.valueOf(value);
×
91
    }
92

93
    @JsonCreator
94
    public static TypeEnum fromValue(String value) {
95
      for (TypeEnum b : TypeEnum.values()) {
×
96
        if (b.value.equals(value)) {
×
97
          return b;
×
98
        }
99
      }
100
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
101
    }
102
  }
103

104
  public static final String JSON_PROPERTY_TYPE = "type";
105
  private TypeEnum type;
106

107
  public TermsOfServiceAcceptanceInfo() { 
×
108
  }
×
109

110
  public TermsOfServiceAcceptanceInfo acceptedBy(String acceptedBy) {
111
    this.acceptedBy = acceptedBy;
×
112
    return this;
×
113
  }
114

115
   /**
116
   * The unique identifier of the user that accepted the Terms of Service.
117
   * @return acceptedBy
118
  **/
119
  @ApiModelProperty(value = "The unique identifier of the user that accepted the Terms of Service.")
120
  @JsonProperty(JSON_PROPERTY_ACCEPTED_BY)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122

123
  public String getAcceptedBy() {
124
    return acceptedBy;
×
125
  }
126

127

128
 /**
129
  * The unique identifier of the user that accepted the Terms of Service.
130
  *
131
  * @param acceptedBy
132
  */ 
133
  @JsonProperty(JSON_PROPERTY_ACCEPTED_BY)
134
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135
  public void setAcceptedBy(String acceptedBy) {
136
    this.acceptedBy = acceptedBy;
×
137
  }
×
138

139

140
  public TermsOfServiceAcceptanceInfo acceptedFor(String acceptedFor) {
141
    this.acceptedFor = acceptedFor;
×
142
    return this;
×
143
  }
144

145
   /**
146
   * The unique identifier of the legal entity for which the Terms of Service are accepted.
147
   * @return acceptedFor
148
  **/
149
  @ApiModelProperty(value = "The unique identifier of the legal entity for which the Terms of Service are accepted.")
150
  @JsonProperty(JSON_PROPERTY_ACCEPTED_FOR)
151
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152

153
  public String getAcceptedFor() {
154
    return acceptedFor;
×
155
  }
156

157

158
 /**
159
  * The unique identifier of the legal entity for which the Terms of Service are accepted.
160
  *
161
  * @param acceptedFor
162
  */ 
163
  @JsonProperty(JSON_PROPERTY_ACCEPTED_FOR)
164
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
165
  public void setAcceptedFor(String acceptedFor) {
166
    this.acceptedFor = acceptedFor;
×
167
  }
×
168

169

170
  public TermsOfServiceAcceptanceInfo createdAt(OffsetDateTime createdAt) {
171
    this.createdAt = createdAt;
×
172
    return this;
×
173
  }
174

175
   /**
176
   * The date when the Terms of Service were accepted.
177
   * @return createdAt
178
  **/
179
  @ApiModelProperty(value = "The date when the Terms of Service were accepted.")
180
  @JsonProperty(JSON_PROPERTY_CREATED_AT)
181
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
182

183
  public OffsetDateTime getCreatedAt() {
184
    return createdAt;
×
185
  }
186

187

188
 /**
189
  * The date when the Terms of Service were accepted.
190
  *
191
  * @param createdAt
192
  */ 
193
  @JsonProperty(JSON_PROPERTY_CREATED_AT)
194
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
195
  public void setCreatedAt(OffsetDateTime createdAt) {
196
    this.createdAt = createdAt;
×
197
  }
×
198

199

200
  public TermsOfServiceAcceptanceInfo id(String id) {
201
    this.id = id;
×
202
    return this;
×
203
  }
204

205
   /**
206
   * An Adyen-generated reference for the accepted Terms of Service.
207
   * @return id
208
  **/
209
  @ApiModelProperty(value = "An Adyen-generated reference for the accepted Terms of Service.")
210
  @JsonProperty(JSON_PROPERTY_ID)
211
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
212

213
  public String getId() {
214
    return id;
×
215
  }
216

217

218
 /**
219
  * An Adyen-generated reference for the accepted Terms of Service.
220
  *
221
  * @param id
222
  */ 
223
  @JsonProperty(JSON_PROPERTY_ID)
224
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
225
  public void setId(String id) {
226
    this.id = id;
×
227
  }
×
228

229

230
  public TermsOfServiceAcceptanceInfo type(TypeEnum type) {
231
    this.type = type;
×
232
    return this;
×
233
  }
234

235
   /**
236
   * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
237
   * @return type
238
  **/
239
  @ApiModelProperty(value = "The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  ")
240
  @JsonProperty(JSON_PROPERTY_TYPE)
241
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
242

243
  public TypeEnum getType() {
244
    return type;
×
245
  }
246

247

248
 /**
249
  * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
250
  *
251
  * @param type
252
  */ 
253
  @JsonProperty(JSON_PROPERTY_TYPE)
254
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
255
  public void setType(TypeEnum type) {
256
    this.type = type;
×
257
  }
×
258

259

260
  /**
261
   * Return true if this TermsOfServiceAcceptanceInfo object is equal to o.
262
   */
263
  @Override
264
  public boolean equals(Object o) {
265
    if (this == o) {
×
266
      return true;
×
267
    }
268
    if (o == null || getClass() != o.getClass()) {
×
269
      return false;
×
270
    }
271
    TermsOfServiceAcceptanceInfo termsOfServiceAcceptanceInfo = (TermsOfServiceAcceptanceInfo) o;
×
272
    return Objects.equals(this.acceptedBy, termsOfServiceAcceptanceInfo.acceptedBy) &&
×
273
        Objects.equals(this.acceptedFor, termsOfServiceAcceptanceInfo.acceptedFor) &&
×
274
        Objects.equals(this.createdAt, termsOfServiceAcceptanceInfo.createdAt) &&
×
275
        Objects.equals(this.id, termsOfServiceAcceptanceInfo.id) &&
×
276
        Objects.equals(this.type, termsOfServiceAcceptanceInfo.type);
×
277
  }
278

279
  @Override
280
  public int hashCode() {
281
    return Objects.hash(acceptedBy, acceptedFor, createdAt, id, type);
×
282
  }
283

284
  @Override
285
  public String toString() {
286
    StringBuilder sb = new StringBuilder();
×
287
    sb.append("class TermsOfServiceAcceptanceInfo {\n");
×
288
    sb.append("    acceptedBy: ").append(toIndentedString(acceptedBy)).append("\n");
×
289
    sb.append("    acceptedFor: ").append(toIndentedString(acceptedFor)).append("\n");
×
290
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
×
291
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
292
    sb.append("    type: ").append(toIndentedString(type)).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 TermsOfServiceAcceptanceInfo given an JSON string
310
   *
311
   * @param jsonString JSON string
312
   * @return An instance of TermsOfServiceAcceptanceInfo
313
   * @throws JsonProcessingException if the JSON string is invalid with respect to TermsOfServiceAcceptanceInfo
314
   */
315
  public static TermsOfServiceAcceptanceInfo fromJson(String jsonString) throws JsonProcessingException {
316
    return JSON.getMapper().readValue(jsonString, TermsOfServiceAcceptanceInfo.class);
×
317
  }
318
/**
319
  * Convert an instance of TermsOfServiceAcceptanceInfo 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