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

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

30 Oct 2023 03:06PM CUT coverage: 12.824%. First build
#2775

push

web-flow
Merge 9921af673 into 891748f22

112 of 112 new or added lines in 12 files covered. (100.0%)

12346 of 96273 relevant lines covered (12.82%)

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/checkout/PaymentReversalRequest.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 70
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.checkout;
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.checkout.ApplicationInfo;
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
 * PaymentReversalRequest
33
 */
34
@JsonPropertyOrder({
35
  PaymentReversalRequest.JSON_PROPERTY_APPLICATION_INFO,
36
  PaymentReversalRequest.JSON_PROPERTY_MERCHANT_ACCOUNT,
37
  PaymentReversalRequest.JSON_PROPERTY_REFERENCE
38
})
39

40
public class PaymentReversalRequest {
41
  public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo";
42
  private ApplicationInfo applicationInfo;
43

44
  public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount";
45
  private String merchantAccount;
46

47
  public static final String JSON_PROPERTY_REFERENCE = "reference";
48
  private String reference;
49

50
  public PaymentReversalRequest() { 
×
51
  }
×
52

53
  public PaymentReversalRequest applicationInfo(ApplicationInfo applicationInfo) {
54
    this.applicationInfo = applicationInfo;
×
55
    return this;
×
56
  }
57

58
   /**
59
   * Get applicationInfo
60
   * @return applicationInfo
61
  **/
62
  @ApiModelProperty(value = "")
63
  @JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
64
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
65

66
  public ApplicationInfo getApplicationInfo() {
67
    return applicationInfo;
×
68
  }
69

70

71
  @JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73
  public void setApplicationInfo(ApplicationInfo applicationInfo) {
74
    this.applicationInfo = applicationInfo;
×
75
  }
×
76

77

78
  public PaymentReversalRequest merchantAccount(String merchantAccount) {
79
    this.merchantAccount = merchantAccount;
×
80
    return this;
×
81
  }
82

83
   /**
84
   * The merchant account that is used to process the payment.
85
   * @return merchantAccount
86
  **/
87
  @ApiModelProperty(required = true, value = "The merchant account that is used to process the payment.")
88
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
89
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
90

91
  public String getMerchantAccount() {
92
    return merchantAccount;
×
93
  }
94

95

96
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98
  public void setMerchantAccount(String merchantAccount) {
99
    this.merchantAccount = merchantAccount;
×
100
  }
×
101

102

103
  public PaymentReversalRequest reference(String reference) {
104
    this.reference = reference;
×
105
    return this;
×
106
  }
107

108
   /**
109
   * Your reference for the reversal request. Maximum length: 80 characters.
110
   * @return reference
111
  **/
112
  @ApiModelProperty(value = "Your reference for the reversal request. Maximum length: 80 characters.")
113
  @JsonProperty(JSON_PROPERTY_REFERENCE)
114
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
115

116
  public String getReference() {
117
    return reference;
×
118
  }
119

120

121
  @JsonProperty(JSON_PROPERTY_REFERENCE)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123
  public void setReference(String reference) {
124
    this.reference = reference;
×
125
  }
×
126

127

128
  /**
129
   * Return true if this PaymentReversalRequest object is equal to o.
130
   */
131
  @Override
132
  public boolean equals(Object o) {
133
    if (this == o) {
×
134
      return true;
×
135
    }
136
    if (o == null || getClass() != o.getClass()) {
×
137
      return false;
×
138
    }
139
    PaymentReversalRequest paymentReversalRequest = (PaymentReversalRequest) o;
×
140
    return Objects.equals(this.applicationInfo, paymentReversalRequest.applicationInfo) &&
×
141
        Objects.equals(this.merchantAccount, paymentReversalRequest.merchantAccount) &&
×
142
        Objects.equals(this.reference, paymentReversalRequest.reference);
×
143
  }
144

145
  @Override
146
  public int hashCode() {
147
    return Objects.hash(applicationInfo, merchantAccount, reference);
×
148
  }
149

150
  @Override
151
  public String toString() {
152
    StringBuilder sb = new StringBuilder();
×
153
    sb.append("class PaymentReversalRequest {\n");
×
154
    sb.append("    applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n");
×
155
    sb.append("    merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
×
156
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
157
    sb.append("}");
×
158
    return sb.toString();
×
159
  }
160

161
  /**
162
   * Convert the given object to string with each line indented by 4 spaces
163
   * (except the first line).
164
   */
165
  private String toIndentedString(Object o) {
166
    if (o == null) {
×
167
      return "null";
×
168
    }
169
    return o.toString().replace("\n", "\n    ");
×
170
  }
171

172
/**
173
   * Create an instance of PaymentReversalRequest given an JSON string
174
   *
175
   * @param jsonString JSON string
176
   * @return An instance of PaymentReversalRequest
177
   * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentReversalRequest
178
   */
179
  public static PaymentReversalRequest fromJson(String jsonString) throws JsonProcessingException {
180
    return JSON.getMapper().readValue(jsonString, PaymentReversalRequest.class);
×
181
  }
182
/**
183
  * Convert an instance of PaymentReversalRequest to an JSON string
184
  *
185
  * @return JSON string
186
  */
187
  public String toJson() throws JsonProcessingException {
188
    return JSON.getMapper().writeValueAsString(this);
×
189
  }
190
}
191

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