v8.0.0
See our Upgrade Guide for more details.
- Adds
WebhookCustomHeadermodel, allowingcustom_headersto be passed when creating/updating a webhook - Adds the following functions to assist ReferralCustomers add credit cards and bank accounts:
betaReferralCustomer.createCreditCardClientSecretbetaReferralCustomer.createBankAccountClientSecretreferralCustomer.addCreditCardFromStripereferralCustomer.addBankAccountFromStripe
- Adds missing tracker props
- Adds
tracking_codesparam to tracker index endpoint - Routes
AmazonShippingAccountto the correct endpoint - Corrects payload wrapping for updating a webhook
- Fixes error parsing
- Allows for alternative format of
errorsfield (previously we deserialized theerrorsfield into a list ofErrorobjects; however, sometimes the errors are simply a list of strings. This change make theerrorsfield a list ofObjectallowing for either the newFieldErrorobject or a list of strings. Users will need to check for the type of error returned and handle appropriately) - Removed the unused
Errormodel - Added an explicit
AddressVerificationFieldErrormodel - The
BetaPaymentRefundnow uses a list ofFieldErrorinstead ofErrorfor theerrorsfield
- Allows for alternative format of
- Removes deprecated functions
paymentMethod.all(usebilling.retrievePaymentMethodsinstead)user.apiKeys(useapiKey.retrieveApiKeysForUserinstead)
- Replaces deprecated functions
shipment.lowestSmartRate(3rd param expects a validSmartRateAccuracy)utilities.findLowestSmartRate(3rd param expects a validSmartRateAccuracy)
- Renames
SmartrateAccuracyis nowSmartRateAccuracySmartrateCollectionis nowSmartRateCollectionshipment.smartratesis nowshipment.smartRatesTimeInTransit.getBySmartrateAccuracyis nowTimeInTransit.getSmartRateAccuracy
- Bumps dependencies