Skip to content

Releases: pague-dev/sdk-node

v2.2.0

20 Mar 16:00

Choose a tag to compare

What's New

Webhooks

  • New event: balance_block_approved — triggered when a balance block is approved
  • New event: balance_block_rejected — triggered when a balance block is rejected
  • Added BalanceBlockApprovedData, BalanceBlockRejectedData, BalanceBlockApprovedEvent, BalanceBlockRejectedEvent types

Pix

  • Updated createStaticQrCode test payload structure

Full Changelog: v2.1.0...v2.2.0

v2.1.0

20 Mar 01:31

Choose a tag to compare

What's New

  • feat(webhooks): add balance_block_created event type — new webhook event for balance block notifications, including BalanceBlockCreatedData interface and BalanceBlockCreatedEvent type

Full Changelog: v2.0.0...v2.1.0

v2.0.0

19 Mar 20:54

Choose a tag to compare

Breaking Changes

  • RefundCompletedData.completedAt renamed to refundedAt

Features

  • Add withdrawal_reversed webhook event type with WithdrawalReversedData interface
  • Add environment, feeAmount, netAmount fields to PaymentExpiredData
  • Add paymentMethod, externalReference fields to RefundCompletedData

Migration Guide

Update any code referencing RefundCompletedData.completedAt to use refundedAt:

// Before
const completedAt = refundEvent.data.completedAt;

// After
const refundedAt = refundEvent.data.refundedAt;

v1.3.0

19 Mar 19:14

Choose a tag to compare

What's Changed

Features

  • account: Add held balance field to BalanceDetail interface
  • webhooks: Add payment_expired event type with PaymentExpiredData interface, validation, and tests

Full Changelog: v1.2.0...v1.3.0

v1.2.0

04 Mar 20:24

Choose a tag to compare

What's New

Features

  • account: Add account info endpoint (GET /account) to retrieve account information

Documentation

  • Update README to include webhook signature verification

Full Changelog: v1.1.0...v1.2.0

v1.1.0

23 Feb 05:12

Choose a tag to compare

What's New

Features

  • webhooks: Add verifyWebhookSignature function for HMAC-SHA256 signature verification with timing-safe comparison

Docs

  • Update README to include static QR code generation for PIX

Full Changelog: v1.0.0...v1.1.0

v1.0.0

23 Feb 03:21

Choose a tag to compare

v1.0.0 🎉

Primeiro release major do SDK!

⚠️ Breaking Changes

  • pix: Simplificada a interface CreateStaticQrCodeOptions — removida a interface intermediária StaticQrCodeTransaction. Os campos amount, description e externalReference agora ficam diretamente em CreateStaticQrCodeOptions ao invés de aninhados sob transaction.

Antes:

pixClient.createStaticQrCode({
  transaction: { amount: 100, description: 'Test' },
});

Depois:

pixClient.createStaticQrCode({
  amount: 100,
  description: 'Test',
});

Full Changelog

v0.5.0...v1.0.0

v0.5.0

23 Feb 02:45

Choose a tag to compare

What's New

Features

  • pix: Add static QR code generation (createStaticQrCode method) with support for amount, description, external reference, and metadata

New Interfaces

  • CreateStaticQrCodeOptions — options for creating a static QR code
  • StaticQrCode — response shape for static QR code
  • StaticQrCodeTransaction — transaction details for the QR code

Full Changelog: v0.4.1...v0.5.0

v0.4.1

20 Feb 03:32

Choose a tag to compare

What's Changed

Features

  • pix: Add qrCodeBase64 optional field to PixCharge and Transaction interfaces, enabling QR code image data in base64 format

Full Changelog: v0.3.0...v0.4.1

v0.4.0

20 Feb 03:31

Choose a tag to compare

What's Changed

Features

  • pix: Add qrCodeBase64 optional field to PixCharge and Transaction interfaces, enabling QR code image data in base64 format

Full Changelog: v0.3.0...v0.4.0