diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e981b8e..991824ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Next Release +- Adds `surcharges` to `Rate` and a `Surcharge` model - Removes the deprecated, unusable `addCreditCard` function - Stripe has disabled the ability to pass plain credit card details over the wire and now requires using [Stripe.js/Elements/Checkout](https://support.stripe.com/questions/card-tokenization-restrictions-using-publishable-keys). Follow the [Decentralized (EasyPost-Manage Billing) Guide](https://docs.easypost.com/guides/get-started-with-forge/easypost-managed-billing-guide#referralcustomer-billing-management) for more details on the new flow to use. - Makes `referralCustomer.retrieveEasypostStripeApiKey` public to help facilitate adding credit cards using Stripe.js diff --git a/lib/EasyPost/Rate.php b/lib/EasyPost/Rate.php index b717e5d2..930d4c31 100644 --- a/lib/EasyPost/Rate.php +++ b/lib/EasyPost/Rate.php @@ -20,6 +20,7 @@ * @property int $delivery_days * @property string $delivery_date * @property bool $delivery_date_guaranteed + * @property Surcharge[] $surcharges * @property string $created_at * @property string $updated_at */ diff --git a/lib/EasyPost/Surcharge.php b/lib/EasyPost/Surcharge.php new file mode 100644 index 00000000..05ea1292 --- /dev/null +++ b/lib/EasyPost/Surcharge.php @@ -0,0 +1,17 @@ + Shipment::class, 'ShipmentInvoiceReport' => Report::class, 'ShipmentReport' => Report::class, + 'Surcharge' => Surcharge::class, 'TaxIdentifier' => TaxIdentifier::class, 'Tracker' => Tracker::class, 'TrackerReport' => Report::class, diff --git a/lib/easypost.php b/lib/easypost.php index 90d15d52..3e902c73 100644 --- a/lib/easypost.php +++ b/lib/easypost.php @@ -82,6 +82,7 @@ require_once(dirname(__FILE__) . '/EasyPost/Report.php'); require_once(dirname(__FILE__) . '/EasyPost/ScanForm.php'); require_once(dirname(__FILE__) . '/EasyPost/Shipment.php'); +require_once(dirname(__FILE__) . '/EasyPost/Surcharge.php'); require_once(dirname(__FILE__) . '/EasyPost/TaxIdentifier.php'); require_once(dirname(__FILE__) . '/EasyPost/Tracker.php'); require_once(dirname(__FILE__) . '/EasyPost/TrackingDetail.php');