| 1 | <?php |
||
| 9 | class ShippingZone extends BaseModel |
||
| 10 | { |
||
| 11 | use QueryBuilderTrait; |
||
| 12 | |||
| 13 | protected $endpoint = 'shipping/zones'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Retrieve all Items. |
||
| 17 | * |
||
| 18 | * @param int $id |
||
| 19 | * @param array $options |
||
| 20 | * |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | protected function getLocations($id, $options = []) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Update Existing Item. |
||
| 32 | * |
||
| 33 | * @param int $id |
||
| 34 | * @param array $data |
||
| 35 | * |
||
| 36 | * @return object |
||
| 37 | */ |
||
| 38 | protected function updateLocations($id, $data = []) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Create new Item. |
||
| 45 | * |
||
| 46 | * @param int $id |
||
| 47 | * @param array $data |
||
| 48 | * |
||
| 49 | * @return object |
||
| 50 | */ |
||
| 51 | protected function addShippingZoneMethod($id, $data) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Retrieve single Item. |
||
| 60 | * |
||
| 61 | * @param int $zone_id |
||
| 62 | * @param int $id |
||
| 63 | * @param array $options |
||
| 64 | * |
||
| 65 | * @return object |
||
| 66 | */ |
||
| 67 | protected function getShippingZoneMethod($zone_id, $id, $options = []) |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Retrieve all Items. |
||
| 76 | * |
||
| 77 | * @param int $id |
||
| 78 | * @param array $options |
||
| 79 | * |
||
| 80 | * @return array |
||
| 81 | */ |
||
| 82 | protected function getShippingZoneMethods($id, $options = []) |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Update Existing Item. |
||
| 91 | * |
||
| 92 | * @param int $zone_id |
||
| 93 | * @param int $id |
||
| 94 | * @param array $data |
||
| 95 | * |
||
| 96 | * @return object |
||
| 97 | */ |
||
| 98 | protected function updateShippingZoneMethod($zone_id, $id, $data = []) |
||
| 104 | |||
| 105 | /** |
||
| 106 | * Destroy Item. |
||
| 107 | * |
||
| 108 | * @param int $zone_id |
||
| 109 | * @param int $id |
||
| 110 | * @param array $options |
||
| 111 | * |
||
| 112 | * @return object |
||
| 113 | */ |
||
| 114 | protected function deleteShippingZoneMethod($zone_id, $id, $options = []) |
||
| 120 | } |
||
| 121 |