• 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

0.0
/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementRequest.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.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import java.util.ArrayList;
28
import java.util.List;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * LegalArrangementRequest
35
 */
36
@JsonPropertyOrder({
37
  LegalArrangementRequest.JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE,
38
  LegalArrangementRequest.JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODES
39
})
40

41
public class LegalArrangementRequest {
42
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE = "legalArrangementCode";
43
  private String legalArrangementCode;
44

45
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODES = "legalArrangementEntityCodes";
46
  private List<String> legalArrangementEntityCodes = null;
×
47

48
  public LegalArrangementRequest() { 
×
49
  }
×
50

51
  public LegalArrangementRequest legalArrangementCode(String legalArrangementCode) {
52
    this.legalArrangementCode = legalArrangementCode;
×
53
    return this;
×
54
  }
55

56
   /**
57
   * The code of the legal arrangement to be deleted. If you also send &#x60;legalArrangementEntityCodes&#x60;, only the entities listed will be deleted.
58
   * @return legalArrangementCode
59
  **/
60
  @ApiModelProperty(required = true, value = "The code of the legal arrangement to be deleted. If you also send `legalArrangementEntityCodes`, only the entities listed will be deleted.")
61
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE)
62
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63

64
  public String getLegalArrangementCode() {
65
    return legalArrangementCode;
×
66
  }
67

68

69
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_CODE)
70
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
71
  public void setLegalArrangementCode(String legalArrangementCode) {
72
    this.legalArrangementCode = legalArrangementCode;
×
73
  }
×
74

75

76
  public LegalArrangementRequest legalArrangementEntityCodes(List<String> legalArrangementEntityCodes) {
77
    this.legalArrangementEntityCodes = legalArrangementEntityCodes;
×
78
    return this;
×
79
  }
80

81
  public LegalArrangementRequest addLegalArrangementEntityCodesItem(String legalArrangementEntityCodesItem) {
82
    if (this.legalArrangementEntityCodes == null) {
×
83
      this.legalArrangementEntityCodes = new ArrayList<>();
×
84
    }
85
    this.legalArrangementEntityCodes.add(legalArrangementEntityCodesItem);
×
86
    return this;
×
87
  }
88

89
   /**
90
   * List of legal arrangement entities to be deleted.
91
   * @return legalArrangementEntityCodes
92
  **/
93
  @ApiModelProperty(value = "List of legal arrangement entities to be deleted.")
94
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODES)
95
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
96

97
  public List<String> getLegalArrangementEntityCodes() {
98
    return legalArrangementEntityCodes;
×
99
  }
100

101

102
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_ENTITY_CODES)
103
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
104
  public void setLegalArrangementEntityCodes(List<String> legalArrangementEntityCodes) {
105
    this.legalArrangementEntityCodes = legalArrangementEntityCodes;
×
106
  }
×
107

108

109
  /**
110
   * Return true if this LegalArrangementRequest object is equal to o.
111
   */
112
  @Override
113
  public boolean equals(Object o) {
114
    if (this == o) {
×
115
      return true;
×
116
    }
117
    if (o == null || getClass() != o.getClass()) {
×
118
      return false;
×
119
    }
120
    LegalArrangementRequest legalArrangementRequest = (LegalArrangementRequest) o;
×
121
    return Objects.equals(this.legalArrangementCode, legalArrangementRequest.legalArrangementCode) &&
×
122
        Objects.equals(this.legalArrangementEntityCodes, legalArrangementRequest.legalArrangementEntityCodes);
×
123
  }
124

125
  @Override
126
  public int hashCode() {
127
    return Objects.hash(legalArrangementCode, legalArrangementEntityCodes);
×
128
  }
129

130
  @Override
131
  public String toString() {
132
    StringBuilder sb = new StringBuilder();
×
133
    sb.append("class LegalArrangementRequest {\n");
×
134
    sb.append("    legalArrangementCode: ").append(toIndentedString(legalArrangementCode)).append("\n");
×
135
    sb.append("    legalArrangementEntityCodes: ").append(toIndentedString(legalArrangementEntityCodes)).append("\n");
×
136
    sb.append("}");
×
137
    return sb.toString();
×
138
  }
139

140
  /**
141
   * Convert the given object to string with each line indented by 4 spaces
142
   * (except the first line).
143
   */
144
  private String toIndentedString(Object o) {
145
    if (o == null) {
×
146
      return "null";
×
147
    }
148
    return o.toString().replace("\n", "\n    ");
×
149
  }
150

151
/**
152
   * Create an instance of LegalArrangementRequest given an JSON string
153
   *
154
   * @param jsonString JSON string
155
   * @return An instance of LegalArrangementRequest
156
   * @throws JsonProcessingException if the JSON string is invalid with respect to LegalArrangementRequest
157
   */
158
  public static LegalArrangementRequest fromJson(String jsonString) throws JsonProcessingException {
159
    return JSON.getMapper().readValue(jsonString, LegalArrangementRequest.class);
×
160
  }
161
/**
162
  * Convert an instance of LegalArrangementRequest to an JSON string
163
  *
164
  * @return JSON string
165
  */
166
  public String toJson() throws JsonProcessingException {
167
    return JSON.getMapper().writeValueAsString(this);
×
168
  }
169
}
170

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

© 2026 Coveralls, Inc