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

31

32
/**
33
 * CalculateTermsOfServiceStatusResponse
34
 */
35
@JsonPropertyOrder({
36
  CalculateTermsOfServiceStatusResponse.JSON_PROPERTY_TERMS_OF_SERVICE_TYPES
37
})
38

39
public class CalculateTermsOfServiceStatusResponse {
40
  /**
41
   * Gets or Sets termsOfServiceTypes
42
   */
43
  public enum TermsOfServiceTypesEnum {
×
44
    ADYENACCOUNT("adyenAccount"),
×
45
    
46
    ADYENCAPITAL("adyenCapital"),
×
47
    
48
    ADYENCARD("adyenCard"),
×
49
    
NEW
50
    ADYENCHARGECARD("adyenChargeCard"),
×
51
    
52
    ADYENFORPLATFORMSADVANCED("adyenForPlatformsAdvanced"),
×
53
    
54
    ADYENFORPLATFORMSMANAGE("adyenForPlatformsManage"),
×
55
    
56
    ADYENFRANCHISEE("adyenFranchisee"),
×
57
    
58
    ADYENISSUING("adyenIssuing"),
×
59
    
60
    ADYENPCCR("adyenPccr");
×
61

62
    private String value;
63

64
    TermsOfServiceTypesEnum(String value) {
×
65
      this.value = value;
×
66
    }
×
67

68
    @JsonValue
69
    public String getValue() {
70
      return value;
×
71
    }
72

73
    @Override
74
    public String toString() {
75
      return String.valueOf(value);
×
76
    }
77

78
    @JsonCreator
79
    public static TermsOfServiceTypesEnum fromValue(String value) {
80
      for (TermsOfServiceTypesEnum b : TermsOfServiceTypesEnum.values()) {
×
81
        if (b.value.equals(value)) {
×
82
          return b;
×
83
        }
84
      }
85
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
86
    }
87
  }
88

89
  public static final String JSON_PROPERTY_TERMS_OF_SERVICE_TYPES = "termsOfServiceTypes";
90
  private List<TermsOfServiceTypesEnum> termsOfServiceTypes = null;
×
91

92
  public CalculateTermsOfServiceStatusResponse() { 
×
93
  }
×
94

95
  public CalculateTermsOfServiceStatusResponse termsOfServiceTypes(List<TermsOfServiceTypesEnum> termsOfServiceTypes) {
96
    this.termsOfServiceTypes = termsOfServiceTypes;
×
97
    return this;
×
98
  }
99

100
  public CalculateTermsOfServiceStatusResponse addTermsOfServiceTypesItem(TermsOfServiceTypesEnum termsOfServiceTypesItem) {
101
    if (this.termsOfServiceTypes == null) {
×
102
      this.termsOfServiceTypes = new ArrayList<>();
×
103
    }
104
    this.termsOfServiceTypes.add(termsOfServiceTypesItem);
×
105
    return this;
×
106
  }
107

108
   /**
109
   * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted.
110
   * @return termsOfServiceTypes
111
  **/
112
  @ApiModelProperty(value = "The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted.")
113
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_TYPES)
114
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
115

116
  public List<TermsOfServiceTypesEnum> getTermsOfServiceTypes() {
117
    return termsOfServiceTypes;
×
118
  }
119

120

121
 /**
122
  * The type of Terms of Service that the legal entity needs to accept. If empty, no Terms of Service needs to be accepted.
123
  *
124
  * @param termsOfServiceTypes
125
  */ 
126
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_TYPES)
127
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
128
  public void setTermsOfServiceTypes(List<TermsOfServiceTypesEnum> termsOfServiceTypes) {
129
    this.termsOfServiceTypes = termsOfServiceTypes;
×
130
  }
×
131

132

133
  /**
134
   * Return true if this CalculateTermsOfServiceStatusResponse object is equal to o.
135
   */
136
  @Override
137
  public boolean equals(Object o) {
138
    if (this == o) {
×
139
      return true;
×
140
    }
141
    if (o == null || getClass() != o.getClass()) {
×
142
      return false;
×
143
    }
144
    CalculateTermsOfServiceStatusResponse calculateTermsOfServiceStatusResponse = (CalculateTermsOfServiceStatusResponse) o;
×
145
    return Objects.equals(this.termsOfServiceTypes, calculateTermsOfServiceStatusResponse.termsOfServiceTypes);
×
146
  }
147

148
  @Override
149
  public int hashCode() {
150
    return Objects.hash(termsOfServiceTypes);
×
151
  }
152

153
  @Override
154
  public String toString() {
155
    StringBuilder sb = new StringBuilder();
×
156
    sb.append("class CalculateTermsOfServiceStatusResponse {\n");
×
157
    sb.append("    termsOfServiceTypes: ").append(toIndentedString(termsOfServiceTypes)).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 CalculateTermsOfServiceStatusResponse given an JSON string
175
   *
176
   * @param jsonString JSON string
177
   * @return An instance of CalculateTermsOfServiceStatusResponse
178
   * @throws JsonProcessingException if the JSON string is invalid with respect to CalculateTermsOfServiceStatusResponse
179
   */
180
  public static CalculateTermsOfServiceStatusResponse fromJson(String jsonString) throws JsonProcessingException {
181
    return JSON.getMapper().readValue(jsonString, CalculateTermsOfServiceStatusResponse.class);
×
182
  }
183
/**
184
  * Convert an instance of CalculateTermsOfServiceStatusResponse 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