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

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

11 Dec 2023 05:06PM UTC coverage: 12.835%. First build
#2934

push

web-flow
Merge 0111dd892 into d70611050

173 of 797 new or added lines in 39 files covered. (21.71%)

12464 of 97111 relevant lines covered (12.83%)

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/TapToPay.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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

30
/**
31
 * TapToPay
32
 */
33
@JsonPropertyOrder({
34
  TapToPay.JSON_PROPERTY_MERCHANT_DISPLAY_NAME
35
})
36

37
public class TapToPay {
38
  public static final String JSON_PROPERTY_MERCHANT_DISPLAY_NAME = "merchantDisplayName";
39
  private String merchantDisplayName;
40

NEW
41
  public TapToPay() { 
×
NEW
42
  }
×
43

44
  public TapToPay merchantDisplayName(String merchantDisplayName) {
NEW
45
    this.merchantDisplayName = merchantDisplayName;
×
NEW
46
    return this;
×
47
  }
48

49
   /**
50
   * Platform merchants can customize the text that appears on the TapToPay screen during a transaction
51
   * @return merchantDisplayName
52
  **/
53
  @ApiModelProperty(value = "Platform merchants can customize the text that appears on the TapToPay screen during a transaction")
54
  @JsonProperty(JSON_PROPERTY_MERCHANT_DISPLAY_NAME)
55
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
56

57
  public String getMerchantDisplayName() {
NEW
58
    return merchantDisplayName;
×
59
  }
60

61

62
  @JsonProperty(JSON_PROPERTY_MERCHANT_DISPLAY_NAME)
63
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
64
  public void setMerchantDisplayName(String merchantDisplayName) {
NEW
65
    this.merchantDisplayName = merchantDisplayName;
×
NEW
66
  }
×
67

68

69
  /**
70
   * Return true if this TapToPay object is equal to o.
71
   */
72
  @Override
73
  public boolean equals(Object o) {
NEW
74
    if (this == o) {
×
NEW
75
      return true;
×
76
    }
NEW
77
    if (o == null || getClass() != o.getClass()) {
×
NEW
78
      return false;
×
79
    }
NEW
80
    TapToPay tapToPay = (TapToPay) o;
×
NEW
81
    return Objects.equals(this.merchantDisplayName, tapToPay.merchantDisplayName);
×
82
  }
83

84
  @Override
85
  public int hashCode() {
NEW
86
    return Objects.hash(merchantDisplayName);
×
87
  }
88

89
  @Override
90
  public String toString() {
NEW
91
    StringBuilder sb = new StringBuilder();
×
NEW
92
    sb.append("class TapToPay {\n");
×
NEW
93
    sb.append("    merchantDisplayName: ").append(toIndentedString(merchantDisplayName)).append("\n");
×
NEW
94
    sb.append("}");
×
NEW
95
    return sb.toString();
×
96
  }
97

98
  /**
99
   * Convert the given object to string with each line indented by 4 spaces
100
   * (except the first line).
101
   */
102
  private String toIndentedString(Object o) {
NEW
103
    if (o == null) {
×
NEW
104
      return "null";
×
105
    }
NEW
106
    return o.toString().replace("\n", "\n    ");
×
107
  }
108

109
/**
110
   * Create an instance of TapToPay given an JSON string
111
   *
112
   * @param jsonString JSON string
113
   * @return An instance of TapToPay
114
   * @throws JsonProcessingException if the JSON string is invalid with respect to TapToPay
115
   */
116
  public static TapToPay fromJson(String jsonString) throws JsonProcessingException {
NEW
117
    return JSON.getMapper().readValue(jsonString, TapToPay.class);
×
118
  }
119
/**
120
  * Convert an instance of TapToPay to an JSON string
121
  *
122
  * @return JSON string
123
  */
124
  public String toJson() throws JsonProcessingException {
NEW
125
    return JSON.getMapper().writeValueAsString(this);
×
126
  }
127
}
128

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