Skip to content

v8.0.0

Choose a tag to compare

@Justintime50 Justintime50 released this 30 Apr 19:16
· 43 commits to master since this release
d1a0020

See our Upgrade Guide for more details.

  • Adds WebhookCustomHeader model, allowing custom_headers to be passed when creating/updating a webhook
  • Adds the following functions to assist ReferralCustomers add credit cards and bank accounts:
    • betaReferralCustomer.createCreditCardClientSecret
    • betaReferralCustomer.createBankAccountClientSecret
    • referralCustomer.addCreditCardFromStripe
    • referralCustomer.addBankAccountFromStripe
  • Adds missing tracker props
  • Adds tracking_codes param to tracker index endpoint
  • Routes AmazonShippingAccount to the correct endpoint
  • Corrects payload wrapping for updating a webhook
  • Fixes error parsing
    • Allows for alternative format of errors field (previously we deserialized the errors field into a list of Error objects; however, sometimes the errors are simply a list of strings. This change make the errors field a list of Object allowing for either the new FieldError object or a list of strings. Users will need to check for the type of error returned and handle appropriately)
    • Removed the unused Error model
    • Added an explicit AddressVerificationFieldError model
    • The BetaPaymentRefund now uses a list of FieldError instead of Error for the errors field
  • Removes deprecated functions
    • paymentMethod.all (use billing.retrievePaymentMethods instead)
    • user.apiKeys (use apiKey.retrieveApiKeysForUser instead)
  • Replaces deprecated functions
    • shipment.lowestSmartRate (3rd param expects a valid SmartRateAccuracy)
    • utilities.findLowestSmartRate (3rd param expects a valid SmartRateAccuracy)
  • Renames
    • SmartrateAccuracy is now SmartRateAccuracy
    • SmartrateCollection is now SmartRateCollection
    • shipment.smartrates is now shipment.smartRates
    • TimeInTransit.getBySmartrateAccuracy is now TimeInTransit.getSmartRateAccuracy
  • Bumps dependencies