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

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

18 Sep 2023 12:11PM UTC coverage: 13.219%. First build
#2658

push

web-flow
Merge 477a9da03 into ba706cfa8

1770 of 1770 new or added lines in 34 files covered. (100.0%)

10287 of 77817 relevant lines covered (13.22%)

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/BcmcInfo.java
1
/*
2
 * Management API
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.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.adyen.model.management.TransactionDescriptionInfo;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * BcmcInfo
33
 */
34
@JsonPropertyOrder({
35
  BcmcInfo.JSON_PROPERTY_ENABLE_BCMC_MOBILE,
36
  BcmcInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION
37
})
38

39
public class BcmcInfo {
40
  public static final String JSON_PROPERTY_ENABLE_BCMC_MOBILE = "enableBcmcMobile";
41
  private Boolean enableBcmcMobile;
42

43
  public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription";
44
  private TransactionDescriptionInfo transactionDescription;
45

46
  public BcmcInfo() { 
×
47
  }
×
48

49
  public BcmcInfo enableBcmcMobile(Boolean enableBcmcMobile) {
50
    this.enableBcmcMobile = enableBcmcMobile;
×
51
    return this;
×
52
  }
53

54
   /**
55
   * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled.
56
   * @return enableBcmcMobile
57
  **/
58
  @ApiModelProperty(value = "Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled.")
59
  @JsonProperty(JSON_PROPERTY_ENABLE_BCMC_MOBILE)
60
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
61

62
  public Boolean getEnableBcmcMobile() {
63
    return enableBcmcMobile;
×
64
  }
65

66

67
  @JsonProperty(JSON_PROPERTY_ENABLE_BCMC_MOBILE)
68
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69
  public void setEnableBcmcMobile(Boolean enableBcmcMobile) {
70
    this.enableBcmcMobile = enableBcmcMobile;
×
71
  }
×
72

73

74
  public BcmcInfo transactionDescription(TransactionDescriptionInfo transactionDescription) {
75
    this.transactionDescription = transactionDescription;
×
76
    return this;
×
77
  }
78

79
   /**
80
   * Get transactionDescription
81
   * @return transactionDescription
82
  **/
83
  @ApiModelProperty(value = "")
84
  @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION)
85
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
86

87
  public TransactionDescriptionInfo getTransactionDescription() {
88
    return transactionDescription;
×
89
  }
90

91

92
  @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION)
93
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
94
  public void setTransactionDescription(TransactionDescriptionInfo transactionDescription) {
95
    this.transactionDescription = transactionDescription;
×
96
  }
×
97

98

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

115
  @Override
116
  public int hashCode() {
117
    return Objects.hash(enableBcmcMobile, transactionDescription);
×
118
  }
119

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

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

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

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