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

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

07 Aug 2024 01:54PM UTC coverage: 11.85%. First build
#3406

push

web-flow
Merge e17893d63 into 4d76e33cf

5 of 744 new or added lines in 34 files covered. (0.67%)

12525 of 105697 relevant lines covered (11.85%)

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/managementwebhooks/TerminalBoardingData.java
1
/*
2
 * Management Webhooks
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.managementwebhooks;
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
 * TerminalBoardingData
32
 */
33
@JsonPropertyOrder({
34
  TerminalBoardingData.JSON_PROPERTY_COMPANY_ID,
35
  TerminalBoardingData.JSON_PROPERTY_MERCHANT_ID,
36
  TerminalBoardingData.JSON_PROPERTY_STORE_ID,
37
  TerminalBoardingData.JSON_PROPERTY_UNIQUE_TERMINAL_ID
38
})
39

40
public class TerminalBoardingData {
41
  public static final String JSON_PROPERTY_COMPANY_ID = "companyId";
42
  private String companyId;
43

44
  public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId";
45
  private String merchantId;
46

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

50
  public static final String JSON_PROPERTY_UNIQUE_TERMINAL_ID = "uniqueTerminalId";
51
  private String uniqueTerminalId;
52

NEW
53
  public TerminalBoardingData() { 
×
NEW
54
  }
×
55

56
  public TerminalBoardingData companyId(String companyId) {
NEW
57
    this.companyId = companyId;
×
NEW
58
    return this;
×
59
  }
60

61
   /**
62
   * The unique identifier of the company account.
63
   * @return companyId
64
  **/
65
  @ApiModelProperty(required = true, value = "The unique identifier of the company account.")
66
  @JsonProperty(JSON_PROPERTY_COMPANY_ID)
67
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68

69
  public String getCompanyId() {
NEW
70
    return companyId;
×
71
  }
72

73

74
 /**
75
  * The unique identifier of the company account.
76
  *
77
  * @param companyId
78
  */ 
79
  @JsonProperty(JSON_PROPERTY_COMPANY_ID)
80
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81
  public void setCompanyId(String companyId) {
NEW
82
    this.companyId = companyId;
×
NEW
83
  }
×
84

85

86
  public TerminalBoardingData merchantId(String merchantId) {
NEW
87
    this.merchantId = merchantId;
×
NEW
88
    return this;
×
89
  }
90

91
   /**
92
   * The unique identifier of the merchant account.
93
   * @return merchantId
94
  **/
95
  @ApiModelProperty(value = "The unique identifier of the merchant account.")
96
  @JsonProperty(JSON_PROPERTY_MERCHANT_ID)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98

99
  public String getMerchantId() {
NEW
100
    return merchantId;
×
101
  }
102

103

104
 /**
105
  * The unique identifier of the merchant account.
106
  *
107
  * @param merchantId
108
  */ 
109
  @JsonProperty(JSON_PROPERTY_MERCHANT_ID)
110
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
111
  public void setMerchantId(String merchantId) {
NEW
112
    this.merchantId = merchantId;
×
NEW
113
  }
×
114

115

116
  public TerminalBoardingData storeId(String storeId) {
NEW
117
    this.storeId = storeId;
×
NEW
118
    return this;
×
119
  }
120

121
   /**
122
   * The unique identifier of the store.
123
   * @return storeId
124
  **/
125
  @ApiModelProperty(value = "The unique identifier of the store.")
126
  @JsonProperty(JSON_PROPERTY_STORE_ID)
127
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
128

129
  public String getStoreId() {
NEW
130
    return storeId;
×
131
  }
132

133

134
 /**
135
  * The unique identifier of the store.
136
  *
137
  * @param storeId
138
  */ 
139
  @JsonProperty(JSON_PROPERTY_STORE_ID)
140
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
141
  public void setStoreId(String storeId) {
NEW
142
    this.storeId = storeId;
×
NEW
143
  }
×
144

145

146
  public TerminalBoardingData uniqueTerminalId(String uniqueTerminalId) {
NEW
147
    this.uniqueTerminalId = uniqueTerminalId;
×
NEW
148
    return this;
×
149
  }
150

151
   /**
152
   * The unique identifier of the terminal.
153
   * @return uniqueTerminalId
154
  **/
155
  @ApiModelProperty(required = true, value = "The unique identifier of the terminal.")
156
  @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID)
157
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
158

159
  public String getUniqueTerminalId() {
NEW
160
    return uniqueTerminalId;
×
161
  }
162

163

164
 /**
165
  * The unique identifier of the terminal.
166
  *
167
  * @param uniqueTerminalId
168
  */ 
169
  @JsonProperty(JSON_PROPERTY_UNIQUE_TERMINAL_ID)
170
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
171
  public void setUniqueTerminalId(String uniqueTerminalId) {
NEW
172
    this.uniqueTerminalId = uniqueTerminalId;
×
NEW
173
  }
×
174

175

176
  /**
177
   * Return true if this TerminalBoardingData object is equal to o.
178
   */
179
  @Override
180
  public boolean equals(Object o) {
NEW
181
    if (this == o) {
×
NEW
182
      return true;
×
183
    }
NEW
184
    if (o == null || getClass() != o.getClass()) {
×
NEW
185
      return false;
×
186
    }
NEW
187
    TerminalBoardingData terminalBoardingData = (TerminalBoardingData) o;
×
NEW
188
    return Objects.equals(this.companyId, terminalBoardingData.companyId) &&
×
NEW
189
        Objects.equals(this.merchantId, terminalBoardingData.merchantId) &&
×
NEW
190
        Objects.equals(this.storeId, terminalBoardingData.storeId) &&
×
NEW
191
        Objects.equals(this.uniqueTerminalId, terminalBoardingData.uniqueTerminalId);
×
192
  }
193

194
  @Override
195
  public int hashCode() {
NEW
196
    return Objects.hash(companyId, merchantId, storeId, uniqueTerminalId);
×
197
  }
198

199
  @Override
200
  public String toString() {
NEW
201
    StringBuilder sb = new StringBuilder();
×
NEW
202
    sb.append("class TerminalBoardingData {\n");
×
NEW
203
    sb.append("    companyId: ").append(toIndentedString(companyId)).append("\n");
×
NEW
204
    sb.append("    merchantId: ").append(toIndentedString(merchantId)).append("\n");
×
NEW
205
    sb.append("    storeId: ").append(toIndentedString(storeId)).append("\n");
×
NEW
206
    sb.append("    uniqueTerminalId: ").append(toIndentedString(uniqueTerminalId)).append("\n");
×
NEW
207
    sb.append("}");
×
NEW
208
    return sb.toString();
×
209
  }
210

211
  /**
212
   * Convert the given object to string with each line indented by 4 spaces
213
   * (except the first line).
214
   */
215
  private String toIndentedString(Object o) {
NEW
216
    if (o == null) {
×
NEW
217
      return "null";
×
218
    }
NEW
219
    return o.toString().replace("\n", "\n    ");
×
220
  }
221

222
/**
223
   * Create an instance of TerminalBoardingData given an JSON string
224
   *
225
   * @param jsonString JSON string
226
   * @return An instance of TerminalBoardingData
227
   * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalBoardingData
228
   */
229
  public static TerminalBoardingData fromJson(String jsonString) throws JsonProcessingException {
NEW
230
    return JSON.getMapper().readValue(jsonString, TerminalBoardingData.class);
×
231
  }
232
/**
233
  * Convert an instance of TerminalBoardingData to an JSON string
234
  *
235
  * @return JSON string
236
  */
237
  public String toJson() throws JsonProcessingException {
NEW
238
    return JSON.getMapper().writeValueAsString(this);
×
239
  }
240
}
241

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