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

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

02 Oct 2024 09:21AM CUT 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/GetTermsOfServiceDocumentRequest.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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

30
/**
31
 * GetTermsOfServiceDocumentRequest
32
 */
33
@JsonPropertyOrder({
34
  GetTermsOfServiceDocumentRequest.JSON_PROPERTY_LANGUAGE,
35
  GetTermsOfServiceDocumentRequest.JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT,
36
  GetTermsOfServiceDocumentRequest.JSON_PROPERTY_TYPE
37
})
38

39
public class GetTermsOfServiceDocumentRequest {
40
  public static final String JSON_PROPERTY_LANGUAGE = "language";
41
  private String language;
42

43
  public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT = "termsOfServiceDocumentFormat";
44
  private String termsOfServiceDocumentFormat;
45

46
  /**
47
   * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
48
   */
49
  public enum TypeEnum {
×
50
    ADYENACCOUNT("adyenAccount"),
×
51
    
52
    ADYENCAPITAL("adyenCapital"),
×
53
    
54
    ADYENCARD("adyenCard"),
×
55
    
NEW
56
    ADYENCHARGECARD("adyenChargeCard"),
×
57
    
58
    ADYENFORPLATFORMSADVANCED("adyenForPlatformsAdvanced"),
×
59
    
60
    ADYENFORPLATFORMSMANAGE("adyenForPlatformsManage"),
×
61
    
62
    ADYENFRANCHISEE("adyenFranchisee"),
×
63
    
64
    ADYENISSUING("adyenIssuing"),
×
65
    
66
    ADYENPCCR("adyenPccr");
×
67

68
    private String value;
69

70
    TypeEnum(String value) {
×
71
      this.value = value;
×
72
    }
×
73

74
    @JsonValue
75
    public String getValue() {
76
      return value;
×
77
    }
78

79
    @Override
80
    public String toString() {
81
      return String.valueOf(value);
×
82
    }
83

84
    @JsonCreator
85
    public static TypeEnum fromValue(String value) {
86
      for (TypeEnum b : TypeEnum.values()) {
×
87
        if (b.value.equals(value)) {
×
88
          return b;
×
89
        }
90
      }
91
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
92
    }
93
  }
94

95
  public static final String JSON_PROPERTY_TYPE = "type";
96
  private TypeEnum type;
97

98
  public GetTermsOfServiceDocumentRequest() { 
×
99
  }
×
100

101
  public GetTermsOfServiceDocumentRequest language(String language) {
102
    this.language = language;
×
103
    return this;
×
104
  }
105

106
   /**
107
   * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.
108
   * @return language
109
  **/
110
  @ApiModelProperty(required = true, value = "The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.")
111
  @JsonProperty(JSON_PROPERTY_LANGUAGE)
112
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
113

114
  public String getLanguage() {
115
    return language;
×
116
  }
117

118

119
 /**
120
  * The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.
121
  *
122
  * @param language
123
  */ 
124
  @JsonProperty(JSON_PROPERTY_LANGUAGE)
125
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126
  public void setLanguage(String language) {
127
    this.language = language;
×
128
  }
×
129

130

131
  public GetTermsOfServiceDocumentRequest termsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) {
132
    this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat;
×
133
    return this;
×
134
  }
135

136
   /**
137
   * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.
138
   * @return termsOfServiceDocumentFormat
139
  **/
140
  @ApiModelProperty(value = "The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.")
141
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT)
142
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
143

144
  public String getTermsOfServiceDocumentFormat() {
145
    return termsOfServiceDocumentFormat;
×
146
  }
147

148

149
 /**
150
  * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.
151
  *
152
  * @param termsOfServiceDocumentFormat
153
  */ 
154
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156
  public void setTermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) {
157
    this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat;
×
158
  }
×
159

160

161
  public GetTermsOfServiceDocumentRequest type(TypeEnum type) {
162
    this.type = type;
×
163
    return this;
×
164
  }
165

166
   /**
167
   * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
168
   * @return type
169
  **/
170
  @ApiModelProperty(required = true, value = "The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  ")
171
  @JsonProperty(JSON_PROPERTY_TYPE)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173

174
  public TypeEnum getType() {
175
    return type;
×
176
  }
177

178

179
 /**
180
  * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
181
  *
182
  * @param type
183
  */ 
184
  @JsonProperty(JSON_PROPERTY_TYPE)
185
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
186
  public void setType(TypeEnum type) {
187
    this.type = type;
×
188
  }
×
189

190

191
  /**
192
   * Return true if this GetTermsOfServiceDocumentRequest object is equal to o.
193
   */
194
  @Override
195
  public boolean equals(Object o) {
196
    if (this == o) {
×
197
      return true;
×
198
    }
199
    if (o == null || getClass() != o.getClass()) {
×
200
      return false;
×
201
    }
202
    GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest = (GetTermsOfServiceDocumentRequest) o;
×
203
    return Objects.equals(this.language, getTermsOfServiceDocumentRequest.language) &&
×
204
        Objects.equals(this.termsOfServiceDocumentFormat, getTermsOfServiceDocumentRequest.termsOfServiceDocumentFormat) &&
×
205
        Objects.equals(this.type, getTermsOfServiceDocumentRequest.type);
×
206
  }
207

208
  @Override
209
  public int hashCode() {
210
    return Objects.hash(language, termsOfServiceDocumentFormat, type);
×
211
  }
212

213
  @Override
214
  public String toString() {
215
    StringBuilder sb = new StringBuilder();
×
216
    sb.append("class GetTermsOfServiceDocumentRequest {\n");
×
217
    sb.append("    language: ").append(toIndentedString(language)).append("\n");
×
218
    sb.append("    termsOfServiceDocumentFormat: ").append(toIndentedString(termsOfServiceDocumentFormat)).append("\n");
×
219
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
220
    sb.append("}");
×
221
    return sb.toString();
×
222
  }
223

224
  /**
225
   * Convert the given object to string with each line indented by 4 spaces
226
   * (except the first line).
227
   */
228
  private String toIndentedString(Object o) {
229
    if (o == null) {
×
230
      return "null";
×
231
    }
232
    return o.toString().replace("\n", "\n    ");
×
233
  }
234

235
/**
236
   * Create an instance of GetTermsOfServiceDocumentRequest given an JSON string
237
   *
238
   * @param jsonString JSON string
239
   * @return An instance of GetTermsOfServiceDocumentRequest
240
   * @throws JsonProcessingException if the JSON string is invalid with respect to GetTermsOfServiceDocumentRequest
241
   */
242
  public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) throws JsonProcessingException {
243
    return JSON.getMapper().readValue(jsonString, GetTermsOfServiceDocumentRequest.class);
×
244
  }
245
/**
246
  * Convert an instance of GetTermsOfServiceDocumentRequest to an JSON string
247
  *
248
  * @return JSON string
249
  */
250
  public String toJson() throws JsonProcessingException {
251
    return JSON.getMapper().writeValueAsString(this);
×
252
  }
253
}
254

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