Skip to content

Commit 8f859e8

Browse files
author
Ash
committed
Amend Parcel.php resource to support quantity field for multicollo.
Add ShippingProduct.php, AvailableShippingFunctionality.php and WeightRange.php to support Shipping Products calls.
1 parent 3681703 commit 8f859e8

4 files changed

Lines changed: 176 additions & 0 deletions

File tree

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<?php
2+
3+
namespace Imbue\SendCloud\Resources;
4+
5+
class AvailableShippingFunctionality
6+
{
7+
/** @var (null|int)[] */
8+
public $age_check;
9+
10+
/** @var bool[] */
11+
public $b2b;
12+
13+
/** @var bool[] */
14+
public $b2c;
15+
16+
/** @var bool[] */
17+
public $boxable;
18+
19+
/** @var bool[] */
20+
public $bulky_goods;
21+
22+
/** @var (null|string)[] */
23+
public $carrier_billing_type;
24+
25+
/** @var (null|bool)[] */
26+
public $cash_on_delivery;
27+
28+
/** @var bool[] */
29+
public $dangerous_goods;
30+
31+
/** @var (null|int)[] */
32+
public $delivery_attempts;
33+
34+
/** @var (null|string)[] */
35+
public $delivery_before;
36+
37+
/** @var (null|string)[] */
38+
public $delivery_deadline;
39+
40+
/** @var bool[] */
41+
public $direct_contract_only;
42+
43+
/** @var bool[] */
44+
public $eco_delivery;
45+
46+
/** @var bool[] */
47+
public $ers;
48+
49+
/** @var (null|string)[] */
50+
public $first_mile;
51+
52+
/** @var bool[] */
53+
public $flex_delivery;
54+
55+
/** @var (null|string)[] */
56+
public $form_factor;
57+
58+
/** @var bool[] */
59+
public $fragile_goods;
60+
61+
/** @var bool[] */
62+
public $fresh_goods;
63+
64+
/** @var bool[] */
65+
public $harmonized_label;
66+
67+
/** @var bool[] */
68+
public $id_check;
69+
70+
/** @var (null|string)[] */
71+
public $incoterm;
72+
73+
/** @var (null|int)[] */
74+
public $insurance;
75+
76+
/** @var bool[] */
77+
public $labelless;
78+
79+
/** @var (null|string)[] */
80+
public $last_mile;
81+
82+
/** @var bool[] */
83+
public $manually;
84+
85+
/** @var bool[] */
86+
public $multicollo;
87+
88+
/** @var bool[] */
89+
public $neighbor_delivery;
90+
91+
/** @var bool[] */
92+
public $non_conveyable;
93+
94+
/** @var bool[] */
95+
public $personalized_delivery;
96+
97+
/** @var bool[] */
98+
public $premium;
99+
100+
/** @var (null|string)[] */
101+
public $priority;
102+
103+
/** @var bool[] */
104+
public $registered_delivery;
105+
106+
/** @var bool[] */
107+
public $returns;
108+
109+
/** @var (null|string)[] **/
110+
public $segment;
111+
112+
/** @var (null|string)[] */
113+
public $service_area;
114+
115+
/** @var bool[] */
116+
public $signature;
117+
118+
/** @var (null|string)[] */
119+
public $size;
120+
121+
/** @var bool[] */
122+
public $sorted;
123+
124+
/** @var bool[] */
125+
public $surcharge;
126+
127+
/** @var bool[] */
128+
public $tracked;
129+
130+
/** @var bool[] */
131+
public $tyres;
132+
133+
/** @var (null|string)[] */
134+
public $weekend_delivery;
135+
}

src/Resources/Parcel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,6 @@ class Parcel extends AbstractResource
7878
public $tracking_url;
7979
/** @var string */
8080
public $country_state;
81+
/** @var int */
82+
public $quantity;
8183
}

src/Resources/ShippingProduct.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace Imbue\SendCloud\Resources;
4+
5+
class ShippingProduct
6+
{
7+
/** @var string */
8+
public $name;
9+
10+
/** @var string */
11+
public $code;
12+
13+
/** @var string */
14+
public $carrier;
15+
16+
/** @var string */
17+
public $service_points_carrier;
18+
19+
/** @var WeightRange */
20+
public $weight_range;
21+
22+
/** @var AvailableShippingFunctionality[] */
23+
public $available_functionalities;
24+
25+
/** @var ShippingMethod[] */
26+
public $methods;
27+
}

src/Resources/WeightRange.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Imbue\SendCloud\Resources;
4+
5+
class WeightRange
6+
{
7+
/** @var int */
8+
public $minWeight;
9+
10+
/** @var int */
11+
public $maxWeight;
12+
}

0 commit comments

Comments
 (0)