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

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

24 May 2024 12:08PM UTC coverage: 12.05%. First build
#3286

push

web-flow
Merge 8e2ea04f7 into 67f331171

10 of 150 new or added lines in 13 files covered. (6.67%)

12475 of 103524 relevant lines covered (12.05%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/adyen/model/checkout/TaxTotal.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 71
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.checkout;
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.checkout.Amount;
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
 * TaxTotal
33
 */
34
@JsonPropertyOrder({
35
  TaxTotal.JSON_PROPERTY_AMOUNT
36
})
37

38
public class TaxTotal {
39
  public static final String JSON_PROPERTY_AMOUNT = "amount";
40
  private Amount amount;
41

NEW
42
  public TaxTotal() { 
×
NEW
43
  }
×
44

45
  public TaxTotal amount(Amount amount) {
NEW
46
    this.amount = amount;
×
NEW
47
    return this;
×
48
  }
49

50
   /**
51
   * Get amount
52
   * @return amount
53
  **/
54
  @ApiModelProperty(value = "")
55
  @JsonProperty(JSON_PROPERTY_AMOUNT)
56
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
57

58
  public Amount getAmount() {
NEW
59
    return amount;
×
60
  }
61

62

63
 /**
64
  * amount
65
  *
66
  * @param amount
67
  */ 
68
  @JsonProperty(JSON_PROPERTY_AMOUNT)
69
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
70
  public void setAmount(Amount amount) {
NEW
71
    this.amount = amount;
×
NEW
72
  }
×
73

74

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

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

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

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

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

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

© 2026 Coveralls, Inc