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

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

05 Jun 2024 02:13PM UTC coverage: 12.003%. First build
#3294

push

web-flow
Merge 7f54ca36d into 67f331171

20 of 662 new or added lines in 34 files covered. (3.02%)

12485 of 104015 relevant lines covered (12.0%)

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/management/WeChatPayPosInfo.java
1
/*
2
 * Management API
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.management;
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
 * WeChatPayPosInfo
32
 */
33
@JsonPropertyOrder({
34
  WeChatPayPosInfo.JSON_PROPERTY_CONTACT_PERSON_NAME,
35
  WeChatPayPosInfo.JSON_PROPERTY_EMAIL
36
})
37

38
public class WeChatPayPosInfo {
39
  public static final String JSON_PROPERTY_CONTACT_PERSON_NAME = "contactPersonName";
40
  private String contactPersonName;
41

42
  public static final String JSON_PROPERTY_EMAIL = "email";
43
  private String email;
44

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

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

53
   /**
54
   * The name of the contact person from merchant support.
55
   * @return contactPersonName
56
  **/
57
  @ApiModelProperty(required = true, value = "The name of the contact person from merchant support.")
58
  @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME)
59
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
60

61
  public String getContactPersonName() {
NEW
62
    return contactPersonName;
×
63
  }
64

65

66
 /**
67
  * The name of the contact person from merchant support.
68
  *
69
  * @param contactPersonName
70
  */ 
71
  @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73
  public void setContactPersonName(String contactPersonName) {
NEW
74
    this.contactPersonName = contactPersonName;
×
NEW
75
  }
×
76

77

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

83
   /**
84
   * The email address of merchant support.
85
   * @return email
86
  **/
87
  @ApiModelProperty(required = true, value = "The email address of merchant support.")
88
  @JsonProperty(JSON_PROPERTY_EMAIL)
89
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
90

91
  public String getEmail() {
NEW
92
    return email;
×
93
  }
94

95

96
 /**
97
  * The email address of merchant support.
98
  *
99
  * @param email
100
  */ 
101
  @JsonProperty(JSON_PROPERTY_EMAIL)
102
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
103
  public void setEmail(String email) {
NEW
104
    this.email = email;
×
NEW
105
  }
×
106

107

108
  /**
109
   * Return true if this WeChatPayPosInfo 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
    WeChatPayPosInfo weChatPayPosInfo = (WeChatPayPosInfo) o;
×
NEW
120
    return Objects.equals(this.contactPersonName, weChatPayPosInfo.contactPersonName) &&
×
NEW
121
        Objects.equals(this.email, weChatPayPosInfo.email);
×
122
  }
123

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

129
  @Override
130
  public String toString() {
NEW
131
    StringBuilder sb = new StringBuilder();
×
NEW
132
    sb.append("class WeChatPayPosInfo {\n");
×
NEW
133
    sb.append("    contactPersonName: ").append(toIndentedString(contactPersonName)).append("\n");
×
NEW
134
    sb.append("    email: ").append(toIndentedString(email)).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 WeChatPayPosInfo given an JSON string
152
   *
153
   * @param jsonString JSON string
154
   * @return An instance of WeChatPayPosInfo
155
   * @throws JsonProcessingException if the JSON string is invalid with respect to WeChatPayPosInfo
156
   */
157
  public static WeChatPayPosInfo fromJson(String jsonString) throws JsonProcessingException {
NEW
158
    return JSON.getMapper().readValue(jsonString, WeChatPayPosInfo.class);
×
159
  }
160
/**
161
  * Convert an instance of WeChatPayPosInfo 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