class Gerencianet:
"""Classe para pagamento do Gerencianet."""
def __init__(self, credentials: GerencianetCredentials):
self.header = {}
self.credentials = credentials
self.cert = credentials.cert
self.payment_id = None
self.status_payment = None
self.key_pix = credentials.key_pix
self.user_id = None
self.hc = credentials.hc
self.c = "GerenciaNet"
async def create_payment(
self,
value: Union[int, float] = 0.0,
time: int = 30,
cpf: str = "",
name: str = "",
user_id: int = 0,
):
token = await self.credentials.token()
header = {
"Authorization": f"Bearer {token}",
}