-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anton Samofal
committed
Jan 31, 2022
1 parent
84c8f92
commit cc937ee
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace Gets\Klarna\Models; | ||
|
||
use Fillable; | ||
|
||
class ShippingInfo | ||
{ | ||
use Fillable; | ||
|
||
public const SHIPPING_METHOD_PICK_UP_STORE = 'PickUpStore'; | ||
public const SHIPPING_METHOD_HOME = 'Home'; | ||
public const SHIPPING_METHOD_BOX_REG = 'BoxReg'; | ||
public const SHIPPING_METHOD_BOX_UNREG = 'BoxUnreg'; | ||
public const SHIPPING_METHOD_PICK_UP_POINT = 'PickUpPoint'; | ||
public const SHIPPING_METHOD_OWN = 'Own'; | ||
public const SHIPPING_METHOD_POSTAL = 'Postal'; | ||
public const SHIPPING_METHOD_DHL_PACKSTATION = 'DHLPackstation'; | ||
public const SHIPPING_METHOD_DIGITAL = 'Digital'; | ||
public const SHIPPING_METHOD_UNDEFINED = 'Undefined'; | ||
|
||
public $shipping_company; | ||
public $shipping_method; | ||
public $tracking_number; | ||
public $tracking_uri; | ||
|
||
public $return_shipping_company; | ||
public $return_tracking_number; | ||
public $return_tracking_uri; | ||
|
||
public function __construct(array $shippingInfo) | ||
{ | ||
$this->fillFromArray($shippingInfo); | ||
} | ||
} |