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

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

02 Oct 2023 02:08PM UTC coverage: 12.623%. First build
#2676

push

web-flow
Merge 8c2a459f7 into 9e36e9c01

9362 of 9362 new or added lines in 164 files covered. (100.0%)

11051 of 87544 relevant lines covered (12.62%)

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/DeleteShareholderRequest.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
 * DeleteShareholderRequest
35
 */
36
@JsonPropertyOrder({
37
  DeleteShareholderRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
38
  DeleteShareholderRequest.JSON_PROPERTY_SHAREHOLDER_CODES
39
})
40

41
public class DeleteShareholderRequest {
42
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
43
  private String accountHolderCode;
44

45
  public static final String JSON_PROPERTY_SHAREHOLDER_CODES = "shareholderCodes";
46
  private List<String> shareholderCodes = new ArrayList<>();
×
47

48
  public DeleteShareholderRequest() { 
×
49
  }
×
50

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

56
   /**
57
   * The code of the Account Holder from which to delete the Shareholders.
58
   * @return accountHolderCode
59
  **/
60
  @ApiModelProperty(required = true, value = "The code of the Account Holder from which to delete the Shareholders.")
61
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
62
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63

64
  public String getAccountHolderCode() {
65
    return accountHolderCode;
×
66
  }
67

68

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

75

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

81
  public DeleteShareholderRequest addShareholderCodesItem(String shareholderCodesItem) {
82
    this.shareholderCodes.add(shareholderCodesItem);
×
83
    return this;
×
84
  }
85

86
   /**
87
   * The code(s) of the Shareholders to be deleted.
88
   * @return shareholderCodes
89
  **/
90
  @ApiModelProperty(required = true, value = "The code(s) of the Shareholders to be deleted.")
91
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODES)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93

94
  public List<String> getShareholderCodes() {
95
    return shareholderCodes;
×
96
  }
97

98

99
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODES)
100
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
101
  public void setShareholderCodes(List<String> shareholderCodes) {
102
    this.shareholderCodes = shareholderCodes;
×
103
  }
×
104

105

106
  /**
107
   * Return true if this DeleteShareholderRequest object is equal to o.
108
   */
109
  @Override
110
  public boolean equals(Object o) {
111
    if (this == o) {
×
112
      return true;
×
113
    }
114
    if (o == null || getClass() != o.getClass()) {
×
115
      return false;
×
116
    }
117
    DeleteShareholderRequest deleteShareholderRequest = (DeleteShareholderRequest) o;
×
118
    return Objects.equals(this.accountHolderCode, deleteShareholderRequest.accountHolderCode) &&
×
119
        Objects.equals(this.shareholderCodes, deleteShareholderRequest.shareholderCodes);
×
120
  }
121

122
  @Override
123
  public int hashCode() {
124
    return Objects.hash(accountHolderCode, shareholderCodes);
×
125
  }
126

127
  @Override
128
  public String toString() {
129
    StringBuilder sb = new StringBuilder();
×
130
    sb.append("class DeleteShareholderRequest {\n");
×
131
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
132
    sb.append("    shareholderCodes: ").append(toIndentedString(shareholderCodes)).append("\n");
×
133
    sb.append("}");
×
134
    return sb.toString();
×
135
  }
136

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

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

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