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

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

18 Sep 2023 12:27PM UTC coverage: 13.146%. First build
#2660

push

web-flow
Merge fdf590561 into ba706cfa8

2480 of 2480 new or added lines in 54 files covered. (100.0%)

10283 of 78224 relevant lines covered (13.15%)

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/configurationwebhooks/PlatformPaymentConfiguration.java
1
/*
2
 * Configuration webhooks
3
 *
4
 * The version of the OpenAPI document: 1
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.configurationwebhooks;
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
 * PlatformPaymentConfiguration
32
 */
33
@JsonPropertyOrder({
34
  PlatformPaymentConfiguration.JSON_PROPERTY_SALES_DAY_CLOSING_TIME,
35
  PlatformPaymentConfiguration.JSON_PROPERTY_SETTLEMENT_DELAY_DAYS
36
})
37

38
public class PlatformPaymentConfiguration {
39
  public static final String JSON_PROPERTY_SALES_DAY_CLOSING_TIME = "salesDayClosingTime";
40
  private String salesDayClosingTime;
41

42
  public static final String JSON_PROPERTY_SETTLEMENT_DELAY_DAYS = "settlementDelayDays";
43
  private Integer settlementDelayDays;
44

45
  public PlatformPaymentConfiguration() { 
×
46
  }
×
47

48
  public PlatformPaymentConfiguration salesDayClosingTime(String salesDayClosingTime) {
49
    this.salesDayClosingTime = salesDayClosingTime;
×
50
    return this;
×
51
  }
52

53
   /**
54
   * Specifies at what time a [sales day](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/sales-day-settlement#sales-day) ends.  Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**.  Default value: **\"00:00\"**.
55
   * @return salesDayClosingTime
56
  **/
57
  @ApiModelProperty(value = "Specifies at what time a [sales day](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/sales-day-settlement#sales-day) ends.  Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**.  Default value: **\"00:00\"**.")
58
  @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME)
59
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
60

61
  public String getSalesDayClosingTime() {
62
    return salesDayClosingTime;
×
63
  }
64

65

66
  @JsonProperty(JSON_PROPERTY_SALES_DAY_CLOSING_TIME)
67
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68
  public void setSalesDayClosingTime(String salesDayClosingTime) {
69
    this.salesDayClosingTime = salesDayClosingTime;
×
70
  }
×
71

72

73
  public PlatformPaymentConfiguration settlementDelayDays(Integer settlementDelayDays) {
74
    this.settlementDelayDays = settlementDelayDays;
×
75
    return this;
×
76
  }
77

78
   /**
79
   * Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/sales-day-settlement#settlement-batch) are made available.  Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables [Sales day settlement](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/pass-through-settlement).  Default value: **null**.
80
   * @return settlementDelayDays
81
  **/
82
  @ApiModelProperty(value = "Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/sales-day-settlement#settlement-batch) are made available.  Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables [Sales day settlement](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/pass-through-settlement).  Default value: **null**.")
83
  @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS)
84
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
85

86
  public Integer getSettlementDelayDays() {
87
    return settlementDelayDays;
×
88
  }
89

90

91
  @JsonProperty(JSON_PROPERTY_SETTLEMENT_DELAY_DAYS)
92
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93
  public void setSettlementDelayDays(Integer settlementDelayDays) {
94
    this.settlementDelayDays = settlementDelayDays;
×
95
  }
×
96

97

98
  /**
99
   * Return true if this PlatformPaymentConfiguration object is equal to o.
100
   */
101
  @Override
102
  public boolean equals(Object o) {
103
    if (this == o) {
×
104
      return true;
×
105
    }
106
    if (o == null || getClass() != o.getClass()) {
×
107
      return false;
×
108
    }
109
    PlatformPaymentConfiguration platformPaymentConfiguration = (PlatformPaymentConfiguration) o;
×
110
    return Objects.equals(this.salesDayClosingTime, platformPaymentConfiguration.salesDayClosingTime) &&
×
111
        Objects.equals(this.settlementDelayDays, platformPaymentConfiguration.settlementDelayDays);
×
112
  }
113

114
  @Override
115
  public int hashCode() {
116
    return Objects.hash(salesDayClosingTime, settlementDelayDays);
×
117
  }
118

119
  @Override
120
  public String toString() {
121
    StringBuilder sb = new StringBuilder();
×
122
    sb.append("class PlatformPaymentConfiguration {\n");
×
123
    sb.append("    salesDayClosingTime: ").append(toIndentedString(salesDayClosingTime)).append("\n");
×
124
    sb.append("    settlementDelayDays: ").append(toIndentedString(settlementDelayDays)).append("\n");
×
125
    sb.append("}");
×
126
    return sb.toString();
×
127
  }
128

129
  /**
130
   * Convert the given object to string with each line indented by 4 spaces
131
   * (except the first line).
132
   */
133
  private String toIndentedString(Object o) {
134
    if (o == null) {
×
135
      return "null";
×
136
    }
137
    return o.toString().replace("\n", "\n    ");
×
138
  }
139

140
/**
141
   * Create an instance of PlatformPaymentConfiguration given an JSON string
142
   *
143
   * @param jsonString JSON string
144
   * @return An instance of PlatformPaymentConfiguration
145
   * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformPaymentConfiguration
146
   */
147
  public static PlatformPaymentConfiguration fromJson(String jsonString) throws JsonProcessingException {
148
    return JSON.getMapper().readValue(jsonString, PlatformPaymentConfiguration.class);
×
149
  }
150
/**
151
  * Convert an instance of PlatformPaymentConfiguration to an JSON string
152
  *
153
  * @return JSON string
154
  */
155
  public String toJson() throws JsonProcessingException {
156
    return JSON.getMapper().writeValueAsString(this);
×
157
  }
158
}
159

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