Skip to content

fix: add data property to CreatePixQrCodeResponse error type and add …#100

Open
RafaelMeir4 wants to merge 1 commit intoAbacatePay:mainfrom
RafaelMeir4:fix/pix-qrcode-response-type
Open

fix: add data property to CreatePixQrCodeResponse error type and add …#100
RafaelMeir4 wants to merge 1 commit intoAbacatePay:mainfrom
RafaelMeir4:fix/pix-qrcode-response-type

Conversation

@RafaelMeir4
Copy link

Pull Request - AbacatePay SDK

Issue Relacionada

Closes #95

Descrição

Added data: null property to CreatePixQrCodeResponse error type to maintain consistency with other response types in the SDK (like CreateBillingResponse, ListBillingResponse, CreateCustomerResponse, etc.).

Also added a unit test to cover the default value {} for the metadata parameter in the pixQrCode.simulatePayment method.

Changes:

  • src/types.ts: Added data: null to error case of CreatePixQrCodeResponse
  • test/index.test.ts: Added test for simulatePayment with default metadata

Garanta que:

  • A Issue correspondente foi aberta e está vinculada.
  • O título do PR segue o padrão: tipo: descrição breve
  • O código está em conformidade com o Padrão de Código.
  • Os commits seguem o Guia de Commits.
  • Testes foram adicionados ou atualizados conforme o Guia de Testes.
  • O pipeline de CI/CD foi executado e está passando.
  • Documentação foi atualizada, se aplicável.

@changeset-bot
Copy link

changeset-bot bot commented Dec 2, 2025

⚠️ No Changeset found

Latest commit: b5c8c25

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] - Retorno de pixQrCode.Create problematico

1 participant