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

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

24 May 2024 12:08PM UTC coverage: 12.05%. First build
#3286

push

web-flow
Merge 8e2ea04f7 into 67f331171

10 of 150 new or added lines in 13 files covered. (6.67%)

12475 of 103524 relevant lines covered (12.05%)

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/PaymentMethodUPIApps.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
 * PaymentMethodUPIApps
32
 */
33
@JsonPropertyOrder({
34
  PaymentMethodUPIApps.JSON_PROPERTY_ID,
35
  PaymentMethodUPIApps.JSON_PROPERTY_NAME
36
})
37

38
public class PaymentMethodUPIApps {
39
  public static final String JSON_PROPERTY_ID = "id";
40
  private String id;
41

42
  public static final String JSON_PROPERTY_NAME = "name";
43
  private String name;
44

NEW
45
  public PaymentMethodUPIApps() { 
×
NEW
46
  }
×
47

48
  public PaymentMethodUPIApps id(String id) {
NEW
49
    this.id = id;
×
NEW
50
    return this;
×
51
  }
52

53
   /**
54
   * The unique identifier of this app, to submit in requests to /payments.
55
   * @return id
56
  **/
57
  @ApiModelProperty(required = true, value = "The unique identifier of this app, to submit in requests to /payments.")
58
  @JsonProperty(JSON_PROPERTY_ID)
59
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
60

61
  public String getId() {
NEW
62
    return id;
×
63
  }
64

65

66
 /**
67
  * The unique identifier of this app, to submit in requests to /payments.
68
  *
69
  * @param id
70
  */ 
71
  @JsonProperty(JSON_PROPERTY_ID)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73
  public void setId(String id) {
NEW
74
    this.id = id;
×
NEW
75
  }
×
76

77

78
  public PaymentMethodUPIApps name(String name) {
NEW
79
    this.name = name;
×
NEW
80
    return this;
×
81
  }
82

83
   /**
84
   * A localized name of the app.
85
   * @return name
86
  **/
87
  @ApiModelProperty(required = true, value = "A localized name of the app.")
88
  @JsonProperty(JSON_PROPERTY_NAME)
89
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
90

91
  public String getName() {
NEW
92
    return name;
×
93
  }
94

95

96
 /**
97
  * A localized name of the app.
98
  *
99
  * @param name
100
  */ 
101
  @JsonProperty(JSON_PROPERTY_NAME)
102
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
103
  public void setName(String name) {
NEW
104
    this.name = name;
×
NEW
105
  }
×
106

107

108
  /**
109
   * Return true if this PaymentMethodUPIApps object is equal to o.
110
   */
111
  @Override
112
  public boolean equals(Object o) {
NEW
113
    if (this == o) {
×
NEW
114
      return true;
×
115
    }
NEW
116
    if (o == null || getClass() != o.getClass()) {
×
NEW
117
      return false;
×
118
    }
NEW
119
    PaymentMethodUPIApps paymentMethodUPIApps = (PaymentMethodUPIApps) o;
×
NEW
120
    return Objects.equals(this.id, paymentMethodUPIApps.id) &&
×
NEW
121
        Objects.equals(this.name, paymentMethodUPIApps.name);
×
122
  }
123

124
  @Override
125
  public int hashCode() {
NEW
126
    return Objects.hash(id, name);
×
127
  }
128

129
  @Override
130
  public String toString() {
NEW
131
    StringBuilder sb = new StringBuilder();
×
NEW
132
    sb.append("class PaymentMethodUPIApps {\n");
×
NEW
133
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
NEW
134
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
×
NEW
135
    sb.append("}");
×
NEW
136
    return sb.toString();
×
137
  }
138

139
  /**
140
   * Convert the given object to string with each line indented by 4 spaces
141
   * (except the first line).
142
   */
143
  private String toIndentedString(Object o) {
NEW
144
    if (o == null) {
×
NEW
145
      return "null";
×
146
    }
NEW
147
    return o.toString().replace("\n", "\n    ");
×
148
  }
149

150
/**
151
   * Create an instance of PaymentMethodUPIApps given an JSON string
152
   *
153
   * @param jsonString JSON string
154
   * @return An instance of PaymentMethodUPIApps
155
   * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodUPIApps
156
   */
157
  public static PaymentMethodUPIApps fromJson(String jsonString) throws JsonProcessingException {
NEW
158
    return JSON.getMapper().readValue(jsonString, PaymentMethodUPIApps.class);
×
159
  }
160
/**
161
  * Convert an instance of PaymentMethodUPIApps to an JSON string
162
  *
163
  * @return JSON string
164
  */
165
  public String toJson() throws JsonProcessingException {
NEW
166
    return JSON.getMapper().writeValueAsString(this);
×
167
  }
168
}
169

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