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

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

23 Oct 2023 11:17AM UTC coverage: 12.828%. First build
#2732

push

web-flow
Merge c1e36748c into b98d01a7e

2569 of 2569 new or added lines in 108 files covered. (100.0%)

12356 of 96323 relevant lines covered (12.83%)

0.13 hits per line

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

24.0
/src/main/java/com/adyen/model/transfers/InternalCategoryData.java
1
/*
2
 * Transfers API
3
 *
4
 * The version of the OpenAPI document: 4
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.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

30
/**
31
 * InternalCategoryData
32
 */
33
@JsonPropertyOrder({
34
  InternalCategoryData.JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE,
35
  InternalCategoryData.JSON_PROPERTY_MODIFICATION_PSP_REFERENCE,
36
  InternalCategoryData.JSON_PROPERTY_TYPE
37
})
38

39
public class InternalCategoryData {
40
  public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE = "modificationMerchantReference";
41
  private String modificationMerchantReference;
42

43
  public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE = "modificationPspReference";
44
  private String modificationPspReference;
45

46
  /**
47
   * **internal**
48
   */
49
  public enum TypeEnum {
1✔
50
    INTERNAL("internal");
1✔
51

52
    private String value;
53

54
    TypeEnum(String value) {
1✔
55
      this.value = value;
1✔
56
    }
1✔
57

58
    @JsonValue
59
    public String getValue() {
60
      return value;
1✔
61
    }
62

63
    @Override
64
    public String toString() {
65
      return String.valueOf(value);
×
66
    }
67

68
    @JsonCreator
69
    public static TypeEnum fromValue(String value) {
70
      for (TypeEnum b : TypeEnum.values()) {
1✔
71
        if (b.value.equals(value)) {
1✔
72
          return b;
×
73
        }
74
      }
75
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
1✔
76
    }
77
  }
78

79
  public static final String JSON_PROPERTY_TYPE = "type";
80
  private TypeEnum type = TypeEnum.INTERNAL;
1✔
81

82
  public InternalCategoryData() { 
1✔
83
  }
1✔
84

85
  public InternalCategoryData modificationMerchantReference(String modificationMerchantReference) {
86
    this.modificationMerchantReference = modificationMerchantReference;
×
87
    return this;
×
88
  }
89

90
   /**
91
   * The capture's merchant reference included in the transfer.
92
   * @return modificationMerchantReference
93
  **/
94
  @ApiModelProperty(value = "The capture's merchant reference included in the transfer.")
95
  @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE)
96
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
97

98
  public String getModificationMerchantReference() {
99
    return modificationMerchantReference;
×
100
  }
101

102

103
  @JsonProperty(JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE)
104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
105
  public void setModificationMerchantReference(String modificationMerchantReference) {
106
    this.modificationMerchantReference = modificationMerchantReference;
×
107
  }
×
108

109

110
  public InternalCategoryData modificationPspReference(String modificationPspReference) {
111
    this.modificationPspReference = modificationPspReference;
×
112
    return this;
×
113
  }
114

115
   /**
116
   * The capture reference included in the transfer.
117
   * @return modificationPspReference
118
  **/
119
  @ApiModelProperty(value = "The capture reference included in the transfer.")
120
  @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122

123
  public String getModificationPspReference() {
124
    return modificationPspReference;
×
125
  }
126

127

128
  @JsonProperty(JSON_PROPERTY_MODIFICATION_PSP_REFERENCE)
129
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
130
  public void setModificationPspReference(String modificationPspReference) {
131
    this.modificationPspReference = modificationPspReference;
×
132
  }
×
133

134

135
  public InternalCategoryData type(TypeEnum type) {
136
    this.type = type;
×
137
    return this;
×
138
  }
139

140
   /**
141
   * **internal**
142
   * @return type
143
  **/
144
  @ApiModelProperty(value = "**internal**")
145
  @JsonProperty(JSON_PROPERTY_TYPE)
146
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147

148
  public TypeEnum getType() {
149
    return type;
×
150
  }
151

152

153
  @JsonProperty(JSON_PROPERTY_TYPE)
154
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
155
  public void setType(TypeEnum type) {
156
    this.type = type;
×
157
  }
×
158

159

160
  /**
161
   * Return true if this InternalCategoryData object is equal to o.
162
   */
163
  @Override
164
  public boolean equals(Object o) {
165
    if (this == o) {
×
166
      return true;
×
167
    }
168
    if (o == null || getClass() != o.getClass()) {
×
169
      return false;
×
170
    }
171
    InternalCategoryData internalCategoryData = (InternalCategoryData) o;
×
172
    return Objects.equals(this.modificationMerchantReference, internalCategoryData.modificationMerchantReference) &&
×
173
        Objects.equals(this.modificationPspReference, internalCategoryData.modificationPspReference) &&
×
174
        Objects.equals(this.type, internalCategoryData.type);
×
175
  }
176

177
  @Override
178
  public int hashCode() {
179
    return Objects.hash(modificationMerchantReference, modificationPspReference, type);
×
180
  }
181

182
  @Override
183
  public String toString() {
184
    StringBuilder sb = new StringBuilder();
×
185
    sb.append("class InternalCategoryData {\n");
×
186
    sb.append("    modificationMerchantReference: ").append(toIndentedString(modificationMerchantReference)).append("\n");
×
187
    sb.append("    modificationPspReference: ").append(toIndentedString(modificationPspReference)).append("\n");
×
188
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
189
    sb.append("}");
×
190
    return sb.toString();
×
191
  }
192

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

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

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