v5.0.0
See our Upgrade Guide for more details.
- Adds
WebhookCustomHeader
type, allowingcustom_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
toTrackerDetail
- Fixes error parsing
- Allows for alternative format of
errors
field (previously we deserialized theerrors
field into a list ofError
objects; however, sometimes the errors are simply a list of strings. This change makes theerrors
field aninterface
, allowing for either the renamedFieldError
object or a list of strings. Users will need to check for the type of error returned and handle appropriately) - Renamed the
Error
struct toFieldError
to better match API docs and language
- Allows for alternative format of
- Address
Verify
andVerifyStrict
params changed from lists of strings to bools - Swaps order of params for
UpdateBrand
soID
comes first followed by params like every other function - Renames errors to match other error names
EndOfPaginationErrorType
toEndOfPaginationError
MissingWebhookSignatureErrorType
toMissingWebhookSignatureError
MismatchWebhookSignatureErrorType
toMismatchWebhookSignatureError
- Renames
CreateWebhookWithDetails
toCreateWebhook
- Removes the deprecated
create_list
tracker endpoint function as it is no longer available via API