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

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

02 Oct 2023 02:08PM UTC coverage: 12.623%. First build
#2676

push

web-flow
Merge 8c2a459f7 into 9e36e9c01

9362 of 9362 new or added lines in 164 files covered. (100.0%)

11051 of 87544 relevant lines covered (12.62%)

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/marketpayaccount/PayoutMethod.java
1
/*
2
 * Account 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 Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and verification-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them.  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 Account 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/Account/v6/createAccountHolder ```
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.marketpayaccount;
15

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

30

31
/**
32
 * PayoutMethod
33
 */
34
@JsonPropertyOrder({
35
  PayoutMethod.JSON_PROPERTY_MERCHANT_ACCOUNT,
36
  PayoutMethod.JSON_PROPERTY_PAYOUT_METHOD_CODE,
37
  PayoutMethod.JSON_PROPERTY_PAYOUT_METHOD_REFERENCE,
38
  PayoutMethod.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
39
  PayoutMethod.JSON_PROPERTY_SHOPPER_REFERENCE
40
})
41

42
public class PayoutMethod {
43
  public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount";
44
  private String merchantAccount;
45

46
  public static final String JSON_PROPERTY_PAYOUT_METHOD_CODE = "payoutMethodCode";
47
  private String payoutMethodCode;
48

49
  public static final String JSON_PROPERTY_PAYOUT_METHOD_REFERENCE = "payoutMethodReference";
50
  private String payoutMethodReference;
51

52
  public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference";
53
  private String recurringDetailReference;
54

55
  public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
56
  private String shopperReference;
57

58
  public PayoutMethod() { 
×
59
  }
×
60

61
  public PayoutMethod merchantAccount(String merchantAccount) {
62
    this.merchantAccount = merchantAccount;
×
63
    return this;
×
64
  }
65

66
   /**
67
   * The [`merchantAccount`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_merchantAccount) you used in the `/payments` request when you [saved the account holder's card details](https://docs.adyen.com/marketplaces-and-platforms/classic/payouts/manual-payout/payout-to-cards#check-and-store).
68
   * @return merchantAccount
69
  **/
70
  @ApiModelProperty(required = true, value = "The [`merchantAccount`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_merchantAccount) you used in the `/payments` request when you [saved the account holder's card details](https://docs.adyen.com/marketplaces-and-platforms/classic/payouts/manual-payout/payout-to-cards#check-and-store).")
71
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73

74
  public String getMerchantAccount() {
75
    return merchantAccount;
×
76
  }
77

78

79
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
80
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81
  public void setMerchantAccount(String merchantAccount) {
82
    this.merchantAccount = merchantAccount;
×
83
  }
×
84

85

86
  public PayoutMethod payoutMethodCode(String payoutMethodCode) {
87
    this.payoutMethodCode = payoutMethodCode;
×
88
    return this;
×
89
  }
90

91
   /**
92
   * Adyen-generated unique alphanumeric identifier (UUID) for the payout method, returned in the response when you create a payout method. Required when updating an existing payout method in an `/updateAccountHolder` request.
93
   * @return payoutMethodCode
94
  **/
95
  @ApiModelProperty(value = "Adyen-generated unique alphanumeric identifier (UUID) for the payout method, returned in the response when you create a payout method. Required when updating an existing payout method in an `/updateAccountHolder` request.")
96
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_CODE)
97
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98

99
  public String getPayoutMethodCode() {
100
    return payoutMethodCode;
×
101
  }
102

103

104
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_CODE)
105
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106
  public void setPayoutMethodCode(String payoutMethodCode) {
107
    this.payoutMethodCode = payoutMethodCode;
×
108
  }
×
109

110

111
  public PayoutMethod payoutMethodReference(String payoutMethodReference) {
112
    this.payoutMethodReference = payoutMethodReference;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * Your reference for the payout method.
118
   * @return payoutMethodReference
119
  **/
120
  @ApiModelProperty(value = "Your reference for the payout method.")
121
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_REFERENCE)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public String getPayoutMethodReference() {
125
    return payoutMethodReference;
×
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_REFERENCE)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setPayoutMethodReference(String payoutMethodReference) {
132
    this.payoutMethodReference = payoutMethodReference;
×
133
  }
×
134

135

136
  public PayoutMethod recurringDetailReference(String recurringDetailReference) {
137
    this.recurringDetailReference = recurringDetailReference;
×
138
    return this;
×
139
  }
140

141
   /**
142
   * The [`recurringDetailReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-recurring-recurringDetailReference)  returned in the `/payments` response when you [saved the account holder's card details](https://docs.adyen.com/marketplaces-and-platforms/classic/payouts/manual-payout/payout-to-cards#check-and-store).
143
   * @return recurringDetailReference
144
  **/
145
  @ApiModelProperty(required = true, value = "The [`recurringDetailReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-recurring-recurringDetailReference)  returned in the `/payments` response when you [saved the account holder's card details](https://docs.adyen.com/marketplaces-and-platforms/classic/payouts/manual-payout/payout-to-cards#check-and-store).")
146
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148

149
  public String getRecurringDetailReference() {
150
    return recurringDetailReference;
×
151
  }
152

153

154
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156
  public void setRecurringDetailReference(String recurringDetailReference) {
157
    this.recurringDetailReference = recurringDetailReference;
×
158
  }
×
159

160

161
  public PayoutMethod shopperReference(String shopperReference) {
162
    this.shopperReference = shopperReference;
×
163
    return this;
×
164
  }
165

166
   /**
167
   * The [`shopperReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_shopperReference) you sent in the `/payments` request when you [saved the account holder's card details](https://docs.adyen.com/marketplaces-and-platforms/classic/payouts/manual-payout/payout-to-cards#check-and-store).
168
   * @return shopperReference
169
  **/
170
  @ApiModelProperty(required = true, value = "The [`shopperReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_shopperReference) you sent in the `/payments` request when you [saved the account holder's card details](https://docs.adyen.com/marketplaces-and-platforms/classic/payouts/manual-payout/payout-to-cards#check-and-store).")
171
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173

174
  public String getShopperReference() {
175
    return shopperReference;
×
176
  }
177

178

179
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181
  public void setShopperReference(String shopperReference) {
182
    this.shopperReference = shopperReference;
×
183
  }
×
184

185

186
  /**
187
   * Return true if this PayoutMethod object is equal to o.
188
   */
189
  @Override
190
  public boolean equals(Object o) {
191
    if (this == o) {
×
192
      return true;
×
193
    }
194
    if (o == null || getClass() != o.getClass()) {
×
195
      return false;
×
196
    }
197
    PayoutMethod payoutMethod = (PayoutMethod) o;
×
198
    return Objects.equals(this.merchantAccount, payoutMethod.merchantAccount) &&
×
199
        Objects.equals(this.payoutMethodCode, payoutMethod.payoutMethodCode) &&
×
200
        Objects.equals(this.payoutMethodReference, payoutMethod.payoutMethodReference) &&
×
201
        Objects.equals(this.recurringDetailReference, payoutMethod.recurringDetailReference) &&
×
202
        Objects.equals(this.shopperReference, payoutMethod.shopperReference);
×
203
  }
204

205
  @Override
206
  public int hashCode() {
207
    return Objects.hash(merchantAccount, payoutMethodCode, payoutMethodReference, recurringDetailReference, shopperReference);
×
208
  }
209

210
  @Override
211
  public String toString() {
212
    StringBuilder sb = new StringBuilder();
×
213
    sb.append("class PayoutMethod {\n");
×
214
    sb.append("    merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
×
215
    sb.append("    payoutMethodCode: ").append(toIndentedString(payoutMethodCode)).append("\n");
×
216
    sb.append("    payoutMethodReference: ").append(toIndentedString(payoutMethodReference)).append("\n");
×
217
    sb.append("    recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n");
×
218
    sb.append("    shopperReference: ").append(toIndentedString(shopperReference)).append("\n");
×
219
    sb.append("}");
×
220
    return sb.toString();
×
221
  }
222

223
  /**
224
   * Convert the given object to string with each line indented by 4 spaces
225
   * (except the first line).
226
   */
227
  private String toIndentedString(Object o) {
228
    if (o == null) {
×
229
      return "null";
×
230
    }
231
    return o.toString().replace("\n", "\n    ");
×
232
  }
233

234
/**
235
   * Create an instance of PayoutMethod given an JSON string
236
   *
237
   * @param jsonString JSON string
238
   * @return An instance of PayoutMethod
239
   * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutMethod
240
   */
241
  public static PayoutMethod fromJson(String jsonString) throws JsonProcessingException {
242
    return JSON.getMapper().readValue(jsonString, PayoutMethod.class);
×
243
  }
244
/**
245
  * Convert an instance of PayoutMethod to an JSON string
246
  *
247
  * @return JSON string
248
  */
249
  public String toJson() throws JsonProcessingException {
250
    return JSON.getMapper().writeValueAsString(this);
×
251
  }
252
}
253

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