• 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/MigratedShareholders.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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * MigratedShareholders
33
 */
34
@JsonPropertyOrder({
35
  MigratedShareholders.JSON_PROPERTY_LEGAL_ENTITY_CODE,
36
  MigratedShareholders.JSON_PROPERTY_SHAREHOLDER_CODE
37
})
38

39
public class MigratedShareholders {
40
  public static final String JSON_PROPERTY_LEGAL_ENTITY_CODE = "legalEntityCode";
41
  private String legalEntityCode;
42

43
  public static final String JSON_PROPERTY_SHAREHOLDER_CODE = "shareholderCode";
44
  private String shareholderCode;
45

46
  public MigratedShareholders() { 
×
47
  }
×
48

49
  public MigratedShareholders legalEntityCode(String legalEntityCode) {
50
    this.legalEntityCode = legalEntityCode;
×
51
    return this;
×
52
  }
53

54
   /**
55
   * The unique identifier of the legal entity of that shareholder in the balance platform.
56
   * @return legalEntityCode
57
  **/
58
  @ApiModelProperty(value = "The unique identifier of the legal entity of that shareholder in the balance platform.")
59
  @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_CODE)
60
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
61

62
  public String getLegalEntityCode() {
63
    return legalEntityCode;
×
64
  }
65

66

67
  @JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_CODE)
68
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69
  public void setLegalEntityCode(String legalEntityCode) {
70
    this.legalEntityCode = legalEntityCode;
×
71
  }
×
72

73

74
  public MigratedShareholders shareholderCode(String shareholderCode) {
75
    this.shareholderCode = shareholderCode;
×
76
    return this;
×
77
  }
78

79
   /**
80
   * The unique identifier of the account of the migrated shareholder in the classic integration.
81
   * @return shareholderCode
82
  **/
83
  @ApiModelProperty(value = "The unique identifier of the account of the migrated shareholder in the classic integration.")
84
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
85
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
86

87
  public String getShareholderCode() {
88
    return shareholderCode;
×
89
  }
90

91

92
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_CODE)
93
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
94
  public void setShareholderCode(String shareholderCode) {
95
    this.shareholderCode = shareholderCode;
×
96
  }
×
97

98

99
  /**
100
   * Return true if this MigratedShareholders object is equal to o.
101
   */
102
  @Override
103
  public boolean equals(Object o) {
104
    if (this == o) {
×
105
      return true;
×
106
    }
107
    if (o == null || getClass() != o.getClass()) {
×
108
      return false;
×
109
    }
110
    MigratedShareholders migratedShareholders = (MigratedShareholders) o;
×
111
    return Objects.equals(this.legalEntityCode, migratedShareholders.legalEntityCode) &&
×
112
        Objects.equals(this.shareholderCode, migratedShareholders.shareholderCode);
×
113
  }
114

115
  @Override
116
  public int hashCode() {
117
    return Objects.hash(legalEntityCode, shareholderCode);
×
118
  }
119

120
  @Override
121
  public String toString() {
122
    StringBuilder sb = new StringBuilder();
×
123
    sb.append("class MigratedShareholders {\n");
×
124
    sb.append("    legalEntityCode: ").append(toIndentedString(legalEntityCode)).append("\n");
×
125
    sb.append("    shareholderCode: ").append(toIndentedString(shareholderCode)).append("\n");
×
126
    sb.append("}");
×
127
    return sb.toString();
×
128
  }
129

130
  /**
131
   * Convert the given object to string with each line indented by 4 spaces
132
   * (except the first line).
133
   */
134
  private String toIndentedString(Object o) {
135
    if (o == null) {
×
136
      return "null";
×
137
    }
138
    return o.toString().replace("\n", "\n    ");
×
139
  }
140

141
/**
142
   * Create an instance of MigratedShareholders given an JSON string
143
   *
144
   * @param jsonString JSON string
145
   * @return An instance of MigratedShareholders
146
   * @throws JsonProcessingException if the JSON string is invalid with respect to MigratedShareholders
147
   */
148
  public static MigratedShareholders fromJson(String jsonString) throws JsonProcessingException {
149
    return JSON.getMapper().readValue(jsonString, MigratedShareholders.class);
×
150
  }
151
/**
152
  * Convert an instance of MigratedShareholders to an JSON string
153
  *
154
  * @return JSON string
155
  */
156
  public String toJson() throws JsonProcessingException {
157
    return JSON.getMapper().writeValueAsString(this);
×
158
  }
159
}
160

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