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

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

16 Oct 2023 09:08AM UTC coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

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/marketpaywebhooks/UltimateParentCompany.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.marketpaywebhooks;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.marketpaywebhooks.UltimateParentCompanyBusinessDetails;
20
import com.adyen.model.marketpaywebhooks.ViasAddress;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

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

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

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

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

51
  public UltimateParentCompany() { 
×
52
  }
×
53

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

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

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

71

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

78

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

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

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

96

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

103

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

109
   /**
110
   * 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.
111
   * @return ultimateParentCompanyCode
112
  **/
113
  @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.")
114
  @JsonProperty(JSON_PROPERTY_ULTIMATE_PARENT_COMPANY_CODE)
115
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116

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

121

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

128

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

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

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

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

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

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