• 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/MigratedStores.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
 * MigratedStores
33
 */
34
@JsonPropertyOrder({
35
  MigratedStores.JSON_PROPERTY_BUSINESS_LINE_ID,
36
  MigratedStores.JSON_PROPERTY_STORE_CODE,
37
  MigratedStores.JSON_PROPERTY_STORE_ID,
38
  MigratedStores.JSON_PROPERTY_STORE_REFERENCE
39
})
40

41
public class MigratedStores {
42
  public static final String JSON_PROPERTY_BUSINESS_LINE_ID = "businessLineId";
43
  private String businessLineId;
44

45
  public static final String JSON_PROPERTY_STORE_CODE = "storeCode";
46
  private String storeCode;
47

48
  public static final String JSON_PROPERTY_STORE_ID = "storeId";
49
  private String storeId;
50

51
  public static final String JSON_PROPERTY_STORE_REFERENCE = "storeReference";
52
  private String storeReference;
53

54
  public MigratedStores() { 
×
55
  }
×
56

57
  public MigratedStores businessLineId(String businessLineId) {
58
    this.businessLineId = businessLineId;
×
59
    return this;
×
60
  }
61

62
   /**
63
   * The unique identifier of the business line associated with the migrated account holder in the balance platform.
64
   * @return businessLineId
65
  **/
66
  @ApiModelProperty(value = "The unique identifier of the business line associated with the migrated account holder in the balance platform.")
67
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
68
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69

70
  public String getBusinessLineId() {
71
    return businessLineId;
×
72
  }
73

74

75
  @JsonProperty(JSON_PROPERTY_BUSINESS_LINE_ID)
76
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
77
  public void setBusinessLineId(String businessLineId) {
78
    this.businessLineId = businessLineId;
×
79
  }
×
80

81

82
  public MigratedStores storeCode(String storeCode) {
83
    this.storeCode = storeCode;
×
84
    return this;
×
85
  }
86

87
   /**
88
   * The unique identifier of the store associated with the migrated account holder in the classic integration.
89
   * @return storeCode
90
  **/
91
  @ApiModelProperty(value = "The unique identifier of the store associated with the migrated account holder in the classic integration.")
92
  @JsonProperty(JSON_PROPERTY_STORE_CODE)
93
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
94

95
  public String getStoreCode() {
96
    return storeCode;
×
97
  }
98

99

100
  @JsonProperty(JSON_PROPERTY_STORE_CODE)
101
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
102
  public void setStoreCode(String storeCode) {
103
    this.storeCode = storeCode;
×
104
  }
×
105

106

107
  public MigratedStores storeId(String storeId) {
108
    this.storeId = storeId;
×
109
    return this;
×
110
  }
111

112
   /**
113
   * The unique identifier of the store associated with the migrated account holder in the balance platform.
114
   * @return storeId
115
  **/
116
  @ApiModelProperty(value = "The unique identifier of the store associated with the migrated account holder in the balance platform.")
117
  @JsonProperty(JSON_PROPERTY_STORE_ID)
118
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
119

120
  public String getStoreId() {
121
    return storeId;
×
122
  }
123

124

125
  @JsonProperty(JSON_PROPERTY_STORE_ID)
126
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
127
  public void setStoreId(String storeId) {
128
    this.storeId = storeId;
×
129
  }
×
130

131

132
  public MigratedStores storeReference(String storeReference) {
133
    this.storeReference = storeReference;
×
134
    return this;
×
135
  }
136

137
   /**
138
   * Your reference for the store in the classic integration. The [Customer Area](https://ca-test.adyen.com/) uses this value for the store description.
139
   * @return storeReference
140
  **/
141
  @ApiModelProperty(value = "Your reference for the store in the classic integration. The [Customer Area](https://ca-test.adyen.com/) uses this value for the store description.")
142
  @JsonProperty(JSON_PROPERTY_STORE_REFERENCE)
143
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
144

145
  public String getStoreReference() {
146
    return storeReference;
×
147
  }
148

149

150
  @JsonProperty(JSON_PROPERTY_STORE_REFERENCE)
151
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152
  public void setStoreReference(String storeReference) {
153
    this.storeReference = storeReference;
×
154
  }
×
155

156

157
  /**
158
   * Return true if this MigratedStores object is equal to o.
159
   */
160
  @Override
161
  public boolean equals(Object o) {
162
    if (this == o) {
×
163
      return true;
×
164
    }
165
    if (o == null || getClass() != o.getClass()) {
×
166
      return false;
×
167
    }
168
    MigratedStores migratedStores = (MigratedStores) o;
×
169
    return Objects.equals(this.businessLineId, migratedStores.businessLineId) &&
×
170
        Objects.equals(this.storeCode, migratedStores.storeCode) &&
×
171
        Objects.equals(this.storeId, migratedStores.storeId) &&
×
172
        Objects.equals(this.storeReference, migratedStores.storeReference);
×
173
  }
174

175
  @Override
176
  public int hashCode() {
177
    return Objects.hash(businessLineId, storeCode, storeId, storeReference);
×
178
  }
179

180
  @Override
181
  public String toString() {
182
    StringBuilder sb = new StringBuilder();
×
183
    sb.append("class MigratedStores {\n");
×
184
    sb.append("    businessLineId: ").append(toIndentedString(businessLineId)).append("\n");
×
185
    sb.append("    storeCode: ").append(toIndentedString(storeCode)).append("\n");
×
186
    sb.append("    storeId: ").append(toIndentedString(storeId)).append("\n");
×
187
    sb.append("    storeReference: ").append(toIndentedString(storeReference)).append("\n");
×
188
    sb.append("}");
×
189
    return sb.toString();
×
190
  }
191

192
  /**
193
   * Convert the given object to string with each line indented by 4 spaces
194
   * (except the first line).
195
   */
196
  private String toIndentedString(Object o) {
197
    if (o == null) {
×
198
      return "null";
×
199
    }
200
    return o.toString().replace("\n", "\n    ");
×
201
  }
202

203
/**
204
   * Create an instance of MigratedStores given an JSON string
205
   *
206
   * @param jsonString JSON string
207
   * @return An instance of MigratedStores
208
   * @throws JsonProcessingException if the JSON string is invalid with respect to MigratedStores
209
   */
210
  public static MigratedStores fromJson(String jsonString) throws JsonProcessingException {
211
    return JSON.getMapper().readValue(jsonString, MigratedStores.class);
×
212
  }
213
/**
214
  * Convert an instance of MigratedStores to an JSON string
215
  *
216
  * @return JSON string
217
  */
218
  public String toJson() throws JsonProcessingException {
219
    return JSON.getMapper().writeValueAsString(this);
×
220
  }
221
}
222

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