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

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

21 Dec 2023 02:05PM UTC coverage: 12.834%. First build
#2969

push

web-flow
Merge 202bcc327 into 1768c6d57

4 of 233 new or added lines in 12 files covered. (1.72%)

12489 of 97309 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
 /**
63
  * Platform merchants can customize the text that appears on the TapToPay screen during a transaction
64
  *
65
  * @param merchantDisplayName
66
  */ 
67
  @JsonProperty(JSON_PROPERTY_MERCHANT_DISPLAY_NAME)
68
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69
  public void setMerchantDisplayName(String merchantDisplayName) {
NEW
70
    this.merchantDisplayName = merchantDisplayName;
×
NEW
71
  }
×
72

73

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

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

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

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

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

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