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

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

11 Dec 2023 03:01PM UTC coverage: 12.835%. First build
#2926

push

web-flow
Merge 90aeeb71f into 6bfb4aaab

1 of 32 new or added lines in 2 files covered. (3.13%)

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

40
/**
41
* Platform merchants can customize the text that appears on the TapToPay screen during a transaction
42
*/
43
  private String merchantDisplayName;
44

NEW
45
  public TapToPay() { 
×
NEW
46
  }
×
47

48
  public TapToPay merchantDisplayName(String merchantDisplayName) {
NEW
49
    this.merchantDisplayName = merchantDisplayName;
×
NEW
50
    return this;
×
51
  }
52

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

61
  public String getMerchantDisplayName() {
NEW
62
    return merchantDisplayName;
×
63
  }
64

65

66
  @JsonProperty(JSON_PROPERTY_MERCHANT_DISPLAY_NAME)
67
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68
  public void setMerchantDisplayName(String merchantDisplayName) {
NEW
69
    this.merchantDisplayName = merchantDisplayName;
×
NEW
70
  }
×
71

72

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

88
  @Override
89
  public int hashCode() {
NEW
90
    return Objects.hash(merchantDisplayName);
×
91
  }
92

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

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

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

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