├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── pull_request_template.md ├── .gitignore ├── .gitlab-ci.yml ├── .openapi-generator-ignore ├── .openapi-generator ├── FILES └── VERSION ├── .travis.yml ├── LICENSE ├── README.md ├── docs ├── Accepted.md ├── Balance.md ├── Bank.md ├── BulkCharge.md ├── BulkChargeInitiate.md ├── Charge.md ├── ChargeCreate.md ├── ChargeSubmitAddress.md ├── ChargeSubmitBirthday.md ├── ChargeSubmitOTP.md ├── ChargeSubmitPhone.md ├── ChargeSubmitPin.md ├── Customer.md ├── CustomerCreate.md ├── CustomerDeactivateAuthorization.md ├── CustomerRiskAction.md ├── CustomerUpdate.md ├── CustomerValidate.md ├── CustomerValidation.md ├── DedicatedVirtualAccount.md ├── DedicatedVirtualAccountCreate.md ├── DedicatedVirtualAccountSplit.md ├── Dispute.md ├── DisputeEvidence.md ├── DisputeResolve.md ├── DisputeUpdate.md ├── EFT.md ├── Error.md ├── Integration.md ├── MobileMoney.md ├── Page.md ├── PageCreate.md ├── PageProduct.md ├── PageUpdate.md ├── PaymentRequest.md ├── PaymentRequestCreate.md ├── PaymentRequestUpdate.md ├── Plan.md ├── PlanCreate.md ├── PlanUpdate.md ├── Product.md ├── ProductCreate.md ├── ProductUpdate.md ├── Refund.md ├── RefundCreate.md ├── Response.md ├── Settlement.md ├── Split.md ├── SplitCreate.md ├── SplitSubaccounts.md ├── SplitUpdate.md ├── Subaccount.md ├── SubaccountCreate.md ├── SubaccountUpdate.md ├── Subscription.md ├── SubscriptionCreate.md ├── SubscriptionToggle.md ├── Transaction.md ├── TransactionChargeAuthorization.md ├── TransactionCheckAuthorization.md ├── TransactionInitialize.md ├── TransactionPartialDebit.md ├── Transfer.md ├── TransferBulk.md ├── TransferFinalize.md ├── TransferFinalizeDisableOTP.md ├── TransferInitiate.md ├── TransferRecipient.md ├── TransferRecipientBulk.md ├── TransferRecipientCreate.md ├── TransferRecipientUpdate.md ├── TransferResendOTP.md ├── USSD.md ├── Verification.md └── VerificationBVNMatch.md ├── git_push.sh ├── paystack ├── __init__.py ├── api │ ├── __init__.py │ ├── balance_.py │ ├── bulk_charge_.py │ ├── charge_.py │ ├── customer_.py │ ├── dedicated_virtual_account_.py │ ├── dispute_.py │ ├── integration_.py │ ├── page_.py │ ├── payment_request_.py │ ├── plan_.py │ ├── product_.py │ ├── refund_.py │ ├── settlement_.py │ ├── split_.py │ ├── subaccount_.py │ ├── subscription_.py │ ├── transaction_.py │ ├── transfer_.py │ ├── transfer_recipient_.py │ └── verification_.py ├── api_client.py ├── configuration.py ├── exceptions.py ├── models │ ├── __init__.py │ ├── accepted.py │ ├── bank.py │ ├── bulk_charge_initiate.py │ ├── charge_create.py │ ├── charge_submit_address.py │ ├── charge_submit_birthday.py │ ├── charge_submit_otp.py │ ├── charge_submit_phone.py │ ├── charge_submit_pin.py │ ├── customer_create.py │ ├── customer_deactivate_authorization.py │ ├── customer_risk_action.py │ ├── customer_update.py │ ├── customer_validate.py │ ├── customer_validation.py │ ├── dedicated_virtual_account_create.py │ ├── dedicated_virtual_account_split.py │ ├── dispute_evidence.py │ ├── dispute_resolve.py │ ├── dispute_update.py │ ├── eft.py │ ├── error.py │ ├── mobile_money.py │ ├── page_create.py │ ├── page_product.py │ ├── page_update.py │ ├── payment_request_create.py │ ├── payment_request_update.py │ ├── plan_create.py │ ├── plan_update.py │ ├── product_create.py │ ├── product_update.py │ ├── refund_create.py │ ├── response.py │ ├── split_create.py │ ├── split_subaccounts.py │ ├── split_update.py │ ├── subaccount_create.py │ ├── subaccount_update.py │ ├── subscription_create.py │ ├── subscription_toggle.py │ ├── transaction_charge_authorization.py │ ├── transaction_check_authorization.py │ ├── transaction_initialize.py │ ├── transaction_partial_debit.py │ ├── transfer_bulk.py │ ├── transfer_finalize.py │ ├── transfer_finalize_disable_otp.py │ ├── transfer_initiate.py │ ├── transfer_recipient_bulk.py │ ├── transfer_recipient_create.py │ ├── transfer_recipient_update.py │ ├── transfer_resend_otp.py │ ├── ussd.py │ └── verification_bvn_match.py └── rest.py ├── requirements.txt ├── setup.cfg ├── setup.py ├── test-requirements.txt ├── test.py ├── test ├── __init__.py ├── test_accepted.py ├── test_balance_.py ├── test_bank.py ├── test_bulk_charge_.py ├── test_bulk_charge_initiate.py ├── test_charge_.py ├── test_charge_create.py ├── test_charge_submit_address.py ├── test_charge_submit_birthday.py ├── test_charge_submit_otp.py ├── test_charge_submit_phone.py ├── test_charge_submit_pin.py ├── test_customer_.py ├── test_customer_create.py ├── test_customer_deactivate_authorization.py ├── test_customer_risk_action.py ├── test_customer_update.py ├── test_customer_validate.py ├── test_customer_validation.py ├── test_dedicated_virtual_account_.py ├── test_dedicated_virtual_account_create.py ├── test_dedicated_virtual_account_split.py ├── test_dispute_.py ├── test_dispute_evidence.py ├── test_dispute_resolve.py ├── test_dispute_update.py ├── test_eft.py ├── test_error.py ├── test_integration_.py ├── test_mobile_money.py ├── test_page_.py ├── test_page_create.py ├── test_page_product.py ├── test_page_update.py ├── test_payment_request_.py ├── test_payment_request_create.py ├── test_payment_request_update.py ├── test_plan_.py ├── test_plan_create.py ├── test_plan_update.py ├── test_product_.py ├── test_product_create.py ├── test_product_update.py ├── test_refund_.py ├── test_refund_create.py ├── test_response.py ├── test_settlement_.py ├── test_split_.py ├── test_split_create.py ├── test_split_subaccounts.py ├── test_split_update.py ├── test_subaccount_.py ├── test_subaccount_create.py ├── test_subaccount_update.py ├── test_subscription_.py ├── test_subscription_create.py ├── test_subscription_toggle.py ├── test_transaction_.py ├── test_transaction_charge_authorization.py ├── test_transaction_check_authorization.py ├── test_transaction_initialize.py ├── test_transaction_partial_debit.py ├── test_transfer_.py ├── test_transfer_bulk.py ├── test_transfer_finalize.py ├── test_transfer_finalize_disable_otp.py ├── test_transfer_initiate.py ├── test_transfer_recipient_.py ├── test_transfer_recipient_bulk.py ├── test_transfer_recipient_create.py ├── test_transfer_recipient_update.py ├── test_transfer_resend_otp.py ├── test_ussd.py ├── test_verification_.py └── test_verification_bvn_match.py └── tox.ini /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: "[BUG] Bug name goes here" 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Additional context** 27 | Add any other context about the problem here. 28 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: "[FEAT] Feature name goes here" 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## Type of change 2 | 3 | - [ ] Bug fix (non-breaking change which fixes an issue) 4 | - [ ] New feature (non-breaking change which adds functionality) 5 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) 6 | - [ ] Documentation update 7 | 8 | ## What issue does this change solve? 9 | A clear and concise description of what the solution is. 10 | 11 | 12 | # Additional context 13 | Add any other context or screenshots about the change. -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | env/ 12 | build/ 13 | develop-eggs/ 14 | dist/ 15 | downloads/ 16 | eggs/ 17 | .eggs/ 18 | lib/ 19 | lib64/ 20 | parts/ 21 | sdist/ 22 | var/ 23 | *.egg-info/ 24 | .installed.cfg 25 | *.egg 26 | 27 | # PyInstaller 28 | # Usually these files are written by a python script from a template 29 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 30 | *.manifest 31 | *.spec 32 | 33 | # Installer logs 34 | pip-log.txt 35 | pip-delete-this-directory.txt 36 | 37 | # Unit test / coverage reports 38 | htmlcov/ 39 | .tox/ 40 | .coverage 41 | .coverage.* 42 | .cache 43 | nosetests.xml 44 | coverage.xml 45 | *,cover 46 | .hypothesis/ 47 | venv/ 48 | .venv/ 49 | .python-version 50 | .pytest_cache 51 | 52 | # Translations 53 | *.mo 54 | *.pot 55 | 56 | # Django stuff: 57 | *.log 58 | 59 | # Sphinx documentation 60 | docs/_build/ 61 | 62 | # PyBuilder 63 | target/ 64 | 65 | #Ipython Notebook 66 | .ipynb_checkpoints 67 | 68 | # Platform 69 | .DS_Store -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | # ref: https://docs.gitlab.com/ee/ci/README.html 2 | 3 | stages: 4 | - test 5 | 6 | .nosetest: 7 | stage: test 8 | script: 9 | - pip install -r requirements.txt 10 | - pip install -r test-requirements.txt 11 | - pytest --cov=paystack 12 | 13 | nosetest-2.7: 14 | extends: .nosetest 15 | image: python:2.7-alpine 16 | nosetest-3.3: 17 | extends: .nosetest 18 | image: python:3.3-alpine 19 | nosetest-3.4: 20 | extends: .nosetest 21 | image: python:3.4-alpine 22 | nosetest-3.5: 23 | extends: .nosetest 24 | image: python:3.5-alpine 25 | nosetest-3.6: 26 | extends: .nosetest 27 | image: python:3.6-alpine 28 | nosetest-3.7: 29 | extends: .nosetest 30 | image: python:3.7-alpine 31 | nosetest-3.8: 32 | extends: .nosetest 33 | image: python:3.8-alpine 34 | -------------------------------------------------------------------------------- /.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 5.2.1 -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # ref: https://docs.travis-ci.com/user/languages/python 2 | language: python 3 | python: 4 | - "2.7" 5 | - "3.2" 6 | - "3.3" 7 | - "3.4" 8 | - "3.5" 9 | - "3.6" 10 | - "3.7" 11 | - "3.8" 12 | # command to install dependencies 13 | install: 14 | - "pip install -r requirements.txt" 15 | - "pip install -r test-requirements.txt" 16 | # command to run tests 17 | script: pytest --cov=paystack 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 PaystackOSS 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /docs/Accepted.md: -------------------------------------------------------------------------------- 1 | # Accepted 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **status** | **bool** | | [optional] 8 | **message** | **str** | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Balance.md: -------------------------------------------------------------------------------- 1 | # paystack.Balance 2 | 3 | All URIs are relative to *https://api.paystack.co* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**fetch**](Balance.md#fetch) | **GET** /balance | Fetch Balance 8 | [**ledger**](Balance.md#ledger) | **GET** /balance/ledger | Balance Ledger 9 | 10 | 11 | # **fetch** 12 | > Response fetch() 13 | 14 | Fetch Balance 15 | 16 | You can only transfer from what you have 17 | 18 | ### Example 19 | 20 | * Bearer Authentication (bearerAuth): 21 | ```python 22 | import paystack 23 | from pprint import pprint 24 | 25 | # Set your API key based on domain (test or live mode) 26 | paystack.api_key = 'sk_domain_xxxxxxxx' 27 | 28 | 29 | # Fetch Balance 30 | 31 | response = paystack.Balance.fetch() 32 | 33 | 34 | pprint(response) 35 | ``` 36 | ### Parameters 37 | This endpoint does not need any parameter. 38 | 39 | ### Return type 40 | 41 | [**Response**](Response.md) 42 | 43 | ### Authorization 44 | 45 | [bearerAuth](../README.md#bearerAuth) 46 | 47 | ### HTTP request headers 48 | 49 | - **Content-Type**: Not defined 50 | - **Accept**: application/json 51 | 52 | ### HTTP response details 53 | | Status code | Description | Response headers | 54 | |-------------|-------------|------------------| 55 | **200** | Request successful | - | 56 | **401** | Unauthorized operation | - | 57 | **404** | Entity not found | - | 58 | **0** | Server error | - | 59 | 60 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 61 | 62 | # **ledger** 63 | > Response ledger(per_page=per_page, page=page, _from=_from, to=to) 64 | 65 | Balance Ledger 66 | 67 | ### Example 68 | 69 | * Bearer Authentication (bearerAuth): 70 | ```python 71 | import paystack 72 | from pprint import pprint 73 | 74 | # Set your API key based on domain (test or live mode) 75 | paystack.api_key = 'sk_domain_xxxxxxxx' 76 | 77 | 78 | # Balance Ledger 79 | 80 | response = paystack.Balance.ledger( 81 | ) 82 | 83 | pprint(response) 84 | ``` 85 | ### Parameters 86 | 87 | Name | Type | Description | Notes 88 | ------------- | ------------- | ------------- | ------------- 89 | **per_page** | **int**| Number of records to fetch per page | [optional] 90 | **page** | **int**| The section to retrieve | [optional] 91 | **_from** | **datetime**| The start date | [optional] 92 | **to** | **datetime**| The end date | [optional] 93 | 94 | ### Return type 95 | 96 | [**Response**](Response.md) 97 | 98 | ### Authorization 99 | 100 | [bearerAuth](../README.md#bearerAuth) 101 | 102 | ### HTTP request headers 103 | 104 | - **Content-Type**: Not defined 105 | - **Accept**: application/json 106 | 107 | ### HTTP response details 108 | | Status code | Description | Response headers | 109 | |-------------|-------------|------------------| 110 | **200** | Request successful | - | 111 | **401** | Unauthorized operation | - | 112 | **404** | Entity not found | - | 113 | **0** | Server error | - | 114 | 115 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 116 | 117 | -------------------------------------------------------------------------------- /docs/Bank.md: -------------------------------------------------------------------------------- 1 | # Bank 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **code** | **str** | Customer's bank code | [optional] 8 | **account_number** | **str** | Customer's account number | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/BulkChargeInitiate.md: -------------------------------------------------------------------------------- 1 | # BulkChargeInitiate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **authorization** | **str** | Customer's card authorization code | 8 | **amount** | **str** | Amount to charge on the authorization | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ChargeCreate.md: -------------------------------------------------------------------------------- 1 | # ChargeCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **str** | Customer's email address | 8 | **amount** | **str** | Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | 9 | **authorization_code** | **str** | An authorization code to charge. | [optional] 10 | **pin** | **str** | 4-digit PIN (send with a non-reusable authorization code) | [optional] 11 | **reference** | **str** | Unique transaction reference. Only -, .`, = and alphanumeric characters allowed. | [optional] 12 | **birthday** | **datetime** | The customer's birthday in the format YYYY-MM-DD e.g 2017-05-16 | [optional] 13 | **device_id** | **str** | This is the unique identifier of the device a user uses in making payment. Only -, .`, = and alphanumeric characters are allowed. | [optional] 14 | **metadata** | **str** | Stringified JSON object of custom data | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/ChargeSubmitAddress.md: -------------------------------------------------------------------------------- 1 | # ChargeSubmitAddress 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **address** | **str** | Customer's address | 8 | **city** | **str** | Customer's city | 9 | **state** | **str** | Customer's state | 10 | **zipcode** | **str** | Customer's zipcode | 11 | **reference** | **str** | The reference of the ongoing transaction | 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/ChargeSubmitBirthday.md: -------------------------------------------------------------------------------- 1 | # ChargeSubmitBirthday 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **birthday** | **str** | Customer's birthday in the format YYYY-MM-DD e.g 2016-09-21 | 8 | **reference** | **str** | The reference of the ongoing transaction | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ChargeSubmitOTP.md: -------------------------------------------------------------------------------- 1 | # ChargeSubmitOTP 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **otp** | **str** | Customer's OTP | 8 | **reference** | **str** | The reference of the ongoing transaction | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ChargeSubmitPhone.md: -------------------------------------------------------------------------------- 1 | # ChargeSubmitPhone 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **phone** | **str** | Customer's mobile number | 8 | **reference** | **str** | The reference of the ongoing transaction | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/ChargeSubmitPin.md: -------------------------------------------------------------------------------- 1 | # ChargeSubmitPin 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **pin** | **str** | Customer's PIN | 8 | **reference** | **str** | Transaction reference that requires the PIN | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CustomerCreate.md: -------------------------------------------------------------------------------- 1 | # CustomerCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **str** | Customer's email address | 8 | **first_name** | **str** | Customer's first name | [optional] 9 | **last_name** | **str** | Customer's last name | [optional] 10 | **phone** | **str** | Customer's phone number | [optional] 11 | **metadata** | **str** | Stringified JSON object of custom data | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/CustomerDeactivateAuthorization.md: -------------------------------------------------------------------------------- 1 | # CustomerDeactivateAuthorization 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **authorization_code** | **str** | Authorization code to be deactivated | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CustomerRiskAction.md: -------------------------------------------------------------------------------- 1 | # CustomerRiskAction 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **customer** | **str** | Customer's code, or email address | 8 | **risk_action** | **str** | One of the possible risk actions [ default, allow, deny ]. allow to whitelist. deny to blacklist. Customers start with a default risk action. | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/CustomerUpdate.md: -------------------------------------------------------------------------------- 1 | # CustomerUpdate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **first_name** | **str** | Customer's first name | [optional] 8 | **last_name** | **str** | Customer's last name | [optional] 9 | **phone** | **str** | Customer's phone number | [optional] 10 | **metadata** | **str** | Stringified JSON object of custom data | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/CustomerValidate.md: -------------------------------------------------------------------------------- 1 | # CustomerValidate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **first_name** | **str** | Customer's first name | 8 | **last_name** | **str** | Customer's last name | 9 | **type** | **str** | Predefined types of identification. e.g. (BVN) | 10 | **value** | **str** | Customer's identification number | 11 | **country** | **str** | 2 letter country code of identification issuer | 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/CustomerValidation.md: -------------------------------------------------------------------------------- 1 | # CustomerValidation 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **first_name** | **str** | Customer's first name | 8 | **last_name** | **str** | Customer's last name | 9 | **type** | **str** | Predefined types of identification. | 10 | **country** | **str** | Two-letter country code of identification issuer | 11 | **bvn** | **str** | Customer's Bank Verification Number | 12 | **bank_code** | **str** | You can get the list of bank codes by calling the List Banks endpoint (https://api.paystack.co/bank). | 13 | **account_number** | **str** | Customer's bank account number. | 14 | **value** | **str** | Customer's identification number. Required if type is bvn | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/DedicatedVirtualAccountCreate.md: -------------------------------------------------------------------------------- 1 | # DedicatedVirtualAccountCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **customer** | **str** | Customer ID or code | 8 | **preferred_bank** | **str** | The bank slug for preferred bank. To get a list of available banks, use the List Providers endpoint | [optional] 9 | **subaccount** | **str** | Subaccount code of the account you want to split the transaction with | [optional] 10 | **split_code** | **str** | Split code consisting of the lists of accounts you want to split the transaction with | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/DedicatedVirtualAccountSplit.md: -------------------------------------------------------------------------------- 1 | # DedicatedVirtualAccountSplit 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **account_number** | **str** | Valid Dedicated virtual account | 8 | **subaccount** | **str** | Subaccount code of the account you want to split the transaction with | [optional] 9 | **split_code** | **str** | Split code consisting of the lists of accounts you want to split the transaction with | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/DisputeEvidence.md: -------------------------------------------------------------------------------- 1 | # DisputeEvidence 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **customer_email** | **str** | Customer email | 8 | **customer_name** | **str** | Customer name | 9 | **customer_phone** | **str** | Customer mobile number | 10 | **service_details** | **str** | Details of service offered | 11 | **delivery_address** | **str** | Delivery address | [optional] 12 | **delivery_date** | **datetime** | ISO 8601 representation of delivery date (YYYY-MM-DD) | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/DisputeResolve.md: -------------------------------------------------------------------------------- 1 | # DisputeResolve 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **resolution** | **str** | Dispute resolution. Accepted values, merchant-accepted, declined | 8 | **message** | **str** | Reason for resolving | 9 | **refund_amount** | **str** | The amount to refund, in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | 10 | **uploaded_filename** | **str** | Filename of attachment returned via response from the Dispute upload URL | 11 | **evidence** | **int** | Evidence Id for fraud claims | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/DisputeUpdate.md: -------------------------------------------------------------------------------- 1 | # DisputeUpdate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **refund_amount** | **str** | The amount to refund, in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | 8 | **uploaded_filename** | **str** | Filename of attachment returned via response from the Dispute upload URL | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/EFT.md: -------------------------------------------------------------------------------- 1 | # EFT 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **provider** | **str** | The EFT provider | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Error.md: -------------------------------------------------------------------------------- 1 | # Error 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **status** | **bool** | | [optional] 8 | **message** | **str** | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Integration.md: -------------------------------------------------------------------------------- 1 | # paystack.Integration 2 | 3 | All URIs are relative to *https://api.paystack.co* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**fetch_payment_session_timeout**](Integration.md#fetch_payment_session_timeout) | **GET** /integration/payment_session_timeout | Fetch Payment Session Timeout 8 | [**update_payment_session_timeout**](Integration.md#update_payment_session_timeout) | **PUT** /integration/payment_session_timeout | Update Payment Session Timeout 9 | 10 | 11 | # **fetch_payment_session_timeout** 12 | > Response fetch_payment_session_timeout() 13 | 14 | Fetch Payment Session Timeout 15 | 16 | ### Example 17 | 18 | * Bearer Authentication (bearerAuth): 19 | ```python 20 | import paystack 21 | from pprint import pprint 22 | 23 | # Set your API key based on domain (test or live mode) 24 | paystack.api_key = 'sk_domain_xxxxxxxx' 25 | 26 | 27 | # Fetch Payment Session Timeout 28 | 29 | response = paystack.Integration.fetch_payment_session_timeout() 30 | 31 | 32 | pprint(response) 33 | ``` 34 | ### Parameters 35 | This endpoint does not need any parameter. 36 | 37 | ### Return type 38 | 39 | [**Response**](Response.md) 40 | 41 | ### Authorization 42 | 43 | [bearerAuth](../README.md#bearerAuth) 44 | 45 | ### HTTP request headers 46 | 47 | - **Content-Type**: Not defined 48 | - **Accept**: application/json 49 | 50 | ### HTTP response details 51 | | Status code | Description | Response headers | 52 | |-------------|-------------|------------------| 53 | **200** | Request successful | - | 54 | **401** | Unauthorized operation | - | 55 | **404** | Entity not found | - | 56 | **0** | Server error | - | 57 | 58 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 59 | 60 | # **update_payment_session_timeout** 61 | > Response update_payment_session_timeout(body=body) 62 | 63 | Update Payment Session Timeout 64 | 65 | ### Example 66 | 67 | * Bearer Authentication (bearerAuth): 68 | ```python 69 | import paystack 70 | from pprint import pprint 71 | 72 | # Set your API key based on domain (test or live mode) 73 | paystack.api_key = 'sk_domain_xxxxxxxx' 74 | 75 | 76 | # Update Payment Session Timeout 77 | 78 | response = paystack.Integration.update_payment_session_timeout( 79 | ) 80 | 81 | pprint(response) 82 | ``` 83 | ### Parameters 84 | 85 | Name | Type | Description | Notes 86 | ------------- | ------------- | ------------- | ------------- 87 | **body** | **object**| | [optional] 88 | 89 | ### Return type 90 | 91 | [**Response**](Response.md) 92 | 93 | ### Authorization 94 | 95 | [bearerAuth](../README.md#bearerAuth) 96 | 97 | ### HTTP request headers 98 | 99 | - **Content-Type**: application/json 100 | - **Accept**: application/json 101 | 102 | ### HTTP response details 103 | | Status code | Description | Response headers | 104 | |-------------|-------------|------------------| 105 | **200** | Request successful | - | 106 | **401** | Unauthorized operation | - | 107 | **404** | Entity not found | - | 108 | **0** | Server error | - | 109 | 110 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 111 | 112 | -------------------------------------------------------------------------------- /docs/MobileMoney.md: -------------------------------------------------------------------------------- 1 | # MobileMoney 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **phone** | **str** | Customer's phone number | [optional] 8 | **provider** | **str** | The telco provider of customer's phone number. This can be fetched from the List Bank endpoint | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/PageCreate.md: -------------------------------------------------------------------------------- 1 | # PageCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | Name of page | 8 | **description** | **str** | The description of the page | [optional] 9 | **amount** | **int** | Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | [optional] 10 | **slug** | **str** | URL slug you would like to be associated with this page. Page will be accessible at https://paystack.com/pay/[slug] | [optional] 11 | **metadata** | **str** | Stringified JSON object of custom data | [optional] 12 | **redirect_url** | **str** | If you would like Paystack to redirect to a URL upon successful payment, specify the URL here. | [optional] 13 | **custom_fields** | **list[object]** | If you would like to accept custom fields, specify them here. | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/PageProduct.md: -------------------------------------------------------------------------------- 1 | # PageProduct 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **product** | **list[str]** | IDs of all products to add to a page | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/PageUpdate.md: -------------------------------------------------------------------------------- 1 | # PageUpdate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | Name of page | [optional] 8 | **description** | **str** | The description of the page | [optional] 9 | **amount** | **int** | Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | [optional] 10 | **active** | **bool** | Set to false to deactivate page url | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/PaymentRequestCreate.md: -------------------------------------------------------------------------------- 1 | # PaymentRequestCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **customer** | **str** | Customer id or code | 8 | **amount** | **int** | Payment request amount. Only useful if line items and tax values are ignored. The endpoint will throw a friendly warning if neither is available. | [optional] 9 | **currency** | **str** | Specify the currency of the invoice. Allowed values are NGN, GHS, ZAR and USD. Defaults to NGN | [optional] 10 | **due_date** | **datetime** | ISO 8601 representation of request due date | [optional] 11 | **description** | **str** | A short description of the payment request | [optional] 12 | **line_items** | **list[object]** | Array of line items | [optional] 13 | **tax** | **list[object]** | Array of taxes | [optional] 14 | **send_notification** | **list[object]** | Indicates whether Paystack sends an email notification to customer. Defaults to true | [optional] 15 | **draft** | **list[object]** | Indicate if request should be saved as draft. Defaults to false and overrides send_notification | [optional] 16 | **has_invoice** | **list[object]** | Set to true to create a draft invoice (adds an auto incrementing invoice number if none is provided) even if there are no line_items or tax passed | [optional] 17 | **invoice_number** | **int** | Numeric value of invoice. Invoice will start from 1 and auto increment from there. This field is to help override whatever value Paystack decides. Auto increment for subsequent invoices continue from this point. | [optional] 18 | **split_code** | **str** | The split code of the transaction split. | [optional] 19 | 20 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/PaymentRequestUpdate.md: -------------------------------------------------------------------------------- 1 | # PaymentRequestUpdate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **customer** | **str** | Customer id or code | [optional] 8 | **amount** | **int** | Payment request amount. Only useful if line items and tax values are ignored. The endpoint will throw a friendly warning if neither is available. | [optional] 9 | **currency** | **str** | Specify the currency of the invoice. Allowed values are NGN, GHS, ZAR and USD. Defaults to NGN | [optional] 10 | **due_date** | **datetime** | ISO 8601 representation of request due date | [optional] 11 | **description** | **str** | A short description of the payment request | [optional] 12 | **line_items** | **list[object]** | Array of line items | [optional] 13 | **tax** | **list[object]** | Array of taxes | [optional] 14 | **send_notification** | **list[object]** | Indicates whether Paystack sends an email notification to customer. Defaults to true | [optional] 15 | **draft** | **list[object]** | Indicate if request should be saved as draft. Defaults to false and overrides send_notification | [optional] 16 | **has_invoice** | **list[object]** | Set to true to create a draft invoice (adds an auto incrementing invoice number if none is provided) even if there are no line_items or tax passed | [optional] 17 | **invoice_number** | **int** | Numeric value of invoice. Invoice will start from 1 and auto increment from there. This field is to help override whatever value Paystack decides. Auto increment for subsequent invoices continue from this point. | [optional] 18 | **split_code** | **str** | The split code of the transaction split. | [optional] 19 | 20 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/PlanCreate.md: -------------------------------------------------------------------------------- 1 | # PlanCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | Name of plan | 8 | **amount** | **int** | Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | 9 | **interval** | **str** | Interval in words. Valid intervals are daily, weekly, monthly,biannually, annually | 10 | **description** | **bool** | A description for this plan | [optional] 11 | **send_invoices** | **bool** | Set to false if you don't want invoices to be sent to your customers | [optional] 12 | **send_sms** | **bool** | Set to false if you don't want text messages to be sent to your customers | [optional] 13 | **currency** | **str** | Currency in which amount is set. Allowed values are NGN, GHS, ZAR or USD | [optional] 14 | **invoice_limit** | **int** | Number of invoices to raise during subscription to this plan. Can be overridden by specifying an invoice_limit while subscribing. | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/PlanUpdate.md: -------------------------------------------------------------------------------- 1 | # PlanUpdate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | Name of plan | [optional] 8 | **amount** | **int** | Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | [optional] 9 | **interval** | **str** | Interval in words. Valid intervals are daily, weekly, monthly,biannually, annually | [optional] 10 | **description** | **bool** | A description for this plan | [optional] 11 | **send_invoices** | **bool** | Set to false if you don't want invoices to be sent to your customers | [optional] 12 | **send_sms** | **bool** | Set to false if you don't want text messages to be sent to your customers | [optional] 13 | **currency** | **str** | Currency in which amount is set. Allowed values are NGN, GHS, ZAR or USD | [optional] 14 | **invoice_limit** | **int** | Number of invoices to raise during subscription to this plan. Can be overridden by specifying an invoice_limit while subscribing. | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/ProductCreate.md: -------------------------------------------------------------------------------- 1 | # ProductCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | Name of product | 8 | **description** | **str** | The description of the product | 9 | **price** | **int** | Price should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | 10 | **currency** | **str** | Currency in which price is set. Allowed values are: NGN, GHS, ZAR or USD | 11 | **limited** | **bool** | Set to true if the product has limited stock. Leave as false if the product has unlimited stock | [optional] 12 | **quantity** | **int** | Number of products in stock. Use if limited is true | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/ProductUpdate.md: -------------------------------------------------------------------------------- 1 | # ProductUpdate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | Name of product | [optional] 8 | **description** | **str** | The description of the product | [optional] 9 | **price** | **int** | Price should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | [optional] 10 | **currency** | **str** | Currency in which price is set. Allowed values are: NGN, GHS, ZAR or USD | [optional] 11 | **limited** | **bool** | Set to true if the product has limited stock. Leave as false if the product has unlimited stock | [optional] 12 | **quantity** | **int** | Number of products in stock. Use if limited is true | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/RefundCreate.md: -------------------------------------------------------------------------------- 1 | # RefundCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **transaction** | **str** | Transaction reference or id | 8 | **amount** | **int** | Amount ( in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR ) to be refunded to the customer. Amount cannot be more than the original transaction amount | [optional] 9 | **currency** | **str** | Three-letter ISO currency. Allowed values are NGN, GHS, ZAR or USD | [optional] 10 | **customer_note** | **str** | Customer reason | [optional] 11 | **merchant_note** | **str** | Merchant reason | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/Response.md: -------------------------------------------------------------------------------- 1 | # Response 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **status** | **bool** | | [optional] 8 | **message** | **str** | | [optional] 9 | **data** | **object** | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Settlement.md: -------------------------------------------------------------------------------- 1 | # paystack.Settlement 2 | 3 | All URIs are relative to *https://api.paystack.co* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**fetch**](Settlement.md#fetch) | **GET** /settlement | Fetch Settlements 8 | [**transaction**](Settlement.md#transaction) | **GET** /settlement/{id}/transaction | Settlement Transactions 9 | 10 | 11 | # **fetch** 12 | > Response fetch(per_page=per_page, page=page) 13 | 14 | Fetch Settlements 15 | 16 | ### Example 17 | 18 | * Bearer Authentication (bearerAuth): 19 | ```python 20 | import paystack 21 | from pprint import pprint 22 | 23 | # Set your API key based on domain (test or live mode) 24 | paystack.api_key = 'sk_domain_xxxxxxxx' 25 | 26 | 27 | # Fetch Settlements 28 | 29 | response = paystack.Settlement.fetch( 30 | ) 31 | 32 | pprint(response) 33 | ``` 34 | ### Parameters 35 | 36 | Name | Type | Description | Notes 37 | ------------- | ------------- | ------------- | ------------- 38 | **per_page** | **int**| | [optional] 39 | **page** | **int**| | [optional] 40 | 41 | ### Return type 42 | 43 | [**Response**](Response.md) 44 | 45 | ### Authorization 46 | 47 | [bearerAuth](../README.md#bearerAuth) 48 | 49 | ### HTTP request headers 50 | 51 | - **Content-Type**: Not defined 52 | - **Accept**: application/json 53 | 54 | ### HTTP response details 55 | | Status code | Description | Response headers | 56 | |-------------|-------------|------------------| 57 | **200** | Request successful | - | 58 | **401** | Unauthorized operation | - | 59 | **404** | Entity not found | - | 60 | **0** | Server error | - | 61 | 62 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 63 | 64 | # **transaction** 65 | > Response transaction(id) 66 | 67 | Settlement Transactions 68 | 69 | ### Example 70 | 71 | * Bearer Authentication (bearerAuth): 72 | ```python 73 | import paystack 74 | from pprint import pprint 75 | 76 | # Set your API key based on domain (test or live mode) 77 | paystack.api_key = 'sk_domain_xxxxxxxx' 78 | 79 | id = 'id_example' # str | 80 | 81 | # Settlement Transactions 82 | 83 | response = paystack.Settlement.transaction( 84 | id, 85 | ) 86 | 87 | pprint(response) 88 | ``` 89 | ### Parameters 90 | 91 | Name | Type | Description | Notes 92 | ------------- | ------------- | ------------- | ------------- 93 | **id** | **str**| | 94 | 95 | ### Return type 96 | 97 | [**Response**](Response.md) 98 | 99 | ### Authorization 100 | 101 | [bearerAuth](../README.md#bearerAuth) 102 | 103 | ### HTTP request headers 104 | 105 | - **Content-Type**: Not defined 106 | - **Accept**: application/json 107 | 108 | ### HTTP response details 109 | | Status code | Description | Response headers | 110 | |-------------|-------------|------------------| 111 | **200** | Request successful | - | 112 | **401** | Unauthorized operation | - | 113 | **404** | Entity not found | - | 114 | **0** | Server error | - | 115 | 116 | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 117 | 118 | -------------------------------------------------------------------------------- /docs/SplitCreate.md: -------------------------------------------------------------------------------- 1 | # SplitCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | Name of the transaction split | 8 | **type** | **str** | The type of transaction split you want to create. | 9 | **subaccounts** | [**list[SplitSubaccounts]**](SplitSubaccounts.md) | A list of object containing subaccount code and number of shares | 10 | **currency** | **str** | The transaction currency | 11 | **bearer_type** | **str** | This allows you specify how the transaction charge should be processed | [optional] 12 | **bearer_subaccount** | **str** | This is the subaccount code of the customer or partner that would bear the transaction charge if you specified subaccount as the bearer type | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/SplitSubaccounts.md: -------------------------------------------------------------------------------- 1 | # SplitSubaccounts 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **subaccount** | **str** | Subaccount code of the customer or partner | [optional] 8 | **share** | **str** | The percentage or flat quota of the customer or partner | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/SplitUpdate.md: -------------------------------------------------------------------------------- 1 | # SplitUpdate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | Name of the transaction split | [optional] 8 | **active** | **bool** | Toggle status of split. When true, the split is active, else it's inactive | [optional] 9 | **bearer_type** | **str** | This allows you specify how the transaction charge should be processed | [optional] 10 | **bearer_subaccount** | **str** | This is the subaccount code of the customer or partner that would bear the transaction charge if you specified subaccount as the bearer type | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/SubaccountCreate.md: -------------------------------------------------------------------------------- 1 | # SubaccountCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **business_name** | **str** | Name of business for subaccount | 8 | **settlement_bank** | **str** | Bank code for the bank. You can get the list of Bank Codes by calling the List Banks endpoint. | 9 | **account_number** | **str** | Bank account number | 10 | **percentage_charge** | **float** | Customer's phone number | 11 | **description** | **str** | A description for this subaccount | [optional] 12 | **primary_contact_email** | **str** | A contact email for the subaccount | [optional] 13 | **primary_contact_name** | **str** | The name of the contact person for this subaccount | [optional] 14 | **primary_contact_phone** | **str** | A phone number to call for this subaccount | [optional] 15 | **metadata** | **str** | Stringified JSON object of custom data | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/SubaccountUpdate.md: -------------------------------------------------------------------------------- 1 | # SubaccountUpdate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **business_name** | **str** | Name of business for subaccount | [optional] 8 | **settlement_bank** | **str** | Bank code for the bank. You can get the list of Bank Codes by calling the List Banks endpoint. | [optional] 9 | **account_number** | **str** | Bank account number | [optional] 10 | **active** | **bool** | Activate or deactivate a subaccount | [optional] 11 | **percentage_charge** | **float** | Customer's phone number | [optional] 12 | **description** | **str** | A description for this subaccount | [optional] 13 | **primary_contact_email** | **str** | A contact email for the subaccount | [optional] 14 | **primary_contact_name** | **str** | The name of the contact person for this subaccount | [optional] 15 | **primary_contact_phone** | **str** | A phone number to call for this subaccount | [optional] 16 | **metadata** | **str** | Stringified JSON object of custom data | [optional] 17 | 18 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/SubscriptionCreate.md: -------------------------------------------------------------------------------- 1 | # SubscriptionCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **customer** | **str** | Customer's email address or customer code | 8 | **plan** | **str** | Plan code | 9 | **authorization** | **str** | If customer has multiple authorizations, you can set the desired authorization you wish to use for this subscription here. If this is not supplied, the customer's most recent authorization would be used | [optional] 10 | **start_date** | **datetime** | Set the date for the first debit. (ISO 8601 format) e.g. 2017-05-16T00:30:13+01:00 | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/SubscriptionToggle.md: -------------------------------------------------------------------------------- 1 | # SubscriptionToggle 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **code** | **str** | Subscription code | 8 | **token** | **str** | Email token | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/TransactionChargeAuthorization.md: -------------------------------------------------------------------------------- 1 | # TransactionChargeAuthorization 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **str** | Customer's email address | 8 | **amount** | **int** | Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | 9 | **authorization_code** | **str** | Valid authorization code to charge | 10 | **reference** | **str** | Unique transaction reference. Only -, ., = and alphanumeric characters allowed. | [optional] 11 | **currency** | **str** | The transaction currency | [optional] 12 | **metadata** | **str** | Stringified JSON object of custom data | [optional] 13 | **split_code** | **str** | The split code of the transaction split | [optional] 14 | **subaccount** | **str** | The code for the subaccount that owns the payment | [optional] 15 | **transaction_charge** | **str** | A flat fee to charge the subaccount for a transaction. This overrides the split percentage set when the subaccount was created | [optional] 16 | **bearer** | **str** | The beare of the transaction charge | [optional] 17 | **queue** | **bool** | If you are making a scheduled charge call, it is a good idea to queue them so the processing system does not get overloaded causing transaction processing errors. | [optional] 18 | 19 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/TransactionCheckAuthorization.md: -------------------------------------------------------------------------------- 1 | # TransactionCheckAuthorization 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **str** | Customer's email address | 8 | **amount** | **int** | Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | 9 | **authorization_code** | **str** | Valid authorization code to charge | [optional] 10 | **currency** | **str** | The transaction currency | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/TransactionInitialize.md: -------------------------------------------------------------------------------- 1 | # TransactionInitialize 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **str** | Customer's email address | 8 | **amount** | **int** | Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | 9 | **currency** | **str** | The transaction currency | [optional] 10 | **reference** | **str** | Unique transaction reference. Only -, ., = and alphanumeric characters allowed. | [optional] 11 | **callback_url** | **str** | Fully qualified url, e.g. https://example.com/ . Use this to override the callback url provided on the dashboard for this transaction | [optional] 12 | **plan** | **str** | If transaction is to create a subscription to a predefined plan, provide plan code here. This would invalidate the value provided in amount | [optional] 13 | **invoice_limit** | **int** | Number of times to charge customer during subscription to plan | [optional] 14 | **metadata** | **str** | Stringified JSON object of custom data | [optional] 15 | **channels** | **list[str]** | An array of payment channels to control what channels you want to make available to the user to make a payment with | [optional] 16 | **split_code** | **str** | The split code of the transaction split | [optional] 17 | **subaccount** | **str** | The code for the subaccount that owns the payment | [optional] 18 | **transaction_charge** | **str** | A flat fee to charge the subaccount for a transaction. This overrides the split percentage set when the subaccount was created | [optional] 19 | **bearer** | **str** | The beare of the transaction charge | [optional] 20 | 21 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/TransactionPartialDebit.md: -------------------------------------------------------------------------------- 1 | # TransactionPartialDebit 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **email** | **str** | Customer's email address | 8 | **amount** | **int** | Amount should be in kobo if currency is NGN, pesewas, if currency is GHS, and cents, if currency is ZAR | 9 | **authorization_code** | **str** | Valid authorization code to charge | 10 | **currency** | **str** | The transaction currency | 11 | **reference** | **str** | Unique transaction reference. Only -, ., = and alphanumeric characters allowed. | [optional] 12 | **at_least** | **str** | Minimum amount to charge | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/TransferBulk.md: -------------------------------------------------------------------------------- 1 | # TransferBulk 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **source** | **str** | Where should we transfer from? Only balance is allowed for now | [optional] 8 | **transfers** | [**list[TransferInitiate]**](TransferInitiate.md) | A list of transfer object. Each object should contain amount, recipient, and reference | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/TransferFinalize.md: -------------------------------------------------------------------------------- 1 | # TransferFinalize 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **transfer_code** | **str** | The transfer code you want to finalize | 8 | **otp** | **str** | OTP sent to business phone to verify transfer | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/TransferFinalizeDisableOTP.md: -------------------------------------------------------------------------------- 1 | # TransferFinalizeDisableOTP 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **otp** | **str** | OTP sent to business phone to verify disabling OTP requirement | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/TransferInitiate.md: -------------------------------------------------------------------------------- 1 | # TransferInitiate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **source** | **str** | Where should we transfer from? Only balance is allowed for now | 8 | **amount** | **str** | Amount to transfer in kobo if currency is NGN and pesewas if currency is GHS. | 9 | **recipient** | **str** | The transfer recipient's code | 10 | **reason** | **str** | The reason or narration for the transfer. | [optional] 11 | **currency** | **str** | Specify the currency of the transfer. Defaults to NGN. | [optional] 12 | **reference** | **str** | If specified, the field should be a unique identifier (in lowercase) for the object. Only -,_ and alphanumeric characters are allowed. | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/TransferRecipientBulk.md: -------------------------------------------------------------------------------- 1 | # TransferRecipientBulk 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **batch** | [**list[TransferRecipientCreate]**](TransferRecipientCreate.md) | A list of transfer recipient object. Each object should contain type, name, and bank_code. Any Create Transfer Recipient param can also be passed. | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/TransferRecipientCreate.md: -------------------------------------------------------------------------------- 1 | # TransferRecipientCreate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **type** | **str** | Recipient Type (Only nuban at this time) | 8 | **name** | **str** | Recipient's name | 9 | **account_number** | **str** | Recipient's bank account number | 10 | **bank_code** | **str** | Recipient's bank code. You can get the list of Bank Codes by calling the List Banks endpoint | 11 | **description** | **str** | A description for this recipient | [optional] 12 | **currency** | **str** | Currency for the account receiving the transfer | [optional] 13 | **authorization_code** | **str** | An authorization code from a previous transaction | [optional] 14 | **metadata** | **str** | Stringified JSON object of custom data | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/TransferRecipientUpdate.md: -------------------------------------------------------------------------------- 1 | # TransferRecipientUpdate 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | Recipient's name | [optional] 8 | **email** | **str** | Recipient's email address | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/TransferResendOTP.md: -------------------------------------------------------------------------------- 1 | # TransferResendOTP 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **transfer_code** | **str** | The transfer code that requires an OTP validation | 8 | **reason** | **str** | Either resend_otp or transfer | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/USSD.md: -------------------------------------------------------------------------------- 1 | # USSD 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **type** | **str** | The three-digit USSD code. One of, 737, 919, 822, 966 | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/VerificationBVNMatch.md: -------------------------------------------------------------------------------- 1 | # VerificationBVNMatch 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **account_number** | **str** | Bank Account Number | 8 | **bank_code** | **int** | You can get the list of banks codes by calling the List Bank endpoint | 9 | **bvn** | **str** | 11 digits Bank Verification Number | 10 | **first_name** | **str** | Customer's first name | [optional] 11 | **middle_name** | **str** | Customer's middle name | [optional] 12 | **last_name** | **str** | Customer's last name | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /git_push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 3 | # 4 | # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" 5 | 6 | git_user_id=$1 7 | git_repo_id=$2 8 | release_note=$3 9 | git_host=$4 10 | 11 | if [ "$git_host" = "" ]; then 12 | git_host="github.com" 13 | echo "[INFO] No command line input provided. Set \$git_host to $git_host" 14 | fi 15 | 16 | if [ "$git_user_id" = "" ]; then 17 | git_user_id="GIT_USER_ID" 18 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" 19 | fi 20 | 21 | if [ "$git_repo_id" = "" ]; then 22 | git_repo_id="GIT_REPO_ID" 23 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" 24 | fi 25 | 26 | if [ "$release_note" = "" ]; then 27 | release_note="Minor update" 28 | echo "[INFO] No command line input provided. Set \$release_note to $release_note" 29 | fi 30 | 31 | # Initialize the local directory as a Git repository 32 | git init 33 | 34 | # Adds the files in the local repository and stages them for commit. 35 | git add . 36 | 37 | # Commits the tracked changes and prepares them to be pushed to a remote repository. 38 | git commit -m "$release_note" 39 | 40 | # Sets the new remote 41 | git_remote=`git remote` 42 | if [ "$git_remote" = "" ]; then # git remote not defined 43 | 44 | if [ "$GIT_TOKEN" = "" ]; then 45 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." 46 | git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git 47 | else 48 | git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git 49 | fi 50 | 51 | fi 52 | 53 | git pull origin master 54 | 55 | # Pushes (Forces) the changes in the local repository up to the remote repository 56 | echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" 57 | git push origin master 2>&1 | grep -v 'To https' 58 | 59 | -------------------------------------------------------------------------------- /paystack/__init__.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | # flake8: noqa 4 | 5 | """ 6 | Paystack 7 | 8 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 9 | 10 | The version of the OpenAPI document: 1.0.0 11 | Contact: techsupport@paystack.com 12 | """ 13 | 14 | 15 | from __future__ import absolute_import 16 | 17 | __version__ = "1.0.1" 18 | api_key=None 19 | 20 | # import apis into sdk package 21 | from paystack.api.balance_ import Balance 22 | from paystack.api.bulk_charge_ import BulkCharge 23 | from paystack.api.charge_ import Charge 24 | from paystack.api.customer_ import Customer 25 | from paystack.api.dedicated_virtual_account_ import DedicatedVirtualAccount 26 | from paystack.api.dispute_ import Dispute 27 | from paystack.api.integration_ import Integration 28 | from paystack.api.page_ import Page 29 | from paystack.api.payment_request_ import PaymentRequest 30 | from paystack.api.plan_ import Plan 31 | from paystack.api.product_ import Product 32 | from paystack.api.refund_ import Refund 33 | from paystack.api.settlement_ import Settlement 34 | from paystack.api.split_ import Split 35 | from paystack.api.subaccount_ import Subaccount 36 | from paystack.api.subscription_ import Subscription 37 | from paystack.api.transaction_ import Transaction 38 | from paystack.api.transfer_ import Transfer 39 | from paystack.api.transfer_recipient_ import TransferRecipient 40 | from paystack.api.verification_ import Verification 41 | 42 | -------------------------------------------------------------------------------- /paystack/api/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | # flake8: noqa 4 | 5 | # import apis into api package 6 | from paystack.api.balance_ import Balance 7 | from paystack.api.bulk_charge_ import BulkCharge 8 | from paystack.api.charge_ import Charge 9 | from paystack.api.customer_ import Customer 10 | from paystack.api.dedicated_virtual_account_ import DedicatedVirtualAccount 11 | from paystack.api.dispute_ import Dispute 12 | from paystack.api.integration_ import Integration 13 | from paystack.api.page_ import Page 14 | from paystack.api.payment_request_ import PaymentRequest 15 | from paystack.api.plan_ import Plan 16 | from paystack.api.product_ import Product 17 | from paystack.api.refund_ import Refund 18 | from paystack.api.settlement_ import Settlement 19 | from paystack.api.split_ import Split 20 | from paystack.api.subaccount_ import Subaccount 21 | from paystack.api.subscription_ import Subscription 22 | from paystack.api.transaction_ import Transaction 23 | from paystack.api.transfer_ import Transfer 24 | from paystack.api.transfer_recipient_ import TransferRecipient 25 | from paystack.api.verification_ import Verification 26 | -------------------------------------------------------------------------------- /paystack/api/integration_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Contact: techsupport@paystack.com 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | from paystack.api_client import ApiClient 20 | from paystack.exceptions import ( # noqa: F401 21 | ApiTypeError, 22 | ApiValueError 23 | ) 24 | 25 | 26 | class Integration(object): 27 | """NOTE: This class is auto generated. Do not edit the class manually. 28 | """ 29 | 30 | def __init__(self, api_client=None): 31 | if api_client is None: 32 | api_client = ApiClient() 33 | self.api_client = api_client 34 | 35 | @classmethod 36 | def fetch_payment_session_timeout(cls, **kwargs): # noqa: E501 37 | """Fetch Payment Session Timeout # noqa: E501 38 | 39 | 40 | :return: Returns the result object. 41 | If the method is called asynchronously, 42 | returns the request thread. 43 | :rtype: Response 44 | """ 45 | local_var_params = locals() 46 | 47 | all_params = [ 48 | ] 49 | 50 | for key, val in six.iteritems(local_var_params['kwargs']): 51 | if key not in all_params: 52 | raise ApiTypeError( 53 | "Got an unexpected keyword argument '%s'" 54 | " to method fetch_payment_session_timeout" % key 55 | ) 56 | local_var_params[key] = val 57 | del local_var_params['kwargs'] 58 | 59 | 60 | path_params = {} 61 | 62 | query_params = [] 63 | 64 | form_params = [] 65 | local_var_files = {} 66 | body_params = {} 67 | 68 | 69 | 70 | response_types_map = { 71 | 200: "Response", 72 | 401: "Error", 73 | 404: "Error", 74 | } 75 | 76 | return cls().api_client.call_api( 77 | '/integration/payment_session_timeout', 'GET', 78 | path_params, 79 | query_params, 80 | body=body_params, 81 | post_params=form_params, 82 | response_types_map=response_types_map) 83 | 84 | 85 | @classmethod 86 | def update_payment_session_timeout(cls, **kwargs): # noqa: E501 87 | """Update Payment Session Timeout # noqa: E501 88 | 89 | 90 | :param body: 91 | :type body: object 92 | :return: Returns the result object. 93 | If the method is called asynchronously, 94 | returns the request thread. 95 | :rtype: Response 96 | """ 97 | local_var_params = locals() 98 | 99 | all_params = [ 100 | 'body' 101 | ] 102 | 103 | for key, val in six.iteritems(local_var_params['kwargs']): 104 | if key not in all_params: 105 | raise ApiTypeError( 106 | "Got an unexpected keyword argument '%s'" 107 | " to method update_payment_session_timeout" % key 108 | ) 109 | local_var_params[key] = val 110 | del local_var_params['kwargs'] 111 | 112 | 113 | path_params = {} 114 | 115 | query_params = [] 116 | 117 | form_params = [] 118 | local_var_files = {} 119 | body_params = {} 120 | 121 | 122 | if 'body' in local_var_params: 123 | body_params = local_var_params['body'] 124 | 125 | response_types_map = { 126 | 200: "Response", 127 | 401: "Error", 128 | 404: "Error", 129 | } 130 | 131 | return cls().api_client.call_api( 132 | '/integration/payment_session_timeout', 'PUT', 133 | path_params, 134 | query_params, 135 | body=body_params, 136 | post_params=form_params, 137 | response_types_map=response_types_map) 138 | 139 | -------------------------------------------------------------------------------- /paystack/models/__init__.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | # flake8: noqa 4 | """ 5 | Paystack 6 | 7 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 8 | 9 | The version of the OpenAPI document: 1.0.0 10 | Contact: techsupport@paystack.com 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | # import models into model package 17 | from paystack.models.accepted import Accepted 18 | from paystack.models.bank import Bank 19 | from paystack.models.bulk_charge_initiate import BulkChargeInitiate 20 | from paystack.models.charge_create import ChargeCreate 21 | from paystack.models.charge_submit_address import ChargeSubmitAddress 22 | from paystack.models.charge_submit_birthday import ChargeSubmitBirthday 23 | from paystack.models.charge_submit_otp import ChargeSubmitOTP 24 | from paystack.models.charge_submit_phone import ChargeSubmitPhone 25 | from paystack.models.charge_submit_pin import ChargeSubmitPin 26 | from paystack.models.customer_create import CustomerCreate 27 | from paystack.models.customer_deactivate_authorization import CustomerDeactivateAuthorization 28 | from paystack.models.customer_risk_action import CustomerRiskAction 29 | from paystack.models.customer_update import CustomerUpdate 30 | from paystack.models.customer_validate import CustomerValidate 31 | from paystack.models.customer_validation import CustomerValidation 32 | from paystack.models.dedicated_virtual_account_create import DedicatedVirtualAccountCreate 33 | from paystack.models.dedicated_virtual_account_split import DedicatedVirtualAccountSplit 34 | from paystack.models.dispute_evidence import DisputeEvidence 35 | from paystack.models.dispute_resolve import DisputeResolve 36 | from paystack.models.dispute_update import DisputeUpdate 37 | from paystack.models.eft import EFT 38 | from paystack.models.error import Error 39 | from paystack.models.mobile_money import MobileMoney 40 | from paystack.models.page_create import PageCreate 41 | from paystack.models.page_product import PageProduct 42 | from paystack.models.page_update import PageUpdate 43 | from paystack.models.payment_request_create import PaymentRequestCreate 44 | from paystack.models.payment_request_update import PaymentRequestUpdate 45 | from paystack.models.plan_create import PlanCreate 46 | from paystack.models.plan_update import PlanUpdate 47 | from paystack.models.product_create import ProductCreate 48 | from paystack.models.product_update import ProductUpdate 49 | from paystack.models.refund_create import RefundCreate 50 | from paystack.models.response import Response 51 | from paystack.models.split_create import SplitCreate 52 | from paystack.models.split_subaccounts import SplitSubaccounts 53 | from paystack.models.split_update import SplitUpdate 54 | from paystack.models.subaccount_create import SubaccountCreate 55 | from paystack.models.subaccount_update import SubaccountUpdate 56 | from paystack.models.subscription_create import SubscriptionCreate 57 | from paystack.models.subscription_toggle import SubscriptionToggle 58 | from paystack.models.transaction_charge_authorization import TransactionChargeAuthorization 59 | from paystack.models.transaction_check_authorization import TransactionCheckAuthorization 60 | from paystack.models.transaction_initialize import TransactionInitialize 61 | from paystack.models.transaction_partial_debit import TransactionPartialDebit 62 | from paystack.models.transfer_bulk import TransferBulk 63 | from paystack.models.transfer_finalize import TransferFinalize 64 | from paystack.models.transfer_finalize_disable_otp import TransferFinalizeDisableOTP 65 | from paystack.models.transfer_initiate import TransferInitiate 66 | from paystack.models.transfer_recipient_bulk import TransferRecipientBulk 67 | from paystack.models.transfer_recipient_create import TransferRecipientCreate 68 | from paystack.models.transfer_recipient_update import TransferRecipientUpdate 69 | from paystack.models.transfer_resend_otp import TransferResendOTP 70 | from paystack.models.ussd import USSD 71 | from paystack.models.verification_bvn_match import VerificationBVNMatch 72 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | future; python_version<="2.7" 2 | six >= 1.10 3 | python_dateutil >= 2.5.3 4 | setuptools >= 21.0.0 5 | urllib3 >= 1.25.3 6 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length=99 3 | description-file=README.md 4 | license_files=LICENSE 5 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Contact: techsupport@paystack.com 10 | """ 11 | 12 | 13 | from setuptools import setup, find_packages # noqa: H301 14 | 15 | NAME = "paystack-sdk" 16 | VERSION = "1.0.1" 17 | # To install the library, run the following 18 | # 19 | # python setup.py install 20 | # 21 | # prerequisite: setuptools 22 | # http://pypi.python.org/pypi/setuptools 23 | 24 | REQUIRES = ["urllib3 >= 1.25.3", "six >= 1.10", "python-dateutil"] 25 | 26 | setup( 27 | name=NAME, 28 | version=VERSION, 29 | description="Paystack", 30 | author="Paystack Integration", 31 | author_email="techsupport@paystack.com", 32 | url="https://github.com/PaystackOSS/paystack-python", 33 | keywords=["Paystack", "Transaction", "Split Payment", "Customer", "Dedicated Virtual Account", "Subaccount", 34 | "Plan", "Subscription", "Product", "Page", "Payment Request", "Settlement", "Transfer Recipient", "Transfer", 35 | "Balance", "Charge", "Bulk Charge", "Integration", "Refund", "Dispute", "Verification"], 36 | install_requires=REQUIRES, 37 | packages=find_packages(exclude=["test", "tests"]), 38 | include_package_data=True, 39 | long_description="""\ 40 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 41 | """ 42 | ) 43 | -------------------------------------------------------------------------------- /test-requirements.txt: -------------------------------------------------------------------------------- 1 | pytest~=4.6.7 # needed for python 2.7+3.4 2 | pytest-cov>=2.8.1 3 | pytest-randomly==1.2.3 # needed for python 2.7+3.4 4 | -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- 1 | from __future__ import print_function 2 | import paystack 3 | from paystack.rest import ApiException 4 | from pprint import pprint 5 | 6 | paystack.api_key = 'sk_test_xxxx' 7 | 8 | 9 | code='CUS_xxxx' 10 | email="confirm@test.com" 11 | first_name="Confirm" 12 | last_name = "Test" 13 | 14 | try: 15 | # List all customers 16 | response = paystack.Customer.fetch(code) 17 | # response = paystack.Customer.create( 18 | # email=email, 19 | # first_name=first_name, 20 | # last_name=last_name 21 | # ) 22 | pprint(response) 23 | except ApiException as e: 24 | print("Exception when calling Customer->list: %s\n" % e) 25 | -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaystackOSS/paystack-python/d95dc8d96df2a395eaae8d6a18cd0a4164dd34e8/test/__init__.py -------------------------------------------------------------------------------- /test/test_accepted.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Contact: techsupport@paystack.com 10 | """ 11 | 12 | 13 | from __future__ import absolute_import 14 | 15 | import unittest 16 | import datetime 17 | 18 | import paystack 19 | from paystack.models.accepted import Accepted # noqa: E501 20 | from paystack.rest import ApiException 21 | 22 | class TestAccepted(unittest.TestCase): 23 | """Accepted unit test stubs""" 24 | 25 | def setUp(self): 26 | pass 27 | 28 | def tearDown(self): 29 | pass 30 | 31 | def make_instance(self, include_optional): 32 | """Test Accepted 33 | include_option is a boolean, when False only required 34 | params are included, when True both required and 35 | optional params are included """ 36 | # model = paystack.models.accepted.Accepted() # noqa: E501 37 | if include_optional : 38 | return Accepted( 39 | status = True, 40 | message = '' 41 | ) 42 | else : 43 | return Accepted( 44 | ) 45 | 46 | def testAccepted(self): 47 | """Test Accepted""" 48 | inst_req_only = self.make_instance(include_optional=False) 49 | inst_req_and_optional = self.make_instance(include_optional=True) 50 | 51 | if __name__ == '__main__': 52 | unittest.main() 53 | -------------------------------------------------------------------------------- /test/test_balance_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.balance_ import Balance # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestBalance(unittest.TestCase): 22 | """Balance unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.balance_.Balance() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_fetch(self): 31 | """Test case for fetch 32 | 33 | Fetch Balance # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_ledger(self): 38 | """Test case for ledger 39 | 40 | Balance Ledger # noqa: E501 41 | """ 42 | pass 43 | 44 | 45 | if __name__ == '__main__': 46 | unittest.main() 47 | -------------------------------------------------------------------------------- /test/test_bank.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.bank import Bank # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestBank(unittest.TestCase): 22 | """Bank unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test Bank 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.bank.Bank() # noqa: E501 36 | if include_optional : 37 | return Bank( 38 | code = '', 39 | account_number = '' 40 | ) 41 | else : 42 | return Bank( 43 | ) 44 | 45 | def testBank(self): 46 | """Test Bank""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | if __name__ == '__main__': 51 | unittest.main() 52 | -------------------------------------------------------------------------------- /test/test_bulk_charge_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.bulk_charge_ import BulkCharge # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestBulkCharge(unittest.TestCase): 22 | """BulkCharge unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.bulk_charge_.BulkCharge() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_charges(self): 31 | """Test case for charges 32 | 33 | Fetch Charges in a Batch # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_fetch(self): 38 | """Test case for fetch 39 | 40 | Fetch Bulk Charge Batch # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_initiate(self): 45 | """Test case for initiate 46 | 47 | Initiate Bulk Charge # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_list(self): 52 | """Test case for list 53 | 54 | List Bulk Charge Batches # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_pause(self): 59 | """Test case for pause 60 | 61 | Pause Bulk Charge Batch # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_resume(self): 66 | """Test case for resume 67 | 68 | Resume Bulk Charge Batch # noqa: E501 69 | """ 70 | pass 71 | 72 | 73 | if __name__ == '__main__': 74 | unittest.main() 75 | -------------------------------------------------------------------------------- /test/test_bulk_charge_initiate.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.bulk_charge_initiate import BulkChargeInitiate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestBulkChargeInitiate(unittest.TestCase): 22 | """BulkChargeInitiate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test BulkChargeInitiate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.bulk_charge_initiate.BulkChargeInitiate() # noqa: E501 36 | if include_optional : 37 | return BulkChargeInitiate( 38 | authorization = '', 39 | amount = '' 40 | ) 41 | else : 42 | return BulkChargeInitiate( 43 | authorization = '', 44 | amount = '', 45 | ) 46 | 47 | def testBulkChargeInitiate(self): 48 | """Test BulkChargeInitiate""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_charge_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.charge_ import Charge # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestCharge(unittest.TestCase): 22 | """Charge unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.charge_.Charge() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_check(self): 31 | """Test case for check 32 | 33 | Check pending charge # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_create(self): 38 | """Test case for create 39 | 40 | Create Charge # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_submit_address(self): 45 | """Test case for submit_address 46 | 47 | Submit Address # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_submit_birthday(self): 52 | """Test case for submit_birthday 53 | 54 | Submit Birthday # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_submit_otp(self): 59 | """Test case for submit_otp 60 | 61 | Submit OTP # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_submit_phone(self): 66 | """Test case for submit_phone 67 | 68 | Submit Phone # noqa: E501 69 | """ 70 | pass 71 | 72 | def test_submit_pin(self): 73 | """Test case for submit_pin 74 | 75 | Submit PIN # noqa: E501 76 | """ 77 | pass 78 | 79 | 80 | if __name__ == '__main__': 81 | unittest.main() 82 | -------------------------------------------------------------------------------- /test/test_charge_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.charge_create import ChargeCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestChargeCreate(unittest.TestCase): 22 | """ChargeCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test ChargeCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.charge_create.ChargeCreate() # noqa: E501 36 | if include_optional : 37 | return ChargeCreate( 38 | email = '', 39 | amount = '', 40 | authorization_code = '', 41 | pin = '', 42 | reference = '', 43 | birthday = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 44 | device_id = '', 45 | metadata = '' 46 | ) 47 | else : 48 | return ChargeCreate( 49 | email = '', 50 | amount = '', 51 | ) 52 | 53 | def testChargeCreate(self): 54 | """Test ChargeCreate""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_charge_submit_address.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.charge_submit_address import ChargeSubmitAddress # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestChargeSubmitAddress(unittest.TestCase): 22 | """ChargeSubmitAddress unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test ChargeSubmitAddress 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.charge_submit_address.ChargeSubmitAddress() # noqa: E501 36 | if include_optional : 37 | return ChargeSubmitAddress( 38 | address = '', 39 | city = '', 40 | state = '', 41 | zipcode = '', 42 | reference = '' 43 | ) 44 | else : 45 | return ChargeSubmitAddress( 46 | address = '', 47 | city = '', 48 | state = '', 49 | zipcode = '', 50 | reference = '', 51 | ) 52 | 53 | def testChargeSubmitAddress(self): 54 | """Test ChargeSubmitAddress""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_charge_submit_birthday.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.charge_submit_birthday import ChargeSubmitBirthday # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestChargeSubmitBirthday(unittest.TestCase): 22 | """ChargeSubmitBirthday unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test ChargeSubmitBirthday 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.charge_submit_birthday.ChargeSubmitBirthday() # noqa: E501 36 | if include_optional : 37 | return ChargeSubmitBirthday( 38 | birthday = '', 39 | reference = '' 40 | ) 41 | else : 42 | return ChargeSubmitBirthday( 43 | birthday = '', 44 | reference = '', 45 | ) 46 | 47 | def testChargeSubmitBirthday(self): 48 | """Test ChargeSubmitBirthday""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_charge_submit_otp.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.charge_submit_otp import ChargeSubmitOTP # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestChargeSubmitOTP(unittest.TestCase): 22 | """ChargeSubmitOTP unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test ChargeSubmitOTP 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.charge_submit_otp.ChargeSubmitOTP() # noqa: E501 36 | if include_optional : 37 | return ChargeSubmitOTP( 38 | otp = '', 39 | reference = '' 40 | ) 41 | else : 42 | return ChargeSubmitOTP( 43 | otp = '', 44 | reference = '', 45 | ) 46 | 47 | def testChargeSubmitOTP(self): 48 | """Test ChargeSubmitOTP""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_charge_submit_phone.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.charge_submit_phone import ChargeSubmitPhone # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestChargeSubmitPhone(unittest.TestCase): 22 | """ChargeSubmitPhone unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test ChargeSubmitPhone 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.charge_submit_phone.ChargeSubmitPhone() # noqa: E501 36 | if include_optional : 37 | return ChargeSubmitPhone( 38 | phone = '', 39 | reference = '' 40 | ) 41 | else : 42 | return ChargeSubmitPhone( 43 | phone = '', 44 | reference = '', 45 | ) 46 | 47 | def testChargeSubmitPhone(self): 48 | """Test ChargeSubmitPhone""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_charge_submit_pin.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.charge_submit_pin import ChargeSubmitPin # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestChargeSubmitPin(unittest.TestCase): 22 | """ChargeSubmitPin unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test ChargeSubmitPin 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.charge_submit_pin.ChargeSubmitPin() # noqa: E501 36 | if include_optional : 37 | return ChargeSubmitPin( 38 | pin = '', 39 | reference = '' 40 | ) 41 | else : 42 | return ChargeSubmitPin( 43 | pin = '', 44 | reference = '', 45 | ) 46 | 47 | def testChargeSubmitPin(self): 48 | """Test ChargeSubmitPin""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_customer_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.customer_ import Customer # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestCustomer(unittest.TestCase): 22 | """Customer unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.customer_.Customer() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_create(self): 31 | """Test case for create 32 | 33 | Create Customer # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_deactivate_authorization(self): 38 | """Test case for deactivate_authorization 39 | 40 | Deactivate Authorization # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_fetch(self): 45 | """Test case for fetch 46 | 47 | Fetch Customer # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_list(self): 52 | """Test case for list 53 | 54 | List Customers # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_risk_action(self): 59 | """Test case for risk_action 60 | 61 | White/blacklist Customer # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_update(self): 66 | """Test case for update 67 | 68 | Update Customer # noqa: E501 69 | """ 70 | pass 71 | 72 | def test_validatte(self): 73 | """Test case for validatte 74 | 75 | Validate Customer # noqa: E501 76 | """ 77 | pass 78 | 79 | 80 | if __name__ == '__main__': 81 | unittest.main() 82 | -------------------------------------------------------------------------------- /test/test_customer_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.customer_create import CustomerCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestCustomerCreate(unittest.TestCase): 22 | """CustomerCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test CustomerCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.customer_create.CustomerCreate() # noqa: E501 36 | if include_optional : 37 | return CustomerCreate( 38 | email = '', 39 | first_name = '', 40 | last_name = '', 41 | phone = '', 42 | metadata = '' 43 | ) 44 | else : 45 | return CustomerCreate( 46 | email = '', 47 | ) 48 | 49 | def testCustomerCreate(self): 50 | """Test CustomerCreate""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_customer_deactivate_authorization.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.customer_deactivate_authorization import CustomerDeactivateAuthorization # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestCustomerDeactivateAuthorization(unittest.TestCase): 22 | """CustomerDeactivateAuthorization unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test CustomerDeactivateAuthorization 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.customer_deactivate_authorization.CustomerDeactivateAuthorization() # noqa: E501 36 | if include_optional : 37 | return CustomerDeactivateAuthorization( 38 | authorization_code = '' 39 | ) 40 | else : 41 | return CustomerDeactivateAuthorization( 42 | authorization_code = '', 43 | ) 44 | 45 | def testCustomerDeactivateAuthorization(self): 46 | """Test CustomerDeactivateAuthorization""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | if __name__ == '__main__': 51 | unittest.main() 52 | -------------------------------------------------------------------------------- /test/test_customer_risk_action.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.customer_risk_action import CustomerRiskAction # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestCustomerRiskAction(unittest.TestCase): 22 | """CustomerRiskAction unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test CustomerRiskAction 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.customer_risk_action.CustomerRiskAction() # noqa: E501 36 | if include_optional : 37 | return CustomerRiskAction( 38 | customer = '', 39 | risk_action = '' 40 | ) 41 | else : 42 | return CustomerRiskAction( 43 | customer = '', 44 | ) 45 | 46 | def testCustomerRiskAction(self): 47 | """Test CustomerRiskAction""" 48 | inst_req_only = self.make_instance(include_optional=False) 49 | inst_req_and_optional = self.make_instance(include_optional=True) 50 | 51 | if __name__ == '__main__': 52 | unittest.main() 53 | -------------------------------------------------------------------------------- /test/test_customer_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.customer_update import CustomerUpdate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestCustomerUpdate(unittest.TestCase): 22 | """CustomerUpdate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test CustomerUpdate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.customer_update.CustomerUpdate() # noqa: E501 36 | if include_optional : 37 | return CustomerUpdate( 38 | first_name = '', 39 | last_name = '', 40 | phone = '', 41 | metadata = '' 42 | ) 43 | else : 44 | return CustomerUpdate( 45 | ) 46 | 47 | def testCustomerUpdate(self): 48 | """Test CustomerUpdate""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_customer_validate.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.customer_validate import CustomerValidate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestCustomerValidate(unittest.TestCase): 22 | """CustomerValidate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test CustomerValidate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.customer_validate.CustomerValidate() # noqa: E501 36 | if include_optional : 37 | return CustomerValidate( 38 | first_name = '', 39 | last_name = '', 40 | type = '', 41 | value = '', 42 | country = '' 43 | ) 44 | else : 45 | return CustomerValidate( 46 | first_name = '', 47 | last_name = '', 48 | type = '', 49 | value = '', 50 | country = '', 51 | ) 52 | 53 | def testCustomerValidate(self): 54 | """Test CustomerValidate""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_customer_validation.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.customer_validation import CustomerValidation # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestCustomerValidation(unittest.TestCase): 22 | """CustomerValidation unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test CustomerValidation 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.customer_validation.CustomerValidation() # noqa: E501 36 | if include_optional : 37 | return CustomerValidation( 38 | first_name = '', 39 | last_name = '', 40 | type = '', 41 | country = '', 42 | bvn = '', 43 | bank_code = '', 44 | account_number = '', 45 | value = '' 46 | ) 47 | else : 48 | return CustomerValidation( 49 | first_name = '', 50 | last_name = '', 51 | type = '', 52 | country = '', 53 | bvn = '', 54 | bank_code = '', 55 | account_number = '', 56 | ) 57 | 58 | def testCustomerValidation(self): 59 | """Test CustomerValidation""" 60 | inst_req_only = self.make_instance(include_optional=False) 61 | inst_req_and_optional = self.make_instance(include_optional=True) 62 | 63 | if __name__ == '__main__': 64 | unittest.main() 65 | -------------------------------------------------------------------------------- /test/test_dedicated_virtual_account_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.dedicated_virtual_account_ import DedicatedVirtualAccount # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestDedicatedVirtualAccount(unittest.TestCase): 22 | """DedicatedVirtualAccount unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.dedicated_virtual_account_.DedicatedVirtualAccount() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_add_split(self): 31 | """Test case for add_split 32 | 33 | Split Dedicated Account Transaction # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_available_providers(self): 38 | """Test case for available_providers 39 | 40 | Fetch Bank Providers # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_create(self): 45 | """Test case for create 46 | 47 | Create Dedicated Account # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_deactivate(self): 52 | """Test case for deactivate 53 | 54 | Deactivate Dedicated Account # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_fetch(self): 59 | """Test case for fetch 60 | 61 | Fetch Dedicated Account # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_list(self): 66 | """Test case for list 67 | 68 | List Dedicated Accounts # noqa: E501 69 | """ 70 | pass 71 | 72 | def test_remove_split(self): 73 | """Test case for remove_split 74 | 75 | Remove Split from Dedicated Account # noqa: E501 76 | """ 77 | pass 78 | 79 | 80 | if __name__ == '__main__': 81 | unittest.main() 82 | -------------------------------------------------------------------------------- /test/test_dedicated_virtual_account_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.dedicated_virtual_account_create import DedicatedVirtualAccountCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestDedicatedVirtualAccountCreate(unittest.TestCase): 22 | """DedicatedVirtualAccountCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test DedicatedVirtualAccountCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.dedicated_virtual_account_create.DedicatedVirtualAccountCreate() # noqa: E501 36 | if include_optional : 37 | return DedicatedVirtualAccountCreate( 38 | customer = '', 39 | preferred_bank = '', 40 | subaccount = '', 41 | split_code = '' 42 | ) 43 | else : 44 | return DedicatedVirtualAccountCreate( 45 | customer = '', 46 | ) 47 | 48 | def testDedicatedVirtualAccountCreate(self): 49 | """Test DedicatedVirtualAccountCreate""" 50 | inst_req_only = self.make_instance(include_optional=False) 51 | inst_req_and_optional = self.make_instance(include_optional=True) 52 | 53 | if __name__ == '__main__': 54 | unittest.main() 55 | -------------------------------------------------------------------------------- /test/test_dedicated_virtual_account_split.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.dedicated_virtual_account_split import DedicatedVirtualAccountSplit # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestDedicatedVirtualAccountSplit(unittest.TestCase): 22 | """DedicatedVirtualAccountSplit unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test DedicatedVirtualAccountSplit 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.dedicated_virtual_account_split.DedicatedVirtualAccountSplit() # noqa: E501 36 | if include_optional : 37 | return DedicatedVirtualAccountSplit( 38 | account_number = '', 39 | subaccount = '', 40 | split_code = '' 41 | ) 42 | else : 43 | return DedicatedVirtualAccountSplit( 44 | account_number = '', 45 | ) 46 | 47 | def testDedicatedVirtualAccountSplit(self): 48 | """Test DedicatedVirtualAccountSplit""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_dispute_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.dispute_ import Dispute # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestDispute(unittest.TestCase): 22 | """Dispute unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.dispute_.Dispute() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_download(self): 31 | """Test case for download 32 | 33 | Export Disputes # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_evidence(self): 38 | """Test case for evidence 39 | 40 | Add Evidence # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_fetch(self): 45 | """Test case for fetch 46 | 47 | Fetch Dispute # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_list(self): 52 | """Test case for list 53 | 54 | List Disputes # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_resolve(self): 59 | """Test case for resolve 60 | 61 | Resolve a Dispute # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_transaction(self): 66 | """Test case for transaction 67 | 68 | List Transaction Disputes # noqa: E501 69 | """ 70 | pass 71 | 72 | def test_update(self): 73 | """Test case for update 74 | 75 | Update Dispute # noqa: E501 76 | """ 77 | pass 78 | 79 | def test_upload_url(self): 80 | """Test case for upload_url 81 | 82 | Get Upload URL # noqa: E501 83 | """ 84 | pass 85 | 86 | 87 | if __name__ == '__main__': 88 | unittest.main() 89 | -------------------------------------------------------------------------------- /test/test_dispute_evidence.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.dispute_evidence import DisputeEvidence # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestDisputeEvidence(unittest.TestCase): 22 | """DisputeEvidence unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test DisputeEvidence 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.dispute_evidence.DisputeEvidence() # noqa: E501 36 | if include_optional : 37 | return DisputeEvidence( 38 | customer_email = '', 39 | customer_name = '', 40 | customer_phone = '', 41 | service_details = '', 42 | delivery_address = '', 43 | delivery_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') 44 | ) 45 | else : 46 | return DisputeEvidence( 47 | customer_email = '', 48 | customer_name = '', 49 | customer_phone = '', 50 | service_details = '', 51 | ) 52 | 53 | def testDisputeEvidence(self): 54 | """Test DisputeEvidence""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_dispute_resolve.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.dispute_resolve import DisputeResolve # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestDisputeResolve(unittest.TestCase): 22 | """DisputeResolve unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test DisputeResolve 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.dispute_resolve.DisputeResolve() # noqa: E501 36 | if include_optional : 37 | return DisputeResolve( 38 | resolution = '', 39 | message = '', 40 | refund_amount = '', 41 | uploaded_filename = '', 42 | evidence = 56 43 | ) 44 | else : 45 | return DisputeResolve( 46 | resolution = '', 47 | message = '', 48 | refund_amount = '', 49 | uploaded_filename = '', 50 | ) 51 | 52 | def testDisputeResolve(self): 53 | """Test DisputeResolve""" 54 | inst_req_only = self.make_instance(include_optional=False) 55 | inst_req_and_optional = self.make_instance(include_optional=True) 56 | 57 | if __name__ == '__main__': 58 | unittest.main() 59 | -------------------------------------------------------------------------------- /test/test_dispute_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.dispute_update import DisputeUpdate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestDisputeUpdate(unittest.TestCase): 22 | """DisputeUpdate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test DisputeUpdate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.dispute_update.DisputeUpdate() # noqa: E501 36 | if include_optional : 37 | return DisputeUpdate( 38 | refund_amount = '', 39 | uploaded_filename = '' 40 | ) 41 | else : 42 | return DisputeUpdate( 43 | refund_amount = '', 44 | ) 45 | 46 | def testDisputeUpdate(self): 47 | """Test DisputeUpdate""" 48 | inst_req_only = self.make_instance(include_optional=False) 49 | inst_req_and_optional = self.make_instance(include_optional=True) 50 | 51 | if __name__ == '__main__': 52 | unittest.main() 53 | -------------------------------------------------------------------------------- /test/test_eft.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.eft import EFT # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestEFT(unittest.TestCase): 22 | """EFT unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test EFT 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.eft.EFT() # noqa: E501 36 | if include_optional : 37 | return EFT( 38 | provider = '' 39 | ) 40 | else : 41 | return EFT( 42 | ) 43 | 44 | def testEFT(self): 45 | """Test EFT""" 46 | inst_req_only = self.make_instance(include_optional=False) 47 | inst_req_and_optional = self.make_instance(include_optional=True) 48 | 49 | if __name__ == '__main__': 50 | unittest.main() 51 | -------------------------------------------------------------------------------- /test/test_error.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.error import Error # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestError(unittest.TestCase): 22 | """Error unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test Error 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.error.Error() # noqa: E501 36 | if include_optional : 37 | return Error( 38 | status = True, 39 | message = '' 40 | ) 41 | else : 42 | return Error( 43 | ) 44 | 45 | def testError(self): 46 | """Test Error""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | if __name__ == '__main__': 51 | unittest.main() 52 | -------------------------------------------------------------------------------- /test/test_integration_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.integration_ import Integration # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestIntegration(unittest.TestCase): 22 | """Integration unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.integration_.Integration() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_fetch_payment_session_timeout(self): 31 | """Test case for fetch_payment_session_timeout 32 | 33 | Fetch Payment Session Timeout # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_update_payment_session_timeout(self): 38 | """Test case for update_payment_session_timeout 39 | 40 | Update Payment Session Timeout # noqa: E501 41 | """ 42 | pass 43 | 44 | 45 | if __name__ == '__main__': 46 | unittest.main() 47 | -------------------------------------------------------------------------------- /test/test_mobile_money.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.mobile_money import MobileMoney # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestMobileMoney(unittest.TestCase): 22 | """MobileMoney unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test MobileMoney 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.mobile_money.MobileMoney() # noqa: E501 36 | if include_optional : 37 | return MobileMoney( 38 | phone = '', 39 | provider = '' 40 | ) 41 | else : 42 | return MobileMoney( 43 | ) 44 | 45 | def testMobileMoney(self): 46 | """Test MobileMoney""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | if __name__ == '__main__': 51 | unittest.main() 52 | -------------------------------------------------------------------------------- /test/test_page_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.page_ import Page # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestPage(unittest.TestCase): 22 | """Page unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.page_.Page() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_add_products(self): 31 | """Test case for add_products 32 | 33 | Add Products # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_check_slug_availability(self): 38 | """Test case for check_slug_availability 39 | 40 | Check Slug Availability # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_create(self): 45 | """Test case for create 46 | 47 | Create Page # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_fetch(self): 52 | """Test case for fetch 53 | 54 | Fetch Page # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_list(self): 59 | """Test case for list 60 | 61 | List Pages # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_update(self): 66 | """Test case for update 67 | 68 | Update Page # noqa: E501 69 | """ 70 | pass 71 | 72 | 73 | if __name__ == '__main__': 74 | unittest.main() 75 | -------------------------------------------------------------------------------- /test/test_page_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.page_create import PageCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestPageCreate(unittest.TestCase): 22 | """PageCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test PageCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.page_create.PageCreate() # noqa: E501 36 | if include_optional : 37 | return PageCreate( 38 | name = '', 39 | description = '', 40 | amount = 56, 41 | slug = '', 42 | metadata = '', 43 | redirect_url = '', 44 | custom_fields = [ 45 | None 46 | ] 47 | ) 48 | else : 49 | return PageCreate( 50 | name = '', 51 | ) 52 | 53 | def testPageCreate(self): 54 | """Test PageCreate""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_page_product.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.page_product import PageProduct # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestPageProduct(unittest.TestCase): 22 | """PageProduct unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test PageProduct 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.page_product.PageProduct() # noqa: E501 36 | if include_optional : 37 | return PageProduct( 38 | product = [ 39 | '' 40 | ] 41 | ) 42 | else : 43 | return PageProduct( 44 | product = [ 45 | '' 46 | ], 47 | ) 48 | 49 | def testPageProduct(self): 50 | """Test PageProduct""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_page_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.page_update import PageUpdate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestPageUpdate(unittest.TestCase): 22 | """PageUpdate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test PageUpdate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.page_update.PageUpdate() # noqa: E501 36 | if include_optional : 37 | return PageUpdate( 38 | name = '', 39 | description = '', 40 | amount = 56, 41 | active = True 42 | ) 43 | else : 44 | return PageUpdate( 45 | ) 46 | 47 | def testPageUpdate(self): 48 | """Test PageUpdate""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_payment_request_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.payment_request_ import PaymentRequest # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestPaymentRequest(unittest.TestCase): 22 | """PaymentRequest unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.payment_request_.PaymentRequest() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_archive(self): 31 | """Test case for archive 32 | 33 | Archive Payment Request # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_create(self): 38 | """Test case for create 39 | 40 | Create Payment Request # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_fetch(self): 45 | """Test case for fetch 46 | 47 | Fetch Payment Request # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_finalize(self): 52 | """Test case for finalize 53 | 54 | Finalize Payment Request # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_list(self): 59 | """Test case for list 60 | 61 | List Payment Request # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_notify(self): 66 | """Test case for notify 67 | 68 | Send Notification # noqa: E501 69 | """ 70 | pass 71 | 72 | def test_totals(self): 73 | """Test case for totals 74 | 75 | Payment Request Total # noqa: E501 76 | """ 77 | pass 78 | 79 | def test_update(self): 80 | """Test case for update 81 | 82 | Update Payment Request # noqa: E501 83 | """ 84 | pass 85 | 86 | def test_verify(self): 87 | """Test case for verify 88 | 89 | Verify Payment Request # noqa: E501 90 | """ 91 | pass 92 | 93 | 94 | if __name__ == '__main__': 95 | unittest.main() 96 | -------------------------------------------------------------------------------- /test/test_payment_request_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.payment_request_create import PaymentRequestCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestPaymentRequestCreate(unittest.TestCase): 22 | """PaymentRequestCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test PaymentRequestCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.payment_request_create.PaymentRequestCreate() # noqa: E501 36 | if include_optional : 37 | return PaymentRequestCreate( 38 | customer = '', 39 | amount = 56, 40 | currency = '', 41 | due_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 42 | description = '', 43 | line_items = [ 44 | None 45 | ], 46 | tax = [ 47 | None 48 | ], 49 | send_notification = [ 50 | None 51 | ], 52 | draft = [ 53 | None 54 | ], 55 | has_invoice = [ 56 | None 57 | ], 58 | invoice_number = 56, 59 | split_code = '' 60 | ) 61 | else : 62 | return PaymentRequestCreate( 63 | customer = '', 64 | ) 65 | 66 | def testPaymentRequestCreate(self): 67 | """Test PaymentRequestCreate""" 68 | inst_req_only = self.make_instance(include_optional=False) 69 | inst_req_and_optional = self.make_instance(include_optional=True) 70 | 71 | if __name__ == '__main__': 72 | unittest.main() 73 | -------------------------------------------------------------------------------- /test/test_payment_request_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.payment_request_update import PaymentRequestUpdate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestPaymentRequestUpdate(unittest.TestCase): 22 | """PaymentRequestUpdate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test PaymentRequestUpdate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.payment_request_update.PaymentRequestUpdate() # noqa: E501 36 | if include_optional : 37 | return PaymentRequestUpdate( 38 | customer = '', 39 | amount = 56, 40 | currency = '', 41 | due_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 42 | description = '', 43 | line_items = [ 44 | None 45 | ], 46 | tax = [ 47 | None 48 | ], 49 | send_notification = [ 50 | None 51 | ], 52 | draft = [ 53 | None 54 | ], 55 | has_invoice = [ 56 | None 57 | ], 58 | invoice_number = 56, 59 | split_code = '' 60 | ) 61 | else : 62 | return PaymentRequestUpdate( 63 | ) 64 | 65 | def testPaymentRequestUpdate(self): 66 | """Test PaymentRequestUpdate""" 67 | inst_req_only = self.make_instance(include_optional=False) 68 | inst_req_and_optional = self.make_instance(include_optional=True) 69 | 70 | if __name__ == '__main__': 71 | unittest.main() 72 | -------------------------------------------------------------------------------- /test/test_plan_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.plan_ import Plan # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestPlan(unittest.TestCase): 22 | """Plan unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.plan_.Plan() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_create(self): 31 | """Test case for create 32 | 33 | Create Plan # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_fetch(self): 38 | """Test case for fetch 39 | 40 | Fetch Plan # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_list(self): 45 | """Test case for list 46 | 47 | List Plans # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_update(self): 52 | """Test case for update 53 | 54 | Update Plan # noqa: E501 55 | """ 56 | pass 57 | 58 | 59 | if __name__ == '__main__': 60 | unittest.main() 61 | -------------------------------------------------------------------------------- /test/test_plan_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.plan_create import PlanCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestPlanCreate(unittest.TestCase): 22 | """PlanCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test PlanCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.plan_create.PlanCreate() # noqa: E501 36 | if include_optional : 37 | return PlanCreate( 38 | name = '', 39 | amount = 56, 40 | interval = '', 41 | description = True, 42 | send_invoices = True, 43 | send_sms = True, 44 | currency = '', 45 | invoice_limit = 56 46 | ) 47 | else : 48 | return PlanCreate( 49 | name = '', 50 | amount = 56, 51 | interval = '', 52 | ) 53 | 54 | def testPlanCreate(self): 55 | """Test PlanCreate""" 56 | inst_req_only = self.make_instance(include_optional=False) 57 | inst_req_and_optional = self.make_instance(include_optional=True) 58 | 59 | if __name__ == '__main__': 60 | unittest.main() 61 | -------------------------------------------------------------------------------- /test/test_plan_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.plan_update import PlanUpdate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestPlanUpdate(unittest.TestCase): 22 | """PlanUpdate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test PlanUpdate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.plan_update.PlanUpdate() # noqa: E501 36 | if include_optional : 37 | return PlanUpdate( 38 | name = '', 39 | amount = 56, 40 | interval = '', 41 | description = True, 42 | send_invoices = True, 43 | send_sms = True, 44 | currency = '', 45 | invoice_limit = 56 46 | ) 47 | else : 48 | return PlanUpdate( 49 | ) 50 | 51 | def testPlanUpdate(self): 52 | """Test PlanUpdate""" 53 | inst_req_only = self.make_instance(include_optional=False) 54 | inst_req_and_optional = self.make_instance(include_optional=True) 55 | 56 | if __name__ == '__main__': 57 | unittest.main() 58 | -------------------------------------------------------------------------------- /test/test_product_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.product_ import Product # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestProduct(unittest.TestCase): 22 | """Product unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.product_.Product() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_create(self): 31 | """Test case for create 32 | 33 | Create Product # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_delete(self): 38 | """Test case for delete 39 | 40 | Delete Product # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_fetch(self): 45 | """Test case for fetch 46 | 47 | Fetch Product # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_list(self): 52 | """Test case for list 53 | 54 | List Products # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_update(self): 59 | """Test case for update 60 | 61 | Update product # noqa: E501 62 | """ 63 | pass 64 | 65 | 66 | if __name__ == '__main__': 67 | unittest.main() 68 | -------------------------------------------------------------------------------- /test/test_product_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.product_create import ProductCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestProductCreate(unittest.TestCase): 22 | """ProductCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test ProductCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.product_create.ProductCreate() # noqa: E501 36 | if include_optional : 37 | return ProductCreate( 38 | name = '', 39 | description = '', 40 | price = 56, 41 | currency = '', 42 | limited = True, 43 | quantity = 56 44 | ) 45 | else : 46 | return ProductCreate( 47 | name = '', 48 | description = '', 49 | price = 56, 50 | currency = '', 51 | ) 52 | 53 | def testProductCreate(self): 54 | """Test ProductCreate""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_product_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.product_update import ProductUpdate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestProductUpdate(unittest.TestCase): 22 | """ProductUpdate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test ProductUpdate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.product_update.ProductUpdate() # noqa: E501 36 | if include_optional : 37 | return ProductUpdate( 38 | name = '', 39 | description = '', 40 | price = 56, 41 | currency = '', 42 | limited = True, 43 | quantity = 56 44 | ) 45 | else : 46 | return ProductUpdate( 47 | ) 48 | 49 | def testProductUpdate(self): 50 | """Test ProductUpdate""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_refund_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.refund_ import Refund # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestRefund(unittest.TestCase): 22 | """Refund unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.refund_.Refund() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_create(self): 31 | """Test case for create 32 | 33 | Create Refund # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_fetch(self): 38 | """Test case for fetch 39 | 40 | Fetch Refund # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_list(self): 45 | """Test case for list 46 | 47 | List Refunds # noqa: E501 48 | """ 49 | pass 50 | 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_refund_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.refund_create import RefundCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestRefundCreate(unittest.TestCase): 22 | """RefundCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test RefundCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.refund_create.RefundCreate() # noqa: E501 36 | if include_optional : 37 | return RefundCreate( 38 | transaction = '', 39 | amount = 56, 40 | currency = '', 41 | customer_note = '', 42 | merchant_note = '' 43 | ) 44 | else : 45 | return RefundCreate( 46 | transaction = '', 47 | ) 48 | 49 | def testRefundCreate(self): 50 | """Test RefundCreate""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.response import Response # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestResponse(unittest.TestCase): 22 | """Response unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test Response 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.response.Response() # noqa: E501 36 | if include_optional : 37 | return Response( 38 | status = True, 39 | message = '', 40 | data = None 41 | ) 42 | else : 43 | return Response( 44 | ) 45 | 46 | def testResponse(self): 47 | """Test Response""" 48 | inst_req_only = self.make_instance(include_optional=False) 49 | inst_req_and_optional = self.make_instance(include_optional=True) 50 | 51 | if __name__ == '__main__': 52 | unittest.main() 53 | -------------------------------------------------------------------------------- /test/test_settlement_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.settlement_ import Settlement # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestSettlement(unittest.TestCase): 22 | """Settlement unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.settlement_.Settlement() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_fetch(self): 31 | """Test case for fetch 32 | 33 | Fetch Settlements # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_transaction(self): 38 | """Test case for transaction 39 | 40 | Settlement Transactions # noqa: E501 41 | """ 42 | pass 43 | 44 | 45 | if __name__ == '__main__': 46 | unittest.main() 47 | -------------------------------------------------------------------------------- /test/test_split_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.split_ import Split # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestSplit(unittest.TestCase): 22 | """Split unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.split_.Split() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_add_subaccount(self): 31 | """Test case for add_subaccount 32 | 33 | Add Subaccount to Split # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_create(self): 38 | """Test case for create 39 | 40 | Create Split # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_fetch(self): 45 | """Test case for fetch 46 | 47 | Fetch Split # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_list(self): 52 | """Test case for list 53 | 54 | List/Search Splits # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_remove_subaccount(self): 59 | """Test case for remove_subaccount 60 | 61 | Remove Subaccount from split # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_update(self): 66 | """Test case for update 67 | 68 | Update Split # noqa: E501 69 | """ 70 | pass 71 | 72 | 73 | if __name__ == '__main__': 74 | unittest.main() 75 | -------------------------------------------------------------------------------- /test/test_split_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.split_create import SplitCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestSplitCreate(unittest.TestCase): 22 | """SplitCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test SplitCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.split_create.SplitCreate() # noqa: E501 36 | if include_optional : 37 | return SplitCreate( 38 | name = '', 39 | type = '', 40 | subaccounts = [ 41 | paystack.models.split_subaccounts.SplitSubaccounts( 42 | subaccount = '', 43 | share = '', ) 44 | ], 45 | currency = '', 46 | bearer_type = '', 47 | bearer_subaccount = '' 48 | ) 49 | else : 50 | return SplitCreate( 51 | name = '', 52 | type = '', 53 | subaccounts = [ 54 | paystack.models.split_subaccounts.SplitSubaccounts( 55 | subaccount = '', 56 | share = '', ) 57 | ], 58 | currency = '', 59 | ) 60 | 61 | def testSplitCreate(self): 62 | """Test SplitCreate""" 63 | inst_req_only = self.make_instance(include_optional=False) 64 | inst_req_and_optional = self.make_instance(include_optional=True) 65 | 66 | if __name__ == '__main__': 67 | unittest.main() 68 | -------------------------------------------------------------------------------- /test/test_split_subaccounts.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.split_subaccounts import SplitSubaccounts # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestSplitSubaccounts(unittest.TestCase): 22 | """SplitSubaccounts unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test SplitSubaccounts 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.split_subaccounts.SplitSubaccounts() # noqa: E501 36 | if include_optional : 37 | return SplitSubaccounts( 38 | subaccount = '', 39 | share = '' 40 | ) 41 | else : 42 | return SplitSubaccounts( 43 | ) 44 | 45 | def testSplitSubaccounts(self): 46 | """Test SplitSubaccounts""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | if __name__ == '__main__': 51 | unittest.main() 52 | -------------------------------------------------------------------------------- /test/test_split_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.split_update import SplitUpdate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestSplitUpdate(unittest.TestCase): 22 | """SplitUpdate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test SplitUpdate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.split_update.SplitUpdate() # noqa: E501 36 | if include_optional : 37 | return SplitUpdate( 38 | name = '', 39 | active = True, 40 | bearer_type = '', 41 | bearer_subaccount = '' 42 | ) 43 | else : 44 | return SplitUpdate( 45 | ) 46 | 47 | def testSplitUpdate(self): 48 | """Test SplitUpdate""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_subaccount_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.subaccount_ import Subaccount # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestSubaccount(unittest.TestCase): 22 | """Subaccount unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.subaccount_.Subaccount() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_create(self): 31 | """Test case for create 32 | 33 | Create Subaccount # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_fetch(self): 38 | """Test case for fetch 39 | 40 | Fetch Subaccount # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_list(self): 45 | """Test case for list 46 | 47 | List Subaccounts # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_update(self): 52 | """Test case for update 53 | 54 | Update Subaccount # noqa: E501 55 | """ 56 | pass 57 | 58 | 59 | if __name__ == '__main__': 60 | unittest.main() 61 | -------------------------------------------------------------------------------- /test/test_subaccount_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.subaccount_create import SubaccountCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestSubaccountCreate(unittest.TestCase): 22 | """SubaccountCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test SubaccountCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.subaccount_create.SubaccountCreate() # noqa: E501 36 | if include_optional : 37 | return SubaccountCreate( 38 | business_name = '', 39 | settlement_bank = '', 40 | account_number = '', 41 | percentage_charge = 1.337, 42 | description = '', 43 | primary_contact_email = '', 44 | primary_contact_name = '', 45 | primary_contact_phone = '', 46 | metadata = '' 47 | ) 48 | else : 49 | return SubaccountCreate( 50 | business_name = '', 51 | settlement_bank = '', 52 | account_number = '', 53 | percentage_charge = 1.337, 54 | ) 55 | 56 | def testSubaccountCreate(self): 57 | """Test SubaccountCreate""" 58 | inst_req_only = self.make_instance(include_optional=False) 59 | inst_req_and_optional = self.make_instance(include_optional=True) 60 | 61 | if __name__ == '__main__': 62 | unittest.main() 63 | -------------------------------------------------------------------------------- /test/test_subaccount_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.subaccount_update import SubaccountUpdate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestSubaccountUpdate(unittest.TestCase): 22 | """SubaccountUpdate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test SubaccountUpdate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.subaccount_update.SubaccountUpdate() # noqa: E501 36 | if include_optional : 37 | return SubaccountUpdate( 38 | business_name = '', 39 | settlement_bank = '', 40 | account_number = '', 41 | active = True, 42 | percentage_charge = 1.337, 43 | description = '', 44 | primary_contact_email = '', 45 | primary_contact_name = '', 46 | primary_contact_phone = '', 47 | metadata = '' 48 | ) 49 | else : 50 | return SubaccountUpdate( 51 | ) 52 | 53 | def testSubaccountUpdate(self): 54 | """Test SubaccountUpdate""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_subscription_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.subscription_ import Subscription # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestSubscription(unittest.TestCase): 22 | """Subscription unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.subscription_.Subscription() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_create(self): 31 | """Test case for create 32 | 33 | Create Subscription # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_disable(self): 38 | """Test case for disable 39 | 40 | Disable Subscription # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_enable(self): 45 | """Test case for enable 46 | 47 | Enable Subscription # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_fetch(self): 52 | """Test case for fetch 53 | 54 | Fetch Subscription # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_list(self): 59 | """Test case for list 60 | 61 | List Subscriptions # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_manage_email(self): 66 | """Test case for manage_email 67 | 68 | Send Update Subscription Link # noqa: E501 69 | """ 70 | pass 71 | 72 | def test_manage_link(self): 73 | """Test case for manage_link 74 | 75 | Generate Update Subscription Link # noqa: E501 76 | """ 77 | pass 78 | 79 | 80 | if __name__ == '__main__': 81 | unittest.main() 82 | -------------------------------------------------------------------------------- /test/test_subscription_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.subscription_create import SubscriptionCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestSubscriptionCreate(unittest.TestCase): 22 | """SubscriptionCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test SubscriptionCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.subscription_create.SubscriptionCreate() # noqa: E501 36 | if include_optional : 37 | return SubscriptionCreate( 38 | customer = '', 39 | plan = '', 40 | authorization = '', 41 | start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') 42 | ) 43 | else : 44 | return SubscriptionCreate( 45 | customer = '', 46 | plan = '', 47 | ) 48 | 49 | def testSubscriptionCreate(self): 50 | """Test SubscriptionCreate""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_subscription_toggle.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.subscription_toggle import SubscriptionToggle # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestSubscriptionToggle(unittest.TestCase): 22 | """SubscriptionToggle unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test SubscriptionToggle 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.subscription_toggle.SubscriptionToggle() # noqa: E501 36 | if include_optional : 37 | return SubscriptionToggle( 38 | code = '', 39 | token = '' 40 | ) 41 | else : 42 | return SubscriptionToggle( 43 | code = '', 44 | token = '', 45 | ) 46 | 47 | def testSubscriptionToggle(self): 48 | """Test SubscriptionToggle""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_transaction_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.transaction_ import Transaction # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestTransaction(unittest.TestCase): 22 | """Transaction unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.transaction_.Transaction() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_charge_authorization(self): 31 | """Test case for charge_authorization 32 | 33 | Charge Authorization # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_check_authorization(self): 38 | """Test case for check_authorization 39 | 40 | Check Authorization # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_download(self): 45 | """Test case for download 46 | 47 | Export Transactions # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_event(self): 52 | """Test case for event 53 | 54 | Get Transaction Event # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_fetch(self): 59 | """Test case for fetch 60 | 61 | Fetch Transaction # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_initialize(self): 66 | """Test case for initialize 67 | 68 | Initialize Transaction # noqa: E501 69 | """ 70 | pass 71 | 72 | def test_list(self): 73 | """Test case for list 74 | 75 | List Transactions # noqa: E501 76 | """ 77 | pass 78 | 79 | def test_partial_debit(self): 80 | """Test case for partial_debit 81 | 82 | Partial Debit # noqa: E501 83 | """ 84 | pass 85 | 86 | def test_session(self): 87 | """Test case for session 88 | 89 | Get Transaction Session # noqa: E501 90 | """ 91 | pass 92 | 93 | def test_timeline(self): 94 | """Test case for timeline 95 | 96 | Fetch Transaction Timeline # noqa: E501 97 | """ 98 | pass 99 | 100 | def test_totals(self): 101 | """Test case for totals 102 | 103 | Transaction Totals # noqa: E501 104 | """ 105 | pass 106 | 107 | def test_verify(self): 108 | """Test case for verify 109 | 110 | Verify Transaction # noqa: E501 111 | """ 112 | pass 113 | 114 | 115 | if __name__ == '__main__': 116 | unittest.main() 117 | -------------------------------------------------------------------------------- /test/test_transaction_charge_authorization.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transaction_charge_authorization import TransactionChargeAuthorization # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransactionChargeAuthorization(unittest.TestCase): 22 | """TransactionChargeAuthorization unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransactionChargeAuthorization 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transaction_charge_authorization.TransactionChargeAuthorization() # noqa: E501 36 | if include_optional : 37 | return TransactionChargeAuthorization( 38 | email = '', 39 | amount = 56, 40 | authorization_code = '', 41 | reference = '', 42 | currency = '', 43 | metadata = '', 44 | split_code = '', 45 | subaccount = '', 46 | transaction_charge = '', 47 | bearer = '', 48 | queue = True 49 | ) 50 | else : 51 | return TransactionChargeAuthorization( 52 | email = '', 53 | amount = 56, 54 | authorization_code = '', 55 | ) 56 | 57 | def testTransactionChargeAuthorization(self): 58 | """Test TransactionChargeAuthorization""" 59 | inst_req_only = self.make_instance(include_optional=False) 60 | inst_req_and_optional = self.make_instance(include_optional=True) 61 | 62 | if __name__ == '__main__': 63 | unittest.main() 64 | -------------------------------------------------------------------------------- /test/test_transaction_check_authorization.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transaction_check_authorization import TransactionCheckAuthorization # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransactionCheckAuthorization(unittest.TestCase): 22 | """TransactionCheckAuthorization unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransactionCheckAuthorization 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transaction_check_authorization.TransactionCheckAuthorization() # noqa: E501 36 | if include_optional : 37 | return TransactionCheckAuthorization( 38 | email = '', 39 | amount = 56, 40 | authorization_code = '', 41 | currency = '' 42 | ) 43 | else : 44 | return TransactionCheckAuthorization( 45 | email = '', 46 | amount = 56, 47 | ) 48 | 49 | def testTransactionCheckAuthorization(self): 50 | """Test TransactionCheckAuthorization""" 51 | inst_req_only = self.make_instance(include_optional=False) 52 | inst_req_and_optional = self.make_instance(include_optional=True) 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /test/test_transaction_initialize.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transaction_initialize import TransactionInitialize # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransactionInitialize(unittest.TestCase): 22 | """TransactionInitialize unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransactionInitialize 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transaction_initialize.TransactionInitialize() # noqa: E501 36 | if include_optional : 37 | return TransactionInitialize( 38 | email = '', 39 | amount = 56, 40 | currency = '', 41 | reference = '', 42 | callback_url = '', 43 | plan = '', 44 | invoice_limit = 56, 45 | metadata = '', 46 | channels = [ 47 | '' 48 | ], 49 | split_code = '', 50 | subaccount = '', 51 | transaction_charge = '', 52 | bearer = '' 53 | ) 54 | else : 55 | return TransactionInitialize( 56 | email = '', 57 | amount = 56, 58 | ) 59 | 60 | def testTransactionInitialize(self): 61 | """Test TransactionInitialize""" 62 | inst_req_only = self.make_instance(include_optional=False) 63 | inst_req_and_optional = self.make_instance(include_optional=True) 64 | 65 | if __name__ == '__main__': 66 | unittest.main() 67 | -------------------------------------------------------------------------------- /test/test_transaction_partial_debit.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transaction_partial_debit import TransactionPartialDebit # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransactionPartialDebit(unittest.TestCase): 22 | """TransactionPartialDebit unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransactionPartialDebit 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transaction_partial_debit.TransactionPartialDebit() # noqa: E501 36 | if include_optional : 37 | return TransactionPartialDebit( 38 | email = '', 39 | amount = 56, 40 | authorization_code = '', 41 | currency = '', 42 | reference = '', 43 | at_least = '' 44 | ) 45 | else : 46 | return TransactionPartialDebit( 47 | email = '', 48 | amount = 56, 49 | authorization_code = '', 50 | currency = '', 51 | ) 52 | 53 | def testTransactionPartialDebit(self): 54 | """Test TransactionPartialDebit""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_transfer_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.transfer_ import Transfer # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestTransfer(unittest.TestCase): 22 | """Transfer unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.transfer_.Transfer() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_bulk(self): 31 | """Test case for bulk 32 | 33 | Initiate Bulk Transfer # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_disable_otp(self): 38 | """Test case for disable_otp 39 | 40 | Disable OTP requirement for Transfers # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_disable_otp_finalize(self): 45 | """Test case for disable_otp_finalize 46 | 47 | Finalize Disabling of OTP requirement for Transfers # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_download(self): 52 | """Test case for download 53 | 54 | Export Transfers # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_enable_otp(self): 59 | """Test case for enable_otp 60 | 61 | Enable OTP requirement for Transfers # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_fetch(self): 66 | """Test case for fetch 67 | 68 | Fetch Transfer # noqa: E501 69 | """ 70 | pass 71 | 72 | def test_finalize(self): 73 | """Test case for finalize 74 | 75 | Finalize Transfer # noqa: E501 76 | """ 77 | pass 78 | 79 | def test_initiate(self): 80 | """Test case for initiate 81 | 82 | Initiate Transfer # noqa: E501 83 | """ 84 | pass 85 | 86 | def test_list(self): 87 | """Test case for list 88 | 89 | List Transfers # noqa: E501 90 | """ 91 | pass 92 | 93 | def test_resend_otp(self): 94 | """Test case for resend_otp 95 | 96 | Resend OTP for Transfer # noqa: E501 97 | """ 98 | pass 99 | 100 | def test_verify(self): 101 | """Test case for verify 102 | 103 | Verify Transfer # noqa: E501 104 | """ 105 | pass 106 | 107 | 108 | if __name__ == '__main__': 109 | unittest.main() 110 | -------------------------------------------------------------------------------- /test/test_transfer_bulk.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transfer_bulk import TransferBulk # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransferBulk(unittest.TestCase): 22 | """TransferBulk unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransferBulk 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transfer_bulk.TransferBulk() # noqa: E501 36 | if include_optional : 37 | return TransferBulk( 38 | source = '', 39 | transfers = [ 40 | paystack.models.transfer_initiate.TransferInitiate( 41 | source = '', 42 | amount = '', 43 | recipient = '', 44 | reason = '', 45 | currency = '', 46 | reference = '', ) 47 | ] 48 | ) 49 | else : 50 | return TransferBulk( 51 | ) 52 | 53 | def testTransferBulk(self): 54 | """Test TransferBulk""" 55 | inst_req_only = self.make_instance(include_optional=False) 56 | inst_req_and_optional = self.make_instance(include_optional=True) 57 | 58 | if __name__ == '__main__': 59 | unittest.main() 60 | -------------------------------------------------------------------------------- /test/test_transfer_finalize.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transfer_finalize import TransferFinalize # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransferFinalize(unittest.TestCase): 22 | """TransferFinalize unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransferFinalize 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transfer_finalize.TransferFinalize() # noqa: E501 36 | if include_optional : 37 | return TransferFinalize( 38 | transfer_code = '', 39 | otp = '' 40 | ) 41 | else : 42 | return TransferFinalize( 43 | transfer_code = '', 44 | otp = '', 45 | ) 46 | 47 | def testTransferFinalize(self): 48 | """Test TransferFinalize""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_transfer_finalize_disable_otp.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transfer_finalize_disable_otp import TransferFinalizeDisableOTP # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransferFinalizeDisableOTP(unittest.TestCase): 22 | """TransferFinalizeDisableOTP unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransferFinalizeDisableOTP 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transfer_finalize_disable_otp.TransferFinalizeDisableOTP() # noqa: E501 36 | if include_optional : 37 | return TransferFinalizeDisableOTP( 38 | otp = '' 39 | ) 40 | else : 41 | return TransferFinalizeDisableOTP( 42 | otp = '', 43 | ) 44 | 45 | def testTransferFinalizeDisableOTP(self): 46 | """Test TransferFinalizeDisableOTP""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | if __name__ == '__main__': 51 | unittest.main() 52 | -------------------------------------------------------------------------------- /test/test_transfer_initiate.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transfer_initiate import TransferInitiate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransferInitiate(unittest.TestCase): 22 | """TransferInitiate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransferInitiate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transfer_initiate.TransferInitiate() # noqa: E501 36 | if include_optional : 37 | return TransferInitiate( 38 | source = '', 39 | amount = '', 40 | recipient = '', 41 | reason = '', 42 | currency = '', 43 | reference = '' 44 | ) 45 | else : 46 | return TransferInitiate( 47 | source = '', 48 | amount = '', 49 | recipient = '', 50 | ) 51 | 52 | def testTransferInitiate(self): 53 | """Test TransferInitiate""" 54 | inst_req_only = self.make_instance(include_optional=False) 55 | inst_req_and_optional = self.make_instance(include_optional=True) 56 | 57 | if __name__ == '__main__': 58 | unittest.main() 59 | -------------------------------------------------------------------------------- /test/test_transfer_recipient_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.transfer_recipient_ import TransferRecipient # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestTransferRecipient(unittest.TestCase): 22 | """TransferRecipient unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.transfer_recipient_.TransferRecipient() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_bulk(self): 31 | """Test case for bulk 32 | 33 | Bulk Create Transfer Recipient # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_create(self): 38 | """Test case for create 39 | 40 | Create Transfer Recipient # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_fetch(self): 45 | """Test case for fetch 46 | 47 | Fetch Transfer recipient # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_list(self): 52 | """Test case for list 53 | 54 | List Transfer Recipients # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_transferrecipient_code_delete(self): 59 | """Test case for transferrecipient_code_delete 60 | 61 | Delete Transfer Recipient # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_transferrecipient_code_put(self): 66 | """Test case for transferrecipient_code_put 67 | 68 | Update Transfer recipient # noqa: E501 69 | """ 70 | pass 71 | 72 | 73 | if __name__ == '__main__': 74 | unittest.main() 75 | -------------------------------------------------------------------------------- /test/test_transfer_recipient_bulk.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transfer_recipient_bulk import TransferRecipientBulk # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransferRecipientBulk(unittest.TestCase): 22 | """TransferRecipientBulk unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransferRecipientBulk 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transfer_recipient_bulk.TransferRecipientBulk() # noqa: E501 36 | if include_optional : 37 | return TransferRecipientBulk( 38 | batch = [ 39 | paystack.models.transfer_recipient_create.TransferRecipientCreate( 40 | type = '', 41 | name = '', 42 | account_number = '', 43 | bank_code = '', 44 | description = '', 45 | currency = '', 46 | authorization_code = '', 47 | metadata = '', ) 48 | ] 49 | ) 50 | else : 51 | return TransferRecipientBulk( 52 | batch = [ 53 | paystack.models.transfer_recipient_create.TransferRecipientCreate( 54 | type = '', 55 | name = '', 56 | account_number = '', 57 | bank_code = '', 58 | description = '', 59 | currency = '', 60 | authorization_code = '', 61 | metadata = '', ) 62 | ], 63 | ) 64 | 65 | def testTransferRecipientBulk(self): 66 | """Test TransferRecipientBulk""" 67 | inst_req_only = self.make_instance(include_optional=False) 68 | inst_req_and_optional = self.make_instance(include_optional=True) 69 | 70 | if __name__ == '__main__': 71 | unittest.main() 72 | -------------------------------------------------------------------------------- /test/test_transfer_recipient_create.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transfer_recipient_create import TransferRecipientCreate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransferRecipientCreate(unittest.TestCase): 22 | """TransferRecipientCreate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransferRecipientCreate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transfer_recipient_create.TransferRecipientCreate() # noqa: E501 36 | if include_optional : 37 | return TransferRecipientCreate( 38 | type = '', 39 | name = '', 40 | account_number = '', 41 | bank_code = '', 42 | description = '', 43 | currency = '', 44 | authorization_code = '', 45 | metadata = '' 46 | ) 47 | else : 48 | return TransferRecipientCreate( 49 | type = '', 50 | name = '', 51 | account_number = '', 52 | bank_code = '', 53 | ) 54 | 55 | def testTransferRecipientCreate(self): 56 | """Test TransferRecipientCreate""" 57 | inst_req_only = self.make_instance(include_optional=False) 58 | inst_req_and_optional = self.make_instance(include_optional=True) 59 | 60 | if __name__ == '__main__': 61 | unittest.main() 62 | -------------------------------------------------------------------------------- /test/test_transfer_recipient_update.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transfer_recipient_update import TransferRecipientUpdate # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransferRecipientUpdate(unittest.TestCase): 22 | """TransferRecipientUpdate unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransferRecipientUpdate 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transfer_recipient_update.TransferRecipientUpdate() # noqa: E501 36 | if include_optional : 37 | return TransferRecipientUpdate( 38 | name = '', 39 | email = '' 40 | ) 41 | else : 42 | return TransferRecipientUpdate( 43 | ) 44 | 45 | def testTransferRecipientUpdate(self): 46 | """Test TransferRecipientUpdate""" 47 | inst_req_only = self.make_instance(include_optional=False) 48 | inst_req_and_optional = self.make_instance(include_optional=True) 49 | 50 | if __name__ == '__main__': 51 | unittest.main() 52 | -------------------------------------------------------------------------------- /test/test_transfer_resend_otp.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.transfer_resend_otp import TransferResendOTP # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestTransferResendOTP(unittest.TestCase): 22 | """TransferResendOTP unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test TransferResendOTP 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.transfer_resend_otp.TransferResendOTP() # noqa: E501 36 | if include_optional : 37 | return TransferResendOTP( 38 | transfer_code = '', 39 | reason = '' 40 | ) 41 | else : 42 | return TransferResendOTP( 43 | transfer_code = '', 44 | reason = '', 45 | ) 46 | 47 | def testTransferResendOTP(self): 48 | """Test TransferResendOTP""" 49 | inst_req_only = self.make_instance(include_optional=False) 50 | inst_req_and_optional = self.make_instance(include_optional=True) 51 | 52 | if __name__ == '__main__': 53 | unittest.main() 54 | -------------------------------------------------------------------------------- /test/test_ussd.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.ussd import USSD # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestUSSD(unittest.TestCase): 22 | """USSD unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test USSD 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.ussd.USSD() # noqa: E501 36 | if include_optional : 37 | return USSD( 38 | type = '' 39 | ) 40 | else : 41 | return USSD( 42 | ) 43 | 44 | def testUSSD(self): 45 | """Test USSD""" 46 | inst_req_only = self.make_instance(include_optional=False) 47 | inst_req_and_optional = self.make_instance(include_optional=True) 48 | 49 | if __name__ == '__main__': 50 | unittest.main() 51 | -------------------------------------------------------------------------------- /test/test_verification_.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | 16 | import paystack 17 | from paystack.api.verification_ import Verification # noqa: E501 18 | from paystack.rest import ApiException 19 | 20 | 21 | class TestVerification(unittest.TestCase): 22 | """Verification unit test stubs""" 23 | 24 | def setUp(self): 25 | self.api = paystack.api.verification_.Verification() # noqa: E501 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def test_avs(self): 31 | """Test case for avs 32 | 33 | List States (AVS) # noqa: E501 34 | """ 35 | pass 36 | 37 | def test_bvn_match(self): 38 | """Test case for bvn_match 39 | 40 | Match Service # noqa: E501 41 | """ 42 | pass 43 | 44 | def test_fetch_banks(self): 45 | """Test case for fetch_banks 46 | 47 | Fetch Banks # noqa: E501 48 | """ 49 | pass 50 | 51 | def test_list_countries(self): 52 | """Test case for list_countries 53 | 54 | List Countries # noqa: E501 55 | """ 56 | pass 57 | 58 | def test_resolve_account_number(self): 59 | """Test case for resolve_account_number 60 | 61 | Resolve Account Number # noqa: E501 62 | """ 63 | pass 64 | 65 | def test_resolve_bvn(self): 66 | """Test case for resolve_bvn 67 | 68 | Resolve BVN # noqa: E501 69 | """ 70 | pass 71 | 72 | def test_resolve_card_bin(self): 73 | """Test case for resolve_card_bin 74 | 75 | Resolve Card BIN # noqa: E501 76 | """ 77 | pass 78 | 79 | 80 | if __name__ == '__main__': 81 | unittest.main() 82 | -------------------------------------------------------------------------------- /test/test_verification_bvn_match.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Paystack 5 | 6 | The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | """ 10 | 11 | 12 | from __future__ import absolute_import 13 | 14 | import unittest 15 | import datetime 16 | 17 | import paystack 18 | from paystack.models.verification_bvn_match import VerificationBVNMatch # noqa: E501 19 | from paystack.rest import ApiException 20 | 21 | class TestVerificationBVNMatch(unittest.TestCase): 22 | """VerificationBVNMatch unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def make_instance(self, include_optional): 31 | """Test VerificationBVNMatch 32 | include_option is a boolean, when False only required 33 | params are included, when True both required and 34 | optional params are included """ 35 | # model = paystack.models.verification_bvn_match.VerificationBVNMatch() # noqa: E501 36 | if include_optional : 37 | return VerificationBVNMatch( 38 | account_number = '', 39 | bank_code = 56, 40 | bvn = '', 41 | first_name = '', 42 | middle_name = '', 43 | last_name = '' 44 | ) 45 | else : 46 | return VerificationBVNMatch( 47 | account_number = '', 48 | bank_code = 56, 49 | bvn = '', 50 | ) 51 | 52 | def testVerificationBVNMatch(self): 53 | """Test VerificationBVNMatch""" 54 | inst_req_only = self.make_instance(include_optional=False) 55 | inst_req_and_optional = self.make_instance(include_optional=True) 56 | 57 | if __name__ == '__main__': 58 | unittest.main() 59 | -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist = py27, py3 3 | 4 | [testenv] 5 | deps=-r{toxinidir}/requirements.txt 6 | -r{toxinidir}/test-requirements.txt 7 | 8 | commands= 9 | pytest --cov=paystack 10 | --------------------------------------------------------------------------------