Skip to content

Releases: lucrise-llc/azul-ts

v2.0.0

29 Jan 00:37
Compare
Choose a tag to compare

2.0.0 (2025-01-29)

Bug Fixes

  • azul-api: typing & fix test (bad1568)

Features

  • core: enhance DataVault integration, certificate handling, and test suite (#12) (1e8519c)
  • export data-vault & process payment types (0a8c6d7)

BREAKING CHANGES

  • core: This is not compatible with our latest release.

  • feat(config): add certificate handling and configuration

  • Added new config.ts for centralized configuration management
  • Added check-certificates.ts example for certificate validation
  • Updated API client to support certificate configuration
  • Enhanced .env.sample with certificate-related variables

This improves certificate handling and provides better examples for users implementing certificate-based authentication.

  • refactor(data-vault): improve schema validation and type safety
  • Update DataVault schemas to include required fields (channel, store)
  • Add proper type definitions for Create and Delete operations
  • Improve ProcessPaymentSchema to handle DataVault tokens correctly
    • Split into BasePaymentSchema, CardPaymentSchema and TokenPaymentSchema
    • Add proper validation for token-based payments
    • Update field constraints (altMerchantName: 25 chars, dataVaultToken: 36 chars)
  • Remove DataVaultTransaction enum in favor of literal types
  • Fix documentation comments and typos
  • refactor(tests): standardize test assertions and card handling
  • Add test card fixtures with consistent test data
  • Create utility functions for common test assertions:
    • expectSuccessfulPayment
    • expectSuccessfulVerification
    • expectSuccessfulVaultResponse
    • expectSuccessfulVoid
    • expectValidationError
    • expectOrderIds
  • Update all integration tests to use shared test cards and assertions
  • Add proper type guards and response type definitions
  • Handle temporary system errors (91) gracefully with warnings
  • Improve test descriptions and organization
  • feat(examples): add simple payment workflow demonstration
  • Create new example script for end-to-end payment processing
  • Demonstrate key Azul API workflows: hold, post, and verification
  • Include environment configuration logging and error handling
  • Use test card fixture and random order ID for realistic scenario
  • refactor(tests): use centralized config for Azul API instance
  • Replace hardcoded environment variables with CONFIG import
  • Leverage centralized configuration for test API instance setup
  • Improve consistency with recent configuration management changes
  • test(certificates): remove redundant invalid certificate test
  • Remove test case for non-PEM certificate file
  • Simplify test suite by eliminating redundant error handling scenario
  • Maintain core certificate error testing logic
  • docs(readme): update Azul API and page configuration examples
  • Add environment and channel configuration options
  • Clarify certificate and key input methods
  • Update payment method example with more detailed parameters
  • Improve documentation for API initialization and usage

v1.3.14

19 Dec 22:27
Compare
Choose a tag to compare

1.3.14 (2024-12-19)

Bug Fixes

v1.3.13

19 Dec 13:04
Compare
Choose a tag to compare

1.3.13 (2024-12-19)

Bug Fixes

v1.3.12

19 Dec 01:14
Compare
Choose a tag to compare

1.3.12 (2024-12-19)

Bug Fixes

  • update main and types paths in package.json to point to dist directory (589e1d9)

v1.3.11

14 Dec 17:19
Compare
Choose a tag to compare

1.3.11 (2024-12-14)

Bug Fixes

  • make cardHolderInfo and browserInfo optional in SecureSale type (e8703c0)

v1.3.10

14 Dec 17:15
Compare
Choose a tag to compare

1.3.10 (2024-12-14)

Bug Fixes

  • make cardNumber, expiration, and CVC optional in schemas (ea22c0e)

v1.3.9

05 Dec 22:31
Compare
Choose a tag to compare

1.3.9 (2024-12-05)

Bug Fixes

  • correct spelling of ResponseMessage in schemas (86b5e14)

v1.3.8

04 Dec 22:10
Compare
Choose a tag to compare

1.3.8 (2024-12-04)

v1.3.7

04 Dec 21:56
Compare
Choose a tag to compare

1.3.7 (2024-12-04)

v1.3.6

04 Dec 21:48
Compare
Choose a tag to compare

1.3.6 (2024-12-04)

Bug Fixes

  • rename shemas to schemas (af3c8d7)