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

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

02 Oct 2024 09:21AM UTC coverage: 11.815%. First build
#3609

push

web-flow
Merge 53e60049d into 3aab4fab9

0 of 7 new or added lines in 6 files covered. (0.0%)

12578 of 106461 relevant lines covered (11.81%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.87
/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java
1
/*
2
 * Legal Entity Management API
3
 *
4
 * The version of the OpenAPI document: 3
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.legalentitymanagement;
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.legalentitymanagement.SourceOfFunds;
20
import com.adyen.model.legalentitymanagement.WebData;
21
import com.adyen.model.legalentitymanagement.WebDataExemption;
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 java.util.ArrayList;
30
import java.util.List;
31
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
32
import com.fasterxml.jackson.core.JsonProcessingException;
33

34

35
/**
36
 * BusinessLineInfoUpdate
37
 */
38
@JsonPropertyOrder({
39
  BusinessLineInfoUpdate.JSON_PROPERTY_INDUSTRY_CODE,
40
  BusinessLineInfoUpdate.JSON_PROPERTY_SALES_CHANNELS,
41
  BusinessLineInfoUpdate.JSON_PROPERTY_SOURCE_OF_FUNDS,
42
  BusinessLineInfoUpdate.JSON_PROPERTY_WEB_DATA,
43
  BusinessLineInfoUpdate.JSON_PROPERTY_WEB_DATA_EXEMPTION
44
})
45

46
public class BusinessLineInfoUpdate {
47
  public static final String JSON_PROPERTY_INDUSTRY_CODE = "industryCode";
48
  private String industryCode;
49

50
  public static final String JSON_PROPERTY_SALES_CHANNELS = "salesChannels";
51
  private List<String> salesChannels = null;
1✔
52

53
  public static final String JSON_PROPERTY_SOURCE_OF_FUNDS = "sourceOfFunds";
54
  private SourceOfFunds sourceOfFunds;
55

56
  public static final String JSON_PROPERTY_WEB_DATA = "webData";
57
  private List<WebData> webData = null;
1✔
58

59
  public static final String JSON_PROPERTY_WEB_DATA_EXEMPTION = "webDataExemption";
60
  private WebDataExemption webDataExemption;
61

62
  public BusinessLineInfoUpdate() { 
1✔
63
  }
1✔
64

65
  public BusinessLineInfoUpdate industryCode(String industryCode) {
66
    this.industryCode = industryCode;
×
67
    return this;
×
68
  }
69

70
   /**
71
   * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores.
72
   * @return industryCode
73
  **/
74
  @ApiModelProperty(value = "A code that represents the industry of your legal entity. For example, **4431A** for computer software stores.")
75
  @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE)
76
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
77

78
  public String getIndustryCode() {
79
    return industryCode;
1✔
80
  }
81

82

83
 /**
84
  * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores.
85
  *
86
  * @param industryCode
87
  */ 
88
  @JsonProperty(JSON_PROPERTY_INDUSTRY_CODE)
89
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
90
  public void setIndustryCode(String industryCode) {
91
    this.industryCode = industryCode;
1✔
92
  }
1✔
93

94

95
  public BusinessLineInfoUpdate salesChannels(List<String> salesChannels) {
96
    this.salesChannels = salesChannels;
×
97
    return this;
×
98
  }
99

100
  public BusinessLineInfoUpdate addSalesChannelsItem(String salesChannelsItem) {
101
    if (this.salesChannels == null) {
×
102
      this.salesChannels = new ArrayList<>();
×
103
    }
104
    this.salesChannels.add(salesChannelsItem);
×
105
    return this;
×
106
  }
107

108
   /**
109
   * A list of channels where goods or services are sold.  Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**.  Required only in combination with the &#x60;service&#x60; **paymentProcessing**.
110
   * @return salesChannels
111
  **/
112
  @ApiModelProperty(value = "A list of channels where goods or services are sold.  Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**.  Required only in combination with the `service` **paymentProcessing**.")
113
  @JsonProperty(JSON_PROPERTY_SALES_CHANNELS)
114
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
115

116
  public List<String> getSalesChannels() {
117
    return salesChannels;
1✔
118
  }
119

120

121
 /**
122
  * A list of channels where goods or services are sold.  Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**.  Required only in combination with the &#x60;service&#x60; **paymentProcessing**.
123
  *
124
  * @param salesChannels
125
  */ 
126
  @JsonProperty(JSON_PROPERTY_SALES_CHANNELS)
127
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
128
  public void setSalesChannels(List<String> salesChannels) {
129
    this.salesChannels = salesChannels;
1✔
130
  }
1✔
131

132

133
  public BusinessLineInfoUpdate sourceOfFunds(SourceOfFunds sourceOfFunds) {
134
    this.sourceOfFunds = sourceOfFunds;
×
135
    return this;
×
136
  }
137

138
   /**
139
   * Get sourceOfFunds
140
   * @return sourceOfFunds
141
  **/
142
  @ApiModelProperty(value = "")
143
  @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS)
144
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
145

146
  public SourceOfFunds getSourceOfFunds() {
147
    return sourceOfFunds;
1✔
148
  }
149

150

151
 /**
152
  * sourceOfFunds
153
  *
154
  * @param sourceOfFunds
155
  */ 
156
  @JsonProperty(JSON_PROPERTY_SOURCE_OF_FUNDS)
157
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
158
  public void setSourceOfFunds(SourceOfFunds sourceOfFunds) {
159
    this.sourceOfFunds = sourceOfFunds;
1✔
160
  }
1✔
161

162

163
  public BusinessLineInfoUpdate webData(List<WebData> webData) {
164
    this.webData = webData;
×
165
    return this;
×
166
  }
167

168
  public BusinessLineInfoUpdate addWebDataItem(WebData webDataItem) {
169
    if (this.webData == null) {
×
170
      this.webData = new ArrayList<>();
×
171
    }
172
    this.webData.add(webDataItem);
×
173
    return this;
×
174
  }
175

176
   /**
177
   * List of website URLs where your user&#39;s goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the &#x60;webDataExemption&#x60; object.
178
   * @return webData
179
  **/
180
  @ApiModelProperty(value = "List of website URLs where your user's goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object.")
181
  @JsonProperty(JSON_PROPERTY_WEB_DATA)
182
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
183

184
  public List<WebData> getWebData() {
185
    return webData;
1✔
186
  }
187

188

189
 /**
190
  * List of website URLs where your user&#39;s goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the &#x60;webDataExemption&#x60; object.
191
  *
192
  * @param webData
193
  */ 
194
  @JsonProperty(JSON_PROPERTY_WEB_DATA)
195
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
196
  public void setWebData(List<WebData> webData) {
197
    this.webData = webData;
1✔
198
  }
1✔
199

200

201
  public BusinessLineInfoUpdate webDataExemption(WebDataExemption webDataExemption) {
202
    this.webDataExemption = webDataExemption;
×
203
    return this;
×
204
  }
205

206
   /**
207
   * Get webDataExemption
208
   * @return webDataExemption
209
  **/
210
  @ApiModelProperty(value = "")
211
  @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION)
212
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213

214
  public WebDataExemption getWebDataExemption() {
215
    return webDataExemption;
1✔
216
  }
217

218

219
 /**
220
  * webDataExemption
221
  *
222
  * @param webDataExemption
223
  */ 
224
  @JsonProperty(JSON_PROPERTY_WEB_DATA_EXEMPTION)
225
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
226
  public void setWebDataExemption(WebDataExemption webDataExemption) {
227
    this.webDataExemption = webDataExemption;
1✔
228
  }
1✔
229

230

231
  /**
232
   * Return true if this BusinessLineInfoUpdate object is equal to o.
233
   */
234
  @Override
235
  public boolean equals(Object o) {
236
    if (this == o) {
×
237
      return true;
×
238
    }
239
    if (o == null || getClass() != o.getClass()) {
×
240
      return false;
×
241
    }
242
    BusinessLineInfoUpdate businessLineInfoUpdate = (BusinessLineInfoUpdate) o;
×
NEW
243
    return Objects.equals(this.industryCode, businessLineInfoUpdate.industryCode) &&
×
244
        Objects.equals(this.salesChannels, businessLineInfoUpdate.salesChannels) &&
×
245
        Objects.equals(this.sourceOfFunds, businessLineInfoUpdate.sourceOfFunds) &&
×
246
        Objects.equals(this.webData, businessLineInfoUpdate.webData) &&
×
247
        Objects.equals(this.webDataExemption, businessLineInfoUpdate.webDataExemption);
×
248
  }
249

250
  @Override
251
  public int hashCode() {
NEW
252
    return Objects.hash(industryCode, salesChannels, sourceOfFunds, webData, webDataExemption);
×
253
  }
254

255
  @Override
256
  public String toString() {
257
    StringBuilder sb = new StringBuilder();
×
258
    sb.append("class BusinessLineInfoUpdate {\n");
×
259
    sb.append("    industryCode: ").append(toIndentedString(industryCode)).append("\n");
×
260
    sb.append("    salesChannels: ").append(toIndentedString(salesChannels)).append("\n");
×
261
    sb.append("    sourceOfFunds: ").append(toIndentedString(sourceOfFunds)).append("\n");
×
262
    sb.append("    webData: ").append(toIndentedString(webData)).append("\n");
×
263
    sb.append("    webDataExemption: ").append(toIndentedString(webDataExemption)).append("\n");
×
264
    sb.append("}");
×
265
    return sb.toString();
×
266
  }
267

268
  /**
269
   * Convert the given object to string with each line indented by 4 spaces
270
   * (except the first line).
271
   */
272
  private String toIndentedString(Object o) {
273
    if (o == null) {
×
274
      return "null";
×
275
    }
276
    return o.toString().replace("\n", "\n    ");
×
277
  }
278

279
/**
280
   * Create an instance of BusinessLineInfoUpdate given an JSON string
281
   *
282
   * @param jsonString JSON string
283
   * @return An instance of BusinessLineInfoUpdate
284
   * @throws JsonProcessingException if the JSON string is invalid with respect to BusinessLineInfoUpdate
285
   */
286
  public static BusinessLineInfoUpdate fromJson(String jsonString) throws JsonProcessingException {
287
    return JSON.getMapper().readValue(jsonString, BusinessLineInfoUpdate.class);
1✔
288
  }
289
/**
290
  * Convert an instance of BusinessLineInfoUpdate to an JSON string
291
  *
292
  * @return JSON string
293
  */
294
  public String toJson() throws JsonProcessingException {
295
    return JSON.getMapper().writeValueAsString(this);
1✔
296
  }
297
}
298

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