From 28d2bb7b01ba435272cd20b3d67ad68af8781c75 Mon Sep 17 00:00:00 2001 From: Dylan-FMK Date: Mon, 11 May 2026 12:41:14 -0700 Subject: [PATCH 1/3] ACH Validation Update --- .github/workflows/python.yml | 4 +- .openapi-generator-ignore | 1 + .openapi-generator/FILES | 21 +- ...chantTransactionEntityResponseDataInner.md | 2 +- docs/PaymentLinkRequest.md | 4 +- docs/SecureACHValidationApi.md | 87 ++++ docs/SecureAutopayEnrollmentApi.md | 6 +- docs/SecureEmbeddedPremiumFinanceApi.md | 30 +- ...reEmbeddedPremiumFinanceEndorsementsApi.md | 14 +- docs/SecureOutboundPaymentsApi.md | 50 +-- docs/SecurePaymentBatchingApi.md | 22 +- docs/SecurePaymentIntentApi.md | 10 +- docs/SecurePaymentLinksApi.md | 18 +- docs/SecurePaymentsApi.md | 18 +- docs/SecurePremiumFinanceLiteApi.md | 14 +- docs/SecureRefundsApi.md | 10 +- docs/SecureReportsApi.md | 6 +- docs/SecureTokenLinksApi.md | 22 +- docs/SecureTokenManagementApi.md | 10 +- docs/SecureTransactionDetailDTO.md | 2 +- docs/SecureTransactionDetailDTOTenderInfo.md | 2 +- docs/SecureVendorManagementApi.md | 66 +-- docs/SecureVerifyBankAccountRequestDTO.md | 33 ++ docs/SecureVoidsApi.md | 6 +- docs/TransactionDetailResponse.md | 2 +- docs/TransactionDetailResponseTenderInfo.md | 2 +- docs/TransactionPaymentResponse.md | 2 +- ...TransactionPaymentResponseAchTenderInfo.md | 2 +- .../TransactionPaymentResponseCcTenderInfo.md | 2 +- ...mentResponseRefundTransactionsDataInner.md | 2 +- docs/VendorRequestDTO.md | 2 +- docs/VerifyBankAccountResponse.md | 8 +- openapi_client/__init__.py | 5 +- openapi_client/api/__init__.py | 1 + .../api/secure_ach_validation_api.py | 379 ++++++++++++++++++ .../api/secure_outbound_payments_api.py | 72 ++-- .../api/secure_vendor_management_api.py | 100 ++--- openapi_client/configuration.py | 6 +- openapi_client/models/__init__.py | 4 +- ..._transaction_entity_response_data_inner.py | 18 +- openapi_client/models/payment_link_request.py | 7 +- .../models/secure_transaction_detail_dto.py | 18 +- ...cure_transaction_detail_dto_tender_info.py | 18 +- .../secure_verify_bank_account_request_dto.py | 95 +++++ .../models/transaction_detail_response.py | 23 +- ...transaction_detail_response_tender_info.py | 18 +- .../models/transaction_payment_response.py | 23 +- ...action_payment_response_ach_tender_info.py | 18 +- ...saction_payment_response_cc_tender_info.py | 18 +- ...response_refund_transactions_data_inner.py | 18 +- openapi_client/models/vendor_request_dto.py | 2 +- .../models/verify_bank_account_response.py | 42 +- pyproject.toml | 19 +- requirements.txt | 6 +- test-requirements.txt | 12 +- test/test_secure_ach_validation_api.py | 38 ++ ..._secure_verify_bank_account_request_dto.py | 57 +++ 57 files changed, 1097 insertions(+), 400 deletions(-) create mode 100644 docs/SecureACHValidationApi.md create mode 100644 docs/SecureVerifyBankAccountRequestDTO.md create mode 100644 openapi_client/api/secure_ach_validation_api.py create mode 100644 openapi_client/models/secure_verify_bank_account_request_dto.py create mode 100644 test/test_secure_ach_validation_api.py create mode 100644 test/test_secure_verify_bank_account_request_dto.py 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..a696d7f 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -2,7 +2,6 @@ .gitignore .gitlab-ci.yml .travis.yml -README.md docs/AutoPayEnrollmentRequest.md docs/AutoPayEnrollmentResponse.md docs/BankDetailDto.md @@ -128,6 +127,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 +172,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 +184,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 +202,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 +382,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 +393,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 +411,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 +420,6 @@ 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_autopay_enrollment_api.py -test/test_secure_pf_quote_booking_request.py +test/test_secure_ach_validation_api.py +test/test_secure_verify_bank_account_request_dto.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/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_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() From f5406ab671cebc808b0762286afa5a7af07eac65 Mon Sep 17 00:00:00 2001 From: Dylan-FMK Date: Mon, 11 May 2026 13:55:32 -0700 Subject: [PATCH 2/3] test updates --- test/ApiExplorerTests.py | 17 +++++++++----- ...est_secure_embedded_premium_finance_api.py | 20 ++++++++++------- ...bedded_premium_finance_endorsements_api.py | 20 ++++++++++------- test/test_secure_orum_api.py | 20 ++++++++++------- test/test_secure_outbound_payments_api.py | 21 ++++++++++-------- test/test_secure_payment_batching_api.py | 22 +++++++++++-------- test/test_secure_payment_intent_api.py | 22 +++++++++++-------- test/test_secure_payment_links_api.py | 20 ++++++++++------- test/test_secure_payments_api.py | 22 +++++++++++-------- test/test_secure_premium_finance_lite_api.py | 20 ++++++++++------- test/test_secure_refunds_api.py | 20 ++++++++++------- test/test_secure_reports_api.py | 20 ++++++++++------- test/test_secure_token_links_api.py | 20 ++++++++++------- test/test_secure_token_management_api.py | 20 ++++++++++------- test/test_secure_vendor_management_api.py | 20 ++++++++++------- test/test_secure_voids_api.py | 20 ++++++++++------- 16 files changed, 194 insertions(+), 130 deletions(-) diff --git a/test/ApiExplorerTests.py b/test/ApiExplorerTests.py index f8b9069..74b09d2 100644 --- a/test/ApiExplorerTests.py +++ b/test/ApiExplorerTests.py @@ -16,12 +16,17 @@ 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'] +# 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'] + +x_api_key = '' +x_app_key = '' +x_version = 2.3 +origin = '' # configuration = Configuration( # host="https://api2.uat.anddone.com", server_index=1 # ) diff --git a/test/test_secure_embedded_premium_finance_api.py b/test/test_secure_embedded_premium_finance_api.py index 1ab8bb2..231916c 100644 --- a/test/test_secure_embedded_premium_finance_api.py +++ b/test/test_secure_embedded_premium_finance_api.py @@ -23,14 +23,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store EPF and Endorsement functions as objects self.api = SecureEmbeddedPremiumFinanceApi() diff --git a/test/test_secure_embedded_premium_finance_endorsements_api.py b/test/test_secure_embedded_premium_finance_endorsements_api.py index 15d65e5..7fa0d24 100644 --- a/test/test_secure_embedded_premium_finance_endorsements_api.py +++ b/test/test_secure_embedded_premium_finance_endorsements_api.py @@ -22,14 +22,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store EPF and Endorsement functions as objects self.api = SecureEmbeddedPremiumFinanceEndorsementsApi() diff --git a/test/test_secure_orum_api.py b/test/test_secure_orum_api.py index ab37026..54b337e 100644 --- a/test/test_secure_orum_api.py +++ b/test/test_secure_orum_api.py @@ -22,14 +22,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store Orum functions as objects self.api = SecureOrumApi() diff --git a/test/test_secure_outbound_payments_api.py b/test/test_secure_outbound_payments_api.py index 424e415..0d59e0c 100644 --- a/test/test_secure_outbound_payments_api.py +++ b/test/test_secure_outbound_payments_api.py @@ -23,15 +23,18 @@ 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'] + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # self.config = Configuration() # self.config.host("https://api2.uat.anddone.com") diff --git a/test/test_secure_payment_batching_api.py b/test/test_secure_payment_batching_api.py index 6d402e3..3cbac7d 100644 --- a/test/test_secure_payment_batching_api.py +++ b/test/test_secure_payment_batching_api.py @@ -14,7 +14,7 @@ import unittest import datetime -import pytest +# import pytest import logging import json @@ -28,14 +28,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure payment batching api functions as an object self.api = openapi_client.api.secure_payment_batching_api.SecurePaymentBatchingApi() # noqa: E501 diff --git a/test/test_secure_payment_intent_api.py b/test/test_secure_payment_intent_api.py index ea3374e..d754ab0 100644 --- a/test/test_secure_payment_intent_api.py +++ b/test/test_secure_payment_intent_api.py @@ -14,7 +14,7 @@ import unittest import datetime -import pytest +# import pytest import json import logging @@ -27,14 +27,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure payment intent api functions as an object self.api = openapi_client.api.secure_payment_intent_api.SecurePaymentIntentApi() # noqa: E501 diff --git a/test/test_secure_payment_links_api.py b/test/test_secure_payment_links_api.py index 6b4d7d9..7545a6c 100644 --- a/test/test_secure_payment_links_api.py +++ b/test/test_secure_payment_links_api.py @@ -26,14 +26,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure payment link api functions as an object self.api = openapi_client.api.secure_payment_links_api.SecurePaymentLinksApi() diff --git a/test/test_secure_payments_api.py b/test/test_secure_payments_api.py index ac3a2d1..f39e881 100644 --- a/test/test_secure_payments_api.py +++ b/test/test_secure_payments_api.py @@ -14,7 +14,7 @@ import unittest import json -import pytest +# import pytest import openapi_client from openapi_client import SecurePaymentDetailsRequest, PaymentRequest @@ -26,14 +26,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure payments api functions as an object self.api = openapi_client.api.secure_payments_api.SecurePaymentsApi() # noqa: E501 diff --git a/test/test_secure_premium_finance_lite_api.py b/test/test_secure_premium_finance_lite_api.py index 4e7b75e..d2a2712 100644 --- a/test/test_secure_premium_finance_lite_api.py +++ b/test/test_secure_premium_finance_lite_api.py @@ -27,14 +27,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure token links api functions as an object self.api = openapi_client.api.secure_premium_finance_lite_api.SecurePremiumFinanceLiteApi() # noqa: E501 diff --git a/test/test_secure_refunds_api.py b/test/test_secure_refunds_api.py index 9b2db81..f07c636 100644 --- a/test/test_secure_refunds_api.py +++ b/test/test_secure_refunds_api.py @@ -23,14 +23,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure payment link api functions as an object self.api = openapi_client.api.secure_refunds_api.SecureRefundsApi() diff --git a/test/test_secure_reports_api.py b/test/test_secure_reports_api.py index 5227242..000f3e1 100644 --- a/test/test_secure_reports_api.py +++ b/test/test_secure_reports_api.py @@ -23,14 +23,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure payments api functions as an object self.api = SecureReportsApi() diff --git a/test/test_secure_token_links_api.py b/test/test_secure_token_links_api.py index 9023f25..1d92237 100644 --- a/test/test_secure_token_links_api.py +++ b/test/test_secure_token_links_api.py @@ -24,14 +24,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure token links api functions as an object self.api = openapi_client.api.secure_token_links_api.SecureTokenLinksApi() # noqa: E501 diff --git a/test/test_secure_token_management_api.py b/test/test_secure_token_management_api.py index 4774a1e..5e8593d 100644 --- a/test/test_secure_token_management_api.py +++ b/test/test_secure_token_management_api.py @@ -22,14 +22,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure token management api functions as an object self.api = SecureTokenManagementApi() diff --git a/test/test_secure_vendor_management_api.py b/test/test_secure_vendor_management_api.py index 0c73981..ae9b6aa 100644 --- a/test/test_secure_vendor_management_api.py +++ b/test/test_secure_vendor_management_api.py @@ -23,14 +23,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' self.api = SecureVendorManagementApi() diff --git a/test/test_secure_voids_api.py b/test/test_secure_voids_api.py index 0f17ec2..8f53fbd 100644 --- a/test/test_secure_voids_api.py +++ b/test/test_secure_voids_api.py @@ -23,14 +23,18 @@ 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 + # # 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_key = '' + self.app_key = '' + self.version = 2.3 + self.origin = '' # store secure payments api functions as an object self.api = SecureVoidsApi() From 020cc09cf159997dddde7ab1361c8275dac98738 Mon Sep 17 00:00:00 2001 From: Dylan-FMK Date: Mon, 11 May 2026 14:01:14 -0700 Subject: [PATCH 3/3] fixed x-version values x-version incorrectly applied as integer in tests, swapped to string --- test/ApiExplorerTests.py | 2 +- test/test_secure_embedded_premium_finance_api.py | 2 +- test/test_secure_embedded_premium_finance_endorsements_api.py | 2 +- test/test_secure_orum_api.py | 2 +- test/test_secure_outbound_payments_api.py | 2 +- test/test_secure_payment_batching_api.py | 2 +- test/test_secure_payment_intent_api.py | 2 +- test/test_secure_payment_links_api.py | 4 ++-- test/test_secure_payments_api.py | 2 +- test/test_secure_premium_finance_lite_api.py | 2 +- test/test_secure_refunds_api.py | 2 +- test/test_secure_reports_api.py | 2 +- test/test_secure_token_links_api.py | 2 +- test/test_secure_token_management_api.py | 2 +- test/test_secure_vendor_management_api.py | 2 +- test/test_secure_voids_api.py | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/test/ApiExplorerTests.py b/test/ApiExplorerTests.py index 74b09d2..db7bd2d 100644 --- a/test/ApiExplorerTests.py +++ b/test/ApiExplorerTests.py @@ -25,7 +25,7 @@ x_api_key = '' x_app_key = '' -x_version = 2.3 +x_version = '2.3' origin = '' # configuration = Configuration( # host="https://api2.uat.anddone.com", server_index=1 diff --git a/test/test_secure_embedded_premium_finance_api.py b/test/test_secure_embedded_premium_finance_api.py index 231916c..14b1761 100644 --- a/test/test_secure_embedded_premium_finance_api.py +++ b/test/test_secure_embedded_premium_finance_api.py @@ -33,7 +33,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store EPF and Endorsement functions as objects diff --git a/test/test_secure_embedded_premium_finance_endorsements_api.py b/test/test_secure_embedded_premium_finance_endorsements_api.py index 7fa0d24..5101ac8 100644 --- a/test/test_secure_embedded_premium_finance_endorsements_api.py +++ b/test/test_secure_embedded_premium_finance_endorsements_api.py @@ -32,7 +32,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store EPF and Endorsement functions as objects diff --git a/test/test_secure_orum_api.py b/test/test_secure_orum_api.py index 54b337e..9a3a14e 100644 --- a/test/test_secure_orum_api.py +++ b/test/test_secure_orum_api.py @@ -32,7 +32,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store Orum functions as objects diff --git a/test/test_secure_outbound_payments_api.py b/test/test_secure_outbound_payments_api.py index 0d59e0c..fc08061 100644 --- a/test/test_secure_outbound_payments_api.py +++ b/test/test_secure_outbound_payments_api.py @@ -33,7 +33,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # self.config = Configuration() diff --git a/test/test_secure_payment_batching_api.py b/test/test_secure_payment_batching_api.py index 3cbac7d..2c2ea36 100644 --- a/test/test_secure_payment_batching_api.py +++ b/test/test_secure_payment_batching_api.py @@ -38,7 +38,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure payment batching api functions as an object diff --git a/test/test_secure_payment_intent_api.py b/test/test_secure_payment_intent_api.py index d754ab0..7a4a5e0 100644 --- a/test/test_secure_payment_intent_api.py +++ b/test/test_secure_payment_intent_api.py @@ -37,7 +37,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure payment intent api functions as an object diff --git a/test/test_secure_payment_links_api.py b/test/test_secure_payment_links_api.py index 7545a6c..9e6de5c 100644 --- a/test/test_secure_payment_links_api.py +++ b/test/test_secure_payment_links_api.py @@ -14,7 +14,7 @@ import unittest import datetime -import pytest +# import pytest import json import openapi_client @@ -36,7 +36,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure payment link api functions as an object diff --git a/test/test_secure_payments_api.py b/test/test_secure_payments_api.py index f39e881..1150234 100644 --- a/test/test_secure_payments_api.py +++ b/test/test_secure_payments_api.py @@ -36,7 +36,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure payments api functions as an object diff --git a/test/test_secure_premium_finance_lite_api.py b/test/test_secure_premium_finance_lite_api.py index d2a2712..bcd040e 100644 --- a/test/test_secure_premium_finance_lite_api.py +++ b/test/test_secure_premium_finance_lite_api.py @@ -37,7 +37,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure token links api functions as an object diff --git a/test/test_secure_refunds_api.py b/test/test_secure_refunds_api.py index f07c636..1a8cd6d 100644 --- a/test/test_secure_refunds_api.py +++ b/test/test_secure_refunds_api.py @@ -33,7 +33,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure payment link api functions as an object diff --git a/test/test_secure_reports_api.py b/test/test_secure_reports_api.py index 000f3e1..b167c1e 100644 --- a/test/test_secure_reports_api.py +++ b/test/test_secure_reports_api.py @@ -33,7 +33,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure payments api functions as an object diff --git a/test/test_secure_token_links_api.py b/test/test_secure_token_links_api.py index 1d92237..2481ab6 100644 --- a/test/test_secure_token_links_api.py +++ b/test/test_secure_token_links_api.py @@ -34,7 +34,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure token links api functions as an object diff --git a/test/test_secure_token_management_api.py b/test/test_secure_token_management_api.py index 5e8593d..e247d38 100644 --- a/test/test_secure_token_management_api.py +++ b/test/test_secure_token_management_api.py @@ -32,7 +32,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure token management api functions as an object diff --git a/test/test_secure_vendor_management_api.py b/test/test_secure_vendor_management_api.py index ae9b6aa..ebf3689 100644 --- a/test/test_secure_vendor_management_api.py +++ b/test/test_secure_vendor_management_api.py @@ -33,7 +33,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' self.api = SecureVendorManagementApi() diff --git a/test/test_secure_voids_api.py b/test/test_secure_voids_api.py index 8f53fbd..65abe68 100644 --- a/test/test_secure_voids_api.py +++ b/test/test_secure_voids_api.py @@ -33,7 +33,7 @@ def setUp(self) -> None: # self.origin = config.origin self.api_key = '' self.app_key = '' - self.version = 2.3 + self.version = '2.3' self.origin = '' # store secure payments api functions as an object