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

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

16 Oct 2023 09:08AM CUT coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

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/marketpaywebhooks/PayoutMethod.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
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.marketpaywebhooks;
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
 * PayoutMethod
32
 */
33
@JsonPropertyOrder({
34
  PayoutMethod.JSON_PROPERTY_MERCHANT_ACCOUNT,
35
  PayoutMethod.JSON_PROPERTY_PAYOUT_METHOD_CODE,
36
  PayoutMethod.JSON_PROPERTY_PAYOUT_METHOD_REFERENCE,
37
  PayoutMethod.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
38
  PayoutMethod.JSON_PROPERTY_SHOPPER_REFERENCE
39
})
40

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

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

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

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

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

57
  public PayoutMethod() { 
×
58
  }
×
59

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

65
   /**
66
   * 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).
67
   * @return merchantAccount
68
  **/
69
  @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).")
70
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
71
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
72

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

77

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

84

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

90
   /**
91
   * 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.
92
   * @return payoutMethodCode
93
  **/
94
  @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.")
95
  @JsonProperty(JSON_PROPERTY_PAYOUT_METHOD_CODE)
96
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
97

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

102

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

109

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

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

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

127

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

134

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

140
   /**
141
   * 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).
142
   * @return recurringDetailReference
143
  **/
144
  @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).")
145
  @JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
146
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147

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

152

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

159

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

165
   /**
166
   * 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).
167
   * @return shopperReference
168
  **/
169
  @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).")
170
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
171
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
172

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

177

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

184

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

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

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

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

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

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