Skip to content

Conversation

@gangeshwark
Copy link
Contributor

@gangeshwark gangeshwark commented Sep 15, 2025

Context

The lago API supports setting invoice_requires_successful_payment during creation of Wallet and Wallet Transaction but this python library is missing these variables.

This PR fixes that.

Description

This pull request adds support for invoice_requires_successful_payment field to the wallet and wallet transaction models, their response models, and updates related tests to include this field. This change ensures that the client library can handle scenarios where invoices require successful payment for wallet operations.

Model updates:

  • Added the invoice_requires_successful_payment field (as an optional boolean) to the Wallet, WalletResponse, WalletTransaction, and WalletTransactionResponse classes in lago_python_client/models/wallet.py and lago_python_client/models/wallet_transaction.py which is supported by lago API. [1] [2] [3] [4]

Test updates:

  • Updated the wallet_object factory in tests/test_wallet_client.py and the wallet_transaction_object factory in tests/test_wallet_transaction_client.py to include the invoice_requires_successful_payment field, ensuring tests validate the functionality. [1] [2]

@vincent-pochet
Copy link
Contributor

Thank you @gangeshwark for this contribution. I'm merging it and it will be part of the next release.

@vincent-pochet vincent-pochet merged commit 55fb454 into getlago:main Sep 16, 2025
6 checks passed
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.

3 participants