Skip to content

Commit

Permalink
fix: make refund amount optional
Browse files Browse the repository at this point in the history
  • Loading branch information
rostyq committed Jan 24, 2024
1 parent a0b4779 commit 3f5631f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liqpy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ def pay(
def unsubscribe(self, /, order_id: str | UUID) -> "LiqpayCallbackDict":
return self.request("unsubscribe", order_id=order_id)

def refund(self, /, order_id: str | UUID, *, amount: Number) -> "LiqpayRefundDict":
def refund(self, /, order_id: str | UUID, *, amount: Number | None = None) -> "LiqpayRefundDict":
return self.request("refund", order_id=order_id, amount=amount)

def refund_payment(self, /, payment_id: int, *, amount: Number) -> "LiqpayRefundDict":
def refund_payment(self, /, payment_id: int, *, amount: Number | None = None) -> "LiqpayRefundDict":
return self.request("refund", payment_id=str(payment_id), amount=amount)

def complete(
Expand Down

0 comments on commit 3f5631f

Please sign in to comment.