-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAdditionalTransactionData.java
More file actions
104 lines (89 loc) · 3.02 KB
/
AdditionalTransactionData.java
File metadata and controls
104 lines (89 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package com.unzer.payment.models;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import lombok.Data;
import java.util.Objects;
@Data
@JsonTypeName("additionalTransactionDataModel")
@JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = JsonTypeInfo.Id.NAME)
public class AdditionalTransactionData {
private CardTransactionData card;
private ShippingTransactionData shipping;
private RiskData riskData;
private PaypalData paypal;
private WeroTransactionData wero;
/**
* URL to the merchant's Terms and Conditions Page
*/
private String termsAndConditionUrl;
/**
* URL to the merchant's Privacy Policy Page
*/
private String privacyPolicyUrl;
/**
* URL to the merchant's Terms and Conditions Page
*/
public String getTermsAndConditionsUrl() {
return termsAndConditionUrl;
}
/**
* URL to the merchant's Terms and Conditions Page
*/
public AdditionalTransactionData setTermsAndConditionsUrl(String termsAndConditionsUrl) {
this.termsAndConditionUrl = termsAndConditionsUrl;
return this;
}
/**
* URL to the merchant's Privacy Policy Page
*/
public String getPrivacyPolicyUrl() {
return privacyPolicyUrl;
}
/**
* URL to the merchant's Privacy Policy Page
*/
public AdditionalTransactionData setPrivacyPolicyUrl(String privacyPolicyUrl) {
this.privacyPolicyUrl = privacyPolicyUrl;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalTransactionData that = (AdditionalTransactionData) o;
if (!Objects.equals(card, that.card)) {
return false;
}
if (!Objects.equals(shipping, that.shipping)) {
return false;
}
if (!Objects.equals(riskData, that.riskData)) {
return false;
}
if (!Objects.equals(paypal, that.paypal)) {
return false;
}
if (!Objects.equals(wero, that.wero)) {
return false;
}
if (!Objects.equals(termsAndConditionUrl, that.termsAndConditionUrl)) {
return false;
}
return Objects.equals(privacyPolicyUrl, that.privacyPolicyUrl);
}
@Override
public int hashCode() {
int result = card != null ? card.hashCode() : 0;
result = 31 * result + (shipping != null ? shipping.hashCode() : 0);
result = 31 * result + (riskData != null ? riskData.hashCode() : 0);
result = 31 * result + (paypal != null ? paypal.hashCode() : 0);
result = 31 * result + (wero != null ? wero.hashCode() : 0);
result = 31 * result + (termsAndConditionUrl != null ? termsAndConditionUrl.hashCode() : 0);
result = 31 * result + (privacyPolicyUrl != null ? privacyPolicyUrl.hashCode() : 0);
return result;
}
}