-
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.
Added support for Italy parcel points
- Loading branch information
1 parent
602ba87
commit fa80564
Showing
12 changed files
with
334 additions
and
110 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
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
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
<?php | ||
|
||
namespace Answear\InpostBundle\DeliveryCountry; | ||
|
||
interface DeliveryCountryInterface | ||
{ | ||
public function getEndpoint(): string; | ||
|
||
public function getApiVersion(): string; | ||
} |
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,19 @@ | ||
<?php | ||
|
||
namespace Answear\InpostBundle\DeliveryCountry; | ||
|
||
class DeliveryItaly implements DeliveryCountryInterface | ||
{ | ||
private const BASE_URL = 'https://api-it-local-points.easypack24.net/'; | ||
private const API_VERSION = 'v1'; | ||
|
||
public function getEndpoint(): string | ||
{ | ||
return self::BASE_URL; | ||
} | ||
|
||
public function getApiVersion(): string | ||
{ | ||
return self::API_VERSION; | ||
} | ||
} |
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,19 @@ | ||
<?php | ||
|
||
namespace Answear\InpostBundle\DeliveryCountry; | ||
|
||
class DeliveryPoland implements DeliveryCountryInterface | ||
{ | ||
private const BASE_URL = 'https://api-shipx-pl.easypack24.net/'; | ||
private const API_VERSION = 'v1'; | ||
|
||
public function getEndpoint(): string | ||
{ | ||
return self::BASE_URL; | ||
} | ||
|
||
public function getApiVersion(): string | ||
{ | ||
return self::API_VERSION; | ||
} | ||
} |
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.