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

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

08 Nov 2023 09:16AM CUT coverage: 12.837%. First build
#2829

push

web-flow
Merge 828273160 into b96088175

114 of 864 new or added lines in 50 files covered. (13.19%)

12393 of 96543 relevant lines covered (12.84%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

19.35
/src/main/java/com/adyen/model/transactionwebhooks/TransferData.java
1
/*
2
 * Transaction webhooks
3
 *
4
 * The version of the OpenAPI document: 4
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.transactionwebhooks;
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
 * TransferData
32
 */
33
@JsonPropertyOrder({
34
  TransferData.JSON_PROPERTY_ID,
35
  TransferData.JSON_PROPERTY_REFERENCE
36
})
37

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

42
  public static final String JSON_PROPERTY_REFERENCE = "reference";
43
  private String reference;
44

45
  public TransferData() { 
1✔
46
  }
1✔
47

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

53
   /**
54
   * The ID of the resource.
55
   * @return id
56
  **/
57
  @ApiModelProperty(value = "The ID of the resource.")
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
  @JsonProperty(JSON_PROPERTY_ID)
67
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68
  public void setId(String id) {
69
    this.id = id;
1✔
70
  }
1✔
71

72

73
  public TransferData reference(String reference) {
NEW
74
    this.reference = reference;
×
NEW
75
    return this;
×
76
  }
77

78
   /**
79
   * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference.
80
   * @return reference
81
  **/
82
  @ApiModelProperty(required = true, value = "The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference.")
83
  @JsonProperty(JSON_PROPERTY_REFERENCE)
84
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
85

86
  public String getReference() {
NEW
87
    return reference;
×
88
  }
89

90

91
  @JsonProperty(JSON_PROPERTY_REFERENCE)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93
  public void setReference(String reference) {
94
    this.reference = reference;
1✔
95
  }
1✔
96

97

98
  /**
99
   * Return true if this TransferData object is equal to o.
100
   */
101
  @Override
102
  public boolean equals(Object o) {
NEW
103
    if (this == o) {
×
NEW
104
      return true;
×
105
    }
NEW
106
    if (o == null || getClass() != o.getClass()) {
×
NEW
107
      return false;
×
108
    }
NEW
109
    TransferData transferData = (TransferData) o;
×
NEW
110
    return Objects.equals(this.id, transferData.id) &&
×
NEW
111
        Objects.equals(this.reference, transferData.reference);
×
112
  }
113

114
  @Override
115
  public int hashCode() {
NEW
116
    return Objects.hash(id, reference);
×
117
  }
118

119
  @Override
120
  public String toString() {
NEW
121
    StringBuilder sb = new StringBuilder();
×
NEW
122
    sb.append("class TransferData {\n");
×
NEW
123
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
NEW
124
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
NEW
125
    sb.append("}");
×
NEW
126
    return sb.toString();
×
127
  }
128

129
  /**
130
   * Convert the given object to string with each line indented by 4 spaces
131
   * (except the first line).
132
   */
133
  private String toIndentedString(Object o) {
NEW
134
    if (o == null) {
×
NEW
135
      return "null";
×
136
    }
NEW
137
    return o.toString().replace("\n", "\n    ");
×
138
  }
139

140
/**
141
   * Create an instance of TransferData given an JSON string
142
   *
143
   * @param jsonString JSON string
144
   * @return An instance of TransferData
145
   * @throws JsonProcessingException if the JSON string is invalid with respect to TransferData
146
   */
147
  public static TransferData fromJson(String jsonString) throws JsonProcessingException {
NEW
148
    return JSON.getMapper().readValue(jsonString, TransferData.class);
×
149
  }
150
/**
151
  * Convert an instance of TransferData to an JSON string
152
  *
153
  * @return JSON string
154
  */
155
  public String toJson() throws JsonProcessingException {
NEW
156
    return JSON.getMapper().writeValueAsString(this);
×
157
  }
158
}
159

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