• 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/RefundFundsTransferRequest.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.Amount;
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * RefundFundsTransferRequest
34
 */
35
@JsonPropertyOrder({
36
  RefundFundsTransferRequest.JSON_PROPERTY_AMOUNT,
37
  RefundFundsTransferRequest.JSON_PROPERTY_MERCHANT_REFERENCE,
38
  RefundFundsTransferRequest.JSON_PROPERTY_ORIGINAL_REFERENCE
39
})
40

41
public class RefundFundsTransferRequest {
42
  public static final String JSON_PROPERTY_AMOUNT = "amount";
43
  private Amount amount;
44

45
  public static final String JSON_PROPERTY_MERCHANT_REFERENCE = "merchantReference";
46
  private String merchantReference;
47

48
  public static final String JSON_PROPERTY_ORIGINAL_REFERENCE = "originalReference";
49
  private String originalReference;
50

51
  public RefundFundsTransferRequest() { 
×
52
  }
×
53

54
  public RefundFundsTransferRequest amount(Amount amount) {
55
    this.amount = amount;
×
56
    return this;
×
57
  }
58

59
   /**
60
   * Get amount
61
   * @return amount
62
  **/
63
  @ApiModelProperty(required = true, value = "")
64
  @JsonProperty(JSON_PROPERTY_AMOUNT)
65
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
66

67
  public Amount getAmount() {
68
    return amount;
×
69
  }
70

71

72
  @JsonProperty(JSON_PROPERTY_AMOUNT)
73
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
74
  public void setAmount(Amount amount) {
75
    this.amount = amount;
×
76
  }
×
77

78

79
  public RefundFundsTransferRequest merchantReference(String merchantReference) {
80
    this.merchantReference = merchantReference;
×
81
    return this;
×
82
  }
83

84
   /**
85
   * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.
86
   * @return merchantReference
87
  **/
88
  @ApiModelProperty(value = "A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.")
89
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
90
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91

92
  public String getMerchantReference() {
93
    return merchantReference;
×
94
  }
95

96

97
  @JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
98
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
99
  public void setMerchantReference(String merchantReference) {
100
    this.merchantReference = merchantReference;
×
101
  }
×
102

103

104
  public RefundFundsTransferRequest originalReference(String originalReference) {
105
    this.originalReference = originalReference;
×
106
    return this;
×
107
  }
108

109
   /**
110
   * A PSP reference of the original fund transfer.
111
   * @return originalReference
112
  **/
113
  @ApiModelProperty(required = true, value = "A PSP reference of the original fund transfer.")
114
  @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE)
115
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116

117
  public String getOriginalReference() {
118
    return originalReference;
×
119
  }
120

121

122
  @JsonProperty(JSON_PROPERTY_ORIGINAL_REFERENCE)
123
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
124
  public void setOriginalReference(String originalReference) {
125
    this.originalReference = originalReference;
×
126
  }
×
127

128

129
  /**
130
   * Return true if this RefundFundsTransferRequest object is equal to o.
131
   */
132
  @Override
133
  public boolean equals(Object o) {
134
    if (this == o) {
×
135
      return true;
×
136
    }
137
    if (o == null || getClass() != o.getClass()) {
×
138
      return false;
×
139
    }
140
    RefundFundsTransferRequest refundFundsTransferRequest = (RefundFundsTransferRequest) o;
×
141
    return Objects.equals(this.amount, refundFundsTransferRequest.amount) &&
×
142
        Objects.equals(this.merchantReference, refundFundsTransferRequest.merchantReference) &&
×
143
        Objects.equals(this.originalReference, refundFundsTransferRequest.originalReference);
×
144
  }
145

146
  @Override
147
  public int hashCode() {
148
    return Objects.hash(amount, merchantReference, originalReference);
×
149
  }
150

151
  @Override
152
  public String toString() {
153
    StringBuilder sb = new StringBuilder();
×
154
    sb.append("class RefundFundsTransferRequest {\n");
×
155
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
156
    sb.append("    merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
×
157
    sb.append("    originalReference: ").append(toIndentedString(originalReference)).append("\n");
×
158
    sb.append("}");
×
159
    return sb.toString();
×
160
  }
161

162
  /**
163
   * Convert the given object to string with each line indented by 4 spaces
164
   * (except the first line).
165
   */
166
  private String toIndentedString(Object o) {
167
    if (o == null) {
×
168
      return "null";
×
169
    }
170
    return o.toString().replace("\n", "\n    ");
×
171
  }
172

173
/**
174
   * Create an instance of RefundFundsTransferRequest given an JSON string
175
   *
176
   * @param jsonString JSON string
177
   * @return An instance of RefundFundsTransferRequest
178
   * @throws JsonProcessingException if the JSON string is invalid with respect to RefundFundsTransferRequest
179
   */
180
  public static RefundFundsTransferRequest fromJson(String jsonString) throws JsonProcessingException {
181
    return JSON.getMapper().readValue(jsonString, RefundFundsTransferRequest.class);
×
182
  }
183
/**
184
  * Convert an instance of RefundFundsTransferRequest to an JSON string
185
  *
186
  * @return JSON string
187
  */
188
  public String toJson() throws JsonProcessingException {
189
    return JSON.getMapper().writeValueAsString(this);
×
190
  }
191
}
192

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