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

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

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

0.13 hits per line

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

35.09
/src/main/java/com/adyen/model/marketpayaccount/GetTaxFormResponse.java
1
/*
2
 * Account API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and verification-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them.  For more information, refer to our [documentation](https://docs.adyen.com/marketplaces-and-platforms/classic). ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Account API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayaccount;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.adyen.model.marketpayaccount.ErrorFieldType;
21
import com.fasterxml.jackson.annotation.JsonInclude;
22
import com.fasterxml.jackson.annotation.JsonProperty;
23
import com.fasterxml.jackson.annotation.JsonCreator;
24
import com.fasterxml.jackson.annotation.JsonTypeName;
25
import com.fasterxml.jackson.annotation.JsonValue;
26
import io.swagger.annotations.ApiModel;
27
import io.swagger.annotations.ApiModelProperty;
28
import java.util.ArrayList;
29
import java.util.List;
30
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * GetTaxFormResponse
36
 */
37
@JsonPropertyOrder({
38
  GetTaxFormResponse.JSON_PROPERTY_CONTENT,
39
  GetTaxFormResponse.JSON_PROPERTY_CONTENT_TYPE,
40
  GetTaxFormResponse.JSON_PROPERTY_INVALID_FIELDS,
41
  GetTaxFormResponse.JSON_PROPERTY_PSP_REFERENCE,
42
  GetTaxFormResponse.JSON_PROPERTY_RESULT_CODE
43
})
44

45
public class GetTaxFormResponse {
46
  public static final String JSON_PROPERTY_CONTENT = "content";
47
  private byte[] content;
48

49
  public static final String JSON_PROPERTY_CONTENT_TYPE = "contentType";
50
  private String contentType;
51

52
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
53
  private List<ErrorFieldType> invalidFields = null;
1✔
54

55
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
56
  private String pspReference;
57

58
  public static final String JSON_PROPERTY_RESULT_CODE = "resultCode";
59
  private String resultCode;
60

61
  public GetTaxFormResponse() { 
1✔
62
  }
1✔
63

64
  public GetTaxFormResponse content(byte[] content) {
65
    this.content = content;
×
66
    return this;
×
67
  }
68

69
   /**
70
   * The content of the tax form in the Base64 binary format.
71
   * @return content
72
  **/
73
  @ApiModelProperty(value = "The content of the tax form in the Base64 binary format.")
74
  @JsonProperty(JSON_PROPERTY_CONTENT)
75
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
76

77
  public byte[] getContent() {
78
    return content;
1✔
79
  }
80

81

82
  @JsonProperty(JSON_PROPERTY_CONTENT)
83
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
84
  public void setContent(byte[] content) {
85
    this.content = content;
1✔
86
  }
1✔
87

88

89
  public GetTaxFormResponse contentType(String contentType) {
90
    this.contentType = contentType;
×
91
    return this;
×
92
  }
93

94
   /**
95
   * The content type of the tax form.
96
   * @return contentType
97
  **/
98
  @ApiModelProperty(value = "The content type of the tax form.")
99
  @JsonProperty(JSON_PROPERTY_CONTENT_TYPE)
100
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
101

102
  public String getContentType() {
103
    return contentType;
1✔
104
  }
105

106

107
  @JsonProperty(JSON_PROPERTY_CONTENT_TYPE)
108
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109
  public void setContentType(String contentType) {
110
    this.contentType = contentType;
1✔
111
  }
1✔
112

113

114
  public GetTaxFormResponse invalidFields(List<ErrorFieldType> invalidFields) {
115
    this.invalidFields = invalidFields;
×
116
    return this;
×
117
  }
118

119
  public GetTaxFormResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
120
    if (this.invalidFields == null) {
×
121
      this.invalidFields = new ArrayList<>();
×
122
    }
123
    this.invalidFields.add(invalidFieldsItem);
×
124
    return this;
×
125
  }
126

127
   /**
128
   * Contains field validation errors that would prevent requests from being processed.
129
   * @return invalidFields
130
  **/
131
  @ApiModelProperty(value = "Contains field validation errors that would prevent requests from being processed.")
132
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
133
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134

135
  public List<ErrorFieldType> getInvalidFields() {
136
    return invalidFields;
1✔
137
  }
138

139

140
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
141
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
142
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
143
    this.invalidFields = invalidFields;
1✔
144
  }
1✔
145

146

147
  public GetTaxFormResponse pspReference(String pspReference) {
148
    this.pspReference = pspReference;
×
149
    return this;
×
150
  }
151

152
   /**
153
   * The reference of a request. Can be used to uniquely identify the request.
154
   * @return pspReference
155
  **/
156
  @ApiModelProperty(value = "The reference of a request. Can be used to uniquely identify the request.")
157
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
158
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
159

160
  public String getPspReference() {
161
    return pspReference;
1✔
162
  }
163

164

165
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
166
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
167
  public void setPspReference(String pspReference) {
168
    this.pspReference = pspReference;
1✔
169
  }
1✔
170

171

172
  public GetTaxFormResponse resultCode(String resultCode) {
173
    this.resultCode = resultCode;
×
174
    return this;
×
175
  }
176

177
   /**
178
   * The result code.
179
   * @return resultCode
180
  **/
181
  @ApiModelProperty(value = "The result code.")
182
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
183
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
184

185
  public String getResultCode() {
186
    return resultCode;
1✔
187
  }
188

189

190
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
191
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
192
  public void setResultCode(String resultCode) {
193
    this.resultCode = resultCode;
1✔
194
  }
1✔
195

196

197
  /**
198
   * Return true if this GetTaxFormResponse object is equal to o.
199
   */
200
  @Override
201
  public boolean equals(Object o) {
202
    if (this == o) {
×
203
      return true;
×
204
    }
205
    if (o == null || getClass() != o.getClass()) {
×
206
      return false;
×
207
    }
208
    GetTaxFormResponse getTaxFormResponse = (GetTaxFormResponse) o;
×
209
    return Arrays.equals(this.content, getTaxFormResponse.content) &&
×
210
        Objects.equals(this.contentType, getTaxFormResponse.contentType) &&
×
211
        Objects.equals(this.invalidFields, getTaxFormResponse.invalidFields) &&
×
212
        Objects.equals(this.pspReference, getTaxFormResponse.pspReference) &&
×
213
        Objects.equals(this.resultCode, getTaxFormResponse.resultCode);
×
214
  }
215

216
  @Override
217
  public int hashCode() {
218
    return Objects.hash(Arrays.hashCode(content), contentType, invalidFields, pspReference, resultCode);
×
219
  }
220

221
  @Override
222
  public String toString() {
223
    StringBuilder sb = new StringBuilder();
×
224
    sb.append("class GetTaxFormResponse {\n");
×
225
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
×
226
    sb.append("    contentType: ").append(toIndentedString(contentType)).append("\n");
×
227
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
228
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
229
    sb.append("    resultCode: ").append(toIndentedString(resultCode)).append("\n");
×
230
    sb.append("}");
×
231
    return sb.toString();
×
232
  }
233

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

245
/**
246
   * Create an instance of GetTaxFormResponse given an JSON string
247
   *
248
   * @param jsonString JSON string
249
   * @return An instance of GetTaxFormResponse
250
   * @throws JsonProcessingException if the JSON string is invalid with respect to GetTaxFormResponse
251
   */
252
  public static GetTaxFormResponse fromJson(String jsonString) throws JsonProcessingException {
253
    return JSON.getMapper().readValue(jsonString, GetTaxFormResponse.class);
1✔
254
  }
255
/**
256
  * Convert an instance of GetTaxFormResponse to an JSON string
257
  *
258
  * @return JSON string
259
  */
260
  public String toJson() throws JsonProcessingException {
261
    return JSON.getMapper().writeValueAsString(this);
1✔
262
  }
263
}
264

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