Skip to content

4.6.0

Choose a tag to compare

@github-actions github-actions released this 30 Mar 10:53
66d1eb0

Release - 4.6.0 (#311)

This release introduces several enhancements and new features to the SDK, focusing on expanding API coverage, improving file handling. The changes include new client methods for file upload and retrieval, support for additional API clients, improvements to request serialization, and the addition of several new data classes.

Major SDK Feature Additions and Improvements:

  • Added new methods to AccountsClient for uploading and retrieving files for sub-entities, supporting due diligence documentation.
  • Introduced new endpoints in DisputesClient to support arbitration evidence submission and retrieval for disputes.
  • Added new data classes: FilePurpose (for file upload purposes), UploadFileRequest (file upload request model), CardholderAccessTokenRequest, UpdateCardholderRequest, and CardMetadata. [1] [2] [3] [4] [5]
  • Updated ShippingInstructions in the issuing cards module to clarify and swap the meaning of shipping_address and recipient_address.

API Client and Serialization Enhancements:

  • Improved request body handling in ApiClient to correctly set content types for JSON, multipart, and form-urlencoded requests, ensuring more robust API interactions.
  • Added utility methods in Client to serialize request objects as form-urlencoded data, converting camelCase properties to snake_case as required by some endpoints.

Expanded API Client Access:

  • Registered and exposed new clients in CheckoutApi: PaymentMethodsClient, StandaloneAccountUpdaterClient, and ApplePayClient, with corresponding getter methods for easier access. [1] [2] [3] [4]

Other Minor Improvements:

  • Added a missing import for UploadFileRequest in AccountsClient to support the new file upload feature.
  • Added a constant for the arbitration path in DisputesClient.