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

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

11 Nov 2024 12:54PM UTC coverage: 11.826%. First build
#3735

push

web-flow
Merge fa79c142f into 3c3e65fc5

25 of 792 new or added lines in 20 files covered. (3.16%)

12514 of 105816 relevant lines covered (11.83%)

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
  /**
102
   * 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.
103
   *
104
   * @param language
105
   * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method chaining
106
   */
107
  public GetTermsOfServiceDocumentRequest language(String language) {
108
    this.language = language;
×
109
    return this;
×
110
  }
111

112
  /**
113
   * 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.
114
   * @return language
115
   */
116
  @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.")
117
  @JsonProperty(JSON_PROPERTY_LANGUAGE)
118
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
119
  public String getLanguage() {
120
    return language;
×
121
  }
122

123
  /**
124
   * 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.
125
   *
126
   * @param language
127
   */ 
128
  @JsonProperty(JSON_PROPERTY_LANGUAGE)
129
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
130
  public void setLanguage(String language) {
131
    this.language = language;
×
132
  }
×
133

134
  /**
135
   * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.
136
   *
137
   * @param termsOfServiceDocumentFormat
138
   * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method chaining
139
   */
140
  public GetTermsOfServiceDocumentRequest termsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) {
141
    this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat;
×
142
    return this;
×
143
  }
144

145
  /**
146
   * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.
147
   * @return termsOfServiceDocumentFormat
148
   */
149
  @ApiModelProperty(value = "The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.")
150
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT)
151
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152
  public String getTermsOfServiceDocumentFormat() {
153
    return termsOfServiceDocumentFormat;
×
154
  }
155

156
  /**
157
   * The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.
158
   *
159
   * @param termsOfServiceDocumentFormat
160
   */ 
161
  @JsonProperty(JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT)
162
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
163
  public void setTermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat) {
164
    this.termsOfServiceDocumentFormat = termsOfServiceDocumentFormat;
×
165
  }
×
166

167
  /**
168
   * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
169
   *
170
   * @param type
171
   * @return the current {@code GetTermsOfServiceDocumentRequest} instance, allowing for method chaining
172
   */
173
  public GetTermsOfServiceDocumentRequest type(TypeEnum type) {
174
    this.type = type;
×
175
    return this;
×
176
  }
177

178
  /**
179
   * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
180
   * @return type
181
   */
182
  @ApiModelProperty(required = true, value = "The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  ")
183
  @JsonProperty(JSON_PROPERTY_TYPE)
184
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185
  public TypeEnum getType() {
186
    return type;
×
187
  }
188

189
  /**
190
   * The type of Terms of Service.  Possible values: *  **adyenForPlatformsManage** *  **adyenIssuing** *  **adyenForPlatformsAdvanced** *  **adyenCapital** *  **adyenAccount** *  **adyenCard** *  **adyenFranchisee** *  **adyenPccr** *  **adyenChargeCard**  
191
   *
192
   * @param type
193
   */ 
194
  @JsonProperty(JSON_PROPERTY_TYPE)
195
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
196
  public void setType(TypeEnum type) {
197
    this.type = type;
×
198
  }
×
199

200
  /**
201
   * Return true if this GetTermsOfServiceDocumentRequest object is equal to o.
202
   */
203
  @Override
204
  public boolean equals(Object o) {
205
    if (this == o) {
×
206
      return true;
×
207
    }
208
    if (o == null || getClass() != o.getClass()) {
×
209
      return false;
×
210
    }
211
    GetTermsOfServiceDocumentRequest getTermsOfServiceDocumentRequest = (GetTermsOfServiceDocumentRequest) o;
×
212
    return Objects.equals(this.language, getTermsOfServiceDocumentRequest.language) &&
×
213
        Objects.equals(this.termsOfServiceDocumentFormat, getTermsOfServiceDocumentRequest.termsOfServiceDocumentFormat) &&
×
214
        Objects.equals(this.type, getTermsOfServiceDocumentRequest.type);
×
215
  }
216

217
  @Override
218
  public int hashCode() {
219
    return Objects.hash(language, termsOfServiceDocumentFormat, type);
×
220
  }
221

222
  @Override
223
  public String toString() {
224
    StringBuilder sb = new StringBuilder();
×
225
    sb.append("class GetTermsOfServiceDocumentRequest {\n");
×
226
    sb.append("    language: ").append(toIndentedString(language)).append("\n");
×
227
    sb.append("    termsOfServiceDocumentFormat: ").append(toIndentedString(termsOfServiceDocumentFormat)).append("\n");
×
228
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
229
    sb.append("}");
×
230
    return sb.toString();
×
231
  }
232

233
  /**
234
   * Convert the given object to string with each line indented by 4 spaces
235
   * (except the first line).
236
   */
237
  private String toIndentedString(Object o) {
238
    if (o == null) {
×
239
      return "null";
×
240
    }
241
    return o.toString().replace("\n", "\n    ");
×
242
  }
243

244
/**
245
   * Create an instance of GetTermsOfServiceDocumentRequest given an JSON string
246
   *
247
   * @param jsonString JSON string
248
   * @return An instance of GetTermsOfServiceDocumentRequest
249
   * @throws JsonProcessingException if the JSON string is invalid with respect to GetTermsOfServiceDocumentRequest
250
   */
251
  public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) throws JsonProcessingException {
252
    return JSON.getMapper().readValue(jsonString, GetTermsOfServiceDocumentRequest.class);
×
253
  }
254
/**
255
  * Convert an instance of GetTermsOfServiceDocumentRequest to an JSON string
256
  *
257
  * @return JSON string
258
  */
259
  public String toJson() throws JsonProcessingException {
260
    return JSON.getMapper().writeValueAsString(this);
×
261
  }
262
}
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