Transfers control
TransferControlClient
Bases: BaseAPIClient
Provides a wrapper for paystack Transfers Control API
The Transfer Control API allows you to manage settings of your transfers. https://paystack.com/docs/api/transfer-control/
Source code in src/pypaystack2/sub_clients/sync_clients/transfers_control.py
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 73 74 75 76 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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
|
check_balance(alternate_model_class=None)
Fetch the available balance on your integration
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[list[IntegrationBalance]] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/transfers_control.py
disable_otp(alternate_model_class=None)
This is used in the event that you want to be able to complete transfers programmatically without use of OTPs. No arguments required. You will get an OTP to complete the request
Note
Feature Availability This feature is only available to businesses in Nigeria and Ghana.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/transfers_control.py
enable_otp(alternate_model_class=None)
In the event that a customer wants to stop being able to complete transfers programmatically, this endpoint helps turn OTP requirement back on. No arguments required.
Note
Feature Availability This feature is only available to businesses in Nigeria and Ghana.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/transfers_control.py
finalize_disable_otp(otp, alternate_model_class=None)
Finalize the request to disable OTP on your transfers.
Note
Feature Availability This feature is only available to businesses in Nigeria and Ghana.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
otp
|
str
|
One time password |
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/transfers_control.py
get_balance_ledger(alternate_model_class=None)
Fetch all pay-ins and pay-outs that occurred on your integration
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[list[BalanceLedgerItem]] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/transfers_control.py
resend_otp(transfer_code, reason, alternate_model_class=None)
Generates a new OTP and sends to customer in the event they are having trouble receiving one.
Note
Feature Availability This feature is only available to businesses in Nigeria and Ghana.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
transfer_code
|
str
|
Transfer code |
required |
reason
|
Reason
|
Any value from the |
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/transfers_control.py
AsyncTransferControlClient
Bases: BaseAsyncAPIClient
Provides a wrapper for paystack Transfers Control API
The Transfer Control API allows you to manage settings of your transfers. https://paystack.com/docs/api/transfer-control/
Source code in src/pypaystack2/sub_clients/async_clients/transfers_control.py
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 73 74 75 76 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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
|
check_balance(alternate_model_class=None)
async
Fetch the available balance on your integration
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[list[IntegrationBalance]] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/transfers_control.py
disable_otp(alternate_model_class=None)
async
This is used in the event that you want to be able to complete transfers programmatically without use of OTPs. No arguments required. You will get an OTP to complete the request
Note
Feature Availability This feature is only available to businesses in Nigeria and Ghana.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/transfers_control.py
enable_otp(alternate_model_class=None)
async
In the event that a customer wants to stop being able to complete transfers programmatically, this endpoint helps turn OTP requirement back on. No arguments required.
Note
Feature Availability This feature is only available to businesses in Nigeria and Ghana.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/transfers_control.py
finalize_disable_otp(otp, alternate_model_class=None)
async
Finalize the request to disable OTP on your transfers.
Note
Feature Availability This feature is only available to businesses in Nigeria and Ghana.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
otp
|
str
|
One time password |
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/transfers_control.py
get_balance_ledger(alternate_model_class=None)
async
Fetch all pay-ins and pay-outs that occured on your integration
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[list[BalanceLedgerItem]] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/transfers_control.py
resend_otp(transfer_code, reason, alternate_model_class=None)
async
Generates a new OTP and sends to customer in the event they are having trouble receiving one.
Note
Feature Availability This feature is only available to businesses in Nigeria and Ghana.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
transfer_code
|
str
|
Transfer code |
required |
reason
|
Reason
|
Any value from the |
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[None] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |