-
Notifications
You must be signed in to change notification settings - Fork 15
/
CartSetShippingCustomFieldActionImpl.java
110 lines (81 loc) · 3.03 KB
/
CartSetShippingCustomFieldActionImpl.java
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
105
106
107
108
109
110
package com.commercetools.api.models.cart;
import java.time.*;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.*;
import io.vrap.rmf.base.client.ModelBase;
import io.vrap.rmf.base.client.utils.Generated;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
* CartSetShippingCustomFieldAction
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class CartSetShippingCustomFieldActionImpl implements CartSetShippingCustomFieldAction, ModelBase {
private String action;
private String shippingKey;
private String name;
private java.lang.Object value;
@JsonCreator
CartSetShippingCustomFieldActionImpl(@JsonProperty("shippingKey") final String shippingKey,
@JsonProperty("name") final String name, @JsonProperty("value") final java.lang.Object value) {
this.shippingKey = shippingKey;
this.name = name;
this.value = value;
this.action = SET_SHIPPING_CUSTOM_FIELD;
}
public CartSetShippingCustomFieldActionImpl() {
this.action = SET_SHIPPING_CUSTOM_FIELD;
}
/**
*
*/
public String getAction() {
return this.action;
}
/**
* <p>User-defined unique identifier of the Shipping Method in a Cart with <code>Multiple</code> ShippingMode.</p>
*/
public String getShippingKey() {
return this.shippingKey;
}
/**
* <p>Name of the Custom Field.</p>
*/
public String getName() {
return this.name;
}
/**
* <p>If <code>value</code> is absent or <code>null</code>, this field will be removed if it exists. Trying to remove a field that does not exist will fail with an InvalidOperation error. If <code>value</code> is provided, it is set for the field defined by <code>name</code>.</p>
*/
public java.lang.Object getValue() {
return this.value;
}
public void setShippingKey(final String shippingKey) {
this.shippingKey = shippingKey;
}
public void setName(final String name) {
this.name = name;
}
public void setValue(final java.lang.Object value) {
this.value = value;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
CartSetShippingCustomFieldActionImpl that = (CartSetShippingCustomFieldActionImpl) o;
return new EqualsBuilder().append(action, that.action)
.append(shippingKey, that.shippingKey)
.append(name, that.name)
.append(value, that.value)
.isEquals();
}
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37).append(action).append(shippingKey).append(name).append(value).toHashCode();
}
}