Releases: pague-dev/sdk-node
Releases · pague-dev/sdk-node
v2.2.0
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,BalanceBlockRejectedEventtypes
Pix
- Updated
createStaticQrCodetest payload structure
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's New
- feat(webhooks): add
balance_block_createdevent type — new webhook event for balance block notifications, includingBalanceBlockCreatedDatainterface andBalanceBlockCreatedEventtype
Full Changelog: v2.0.0...v2.1.0
v2.0.0
Breaking Changes
RefundCompletedData.completedAtrenamed torefundedAt
Features
- Add
withdrawal_reversedwebhook event type withWithdrawalReversedDatainterface - Add
environment,feeAmount,netAmountfields toPaymentExpiredData - Add
paymentMethod,externalReferencefields toRefundCompletedData
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
What's Changed
Features
- account: Add
heldbalance field toBalanceDetailinterface - webhooks: Add
payment_expiredevent type withPaymentExpiredDatainterface, validation, and tests
Full Changelog: v1.2.0...v1.3.0
v1.2.0
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
What's New
Features
- webhooks: Add
verifyWebhookSignaturefunction 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
v1.0.0 🎉
Primeiro release major do SDK!
⚠️ Breaking Changes
- pix: Simplificada a interface
CreateStaticQrCodeOptions— removida a interface intermediáriaStaticQrCodeTransaction. Os camposamount,descriptioneexternalReferenceagora ficam diretamente emCreateStaticQrCodeOptionsao invés de aninhados sobtransaction.
Antes:
pixClient.createStaticQrCode({
transaction: { amount: 100, description: 'Test' },
});Depois:
pixClient.createStaticQrCode({
amount: 100,
description: 'Test',
});Full Changelog
v0.5.0
What's New
Features
- pix: Add static QR code generation (
createStaticQrCodemethod) with support for amount, description, external reference, and metadata
New Interfaces
CreateStaticQrCodeOptions— options for creating a static QR codeStaticQrCode— response shape for static QR codeStaticQrCodeTransaction— transaction details for the QR code
Full Changelog: v0.4.1...v0.5.0
v0.4.1
What's Changed
Features
- pix: Add
qrCodeBase64optional field toPixChargeandTransactioninterfaces, enabling QR code image data in base64 format
Full Changelog: v0.3.0...v0.4.1
v0.4.0
What's Changed
Features
- pix: Add
qrCodeBase64optional field toPixChargeandTransactioninterfaces, enabling QR code image data in base64 format
Full Changelog: v0.3.0...v0.4.0