forked from VinceG/USPS-php-api
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set return typing and updated examples
- Loading branch information
Showing
19 changed files
with
292 additions
and
437 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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
} | ||
], | ||
"require": { | ||
"php": ">=8.0", | ||
"php": "^8.1", | ||
"ext-curl": "*" | ||
}, | ||
"autoload": { | ||
|
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 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 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,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace USPS\Enum; | ||
|
||
enum MailType: string | ||
{ | ||
case LETTER = 'LETTER'; | ||
case FLAT = 'FLAT'; | ||
case PARCEL = 'PARCEL'; | ||
case POSTCARD = 'POSTCARD'; | ||
case PACKAGE = 'PACKAGE'; | ||
case PACKAGE_SERVICE = 'PACKAGE SERVICE'; | ||
} |
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,24 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace USPS\Enum; | ||
|
||
enum ServiceType: string | ||
{ | ||
case FIRST_CLASS = 'FIRST CLASS'; | ||
case FIRST_CLASS_COMMERCIAL = 'FIRST CLASS COMMERCIAL'; | ||
case FIRST_CLASS_HFP_COMMERCIAL = 'FIRST CLASS HFP COMMERCIAL'; | ||
case PRIORITY = 'PRIORITY'; | ||
case PRIORITY_COMMERCIAL = 'PRIORITY COMMERCIAL'; | ||
case PRIORITY_HFP_COMMERCIAL = 'PRIORITY HFP COMMERCIAL'; | ||
case EXPRESS = 'EXPRESS'; | ||
case EXPRESS_COMMERCIAL = 'EXPRESS COMMERCIAL'; | ||
case EXPRESS_SH = 'EXPRESS SH'; | ||
case EXPRESS_SH_COMMERCIAL = 'EXPRESS SH COMMERCIAL'; | ||
case EXPRESS_HFP = 'EXPRESS HFP'; | ||
case EXPRESS_HFP_COMMERCIAL = 'EXPRESS HFP COMMERCIAL'; | ||
case PARCEL = 'PARCEL'; | ||
case MEDIA = 'MEDIA'; | ||
case LIBRARY = 'LIBRARY'; | ||
case ALL = 'ALL'; | ||
case ONLINE = 'ONLINE'; | ||
} |
Oops, something went wrong.