Skip to content

Commit 4f64bdc

Browse files
authored
Merge pull request #146 from EasyPost/carrier_account
Add missing CarrierAccount properties
2 parents 3ac7614 + c69dfe3 commit 4f64bdc

File tree

3 files changed

+243
-0
lines changed

3 files changed

+243
-0
lines changed

src/main/java/com/easypost/model/CarrierAccount.java

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@
1010

1111
public final class CarrierAccount extends EasyPostResource {
1212
private String id;
13+
private String object;
14+
private String type;
15+
private Fields fields;
16+
private boolean clone;
1317
private String readable;
1418
private String description;
1519
private String reference;
1620
private String billingType;
1721
private Map<String, Object> credentials;
22+
private Map<String, Object> testCredentials;
1823

1924
/**
2025
* Create a carrier account.
@@ -210,6 +215,96 @@ public void setCredentials(final Map<String, Object> credentials) {
210215
this.credentials = credentials;
211216
}
212217

218+
/**
219+
* Get object type of the carrier account.
220+
*
221+
* @return object type of the carrier account.
222+
*/
223+
public String getObject() {
224+
return object;
225+
}
226+
227+
/**
228+
* Set object type of the carrier account.
229+
*
230+
* @param object object type of the carrier account.
231+
*/
232+
public void setObject(String object) {
233+
this.object = object;
234+
}
235+
236+
/**
237+
* Get type of the carrier account.
238+
*
239+
* @return type of the carrier account.
240+
*/
241+
public String getType() {
242+
return type;
243+
}
244+
245+
/**
246+
* Set type of the carrier account.
247+
*
248+
* @param type type of the carrier account.
249+
*/
250+
public void setType(String type) {
251+
this.type = type;
252+
}
253+
254+
/**
255+
* Get fields of the carrier account.
256+
*
257+
* @return fields of the carrier account.
258+
*/
259+
public Fields getFields() {
260+
return fields;
261+
}
262+
263+
/**
264+
* Set fields of the carrier account.
265+
*
266+
* @param fields fields of the carrier account.
267+
*/
268+
public void setFields(Fields fields) {
269+
this.fields = fields;
270+
}
271+
272+
/**
273+
* Get whether the carrier account is a clone.
274+
*
275+
* @return True if carrier account is a clone, false otherwise.
276+
*/
277+
public boolean isClone() {
278+
return clone;
279+
}
280+
281+
/**
282+
* Set whether the carrier account is a clone.
283+
*
284+
* @param clone True if carrier account is a clone, false otherwise.
285+
*/
286+
public void setClone(boolean clone) {
287+
this.clone = clone;
288+
}
289+
290+
/**
291+
* Get test credentials of the carrier account.
292+
*
293+
* @return test credentials of the carrier account.
294+
*/
295+
public Map<String, Object> getTestCredentials() {
296+
return testCredentials;
297+
}
298+
299+
/**
300+
* Set test credentials of the carrier account.
301+
*
302+
* @param testCredentials test credentials of the carrier account.
303+
*/
304+
public void setTestCredentials(Map<String, Object> testCredentials) {
305+
this.testCredentials = testCredentials;
306+
}
307+
213308
/**
214309
* Update this carrier account.
215310
*
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
package com.easypost.model;
2+
3+
import com.easypost.net.EasyPostResource;
4+
5+
public class Field extends EasyPostResource {
6+
private String key;
7+
private String visibility;
8+
private String label;
9+
private String value;
10+
11+
/**
12+
* Get the key of this field.
13+
* @return the key of this field.
14+
*/
15+
public String getKey() {
16+
return key;
17+
}
18+
19+
/**
20+
* Set the key of this field.
21+
* @param key the key of this field.
22+
*/
23+
public void setKey(String key) {
24+
this.key = key;
25+
}
26+
27+
/**
28+
* Get the visibility of this field.
29+
* @return the visibility of this field.
30+
*/
31+
public String getVisibility() {
32+
return visibility;
33+
}
34+
35+
/**
36+
* Set the visibility of this field.
37+
* @param visibility the visibility of this field.
38+
*/
39+
public void setVisibility(String visibility) {
40+
this.visibility = visibility;
41+
}
42+
43+
/**
44+
* Get the label of this field.
45+
* @return the label of this field.
46+
*/
47+
public String getLabel() {
48+
return label;
49+
}
50+
51+
/**
52+
* Set the label of this field.
53+
* @param label the label of this field.
54+
*/
55+
public void setLabel(String label) {
56+
this.label = label;
57+
}
58+
59+
/**
60+
* Get the value of this field.
61+
* @return the value of this field.
62+
*/
63+
public String getValue() {
64+
return value;
65+
}
66+
67+
/**
68+
* Set the value of this field.
69+
* @param value the value of this field.
70+
*/
71+
public void setValue(String value) {
72+
this.value = value;
73+
}
74+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
package com.easypost.model;
2+
3+
import com.easypost.net.EasyPostResource;
4+
5+
public class Fields extends EasyPostResource {
6+
private Field credentials;
7+
private Field testCredentials;
8+
private boolean autoLink;
9+
private boolean customWorkflow;
10+
11+
/**
12+
* Get the credentials for this Fields object.
13+
* @return the credentials for this Fields object.
14+
*/
15+
public Field getCredentials() {
16+
return credentials;
17+
}
18+
19+
/**
20+
* Set the credentials for this Fields object.
21+
* @param credentials the credentials for this Fields object.
22+
*/
23+
public void setCredentials(Field credentials) {
24+
this.credentials = credentials;
25+
}
26+
27+
/**
28+
* Get the test credentials for this Fields object.
29+
* @return the test credentials for this Fields object.
30+
*/
31+
public Field getTestCredentials() {
32+
return testCredentials;
33+
}
34+
35+
/**
36+
* Set the test credentials for this Fields object.
37+
* @param testCredentials the test credentials for this Fields object.
38+
*/
39+
public void setTestCredentials(Field testCredentials) {
40+
this.testCredentials = testCredentials;
41+
}
42+
43+
/**
44+
* Get whether this Fields object is auto-linked.
45+
* @return true if this Fields object is auto-linked, false otherwise.
46+
*/
47+
public boolean isAutoLink() {
48+
return autoLink;
49+
}
50+
51+
/**
52+
* Set whether this Fields object is auto-linked.
53+
* @param autoLink true if this Fields object is auto-linked, false otherwise.
54+
*/
55+
public void setAutoLink(boolean autoLink) {
56+
this.autoLink = autoLink;
57+
}
58+
59+
/**
60+
* Get whether this Fields object is a custom workflow.
61+
* @return true if this Fields object is a custom workflow, false otherwise.
62+
*/
63+
public boolean isCustomWorkflow() {
64+
return customWorkflow;
65+
}
66+
67+
/**
68+
* Set whether this Fields object is a custom workflow.
69+
* @param customWorkflow true if this Fields object is a custom workflow, false otherwise.
70+
*/
71+
public void setCustomWorkflow(boolean customWorkflow) {
72+
this.customWorkflow = customWorkflow;
73+
}
74+
}

0 commit comments

Comments
 (0)