Skip to content

Commit

Permalink
Added carrier_id to Rate Response to handle multiple account response…
Browse files Browse the repository at this point in the history
…s for same carrier (#14)

Added carrier_id Setup used by Shipment Request to specify carrier configuration when handling multiple carrier accounts
  • Loading branch information
gtrbunny committed Feb 23, 2024
1 parent 0f5e4ce commit 04dbdb8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Common/Setup.php
Expand Up @@ -39,6 +39,13 @@ abstract class Setup
*/
protected $carrier;

/**
* @JMS\Type("string")
*
* @var string
*/
protected $carrier_id;

/**
* @JMS\Type("string")
*
Expand Down
1 change: 1 addition & 0 deletions src/Requests/Types/Setup.php
Expand Up @@ -38,6 +38,7 @@

/**
* @property-write string $carrier
* @property-write string $carrier_id
* @property-write string $service
* @property-write string $currency
* @property-write DateTimeInterface $shipment_date
Expand Down
8 changes: 8 additions & 0 deletions src/Responses/Types/Rate.php
Expand Up @@ -33,6 +33,7 @@

/**
* @property-read string $carrier
* @property-read string $carrier_id
* @property-read string $service
* @property-read string $currency
* @property-read float $price
Expand All @@ -49,6 +50,13 @@ final class Rate
*/
private $carrier;

/**
* @JMS\Type("string")
*
* @var string
*/
private $carrier_id;

/**
* @JMS\Type("string")
*
Expand Down

0 comments on commit 04dbdb8

Please sign in to comment.