mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
fix errors merchant
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
This commit is contained in:
@@ -564,7 +564,6 @@ class DerivativePositionCollateralLimits(_Type):
|
||||
#endregion
|
||||
|
||||
#region Type hinting for models which are not serializable
|
||||
|
||||
@compose(dataclass, partial)
|
||||
class InvoiceSubmission(_Type):
|
||||
id: str
|
||||
@@ -590,7 +589,7 @@ class InvoiceSubmission(_Type):
|
||||
for index, invoice in enumerate(data["invoices"]):
|
||||
data["invoices"][index] = Invoice(**invoice)
|
||||
|
||||
return cls(**data)
|
||||
return InvoiceSubmission(**data)
|
||||
|
||||
@compose(dataclass, partial)
|
||||
class CustomerInfo(_Type):
|
||||
@@ -614,4 +613,9 @@ class Invoice(_Type):
|
||||
address: str
|
||||
ext: JSON
|
||||
|
||||
@dataclass
|
||||
class InvoiceCountStats(_Type):
|
||||
time: str
|
||||
count: float
|
||||
|
||||
#endregion
|
||||
Reference in New Issue
Block a user