From ce38a1e178dd1e0ae9154534be0cb06452df8646 Mon Sep 17 00:00:00 2001 From: Carlos Lugones Date: Wed, 2 Jul 2025 18:41:53 +0200 Subject: [PATCH] feat: add swap_to parameter to create_invoice method --- cryptobot/_sync/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cryptobot/_sync/client.py b/cryptobot/_sync/client.py index ac5e73c..581ec22 100644 --- a/cryptobot/_sync/client.py +++ b/cryptobot/_sync/client.py @@ -65,6 +65,7 @@ def create_invoice( allow_comments: bool = None, allow_anonymous: bool = None, expires_in: int = None, + swap_to: str = None, ) -> Invoice: """Create a new invoice""" data = { @@ -77,6 +78,7 @@ def create_invoice( "allow_comments": allow_comments, "allow_anonymous": allow_anonymous, "expires_in": expires_in, + "swap_to": swap_to, } # TODO: Check the minimum amount