Customers reference
PixQrCodeAsyncClient
Bases: BaseAsyncClient
Source code in abacatepay/pixQrCode/client.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
check(id)
async
Get the status of a Pix QR Code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ID
|
str
|
The unique identifier of the Pix QR Code. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
PixStatus |
PixStatus
|
The status of the Pix QR Code. |
Source code in abacatepay/pixQrCode/client.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | |
create(data, **kwargs)
async
Create a new Pix QR Code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
amount
|
int
|
The amount to be paid in cents. |
required |
expires_in
|
int
|
The expiration time in seconds. Defaults to None. |
required |
description
|
str
|
A description for the Pix QR Code. Defaults to None. |
required |
customer
|
CustomerMetadata | dict
|
Customer information. Defaults to None. |
required |
Returns: PixQrCode: The created Pix QR Code object.
Source code in abacatepay/pixQrCode/client.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
simulate(id, metadata=None)
async
Simulate a Pix QR Code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
The unique identifier of the Pix QR Code. |
required |
metadata
|
dict
|
Additional metadata for the simulation. Defaults to {}. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
PixQrCode |
PixQrCode
|
The simulated Pix QR Code object. |
Source code in abacatepay/pixQrCode/client.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
PixQrCodeClient
Bases: BaseClient
Source code in abacatepay/pixQrCode/client.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
check(id)
Get the status of a Pix QR Code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ID
|
str
|
The unique identifier of the Pix QR Code. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
PixStatus |
PixStatus
|
The status of the Pix QR Code. |
Source code in abacatepay/pixQrCode/client.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
create(data, **kwargs)
Create a new Pix QR Code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
amount
|
int
|
The amount to be paid in cents. |
required |
expires_in
|
int
|
The expiration time in seconds. Defaults to None. |
required |
description
|
str
|
A description for the Pix QR Code. Defaults to None. |
required |
customer
|
CustomerMetadata | dict
|
Customer information. Defaults to None. |
required |
Returns: PixQrCode: The created Pix QR Code object.
Source code in abacatepay/pixQrCode/client.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
simulate(id, metadata=None)
Simulate a Pix QR Code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
The unique identifier of the Pix QR Code. |
required |
metadata
|
dict
|
Additional metadata for the simulation. Defaults to {}. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
PixQrCode |
PixQrCode
|
The simulated Pix QR Code object. |
Source code in abacatepay/pixQrCode/client.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
PixQrCode
Bases: BaseModel
A representation of a Pix QRCode.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
Unique identifier of the Pix QRCode. |
amount |
int
|
Amount to be paid. |
status |
str
|
Information about the status of the Pix QRCode. |
dev_mode |
bool
|
Environment in which the Pix QRCode was created. |
brcode |
str
|
Copy-and-paste code of the Pix QRCode. |
brcode_base64 |
str
|
Base64 image of the Pix QRCode. |
platform_fee |
int
|
Platform fees. |
created_at |
str
|
Creation date of the Pix QRCode. |
updated_at |
str
|
Update date of the Pix QRCode. |
expires_at |
str
|
Expiration date of the Pix QRCode. |
Source code in abacatepay/pixQrCode/models.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
PixQrCodeIn
Bases: BaseModel
Represents a Pix QRCode model for creation.
Attributes:
| Name | Type | Description |
|---|---|---|
amount |
int
|
Amount to be paid in cents. |
expires_in |
int | None
|
Expiration time in seconds. Defaults to None. |
description |
str | None
|
A description for the Pix QR Code. Defaults to None. |
customer |
dict[str, Any] | CustomerMetadata
|
Customer information. Optional. |
Source code in abacatepay/pixQrCode/models.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
PixStatus
Bases: BaseModel
Represents the status of a Pix QRCode.
Attributes:
| Name | Type | Description |
|---|---|---|
status |
str
|
Information about the status of the Pix QRCode. |
expires_at |
str
|
Expiration date of the Pix QRCode. |
Source code in abacatepay/pixQrCode/models.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |