• 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/marketpayaccount/PayoutScheduleResponse.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 java.time.OffsetDateTime;
28
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * PayoutScheduleResponse
34
 */
35
@JsonPropertyOrder({
36
  PayoutScheduleResponse.JSON_PROPERTY_NEXT_SCHEDULED_PAYOUT,
37
  PayoutScheduleResponse.JSON_PROPERTY_SCHEDULE
38
})
39

40
public class PayoutScheduleResponse {
41
  public static final String JSON_PROPERTY_NEXT_SCHEDULED_PAYOUT = "nextScheduledPayout";
42
  private OffsetDateTime nextScheduledPayout;
43

44
  /**
45
   * The payout schedule of the account. Permitted values: `DEFAULT`, `DAILY`, `DAILY_US`, `DAILY_EU`, `DAILY_AU`, `DAILY_SG`, `WEEKLY`, `WEEKLY_ON_TUE_FRI_MIDNIGHT`, `BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT`, `MONTHLY`, `HOLD`.
46
   */
47
  public enum ScheduleEnum {
×
48
    BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT("BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT"),
×
49
    
50
    DAILY("DAILY"),
×
51
    
52
    DAILY_AU("DAILY_AU"),
×
53
    
54
    DAILY_EU("DAILY_EU"),
×
55
    
56
    DAILY_SG("DAILY_SG"),
×
57
    
58
    DAILY_US("DAILY_US"),
×
59
    
60
    HOLD("HOLD"),
×
61
    
62
    MONTHLY("MONTHLY"),
×
63
    
64
    WEEKLY("WEEKLY"),
×
65
    
66
    WEEKLY_MON_TO_FRI_AU("WEEKLY_MON_TO_FRI_AU"),
×
67
    
68
    WEEKLY_MON_TO_FRI_EU("WEEKLY_MON_TO_FRI_EU"),
×
69
    
70
    WEEKLY_MON_TO_FRI_US("WEEKLY_MON_TO_FRI_US"),
×
71
    
72
    WEEKLY_ON_TUE_FRI_MIDNIGHT("WEEKLY_ON_TUE_FRI_MIDNIGHT"),
×
73
    
74
    WEEKLY_SUN_TO_THU_AU("WEEKLY_SUN_TO_THU_AU"),
×
75
    
76
    WEEKLY_SUN_TO_THU_US("WEEKLY_SUN_TO_THU_US");
×
77

78
    private String value;
79

80
    ScheduleEnum(String value) {
×
81
      this.value = value;
×
82
    }
×
83

84
    @JsonValue
85
    public String getValue() {
86
      return value;
×
87
    }
88

89
    @Override
90
    public String toString() {
91
      return String.valueOf(value);
×
92
    }
93

94
    @JsonCreator
95
    public static ScheduleEnum fromValue(String value) {
96
      for (ScheduleEnum b : ScheduleEnum.values()) {
×
97
        if (b.value.equals(value)) {
×
98
          return b;
×
99
        }
100
      }
101
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
102
    }
103
  }
104

105
  public static final String JSON_PROPERTY_SCHEDULE = "schedule";
106
  private ScheduleEnum schedule;
107

108
  public PayoutScheduleResponse() { 
×
109
  }
×
110

111
  public PayoutScheduleResponse nextScheduledPayout(OffsetDateTime nextScheduledPayout) {
112
    this.nextScheduledPayout = nextScheduledPayout;
×
113
    return this;
×
114
  }
115

116
   /**
117
   * The date of the next scheduled payout.
118
   * @return nextScheduledPayout
119
  **/
120
  @ApiModelProperty(value = "The date of the next scheduled payout.")
121
  @JsonProperty(JSON_PROPERTY_NEXT_SCHEDULED_PAYOUT)
122
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123

124
  public OffsetDateTime getNextScheduledPayout() {
125
    return nextScheduledPayout;
×
126
  }
127

128

129
  @JsonProperty(JSON_PROPERTY_NEXT_SCHEDULED_PAYOUT)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131
  public void setNextScheduledPayout(OffsetDateTime nextScheduledPayout) {
132
    this.nextScheduledPayout = nextScheduledPayout;
×
133
  }
×
134

135

136
  public PayoutScheduleResponse schedule(ScheduleEnum schedule) {
137
    this.schedule = schedule;
×
138
    return this;
×
139
  }
140

141
   /**
142
   * The payout schedule of the account. Permitted values: `DEFAULT`, `DAILY`, `DAILY_US`, `DAILY_EU`, `DAILY_AU`, `DAILY_SG`, `WEEKLY`, `WEEKLY_ON_TUE_FRI_MIDNIGHT`, `BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT`, `MONTHLY`, `HOLD`.
143
   * @return schedule
144
  **/
145
  @ApiModelProperty(value = "The payout schedule of the account. Permitted values: `DEFAULT`, `DAILY`, `DAILY_US`, `DAILY_EU`, `DAILY_AU`, `DAILY_SG`, `WEEKLY`, `WEEKLY_ON_TUE_FRI_MIDNIGHT`, `BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT`, `MONTHLY`, `HOLD`.")
146
  @JsonProperty(JSON_PROPERTY_SCHEDULE)
147
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
148

149
  public ScheduleEnum getSchedule() {
150
    return schedule;
×
151
  }
152

153

154
  @JsonProperty(JSON_PROPERTY_SCHEDULE)
155
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
156
  public void setSchedule(ScheduleEnum schedule) {
157
    this.schedule = schedule;
×
158
  }
×
159

160

161
  /**
162
   * Return true if this PayoutScheduleResponse object is equal to o.
163
   */
164
  @Override
165
  public boolean equals(Object o) {
166
    if (this == o) {
×
167
      return true;
×
168
    }
169
    if (o == null || getClass() != o.getClass()) {
×
170
      return false;
×
171
    }
172
    PayoutScheduleResponse payoutScheduleResponse = (PayoutScheduleResponse) o;
×
173
    return Objects.equals(this.nextScheduledPayout, payoutScheduleResponse.nextScheduledPayout) &&
×
174
        Objects.equals(this.schedule, payoutScheduleResponse.schedule);
×
175
  }
176

177
  @Override
178
  public int hashCode() {
179
    return Objects.hash(nextScheduledPayout, schedule);
×
180
  }
181

182
  @Override
183
  public String toString() {
184
    StringBuilder sb = new StringBuilder();
×
185
    sb.append("class PayoutScheduleResponse {\n");
×
186
    sb.append("    nextScheduledPayout: ").append(toIndentedString(nextScheduledPayout)).append("\n");
×
187
    sb.append("    schedule: ").append(toIndentedString(schedule)).append("\n");
×
188
    sb.append("}");
×
189
    return sb.toString();
×
190
  }
191

192
  /**
193
   * Convert the given object to string with each line indented by 4 spaces
194
   * (except the first line).
195
   */
196
  private String toIndentedString(Object o) {
197
    if (o == null) {
×
198
      return "null";
×
199
    }
200
    return o.toString().replace("\n", "\n    ");
×
201
  }
202

203
/**
204
   * Create an instance of PayoutScheduleResponse given an JSON string
205
   *
206
   * @param jsonString JSON string
207
   * @return An instance of PayoutScheduleResponse
208
   * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutScheduleResponse
209
   */
210
  public static PayoutScheduleResponse fromJson(String jsonString) throws JsonProcessingException {
211
    return JSON.getMapper().readValue(jsonString, PayoutScheduleResponse.class);
×
212
  }
213
/**
214
  * Convert an instance of PayoutScheduleResponse to an JSON string
215
  *
216
  * @return JSON string
217
  */
218
  public String toJson() throws JsonProcessingException {
219
    return JSON.getMapper().writeValueAsString(this);
×
220
  }
221
}
222

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

© 2026 Coveralls, Inc