• 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/marketpayaccount/ServiceError.java
1
/*
2
 * Transfers 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.transfers;
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.transfers.NameLocation;
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
 * MerchantData
33
 */
34
@JsonPropertyOrder({
35
  MerchantData.JSON_PROPERTY_ACQUIRER_ID,
36
  MerchantData.JSON_PROPERTY_MCC,
37
  MerchantData.JSON_PROPERTY_MERCHANT_ID,
38
  MerchantData.JSON_PROPERTY_NAME_LOCATION,
39
  MerchantData.JSON_PROPERTY_POSTAL_CODE
40
})
41

42
public class MerchantData {
43
  public static final String JSON_PROPERTY_ACQUIRER_ID = "acquirerId";
44
  private String acquirerId;
45

46
  public static final String JSON_PROPERTY_MCC = "mcc";
47
  private String mcc;
48

49
  public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId";
50
  private String merchantId;
51

52
  public static final String JSON_PROPERTY_NAME_LOCATION = "nameLocation";
53
  private NameLocation nameLocation;
54

55
  public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode";
56
  private String postalCode;
57

58
  public MerchantData() { 
×
59
  }
×
60

61
  public MerchantData acquirerId(String acquirerId) {
62
    this.acquirerId = acquirerId;
×
63
    return this;
×
64
  }
65

66
   /**
67
   * The unique identifier of the merchant's acquirer.
68
   * @return acquirerId
69
  **/
70
  @ApiModelProperty(value = "The unique identifier of the merchant's acquirer.")
71
  @JsonProperty(JSON_PROPERTY_ACQUIRER_ID)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73

74
  public String getAcquirerId() {
75
    return acquirerId;
×
76
  }
77

78

79
  @JsonProperty(JSON_PROPERTY_ACQUIRER_ID)
80
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81
  public void setAcquirerId(String acquirerId) {
82
    this.acquirerId = acquirerId;
×
83
  }
×
84

85

86
  public MerchantData mcc(String mcc) {
87
    this.mcc = mcc;
×
88
    return this;
×
89
  }
90

91
   /**
92
   * The merchant category code.
93
   * @return mcc
94
  **/
95
  @ApiModelProperty(value = "The merchant category code.")
96
  @JsonProperty(JSON_PROPERTY_MCC)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98

99
  public String getMcc() {
100
    return mcc;
×
101
  }
102

103

104
  @JsonProperty(JSON_PROPERTY_MCC)
105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106
  public void setMcc(String mcc) {
107
    this.mcc = mcc;
×
108
  }
×
109

110

111
  public MerchantData merchantId(String merchantId) {
112
    this.merchantId = merchantId;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * The merchant identifier.
118
   * @return merchantId
119
  **/
120
  @ApiModelProperty(value = "The merchant identifier.")
121
  @JsonProperty(JSON_PROPERTY_MERCHANT_ID)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public String getMerchantId() {
125
    return merchantId;
×
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_MERCHANT_ID)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setMerchantId(String merchantId) {
132
    this.merchantId = merchantId;
×
133
  }
×
134

135

136
  public MerchantData nameLocation(NameLocation nameLocation) {
137
    this.nameLocation = nameLocation;
×
138
    return this;
×
139
  }
140

141
   /**
142
   * Get nameLocation
143
   * @return nameLocation
144
  **/
145
  @ApiModelProperty(value = "")
146
  @JsonProperty(JSON_PROPERTY_NAME_LOCATION)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148

149
  public NameLocation getNameLocation() {
150
    return nameLocation;
×
151
  }
152

153

154
  @JsonProperty(JSON_PROPERTY_NAME_LOCATION)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156
  public void setNameLocation(NameLocation nameLocation) {
157
    this.nameLocation = nameLocation;
×
158
  }
×
159

160

161
  public MerchantData postalCode(String postalCode) {
162
    this.postalCode = postalCode;
×
163
    return this;
×
164
  }
165

166
   /**
167
   * The merchant postal code.
168
   * @return postalCode
169
  **/
170
  @ApiModelProperty(value = "The merchant postal code.")
171
  @JsonProperty(JSON_PROPERTY_POSTAL_CODE)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173

174
  public String getPostalCode() {
175
    return postalCode;
×
176
  }
177

178

179
  @JsonProperty(JSON_PROPERTY_POSTAL_CODE)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181
  public void setPostalCode(String postalCode) {
182
    this.postalCode = postalCode;
×
183
  }
×
184

185

186
  /**
187
   * Return true if this MerchantData object is equal to o.
188
   */
189
  @Override
190
  public boolean equals(Object o) {
191
    if (this == o) {
×
192
      return true;
×
193
    }
194
    if (o == null || getClass() != o.getClass()) {
×
195
      return false;
×
196
    }
197
    MerchantData merchantData = (MerchantData) o;
×
198
    return Objects.equals(this.acquirerId, merchantData.acquirerId) &&
×
199
        Objects.equals(this.mcc, merchantData.mcc) &&
×
200
        Objects.equals(this.merchantId, merchantData.merchantId) &&
×
201
        Objects.equals(this.nameLocation, merchantData.nameLocation) &&
×
202
        Objects.equals(this.postalCode, merchantData.postalCode);
×
203
  }
204

205
  @Override
206
  public int hashCode() {
207
    return Objects.hash(acquirerId, mcc, merchantId, nameLocation, postalCode);
×
208
  }
209

210
  @Override
211
  public String toString() {
212
    StringBuilder sb = new StringBuilder();
×
213
    sb.append("class MerchantData {\n");
×
214
    sb.append("    acquirerId: ").append(toIndentedString(acquirerId)).append("\n");
×
215
    sb.append("    mcc: ").append(toIndentedString(mcc)).append("\n");
×
216
    sb.append("    merchantId: ").append(toIndentedString(merchantId)).append("\n");
×
217
    sb.append("    nameLocation: ").append(toIndentedString(nameLocation)).append("\n");
×
218
    sb.append("    postalCode: ").append(toIndentedString(postalCode)).append("\n");
×
219
    sb.append("}");
×
220
    return sb.toString();
×
221
  }
222

223
  /**
224
   * Convert the given object to string with each line indented by 4 spaces
225
   * (except the first line).
226
   */
227
  private String toIndentedString(Object o) {
228
    if (o == null) {
×
229
      return "null";
×
230
    }
231
    return o.toString().replace("\n", "\n    ");
×
232
  }
233

234
/**
235
   * Create an instance of MerchantData given an JSON string
236
   *
237
   * @param jsonString JSON string
238
   * @return An instance of MerchantData
239
   * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantData
240
   */
241
  public static MerchantData fromJson(String jsonString) throws JsonProcessingException {
242
    return JSON.getMapper().readValue(jsonString, MerchantData.class);
×
243
  }
244
/**
245
  * Convert an instance of MerchantData to an JSON string
246
  *
247
  * @return JSON string
248
  */
249
  public String toJson() throws JsonProcessingException {
250
    return JSON.getMapper().writeValueAsString(this);
×
251
  }
252
}
253

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