Skip to content

Commit

Permalink
update easypost library to v3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Oct 25, 2016
1 parent d1817f4 commit 27933e8
Show file tree
Hide file tree
Showing 34 changed files with 6,833 additions and 10 deletions.
18 changes: 9 additions & 9 deletions external/ExtPrograms.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Swiftmailer,5.4.3,swiftmailer.org,5.4.3,we add eDebugLogger plugin & fix php 5.
ups-php,0.2,code.google.com/p/ups-php,0.2,"updated/fixed xml, etc� to work"
fedex-php,16.0.0,https://www.fedex.com/wpor/web/jsp/drclinks.jsp?links=wss/getstarted.html,16.0.0,copy/edit RateAvailableServicesWebClient.php into fedexshippingcalculator->getRates()
Smarty,3.1.27,smarty.net,3.1.30,
phpthumb,1.7.14-201608101311,https://github.com/JamesHeinrich/phpThumb,1.7.14-201608101311,phpThumb.config.php - we also allow &amp in parsing and err command
phpthumb,1.7.14-201608101311,github.com/JamesHeinrich/phpThumb,1.7.14-201608101311,phpThumb.config.php - we also allow &amp in parsing and err command
minify,2.3.0,github.com/mrclay/minify,2.3.0,modify config.php
YUI2,2.9.0,developer.yahoo.com/yui/2,2.9.0,
YUI3,3.18.1,https://github.com/yui/yui3/releases,3.18.1,
YUI3,3.18.1,github.com/yui/yui3/releases,3.18.1,
yui2in3,,github.com/yui/2in3,,
recaptchalib,1.1.2,https://github.com/google/ReCAPTCHA,1.1.2,
recaptchalib,1.1.2,github.com/google/ReCAPTCHA,1.1.2,
barcode,1 5/10/2005,www.sid6581.net/cs/php-scripts/barcode,1 5/10/2005,
feedcreator.class.php,1.80exp,sourceforge.net/projects/feedcreator,1.80dev,"blog.pothoven.net/2006/01/changing-feedcreatorclassphp-for.html, also merged 1.7.3 from Drupal"
xmlrpc.php,4.1.1,github.com/gggeek/phpxmlrpc,4.1.1,
Expand All @@ -30,9 +30,9 @@ Font-Awesome,4.7.0,fortawesome.github.com/Font-Awesome,4.7.0,
Adminer,4.2.5,www.adminer.org,4.2.5,"customized plugsins: tinymce, edit-textarea & edit-calendar"
SimpleAjaxUploader,2.5.5,github.com/LPology/Simple-Ajax-Uploader,2.5.5,also converted to yui module 2.5.3
normalize.css,5.0.0,necolas.github.com/normalize.css/,5.0.0,auto included in bootstrap 3
MediaElement.js,2.23.3,mediaelementjs.com/,2.23.3,
Facebook PHP SDK3,3.2.3,github.com/facebook/facebook-php-sdk,5.3.1,
Facebook PHP SDK4,4.0.23,github.com/facebook/facebook-php-sdk-v4,5.3.1,
MediaElement.js,2.23.4,mediaelementjs.com/,2.23.4,
Facebook PHP SDK3,3.2.3,github.com/facebook/facebook-php-sdk,5.4.1,
Facebook PHP SDK4,4.0.23,github.com/facebook/facebook-php-sdk-v4,5.4.1,
Respond,1.4.2,github.com/scottjehl/Respond,1.4.2,IE6-8 shim
html5shiv,3.7.3,github.com/aFarkas/html5shiv,3.7.3,IE6-8 shim
csshover.htc,3.11,peterned.home.xs4all.nl/csshover.html,3.11,IE6 shim
Expand Down Expand Up @@ -62,7 +62,7 @@ colorbox,1.6.4,www.jacklmoore.com/colorbox,1.6.4,using style #5 renamed to jquer
Searcher,0.3.0,github.com/lloiser/jquery-searcher/,0.3.0,
DateTimePicker,2.5.4exp,xdsoft.net/jqplugins/datetimepicker/,2.5.4,we add .js auto-close on inline date select and extra 'reset' work & remove .css z-index issue
Bootstrap DateTimePicker,4.17.37,github.com/Eonasdan/bootstrap-datetimepicker,4.17.43,patch for 'today' in side-by-side view
moment.js,2.15.1,github.com/moment/moment,2.15.1,needed for Bootstrap DateTimePicker
moment.js,2.15.2,github.com/moment/moment,2.15.2,needed for Bootstrap DateTimePicker
strength-meter,1.1.3,github.com/kartik-v/strength-meter,1.1.3,
Sortable,1.4.2exp,github.com/RubaXa/Sortable,1.4.2,patched with dragout fix
jstree,3.3.2,github.com/vakata/jstree,3.3.2,added nav menu icons to stylesheet
Expand All @@ -76,7 +76,7 @@ select2,4.0.3,github.com/ivaynberg/select2,4.0.3,renamed select2.full.js to sele
shuffle.js,v3.1.1,github.com/Vestride/Shuffle,4.0.2,
Jasny Bootstrap2,2.3.1,jasny.github.io/bootstrap,2.3.1,only using bootstrap-fileupload at this time
Jasny Bootstrap,3.2.0beta1,jasny.github.io/bootstrap,3.2.0beta1,only using fileinput at this time
easypost sdk,3.1.2,github.com/EasyPost/easypost-php,3.1.2,
easypost sdk,3.1.3,github.com/EasyPost/easypost-php,3.1.3,
jquery.cookie.js,1.4.1,github.com/carhartl/jquery-cookie,1.4.1,
jquery.history.js,1.8b2,github.com/browserstate/history.js/,1.8b2,
Webshim,1.15.10,github.com/aFarkas/webshim,1.15.10,
Expand All @@ -89,7 +89,7 @@ TCPDF,6.2.12,sourceforge.net/projects/tcpdf,6.2.13,"optional, used by HTML2PDF"
Kint,1.0.10,github.com/raveren/kint,1.0.10,"optional, for formatted edebug output"
,,,,
Not included yet,,,,
jQuery3,,jquery.com,3.1.0,
jQuery3,,jquery.com,3.1.1,
jQuery3 Migrate,,jquery.com,3.0.0,renamed to migrate.js for easy loading
,,,,
No longer included,,,,
Expand Down
131 changes: 131 additions & 0 deletions external/easypost-php-3.1.3/CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
=== 3.1.3 2016-10-25

* Fixed warning message from Address Verify/VerifyStrict


=== 3.1.2 2016-09-16

* Added create_list for trackers


=== 3.1.1 2016-07-21

* Added Insurance support


=== 3.1.0 2016-06-02

* Renamed "Resource" class to "EasypostResource" since Resource is reserved in PHP7 (thanks ccovey!)


=== 3.0.3 2016-02-22

* Added ability to create top-level users


=== 3.0.2 2016-01-29

* Added 'verify' and 'verify_strict' options to Address creation


=== 3.0.1 2016-01-05

* Updated ReadMe (thanks browner12!)
* Added DocBlock annotations to all methods (thanks browner12!)


=== 3.0.0 2015-12-18

* Fixed Shipment Retrieve by tracking_code


=== 2.1.2 2015-11-04

* Added Tracker.all example, and updated some old examples


=== 2.1.1 2015-07-01

* Removed cURL options for SSL version, timeout, and connect timeout. The
default values for these options are acceptable.


=== 2.1.0 2015-04-10

* Added User and CarrierAccount resources and examples for each.
* Modified EasyPost Object setter to record the change in the top level parent
object rather than the object that the change was made in. This allows you to
change sub objects and then call save() on the parent to have all properties
saved.
* Removed EasyPost Object transientValues and made unsavedValues act as a
representation of the params to send on save, rather than a flag to indicate
if a property had been changed.
* Added support for EasyPost's new error format: {"error": {"message": "...",
"code": ..., "errors": {...}}} as well as a prettyPrint function to better
display errors in development.
* Added support for additional HTTP methods PATCH and PUT.
* EasyPost Objects are now Iterable.


=== 2.0.12 2015-02-04

* Added pickup class
* Added pickup example


=== 2.0.11 2014-11-04

* Added tracker to shipment buy response
* Updated tracker examples


=== 2.0.10 2014-07-07

* Added Item, Container, and Order resources.


=== 2.0.9 2014-04-08

* Updated the CA cert bundle.


=== 2.0.8 2013-12-29

* Added the ability to add negative filters to Shipment->lowest_rate by starting them with an exclamation mark.


=== 2.0.7 2013-11-08

* Added endpoint to create shipment from tracking code.


=== 2.0.6 2013-10-21

* Added Event resource for webhooks.


=== 2.0.5 2013-08-30

* API Addition: Batch.buy method added. Trigger the purchasing of labels after a successful Batch.create.
* API Addition: Batch.scan_form method added. Quickly generate a scan_form for an entire batch.


=== 2.0.4 2013-07-31

* API Addition: Tracker objects added. Trackers can be used to register any tracking code with EasyPost webhooks.


=== 2.0.3 2013-07-16

* Bug fix: error messages should no longer be truncated to their first character.


=== 2.0.2 2013-07-05

* Added function to Address to all creating and verifying at the same time.


=== 2.0.1 2013-07-01

* Add label function to Shipment to request specific label file_formats (pdf, epl2, zpl).
* Add insure function to Shipment. Add insurance to any shipment in one call!
21 changes: 21 additions & 0 deletions external/easypost-php-3.1.3/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2013 EasyPost (Simpler Postage, Inc)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
110 changes: 110 additions & 0 deletions external/easypost-php-3.1.3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# EasyPost PHP Client Library

EasyPost is a simple shipping API. You can sign up for an account at https://easypost.com

Installation
------------

There are two ways to install:

**Require Library**

```php
require_once("/path/to/lib/easypost.php");
```

**or via [Composer](http://getcomposer.org/):**

Create or add the following to composer.json in your project root:
```javascript
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/EasyPost/easypost-php"
}
],
"require": {
"easypost/easypost-php": "~3.0"
}
}
```

Install composer dependencies:
```shell
php composer.phar install
```

Require dependencies:
```php
require_once("/path/to/vendor/autoload.php");
```

*NOTE:* This library relies on the [mbstring](http://php.net/manual/en/book.mbstring.php) extension. Ensure you have it [installed](http://www.php.net/manual/en/mbstring.installation.php) correctly before using the library.

Example
-------

```php
require_once("path/to/vendor/autoload.php");
\EasyPost\EasyPost::setApiKey('cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi');

$to_address = \EasyPost\Address::create(
array(
"name" => "Dr. Steve Brule",
"street1" => "179 N Harbor Dr",
"city" => "Redondo Beach",
"state" => "CA",
"zip" => "90277",
"phone" => "310-808-5243"
)
);
$from_address = \EasyPost\Address::create(
array(
"company" => "EasyPost",
"street1" => "118 2nd Street",
"street2" => "4th Floor",
"city" => "San Francisco",
"state" => "CA",
"zip" => "94105",
"phone" => "415-456-7890"
)
);
$parcel = \EasyPost\Parcel::create(
array(
"predefined_package" => "LargeFlatRateBox",
"weight" => 76.9
)
);
$shipment = \EasyPost\Shipment::create(
array(
"to_address" => $to_address,
"from_address" => $from_address,
"parcel" => $parcel
)
);

$shipment->buy($shipment->lowest_rate());

$shipment->insure(array('amount' => 100));

echo $shipment->postage_label->label_url;
```

Documentation
--------------------

Up-to-date documentation at: https://www.easypost.com/docs

Tests
--------------------

Install dev dependencies:
```shell
php composer.phar install --dev
```

Run tests:
```shell
path/to/bin/phpunit
```
1 change: 1 addition & 0 deletions external/easypost-php-3.1.3/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.3
Loading

0 comments on commit 27933e8

Please sign in to comment.