• 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/marketpayhop/CollectInformation.java
1
/*
2
 * Hosted onboarding 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 Hosted onboarding API provides endpoints that you can use to generate links to Adyen-hosted pages, such as an [onboarding page](https://docs.adyen.com/marketplaces-and-platforms/classic/hosted-onboarding-page) or a [PCI compliance questionnaire](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners). You can provide these links to your account holders so that they can complete their onboarding.  ## 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 Hosted onboarding 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/Hop/v6/getOnboardingUrl ```
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.marketpayhop;
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
 * CollectInformation
33
 */
34
@JsonPropertyOrder({
35
  CollectInformation.JSON_PROPERTY_BANK_DETAILS,
36
  CollectInformation.JSON_PROPERTY_BUSINESS_DETAILS,
37
  CollectInformation.JSON_PROPERTY_INDIVIDUAL_DETAILS,
38
  CollectInformation.JSON_PROPERTY_LEGAL_ARRANGEMENT_DETAILS,
39
  CollectInformation.JSON_PROPERTY_PCI_QUESTIONNAIRE,
40
  CollectInformation.JSON_PROPERTY_SHAREHOLDER_DETAILS
41
})
42

43
public class CollectInformation {
44
  public static final String JSON_PROPERTY_BANK_DETAILS = "bankDetails";
45
  private Boolean bankDetails;
46

47
  public static final String JSON_PROPERTY_BUSINESS_DETAILS = "businessDetails";
48
  private Boolean businessDetails;
49

50
  public static final String JSON_PROPERTY_INDIVIDUAL_DETAILS = "individualDetails";
51
  private Boolean individualDetails;
52

53
  public static final String JSON_PROPERTY_LEGAL_ARRANGEMENT_DETAILS = "legalArrangementDetails";
54
  private Boolean legalArrangementDetails;
55

56
  public static final String JSON_PROPERTY_PCI_QUESTIONNAIRE = "pciQuestionnaire";
57
  private Boolean pciQuestionnaire;
58

59
  public static final String JSON_PROPERTY_SHAREHOLDER_DETAILS = "shareholderDetails";
60
  private Boolean shareholderDetails;
61

62
  public CollectInformation() { 
×
63
  }
×
64

65
  public CollectInformation bankDetails(Boolean bankDetails) {
66
    this.bankDetails = bankDetails;
×
67
    return this;
×
68
  }
69

70
   /**
71
   * Indicates whether [bank account details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/bank-account-check) must be collected. Default is **true**.
72
   * @return bankDetails
73
  **/
74
  @ApiModelProperty(value = "Indicates whether [bank account details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/bank-account-check) must be collected. Default is **true**.")
75
  @JsonProperty(JSON_PROPERTY_BANK_DETAILS)
76
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
77

78
  public Boolean getBankDetails() {
79
    return bankDetails;
×
80
  }
81

82

83
  @JsonProperty(JSON_PROPERTY_BANK_DETAILS)
84
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
85
  public void setBankDetails(Boolean bankDetails) {
86
    this.bankDetails = bankDetails;
×
87
  }
×
88

89

90
  public CollectInformation businessDetails(Boolean businessDetails) {
91
    this.businessDetails = businessDetails;
×
92
    return this;
×
93
  }
94

95
   /**
96
   * Indicates whether [business details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/company-check) must be collected. Default is **true**.
97
   * @return businessDetails
98
  **/
99
  @ApiModelProperty(value = "Indicates whether [business details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/company-check) must be collected. Default is **true**.")
100
  @JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
101
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
102

103
  public Boolean getBusinessDetails() {
104
    return businessDetails;
×
105
  }
106

107

108
  @JsonProperty(JSON_PROPERTY_BUSINESS_DETAILS)
109
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110
  public void setBusinessDetails(Boolean businessDetails) {
111
    this.businessDetails = businessDetails;
×
112
  }
×
113

114

115
  public CollectInformation individualDetails(Boolean individualDetails) {
116
    this.individualDetails = individualDetails;
×
117
    return this;
×
118
  }
119

120
   /**
121
   * Indicates whether [individual details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/identity-check) must be collected. Default is **true**.
122
   * @return individualDetails
123
  **/
124
  @ApiModelProperty(value = "Indicates whether [individual details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/identity-check) must be collected. Default is **true**.")
125
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL_DETAILS)
126
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
127

128
  public Boolean getIndividualDetails() {
129
    return individualDetails;
×
130
  }
131

132

133
  @JsonProperty(JSON_PROPERTY_INDIVIDUAL_DETAILS)
134
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135
  public void setIndividualDetails(Boolean individualDetails) {
136
    this.individualDetails = individualDetails;
×
137
  }
×
138

139

140
  public CollectInformation legalArrangementDetails(Boolean legalArrangementDetails) {
141
    this.legalArrangementDetails = legalArrangementDetails;
×
142
    return this;
×
143
  }
144

145
   /**
146
   * Indicates whether [legal arrangement details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/legal-arrangements) must be collected. Default is **true**.
147
   * @return legalArrangementDetails
148
  **/
149
  @ApiModelProperty(value = "Indicates whether [legal arrangement details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/legal-arrangements) must be collected. Default is **true**.")
150
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_DETAILS)
151
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152

153
  public Boolean getLegalArrangementDetails() {
154
    return legalArrangementDetails;
×
155
  }
156

157

158
  @JsonProperty(JSON_PROPERTY_LEGAL_ARRANGEMENT_DETAILS)
159
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
160
  public void setLegalArrangementDetails(Boolean legalArrangementDetails) {
161
    this.legalArrangementDetails = legalArrangementDetails;
×
162
  }
×
163

164

165
  public CollectInformation pciQuestionnaire(Boolean pciQuestionnaire) {
166
    this.pciQuestionnaire = pciQuestionnaire;
×
167
    return this;
×
168
  }
169

170
   /**
171
   * Indicates whether answers to a [PCI questionnaire](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#onboard-partner-platform) must be collected. Applies only to partner platforms. Default is **true**.
172
   * @return pciQuestionnaire
173
  **/
174
  @ApiModelProperty(value = "Indicates whether answers to a [PCI questionnaire](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#onboard-partner-platform) must be collected. Applies only to partner platforms. Default is **true**.")
175
  @JsonProperty(JSON_PROPERTY_PCI_QUESTIONNAIRE)
176
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
177

178
  public Boolean getPciQuestionnaire() {
179
    return pciQuestionnaire;
×
180
  }
181

182

183
  @JsonProperty(JSON_PROPERTY_PCI_QUESTIONNAIRE)
184
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185
  public void setPciQuestionnaire(Boolean pciQuestionnaire) {
186
    this.pciQuestionnaire = pciQuestionnaire;
×
187
  }
×
188

189

190
  public CollectInformation shareholderDetails(Boolean shareholderDetails) {
191
    this.shareholderDetails = shareholderDetails;
×
192
    return this;
×
193
  }
194

195
   /**
196
   * Indicates whether [shareholder details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/identity-check) must be collected. Defaults to **true**.
197
   * @return shareholderDetails
198
  **/
199
  @ApiModelProperty(value = "Indicates whether [shareholder details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/identity-check) must be collected. Defaults to **true**.")
200
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_DETAILS)
201
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
202

203
  public Boolean getShareholderDetails() {
204
    return shareholderDetails;
×
205
  }
206

207

208
  @JsonProperty(JSON_PROPERTY_SHAREHOLDER_DETAILS)
209
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
210
  public void setShareholderDetails(Boolean shareholderDetails) {
211
    this.shareholderDetails = shareholderDetails;
×
212
  }
×
213

214

215
  /**
216
   * Return true if this CollectInformation object is equal to o.
217
   */
218
  @Override
219
  public boolean equals(Object o) {
220
    if (this == o) {
×
221
      return true;
×
222
    }
223
    if (o == null || getClass() != o.getClass()) {
×
224
      return false;
×
225
    }
226
    CollectInformation collectInformation = (CollectInformation) o;
×
227
    return Objects.equals(this.bankDetails, collectInformation.bankDetails) &&
×
228
        Objects.equals(this.businessDetails, collectInformation.businessDetails) &&
×
229
        Objects.equals(this.individualDetails, collectInformation.individualDetails) &&
×
230
        Objects.equals(this.legalArrangementDetails, collectInformation.legalArrangementDetails) &&
×
231
        Objects.equals(this.pciQuestionnaire, collectInformation.pciQuestionnaire) &&
×
232
        Objects.equals(this.shareholderDetails, collectInformation.shareholderDetails);
×
233
  }
234

235
  @Override
236
  public int hashCode() {
237
    return Objects.hash(bankDetails, businessDetails, individualDetails, legalArrangementDetails, pciQuestionnaire, shareholderDetails);
×
238
  }
239

240
  @Override
241
  public String toString() {
242
    StringBuilder sb = new StringBuilder();
×
243
    sb.append("class CollectInformation {\n");
×
244
    sb.append("    bankDetails: ").append(toIndentedString(bankDetails)).append("\n");
×
245
    sb.append("    businessDetails: ").append(toIndentedString(businessDetails)).append("\n");
×
246
    sb.append("    individualDetails: ").append(toIndentedString(individualDetails)).append("\n");
×
247
    sb.append("    legalArrangementDetails: ").append(toIndentedString(legalArrangementDetails)).append("\n");
×
248
    sb.append("    pciQuestionnaire: ").append(toIndentedString(pciQuestionnaire)).append("\n");
×
249
    sb.append("    shareholderDetails: ").append(toIndentedString(shareholderDetails)).append("\n");
×
250
    sb.append("}");
×
251
    return sb.toString();
×
252
  }
253

254
  /**
255
   * Convert the given object to string with each line indented by 4 spaces
256
   * (except the first line).
257
   */
258
  private String toIndentedString(Object o) {
259
    if (o == null) {
×
260
      return "null";
×
261
    }
262
    return o.toString().replace("\n", "\n    ");
×
263
  }
264

265
/**
266
   * Create an instance of CollectInformation given an JSON string
267
   *
268
   * @param jsonString JSON string
269
   * @return An instance of CollectInformation
270
   * @throws JsonProcessingException if the JSON string is invalid with respect to CollectInformation
271
   */
272
  public static CollectInformation fromJson(String jsonString) throws JsonProcessingException {
273
    return JSON.getMapper().readValue(jsonString, CollectInformation.class);
×
274
  }
275
/**
276
  * Convert an instance of CollectInformation to an JSON string
277
  *
278
  * @return JSON string
279
  */
280
  public String toJson() throws JsonProcessingException {
281
    return JSON.getMapper().writeValueAsString(this);
×
282
  }
283
}
284

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