Customers reference
CustomerAsyncClient
Bases: BaseAsyncClient
Source code in abacatepay/customers/client.py
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 75 | |
create(customer=None, **kwargs)
async
creates a new customer using an or named arguments
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
customer
|
Optional[CustomerMetadata | dict]
|
You
customer data, it can be a dict, an instance of
|
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Customer |
Customer
|
An instance of the new customer. |
Source code in abacatepay/customers/client.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
CustomerClient
Bases: BaseClient
Source code in abacatepay/customers/client.py
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 | |
create(customer=None, **kwargs)
creates a new customer using an or named arguments
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
customer
|
Optional[CustomerMetadata | dict]
|
You
customer data, it can be a dict, an instance of
|
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Customer |
Customer
|
An instance of the new customer. |
Source code in abacatepay/customers/client.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | |
Customer
Bases: CustomerInline
Customer returned by API.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
CustomerID
|
the customer unique ID in abacatepay. |
required |
email
|
str
|
the customer's email |
required |
name
|
str
|
the customer's name |
required |
cellphone
|
str
|
the customer's phone number |
required |
Source code in abacatepay/customers/models.py
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 | |
cellphone
property
the customer's phone number
email
property
the customer's email
name
property
the customer's name
tax_id
property
the customer identification (CPF or CNPJ).
CustomerInline
Bases: BaseModel
The customer model attached to other models
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metadata
|
Customer
|
the metadata of the customer. |
required |
Source code in abacatepay/customers/models.py
25 26 27 28 29 30 31 32 | |
CustomerMetadata
Bases: BaseModel
Customer model
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tax_id
|
str
|
the customer identifier such as CPF or CNPJ. |
required |
name
|
str
|
the customer name |
required |
email
|
str
|
the customer email address |
required |
cellphone
|
(str): the customer phone number. |
required |
Source code in abacatepay/customers/models.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | |