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

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

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

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/marketpayfund/RefundNotPaidOutTransfersResponse.java
1
/*
2
 * Fund API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Fund API provides endpoints for managing the funds in the accounts on your platform. These management operations include, for example, the transfer of funds from one account to another, the payout of funds to an account holder, and the retrieval of balances in an account.  For more information, refer to our [documentation](https://docs.adyen.com/marketplaces-and-platforms/classic/). ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Fund API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Fund/v6/accountHolderBalance ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayfund;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.adyen.model.marketpayfund.ErrorFieldType;
21
import com.fasterxml.jackson.annotation.JsonInclude;
22
import com.fasterxml.jackson.annotation.JsonProperty;
23
import com.fasterxml.jackson.annotation.JsonCreator;
24
import com.fasterxml.jackson.annotation.JsonTypeName;
25
import com.fasterxml.jackson.annotation.JsonValue;
26
import io.swagger.annotations.ApiModel;
27
import io.swagger.annotations.ApiModelProperty;
28
import java.util.ArrayList;
29
import java.util.List;
30
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31
import com.fasterxml.jackson.core.JsonProcessingException;
32

33

34
/**
35
 * RefundNotPaidOutTransfersResponse
36
 */
37
@JsonPropertyOrder({
38
  RefundNotPaidOutTransfersResponse.JSON_PROPERTY_INVALID_FIELDS,
39
  RefundNotPaidOutTransfersResponse.JSON_PROPERTY_PSP_REFERENCE,
40
  RefundNotPaidOutTransfersResponse.JSON_PROPERTY_RESULT_CODE
41
})
42

43
public class RefundNotPaidOutTransfersResponse {
44
  public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields";
45
  private List<ErrorFieldType> invalidFields = null;
×
46

47
  public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
48
  private String pspReference;
49

50
  public static final String JSON_PROPERTY_RESULT_CODE = "resultCode";
51
  private String resultCode;
52

53
  public RefundNotPaidOutTransfersResponse() { 
×
54
  }
×
55

56
  public RefundNotPaidOutTransfersResponse invalidFields(List<ErrorFieldType> invalidFields) {
57
    this.invalidFields = invalidFields;
×
58
    return this;
×
59
  }
60

61
  public RefundNotPaidOutTransfersResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem) {
62
    if (this.invalidFields == null) {
×
63
      this.invalidFields = new ArrayList<>();
×
64
    }
65
    this.invalidFields.add(invalidFieldsItem);
×
66
    return this;
×
67
  }
68

69
   /**
70
   * Contains field validation errors that would prevent requests from being processed.
71
   * @return invalidFields
72
  **/
73
  @ApiModelProperty(value = "Contains field validation errors that would prevent requests from being processed.")
74
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
75
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
76

77
  public List<ErrorFieldType> getInvalidFields() {
78
    return invalidFields;
×
79
  }
80

81

82
  @JsonProperty(JSON_PROPERTY_INVALID_FIELDS)
83
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
84
  public void setInvalidFields(List<ErrorFieldType> invalidFields) {
85
    this.invalidFields = invalidFields;
×
86
  }
×
87

88

89
  public RefundNotPaidOutTransfersResponse pspReference(String pspReference) {
90
    this.pspReference = pspReference;
×
91
    return this;
×
92
  }
93

94
   /**
95
   * The reference of a request. Can be used to uniquely identify the request.
96
   * @return pspReference
97
  **/
98
  @ApiModelProperty(value = "The reference of a request. Can be used to uniquely identify the request.")
99
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
100
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
101

102
  public String getPspReference() {
103
    return pspReference;
×
104
  }
105

106

107
  @JsonProperty(JSON_PROPERTY_PSP_REFERENCE)
108
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109
  public void setPspReference(String pspReference) {
110
    this.pspReference = pspReference;
×
111
  }
×
112

113

114
  public RefundNotPaidOutTransfersResponse resultCode(String resultCode) {
115
    this.resultCode = resultCode;
×
116
    return this;
×
117
  }
118

119
   /**
120
   * The result code.
121
   * @return resultCode
122
  **/
123
  @ApiModelProperty(value = "The result code.")
124
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
125
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126

127
  public String getResultCode() {
128
    return resultCode;
×
129
  }
130

131

132
  @JsonProperty(JSON_PROPERTY_RESULT_CODE)
133
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134
  public void setResultCode(String resultCode) {
135
    this.resultCode = resultCode;
×
136
  }
×
137

138

139
  /**
140
   * Return true if this RefundNotPaidOutTransfersResponse object is equal to o.
141
   */
142
  @Override
143
  public boolean equals(Object o) {
144
    if (this == o) {
×
145
      return true;
×
146
    }
147
    if (o == null || getClass() != o.getClass()) {
×
148
      return false;
×
149
    }
150
    RefundNotPaidOutTransfersResponse refundNotPaidOutTransfersResponse = (RefundNotPaidOutTransfersResponse) o;
×
151
    return Objects.equals(this.invalidFields, refundNotPaidOutTransfersResponse.invalidFields) &&
×
152
        Objects.equals(this.pspReference, refundNotPaidOutTransfersResponse.pspReference) &&
×
153
        Objects.equals(this.resultCode, refundNotPaidOutTransfersResponse.resultCode);
×
154
  }
155

156
  @Override
157
  public int hashCode() {
158
    return Objects.hash(invalidFields, pspReference, resultCode);
×
159
  }
160

161
  @Override
162
  public String toString() {
163
    StringBuilder sb = new StringBuilder();
×
164
    sb.append("class RefundNotPaidOutTransfersResponse {\n");
×
165
    sb.append("    invalidFields: ").append(toIndentedString(invalidFields)).append("\n");
×
166
    sb.append("    pspReference: ").append(toIndentedString(pspReference)).append("\n");
×
167
    sb.append("    resultCode: ").append(toIndentedString(resultCode)).append("\n");
×
168
    sb.append("}");
×
169
    return sb.toString();
×
170
  }
171

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

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

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