Skip to content

Commit

Permalink
Add ShippingInfo model
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Samofal committed Jan 31, 2022
1 parent 84c8f92 commit cc937ee
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/Models/ShippingInfo.php
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);
}
}

0 comments on commit cc937ee

Please sign in to comment.