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

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

26 Mar 2024 10:51AM UTC coverage: 12.292%. First build
#3188

push

web-flow
Merge bb2b851b6 into 78d4e3259

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

12444 of 101236 relevant lines covered (12.29%)

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/checkout/PaypalUpdateOrderResponse.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 71
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.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
 * PaypalUpdateOrderResponse
32
 */
33
@JsonPropertyOrder({
34
  PaypalUpdateOrderResponse.JSON_PROPERTY_PAYMENT_DATA,
35
  PaypalUpdateOrderResponse.JSON_PROPERTY_STATUS
36
})
37

38
public class PaypalUpdateOrderResponse {
39
  public static final String JSON_PROPERTY_PAYMENT_DATA = "paymentData";
40
  private String paymentData;
41

42
  /**
43
   * The status of the request. This indicates whether the order was successfully updated with PayPal.
44
   */
NEW
45
  public enum StatusEnum {
×
NEW
46
    ERROR("error"),
×
47
    
NEW
48
    SUCCESS("success");
×
49

50
    private String value;
51

NEW
52
    StatusEnum(String value) {
×
NEW
53
      this.value = value;
×
NEW
54
    }
×
55

56
    @JsonValue
57
    public String getValue() {
NEW
58
      return value;
×
59
    }
60

61
    @Override
62
    public String toString() {
NEW
63
      return String.valueOf(value);
×
64
    }
65

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

77
  public static final String JSON_PROPERTY_STATUS = "status";
78
  private StatusEnum status;
79

NEW
80
  public PaypalUpdateOrderResponse() { 
×
NEW
81
  }
×
82

83
  public PaypalUpdateOrderResponse paymentData(String paymentData) {
NEW
84
    this.paymentData = paymentData;
×
NEW
85
    return this;
×
86
  }
87

88
   /**
89
   * The updated paymentData.
90
   * @return paymentData
91
  **/
92
  @ApiModelProperty(required = true, value = "The updated paymentData.")
93
  @JsonProperty(JSON_PROPERTY_PAYMENT_DATA)
94
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
95

96
  public String getPaymentData() {
NEW
97
    return paymentData;
×
98
  }
99

100

101
 /**
102
  * The updated paymentData.
103
  *
104
  * @param paymentData
105
  */ 
106
  @JsonProperty(JSON_PROPERTY_PAYMENT_DATA)
107
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
108
  public void setPaymentData(String paymentData) {
NEW
109
    this.paymentData = paymentData;
×
NEW
110
  }
×
111

112

113
  public PaypalUpdateOrderResponse status(StatusEnum status) {
NEW
114
    this.status = status;
×
NEW
115
    return this;
×
116
  }
117

118
   /**
119
   * The status of the request. This indicates whether the order was successfully updated with PayPal.
120
   * @return status
121
  **/
122
  @ApiModelProperty(required = true, value = "The status of the request. This indicates whether the order was successfully updated with PayPal.")
123
  @JsonProperty(JSON_PROPERTY_STATUS)
124
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
125

126
  public StatusEnum getStatus() {
NEW
127
    return status;
×
128
  }
129

130

131
 /**
132
  * The status of the request. This indicates whether the order was successfully updated with PayPal.
133
  *
134
  * @param status
135
  */ 
136
  @JsonProperty(JSON_PROPERTY_STATUS)
137
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
138
  public void setStatus(StatusEnum status) {
NEW
139
    this.status = status;
×
NEW
140
  }
×
141

142

143
  /**
144
   * Return true if this PaypalUpdateOrderResponse object is equal to o.
145
   */
146
  @Override
147
  public boolean equals(Object o) {
NEW
148
    if (this == o) {
×
NEW
149
      return true;
×
150
    }
NEW
151
    if (o == null || getClass() != o.getClass()) {
×
NEW
152
      return false;
×
153
    }
NEW
154
    PaypalUpdateOrderResponse paypalUpdateOrderResponse = (PaypalUpdateOrderResponse) o;
×
NEW
155
    return Objects.equals(this.paymentData, paypalUpdateOrderResponse.paymentData) &&
×
NEW
156
        Objects.equals(this.status, paypalUpdateOrderResponse.status);
×
157
  }
158

159
  @Override
160
  public int hashCode() {
NEW
161
    return Objects.hash(paymentData, status);
×
162
  }
163

164
  @Override
165
  public String toString() {
NEW
166
    StringBuilder sb = new StringBuilder();
×
NEW
167
    sb.append("class PaypalUpdateOrderResponse {\n");
×
NEW
168
    sb.append("    paymentData: ").append(toIndentedString(paymentData)).append("\n");
×
NEW
169
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
NEW
170
    sb.append("}");
×
NEW
171
    return sb.toString();
×
172
  }
173

174
  /**
175
   * Convert the given object to string with each line indented by 4 spaces
176
   * (except the first line).
177
   */
178
  private String toIndentedString(Object o) {
NEW
179
    if (o == null) {
×
NEW
180
      return "null";
×
181
    }
NEW
182
    return o.toString().replace("\n", "\n    ");
×
183
  }
184

185
/**
186
   * Create an instance of PaypalUpdateOrderResponse given an JSON string
187
   *
188
   * @param jsonString JSON string
189
   * @return An instance of PaypalUpdateOrderResponse
190
   * @throws JsonProcessingException if the JSON string is invalid with respect to PaypalUpdateOrderResponse
191
   */
192
  public static PaypalUpdateOrderResponse fromJson(String jsonString) throws JsonProcessingException {
NEW
193
    return JSON.getMapper().readValue(jsonString, PaypalUpdateOrderResponse.class);
×
194
  }
195
/**
196
  * Convert an instance of PaypalUpdateOrderResponse to an JSON string
197
  *
198
  * @return JSON string
199
  */
200
  public String toJson() throws JsonProcessingException {
NEW
201
    return JSON.getMapper().writeValueAsString(this);
×
202
  }
203
}
204

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