Skip to content

Commit

Permalink
Added uploadAirbillForShipment()
Browse files Browse the repository at this point in the history
Added `uploadAirbillForShipment()` for uploading a base-64 encoded PDF airbill for a `ProvidedAirbill` shipment.
  • Loading branch information
jwcobb committed Jun 19, 2017
1 parent f732577 commit f6bdcd5
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## 4.0.4 (June 19, 2017)
- Added `uploadAirbillForShipment()` for uploading a base-64 encoded PDF airbill for a `ProvidedAirbill` shipment.
- Correct documentation for adding a logger middleware under Advanced Usage.

## 4.0.3 (June 9, 2017)
- Use `PUT` for `setTicketProperties()`.

Expand Down
2 changes: 1 addition & 1 deletion Documentation.md
Expand Up @@ -86,7 +86,7 @@ $apiClient = new TEvoClient([
'apiVersion' => 'v9',
'apiToken' => 'xxxxxxxxxxxxxxxxxxxxxxxx',
'apiSecret' => 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
]);
], $middlewares);

// Get a list of the 25 most popular events sorted by descending popularity
try {
Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Expand Up @@ -17,7 +17,7 @@ class Client
*
* @const string
*/
const VERSION = '4.0.3';
const VERSION = '4.0.4';

/**
* Guzzle service description
Expand Down
50 changes: 49 additions & 1 deletion src/Resources/v9/shipments.php
Expand Up @@ -322,7 +322,7 @@


/**
* Shipments / Download
* Shipments / Download Airbill
*/
'downloadAirbillForShipment' => [
'extends' => null,
Expand All @@ -344,6 +344,54 @@
],


/**
* Shipments / Upload Airbill
*/
'uploadAirbillForShipment' => [
'extends' => null,
'httpMethod' => 'POST',
'uri' => '/v9/shipments/{shipment_id}/upload_airbill',
'summary' => 'Upload an airbill for the specified shipment.',
'notes' => '',
'documentationUrl' => 'https://ticketevolution.atlassian.net/wiki/pages/viewpage.action?pageId=63602690',
'deprecated' => false,
'responseModel' => 'defaultJsonResponse',
'parameters' => [
'shipment_id' => [
'location' => 'uri',
'type' => 'integer',
'description' => 'The shipment number.',
'required' => true,
],
'file' => [
'location' => 'json',
'type' => 'string',
'description' => 'The base-64 encoded PDF.',
'required' => true,
],
'tracking_number' => [
'location' => 'json',
'type' => 'string',
'description' => 'The tracking number for the airbill being uploaded.',
'required' => true,
],
'carrier' => [
'location' => 'json',
'type' => 'string',
'description' => 'The carrier for which the airbill is provided.',
'required' => true,
'enum' => [
'fedex',
'ups',
'usps',
'dhl',
'other',
],
],
],
],


/**
* Shipments / Suggestion
*/
Expand Down

0 comments on commit f6bdcd5

Please sign in to comment.