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

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

23 Oct 2023 01:51PM UTC coverage: 12.821%. First build
#2746

push

web-flow
Merge a2bc5dbaa into c99ba89a9

2931 of 2931 new or added lines in 118 files covered. (100.0%)

12345 of 96286 relevant lines covered (12.82%)

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/management/ApplePayInfo.java
1
/*
2
 * Management API
3
 *
4
 * The version of the OpenAPI document: 3
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.management;
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 java.util.ArrayList;
27
import java.util.List;
28
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * ApplePayInfo
34
 */
35
@JsonPropertyOrder({
36
  ApplePayInfo.JSON_PROPERTY_DOMAINS
37
})
38

39
public class ApplePayInfo {
40
  public static final String JSON_PROPERTY_DOMAINS = "domains";
41
  private List<String> domains = new ArrayList<>();
×
42

43
  public ApplePayInfo() { 
×
44
  }
×
45

46
  public ApplePayInfo domains(List<String> domains) {
47
    this.domains = domains;
×
48
    return this;
×
49
  }
50

51
  public ApplePayInfo addDomainsItem(String domainsItem) {
52
    this.domains.add(domainsItem);
×
53
    return this;
×
54
  }
55

56
   /**
57
   * The list of merchant domains. Maximum: 99 domains per request.  For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab&#x3D;adyen-certificate-live_1#going-live).
58
   * @return domains
59
  **/
60
  @ApiModelProperty(required = true, value = "The list of merchant domains. Maximum: 99 domains per request.  For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live).")
61
  @JsonProperty(JSON_PROPERTY_DOMAINS)
62
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63

64
  public List<String> getDomains() {
65
    return domains;
×
66
  }
67

68

69
  @JsonProperty(JSON_PROPERTY_DOMAINS)
70
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
71
  public void setDomains(List<String> domains) {
72
    this.domains = domains;
×
73
  }
×
74

75

76
  /**
77
   * Return true if this ApplePayInfo object is equal to o.
78
   */
79
  @Override
80
  public boolean equals(Object o) {
81
    if (this == o) {
×
82
      return true;
×
83
    }
84
    if (o == null || getClass() != o.getClass()) {
×
85
      return false;
×
86
    }
87
    ApplePayInfo applePayInfo = (ApplePayInfo) o;
×
88
    return Objects.equals(this.domains, applePayInfo.domains);
×
89
  }
90

91
  @Override
92
  public int hashCode() {
93
    return Objects.hash(domains);
×
94
  }
95

96
  @Override
97
  public String toString() {
98
    StringBuilder sb = new StringBuilder();
×
99
    sb.append("class ApplePayInfo {\n");
×
100
    sb.append("    domains: ").append(toIndentedString(domains)).append("\n");
×
101
    sb.append("}");
×
102
    return sb.toString();
×
103
  }
104

105
  /**
106
   * Convert the given object to string with each line indented by 4 spaces
107
   * (except the first line).
108
   */
109
  private String toIndentedString(Object o) {
110
    if (o == null) {
×
111
      return "null";
×
112
    }
113
    return o.toString().replace("\n", "\n    ");
×
114
  }
115

116
/**
117
   * Create an instance of ApplePayInfo given an JSON string
118
   *
119
   * @param jsonString JSON string
120
   * @return An instance of ApplePayInfo
121
   * @throws JsonProcessingException if the JSON string is invalid with respect to ApplePayInfo
122
   */
123
  public static ApplePayInfo fromJson(String jsonString) throws JsonProcessingException {
124
    return JSON.getMapper().readValue(jsonString, ApplePayInfo.class);
×
125
  }
126
/**
127
  * Convert an instance of ApplePayInfo to an JSON string
128
  *
129
  * @return JSON string
130
  */
131
  public String toJson() throws JsonProcessingException {
132
    return JSON.getMapper().writeValueAsString(this);
×
133
  }
134
}
135

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