• 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/UltimateParentCompany.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.UltimateParentCompanyBusinessDetails;
21
import com.adyen.model.marketpayaccount.ViasAddress;
22
import com.fasterxml.jackson.annotation.JsonInclude;
23
import com.fasterxml.jackson.annotation.JsonProperty;
24
import com.fasterxml.jackson.annotation.JsonCreator;
25
import com.fasterxml.jackson.annotation.JsonTypeName;
26
import com.fasterxml.jackson.annotation.JsonValue;
27
import io.swagger.annotations.ApiModel;
28
import io.swagger.annotations.ApiModelProperty;
29
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30
import com.fasterxml.jackson.core.JsonProcessingException;
31

32

33
/**
34
 * UltimateParentCompany
35
 */
36
@JsonPropertyOrder({
37
  UltimateParentCompany.JSON_PROPERTY_ADDRESS,
38
  UltimateParentCompany.JSON_PROPERTY_BUSINESS_DETAILS,
39
  UltimateParentCompany.JSON_PROPERTY_ULTIMATE_PARENT_COMPANY_CODE
40
})
41

42
public class UltimateParentCompany {
43
  public static final String JSON_PROPERTY_ADDRESS = "address";
44
  private ViasAddress address;
45

46
  public static final String JSON_PROPERTY_BUSINESS_DETAILS = "businessDetails";
47
  private UltimateParentCompanyBusinessDetails businessDetails;
48

49
  public static final String JSON_PROPERTY_ULTIMATE_PARENT_COMPANY_CODE = "ultimateParentCompanyCode";
50
  private String ultimateParentCompanyCode;
51

52
  public UltimateParentCompany() { 
×
53
  }
×
54

55
  public UltimateParentCompany address(ViasAddress address) {
56
    this.address = address;
×
57
    return this;
×
58
  }
59

60
   /**
61
   * Get address
62
   * @return address
63
  **/
64
  @ApiModelProperty(value = "")
65
  @JsonProperty(JSON_PROPERTY_ADDRESS)
66
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
67

68
  public ViasAddress getAddress() {
69
    return address;
×
70
  }
71

72

73
  @JsonProperty(JSON_PROPERTY_ADDRESS)
74
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
75
  public void setAddress(ViasAddress address) {
76
    this.address = address;
×
77
  }
×
78

79

80
  public UltimateParentCompany businessDetails(UltimateParentCompanyBusinessDetails businessDetails) {
81
    this.businessDetails = businessDetails;
×
82
    return this;
×
83
  }
84

85
   /**
86
   * Get businessDetails
87
   * @return businessDetails
88
  **/
89
  @ApiModelProperty(value = "")
90
  @JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
91
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
92

93
  public UltimateParentCompanyBusinessDetails getBusinessDetails() {
94
    return businessDetails;
×
95
  }
96

97

98
  @JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
99
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
100
  public void setBusinessDetails(UltimateParentCompanyBusinessDetails businessDetails) {
101
    this.businessDetails = businessDetails;
×
102
  }
×
103

104

105
  public UltimateParentCompany ultimateParentCompanyCode(String ultimateParentCompanyCode) {
106
    this.ultimateParentCompanyCode = ultimateParentCompanyCode;
×
107
    return this;
×
108
  }
109

110
   /**
111
   * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create an ultimate parent company. Required when updating an existing entry in an `/updateAccountHolder` request.
112
   * @return ultimateParentCompanyCode
113
  **/
114
  @ApiModelProperty(value = "Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create an ultimate parent company. Required when updating an existing entry in an `/updateAccountHolder` request.")
115
  @JsonProperty(JSON_PROPERTY_ULTIMATE_PARENT_COMPANY_CODE)
116
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
117

118
  public String getUltimateParentCompanyCode() {
119
    return ultimateParentCompanyCode;
×
120
  }
121

122

123
  @JsonProperty(JSON_PROPERTY_ULTIMATE_PARENT_COMPANY_CODE)
124
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
125
  public void setUltimateParentCompanyCode(String ultimateParentCompanyCode) {
126
    this.ultimateParentCompanyCode = ultimateParentCompanyCode;
×
127
  }
×
128

129

130
  /**
131
   * Return true if this UltimateParentCompany object is equal to o.
132
   */
133
  @Override
134
  public boolean equals(Object o) {
135
    if (this == o) {
×
136
      return true;
×
137
    }
138
    if (o == null || getClass() != o.getClass()) {
×
139
      return false;
×
140
    }
141
    UltimateParentCompany ultimateParentCompany = (UltimateParentCompany) o;
×
142
    return Objects.equals(this.address, ultimateParentCompany.address) &&
×
143
        Objects.equals(this.businessDetails, ultimateParentCompany.businessDetails) &&
×
144
        Objects.equals(this.ultimateParentCompanyCode, ultimateParentCompany.ultimateParentCompanyCode);
×
145
  }
146

147
  @Override
148
  public int hashCode() {
149
    return Objects.hash(address, businessDetails, ultimateParentCompanyCode);
×
150
  }
151

152
  @Override
153
  public String toString() {
154
    StringBuilder sb = new StringBuilder();
×
155
    sb.append("class UltimateParentCompany {\n");
×
156
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
×
157
    sb.append("    businessDetails: ").append(toIndentedString(businessDetails)).append("\n");
×
158
    sb.append("    ultimateParentCompanyCode: ").append(toIndentedString(ultimateParentCompanyCode)).append("\n");
×
159
    sb.append("}");
×
160
    return sb.toString();
×
161
  }
162

163
  /**
164
   * Convert the given object to string with each line indented by 4 spaces
165
   * (except the first line).
166
   */
167
  private String toIndentedString(Object o) {
168
    if (o == null) {
×
169
      return "null";
×
170
    }
171
    return o.toString().replace("\n", "\n    ");
×
172
  }
173

174
/**
175
   * Create an instance of UltimateParentCompany given an JSON string
176
   *
177
   * @param jsonString JSON string
178
   * @return An instance of UltimateParentCompany
179
   * @throws JsonProcessingException if the JSON string is invalid with respect to UltimateParentCompany
180
   */
181
  public static UltimateParentCompany fromJson(String jsonString) throws JsonProcessingException {
182
    return JSON.getMapper().readValue(jsonString, UltimateParentCompany.class);
×
183
  }
184
/**
185
  * Convert an instance of UltimateParentCompany to an JSON string
186
  *
187
  * @return JSON string
188
  */
189
  public String toJson() throws JsonProcessingException {
190
    return JSON.getMapper().writeValueAsString(this);
×
191
  }
192
}
193

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