diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 97a825d..49aef56 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -16,9 +16,9 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 40a5ed1..c836b9a 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -22,3 +22,4 @@ # Then explicitly reverse the ignore rule for a single file: #!docs/README.md README.md +.gitignore diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index e7c4828..7e4c385 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,8 +1,6 @@ .github/workflows/python.yml -.gitignore .gitlab-ci.yml .travis.yml -README.md docs/AutoPayEnrollmentRequest.md docs/AutoPayEnrollmentResponse.md docs/BankDetailDto.md @@ -128,6 +126,7 @@ docs/RefundEligibility.md docs/RemittanceDataDto.md docs/ReportDownloadRequest.md docs/RowDto.md +docs/SecureACHValidationApi.md docs/SecureAutopayEnrollmentApi.md docs/SecureBatchExecuteRequest.md docs/SecureCancelledTransactionResponse.md @@ -172,6 +171,7 @@ docs/SecureVendorStatusRequestDTO.md docs/SecureVendorTimelineRequestDTO.md docs/SecureVendorUpdateRequestDTO.md docs/SecureVendorUpdateRequestDTORemittanceAddress.md +docs/SecureVerifyBankAccountRequestDTO.md docs/SecureVoidsApi.md docs/TokenLinkResponse.md docs/TokenLinkResponseDataInner.md @@ -183,12 +183,10 @@ docs/TransactionDetailResponseSplitsInner.md docs/TransactionDetailResponseTenderInfo.md docs/TransactionPaymentResponse.md docs/TransactionPaymentResponseAchTenderInfo.md -docs/TransactionPaymentResponseAchTenderInfoCommissionType.md docs/TransactionPaymentResponseBillingContact.md docs/TransactionPaymentResponseBillingContactAddress.md docs/TransactionPaymentResponseBillingContactName.md docs/TransactionPaymentResponseCcTenderInfo.md -docs/TransactionPaymentResponseRefundOrigin.md docs/TransactionPaymentResponseRefundTransactions.md docs/TransactionPaymentResponseRefundTransactionsDataInner.md docs/TransactionPaymentResponseTransactionEntitySplitResponsesInner.md @@ -203,9 +201,11 @@ docs/VendorResponseDTORemittanceAddress.md docs/VendorResponseDTOTemplate.md docs/VendorResponseDTOVerificationResultsInner.md docs/VendorTimelineResponseListInner.md +docs/VerifyBankAccountResponse.md git_push.sh openapi_client/__init__.py openapi_client/api/__init__.py +openapi_client/api/secure_ach_validation_api.py openapi_client/api/secure_autopay_enrollment_api.py openapi_client/api/secure_embedded_premium_finance_api.py openapi_client/api/secure_embedded_premium_finance_endorsements_api.py @@ -381,6 +381,7 @@ openapi_client/models/secure_vendor_status_request_dto.py openapi_client/models/secure_vendor_timeline_request_dto.py openapi_client/models/secure_vendor_update_request_dto.py openapi_client/models/secure_vendor_update_request_dto_remittance_address.py +openapi_client/models/secure_verify_bank_account_request_dto.py openapi_client/models/token_link_response.py openapi_client/models/token_link_response_data_inner.py openapi_client/models/token_link_secure_request.py @@ -391,12 +392,10 @@ openapi_client/models/transaction_detail_response_splits_inner.py openapi_client/models/transaction_detail_response_tender_info.py openapi_client/models/transaction_payment_response.py openapi_client/models/transaction_payment_response_ach_tender_info.py -openapi_client/models/transaction_payment_response_ach_tender_info_commission_type.py openapi_client/models/transaction_payment_response_billing_contact.py openapi_client/models/transaction_payment_response_billing_contact_address.py openapi_client/models/transaction_payment_response_billing_contact_name.py openapi_client/models/transaction_payment_response_cc_tender_info.py -openapi_client/models/transaction_payment_response_refund_origin.py openapi_client/models/transaction_payment_response_refund_transactions.py openapi_client/models/transaction_payment_response_refund_transactions_data_inner.py openapi_client/models/transaction_payment_response_transaction_entity_split_responses_inner.py @@ -411,6 +410,7 @@ openapi_client/models/vendor_response_dto_remittance_address.py openapi_client/models/vendor_response_dto_template.py openapi_client/models/vendor_response_dto_verification_results_inner.py openapi_client/models/vendor_timeline_response_list_inner.py +openapi_client/models/verify_bank_account_response.py openapi_client/py.typed openapi_client/rest.py pyproject.toml @@ -419,12 +419,20 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_auto_pay_enrollment_request.py -test/test_auto_pay_enrollment_response.py -test/test_outbound_payment_image_response_dto.py -test/test_payment_link_request_reference_data_list_inner.py -test/test_pf_lite_secure_quote_request_agent.py -test/test_pf_lite_secure_quote_request_agent_address.py +test/test_secure_ach_validation_api.py test/test_secure_autopay_enrollment_api.py -test/test_secure_pf_quote_booking_request.py +test/test_secure_embedded_premium_finance_api.py +test/test_secure_embedded_premium_finance_endorsements_api.py +test/test_secure_outbound_payments_api.py +test/test_secure_payment_batching_api.py +test/test_secure_payment_intent_api.py +test/test_secure_payment_links_api.py +test/test_secure_payments_api.py +test/test_secure_premium_finance_lite_api.py +test/test_secure_refunds_api.py +test/test_secure_reports_api.py +test/test_secure_token_links_api.py +test/test_secure_token_management_api.py +test/test_secure_vendor_management_api.py +test/test_secure_voids_api.py tox.ini diff --git a/docs/MerchantTransactionEntityResponseDataInner.md b/docs/MerchantTransactionEntityResponseDataInner.md index 90313aa..28065e7 100644 --- a/docs/MerchantTransactionEntityResponseDataInner.md +++ b/docs/MerchantTransactionEntityResponseDataInner.md @@ -58,7 +58,7 @@ Name | Type | Description | Notes **adjustment_display_name** | **str** | | [optional] **adjustment_descriptor_message** | **str** | | [optional] **payment_adjustment_type** | **str** | | [optional] -**commission_type** | [**TransactionPaymentResponseAchTenderInfoCommissionType**](TransactionPaymentResponseAchTenderInfoCommissionType.md) | | [optional] +**commission_type** | **str** | | [optional] **commission_value** | **float** | | [optional] **commission_fixed_value** | **float** | | [optional] **account_token** | **str** | | [optional] diff --git a/docs/PaymentLinkRequest.md b/docs/PaymentLinkRequest.md index d745552..7baa326 100644 --- a/docs/PaymentLinkRequest.md +++ b/docs/PaymentLinkRequest.md @@ -25,8 +25,8 @@ Name | Type | Description | Notes **splits** | [**List[PaymentIntentRequestSplitsInner]**](PaymentIntentRequestSplitsInner.md) | | [optional] **quote_key** | **str** | | [optional] **account_number** | **str** | | [optional] -**reference_type** | **str** | | [optional] -**reference_number** | **str** | | [optional] +**reference_type** | **str** | | +**reference_number** | **str** | | **reference_key** | **str** | | [optional] **reference_data_list** | [**List[PaymentLinkRequestReferenceDataListInner]**](PaymentLinkRequestReferenceDataListInner.md) | | **enable_premium_finance** | **bool** | | [optional] diff --git a/docs/SecureACHValidationApi.md b/docs/SecureACHValidationApi.md new file mode 100644 index 0000000..2887412 --- /dev/null +++ b/docs/SecureACHValidationApi.md @@ -0,0 +1,87 @@ +# openapi_client.SecureACHValidationApi + +All URIs are relative to *https://api.anddone.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**utilityapi_secure_verifybankaccounts_post**](SecureACHValidationApi.md#utilityapi_secure_verifybankaccounts_post) | **POST** /utilityapi/secure/verifybankaccounts | This API verifies bank account using secure ACH validation + + +# **utilityapi_secure_verifybankaccounts_post** +> VerifyBankAccountResponse utilityapi_secure_verifybankaccounts_post(x_api_key, x_app_key, x_version, origin, secure_verify_bank_account_request_dto) + +This API verifies bank account using secure ACH validation + +### Example + + +```python +import openapi_client +from openapi_client.models.secure_verify_bank_account_request_dto import SecureVerifyBankAccountRequestDTO +from openapi_client.models.verify_bank_account_response import VerifyBankAccountResponse +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.anddone.com +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://api.anddone.com" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.SecureACHValidationApi(api_client) + x_api_key = 'x_api_key_example' # str | an authorization header + x_app_key = 'x_app_key_example' # str | an authorization header + x_version = 3.4 # float | x-version + origin = 'origin_example' # str | origin + secure_verify_bank_account_request_dto = openapi_client.SecureVerifyBankAccountRequestDTO() # SecureVerifyBankAccountRequestDTO | SecureVerifyBankAccountRequestDTO + + try: + # This API verifies bank account using secure ACH validation + api_response = api_instance.utilityapi_secure_verifybankaccounts_post(x_api_key, x_app_key, x_version, origin, secure_verify_bank_account_request_dto) + print("The response of SecureACHValidationApi->utilityapi_secure_verifybankaccounts_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SecureACHValidationApi->utilityapi_secure_verifybankaccounts_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **x_api_key** | **str**| an authorization header | + **x_app_key** | **str**| an authorization header | + **x_version** | **float**| x-version | + **origin** | **str**| origin | + **secure_verify_bank_account_request_dto** | [**SecureVerifyBankAccountRequestDTO**](SecureVerifyBankAccountRequestDTO.md)| SecureVerifyBankAccountRequestDTO | + +### Return type + +[**VerifyBankAccountResponse**](VerifyBankAccountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful operation | - | +**400** | Bad Request | - | +**404** | Not Found | - | +**500** | Internal Server Error | - | + +[[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) + diff --git a/docs/SecureAutopayEnrollmentApi.md b/docs/SecureAutopayEnrollmentApi.md index 912e926..2123e51 100644 --- a/docs/SecureAutopayEnrollmentApi.md +++ b/docs/SecureAutopayEnrollmentApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureAutopayEnrollmentApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,10 +22,10 @@ from openapi_client.models.auto_pay_enrollment_response import AutoPayEnrollment from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecureEmbeddedPremiumFinanceApi.md b/docs/SecureEmbeddedPremiumFinanceApi.md index 6419902..9ee8bce 100644 --- a/docs/SecureEmbeddedPremiumFinanceApi.md +++ b/docs/SecureEmbeddedPremiumFinanceApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureEmbeddedPremiumFinanceApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -28,10 +28,10 @@ from openapi_client.models.pf_policy_update_response import PFPolicyUpdateRespon from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -106,10 +106,10 @@ from openapi_client.models.pf_update_pfa_response import PFUpdatePFAResponse from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -183,10 +183,10 @@ from openapi_client.models.pf_quote_esign_request import PFQuoteEsignRequest from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -259,10 +259,10 @@ from openapi_client.models.quote_request import QuoteRequest from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -337,10 +337,10 @@ from openapi_client.models.quote_response import QuoteResponse from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -415,10 +415,10 @@ from openapi_client.models.quote_response import QuoteResponse from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -492,10 +492,10 @@ from openapi_client.models.pf_retrieve_pfa_request_dto import PFRetrievePFAReque from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecureEmbeddedPremiumFinanceEndorsementsApi.md b/docs/SecureEmbeddedPremiumFinanceEndorsementsApi.md index 3221b53..16703ff 100644 --- a/docs/SecureEmbeddedPremiumFinanceEndorsementsApi.md +++ b/docs/SecureEmbeddedPremiumFinanceEndorsementsApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureEmbeddedPremiumFinanceEndorsementsApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -24,10 +24,10 @@ from openapi_client.models.pf_check_endorsements_response import PFCheckEndorsem from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -102,10 +102,10 @@ from openapi_client.models.secure_pf_quote_booking_request import SecurePFQuoteB from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -180,10 +180,10 @@ from openapi_client.models.pf_endorsement_response import PFEndorsementResponse from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecureOutboundPaymentsApi.md b/docs/SecureOutboundPaymentsApi.md index 97e1b48..cfa5875 100644 --- a/docs/SecureOutboundPaymentsApi.md +++ b/docs/SecureOutboundPaymentsApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureOutboundPaymentsApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -27,10 +27,10 @@ from openapi_client.models.payment_time_line_request_dto import PaymentTimeLineR from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -40,7 +40,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureOutboundPaymentsApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin payment_time_line_request_dto = openapi_client.PaymentTimeLineRequestDto() # PaymentTimeLineRequestDto | PaymentTimeLineRequestDto @@ -62,7 +62,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **payment_time_line_request_dto** | [**PaymentTimeLineRequestDto**](PaymentTimeLineRequestDto.md)| PaymentTimeLineRequestDto | @@ -104,10 +104,10 @@ from openapi_client.models.cancel_payment_request_dto import CancelPaymentReques from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -117,7 +117,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureOutboundPaymentsApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin cancel_payment_request_dto = openapi_client.CancelPaymentRequestDTO() # CancelPaymentRequestDTO | CancelPaymentRequestDTO @@ -137,7 +137,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **cancel_payment_request_dto** | [**CancelPaymentRequestDTO**](CancelPaymentRequestDTO.md)| CancelPaymentRequestDTO | @@ -179,10 +179,10 @@ from openapi_client.models.payment_request_detail_dto import PaymentRequestDetai from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -192,7 +192,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureOutboundPaymentsApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin payment_request_detail_dto = openapi_client.PaymentRequestDetailDTO() # PaymentRequestDetailDTO | PaymentRequestDetailDTO @@ -214,7 +214,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **payment_request_detail_dto** | [**PaymentRequestDetailDTO**](PaymentRequestDetailDTO.md)| PaymentRequestDetailDTO | @@ -256,10 +256,10 @@ from openapi_client.models.payment_time_line_request_dto import PaymentTimeLineR from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -269,7 +269,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureOutboundPaymentsApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin payment_time_line_request_dto = openapi_client.PaymentTimeLineRequestDto() # PaymentTimeLineRequestDto | OutboundPaymentImageRequestDto @@ -291,7 +291,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **payment_time_line_request_dto** | [**PaymentTimeLineRequestDto**](PaymentTimeLineRequestDto.md)| OutboundPaymentImageRequestDto | @@ -334,10 +334,10 @@ from openapi_client.models.payment_response_dto import PaymentResponseDto from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -347,7 +347,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureOutboundPaymentsApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin payment_request_dto = openapi_client.PaymentRequestDto() # PaymentRequestDto | PaymentRequestDto @@ -369,7 +369,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **payment_request_dto** | [**PaymentRequestDto**](PaymentRequestDto.md)| PaymentRequestDto | @@ -411,10 +411,10 @@ from openapi_client.models.page_payment_list_response_dto import PagePaymentList from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -424,7 +424,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureOutboundPaymentsApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin vendor_id = 'vendor_id_example' # str | sets vendorId (optional) payment_based_id = 'payment_based_id_example' # str | sets paymentBasedId (optional) @@ -461,7 +461,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **vendor_id** | **str**| sets vendorId | [optional] **payment_based_id** | **str**| sets paymentBasedId | [optional] diff --git a/docs/SecurePaymentBatchingApi.md b/docs/SecurePaymentBatchingApi.md index 33f9729..f65a692 100644 --- a/docs/SecurePaymentBatchingApi.md +++ b/docs/SecurePaymentBatchingApi.md @@ -1,6 +1,6 @@ # openapi_client.SecurePaymentBatchingApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -26,10 +26,10 @@ from openapi_client.models.secure_payment_batch_details_request import SecurePay from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -103,10 +103,10 @@ from openapi_client.models.secure_batch_execute_request import SecureBatchExecut from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -178,10 +178,10 @@ from openapi_client.models.payment_batch_response import PaymentBatchResponse from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -262,10 +262,10 @@ from openapi_client.models.secure_payment_batch_details_request import SecurePay from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -339,10 +339,10 @@ from openapi_client.models.payment_batch_cancellation_request import PaymentBatc from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecurePaymentIntentApi.md b/docs/SecurePaymentIntentApi.md index 9533290..007894f 100644 --- a/docs/SecurePaymentIntentApi.md +++ b/docs/SecurePaymentIntentApi.md @@ -1,6 +1,6 @@ # openapi_client.SecurePaymentIntentApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,10 +22,10 @@ from openapi_client.models.payment_intent_expires_response import PaymentIntentE from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -99,10 +99,10 @@ from openapi_client.models.payment_intent_response import PaymentIntentResponse from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecurePaymentLinksApi.md b/docs/SecurePaymentLinksApi.md index 0c0a9fb..5012f90 100644 --- a/docs/SecurePaymentLinksApi.md +++ b/docs/SecurePaymentLinksApi.md @@ -1,6 +1,6 @@ # openapi_client.SecurePaymentLinksApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,10 +25,10 @@ from openapi_client.models.secure_payment_link_request import SecurePaymentLinkR from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -103,10 +103,10 @@ from openapi_client.models.secure_payment_link_request import SecurePaymentLinkR from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -180,10 +180,10 @@ from openapi_client.models.secure_update_payment_link_request import SecureUpdat from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -260,10 +260,10 @@ from openapi_client.models.payment_link_response import PaymentLinkResponse from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecurePaymentsApi.md b/docs/SecurePaymentsApi.md index fc561e2..7d42c6c 100644 --- a/docs/SecurePaymentsApi.md +++ b/docs/SecurePaymentsApi.md @@ -1,6 +1,6 @@ # openapi_client.SecurePaymentsApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -23,10 +23,10 @@ import openapi_client from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -181,10 +181,10 @@ from openapi_client.models.transaction_detail_response import TransactionDetailR from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -258,10 +258,10 @@ from openapi_client.models.merchant_transaction_entity_response import MerchantT from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -420,10 +420,10 @@ from openapi_client.models.transaction_payment_response import TransactionPaymen from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecurePremiumFinanceLiteApi.md b/docs/SecurePremiumFinanceLiteApi.md index eb32099..95d4952 100644 --- a/docs/SecurePremiumFinanceLiteApi.md +++ b/docs/SecurePremiumFinanceLiteApi.md @@ -1,6 +1,6 @@ # openapi_client.SecurePremiumFinanceLiteApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -24,10 +24,10 @@ from openapi_client.models.pf_lite_secure_quote_request import PFLiteSecureQuote from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -102,10 +102,10 @@ from openapi_client.models.pf_lite_quote_by_payment_link_response import PFLiteQ from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -180,10 +180,10 @@ from openapi_client.models.payment_link_response import PaymentLinkResponse from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecureRefundsApi.md b/docs/SecureRefundsApi.md index 7435a97..f0ed8cd 100644 --- a/docs/SecureRefundsApi.md +++ b/docs/SecureRefundsApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureRefundsApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -23,10 +23,10 @@ from openapi_client.models.transaction_refund_eligibility_request import Transac from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -101,10 +101,10 @@ from openapi_client.models.secure_transaction_refund_request import SecureTransa from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecureReportsApi.md b/docs/SecureReportsApi.md index 36bd35b..f685b38 100644 --- a/docs/SecureReportsApi.md +++ b/docs/SecureReportsApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureReportsApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,10 +21,10 @@ from openapi_client.models.report_download_request import ReportDownloadRequest from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecureTokenLinksApi.md b/docs/SecureTokenLinksApi.md index 758ea3b..8ce293e 100644 --- a/docs/SecureTokenLinksApi.md +++ b/docs/SecureTokenLinksApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureTokenLinksApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -26,10 +26,10 @@ from openapi_client.models.secure_token_link_request import SecureTokenLinkReque from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -104,10 +104,10 @@ from openapi_client.models.secure_token_link_request import SecureTokenLinkReque from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -180,10 +180,10 @@ from openapi_client.models.token_link_response import TokenLinkResponse from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -291,10 +291,10 @@ from openapi_client.models.token_link_secure_request import TokenLinkSecureReque from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -368,10 +368,10 @@ from openapi_client.models.secure_token_link_update_request import SecureTokenLi from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecureTokenManagementApi.md b/docs/SecureTokenManagementApi.md index fbbb825..f24f6d1 100644 --- a/docs/SecureTokenManagementApi.md +++ b/docs/SecureTokenManagementApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureTokenManagementApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,10 +22,10 @@ from openapi_client.models.token_request import TokenRequest from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -98,10 +98,10 @@ from openapi_client.models.secure_token_link_request import SecureTokenLinkReque from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/SecureTransactionDetailDTO.md b/docs/SecureTransactionDetailDTO.md index 537c011..b90b438 100644 --- a/docs/SecureTransactionDetailDTO.md +++ b/docs/SecureTransactionDetailDTO.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **trace_number** | **str** | | [optional] **transaction_code** | **str** | | [optional] **transaction_origin** | **str** | | [optional] -**refund_origin** | [**TransactionPaymentResponseRefundOrigin**](TransactionPaymentResponseRefundOrigin.md) | | [optional] +**refund_origin** | **str** | | [optional] **billing_contact** | [**TransactionPaymentResponseBillingContact**](TransactionPaymentResponseBillingContact.md) | | [optional] **shipping_contact** | [**TransactionPaymentResponseBillingContact**](TransactionPaymentResponseBillingContact.md) | | [optional] **reference_transaction_id** | **str** | | [optional] diff --git a/docs/SecureTransactionDetailDTOTenderInfo.md b/docs/SecureTransactionDetailDTOTenderInfo.md index 630606a..e9275d0 100644 --- a/docs/SecureTransactionDetailDTOTenderInfo.md +++ b/docs/SecureTransactionDetailDTOTenderInfo.md @@ -38,7 +38,7 @@ Name | Type | Description | Notes **account_token** | **str** | | [optional] **account_token_message** | **str** | | [optional] **create_account_token** | **bool** | | [optional] -**commission_type** | [**TransactionPaymentResponseAchTenderInfoCommissionType**](TransactionPaymentResponseAchTenderInfoCommissionType.md) | | [optional] +**commission_type** | **str** | | [optional] **commission_value** | **float** | | [optional] **commission_fixed_value** | **float** | | [optional] diff --git a/docs/SecureVendorManagementApi.md b/docs/SecureVendorManagementApi.md index 7a7dc78..6e079c7 100644 --- a/docs/SecureVendorManagementApi.md +++ b/docs/SecureVendorManagementApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureVendorManagementApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -28,10 +28,10 @@ from openapi_client.models.secure_vendor_status_request_dto import SecureVendorS from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -41,7 +41,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureVendorManagementApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin secure_vendor_status_request_dto = openapi_client.SecureVendorStatusRequestDTO() # SecureVendorStatusRequestDTO | SecureVendorStatusRequestDTO @@ -61,7 +61,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **secure_vendor_status_request_dto** | [**SecureVendorStatusRequestDTO**](SecureVendorStatusRequestDTO.md)| SecureVendorStatusRequestDTO | @@ -104,10 +104,10 @@ from openapi_client.models.vendor_response_dto import VendorResponseDTO from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -117,7 +117,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureVendorManagementApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin secure_vendor_request_dto = openapi_client.SecureVendorRequestDTO() # SecureVendorRequestDTO | SecureVendorRequestDTO @@ -139,7 +139,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **secure_vendor_request_dto** | [**SecureVendorRequestDTO**](SecureVendorRequestDTO.md)| SecureVendorRequestDTO | @@ -182,10 +182,10 @@ from openapi_client.models.secure_vendor_update_request_dto import SecureVendorU from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -195,7 +195,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureVendorManagementApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin secure_vendor_update_request_dto = openapi_client.SecureVendorUpdateRequestDTO() # SecureVendorUpdateRequestDTO | SecureVendorUpdateRequestDTO @@ -217,7 +217,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **secure_vendor_update_request_dto** | [**SecureVendorUpdateRequestDTO**](SecureVendorUpdateRequestDTO.md)| SecureVendorUpdateRequestDTO | @@ -260,10 +260,10 @@ from openapi_client.models.vendor_request_dto import VendorRequestDTO from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -273,7 +273,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureVendorManagementApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin vendor_request_dto = openapi_client.VendorRequestDTO() # VendorRequestDTO | VendorRequestDTO @@ -295,7 +295,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **vendor_request_dto** | [**VendorRequestDTO**](VendorRequestDTO.md)| VendorRequestDTO | @@ -337,10 +337,10 @@ from openapi_client.models.page_vendor_response_dto import PageVendorResponseDTO from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -350,7 +350,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureVendorManagementApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin payment_method_type = 'payment_method_type_example' # str | Set paymentMethodType (optional) attention = 'attention_example' # str | Set attention (optional) @@ -384,7 +384,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **payment_method_type** | **str**| Set paymentMethodType | [optional] **attention** | **str**| Set attention | [optional] @@ -438,10 +438,10 @@ from openapi_client.models.secure_vendor_status_request_dto import SecureVendorS from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -451,7 +451,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureVendorManagementApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin secure_vendor_status_request_dto = openapi_client.SecureVendorStatusRequestDTO() # SecureVendorStatusRequestDTO | SecureVendorStatusRequestDTO @@ -471,7 +471,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **secure_vendor_status_request_dto** | [**SecureVendorStatusRequestDTO**](SecureVendorStatusRequestDTO.md)| SecureVendorStatusRequestDTO | @@ -514,10 +514,10 @@ from openapi_client.models.vendor_timeline_response_list_inner import VendorTime from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -527,7 +527,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureVendorManagementApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin secure_vendor_timeline_request_dto = openapi_client.SecureVendorTimelineRequestDTO() # SecureVendorTimelineRequestDTO | SecureVendorTimelineRequestDTO @@ -549,7 +549,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **secure_vendor_timeline_request_dto** | [**SecureVendorTimelineRequestDTO**](SecureVendorTimelineRequestDTO.md)| SecureVendorTimelineRequestDTO | @@ -591,10 +591,10 @@ from openapi_client.models.secure_vendor_status_request_dto import SecureVendorS from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) @@ -604,7 +604,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.SecureVendorManagementApi(api_client) x_api_key = 'x_api_key_example' # str | an authorization header x_app_key = 'x_app_key_example' # str | an authorization header - x_version = 'x_version_example' # str | x-version + x_version = 3.4 # float | x-version origin = 'origin_example' # str | origin secure_vendor_status_request_dto = openapi_client.SecureVendorStatusRequestDTO() # SecureVendorStatusRequestDTO | SecureVendorStatusRequestDTO @@ -624,7 +624,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **x_api_key** | **str**| an authorization header | **x_app_key** | **str**| an authorization header | - **x_version** | **str**| x-version | + **x_version** | **float**| x-version | **origin** | **str**| origin | **secure_vendor_status_request_dto** | [**SecureVendorStatusRequestDTO**](SecureVendorStatusRequestDTO.md)| SecureVendorStatusRequestDTO | diff --git a/docs/SecureVerifyBankAccountRequestDTO.md b/docs/SecureVerifyBankAccountRequestDTO.md new file mode 100644 index 0000000..b3d303c --- /dev/null +++ b/docs/SecureVerifyBankAccountRequestDTO.md @@ -0,0 +1,33 @@ +# SecureVerifyBankAccountRequestDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**verification_entity_id** | **str** | | [optional] +**account_number** | **str** | | +**routing_number** | **str** | | +**account_holder_name** | **str** | | [optional] +**explicit_verification** | **bool** | | [optional] + +## Example + +```python +from openapi_client.models.secure_verify_bank_account_request_dto import SecureVerifyBankAccountRequestDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of SecureVerifyBankAccountRequestDTO from a JSON string +secure_verify_bank_account_request_dto_instance = SecureVerifyBankAccountRequestDTO.from_json(json) +# print the JSON string representation of the object +print(SecureVerifyBankAccountRequestDTO.to_json()) + +# convert the object into a dict +secure_verify_bank_account_request_dto_dict = secure_verify_bank_account_request_dto_instance.to_dict() +# create an instance of SecureVerifyBankAccountRequestDTO from a dict +secure_verify_bank_account_request_dto_from_dict = SecureVerifyBankAccountRequestDTO.from_dict(secure_verify_bank_account_request_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecureVoidsApi.md b/docs/SecureVoidsApi.md index 1a3a507..f7db974 100644 --- a/docs/SecureVoidsApi.md +++ b/docs/SecureVoidsApi.md @@ -1,6 +1,6 @@ # openapi_client.SecureVoidsApi -All URIs are relative to *https://api.uat.anddone.com* +All URIs are relative to *https://api.anddone.com* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,10 +22,10 @@ from openapi_client.models.secure_transaction_cancel_request import SecureTransa from openapi_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.uat.anddone.com +# Defining the host is optional and defaults to https://api.anddone.com # See configuration.py for a list of all supported configuration parameters. configuration = openapi_client.Configuration( - host = "https://api.uat.anddone.com" + host = "https://api.anddone.com" ) diff --git a/docs/TransactionDetailResponse.md b/docs/TransactionDetailResponse.md index dad3e2c..8a5d4ff 100644 --- a/docs/TransactionDetailResponse.md +++ b/docs/TransactionDetailResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **batch_id** | **str** | | [optional] **transaction_code** | **str** | | [optional] **transaction_origin** | **str** | | [optional] -**refund_origin** | [**TransactionPaymentResponseRefundOrigin**](TransactionPaymentResponseRefundOrigin.md) | | [optional] +**refund_origin** | **str** | | [optional] **billing_contact** | [**TransactionPaymentResponseBillingContact**](TransactionPaymentResponseBillingContact.md) | | [optional] **reference_transaction_id** | **str** | | [optional] **transaction_date** | **str** | | [optional] diff --git a/docs/TransactionDetailResponseTenderInfo.md b/docs/TransactionDetailResponseTenderInfo.md index 6cd6c0e..c831cb3 100644 --- a/docs/TransactionDetailResponseTenderInfo.md +++ b/docs/TransactionDetailResponseTenderInfo.md @@ -32,7 +32,7 @@ Name | Type | Description | Notes **account_token** | **str** | | [optional] **account_token_message** | **str** | | [optional] **create_account_token** | **bool** | | [optional] -**commission_type** | [**TransactionPaymentResponseAchTenderInfoCommissionType**](TransactionPaymentResponseAchTenderInfoCommissionType.md) | | [optional] +**commission_type** | **str** | | [optional] **commission_value** | **float** | | [optional] **commission_fixed_value** | **float** | | [optional] **currency** | **str** | | [optional] diff --git a/docs/TransactionPaymentResponse.md b/docs/TransactionPaymentResponse.md index e1b0952..bef5c4d 100644 --- a/docs/TransactionPaymentResponse.md +++ b/docs/TransactionPaymentResponse.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **process_method** | **str** | | [optional] **processor_name** | **str** | | [optional] **transaction_origin** | **str** | | [optional] -**refund_origin** | [**TransactionPaymentResponseRefundOrigin**](TransactionPaymentResponseRefundOrigin.md) | | [optional] +**refund_origin** | **str** | | [optional] **ach_tender_info** | [**TransactionPaymentResponseAchTenderInfo**](TransactionPaymentResponseAchTenderInfo.md) | | [optional] **cc_tender_info** | [**TransactionPaymentResponseCcTenderInfo**](TransactionPaymentResponseCcTenderInfo.md) | | [optional] **debit_card_tender_info** | [**TransactionPaymentResponseCcTenderInfo**](TransactionPaymentResponseCcTenderInfo.md) | | [optional] diff --git a/docs/TransactionPaymentResponseAchTenderInfo.md b/docs/TransactionPaymentResponseAchTenderInfo.md index 52d74f2..a8dc3ee 100644 --- a/docs/TransactionPaymentResponseAchTenderInfo.md +++ b/docs/TransactionPaymentResponseAchTenderInfo.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes **account_token** | **str** | | [optional] **account_token_message** | **str** | | [optional] **create_account_token** | **bool** | | [optional] -**commission_type** | [**TransactionPaymentResponseAchTenderInfoCommissionType**](TransactionPaymentResponseAchTenderInfoCommissionType.md) | | [optional] +**commission_type** | **str** | | [optional] **commission_value** | **float** | | [optional] **commission_fixed_value** | **float** | | [optional] diff --git a/docs/TransactionPaymentResponseCcTenderInfo.md b/docs/TransactionPaymentResponseCcTenderInfo.md index dcb3386..aa4f732 100644 --- a/docs/TransactionPaymentResponseCcTenderInfo.md +++ b/docs/TransactionPaymentResponseCcTenderInfo.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes **account_token** | **str** | | [optional] **account_token_message** | **str** | | [optional] **create_account_token** | **bool** | | [optional] -**commission_type** | [**TransactionPaymentResponseAchTenderInfoCommissionType**](TransactionPaymentResponseAchTenderInfoCommissionType.md) | | [optional] +**commission_type** | **str** | | [optional] **commission_value** | **float** | | [optional] **commission_fixed_value** | **float** | | [optional] diff --git a/docs/TransactionPaymentResponseRefundTransactionsDataInner.md b/docs/TransactionPaymentResponseRefundTransactionsDataInner.md index a7cee2b..0320587 100644 --- a/docs/TransactionPaymentResponseRefundTransactionsDataInner.md +++ b/docs/TransactionPaymentResponseRefundTransactionsDataInner.md @@ -58,7 +58,7 @@ Name | Type | Description | Notes **adjustment_display_name** | **str** | | [optional] **adjustment_descriptor_message** | **str** | | [optional] **payment_adjustment_type** | **str** | | [optional] -**commission_type** | [**TransactionPaymentResponseAchTenderInfoCommissionType**](TransactionPaymentResponseAchTenderInfoCommissionType.md) | | [optional] +**commission_type** | **str** | | [optional] **commission_value** | **float** | | [optional] **commission_fixed_value** | **float** | | [optional] **account_token** | **str** | | [optional] diff --git a/docs/VendorRequestDTO.md b/docs/VendorRequestDTO.md index 45071e7..900575a 100644 --- a/docs/VendorRequestDTO.md +++ b/docs/VendorRequestDTO.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **payment_method_type** | **str** | | **notification_type** | **str** | | **vendor_notes** | **str** | | [optional] -**phone_number** | **str** | | +**phone_number** | **str** | | [optional] **is_mobile_number** | **bool** | | [optional] **use_same_as_physical_address** | **bool** | | [optional] **email** | **str** | | diff --git a/docs/VerifyBankAccountResponse.md b/docs/VerifyBankAccountResponse.md index acd48b5..984c8a0 100644 --- a/docs/VerifyBankAccountResponse.md +++ b/docs/VerifyBankAccountResponse.md @@ -9,17 +9,11 @@ Name | Type | Description | Notes **verification_entity_id** | **str** | | [optional] **verifying_entity** | **str** | | [optional] **verification_status** | **str** | | [optional] -**status_reason** | **str** | | [optional] -**estimated_verification_date** | **str** | | [optional] -**event_id** | **str** | | [optional] -**event_type** | **str** | | [optional] -**bank_account_entity_id** | **float** | | [optional] -**bank_account_entity_type** | **str** | | [optional] +**message** | **str** | | [optional] **created_on** | **str** | | [optional] **created_by** | **str** | | [optional] **modified_on** | **str** | | [optional] **modified_by** | **str** | | [optional] -**http_response** | [**VerifyBankAccountResponseHttpResponse**](VerifyBankAccountResponseHttpResponse.md) | | [optional] ## Example diff --git a/openapi_client/__init__.py b/openapi_client/__init__.py index b88ecde..c73dd83 100644 --- a/openapi_client/__init__.py +++ b/openapi_client/__init__.py @@ -17,6 +17,7 @@ __version__ = "1.0.0" # import apis into sdk package +from openapi_client.api.secure_ach_validation_api import SecureACHValidationApi from openapi_client.api.secure_autopay_enrollment_api import SecureAutopayEnrollmentApi from openapi_client.api.secure_embedded_premium_finance_api import SecureEmbeddedPremiumFinanceApi from openapi_client.api.secure_embedded_premium_finance_endorsements_api import SecureEmbeddedPremiumFinanceEndorsementsApi @@ -200,6 +201,7 @@ from openapi_client.models.secure_vendor_timeline_request_dto import SecureVendorTimelineRequestDTO from openapi_client.models.secure_vendor_update_request_dto import SecureVendorUpdateRequestDTO from openapi_client.models.secure_vendor_update_request_dto_remittance_address import SecureVendorUpdateRequestDTORemittanceAddress +from openapi_client.models.secure_verify_bank_account_request_dto import SecureVerifyBankAccountRequestDTO from openapi_client.models.token_link_response import TokenLinkResponse from openapi_client.models.token_link_response_data_inner import TokenLinkResponseDataInner from openapi_client.models.token_link_secure_request import TokenLinkSecureRequest @@ -210,12 +212,10 @@ from openapi_client.models.transaction_detail_response_tender_info import TransactionDetailResponseTenderInfo from openapi_client.models.transaction_payment_response import TransactionPaymentResponse from openapi_client.models.transaction_payment_response_ach_tender_info import TransactionPaymentResponseAchTenderInfo -from openapi_client.models.transaction_payment_response_ach_tender_info_commission_type import TransactionPaymentResponseAchTenderInfoCommissionType from openapi_client.models.transaction_payment_response_billing_contact import TransactionPaymentResponseBillingContact from openapi_client.models.transaction_payment_response_billing_contact_address import TransactionPaymentResponseBillingContactAddress from openapi_client.models.transaction_payment_response_billing_contact_name import TransactionPaymentResponseBillingContactName from openapi_client.models.transaction_payment_response_cc_tender_info import TransactionPaymentResponseCcTenderInfo -from openapi_client.models.transaction_payment_response_refund_origin import TransactionPaymentResponseRefundOrigin from openapi_client.models.transaction_payment_response_refund_transactions import TransactionPaymentResponseRefundTransactions from openapi_client.models.transaction_payment_response_refund_transactions_data_inner import TransactionPaymentResponseRefundTransactionsDataInner from openapi_client.models.transaction_payment_response_transaction_entity_split_responses_inner import TransactionPaymentResponseTransactionEntitySplitResponsesInner @@ -230,3 +230,4 @@ from openapi_client.models.vendor_response_dto_template import VendorResponseDTOTemplate from openapi_client.models.vendor_response_dto_verification_results_inner import VendorResponseDTOVerificationResultsInner from openapi_client.models.vendor_timeline_response_list_inner import VendorTimelineResponseListInner +from openapi_client.models.verify_bank_account_response import VerifyBankAccountResponse diff --git a/openapi_client/api/__init__.py b/openapi_client/api/__init__.py index 547b38f..d29505b 100644 --- a/openapi_client/api/__init__.py +++ b/openapi_client/api/__init__.py @@ -1,6 +1,7 @@ # flake8: noqa # import apis into api package +from openapi_client.api.secure_ach_validation_api import SecureACHValidationApi from openapi_client.api.secure_autopay_enrollment_api import SecureAutopayEnrollmentApi from openapi_client.api.secure_embedded_premium_finance_api import SecureEmbeddedPremiumFinanceApi from openapi_client.api.secure_embedded_premium_finance_endorsements_api import SecureEmbeddedPremiumFinanceEndorsementsApi diff --git a/openapi_client/api/secure_ach_validation_api.py b/openapi_client/api/secure_ach_validation_api.py new file mode 100644 index 0000000..8f9df06 --- /dev/null +++ b/openapi_client/api/secure_ach_validation_api.py @@ -0,0 +1,379 @@ +# coding: utf-8 + +""" + Secure API + + Secure API + + The version of the OpenAPI document: 2.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictFloat, StrictInt, StrictStr +from typing import Union +from typing_extensions import Annotated +from openapi_client.models.secure_verify_bank_account_request_dto import SecureVerifyBankAccountRequestDTO +from openapi_client.models.verify_bank_account_response import VerifyBankAccountResponse + +from openapi_client.api_client import ApiClient, RequestSerialized +from openapi_client.api_response import ApiResponse +from openapi_client.rest import RESTResponseType + + +class SecureACHValidationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def utilityapi_secure_verifybankaccounts_post( + self, + x_api_key: Annotated[StrictStr, Field(description="an authorization header")], + x_app_key: Annotated[StrictStr, Field(description="an authorization header")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], + origin: Annotated[StrictStr, Field(description="origin")], + secure_verify_bank_account_request_dto: Annotated[SecureVerifyBankAccountRequestDTO, Field(description="SecureVerifyBankAccountRequestDTO")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VerifyBankAccountResponse: + """This API verifies bank account using secure ACH validation + + + :param x_api_key: an authorization header (required) + :type x_api_key: str + :param x_app_key: an authorization header (required) + :type x_app_key: str + :param x_version: x-version (required) + :type x_version: float + :param origin: origin (required) + :type origin: str + :param secure_verify_bank_account_request_dto: SecureVerifyBankAccountRequestDTO (required) + :type secure_verify_bank_account_request_dto: SecureVerifyBankAccountRequestDTO + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._utilityapi_secure_verifybankaccounts_post_serialize( + x_api_key=x_api_key, + x_app_key=x_app_key, + x_version=x_version, + origin=origin, + secure_verify_bank_account_request_dto=secure_verify_bank_account_request_dto, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VerifyBankAccountResponse", + '400': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def utilityapi_secure_verifybankaccounts_post_with_http_info( + self, + x_api_key: Annotated[StrictStr, Field(description="an authorization header")], + x_app_key: Annotated[StrictStr, Field(description="an authorization header")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], + origin: Annotated[StrictStr, Field(description="origin")], + secure_verify_bank_account_request_dto: Annotated[SecureVerifyBankAccountRequestDTO, Field(description="SecureVerifyBankAccountRequestDTO")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VerifyBankAccountResponse]: + """This API verifies bank account using secure ACH validation + + + :param x_api_key: an authorization header (required) + :type x_api_key: str + :param x_app_key: an authorization header (required) + :type x_app_key: str + :param x_version: x-version (required) + :type x_version: float + :param origin: origin (required) + :type origin: str + :param secure_verify_bank_account_request_dto: SecureVerifyBankAccountRequestDTO (required) + :type secure_verify_bank_account_request_dto: SecureVerifyBankAccountRequestDTO + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._utilityapi_secure_verifybankaccounts_post_serialize( + x_api_key=x_api_key, + x_app_key=x_app_key, + x_version=x_version, + origin=origin, + secure_verify_bank_account_request_dto=secure_verify_bank_account_request_dto, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VerifyBankAccountResponse", + '400': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def utilityapi_secure_verifybankaccounts_post_without_preload_content( + self, + x_api_key: Annotated[StrictStr, Field(description="an authorization header")], + x_app_key: Annotated[StrictStr, Field(description="an authorization header")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], + origin: Annotated[StrictStr, Field(description="origin")], + secure_verify_bank_account_request_dto: Annotated[SecureVerifyBankAccountRequestDTO, Field(description="SecureVerifyBankAccountRequestDTO")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """This API verifies bank account using secure ACH validation + + + :param x_api_key: an authorization header (required) + :type x_api_key: str + :param x_app_key: an authorization header (required) + :type x_app_key: str + :param x_version: x-version (required) + :type x_version: float + :param origin: origin (required) + :type origin: str + :param secure_verify_bank_account_request_dto: SecureVerifyBankAccountRequestDTO (required) + :type secure_verify_bank_account_request_dto: SecureVerifyBankAccountRequestDTO + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._utilityapi_secure_verifybankaccounts_post_serialize( + x_api_key=x_api_key, + x_app_key=x_app_key, + x_version=x_version, + origin=origin, + secure_verify_bank_account_request_dto=secure_verify_bank_account_request_dto, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VerifyBankAccountResponse", + '400': None, + '404': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _utilityapi_secure_verifybankaccounts_post_serialize( + self, + x_api_key, + x_app_key, + x_version, + origin, + secure_verify_bank_account_request_dto, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if x_api_key is not None: + _header_params['x-api-key'] = x_api_key + if x_app_key is not None: + _header_params['x-app-key'] = x_app_key + if x_version is not None: + _header_params['x-version'] = x_version + if origin is not None: + _header_params['origin'] = origin + # process the form parameters + # process the body parameter + if secure_verify_bank_account_request_dto is not None: + _body_params = secure_verify_bank_account_request_dto + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/utilityapi/secure/verifybankaccounts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/openapi_client/api/secure_outbound_payments_api.py b/openapi_client/api/secure_outbound_payments_api.py index c0072e6..6722701 100644 --- a/openapi_client/api/secure_outbound_payments_api.py +++ b/openapi_client/api/secure_outbound_payments_api.py @@ -52,7 +52,7 @@ def vendorapi_secure_outbound_payments_timelines_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_time_line_request_dto: Annotated[PaymentTimeLineRequestDto, Field(description="PaymentTimeLineRequestDto")], _request_timeout: Union[ @@ -76,7 +76,7 @@ def vendorapi_secure_outbound_payments_timelines_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_time_line_request_dto: PaymentTimeLineRequestDto (required) @@ -137,7 +137,7 @@ def vendorapi_secure_outbound_payments_timelines_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_time_line_request_dto: Annotated[PaymentTimeLineRequestDto, Field(description="PaymentTimeLineRequestDto")], _request_timeout: Union[ @@ -161,7 +161,7 @@ def vendorapi_secure_outbound_payments_timelines_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_time_line_request_dto: PaymentTimeLineRequestDto (required) @@ -222,7 +222,7 @@ def vendorapi_secure_outbound_payments_timelines_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_time_line_request_dto: Annotated[PaymentTimeLineRequestDto, Field(description="PaymentTimeLineRequestDto")], _request_timeout: Union[ @@ -246,7 +246,7 @@ def vendorapi_secure_outbound_payments_timelines_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_time_line_request_dto: PaymentTimeLineRequestDto (required) @@ -391,7 +391,7 @@ def vendorapi_secure_outboundpayments_cancel_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], cancel_payment_request_dto: Annotated[CancelPaymentRequestDTO, Field(description="CancelPaymentRequestDTO")], _request_timeout: Union[ @@ -415,7 +415,7 @@ def vendorapi_secure_outboundpayments_cancel_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param cancel_payment_request_dto: CancelPaymentRequestDTO (required) @@ -475,7 +475,7 @@ def vendorapi_secure_outboundpayments_cancel_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], cancel_payment_request_dto: Annotated[CancelPaymentRequestDTO, Field(description="CancelPaymentRequestDTO")], _request_timeout: Union[ @@ -499,7 +499,7 @@ def vendorapi_secure_outboundpayments_cancel_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param cancel_payment_request_dto: CancelPaymentRequestDTO (required) @@ -559,7 +559,7 @@ def vendorapi_secure_outboundpayments_cancel_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], cancel_payment_request_dto: Annotated[CancelPaymentRequestDTO, Field(description="CancelPaymentRequestDTO")], _request_timeout: Union[ @@ -583,7 +583,7 @@ def vendorapi_secure_outboundpayments_cancel_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param cancel_payment_request_dto: CancelPaymentRequestDTO (required) @@ -720,7 +720,7 @@ def vendorapi_secure_outboundpayments_detail_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_request_detail_dto: Annotated[PaymentRequestDetailDTO, Field(description="PaymentRequestDetailDTO")], _request_timeout: Union[ @@ -744,7 +744,7 @@ def vendorapi_secure_outboundpayments_detail_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_request_detail_dto: PaymentRequestDetailDTO (required) @@ -804,7 +804,7 @@ def vendorapi_secure_outboundpayments_detail_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_request_detail_dto: Annotated[PaymentRequestDetailDTO, Field(description="PaymentRequestDetailDTO")], _request_timeout: Union[ @@ -828,7 +828,7 @@ def vendorapi_secure_outboundpayments_detail_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_request_detail_dto: PaymentRequestDetailDTO (required) @@ -888,7 +888,7 @@ def vendorapi_secure_outboundpayments_detail_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_request_detail_dto: Annotated[PaymentRequestDetailDTO, Field(description="PaymentRequestDetailDTO")], _request_timeout: Union[ @@ -912,7 +912,7 @@ def vendorapi_secure_outboundpayments_detail_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_request_detail_dto: PaymentRequestDetailDTO (required) @@ -1056,7 +1056,7 @@ def vendorapi_secure_outboundpayments_image_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_time_line_request_dto: Annotated[PaymentTimeLineRequestDto, Field(description="OutboundPaymentImageRequestDto")], _request_timeout: Union[ @@ -1080,7 +1080,7 @@ def vendorapi_secure_outboundpayments_image_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_time_line_request_dto: OutboundPaymentImageRequestDto (required) @@ -1141,7 +1141,7 @@ def vendorapi_secure_outboundpayments_image_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_time_line_request_dto: Annotated[PaymentTimeLineRequestDto, Field(description="OutboundPaymentImageRequestDto")], _request_timeout: Union[ @@ -1165,7 +1165,7 @@ def vendorapi_secure_outboundpayments_image_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_time_line_request_dto: OutboundPaymentImageRequestDto (required) @@ -1226,7 +1226,7 @@ def vendorapi_secure_outboundpayments_image_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_time_line_request_dto: Annotated[PaymentTimeLineRequestDto, Field(description="OutboundPaymentImageRequestDto")], _request_timeout: Union[ @@ -1250,7 +1250,7 @@ def vendorapi_secure_outboundpayments_image_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_time_line_request_dto: OutboundPaymentImageRequestDto (required) @@ -1395,7 +1395,7 @@ def vendorapi_secure_outboundpayments_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_request_dto: Annotated[PaymentRequestDto, Field(description="PaymentRequestDto")], _request_timeout: Union[ @@ -1419,7 +1419,7 @@ def vendorapi_secure_outboundpayments_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_request_dto: PaymentRequestDto (required) @@ -1480,7 +1480,7 @@ def vendorapi_secure_outboundpayments_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_request_dto: Annotated[PaymentRequestDto, Field(description="PaymentRequestDto")], _request_timeout: Union[ @@ -1504,7 +1504,7 @@ def vendorapi_secure_outboundpayments_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_request_dto: PaymentRequestDto (required) @@ -1565,7 +1565,7 @@ def vendorapi_secure_outboundpayments_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_request_dto: Annotated[PaymentRequestDto, Field(description="PaymentRequestDto")], _request_timeout: Union[ @@ -1589,7 +1589,7 @@ def vendorapi_secure_outboundpayments_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_request_dto: PaymentRequestDto (required) @@ -1734,7 +1734,7 @@ def vendorapi_secure_outboundpayments_search_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], vendor_id: Annotated[Optional[StrictStr], Field(description="sets vendorId")] = None, payment_based_id: Annotated[Optional[StrictStr], Field(description="sets paymentBasedId")] = None, @@ -1773,7 +1773,7 @@ def vendorapi_secure_outboundpayments_search_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param vendor_id: sets vendorId @@ -1878,7 +1878,7 @@ def vendorapi_secure_outboundpayments_search_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], vendor_id: Annotated[Optional[StrictStr], Field(description="sets vendorId")] = None, payment_based_id: Annotated[Optional[StrictStr], Field(description="sets paymentBasedId")] = None, @@ -1917,7 +1917,7 @@ def vendorapi_secure_outboundpayments_search_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param vendor_id: sets vendorId @@ -2022,7 +2022,7 @@ def vendorapi_secure_outboundpayments_search_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], vendor_id: Annotated[Optional[StrictStr], Field(description="sets vendorId")] = None, payment_based_id: Annotated[Optional[StrictStr], Field(description="sets paymentBasedId")] = None, @@ -2061,7 +2061,7 @@ def vendorapi_secure_outboundpayments_search_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param vendor_id: sets vendorId diff --git a/openapi_client/api/secure_vendor_management_api.py b/openapi_client/api/secure_vendor_management_api.py index af7ad84..16fd3d1 100644 --- a/openapi_client/api/secure_vendor_management_api.py +++ b/openapi_client/api/secure_vendor_management_api.py @@ -16,8 +16,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator -from typing import List, Optional +from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import List, Optional, Union from typing_extensions import Annotated from openapi_client.models.page_vendor_response_dto import PageVendorResponseDTO from openapi_client.models.secure_vendor_request_dto import SecureVendorRequestDTO @@ -52,7 +52,7 @@ def vendorapi_secure_merchants_vendors_delete_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_status_request_dto: Annotated[SecureVendorStatusRequestDTO, Field(description="SecureVendorStatusRequestDTO")], _request_timeout: Union[ @@ -76,7 +76,7 @@ def vendorapi_secure_merchants_vendors_delete_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_status_request_dto: SecureVendorStatusRequestDTO (required) @@ -137,7 +137,7 @@ def vendorapi_secure_merchants_vendors_delete_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_status_request_dto: Annotated[SecureVendorStatusRequestDTO, Field(description="SecureVendorStatusRequestDTO")], _request_timeout: Union[ @@ -161,7 +161,7 @@ def vendorapi_secure_merchants_vendors_delete_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_status_request_dto: SecureVendorStatusRequestDTO (required) @@ -222,7 +222,7 @@ def vendorapi_secure_merchants_vendors_delete_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_status_request_dto: Annotated[SecureVendorStatusRequestDTO, Field(description="SecureVendorStatusRequestDTO")], _request_timeout: Union[ @@ -246,7 +246,7 @@ def vendorapi_secure_merchants_vendors_delete_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_status_request_dto: SecureVendorStatusRequestDTO (required) @@ -384,7 +384,7 @@ def vendorapi_secure_merchants_vendors_details_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_request_dto: Annotated[SecureVendorRequestDTO, Field(description="SecureVendorRequestDTO")], _request_timeout: Union[ @@ -408,7 +408,7 @@ def vendorapi_secure_merchants_vendors_details_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_request_dto: SecureVendorRequestDTO (required) @@ -469,7 +469,7 @@ def vendorapi_secure_merchants_vendors_details_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_request_dto: Annotated[SecureVendorRequestDTO, Field(description="SecureVendorRequestDTO")], _request_timeout: Union[ @@ -493,7 +493,7 @@ def vendorapi_secure_merchants_vendors_details_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_request_dto: SecureVendorRequestDTO (required) @@ -554,7 +554,7 @@ def vendorapi_secure_merchants_vendors_details_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_request_dto: Annotated[SecureVendorRequestDTO, Field(description="SecureVendorRequestDTO")], _request_timeout: Union[ @@ -578,7 +578,7 @@ def vendorapi_secure_merchants_vendors_details_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_request_dto: SecureVendorRequestDTO (required) @@ -723,7 +723,7 @@ def vendorapi_secure_merchants_vendors_edit_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_update_request_dto: Annotated[SecureVendorUpdateRequestDTO, Field(description="SecureVendorUpdateRequestDTO")], _request_timeout: Union[ @@ -747,7 +747,7 @@ def vendorapi_secure_merchants_vendors_edit_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_update_request_dto: SecureVendorUpdateRequestDTO (required) @@ -808,7 +808,7 @@ def vendorapi_secure_merchants_vendors_edit_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_update_request_dto: Annotated[SecureVendorUpdateRequestDTO, Field(description="SecureVendorUpdateRequestDTO")], _request_timeout: Union[ @@ -832,7 +832,7 @@ def vendorapi_secure_merchants_vendors_edit_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_update_request_dto: SecureVendorUpdateRequestDTO (required) @@ -893,7 +893,7 @@ def vendorapi_secure_merchants_vendors_edit_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_update_request_dto: Annotated[SecureVendorUpdateRequestDTO, Field(description="SecureVendorUpdateRequestDTO")], _request_timeout: Union[ @@ -917,7 +917,7 @@ def vendorapi_secure_merchants_vendors_edit_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_update_request_dto: SecureVendorUpdateRequestDTO (required) @@ -1062,7 +1062,7 @@ def vendorapi_secure_merchants_vendors_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], vendor_request_dto: Annotated[VendorRequestDTO, Field(description="VendorRequestDTO")], _request_timeout: Union[ @@ -1086,7 +1086,7 @@ def vendorapi_secure_merchants_vendors_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param vendor_request_dto: VendorRequestDTO (required) @@ -1147,7 +1147,7 @@ def vendorapi_secure_merchants_vendors_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], vendor_request_dto: Annotated[VendorRequestDTO, Field(description="VendorRequestDTO")], _request_timeout: Union[ @@ -1171,7 +1171,7 @@ def vendorapi_secure_merchants_vendors_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param vendor_request_dto: VendorRequestDTO (required) @@ -1232,7 +1232,7 @@ def vendorapi_secure_merchants_vendors_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], vendor_request_dto: Annotated[VendorRequestDTO, Field(description="VendorRequestDTO")], _request_timeout: Union[ @@ -1256,7 +1256,7 @@ def vendorapi_secure_merchants_vendors_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param vendor_request_dto: VendorRequestDTO (required) @@ -1401,7 +1401,7 @@ def vendorapi_secure_merchants_vendors_search_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_method_type: Annotated[Optional[StrictStr], Field(description="Set paymentMethodType")] = None, attention: Annotated[Optional[StrictStr], Field(description="Set attention")] = None, @@ -1437,7 +1437,7 @@ def vendorapi_secure_merchants_vendors_search_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_method_type: Set paymentMethodType @@ -1534,7 +1534,7 @@ def vendorapi_secure_merchants_vendors_search_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_method_type: Annotated[Optional[StrictStr], Field(description="Set paymentMethodType")] = None, attention: Annotated[Optional[StrictStr], Field(description="Set attention")] = None, @@ -1570,7 +1570,7 @@ def vendorapi_secure_merchants_vendors_search_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_method_type: Set paymentMethodType @@ -1667,7 +1667,7 @@ def vendorapi_secure_merchants_vendors_search_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], payment_method_type: Annotated[Optional[StrictStr], Field(description="Set paymentMethodType")] = None, attention: Annotated[Optional[StrictStr], Field(description="Set attention")] = None, @@ -1703,7 +1703,7 @@ def vendorapi_secure_merchants_vendors_search_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param payment_method_type: Set paymentMethodType @@ -1933,7 +1933,7 @@ def vendorapi_secure_merchants_vendors_suspend_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_status_request_dto: Annotated[SecureVendorStatusRequestDTO, Field(description="SecureVendorStatusRequestDTO")], _request_timeout: Union[ @@ -1957,7 +1957,7 @@ def vendorapi_secure_merchants_vendors_suspend_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_status_request_dto: SecureVendorStatusRequestDTO (required) @@ -2018,7 +2018,7 @@ def vendorapi_secure_merchants_vendors_suspend_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_status_request_dto: Annotated[SecureVendorStatusRequestDTO, Field(description="SecureVendorStatusRequestDTO")], _request_timeout: Union[ @@ -2042,7 +2042,7 @@ def vendorapi_secure_merchants_vendors_suspend_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_status_request_dto: SecureVendorStatusRequestDTO (required) @@ -2103,7 +2103,7 @@ def vendorapi_secure_merchants_vendors_suspend_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_status_request_dto: Annotated[SecureVendorStatusRequestDTO, Field(description="SecureVendorStatusRequestDTO")], _request_timeout: Union[ @@ -2127,7 +2127,7 @@ def vendorapi_secure_merchants_vendors_suspend_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_status_request_dto: SecureVendorStatusRequestDTO (required) @@ -2265,7 +2265,7 @@ def vendorapi_secure_merchants_vendors_timeline_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_timeline_request_dto: Annotated[SecureVendorTimelineRequestDTO, Field(description="SecureVendorTimelineRequestDTO")], _request_timeout: Union[ @@ -2289,7 +2289,7 @@ def vendorapi_secure_merchants_vendors_timeline_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_timeline_request_dto: SecureVendorTimelineRequestDTO (required) @@ -2350,7 +2350,7 @@ def vendorapi_secure_merchants_vendors_timeline_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_timeline_request_dto: Annotated[SecureVendorTimelineRequestDTO, Field(description="SecureVendorTimelineRequestDTO")], _request_timeout: Union[ @@ -2374,7 +2374,7 @@ def vendorapi_secure_merchants_vendors_timeline_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_timeline_request_dto: SecureVendorTimelineRequestDTO (required) @@ -2435,7 +2435,7 @@ def vendorapi_secure_merchants_vendors_timeline_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_timeline_request_dto: Annotated[SecureVendorTimelineRequestDTO, Field(description="SecureVendorTimelineRequestDTO")], _request_timeout: Union[ @@ -2459,7 +2459,7 @@ def vendorapi_secure_merchants_vendors_timeline_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_timeline_request_dto: SecureVendorTimelineRequestDTO (required) @@ -2604,7 +2604,7 @@ def vendorapi_secure_merchants_vendors_unsuspend_post( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_status_request_dto: Annotated[SecureVendorStatusRequestDTO, Field(description="SecureVendorStatusRequestDTO")], _request_timeout: Union[ @@ -2628,7 +2628,7 @@ def vendorapi_secure_merchants_vendors_unsuspend_post( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_status_request_dto: SecureVendorStatusRequestDTO (required) @@ -2689,7 +2689,7 @@ def vendorapi_secure_merchants_vendors_unsuspend_post_with_http_info( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_status_request_dto: Annotated[SecureVendorStatusRequestDTO, Field(description="SecureVendorStatusRequestDTO")], _request_timeout: Union[ @@ -2713,7 +2713,7 @@ def vendorapi_secure_merchants_vendors_unsuspend_post_with_http_info( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_status_request_dto: SecureVendorStatusRequestDTO (required) @@ -2774,7 +2774,7 @@ def vendorapi_secure_merchants_vendors_unsuspend_post_without_preload_content( self, x_api_key: Annotated[StrictStr, Field(description="an authorization header")], x_app_key: Annotated[StrictStr, Field(description="an authorization header")], - x_version: Annotated[StrictStr, Field(description="x-version")], + x_version: Annotated[Union[StrictFloat, StrictInt], Field(description="x-version")], origin: Annotated[StrictStr, Field(description="origin")], secure_vendor_status_request_dto: Annotated[SecureVendorStatusRequestDTO, Field(description="SecureVendorStatusRequestDTO")], _request_timeout: Union[ @@ -2798,7 +2798,7 @@ def vendorapi_secure_merchants_vendors_unsuspend_post_without_preload_content( :param x_app_key: an authorization header (required) :type x_app_key: str :param x_version: x-version (required) - :type x_version: str + :type x_version: float :param origin: origin (required) :type origin: str :param secure_vendor_status_request_dto: SecureVendorStatusRequestDTO (required) diff --git a/openapi_client/configuration.py b/openapi_client/configuration.py index 759a94f..895751d 100644 --- a/openapi_client/configuration.py +++ b/openapi_client/configuration.py @@ -97,7 +97,7 @@ def __init__(self, host=None, ) -> None: """Constructor """ - self._base_path = "https://api.uat.anddone.com" if host is None else host + self._base_path = "https://api.anddone.com" if host is None else host """Default Base url """ self.server_index = 0 if server_index is None and host is None else server_index @@ -450,11 +450,11 @@ def get_host_settings(self): """ return [ { - 'url': "https://api.uat.anddone.com", + 'url': "https://api.anddone.com", 'description': "No description provided", }, { - 'url': "https://api2.uat.anddone.com", + 'url': "https://api2.anddone.com", 'description': "No description provided", } ] diff --git a/openapi_client/models/__init__.py b/openapi_client/models/__init__.py index d5e0d5e..63e18cd 100644 --- a/openapi_client/models/__init__.py +++ b/openapi_client/models/__init__.py @@ -169,6 +169,7 @@ from openapi_client.models.secure_vendor_timeline_request_dto import SecureVendorTimelineRequestDTO from openapi_client.models.secure_vendor_update_request_dto import SecureVendorUpdateRequestDTO from openapi_client.models.secure_vendor_update_request_dto_remittance_address import SecureVendorUpdateRequestDTORemittanceAddress +from openapi_client.models.secure_verify_bank_account_request_dto import SecureVerifyBankAccountRequestDTO from openapi_client.models.token_link_response import TokenLinkResponse from openapi_client.models.token_link_response_data_inner import TokenLinkResponseDataInner from openapi_client.models.token_link_secure_request import TokenLinkSecureRequest @@ -179,12 +180,10 @@ from openapi_client.models.transaction_detail_response_tender_info import TransactionDetailResponseTenderInfo from openapi_client.models.transaction_payment_response import TransactionPaymentResponse from openapi_client.models.transaction_payment_response_ach_tender_info import TransactionPaymentResponseAchTenderInfo -from openapi_client.models.transaction_payment_response_ach_tender_info_commission_type import TransactionPaymentResponseAchTenderInfoCommissionType from openapi_client.models.transaction_payment_response_billing_contact import TransactionPaymentResponseBillingContact from openapi_client.models.transaction_payment_response_billing_contact_address import TransactionPaymentResponseBillingContactAddress from openapi_client.models.transaction_payment_response_billing_contact_name import TransactionPaymentResponseBillingContactName from openapi_client.models.transaction_payment_response_cc_tender_info import TransactionPaymentResponseCcTenderInfo -from openapi_client.models.transaction_payment_response_refund_origin import TransactionPaymentResponseRefundOrigin from openapi_client.models.transaction_payment_response_refund_transactions import TransactionPaymentResponseRefundTransactions from openapi_client.models.transaction_payment_response_refund_transactions_data_inner import TransactionPaymentResponseRefundTransactionsDataInner from openapi_client.models.transaction_payment_response_transaction_entity_split_responses_inner import TransactionPaymentResponseTransactionEntitySplitResponsesInner @@ -199,3 +198,4 @@ from openapi_client.models.vendor_response_dto_template import VendorResponseDTOTemplate from openapi_client.models.vendor_response_dto_verification_results_inner import VendorResponseDTOVerificationResultsInner from openapi_client.models.vendor_timeline_response_list_inner import VendorTimelineResponseListInner +from openapi_client.models.verify_bank_account_response import VerifyBankAccountResponse diff --git a/openapi_client/models/merchant_transaction_entity_response_data_inner.py b/openapi_client/models/merchant_transaction_entity_response_data_inner.py index daa9f0d..2316102 100644 --- a/openapi_client/models/merchant_transaction_entity_response_data_inner.py +++ b/openapi_client/models/merchant_transaction_entity_response_data_inner.py @@ -19,7 +19,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from openapi_client.models.transaction_payment_response_ach_tender_info_commission_type import TransactionPaymentResponseAchTenderInfoCommissionType from typing import Optional, Set from typing_extensions import Self @@ -80,7 +79,7 @@ class MerchantTransactionEntityResponseDataInner(BaseModel): adjustment_display_name: Optional[StrictStr] = Field(default=None, alias="adjustmentDisplayName") adjustment_descriptor_message: Optional[StrictStr] = Field(default=None, alias="adjustmentDescriptorMessage") payment_adjustment_type: Optional[StrictStr] = Field(default=None, alias="paymentAdjustmentType") - commission_type: Optional[TransactionPaymentResponseAchTenderInfoCommissionType] = Field(default=None, alias="commissionType") + commission_type: Optional[StrictStr] = Field(default=None, alias="commissionType") commission_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionValue") commission_fixed_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionFixedValue") account_token: Optional[StrictStr] = Field(default=None, alias="accountToken") @@ -173,6 +172,16 @@ def payment_adjustment_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('None', 'CashIncentive', 'Surcharge', 'ConvenienceFee', 'CashDiscount')") return value + @field_validator('commission_type') + def commission_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Fixed', 'Percentage']): + raise ValueError("must be one of enum values ('Fixed', 'Percentage')") + return value + @field_validator('payment_type') def payment_type_validate_enum(cls, value): """Validates the enum""" @@ -242,9 +251,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of commission_type - if self.commission_type: - _dict['commissionType'] = self.commission_type.to_dict() return _dict @classmethod @@ -310,7 +316,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "adjustmentDisplayName": obj.get("adjustmentDisplayName"), "adjustmentDescriptorMessage": obj.get("adjustmentDescriptorMessage"), "paymentAdjustmentType": obj.get("paymentAdjustmentType"), - "commissionType": TransactionPaymentResponseAchTenderInfoCommissionType.from_dict(obj["commissionType"]) if obj.get("commissionType") is not None else None, + "commissionType": obj.get("commissionType"), "commissionValue": obj.get("commissionValue"), "commissionFixedValue": obj.get("commissionFixedValue"), "accountToken": obj.get("accountToken"), diff --git a/openapi_client/models/payment_link_request.py b/openapi_client/models/payment_link_request.py index 996977d..2e11ce2 100644 --- a/openapi_client/models/payment_link_request.py +++ b/openapi_client/models/payment_link_request.py @@ -53,8 +53,8 @@ class PaymentLinkRequest(BaseModel): splits: Optional[List[PaymentIntentRequestSplitsInner]] = None quote_key: Optional[StrictStr] = Field(default=None, alias="quoteKey") account_number: Optional[StrictStr] = Field(default=None, alias="accountNumber") - reference_type: Optional[StrictStr] = Field(default=None, alias="referenceType") - reference_number: Optional[StrictStr] = Field(default=None, alias="referenceNumber") + reference_type: StrictStr = Field(alias="referenceType") + reference_number: StrictStr = Field(alias="referenceNumber") reference_key: Optional[StrictStr] = Field(default=None, alias="referenceKey") reference_data_list: List[PaymentLinkRequestReferenceDataListInner] = Field(alias="referenceDataList") enable_premium_finance: Optional[StrictBool] = Field(default=None, alias="enablePremiumFinance") @@ -97,9 +97,6 @@ def payment_link_type_validate_enum(cls, value): @field_validator('reference_type') def reference_type_validate_enum(cls, value): """Validates the enum""" - if value is None: - return value - if value not in set(['None', 'QuoteNumber', 'AccountNumber', 'PolicyNumber', 'InvoiceNumber', 'OtherNumber']): raise ValueError("must be one of enum values ('None', 'QuoteNumber', 'AccountNumber', 'PolicyNumber', 'InvoiceNumber', 'OtherNumber')") return value diff --git a/openapi_client/models/secure_transaction_detail_dto.py b/openapi_client/models/secure_transaction_detail_dto.py index 5856ca8..f54c7f0 100644 --- a/openapi_client/models/secure_transaction_detail_dto.py +++ b/openapi_client/models/secure_transaction_detail_dto.py @@ -21,7 +21,6 @@ from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.secure_transaction_detail_dto_tender_info import SecureTransactionDetailDTOTenderInfo from openapi_client.models.transaction_payment_response_billing_contact import TransactionPaymentResponseBillingContact -from openapi_client.models.transaction_payment_response_refund_origin import TransactionPaymentResponseRefundOrigin from openapi_client.models.transaction_payment_response_transaction_result import TransactionPaymentResponseTransactionResult from typing import Optional, Set from typing_extensions import Self @@ -34,7 +33,7 @@ class SecureTransactionDetailDTO(BaseModel): trace_number: Optional[StrictStr] = Field(default=None, alias="traceNumber") transaction_code: Optional[StrictStr] = Field(default=None, alias="transactionCode") transaction_origin: Optional[StrictStr] = Field(default=None, alias="transactionOrigin") - refund_origin: Optional[TransactionPaymentResponseRefundOrigin] = Field(default=None, alias="refundOrigin") + refund_origin: Optional[StrictStr] = Field(default=None, alias="refundOrigin") billing_contact: Optional[TransactionPaymentResponseBillingContact] = Field(default=None, alias="billingContact") shipping_contact: Optional[TransactionPaymentResponseBillingContact] = Field(default=None, alias="shippingContact") reference_transaction_id: Optional[StrictStr] = Field(default=None, alias="referenceTransactionId") @@ -87,6 +86,16 @@ def transaction_origin_validate_enum(cls, value): raise ValueError("must be one of enum values ('Terminal', 'VirtualTerminal', 'WebForm', 'API', 'Schedule', 'Batch', 'PaymentIntent')") return value + @field_validator('refund_origin') + def refund_origin_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['API', 'Callback']): + raise ValueError("must be one of enum values ('API', 'Callback')") + return value + @field_validator('operation_type') def operation_type_validate_enum(cls, value): """Validates the enum""" @@ -186,9 +195,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of refund_origin - if self.refund_origin: - _dict['refundOrigin'] = self.refund_origin.to_dict() # override the default output from pydantic by calling `to_dict()` of billing_contact if self.billing_contact: _dict['billingContact'] = self.billing_contact.to_dict() @@ -217,7 +223,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "traceNumber": obj.get("traceNumber"), "transactionCode": obj.get("transactionCode"), "transactionOrigin": obj.get("transactionOrigin"), - "refundOrigin": TransactionPaymentResponseRefundOrigin.from_dict(obj["refundOrigin"]) if obj.get("refundOrigin") is not None else None, + "refundOrigin": obj.get("refundOrigin"), "billingContact": TransactionPaymentResponseBillingContact.from_dict(obj["billingContact"]) if obj.get("billingContact") is not None else None, "shippingContact": TransactionPaymentResponseBillingContact.from_dict(obj["shippingContact"]) if obj.get("shippingContact") is not None else None, "referenceTransactionId": obj.get("referenceTransactionId"), diff --git a/openapi_client/models/secure_transaction_detail_dto_tender_info.py b/openapi_client/models/secure_transaction_detail_dto_tender_info.py index e6df48f..5cb0713 100644 --- a/openapi_client/models/secure_transaction_detail_dto_tender_info.py +++ b/openapi_client/models/secure_transaction_detail_dto_tender_info.py @@ -19,7 +19,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from openapi_client.models.transaction_payment_response_ach_tender_info_commission_type import TransactionPaymentResponseAchTenderInfoCommissionType from typing import Optional, Set from typing_extensions import Self @@ -60,7 +59,7 @@ class SecureTransactionDetailDTOTenderInfo(BaseModel): account_token: Optional[StrictStr] = Field(default=None, alias="accountToken") account_token_message: Optional[StrictStr] = Field(default=None, alias="accountTokenMessage") create_account_token: Optional[StrictBool] = Field(default=None, alias="createAccountToken") - commission_type: Optional[TransactionPaymentResponseAchTenderInfoCommissionType] = Field(default=None, alias="commissionType") + commission_type: Optional[StrictStr] = Field(default=None, alias="commissionType") commission_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionValue") commission_fixed_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionFixedValue") __properties: ClassVar[List[str]] = ["bankName", "routingNumber", "accountType", "checkType", "checkNumber", "accountCategory", "accountHolderName", "nameOnCheck", "cardHolderName", "cardType", "maskCardNumber", "binNumber", "cardExpiry", "cVData", "cVDataStatus", "isCheckCard", "captureAmount", "amount", "convenienceAmount", "adjustmentPercentValue", "adjustmentFixedValue", "adjustmentAmount", "adjustmentDisplayName", "adjustmentDescriptorMessage", "paymentAdjustmentType", "preAuthCode", "maskAccount", "epb", "ksn", "cashBackAmount", "accountToken", "accountTokenMessage", "createAccountToken", "commissionType", "commissionValue", "commissionFixedValue"] @@ -85,6 +84,16 @@ def payment_adjustment_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('None', 'CashIncentive', 'Surcharge', 'ConvenienceFee', 'CashDiscount')") return value + @field_validator('commission_type') + def commission_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Fixed', 'Percentage']): + raise ValueError("must be one of enum values ('Fixed', 'Percentage')") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -124,9 +133,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of commission_type - if self.commission_type: - _dict['commissionType'] = self.commission_type.to_dict() return _dict @classmethod @@ -172,7 +178,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "accountToken": obj.get("accountToken"), "accountTokenMessage": obj.get("accountTokenMessage"), "createAccountToken": obj.get("createAccountToken"), - "commissionType": TransactionPaymentResponseAchTenderInfoCommissionType.from_dict(obj["commissionType"]) if obj.get("commissionType") is not None else None, + "commissionType": obj.get("commissionType"), "commissionValue": obj.get("commissionValue"), "commissionFixedValue": obj.get("commissionFixedValue") }) diff --git a/openapi_client/models/secure_verify_bank_account_request_dto.py b/openapi_client/models/secure_verify_bank_account_request_dto.py new file mode 100644 index 0000000..9663a40 --- /dev/null +++ b/openapi_client/models/secure_verify_bank_account_request_dto.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Secure API + + Secure API + + The version of the OpenAPI document: 2.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SecureVerifyBankAccountRequestDTO(BaseModel): + """ + SecureVerifyBankAccountRequestDTO + """ # noqa: E501 + verification_entity_id: Optional[StrictStr] = Field(default=None, alias="verificationEntityId") + account_number: StrictStr = Field(alias="accountNumber") + routing_number: StrictStr = Field(alias="routingNumber") + account_holder_name: Optional[StrictStr] = Field(default=None, alias="accountHolderName") + explicit_verification: Optional[StrictBool] = Field(default=None, alias="explicitVerification") + __properties: ClassVar[List[str]] = ["verificationEntityId", "accountNumber", "routingNumber", "accountHolderName", "explicitVerification"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SecureVerifyBankAccountRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SecureVerifyBankAccountRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "verificationEntityId": obj.get("verificationEntityId"), + "accountNumber": obj.get("accountNumber"), + "routingNumber": obj.get("routingNumber"), + "accountHolderName": obj.get("accountHolderName"), + "explicitVerification": obj.get("explicitVerification") + }) + return _obj + + diff --git a/openapi_client/models/transaction_detail_response.py b/openapi_client/models/transaction_detail_response.py index 037d0a9..9d35a18 100644 --- a/openapi_client/models/transaction_detail_response.py +++ b/openapi_client/models/transaction_detail_response.py @@ -23,7 +23,6 @@ from openapi_client.models.transaction_detail_response_splits_inner import TransactionDetailResponseSplitsInner from openapi_client.models.transaction_detail_response_tender_info import TransactionDetailResponseTenderInfo from openapi_client.models.transaction_payment_response_billing_contact import TransactionPaymentResponseBillingContact -from openapi_client.models.transaction_payment_response_refund_origin import TransactionPaymentResponseRefundOrigin from openapi_client.models.transaction_payment_response_refund_transactions import TransactionPaymentResponseRefundTransactions from openapi_client.models.transaction_payment_response_transaction_result import TransactionPaymentResponseTransactionResult from typing import Optional, Set @@ -37,7 +36,7 @@ class TransactionDetailResponse(BaseModel): batch_id: Optional[StrictStr] = Field(default=None, alias="batchId") transaction_code: Optional[StrictStr] = Field(default=None, alias="transactionCode") transaction_origin: Optional[StrictStr] = Field(default=None, alias="transactionOrigin") - refund_origin: Optional[TransactionPaymentResponseRefundOrigin] = Field(default=None, alias="refundOrigin") + refund_origin: Optional[StrictStr] = Field(default=None, alias="refundOrigin") billing_contact: Optional[TransactionPaymentResponseBillingContact] = Field(default=None, alias="billingContact") reference_transaction_id: Optional[StrictStr] = Field(default=None, alias="referenceTransactionId") transaction_date: Optional[StrictStr] = Field(default=None, alias="transactionDate") @@ -93,6 +92,16 @@ def transaction_origin_validate_enum(cls, value): raise ValueError("must be one of enum values ('Terminal', 'VirtualTerminal', 'WebForm', 'API', 'Schedule', 'Batch', 'PaymentIntent')") return value + @field_validator('refund_origin') + def refund_origin_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['API', 'Callback']): + raise ValueError("must be one of enum values ('API', 'Callback')") + return value + @field_validator('operation_type') def operation_type_validate_enum(cls, value): """Validates the enum""" @@ -202,9 +211,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of refund_origin - if self.refund_origin: - _dict['refundOrigin'] = self.refund_origin.to_dict() # override the default output from pydantic by calling `to_dict()` of billing_contact if self.billing_contact: _dict['billingContact'] = self.billing_contact.to_dict() @@ -227,11 +233,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of pfr if self.pfr: _dict['pfr'] = self.pfr.to_dict() - # set to None if payment_link_id (nullable) is None - # and model_fields_set contains the field - if self.payment_link_id is None and "payment_link_id" in self.model_fields_set: - _dict['paymentLinkId'] = None - return _dict @classmethod @@ -248,7 +249,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "batchId": obj.get("batchId"), "transactionCode": obj.get("transactionCode"), "transactionOrigin": obj.get("transactionOrigin"), - "refundOrigin": TransactionPaymentResponseRefundOrigin.from_dict(obj["refundOrigin"]) if obj.get("refundOrigin") is not None else None, + "refundOrigin": obj.get("refundOrigin"), "billingContact": TransactionPaymentResponseBillingContact.from_dict(obj["billingContact"]) if obj.get("billingContact") is not None else None, "referenceTransactionId": obj.get("referenceTransactionId"), "transactionDate": obj.get("transactionDate"), diff --git a/openapi_client/models/transaction_detail_response_tender_info.py b/openapi_client/models/transaction_detail_response_tender_info.py index 1579c2a..1a51a6e 100644 --- a/openapi_client/models/transaction_detail_response_tender_info.py +++ b/openapi_client/models/transaction_detail_response_tender_info.py @@ -19,7 +19,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from openapi_client.models.transaction_payment_response_ach_tender_info_commission_type import TransactionPaymentResponseAchTenderInfoCommissionType from typing import Optional, Set from typing_extensions import Self @@ -54,7 +53,7 @@ class TransactionDetailResponseTenderInfo(BaseModel): account_token: Optional[StrictStr] = Field(default=None, alias="accountToken") account_token_message: Optional[StrictStr] = Field(default=None, alias="accountTokenMessage") create_account_token: Optional[StrictBool] = Field(default=None, alias="createAccountToken") - commission_type: Optional[TransactionPaymentResponseAchTenderInfoCommissionType] = Field(default=None, alias="commissionType") + commission_type: Optional[StrictStr] = Field(default=None, alias="commissionType") commission_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionValue") commission_fixed_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionFixedValue") currency: Optional[StrictStr] = None @@ -81,6 +80,16 @@ def payment_adjustment_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('None', 'CashIncentive', 'Surcharge', 'ConvenienceFee', 'CashDiscount')") return value + @field_validator('commission_type') + def commission_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Fixed', 'Percentage']): + raise ValueError("must be one of enum values ('Fixed', 'Percentage')") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -120,9 +129,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of commission_type - if self.commission_type: - _dict['commissionType'] = self.commission_type.to_dict() return _dict @classmethod @@ -162,7 +168,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "accountToken": obj.get("accountToken"), "accountTokenMessage": obj.get("accountTokenMessage"), "createAccountToken": obj.get("createAccountToken"), - "commissionType": TransactionPaymentResponseAchTenderInfoCommissionType.from_dict(obj["commissionType"]) if obj.get("commissionType") is not None else None, + "commissionType": obj.get("commissionType"), "commissionValue": obj.get("commissionValue"), "commissionFixedValue": obj.get("commissionFixedValue"), "currency": obj.get("currency"), diff --git a/openapi_client/models/transaction_payment_response.py b/openapi_client/models/transaction_payment_response.py index bf476cd..74a084e 100644 --- a/openapi_client/models/transaction_payment_response.py +++ b/openapi_client/models/transaction_payment_response.py @@ -22,7 +22,6 @@ from openapi_client.models.transaction_payment_response_ach_tender_info import TransactionPaymentResponseAchTenderInfo from openapi_client.models.transaction_payment_response_billing_contact import TransactionPaymentResponseBillingContact from openapi_client.models.transaction_payment_response_cc_tender_info import TransactionPaymentResponseCcTenderInfo -from openapi_client.models.transaction_payment_response_refund_origin import TransactionPaymentResponseRefundOrigin from openapi_client.models.transaction_payment_response_refund_transactions import TransactionPaymentResponseRefundTransactions from openapi_client.models.transaction_payment_response_transaction_entity_split_responses_inner import TransactionPaymentResponseTransactionEntitySplitResponsesInner from openapi_client.models.transaction_payment_response_transaction_result import TransactionPaymentResponseTransactionResult @@ -43,7 +42,7 @@ class TransactionPaymentResponse(BaseModel): process_method: Optional[StrictStr] = Field(default=None, alias="processMethod") processor_name: Optional[StrictStr] = Field(default=None, alias="processorName") transaction_origin: Optional[StrictStr] = Field(default=None, alias="transactionOrigin") - refund_origin: Optional[TransactionPaymentResponseRefundOrigin] = Field(default=None, alias="refundOrigin") + refund_origin: Optional[StrictStr] = Field(default=None, alias="refundOrigin") ach_tender_info: Optional[TransactionPaymentResponseAchTenderInfo] = Field(default=None, alias="achTenderInfo") cc_tender_info: Optional[TransactionPaymentResponseCcTenderInfo] = Field(default=None, alias="ccTenderInfo") debit_card_tender_info: Optional[TransactionPaymentResponseCcTenderInfo] = Field(default=None, alias="debitCardTenderInfo") @@ -101,6 +100,16 @@ def transaction_origin_validate_enum(cls, value): raise ValueError("must be one of enum values ('WebForm', 'PaymentIntent')") return value + @field_validator('refund_origin') + def refund_origin_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['API', 'Callback']): + raise ValueError("must be one of enum values ('API', 'Callback')") + return value + @field_validator('transaction_status') def transaction_status_validate_enum(cls, value): """Validates the enum""" @@ -173,9 +182,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of billing_contact if self.billing_contact: _dict['billingContact'] = self.billing_contact.to_dict() - # override the default output from pydantic by calling `to_dict()` of refund_origin - if self.refund_origin: - _dict['refundOrigin'] = self.refund_origin.to_dict() # override the default output from pydantic by calling `to_dict()` of ach_tender_info if self.ach_tender_info: _dict['achTenderInfo'] = self.ach_tender_info.to_dict() @@ -198,11 +204,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of refund_transactions if self.refund_transactions: _dict['refundTransactions'] = self.refund_transactions.to_dict() - # set to None if charge_back_amount (nullable) is None - # and model_fields_set contains the field - if self.charge_back_amount is None and "charge_back_amount" in self.model_fields_set: - _dict['chargeBackAmount'] = None - return _dict @classmethod @@ -225,7 +226,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "processMethod": obj.get("processMethod"), "processorName": obj.get("processorName"), "transactionOrigin": obj.get("transactionOrigin"), - "refundOrigin": TransactionPaymentResponseRefundOrigin.from_dict(obj["refundOrigin"]) if obj.get("refundOrigin") is not None else None, + "refundOrigin": obj.get("refundOrigin"), "achTenderInfo": TransactionPaymentResponseAchTenderInfo.from_dict(obj["achTenderInfo"]) if obj.get("achTenderInfo") is not None else None, "ccTenderInfo": TransactionPaymentResponseCcTenderInfo.from_dict(obj["ccTenderInfo"]) if obj.get("ccTenderInfo") is not None else None, "debitCardTenderInfo": TransactionPaymentResponseCcTenderInfo.from_dict(obj["debitCardTenderInfo"]) if obj.get("debitCardTenderInfo") is not None else None, diff --git a/openapi_client/models/transaction_payment_response_ach_tender_info.py b/openapi_client/models/transaction_payment_response_ach_tender_info.py index a0fc115..ed299f4 100644 --- a/openapi_client/models/transaction_payment_response_ach_tender_info.py +++ b/openapi_client/models/transaction_payment_response_ach_tender_info.py @@ -19,7 +19,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from openapi_client.models.transaction_payment_response_ach_tender_info_commission_type import TransactionPaymentResponseAchTenderInfoCommissionType from typing import Optional, Set from typing_extensions import Self @@ -50,7 +49,7 @@ class TransactionPaymentResponseAchTenderInfo(BaseModel): account_token: Optional[StrictStr] = Field(default=None, alias="accountToken") account_token_message: Optional[StrictStr] = Field(default=None, alias="accountTokenMessage") create_account_token: Optional[StrictBool] = Field(default=None, alias="createAccountToken") - commission_type: Optional[TransactionPaymentResponseAchTenderInfoCommissionType] = Field(default=None, alias="commissionType") + commission_type: Optional[StrictStr] = Field(default=None, alias="commissionType") commission_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionValue") commission_fixed_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionFixedValue") __properties: ClassVar[List[str]] = ["bankName", "routingNumber", "accountType", "checkType", "checkNumber", "nameOnCheck", "accountHolderName", "accountCategory", "captureAmount", "amount", "convenienceAmount", "binNumber", "adjustmentPercentValue", "adjustmentFixedValue", "adjustmentAmount", "adjustmentDisplayName", "adjustmentDescriptorMessage", "paymentAdjustmentType", "preAuthCode", "maskAccount", "accountToken", "accountTokenMessage", "createAccountToken", "commissionType", "commissionValue", "commissionFixedValue"] @@ -75,6 +74,16 @@ def payment_adjustment_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('None', 'CashIncentive', 'Surcharge', 'ConvenienceFee', 'CashDiscount')") return value + @field_validator('commission_type') + def commission_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Fixed', 'Percentage']): + raise ValueError("must be one of enum values ('Fixed', 'Percentage')") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -114,9 +123,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of commission_type - if self.commission_type: - _dict['commissionType'] = self.commission_type.to_dict() return _dict @classmethod @@ -152,7 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "accountToken": obj.get("accountToken"), "accountTokenMessage": obj.get("accountTokenMessage"), "createAccountToken": obj.get("createAccountToken"), - "commissionType": TransactionPaymentResponseAchTenderInfoCommissionType.from_dict(obj["commissionType"]) if obj.get("commissionType") is not None else None, + "commissionType": obj.get("commissionType"), "commissionValue": obj.get("commissionValue"), "commissionFixedValue": obj.get("commissionFixedValue") }) diff --git a/openapi_client/models/transaction_payment_response_cc_tender_info.py b/openapi_client/models/transaction_payment_response_cc_tender_info.py index 062a54a..9090580 100644 --- a/openapi_client/models/transaction_payment_response_cc_tender_info.py +++ b/openapi_client/models/transaction_payment_response_cc_tender_info.py @@ -19,7 +19,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from openapi_client.models.transaction_payment_response_ach_tender_info_commission_type import TransactionPaymentResponseAchTenderInfoCommissionType from typing import Optional, Set from typing_extensions import Self @@ -46,7 +45,7 @@ class TransactionPaymentResponseCcTenderInfo(BaseModel): account_token: Optional[StrictStr] = Field(default=None, alias="accountToken") account_token_message: Optional[StrictStr] = Field(default=None, alias="accountTokenMessage") create_account_token: Optional[StrictBool] = Field(default=None, alias="createAccountToken") - commission_type: Optional[TransactionPaymentResponseAchTenderInfoCommissionType] = Field(default=None, alias="commissionType") + commission_type: Optional[StrictStr] = Field(default=None, alias="commissionType") commission_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionValue") commission_fixed_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionFixedValue") __properties: ClassVar[List[str]] = ["cardHolderName", "cardType", "maskCardNumber", "cardExpiry", "captureAmount", "amount", "convenienceAmount", "binNumber", "adjustmentPercentValue", "adjustmentFixedValue", "adjustmentAmount", "adjustmentDisplayName", "adjustmentDescriptorMessage", "paymentAdjustmentType", "preAuthCode", "maskAccount", "accountToken", "accountTokenMessage", "createAccountToken", "commissionType", "commissionValue", "commissionFixedValue"] @@ -61,6 +60,16 @@ def payment_adjustment_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('None', 'CashIncentive', 'Surcharge', 'ConvenienceFee', 'CashDiscount')") return value + @field_validator('commission_type') + def commission_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Fixed', 'Percentage']): + raise ValueError("must be one of enum values ('Fixed', 'Percentage')") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -100,9 +109,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of commission_type - if self.commission_type: - _dict['commissionType'] = self.commission_type.to_dict() return _dict @classmethod @@ -134,7 +140,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "accountToken": obj.get("accountToken"), "accountTokenMessage": obj.get("accountTokenMessage"), "createAccountToken": obj.get("createAccountToken"), - "commissionType": TransactionPaymentResponseAchTenderInfoCommissionType.from_dict(obj["commissionType"]) if obj.get("commissionType") is not None else None, + "commissionType": obj.get("commissionType"), "commissionValue": obj.get("commissionValue"), "commissionFixedValue": obj.get("commissionFixedValue") }) diff --git a/openapi_client/models/transaction_payment_response_refund_transactions_data_inner.py b/openapi_client/models/transaction_payment_response_refund_transactions_data_inner.py index 9dc47c7..51a2e4b 100644 --- a/openapi_client/models/transaction_payment_response_refund_transactions_data_inner.py +++ b/openapi_client/models/transaction_payment_response_refund_transactions_data_inner.py @@ -19,7 +19,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from openapi_client.models.transaction_payment_response_ach_tender_info_commission_type import TransactionPaymentResponseAchTenderInfoCommissionType from typing import Optional, Set from typing_extensions import Self @@ -80,7 +79,7 @@ class TransactionPaymentResponseRefundTransactionsDataInner(BaseModel): adjustment_display_name: Optional[StrictStr] = Field(default=None, alias="adjustmentDisplayName") adjustment_descriptor_message: Optional[StrictStr] = Field(default=None, alias="adjustmentDescriptorMessage") payment_adjustment_type: Optional[StrictStr] = Field(default=None, alias="paymentAdjustmentType") - commission_type: Optional[TransactionPaymentResponseAchTenderInfoCommissionType] = Field(default=None, alias="commissionType") + commission_type: Optional[StrictStr] = Field(default=None, alias="commissionType") commission_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionValue") commission_fixed_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commissionFixedValue") account_token: Optional[StrictStr] = Field(default=None, alias="accountToken") @@ -172,6 +171,16 @@ def payment_adjustment_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('None', 'CashIncentive', 'Surcharge', 'ConvenienceFee', 'CashDiscount')") return value + @field_validator('commission_type') + def commission_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Fixed', 'Percentage']): + raise ValueError("must be one of enum values ('Fixed', 'Percentage')") + return value + @field_validator('payment_type') def payment_type_validate_enum(cls, value): """Validates the enum""" @@ -241,9 +250,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of commission_type - if self.commission_type: - _dict['commissionType'] = self.commission_type.to_dict() return _dict @classmethod @@ -309,7 +315,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "adjustmentDisplayName": obj.get("adjustmentDisplayName"), "adjustmentDescriptorMessage": obj.get("adjustmentDescriptorMessage"), "paymentAdjustmentType": obj.get("paymentAdjustmentType"), - "commissionType": TransactionPaymentResponseAchTenderInfoCommissionType.from_dict(obj["commissionType"]) if obj.get("commissionType") is not None else None, + "commissionType": obj.get("commissionType"), "commissionValue": obj.get("commissionValue"), "commissionFixedValue": obj.get("commissionFixedValue"), "accountToken": obj.get("accountToken"), diff --git a/openapi_client/models/vendor_request_dto.py b/openapi_client/models/vendor_request_dto.py index 37b0e98..5d6c43f 100644 --- a/openapi_client/models/vendor_request_dto.py +++ b/openapi_client/models/vendor_request_dto.py @@ -35,7 +35,7 @@ class VendorRequestDTO(BaseModel): payment_method_type: StrictStr = Field(alias="paymentMethodType") notification_type: StrictStr = Field(alias="notificationType") vendor_notes: Optional[StrictStr] = Field(default=None, alias="vendorNotes") - phone_number: StrictStr = Field(alias="phoneNumber") + phone_number: Optional[StrictStr] = Field(default=None, alias="phoneNumber") is_mobile_number: Optional[StrictBool] = Field(default=None, alias="isMobileNumber") use_same_as_physical_address: Optional[StrictBool] = Field(default=None, alias="useSameAsPhysicalAddress") email: StrictStr diff --git a/openapi_client/models/verify_bank_account_response.py b/openapi_client/models/verify_bank_account_response.py index 1d06075..bb8afd0 100644 --- a/openapi_client/models/verify_bank_account_response.py +++ b/openapi_client/models/verify_bank_account_response.py @@ -17,9 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union -from openapi_client.models.verify_bank_account_response_http_response import VerifyBankAccountResponseHttpResponse +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -31,18 +30,12 @@ class VerifyBankAccountResponse(BaseModel): verification_entity_id: Optional[StrictStr] = Field(default=None, alias="verificationEntityId") verifying_entity: Optional[StrictStr] = Field(default=None, alias="verifyingEntity") verification_status: Optional[StrictStr] = Field(default=None, alias="verificationStatus") - status_reason: Optional[StrictStr] = Field(default=None, alias="statusReason") - estimated_verification_date: Optional[StrictStr] = Field(default=None, alias="estimatedVerificationDate") - event_id: Optional[StrictStr] = Field(default=None, alias="eventId") - event_type: Optional[StrictStr] = Field(default=None, alias="eventType") - bank_account_entity_id: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="bankAccountEntityId") - bank_account_entity_type: Optional[StrictStr] = Field(default=None, alias="bankAccountEntityType") + message: Optional[StrictStr] = None created_on: Optional[StrictStr] = Field(default=None, alias="createdOn") created_by: Optional[StrictStr] = Field(default=None, alias="createdBy") modified_on: Optional[StrictStr] = Field(default=None, alias="modifiedOn") modified_by: Optional[StrictStr] = Field(default=None, alias="modifiedBy") - http_response: Optional[VerifyBankAccountResponseHttpResponse] = Field(default=None, alias="httpResponse") - __properties: ClassVar[List[str]] = ["id", "verificationEntityId", "verifyingEntity", "verificationStatus", "statusReason", "estimatedVerificationDate", "eventId", "eventType", "bankAccountEntityId", "bankAccountEntityType", "createdOn", "createdBy", "modifiedOn", "modifiedBy", "httpResponse"] + __properties: ClassVar[List[str]] = ["id", "verificationEntityId", "verifyingEntity", "verificationStatus", "message", "createdOn", "createdBy", "modifiedOn", "modifiedBy"] @field_validator('verifying_entity') def verifying_entity_validate_enum(cls, value): @@ -50,8 +43,8 @@ def verifying_entity_validate_enum(cls, value): if value is None: return value - if value not in set(['Other', 'Orum']): - raise ValueError("must be one of enum values ('Other', 'Orum')") + if value not in set(['Other', 'Adyen']): + raise ValueError("must be one of enum values ('Other', 'Adyen')") return value @field_validator('verification_status') @@ -64,16 +57,6 @@ def verification_status_validate_enum(cls, value): raise ValueError("must be one of enum values ('Pending', 'Valid', 'Closed', 'Invalid', 'Failed')") return value - @field_validator('bank_account_entity_type') - def bank_account_entity_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['None', 'Vendor', 'Merchant']): - raise ValueError("must be one of enum values ('None', 'Vendor', 'Merchant')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -113,9 +96,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of http_response - if self.http_response: - _dict['httpResponse'] = self.http_response.to_dict() return _dict @classmethod @@ -132,17 +112,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "verificationEntityId": obj.get("verificationEntityId"), "verifyingEntity": obj.get("verifyingEntity"), "verificationStatus": obj.get("verificationStatus"), - "statusReason": obj.get("statusReason"), - "estimatedVerificationDate": obj.get("estimatedVerificationDate"), - "eventId": obj.get("eventId"), - "eventType": obj.get("eventType"), - "bankAccountEntityId": obj.get("bankAccountEntityId"), - "bankAccountEntityType": obj.get("bankAccountEntityType"), + "message": obj.get("message"), "createdOn": obj.get("createdOn"), "createdBy": obj.get("createdBy"), "modifiedOn": obj.get("modifiedOn"), - "modifiedBy": obj.get("modifiedBy"), - "httpResponse": VerifyBankAccountResponseHttpResponse.from_dict(obj["httpResponse"]) if obj.get("httpResponse") is not None else None + "modifiedBy": obj.get("modifiedBy") }) return _obj diff --git a/pyproject.toml b/pyproject.toml index 75e4de3..4d5d0b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,17 +12,18 @@ include = ["openapi_client/py.typed"] [tool.poetry.dependencies] python = "^3.8" -urllib3 = ">=2.2.3" -python-dateutil = ">=2.9.0.post0" -typing-extensions = ">=4.13.2" +urllib3 = ">= 1.25.3 < 3.0.0" +python-dateutil = ">= 2.8.2" +pydantic = ">= 2" +typing-extensions = ">= 4.7.1" [tool.poetry.dev-dependencies] -pytest = ">=8.3.5" -pytest-cov = ">=5.0.0" -tox = ">=4.25.0" -flake8 = ">=5.0.4" -types-python-dateutil = ">=2.9.0.20241206" -mypy = ">=1.14.1" +pytest = ">= 7.2.1" +pytest-cov = ">= 2.8.1" +tox = ">= 3.9.0" +flake8 = ">= 4.0.0" +types-python-dateutil = ">= 2.8.19.14" +mypy = ">= 1.5" [build-system] diff --git a/requirements.txt b/requirements.txt index 04df786..67f7f68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -urllib3 >= 2.6.0, < 3.0.0 +urllib3 >= 1.25.3, < 3.0.0 python_dateutil >= 2.8.2 -pydantic >= 2.13.3 -typing-extensions >= 4.13.2 +pydantic >= 2 +typing-extensions >= 4.7.1 diff --git a/test-requirements.txt b/test-requirements.txt index 677d2c9..e98555c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,6 +1,6 @@ -pytest-cov >= 5.0.0 -pytest >= 9.0.3 -tox >= 4.25.0 -flake8 >= 5.0.4 -types-python-dateutil >= 2.9.0.20241206 -mypy >= 1.14.1 +pytest >= 7.2.1 +pytest-cov >= 2.8.1 +tox >= 3.9.0 +flake8 >= 4.0.0 +types-python-dateutil >= 2.8.19.14 +mypy >= 1.5 diff --git a/test/ApiExplorerTests.py b/test/ApiExplorerTests.py deleted file mode 100644 index f8b9069..0000000 --- a/test/ApiExplorerTests.py +++ /dev/null @@ -1,48 +0,0 @@ -from openapi_client.api.secure_embedded_premium_finance_api import SecureEmbeddedPremiumFinanceApi -from openapi_client.api.secure_embedded_premium_finance_endorsements_api import SecureEmbeddedPremiumFinanceEndorsementsApi -from openapi_client.api.secure_orum_api import SecureOrumApi -from openapi_client.api.secure_outbound_payments_api import SecureOutboundPaymentsApi -from openapi_client.api.secure_payment_batching_api import SecurePaymentBatchingApi -from openapi_client.api.secure_payment_intent_api import SecurePaymentIntentApi -from openapi_client.api.secure_payment_links_api import SecurePaymentLinksApi -from openapi_client.api.secure_payments_api import SecurePaymentsApi -from openapi_client.api.secure_premium_finance_lite_api import SecurePremiumFinanceLiteApi -from openapi_client.api.secure_refunds_api import SecureRefundsApi -from openapi_client.api.secure_reports_api import SecureReportsApi -from openapi_client.api.secure_token_links_api import SecureTokenLinksApi -from openapi_client.api.secure_token_management_api import SecureTokenManagementApi -from openapi_client.api.secure_vendor_management_api import SecureVendorManagementApi -from openapi_client.api.secure_voids_api import SecureVoidsApi -from openapi_client import Configuration, ApiClient -import json - -with open('C:/Work/AndDone_SDKs/anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) -x_api_key = config['xApiKey'] -x_app_key = config['xAppKey'] -x_version = config['xVersion'] -origin = config['origin'] -# configuration = Configuration( -# host="https://api2.uat.anddone.com", server_index=1 -# ) - -post_body = { - "type": "OpenPayment", - "id": "c5ffedc0-d42e-439e-9efa-526528937e98" -} - -api_instance = SecurePaymentsApi() -response = api_instance.secure_paymentsdetails_post( - x_api_key, x_app_key, x_version, origin, post_body -) -print(response) - -# post_body = { -# "id": "b9a85673-9c47-4554-ac09-b0a2d66cb69a" -# } -# -# api_instance = SecureOrumApi() -# response = api_instance.secure_bankaccounts_details_post( -# x_api_key, x_app_key, x_version, origin, post_body["id"], 'checking', post_body -# ) -# print(response) \ No newline at end of file diff --git a/test/test_embedded_premium_finance_endorsements_api.py b/test/test_embedded_premium_finance_endorsements_api.py deleted file mode 100644 index 1dc7211..0000000 --- a/test/test_embedded_premium_finance_endorsements_api.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Secure API - - Secure API's - - The version of the OpenAPI document: v1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from openapi_client.api.embedded_premium_finance_endorsements_api import EmbeddedPremiumFinanceEndorsementsApi - - -class TestEmbeddedPremiumFinanceEndorsementsApi(unittest.TestCase): - """EmbeddedPremiumFinanceEndorsementsApi unit test stubs""" - - def setUp(self) -> None: - self.api = EmbeddedPremiumFinanceEndorsementsApi() - - def tearDown(self) -> None: - pass - - def test_secure_epf_endorsements_post(self) -> None: - """Test case for secure_epf_endorsements_post - - This API will do a check of eligibility of account - """ - pass - - def test_secure_epf_quote_endorsement_booking_put(self) -> None: - """Test case for secure_epf_quote_endorsement_booking_put - - This API will update PFA to book a endorsement quote. - """ - pass - - def test_secure_epf_quote_endorsement_post(self) -> None: - """Test case for secure_epf_quote_endorsement_post - - This API will do return a quote for an existing policy or new policy for an existing account - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_secure_ach_validation_api.py b/test/test_secure_ach_validation_api.py new file mode 100644 index 0000000..983426c --- /dev/null +++ b/test/test_secure_ach_validation_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Secure API + + Secure API + + The version of the OpenAPI document: 2.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.api.secure_ach_validation_api import SecureACHValidationApi + + +class TestSecureACHValidationApi(unittest.TestCase): + """SecureACHValidationApi unit test stubs""" + + def setUp(self) -> None: + self.api = SecureACHValidationApi() + + def tearDown(self) -> None: + pass + + def test_utilityapi_secure_verifybankaccounts_post(self) -> None: + """Test case for utilityapi_secure_verifybankaccounts_post + + This API verifies bank account using secure ACH validation + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_secure_embedded_premium_finance_api.py b/test/test_secure_embedded_premium_finance_api.py index 1ab8bb2..046a749 100644 --- a/test/test_secure_embedded_premium_finance_api.py +++ b/test/test_secure_embedded_premium_finance_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,9 +13,7 @@ import unittest -import json -from openapi_client import SecureEmbeddedPremiumFinanceEndorsementsApi from openapi_client.api.secure_embedded_premium_finance_api import SecureEmbeddedPremiumFinanceApi @@ -23,309 +21,59 @@ class TestSecureEmbeddedPremiumFinanceApi(unittest.TestCase): """SecureEmbeddedPremiumFinanceApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store EPF and Endorsement functions as objects self.api = SecureEmbeddedPremiumFinanceApi() - self.endorse = SecureEmbeddedPremiumFinanceEndorsementsApi() def tearDown(self) -> None: pass - def test_secure_epf_quotes_generate_post(self) -> None: - """Test case for secure_epf_quotes_post - - This API will return quote by QuoteKey. + def test_secure_epf_merchants_quotes_policy_put(self) -> None: + """Test case for secure_epf_merchants_quotes_policy_put - Done? - EPF - Generate Quote + This API is will update the policy number """ - try: - request = { - "merchantId": self.app_key, - "paymentIntentId": "2v6QkOEd", - "details": { - "programIDs": [82262], - "couponInvoicePrinted": False, - "installments": None, - "batchID": "Batch-00543738", - "commercial": "NA", - "coupon": "NA", - "interval": "NA", - "downPaymentMethod": "BOTH", - "downPaymentPaidBy": "Insured" - }, - "insured": { - "uniqueId": self.app_key, - "agentCustomerNumber": "Suyash", - "email": "test@test.com", - "careOf": "Test", - "address": { - "name": "Sam", - "address1": "1055 Broadway", - "address2": "", - "city": "Kansas City", - "state": "KY", - "zip": "64105", - "phone": "" - } - }, - "agent": { - "uniqueID": self.app_key, - "email": "test@test.com", - "address": { - "name": "Insurance Agency", - "address1": "PO Box 486", - "address2": "", - "city": "Kansas City", - "state": "KY", - "zip": "64105", - "phone": "" - } - }, - "policies": [ - { - "policyID": 2, - "premium": 1000, - "fee": None, - "tax": None, - "coverage": "FIRE", - "effectiveDate": "2025-05-01T00:00:00", - "expirationDate": "2026-05-01T00:00:00", - "term": 12, - "minimumEarned": None, - "minimumLiability": None, - "maximumLiability": None, - "invoiceNumber": None, - "policyFees": None, - "company": { - "bestNumber": "", - "uniqueId": "LIC", - "name": "LEXINGTON INSURANCE COMPANY", - "address1": "", - "address2": "", - "city": "Kansas City", - "state": "MO", - "zip": "", - "phone": "" - } - } - ] - } - result = self.api.secure_epf_quotes_generate_post(self.api_key, self.app_key, self.version, self.origin, request) - print(result) - except Exception as e: - print(e) - - def test_secure_epf_quotes_intent_post(self) -> None: - """Test case for secure_epf_quotes_intent_post + pass - This API will return quotes created against a payment intent. + def test_secure_epf_quotes_booking_put(self) -> None: + """Test case for secure_epf_quotes_booking_put - DONE - EPF - Get Quote By Payment Intent + This API will update PFA to book a quote. """ - try: - request = { - "paymentIntentId": "2v6QkOEd" - } - result = self.api.secure_epf_quotes_intent_post(self.api_key, self.app_key, self.version, self.origin, request) - print(result) - except Exception as e: - print(e) - - def test_secure_epf_quotes_post(self) -> None: - """Test case for secure_epf_quotes_post + pass - This API will return quote by QuoteKey. + def test_secure_epf_quotes_captureesign_put(self) -> None: + """Test case for secure_epf_quotes_captureesign_put - DONE - EPF - Get Quote by Quote Key + This API will eSign the pfa with insured name. """ - try: - request = { - "quoteKey": '29650446' - } - result = self.api.secure_epf_quotes_post(self.api_key, self.app_key, self.version, self.origin, request) - print(result) - except Exception as e: - print(e) - - def test_secure_retrieve_policy_endorsement_post(self) -> None: - """Test case for secure_retrieve_policy_endorsement_post - - This API checks the eligibility of a quote for new endorsement. - - - EPF - Retrieve Endorsement Eligibility""" - try: - request = { - "accountNumber": "243490", - "isCommercial": True, - } - result = self.endorse.secure_epf_endorsements_post(self.api_key, self.app_key, self.version, self.origin, request) - print(result) - except Exception as e: - print(e) - - def test_secure_update_policy_endorsement_post(self) -> None: - """Test case for secure_update_policy_endorsement_post - - This API will do return a quote for an existing policy or new policy - for an existing account + pass + def test_secure_epf_quotes_generate_post(self) -> None: + """Test case for secure_epf_quotes_generate_post - EPF - Update Policy Endorsement + This API is used to Generate Quotes """ - try: - request = { - "quote": { - "merchantReference": "Python test 01", - "accountNumber": "243490", - "agreementId": "8025326", - "policies": [ - { - "policyId": "11746655", - "premium": 40000.0, - "effectiveDate": "2025-04-30T00:00:00", - "expirationDate": "2026-04-30T00:00:00.00", - "term": 12, - "coverage": "BOP", - "company": { - "bestNumber": "", - "UniqueID": "1733", - "name": "Bankers Standard Insurance Co", - "careOf": "string", - "address1": "string", - "address2": "string", - "city": "string", - "state": "string", - "zip": "string", - "phone": "string" - } - } - ], - "insured": { - "AgentCustomerNumber": "Suyash", - "Email": "test@test.com", - "CareOf": "", - "Address": { - "Name": "Sam", - "Address1": "1055 Broadway", - "Address2": "", - "City": "Kansas City", - "State": "MO", - "Zip": "64105", - "Phone": "" - } - } - } - } - result = self.endorse.secure_epf_quote_endorsement_post(self.api_key, self.app_key, self.version, self.origin, request) - print(result) - except Exception as e: - print(e) - - def test_secure_epf_quotes_booking_put(self) -> None: - """Test case for secure_epf_quotes_booking_put + pass - This API will update PFA to book a quote. + def test_secure_epf_quotes_intent_post(self) -> None: + """Test case for secure_epf_quotes_intent_post - EPF - Confirm (Book) Quote - Done? Needs testing; backend issue + This API will return quotes created againsts a payment intent. """ - try: - request = { - "quoteKey": 29650588, - "merchantToken": self.app_key - } - result = self.api.secure_epf_quotes_booking_put(self.api_key, self.app_key, self.version, self.origin, request) - print(result) - except Exception as e: - print(e) - - def test_secure_epf_quote_endorsement_booking_put(self) -> None: - """Test case for secure_epf_quotes_booking_put + pass - This API will update PFA to book a quote. + def test_secure_epf_quotes_post(self) -> None: + """Test case for secure_epf_quotes_post - EPF - Confirm (Book) Endorsement - Done? Needs testing; backend issue + This API will return quote by QuoteKey. """ - try: - request = { - "quoteKey": 29650588 - } - result = self.endorse.secure_epf_quote_endorsement_booking_put(self.api_key, self.app_key, self.version, self.origin, request) - print(result) - except Exception as e: - print(e) + pass def test_secure_epf_retrievepfa_post(self) -> None: """Test case for secure_epf_retrievepfa_post This API will return PFA for given quoteKey. - - Broken - EPF - Retrieve PFA - """ - try: - request = { - "quoteKey": "28274404" - } - result = self.api.secure_epf_retrievepfa_post(self.api_key, self.app_key, self.version, self.origin, request) - print(result) - except Exception as e: - print(e) - - def test_secure_merchants_epf_quotes_policy_put(self) -> None: - """Test case for secure_merchants_epf_quotes_policy_put - - This API is will update the policy number - Done? Error - Matching Policy not found - EPF - Update Policy - """ - try: - request = { - "quoteKey": 29650588, - "premium": 9000, - "category": "FIRE", - "newPolicyNumber": "1256" - } - result = self.api.secure_epf_merchants_quotes_policy_put(self.api_key, self.app_key, self.version, self.origin, request) - print(result) - except Exception as e: - print(e) - - def test_secure_epf_quotes_captureesign_put(self) -> None: - """Test case for secure_epf_quotes_captureesign_put - - This API will capture the eSign for a quote - - EPF - Capture eSign """ - try: - request = { - "merchantToken": self.app_key, - "quoteKey": "29650588", - "insuredName": "John", - "ipAddress": "101.205.12.14", - "macAddress": "12-34-56-78-9A-BC", - "captchaToken": "rewgwgwehrtehwytrbwbtyjcxcvnt", - "actionName": "" - } - - self.api.secure_epf_quotes_captureesign_put(self.api_key, self.app_key, self.version, self.origin, request) - print("eSign Captured") - except Exception as e: - print(e) + pass if __name__ == '__main__': diff --git a/test/test_secure_embedded_premium_finance_endorsements_api.py b/test/test_secure_embedded_premium_finance_endorsements_api.py index 15d65e5..b22dd2c 100644 --- a/test/test_secure_embedded_premium_finance_endorsements_api.py +++ b/test/test_secure_embedded_premium_finance_endorsements_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,7 +13,6 @@ import unittest -import json from openapi_client.api.secure_embedded_premium_finance_endorsements_api import SecureEmbeddedPremiumFinanceEndorsementsApi @@ -22,16 +21,6 @@ class TestSecureEmbeddedPremiumFinanceEndorsementsApi(unittest.TestCase): """SecureEmbeddedPremiumFinanceEndorsementsApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store EPF and Endorsement functions as objects self.api = SecureEmbeddedPremiumFinanceEndorsementsApi() def tearDown(self) -> None: diff --git a/test/test_secure_orum_api.py b/test/test_secure_orum_api.py deleted file mode 100644 index ab37026..0000000 --- a/test/test_secure_orum_api.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Secure API - - Secure API - - The version of the OpenAPI document: 2.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import json - -from openapi_client.api.secure_orum_api import SecureOrumApi - - -class TestSecureOrumApi(unittest.TestCase): - """SecureOrumApi unit test stubs""" - - def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store Orum functions as objects - self.api = SecureOrumApi() - - def tearDown(self) -> None: - pass - - def test_secure_bankaccounts_details_post(self) -> None: - """Test case for secure_bankaccounts_details_post - - This API will request for verified bank account. - """ - try: - request = { - "id": "b9a85673-9c47-4554-ac09-b0a2d66cb69a" - } - - response = self.api.secure_bankaccounts_details_post(self.api_key, self.app_key, self.version, self.origin, request) - print(response) - except Exception as e: - print(e) - - def test_secure_bankaccounts_verify_post(self) -> None: - """Test case for secure_bankaccounts_verify_post - - This API will request for account verification. - """ - try: - request = { - "accountNumber": "123456780", - "routingNumber": "121000358", - "accountHolderName": "John Doe", - "statementDisplayName": "Johns Account", - "bankAccountEntity": { - "id": "1", - "type": "Vendor" - } - } - - response = self.api.secure_bankaccounts_verify_post(self.api_key, self.app_key, self.version, self.origin, request) - print(response) - except Exception as e: - print(e) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_secure_outbound_payments_api.py b/test/test_secure_outbound_payments_api.py index 424e415..8dc8abd 100644 --- a/test/test_secure_outbound_payments_api.py +++ b/test/test_secure_outbound_payments_api.py @@ -13,9 +13,7 @@ import unittest -import json -from openapi_client import Configuration from openapi_client.api.secure_outbound_payments_api import SecureOutboundPaymentsApi @@ -23,19 +21,6 @@ class TestSecureOutboundPaymentsApi(unittest.TestCase): """SecureOutboundPaymentsApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('C:/Work/AndDone_SDKs/anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - - self.x_api_key = config['xApiKey'] - self.x_app_key = config['xAppKey'] - self.x_version = config['xVersion'] - self.origin = config['origin'] - - # self.config = Configuration() - # self.config.host("https://api2.uat.anddone.com") - self.api = SecureOutboundPaymentsApi() def tearDown(self) -> None: @@ -46,45 +31,42 @@ def test_vendorapi_secure_outbound_payments_timelines_post(self) -> None: This API gets outbound payment timelines """ - request = { - "paymentId": "3a5167e6-bd18-4c44-9d5e-075813f30896" - } - result = self.api.vendorapi_secure_outbound_payments_timelines_post(self.x_api_key, self.x_app_key, self.x_version, self.origin, request) - print(result) + pass def test_vendorapi_secure_outboundpayments_cancel_post(self) -> None: """Test case for vendorapi_secure_outboundpayments_cancel_post This API cancel outbound payment request """ - request = {} - self.api.vendorapi_secure_outboundpayments_cancel_post(self.x_api_key, self.x_app_key, self.x_version, self.origin, request) + pass def test_vendorapi_secure_outboundpayments_detail_post(self) -> None: """Test case for vendorapi_secure_outboundpayments_detail_post This API fetch outbound payment by paymentId """ - request = { - "paymentId": "3a5167e6-bd18-4c44-9d5e-075813f30896" - } - result = self.api.vendorapi_secure_outboundpayments_detail_post(self.x_api_key, self.x_app_key, self.x_version, self.origin, request) - print(result) + pass + + def test_vendorapi_secure_outboundpayments_image_post(self) -> None: + """Test case for vendorapi_secure_outboundpayments_image_post + + This API gets outbound payment JPG image in Base64 string format + """ + pass def test_vendorapi_secure_outboundpayments_post(self) -> None: """Test case for vendorapi_secure_outboundpayments_post This API creates outbound payment request """ - request = {} - result = self.api.vendorapi_secure_outboundpayments_post(self.x_api_key, self.x_app_key, self.x_version, self.origin, request) + pass def test_vendorapi_secure_outboundpayments_search_post(self) -> None: """Test case for vendorapi_secure_outboundpayments_search_post This API gets all outbound payment """ - result = self.api.vendorapi_secure_outboundpayments_search_post(self.x_api_key, self.x_app_key, self.x_version, self.origin) + pass if __name__ == '__main__': diff --git a/test/test_secure_payment_batching_api.py b/test/test_secure_payment_batching_api.py index 6d402e3..c0f9254 100644 --- a/test/test_secure_payment_batching_api.py +++ b/test/test_secure_payment_batching_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,13 +13,6 @@ import unittest -import datetime -import pytest -import logging -import json - -import openapi_client -# import request_data from openapi_client.api.secure_payment_batching_api import SecurePaymentBatchingApi @@ -28,172 +21,45 @@ class TestSecurePaymentBatchingApi(unittest.TestCase): """SecurePaymentBatchingApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure payment batching api functions as an object - self.api = openapi_client.api.secure_payment_batching_api.SecurePaymentBatchingApi() # noqa: E501 - # create timestamp for unique titles - self.timestamp = str(datetime.datetime.now().strftime('%d %b %y %H-%M-%S')) + self.api = SecurePaymentBatchingApi() def tearDown(self) -> None: pass - @pytest.mark.order(1) - def test_secure_payments_post(self) -> None: - """Test case for secure_payments_post - - This API posts new Secure payment request for the merchant. - SP - Create Secure Payments - """ - try: - request = request_data.payment_request - api = openapi_client.api.secure_payments_api.SecurePaymentsApi() - - response = api.secure_payments_post(self.api_key, self.app_key, self.version, self.origin, request) - pytest.transaction_id = response.transaction_id - print(response) - print(response.transaction_id) - except Exception as e: - print(e) - pytest.fail("Failed to create Payment for Batching Tests", False) - - @pytest.mark.order(2) - def test_secure_batches_post(self) -> None: - """Test case for secure_batches_post - - This API is used for getting Secure Payment Batches - Batch - Get Batches - """ - try: - # retrieve payload and update title - # request = request_data.batch_get - - # send request - response = self.api.secure_batches_post(self.api_key, self.app_key, self.version, self.origin) - - # save payment token for expiration test - print(response) - # pytest.batchId = response.data[len(response.data) - 1].id - print(response.data[len(response.data) - 1].id) - print("\nPayment Batch Retrieved Successfully") - except Exception as e: - print(e) - pytest.fail("Failed to retrieve batch", False) - - @pytest.mark.order(3) def test_secure_batches_details_post(self) -> None: """Test case for secure_batches_details_post This API is used for getting Secure Payment Batch Details - Batch - Get Batch Details """ - try: - # retrieve payload and update title - # request = request_data.batch_details - request= { - "batchId": "n8MXjGx2" - } - # request['batchId'] = pytest.batchId - - # send request - response = self.api.secure_batches_details_post(self.api_key, self.app_key, self.version, self.origin, request) - - # save payment token for expiration test - print(response) - # transaction_details = response[len(response) - 1].transaction_details - # print(transaction_details[len(transaction_details) - 1].transaction_id) - print("\nPayment Batch Details Retrieved Successfully") - except Exception as e: - print(e) - pytest.fail("Failed to retrieve batch details", False) - - @pytest.mark.order(4) + pass + def test_secure_batches_execute_post(self) -> None: """Test case for secure_batches_execute_post This API execute on-demand batch transaction. - Batch - Execute Batch """ - try: - # retrieve payload and update title - # request = request_data.batch_execute - # request['batchId'] = "yVxjGL8p" - # request['batchId'] = pytest.batchId - request = { - "batchId": "n8MXjGx2" - } - - # send request - self.api.secure_batches_execute_post(self.api_key, self.app_key, self.version, self.origin, request) - - print("\nPayment Batch Executed Successfully") - except Exception as e: - print(e) - pytest.fail("Failed to execute batch", False) - - @pytest.mark.order(5) + pass + + def test_secure_batches_post(self) -> None: + """Test case for secure_batches_post + + This API is used for getting Secure Payment Batches + """ + pass + def test_secure_batches_timelines_post(self) -> None: """Test case for secure_batches_timelines_post This API will returns batch timeline. - Batch - Batch Timeline """ - try: - # retrieve payload and update title - # request = request_data.batch_timeline - # request['batchId'] = "yVxjGL8p" - # request['batchId'] = pytest.batchId - request = { - "batchId": "n8MXjGx2" - } - - # send request - response = self.api.secure_batches_timelines_post(self.api_key, self.app_key, self.version, self.origin, request) - print(response) - - print("\nPayment Batch Timeline Retrieved Successfully") - except Exception as e: - print(e) - pytest.fail("Failed to retrieve batch timeline", False) - - @pytest.mark.order(6) + pass + def test_secure_batches_transactions_cancel_post(self) -> None: """Test case for secure_batches_transactions_cancel_post This API cancels transactions from an active batch. - Batch - Batch Transaction Cancel """ - try: - # retrieve payload and update title - # request = request_data.batch_cancel - # request['transactionIds'] = ['d8cde67d-2570-4509-a1f5-2b2755226e3d'] - # request['transactionIds'] = [pytest.transaction_id] - # print(request['transactionIds']) - # request['batchId'] = "yVxjGL8p" - # request['batchId'] = pytest.batchId - request = { - "merchantId": self.app_key, - "batchId": "n8MXjGx2", - "voidReason": "Duplicate Payments", - "transactionIds": [ - "6c1e0129-838a-4f41-83db-860b2aec597c" - ] - } - - # send request - self.api.secure_batches_transactions_cancel_post(self.api_key, self.app_key, self.version, self.origin, request) - - print("\nBatch Transaction Cancelled Successfully") - except Exception as e: - print(e) - pytest.fail("Failed to cancel batch transaction", False) + pass if __name__ == '__main__': diff --git a/test/test_secure_payment_intent_api.py b/test/test_secure_payment_intent_api.py index ea3374e..bfeb990 100644 --- a/test/test_secure_payment_intent_api.py +++ b/test/test_secure_payment_intent_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,132 +13,33 @@ import unittest -import datetime -import pytest -import json -import logging -import openapi_client -# import request_data from openapi_client.api.secure_payment_intent_api import SecurePaymentIntentApi class TestSecurePaymentIntentApi(unittest.TestCase): """SecurePaymentIntentApi unit test stubs""" - + def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure payment intent api functions as an object - self.api = openapi_client.api.secure_payment_intent_api.SecurePaymentIntentApi() # noqa: E501 - # create timestamp for unique titles - self.timestamp = str(datetime.datetime.now().strftime('%d %b %y %H-%M-%S')) - - # def test_secure_epf_updateintent_put(self) -> None: - # """Test case for secure_epf_updateintent_put - # - # This API is use update the amount of payment intent. - # """ - # pass - - @pytest.mark.order(1) - def test_secure_paymentintents_post(self,) -> None: - """Test case for secure_paymentintents_post + self.api = SecurePaymentIntentApi() + + def tearDown(self) -> None: + pass - This API is used to create Secure payment Intent. - PI - Create Payment Intent - """ - try: - # retrieve payload and update title - # request = request_data.pi_create - # request['title'] = "Py PI - " + self.timestamp - - request = { - "additionalDetailsPreference": "NoAdditionalDetails", - "amount": 1000, - "title": "API Explorer Test 4", - "enablePremiumFinance": True, - "expiresIn": "300000", - "intent": { - "paymentTypes": [ - "CreditCard" - ] - }, - "invoiceNumber": "python", - "paymentDescription": "paymentDescription", - "shortDescription": "shortDescription", - "saveForFuture": True - } - - # send request - response = self.api.secure_paymentintents_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - - # save payment token for expiration test - print(response) - pytest.payment_id = response.payment_token - # assert expected title matches actual title - expected = request['title'] - self.assertEqual(response.title, expected) - print("\nPayment Intent Created Successfully") - except Exception as e: - print(e) - pytest.fail("Failed to create payment intent: " + str(e), False) - - @pytest.mark.order(2) def test_secure_paymentintents_expirations_post(self) -> None: """Test case for secure_paymentintents_expirations_post This API expires the payment Intent or link. - PI - Payment Intent Expiration """ - try: - # initialize variables for payment id and request - # payment_id = pytest.payment_id - # print(payment_id) - # request = { - # "paymentLinkId": payment_id - # } - - payment_id = "axAZLqG8" - - # send request - response = self.api.secure_paymentintents_expirations_post(self.api_key, - self.app_key, - self.version, - self.origin, - payment_id) - - # assert response message matches expected - # expected = "PaymentIntent is expired successfully" - # actual = response.message - # self.assertEqual(actual, expected) - - # log success - print("\nPayment Intent Expired Successfully") - except Exception as e: - print(e) - pytest.fail("Failed to expire payment intent", False) - - def tearDown(self) -> None: pass + def test_secure_paymentintents_post(self) -> None: + """Test case for secure_paymentintents_post -def suite(): - test_suite = unittest.TestSuite() - test_suite.addTest(TestSecurePaymentIntentApi('test_secure_paymentintents_post')) - return test_suite + This API is use to create Secure payment Intent. + """ + pass if __name__ == '__main__': - unittest.TextTestRunner().run(suite()) + unittest.main() diff --git a/test/test_secure_payment_links_api.py b/test/test_secure_payment_links_api.py index 6b4d7d9..28adb15 100644 --- a/test/test_secure_payment_links_api.py +++ b/test/test_secure_payment_links_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,229 +13,47 @@ import unittest -import datetime -import pytest -import json -import openapi_client -# import request_data from openapi_client.api.secure_payment_links_api import SecurePaymentLinksApi class TestSecurePaymentLinksApi(unittest.TestCase): """SecurePaymentLinksApi unit test stubs""" - + def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure payment link api functions as an object - self.api = openapi_client.api.secure_payment_links_api.SecurePaymentLinksApi() - # create timestamp for unique titles - self.timestamp = str(datetime.datetime.strftime( - datetime.datetime.utcnow() - datetime.timedelta(hours=6), - '%d %b %y %H-%M-%S')) + " CST" - - - @pytest.mark.order(1) - def test_secure_paymentlinks_post(self) -> None: - """Test case for secure_paymentlinks_post + self.api = SecurePaymentLinksApi() - This API is used to create Payment Links - PL - Create Payment Link - """ - try: - # pull pre-formed request from requests file - # request = request_data.pl_create - - # place to manually provide title when calling from this file - # request['title'] = 'Py PL - ' + self.timestamp - request = { - "title": "Py PL - " + self.timestamp, - "merchantId": self.app_key, - "paymentDescription": "Test Premium down payment.", - "amount": 200, - "expireIn": 7, - "expireInUnit": "Weeks", - "referenceDataList": [ - { - "referenceType": "PolicyNumber", - "referenceNumber": "TEST00000002", - "referenceKey": "" - } - ], - "responseType": "CallBack", - "callbackParameters": { - "callbackApiUrl": "https://www.anddone.com", - "callbackMessage": "Thank you for your payment!", - }, - "customers": [ - { - "firstName": "Testing", - "lastName": "Tester", - "email": "tt@test.com", - "phone": "9876543210", - "address": { - "addressLine1": "123 Lois Ln.", - "addressLine2": "#123", - "city": "Tampa", - "state": "FL", - "country": 1, - "postalCode": "33613" - } - } - ], - "settings": { - "additionalDetailsPreference": "NoAdditionalDetails", - "intent": { - "paymentTypes": [ - "ACH", - "CreditCard", - "DebitCard" - ] - } - }, - "lineItems": [ - { - "quantity": 10, - "productId": "0123", - "lineItemType": 1 - } - ], - "splits": [ - { - "virtualAccount": "", - "accountType": 0, - "amount": 0, - "reference": "", - "chargeIndicator": False - } - ] - } - - response = self.api.secure_paymentlinks_post(self.api_key, - self.app_key, - self.version, - self.origin, request) - - # store id and title for future tests - pytest.id = response.id - pytest.title = response.title - - # assert actual title equals expected title - expected = request['title'] - self.assertEqual(response.title, expected) - # log success to console - print("\nPayment Link Created Successfully") - except Exception as e: - print(e) - pytest.fail("Failed to create payment link: " + e, False) - - @pytest.mark.order(2) - def test_secure_paymentlinks_id_put(self) -> None: - """Test case for secure_paymentlinks_id_put + def tearDown(self) -> None: + pass - This API is used to update Payment Links - PL - Update Payment Link Details - """ - try: - # request = request_data.pl_update - # request['title'] = pytest.title + " UPDATE" - - plId = "DxL56nj8" - request = { - "title": "PL-5386753092140", - "amount": 200, - "expireIn": 7, - "expireInUnit": "Weeks", - "settings": {} - } - - response = self.api.secure_paymentlinks_id_put(self.api_key, - self.app_key, - self.version, - self.origin, - plId, request) - # expected = request['title'] - # pytest.response = response - # self.assertEqual(response.title, expected) - print(response) - # print("\nPayment Link Updated Successfully") - except Exception as e: - print(e) - # pytest.fail("Failed to update payment link: " + e, False) - - @pytest.mark.order(3) def test_secure_paymentlinks_details_post(self) -> None: """Test case for secure_paymentlinks_details_post This API is used for getting Payment Links by PaymentLink ID - PL - Get Payment Link Details """ - try: - # set paymentLinkId - # request = { - # "paymentLinkId": pytest.id - # } - - request = { - "paymentLinkId": "78EoEzav" - } - - response = self.api.secure_paymentlinks_details_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - expected = pytest.response - self.assertEqual(response.id, expected.id) - print("\nPayment Link Details Retrieved Successfully") - except Exception as e: - print(e) - pytest.fail("Failed to get payment link details: " + e, False) - - @pytest.mark.order(4) - def test_secure_paymentlinks_expirations_post(self, id=None) -> None: + pass + + def test_secure_paymentlinks_expirations_post(self) -> None: """Test case for secure_paymentlinks_expirations_post This API is used for to set expired payment link - PL - Expire Payment Link """ - try: - # request = { - # "paymentLinkId": pytest.id - # } - - request = { - "paymentLinkId": "78EoEzav" - } - - response = self.api.secure_paymentlinks_expirations_post( - self.api_key, self.app_key, self.version, self.origin, - request) - # expected = 'PaymentLink is expired successfully' - # self.assertEqual(response.message, expected) - # print("\nPayment Link Expired Successfully") - print(response) - except Exception as e: - print(e) - pytest.fail("Failed to expire payment link: " + e, False) + pass - def tearDown(self) -> None: + def test_secure_paymentlinks_id_put(self) -> None: + """Test case for secure_paymentlinks_id_put + + This API is used to update Payment Links + """ pass + def test_secure_paymentlinks_post(self) -> None: + """Test case for secure_paymentlinks_post -def suite(): - test_suite = unittest.TestSuite() - test_suite.addTest(TestSecurePaymentLinksApi('test_secure_paymentlinks_post')) - return test_suite + This API is used to create Payment Links + """ + pass if __name__ == '__main__': - unittest.TextTestRunner().run(suite()) + unittest.main() diff --git a/test/test_secure_payments_api.py b/test/test_secure_payments_api.py index ac3a2d1..5a4ec5b 100644 --- a/test/test_secure_payments_api.py +++ b/test/test_secure_payments_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,12 +13,7 @@ import unittest -import json -import pytest -import openapi_client -from openapi_client import SecurePaymentDetailsRequest, PaymentRequest -# from openapi_client import AdminTransactionEntityResponse, TransactionResponse from openapi_client.api.secure_payments_api import SecurePaymentsApi @@ -26,201 +21,39 @@ class TestSecurePaymentsApi(unittest.TestCase): """SecurePaymentsApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure payments api functions as an object - self.api = openapi_client.api.secure_payments_api.SecurePaymentsApi() # noqa: E501 + self.api = SecurePaymentsApi() def tearDown(self) -> None: pass - # def test_secure_payments_export_post(self) -> None: - # """Test case for secure_payments_export_post - # - # This API gets Secure payment by search criteria for the merchant. - # """ - # pass + def test_secure_payments_export_post(self) -> None: + """Test case for secure_payments_export_post + + This API gets Secure payment by search criteria for the merchant. + """ + pass - @pytest.mark.order(1) def test_secure_payments_post(self) -> None: """Test case for secure_payments_post This API posts new Secure payment request for the merchant. - SP - Create Secure Payments """ - request = { - "paymentReference": "PMT-543216785", - "type": "OpenPayment", - "tenderInfo": { - "amount": 178, - "cardHolderName": "John Doe", - "cardType": "VISA", - "cardNumber": "4000620000000007", - "cardExpiry": "0330", - "cvDataStatus": "AV", - "cvv": "737", - "removeDiscounting": False - }, - "transactionCode": "Web", - "channelType": "CreditCard", - "billingcontact": { - "phone": "8003213388", - "name": { - "firstname": "John", - "lastname": "Doe" - }, - "address": { - "addressLine1": "30", - "addressLine2": "Memorial Drive", - "city": "Avon ", - "state": "NY", - "country": 1, - "postalCode": "12701" - } - } - } - - - response = self.api.secure_payments_post(self.api_key, self.app_key, - self.version, self.origin, - request) - # # self.assertIsInstance(response, TransactionResponse) - # pytest.transaction_id = response['transactionId'] - print(response) - # # assert response message matches expected - # expected = request['paymentReference'] - # actual = response['referenceNo'] - # self.assertEqual(actual, expected) - - @pytest.mark.order(2) + pass + def test_secure_payments_search_post(self) -> None: """Test case for secure_payments_search_post This API gets Secure payment by search criteria for the merchant. - SP - Search Secure Payments """ - try: - response = self.api.secure_payments_search_post(self.api_key, - self.app_key, - self.version, - self.origin, - start_date="06-01-2024", - end_date="04-25-2025", - start_row=0, - page_size=10) - print(response) - # self.assertIsInstance(response, AdminTransactionEntityResponse) - except Exception as e: - print(e) - - @pytest.mark.order(3) + pass + def test_secure_paymentsdetails_post(self) -> None: """Test case for secure_paymentsdetails_post This API is used for getting details of Payments - TM - Get Payment Details by Transaction ID - """ - try: - # transaction_id = pytest.transaction_id - transaction_id = 'c5ffedc0-d42e-439e-9efa-526528937e98' - request = SecurePaymentDetailsRequest.from_dict( - {"id": transaction_id, - "type": "OpenPayment"} - ) - - response = self.api.secure_paymentsdetails_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - # print(response) - # actual = response.transaction_id - # expected = pytest.transaction_id - # self.assertEqual(actual, expected) - print(response) - except Exception as e: - print(e) - - """TM - Get Payment Details by Payment Token""" - - try: - request = SecurePaymentDetailsRequest.from_dict( - { - "paymentToken": "MxakMkkd", - "type": "PaymentIntent" - } - ) - - response = self.api.secure_paymentsdetails_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - print(response) - except Exception as e: - print(e) - - @pytest.mark.order(4) - def test_secure_payments_export_post(self) -> None: - """Test case for secure_payments_search_post - - This API gets Secure payment by search criteria for the merchant. - SP - Search Secure Payments """ - try: - self.api.secure_payments_export_post(self.api_key, - self.app_key, - self.version, - self.origin, - start_date="06-01-2024", - end_date="04-25-2025", - start_row=0, - page_size=10) - - # self.assertIsInstance(response, AdminTransactionEntityResponse) - print("Payments Exported Successfully") - except Exception as e: - print(e) - - @pytest.mark.order(5) - def test_secure_cancellations_post(self) -> None: - """Test case for secure_cancellations_post - - This API is used for voiding a transaction - Can - Cancel Transaction - """ - # try: - # transaction_id = pytest.transaction_id - # request = { - # "transactionId": transaction_id, - # "voidReason": "Duplicate transaction" - # } - # - # response = self.api.secure_cancellations_post(self.api_key, - # self.app_key, - # self.origin, - # self.version, - # request) - # print(response) - # # actual = response.transaction_id - # # expected = pytest.transaction_id - # # self.assertEqual(actual, expected) - # except Exception as e: - # print(e) - - -def suite(): - test_suite = unittest.TestSuite() - test_suite.addTest(TestSecurePaymentsApi('test_secure_payments_post')) - return test_suite + pass if __name__ == '__main__': - unittest.TextTestRunner().run(suite()) + unittest.main() diff --git a/test/test_secure_premium_finance_lite_api.py b/test/test_secure_premium_finance_lite_api.py index 4e7b75e..fdde6a2 100644 --- a/test/test_secure_premium_finance_lite_api.py +++ b/test/test_secure_premium_finance_lite_api.py @@ -3,23 +3,17 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 -import datetime -from dateutil import relativedelta import unittest -import json - -import pytest -import openapi_client from openapi_client.api.secure_premium_finance_lite_api import SecurePremiumFinanceLiteApi @@ -27,170 +21,31 @@ class TestSecurePremiumFinanceLiteApi(unittest.TestCase): """SecurePremiumFinanceLiteApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure token links api functions as an object - self.api = openapi_client.api.secure_premium_finance_lite_api.SecurePremiumFinanceLiteApi() # noqa: E501 - self.timestamp = datetime.date.today() + relativedelta.relativedelta(months=1) - self.timestamp = self.timestamp.strftime('%m-%d-%Y') - self.next_month = datetime.date.today() + relativedelta.relativedelta(months=2) - self.next_month = self.next_month.strftime('%m-%d-%Y') + self.api = SecurePremiumFinanceLiteApi() def tearDown(self) -> None: pass - @pytest.mark.order(1) def test_secure_epflite_quotes_generate_post(self) -> None: """Test case for secure_epflite_quotes_generate_post This API is used to generate the quote from the provider. - PFL - Generate Premium Finance Lite Quote """ - try: - request = { - "merchantId": self.app_key, - "merchant": { - "contactName": "John Doe", - "contactPhone": "0123456789" - }, - "insured": { - "firstName": "Jane", - "lastName": "Smith", - "mobilePhoneNumber": None, - "faxNumber": None, - "emailAddress": "test@email.com", - "isCancellationWarningViaTextEnabled": False, - "address": { - "address1": "1055", - "address2": "Broadway Blvd", - "city": "Anchorage", - "state": "AK", - "zip": "64105", - "phoneNumber": None - } - }, - "program": { - "programId": 82262, - "loanType": "Personal" - }, - "policies": [ - { - "premium": 20000, - # "effectiveDate": self.timestamp + " 00:00:00", - # "expirationDate": self.next_month + " 00:00:00", - "effectiveDate": "05-01-2025 00:00:00", - "expirationDate": "05-01-2026 00:00:00", - "coverageType": "FIRE", - "cancelDays": "Item20", - "additionalFees": 0, - "minimumEarnedPercent": 0, - "policyNumber": "21128675311", - "carrier": { - "name": "OCCIDENTAL FIRE & CASUALTY CO OF NO", - "bestNumber": "5555551234", - "uniqueId": "23248" - } - } - ] - } - - response = self.api.secure_epflite_quotes_generate_post(self.api_key, self.app_key, self.version, self.origin, request) - print(response) - # pytest.quote_key = response['quote_key'] - except Exception as e: - print(e) - - @pytest.mark.order(2) - def test_secure_epflite_quotes_paymentlinks_post(self) -> None: - """Test case for secure_epflite_quotes_paymentlinks_post + pass - This API is used to generate the quote from the provider. - """ - try: - # quote_key = pytest.quote_key - request = { - # "quoteKey": quote_key, - "quoteKey": "29649161", - "isPayInFull": False, - "title": "FirstPayment", - "paymentDescription": "FirstPayment", - "expireIn": 3, - "expireInUnit": "Days", - "customers": [ - { - "firstName": "Testing", - "lastName": "Tester", - "email": "Testing.Tester@email.com", - "phone": "1234567890", - "Address": { - "address1": "1055", - "address2": "Broadway Blvd", - "city": "Anchorage", - "state": "AK", - "zip": "64105", - "phoneNumber": None - }, - "notifyViaSMS": False, - "notifyViaEmail": False - } - ], - "callbackParameters": { - "callbackApiUrl": "htttp://yahoo.com", - "callbackMessage": "this is test message" - }, - "referenceDataList": [ - { - "referenceType": "PolicyNumber", - "referenceNumber": "pol123", - "referenceKey": None - } - ], - "settings": { - "selectedCustomerFields": "First Name,Last Name,Email,Phone", - "additionalDetailsPreference": "ManualEnter", - "intent": { - "paymentTypes": [ - "ACH", - "CreditCard", - "DebitCard" - ] - } - } - } - response = self.api.secure_epflite_quotes_paymentlinks_post(self.api_key, self.app_key, self.version, - self.origin, request) - print(response) - # pytest.payment_link_id = response['payment_link_id'] - except Exception as e: - print(e) - - @pytest.mark.order(3) def test_secure_epflite_quotes_link_post(self) -> None: """Test case for secure_epflite_quotes_link_post This API will return quotes created againsts a payment link. - PFL - Generate Premium Finance Lite Payment Link """ + pass + + def test_secure_epflite_quotes_paymentlinks_post(self) -> None: + """Test case for secure_epflite_quotes_paymentlinks_post - try: - # payment_link_id = pytest.payment_link_id - request = { - "merchantToken": self.app_key, - # "payment_link_id": payment_link_id - 'paymentLinkId': 'qx7rbEGv' - } - response = self.api.secure_epflite_quotes_link_post(self.api_key, self.app_key, self.version, - self.origin, request) - print(response) - except Exception as e: - print(e) + This API is used to create Payment Links + """ + pass if __name__ == '__main__': diff --git a/test/test_secure_refunds_api.py b/test/test_secure_refunds_api.py index 9b2db81..61fd947 100644 --- a/test/test_secure_refunds_api.py +++ b/test/test_secure_refunds_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,9 +13,7 @@ import unittest -import json -import openapi_client from openapi_client.api.secure_refunds_api import SecureRefundsApi @@ -23,17 +21,7 @@ class TestSecureRefundsApi(unittest.TestCase): """SecureRefundsApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure payment link api functions as an object - self.api = openapi_client.api.secure_refunds_api.SecureRefundsApi() + self.api = SecureRefundsApi() def tearDown(self) -> None: pass @@ -42,43 +30,15 @@ def test_secure_refunds_eligibility_post(self) -> None: """Test case for secure_refunds_eligibility_post This API return refund eligibility of a transaction. - Ref - Retrieve Refund Eligibility """ - try: - request = { - "transactionId": "c5ffedc0-d42e-439e-9efa-526528937e98" - } - - response = self.api.secure_refunds_eligibility_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - print(response) - except Exception as e: - print(e) + pass def test_secure_refunds_post(self) -> None: """Test case for secure_refunds_post - This API return refund a transaction. - Ref - Secure Refund Payment Request + This API will refund a transaction which has been settled by the processor. """ - try: - request = { - "refundAmount": 183.68, - "refundType": "Total", - "transactionId": "c5ffedc0-d42e-439e-9efa-526528937e98", - "refundDetail": "Refund down payment amount.", - "refundReason": "Incorrect amount charged." - } - - response = self.api.secure_refunds_post(self.api_key, self.app_key, - self.version, self.origin, - request) - print(response) - except Exception as e: - print(e) + pass if __name__ == '__main__': diff --git a/test/test_secure_reports_api.py b/test/test_secure_reports_api.py index 5227242..c22d1fe 100644 --- a/test/test_secure_reports_api.py +++ b/test/test_secure_reports_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,9 +13,7 @@ import unittest -import json -import openapi_client from openapi_client.api.secure_reports_api import SecureReportsApi @@ -23,16 +21,6 @@ class TestSecureReportsApi(unittest.TestCase): """SecureReportsApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure payments api functions as an object self.api = SecureReportsApi() def tearDown(self) -> None: @@ -43,21 +31,7 @@ def test_secure_reports_downloads_post(self) -> None: This API will add system report. """ - try: - request = { - "reportId": "report_payment_settlement_2024_10_02", - "date": "10-02-2024", - } - - self.api.secure_reports_downloads_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - # print(response) - # self.assertIsInstance(response, AdminTransactionEntityResponse) - except Exception as e: - print(e) + pass if __name__ == '__main__': diff --git a/test/test_secure_token_links_api.py b/test/test_secure_token_links_api.py index 9023f25..2daae51 100644 --- a/test/test_secure_token_links_api.py +++ b/test/test_secure_token_links_api.py @@ -3,20 +3,17 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 -import datetime -import unittest -import json -import pytest -import openapi_client +import unittest + from openapi_client.api.secure_token_links_api import SecureTokenLinksApi @@ -24,148 +21,46 @@ class TestSecureTokenLinksApi(unittest.TestCase): """SecureTokenLinksApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure token links api functions as an object - self.api = openapi_client.api.secure_token_links_api.SecureTokenLinksApi() # noqa: E501 - self.timestamp = str(datetime.datetime.now().strftime('%d %b %y %H-%M-%S')) + self.api = SecureTokenLinksApi() def tearDown(self) -> None: pass - @pytest.mark.order(1) - def test_secure_tokenlinks_post(self) -> None: - """Test case for secure_tokenlinks_post - - This API is use to create Secure Token Links - Tok - Create Token Link - """ - try: - request = { - "paymentLinkId": "RdQnX0jv", - "merchantId": self.app_key, - "title": "Py TL - " + self.timestamp, - "intent": { - "paymentTypes": [ - "ACH", - "CreditCard", - "DebitCard" - ] - }, - "expireIn": 7, - "expireInUnit": "Weeks" - } - - response = self.api.secure_tokenlinks_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - # pytest.tokenlink_id = response.token_link_id - print(response) - except Exception as e: - print(e) - - @pytest.mark.order(2) def test_secure_tokenlinks_details_post(self) -> None: """Test case for secure_tokenlinks_details_post This API is used for getting Token Links by TokenLink ID - Tok - Get Token Link Details """ - try: - # tokenlink_id = pytest.tokenlink_id - # request = { - # "tokenLinkId": tokenlink_id - # } - - request = { - "tokenLinkId": "Vxje6Qjv" - } - - response = self.api.secure_tokenlinks_details_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - print(response) - except Exception as e: - print(e) + pass def test_secure_tokenlinks_expirations_post(self) -> None: """Test case for secure_tokenlinks_expirations_post This API expires the token link. """ - try: - request = { - "tokenLinkId": "ndDOaJ78" - } - - response = self.api.secure_tokenlinks_expirations_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - print(response) - except Exception as e: - print(e) + pass def test_secure_tokenlinks_list_post(self) -> None: """Test case for secure_tokenlinks_list_post This API is used for getting all Token Links for Merchant """ - try: - response = self.api.secure_tokenlinks_list_post(self.api_key, - self.app_key, - self.version, - self.origin) - print(response) - except Exception as e: - print(e) + pass + + def test_secure_tokenlinks_post(self) -> None: + """Test case for secure_tokenlinks_post + + This API is use to create Secure Token Links + """ + pass def test_secure_tokenlinks_put(self) -> None: """Test case for secure_tokenlinks_put This API will update the expireIn and paymentType of Token Link. """ - try: - request = { - "tokenLinkId": "ndDOaJ78", - "expireIn": 8, - "expireInUnit": "Weeks", - "intent": { - "paymentTypes": [ - "ACH", - "CreditCard", - "DebitCard" - ] - } - } - - self.api.secure_tokenlinks_put(self.api_key, - self.app_key, - self.version, - self.origin, - request) - print("Successful Operation") - except Exception as e: - print(e) - - -def suite(): - test_suite = unittest.TestSuite() - test_suite.addTest(TestSecureTokenLinksApi('test_secure_tokenlinks_post')) - return test_suite + pass if __name__ == '__main__': - unittest.TextTestRunner().run(suite()) + unittest.main() diff --git a/test/test_secure_token_management_api.py b/test/test_secure_token_management_api.py index 4774a1e..941c753 100644 --- a/test/test_secure_token_management_api.py +++ b/test/test_secure_token_management_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,7 +13,6 @@ import unittest -import json from openapi_client.api.secure_token_management_api import SecureTokenManagementApi @@ -22,16 +21,6 @@ class TestSecureTokenManagementApi(unittest.TestCase): """SecureTokenManagementApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure token management api functions as an object self.api = SecureTokenManagementApi() def tearDown(self) -> None: @@ -42,38 +31,14 @@ def test_secure_tokens_activations_delete(self) -> None: This API is used for deactivating merchant token securely """ - try: - request = { - "token": "MJEPEG3VZEVXYPRZ" - } - - self.api.secure_tokens_activations_delete(self.api_key, - self.app_key, - self.version, - self.origin, - request) - print("Account token deleted successfully") - except Exception as e: - print(e) + pass def test_secure_tokens_details_post(self) -> None: """Test case for secure_tokens_details_post - This API is used for retrieving token details securely + This API is used for getting details of Merchant Token by Token link. """ - try: - request = { - "tokenLinkId": "DxnX3wjd" - } - - response = self.api.secure_tokens_details_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - print(response) - except Exception as e: - print(e) + pass if __name__ == '__main__': diff --git a/test/test_secure_vendor_management_api.py b/test/test_secure_vendor_management_api.py index 0c73981..9da089f 100644 --- a/test/test_secure_vendor_management_api.py +++ b/test/test_secure_vendor_management_api.py @@ -13,25 +13,14 @@ import unittest -import json from openapi_client.api.secure_vendor_management_api import SecureVendorManagementApi -from test.ApiExplorerTests import x_api_key, x_app_key, x_version, origin class TestSecureVendorManagementApi(unittest.TestCase): """SecureVendorManagementApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - self.api = SecureVendorManagementApi() def tearDown(self) -> None: @@ -42,63 +31,56 @@ def test_vendorapi_secure_merchants_vendors_delete_post(self) -> None: This API deletes vendor into system """ - request = {} - self.api.vendorapi_secure_merchants_vendors_delete_post(self.api_key, self.app_key, self.version, self.origin, request) + pass def test_vendorapi_secure_merchants_vendors_details_post(self) -> None: """Test case for vendorapi_secure_merchants_vendors_details_post This API gets details of particular vendor """ - request = {} - result = self.api.vendorapi_secure_merchants_vendors_details_post(self.api_key, self.app_key, self.version, self.origin, request) + pass def test_vendorapi_secure_merchants_vendors_edit_post(self) -> None: """Test case for vendorapi_secure_merchants_vendors_edit_post This API Updates the existing vendor """ - request = {} - result = self.api.vendorapi_secure_merchants_vendors_edit_post(self.api_key, self.app_key, self.version, self.origin, request) + pass def test_vendorapi_secure_merchants_vendors_post(self) -> None: """Test case for vendorapi_secure_merchants_vendors_post This API creates vendor into system """ - request = {} - result = self.api.vendorapi_secure_merchants_vendors_post(self.api_key, self.app_key, self.version, self.origin, request) + pass def test_vendorapi_secure_merchants_vendors_search_post(self) -> None: """Test case for vendorapi_secure_merchants_vendors_search_post This API returns list of all the Vendors of Merchant """ - result = self.api.vendorapi_secure_merchants_vendors_search_post(self.api_key, self.app_key, self.version, self.origin, request) + pass def test_vendorapi_secure_merchants_vendors_suspend_post(self) -> None: """Test case for vendorapi_secure_merchants_vendors_suspend_post This API suspends vendor into system """ - request = {} - self.api.vendorapi_secure_merchants_vendors_suspend_post(self.api_key, self.app_key, self.version, self.origin, request) + pass def test_vendorapi_secure_merchants_vendors_timeline_post(self) -> None: """Test case for vendorapi_secure_merchants_vendors_timeline_post This API gets timeline of particular vendor """ - request = {} - result = self.api.vendorapi_secure_merchants_vendors_timeline_post(self.api_key, self.app_key, self.version, self.origin, request) + pass def test_vendorapi_secure_merchants_vendors_unsuspend_post(self) -> None: """Test case for vendorapi_secure_merchants_vendors_unsuspend_post This API unsuspends vendor into system """ - request = {} - self.api.vendorapi_secure_merchants_vendors_unsuspend_post(self.api_key, self.app_key, self.version, self.origin, request) + pass if __name__ == '__main__': diff --git a/test/test_secure_verify_bank_account_request_dto.py b/test/test_secure_verify_bank_account_request_dto.py new file mode 100644 index 0000000..e606f66 --- /dev/null +++ b/test/test_secure_verify_bank_account_request_dto.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Secure API + + Secure API + + The version of the OpenAPI document: 2.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.secure_verify_bank_account_request_dto import SecureVerifyBankAccountRequestDTO + +class TestSecureVerifyBankAccountRequestDTO(unittest.TestCase): + """SecureVerifyBankAccountRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SecureVerifyBankAccountRequestDTO: + """Test SecureVerifyBankAccountRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SecureVerifyBankAccountRequestDTO` + """ + model = SecureVerifyBankAccountRequestDTO() + if include_optional: + return SecureVerifyBankAccountRequestDTO( + verification_entity_id = '', + account_number = '', + routing_number = '', + account_holder_name = '', + explicit_verification = True + ) + else: + return SecureVerifyBankAccountRequestDTO( + account_number = '', + routing_number = '', + ) + """ + + def testSecureVerifyBankAccountRequestDTO(self): + """Test SecureVerifyBankAccountRequestDTO""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_secure_voids_api.py b/test/test_secure_voids_api.py index 0f17ec2..f81e7be 100644 --- a/test/test_secure_voids_api.py +++ b/test/test_secure_voids_api.py @@ -3,9 +3,9 @@ """ Secure API - Secure API's + Secure API - The version of the OpenAPI document: v1 + The version of the OpenAPI document: 2.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,9 +13,7 @@ import unittest -import json -import openapi_client from openapi_client.api.secure_voids_api import SecureVoidsApi @@ -23,16 +21,6 @@ class TestSecureVoidsApi(unittest.TestCase): """SecureVoidsApi unit test stubs""" def setUp(self) -> None: - # call configuration file and store as object - with open('anddone-python-sdk-openapi-codegen/config.json') as f: - config = json.load(f) - # store api key, app key, version and origin from config file - self.api_key = config.api_key - self.app_key = config.app_key - self.version = config.version - self.origin = config.origin - - # store secure payments api functions as an object self.api = SecureVoidsApi() def tearDown(self) -> None: @@ -43,20 +31,7 @@ def test_secure_cancellations_post(self) -> None: This API cancel a transaction. """ - try: - request = { - "transactionId": "2bf9d8ff-1087-49ee-ab6b-d31c2b29aed9", - "voidReason": "Duplicate Payment" - } - - response = self.api.secure_cancellations_post(self.api_key, - self.app_key, - self.version, - self.origin, - request) - print(response) - except Exception as e: - print(e) + pass if __name__ == '__main__':