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

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

14 Oct 2024 01:44PM UTC coverage: 11.796%. First build
#3625

push

web-flow
Merge f7b27957c into f192c83ed

0 of 187 new or added lines in 9 files covered. (0.0%)

12578 of 106629 relevant lines covered (11.8%)

0.12 hits per line

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

0.0
/src/main/java/com/adyen/model/management/JCBInfo.java
1
/*
2
 * 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.management;
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.management.TransactionDescriptionInfo;
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
 * JCBInfo
33
 */
34
@JsonPropertyOrder({
35
  JCBInfo.JSON_PROPERTY_MID_NUMBER,
36
  JCBInfo.JSON_PROPERTY_REUSE_MID_NUMBER,
37
  JCBInfo.JSON_PROPERTY_SERVICE_LEVEL,
38
  JCBInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION
39
})
40

41
public class JCBInfo {
42
  public static final String JSON_PROPERTY_MID_NUMBER = "midNumber";
43
  private String midNumber;
44

45
  public static final String JSON_PROPERTY_REUSE_MID_NUMBER = "reuseMidNumber";
46
  private Boolean reuseMidNumber;
47

48
  /**
49
   * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.
50
   */
NEW
51
  public enum ServiceLevelEnum {
×
NEW
52
    NOCONTRACT("noContract"),
×
53
    
NEW
54
    GATEWAYCONTRACT("gatewayContract");
×
55

56
    private String value;
57

NEW
58
    ServiceLevelEnum(String value) {
×
NEW
59
      this.value = value;
×
NEW
60
    }
×
61

62
    @JsonValue
63
    public String getValue() {
NEW
64
      return value;
×
65
    }
66

67
    @Override
68
    public String toString() {
NEW
69
      return String.valueOf(value);
×
70
    }
71

72
    @JsonCreator
73
    public static ServiceLevelEnum fromValue(String value) {
NEW
74
      for (ServiceLevelEnum b : ServiceLevelEnum.values()) {
×
NEW
75
        if (b.value.equals(value)) {
×
NEW
76
          return b;
×
77
        }
78
      }
NEW
79
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
80
    }
81
  }
82

83
  public static final String JSON_PROPERTY_SERVICE_LEVEL = "serviceLevel";
84
  private ServiceLevelEnum serviceLevel;
85

86
  public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription";
87
  private TransactionDescriptionInfo transactionDescription;
88

NEW
89
  public JCBInfo() { 
×
NEW
90
  }
×
91

92
  public JCBInfo midNumber(String midNumber) {
NEW
93
    this.midNumber = midNumber;
×
NEW
94
    return this;
×
95
  }
96

97
   /**
98
   * MID (Merchant ID) number. Format: 10 numeric characters.  Must be provided for both `noContract` and `gatewayContract` service levels.
99
   * @return midNumber
100
  **/
101
  @ApiModelProperty(value = "MID (Merchant ID) number. Format: 10 numeric characters.  Must be provided for both `noContract` and `gatewayContract` service levels.")
102
  @JsonProperty(JSON_PROPERTY_MID_NUMBER)
103
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
104

105
  public String getMidNumber() {
NEW
106
    return midNumber;
×
107
  }
108

109

110
 /**
111
  * MID (Merchant ID) number. Format: 10 numeric characters.  Must be provided for both `noContract` and `gatewayContract` service levels.
112
  *
113
  * @param midNumber
114
  */ 
115
  @JsonProperty(JSON_PROPERTY_MID_NUMBER)
116
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
117
  public void setMidNumber(String midNumber) {
NEW
118
    this.midNumber = midNumber;
×
NEW
119
  }
×
120

121

122
  public JCBInfo reuseMidNumber(Boolean reuseMidNumber) {
NEW
123
    this.reuseMidNumber = reuseMidNumber;
×
NEW
124
    return this;
×
125
  }
126

127
   /**
128
   * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method.  This is applicable for both `noContract` and `gatewayContract` service levels.  The default value is `false`.
129
   * @return reuseMidNumber
130
  **/
131
  @ApiModelProperty(value = "Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method.  This is applicable for both `noContract` and `gatewayContract` service levels.  The default value is `false`.")
132
  @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER)
133
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134

135
  public Boolean getReuseMidNumber() {
NEW
136
    return reuseMidNumber;
×
137
  }
138

139

140
 /**
141
  * Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method.  This is applicable for both `noContract` and `gatewayContract` service levels.  The default value is `false`.
142
  *
143
  * @param reuseMidNumber
144
  */ 
145
  @JsonProperty(JSON_PROPERTY_REUSE_MID_NUMBER)
146
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147
  public void setReuseMidNumber(Boolean reuseMidNumber) {
NEW
148
    this.reuseMidNumber = reuseMidNumber;
×
NEW
149
  }
×
150

151

152
  public JCBInfo serviceLevel(ServiceLevelEnum serviceLevel) {
NEW
153
    this.serviceLevel = serviceLevel;
×
NEW
154
    return this;
×
155
  }
156

157
   /**
158
   * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.
159
   * @return serviceLevel
160
  **/
161
  @ApiModelProperty(required = true, value = "Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.")
162
  @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL)
163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
164

165
  public ServiceLevelEnum getServiceLevel() {
NEW
166
    return serviceLevel;
×
167
  }
168

169

170
 /**
171
  * Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.
172
  *
173
  * @param serviceLevel
174
  */ 
175
  @JsonProperty(JSON_PROPERTY_SERVICE_LEVEL)
176
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
177
  public void setServiceLevel(ServiceLevelEnum serviceLevel) {
NEW
178
    this.serviceLevel = serviceLevel;
×
NEW
179
  }
×
180

181

182
  public JCBInfo transactionDescription(TransactionDescriptionInfo transactionDescription) {
NEW
183
    this.transactionDescription = transactionDescription;
×
NEW
184
    return this;
×
185
  }
186

187
   /**
188
   * Get transactionDescription
189
   * @return transactionDescription
190
  **/
191
  @ApiModelProperty(value = "")
192
  @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION)
193
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
194

195
  public TransactionDescriptionInfo getTransactionDescription() {
NEW
196
    return transactionDescription;
×
197
  }
198

199

200
 /**
201
  * transactionDescription
202
  *
203
  * @param transactionDescription
204
  */ 
205
  @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION)
206
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
207
  public void setTransactionDescription(TransactionDescriptionInfo transactionDescription) {
NEW
208
    this.transactionDescription = transactionDescription;
×
NEW
209
  }
×
210

211

212
  /**
213
   * Return true if this JCBInfo object is equal to o.
214
   */
215
  @Override
216
  public boolean equals(Object o) {
NEW
217
    if (this == o) {
×
NEW
218
      return true;
×
219
    }
NEW
220
    if (o == null || getClass() != o.getClass()) {
×
NEW
221
      return false;
×
222
    }
NEW
223
    JCBInfo jcBInfo = (JCBInfo) o;
×
NEW
224
    return Objects.equals(this.midNumber, jcBInfo.midNumber) &&
×
NEW
225
        Objects.equals(this.reuseMidNumber, jcBInfo.reuseMidNumber) &&
×
NEW
226
        Objects.equals(this.serviceLevel, jcBInfo.serviceLevel) &&
×
NEW
227
        Objects.equals(this.transactionDescription, jcBInfo.transactionDescription);
×
228
  }
229

230
  @Override
231
  public int hashCode() {
NEW
232
    return Objects.hash(midNumber, reuseMidNumber, serviceLevel, transactionDescription);
×
233
  }
234

235
  @Override
236
  public String toString() {
NEW
237
    StringBuilder sb = new StringBuilder();
×
NEW
238
    sb.append("class JCBInfo {\n");
×
NEW
239
    sb.append("    midNumber: ").append(toIndentedString(midNumber)).append("\n");
×
NEW
240
    sb.append("    reuseMidNumber: ").append(toIndentedString(reuseMidNumber)).append("\n");
×
NEW
241
    sb.append("    serviceLevel: ").append(toIndentedString(serviceLevel)).append("\n");
×
NEW
242
    sb.append("    transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n");
×
NEW
243
    sb.append("}");
×
NEW
244
    return sb.toString();
×
245
  }
246

247
  /**
248
   * Convert the given object to string with each line indented by 4 spaces
249
   * (except the first line).
250
   */
251
  private String toIndentedString(Object o) {
NEW
252
    if (o == null) {
×
NEW
253
      return "null";
×
254
    }
NEW
255
    return o.toString().replace("\n", "\n    ");
×
256
  }
257

258
/**
259
   * Create an instance of JCBInfo given an JSON string
260
   *
261
   * @param jsonString JSON string
262
   * @return An instance of JCBInfo
263
   * @throws JsonProcessingException if the JSON string is invalid with respect to JCBInfo
264
   */
265
  public static JCBInfo fromJson(String jsonString) throws JsonProcessingException {
NEW
266
    return JSON.getMapper().readValue(jsonString, JCBInfo.class);
×
267
  }
268
/**
269
  * Convert an instance of JCBInfo to an JSON string
270
  *
271
  * @return JSON string
272
  */
273
  public String toJson() throws JsonProcessingException {
NEW
274
    return JSON.getMapper().writeValueAsString(this);
×
275
  }
276
}
277

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