1 | <?php |
||
14 | class CreateObject extends CommonParameter |
||
15 | { |
||
16 | use ReadWriteAttributes { |
||
17 | toArray as public __toArray; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * First dimension of the Parcel. |
||
22 | * The length should always be the largest of the three dimensions length, width and height; |
||
23 | * our API will automatically order them if this is not the case. |
||
24 | * Up to six digits in front and four digits after the decimal separator are accepted. |
||
25 | * |
||
26 | * Required |
||
27 | * |
||
28 | * @return int |
||
29 | * @throws InvalidAttributeException |
||
30 | */ |
||
31 | public function getLength() |
||
35 | |||
36 | /** |
||
37 | * Second dimension of the Parcel. |
||
38 | * The width should always be the second largest of the three dimensions length, width and height; |
||
39 | * our API will automatically order them if this is not the case. |
||
40 | * Up to six digits in front and four digits after the decimal separator are accepted. |
||
41 | * |
||
42 | * Required |
||
43 | * |
||
44 | * @return int |
||
45 | * @throws InvalidAttributeException |
||
46 | */ |
||
47 | public function getWidth() |
||
51 | |||
52 | /** |
||
53 | * Third dimension of the parcel. |
||
54 | * The height should always be the smallest of the three dimensions length, width and height; |
||
55 | * our API will automatically order them if this is not the case. |
||
56 | * Up to six digits in front and four digits after the decimal separator are accepted. |
||
57 | * |
||
58 | * Required |
||
59 | * |
||
60 | * @return int |
||
61 | * @throws InvalidAttributeException |
||
62 | */ |
||
63 | public function getHeight() |
||
67 | |||
68 | /** |
||
69 | * The unit used for length, width and height. |
||
70 | * |
||
71 | * Required |
||
72 | * |
||
73 | * @return string |
||
74 | * @throws InvalidAttributeException |
||
75 | */ |
||
76 | public function getDistanceUnit() |
||
82 | |||
83 | /** |
||
84 | * Weight of the parcel. Up to six digits in front and four digits after the decimal separator are accepted. |
||
85 | * |
||
86 | * Required |
||
87 | * |
||
88 | * @return int |
||
89 | * @throws InvalidAttributeException |
||
90 | */ |
||
91 | public function getWeight() |
||
95 | |||
96 | /** |
||
97 | * The unit used for weight. |
||
98 | * |
||
99 | * Required |
||
100 | * |
||
101 | * @return string |
||
102 | * @throws InvalidAttributeException |
||
103 | */ |
||
104 | public function getMassUnit() |
||
110 | |||
111 | /** |
||
112 | * A parcel template is a predefined package used by one or multiple carriers. |
||
113 | * See the table below for all available values and the corresponding tokens. |
||
114 | * When a template is given, the parcel dimensions have to be sent, but will not be used for the Rate generation. |
||
115 | * The dimensions below will instead be used. The parcel weight is not affected by the use of a template. |
||
116 | * |
||
117 | * Optional |
||
118 | * |
||
119 | * @return string |
||
120 | */ |
||
121 | public function getTemplate() |
||
125 | |||
126 | public function toArray() |
||
130 | } |
||
131 |