Skip to content

v5.0.0

Compare
Choose a tag to compare
@Justintime50 Justintime50 released this 30 Apr 19:17
· 11 commits to master since this release
29ee6a8

See our Upgrade Guide for more details.

  • Adds WebhookCustomHeader type, allowing custom_headers: []WebhookCustomHeader to be passed when creating/updating a webhook.
  • Adds the following functions to assist ReferralCustomers add credit cards and bank accounts:
    • AddReferralCustomerCreditCardFromStripe
    • AddReferralCustomerBankAccountFromStripe
    • BetaCreateCreditCardClientSecret
    • BetaCreateBankAccountClientSecret
    • BetaCreateBankAccountClientSecretWithReturlUrl
  • Routes AmazonShippingAccount to correct endpoint on create
  • Adds TrackingCodes to tracker list function
  • Adds EstDeliveryDate to TrackerDetail
  • 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 makes the errors field an interface, allowing for either the renamed FieldError object or a list of strings. Users will need to check for the type of error returned and handle appropriately)
    • Renamed the Error struct to FieldError to better match API docs and language
  • Address Verify and VerifyStrict params changed from lists of strings to bools
  • Swaps order of params for UpdateBrand so ID comes first followed by params like every other function
  • Renames errors to match other error names
    • EndOfPaginationErrorType to EndOfPaginationError
    • MissingWebhookSignatureErrorType to MissingWebhookSignatureError
    • MismatchWebhookSignatureErrorType to MismatchWebhookSignatureError
  • Renames CreateWebhookWithDetails to CreateWebhook
  • Removes the deprecated create_list tracker endpoint function as it is no longer available via API