unit-openapi-python-sdk 0.0.2__py3-none-any.whl → 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- unit_finance_sdk/__init__.py +1090 -0
- unit_finance_sdk/api/__init__.py +13 -0
- unit_finance_sdk/api/accounts_api.py +5206 -0
- unit_finance_sdk/api/applications_api.py +1866 -0
- unit_finance_sdk/api/cards_api.py +3636 -0
- unit_finance_sdk/api/check_deposits_api.py +3370 -0
- unit_finance_sdk/api/counterparties_api.py +1853 -0
- unit_finance_sdk/api/customers_api.py +1899 -0
- unit_finance_sdk/api/fees_api.py +604 -0
- unit_finance_sdk/api/payments_api.py +6892 -0
- unit_finance_sdk/api/transactions_api.py +1497 -0
- unit_finance_sdk/api_client.py +804 -0
- unit_finance_sdk/api_response.py +21 -0
- unit_finance_sdk/configuration.py +606 -0
- unit_finance_sdk/exceptions.py +218 -0
- unit_finance_sdk/models/__init__.py +529 -0
- unit_finance_sdk/models/account_end_of_day.py +122 -0
- unit_finance_sdk/models/account_end_of_day_attributes.py +110 -0
- unit_finance_sdk/models/account_end_of_day_relationships.py +115 -0
- unit_finance_sdk/models/account_hold.py +122 -0
- unit_finance_sdk/models/account_hold_attributes.py +114 -0
- unit_finance_sdk/models/account_low_balance_closure_transaction.py +122 -0
- unit_finance_sdk/models/account_low_balance_closure_transaction_attributes.py +118 -0
- unit_finance_sdk/models/account_low_balance_closure_transaction_relationships.py +120 -0
- unit_finance_sdk/models/ach_counterparty.py +122 -0
- unit_finance_sdk/models/ach_counterparty_attributes.py +118 -0
- unit_finance_sdk/models/ach_payment.py +122 -0
- unit_finance_sdk/models/ach_payment_attributes.py +137 -0
- unit_finance_sdk/models/ach_payment_relationships.py +130 -0
- unit_finance_sdk/models/ach_received_payment.py +122 -0
- unit_finance_sdk/models/ach_received_payment_attributes.py +138 -0
- unit_finance_sdk/models/ach_received_payment_relationships.py +130 -0
- unit_finance_sdk/models/add_account_owners200_response.py +105 -0
- unit_finance_sdk/models/add_account_owners_request.py +109 -0
- unit_finance_sdk/models/address_type.py +112 -0
- unit_finance_sdk/models/adjustment_transaction.py +122 -0
- unit_finance_sdk/models/adjustment_transaction_attributes.py +114 -0
- unit_finance_sdk/models/annual_income_type.py +41 -0
- unit_finance_sdk/models/annual_revenue_type.py +45 -0
- unit_finance_sdk/models/application_document.py +116 -0
- unit_finance_sdk/models/application_document_attributes.py +126 -0
- unit_finance_sdk/models/archive_customer_data.py +114 -0
- unit_finance_sdk/models/archive_customer_data_attributes.py +101 -0
- unit_finance_sdk/models/archive_customer_request.py +105 -0
- unit_finance_sdk/models/atm_transaction.py +122 -0
- unit_finance_sdk/models/atm_transaction_attributes.py +134 -0
- unit_finance_sdk/models/atm_transaction_relationships.py +120 -0
- unit_finance_sdk/models/authorized_user_type.py +117 -0
- unit_finance_sdk/models/batch_release.py +122 -0
- unit_finance_sdk/models/batch_release_attributes.py +113 -0
- unit_finance_sdk/models/batch_release_relationships.py +110 -0
- unit_finance_sdk/models/beneficial_owner.py +116 -0
- unit_finance_sdk/models/beneficial_owner_attributes.py +140 -0
- unit_finance_sdk/models/beneficial_owner_request_type.py +136 -0
- unit_finance_sdk/models/beneficial_owner_type.py +142 -0
- unit_finance_sdk/models/book_payment.py +122 -0
- unit_finance_sdk/models/book_payment_attributes.py +116 -0
- unit_finance_sdk/models/book_payment_relationships.py +135 -0
- unit_finance_sdk/models/book_transaction.py +122 -0
- unit_finance_sdk/models/book_transaction_attributes.py +118 -0
- unit_finance_sdk/models/book_transaction_relationships.py +135 -0
- unit_finance_sdk/models/business_annual_revenue_type.py +40 -0
- unit_finance_sdk/models/business_application.py +122 -0
- unit_finance_sdk/models/business_application_attributes.py +197 -0
- unit_finance_sdk/models/business_application_relationships.py +131 -0
- unit_finance_sdk/models/business_contact_type.py +115 -0
- unit_finance_sdk/models/business_credit_card.py +118 -0
- unit_finance_sdk/models/business_customer.py +122 -0
- unit_finance_sdk/models/business_customer_attributes.py +188 -0
- unit_finance_sdk/models/business_customer_relationships.py +125 -0
- unit_finance_sdk/models/business_debit_card.py +122 -0
- unit_finance_sdk/models/business_debit_card_attributes.py +148 -0
- unit_finance_sdk/models/business_number_of_employees_type.py +40 -0
- unit_finance_sdk/models/business_vertical_type.py +66 -0
- unit_finance_sdk/models/business_virtual_credit_card.py +118 -0
- unit_finance_sdk/models/business_virtual_debit_card.py +122 -0
- unit_finance_sdk/models/business_virtual_debit_card_attributes.py +141 -0
- unit_finance_sdk/models/business_wallet_customer.py +122 -0
- unit_finance_sdk/models/business_wallet_customer_attributes.py +124 -0
- unit_finance_sdk/models/business_wallet_customer_relationships.py +105 -0
- unit_finance_sdk/models/cancel_application201_response.py +115 -0
- unit_finance_sdk/models/cancel_application_data.py +114 -0
- unit_finance_sdk/models/cancel_application_data_attributes.py +101 -0
- unit_finance_sdk/models/cancel_application_request.py +105 -0
- unit_finance_sdk/models/cancel_payment200_response.py +105 -0
- unit_finance_sdk/models/cancel_payment200_response_data.py +140 -0
- unit_finance_sdk/models/card_reversal_transaction.py +122 -0
- unit_finance_sdk/models/card_reversal_transaction_attributes.py +114 -0
- unit_finance_sdk/models/card_reversal_transaction_relationships.py +125 -0
- unit_finance_sdk/models/card_transaction.py +122 -0
- unit_finance_sdk/models/card_transaction_attributes.py +152 -0
- unit_finance_sdk/models/card_transaction_attributes_card_verification_data.py +101 -0
- unit_finance_sdk/models/card_transaction_attributes_merchant.py +109 -0
- unit_finance_sdk/models/card_transaction_relationships.py +125 -0
- unit_finance_sdk/models/cash_deposit_barcode.py +122 -0
- unit_finance_sdk/models/cash_deposit_barcode_attributes.py +108 -0
- unit_finance_sdk/models/cash_deposit_barcode_relationships.py +110 -0
- unit_finance_sdk/models/cash_deposit_transaction.py +122 -0
- unit_finance_sdk/models/cash_deposit_transaction_attributes.py +112 -0
- unit_finance_sdk/models/cash_flow_type.py +37 -0
- unit_finance_sdk/models/chargeback_transaction.py +122 -0
- unit_finance_sdk/models/chargeback_transaction_attributes.py +118 -0
- unit_finance_sdk/models/chargeback_transaction_relationships.py +125 -0
- unit_finance_sdk/models/check_counterparty_type.py +105 -0
- unit_finance_sdk/models/check_deposit.py +122 -0
- unit_finance_sdk/models/check_deposit_attributes.py +124 -0
- unit_finance_sdk/models/check_deposit_relationships.py +120 -0
- unit_finance_sdk/models/check_deposit_transaction.py +122 -0
- unit_finance_sdk/models/check_deposit_transaction_attributes.py +112 -0
- unit_finance_sdk/models/check_deposit_transaction_relationships.py +120 -0
- unit_finance_sdk/models/check_payment_transaction.py +122 -0
- unit_finance_sdk/models/check_payment_transaction_relationships.py +120 -0
- unit_finance_sdk/models/clear_ach_debit_payment200_response.py +105 -0
- unit_finance_sdk/models/close_account_request.py +151 -0
- unit_finance_sdk/models/close_card200_response.py +105 -0
- unit_finance_sdk/models/close_credit_account_data.py +114 -0
- unit_finance_sdk/models/close_credit_account_data_attributes.py +103 -0
- unit_finance_sdk/models/close_credit_account_request.py +105 -0
- unit_finance_sdk/models/close_deposit_account_data.py +114 -0
- unit_finance_sdk/models/close_deposit_account_data_attributes.py +105 -0
- unit_finance_sdk/models/close_deposit_account_request.py +105 -0
- unit_finance_sdk/models/close_wallet_data.py +114 -0
- unit_finance_sdk/models/close_wallet_data_attributes.py +105 -0
- unit_finance_sdk/models/close_wallet_request.py +105 -0
- unit_finance_sdk/models/coordinates_type.py +103 -0
- unit_finance_sdk/models/counterparty_balance.py +122 -0
- unit_finance_sdk/models/counterparty_balance_attributes.py +103 -0
- unit_finance_sdk/models/counterparty_balance_relationships.py +110 -0
- unit_finance_sdk/models/counterparty_type.py +107 -0
- unit_finance_sdk/models/create_a_book_payment_data.py +120 -0
- unit_finance_sdk/models/create_a_book_payment_data_attributes.py +109 -0
- unit_finance_sdk/models/create_a_book_payment_data_relationships.py +110 -0
- unit_finance_sdk/models/create_a_book_payment_request.py +105 -0
- unit_finance_sdk/models/create_a_wire_payment_data.py +120 -0
- unit_finance_sdk/models/create_a_wire_payment_data_attributes.py +113 -0
- unit_finance_sdk/models/create_a_wire_payment_request.py +105 -0
- unit_finance_sdk/models/create_account201_response.py +105 -0
- unit_finance_sdk/models/create_account_hold201_response.py +105 -0
- unit_finance_sdk/models/create_account_hold_data.py +120 -0
- unit_finance_sdk/models/create_account_hold_data_attributes.py +108 -0
- unit_finance_sdk/models/create_account_hold_request.py +105 -0
- unit_finance_sdk/models/create_account_request.py +151 -0
- unit_finance_sdk/models/create_ach_payment_data.py +120 -0
- unit_finance_sdk/models/create_ach_payment_data_attributes.py +123 -0
- unit_finance_sdk/models/create_ach_payment_existing_counterparty_data.py +120 -0
- unit_finance_sdk/models/create_ach_payment_existing_counterparty_data_attributes.py +119 -0
- unit_finance_sdk/models/create_ach_payment_existing_counterparty_data_relationships.py +110 -0
- unit_finance_sdk/models/create_ach_payment_existing_counterparty_request.py +105 -0
- unit_finance_sdk/models/create_ach_payment_plaid_token_data.py +120 -0
- unit_finance_sdk/models/create_ach_payment_plaid_token_data_attributes.py +123 -0
- unit_finance_sdk/models/create_ach_payment_plaid_token_request.py +105 -0
- unit_finance_sdk/models/create_ach_payment_request.py +105 -0
- unit_finance_sdk/models/create_application201_response.py +115 -0
- unit_finance_sdk/models/create_application201_response_included_inner.py +140 -0
- unit_finance_sdk/models/create_application_request.py +151 -0
- unit_finance_sdk/models/create_batch_releases201_response.py +109 -0
- unit_finance_sdk/models/create_batch_releases_data.py +114 -0
- unit_finance_sdk/models/create_batch_releases_data_attributes.py +117 -0
- unit_finance_sdk/models/create_batch_releases_request.py +105 -0
- unit_finance_sdk/models/create_bulk_payment201_response.py +105 -0
- unit_finance_sdk/models/create_bulk_payment201_response_data.py +107 -0
- unit_finance_sdk/models/create_bulk_payment201_response_data_attributes.py +101 -0
- unit_finance_sdk/models/create_bulk_payment_request.py +109 -0
- unit_finance_sdk/models/create_bulk_payment_request_data_inner.py +179 -0
- unit_finance_sdk/models/create_business_application_data.py +114 -0
- unit_finance_sdk/models/create_business_application_data_attributes.py +189 -0
- unit_finance_sdk/models/create_business_application_request.py +105 -0
- unit_finance_sdk/models/create_business_credit_card_data.py +120 -0
- unit_finance_sdk/models/create_business_credit_card_data_attributes.py +148 -0
- unit_finance_sdk/models/create_business_credit_card_request.py +105 -0
- unit_finance_sdk/models/create_business_debit_card_data.py +120 -0
- unit_finance_sdk/models/create_business_debit_card_request.py +105 -0
- unit_finance_sdk/models/create_business_virtual_credit_card_data.py +120 -0
- unit_finance_sdk/models/create_business_virtual_credit_card_data_attributes.py +137 -0
- unit_finance_sdk/models/create_business_virtual_credit_card_request.py +105 -0
- unit_finance_sdk/models/create_business_virtual_debit_card_data.py +120 -0
- unit_finance_sdk/models/create_business_virtual_debit_card_data_attributes.py +137 -0
- unit_finance_sdk/models/create_business_virtual_debit_card_request.py +105 -0
- unit_finance_sdk/models/create_business_wallet_customer201_response.py +105 -0
- unit_finance_sdk/models/create_business_wallet_customer_data.py +114 -0
- unit_finance_sdk/models/create_business_wallet_customer_data_attributes.py +119 -0
- unit_finance_sdk/models/create_business_wallet_customer_request.py +105 -0
- unit_finance_sdk/models/create_card201_response.py +105 -0
- unit_finance_sdk/models/create_card201_response_data.py +196 -0
- unit_finance_sdk/models/create_card_request.py +193 -0
- unit_finance_sdk/models/create_check_deposit201_response.py +105 -0
- unit_finance_sdk/models/create_check_deposit_data.py +120 -0
- unit_finance_sdk/models/create_check_deposit_data_attributes.py +109 -0
- unit_finance_sdk/models/create_check_deposit_request.py +105 -0
- unit_finance_sdk/models/create_check_deposit_send_link201_response.py +105 -0
- unit_finance_sdk/models/create_check_deposit_send_link201_response_data.py +108 -0
- unit_finance_sdk/models/create_check_deposit_send_link_data.py +120 -0
- unit_finance_sdk/models/create_check_deposit_send_link_data_attributes.py +103 -0
- unit_finance_sdk/models/create_check_deposit_send_link_data_relationships.py +115 -0
- unit_finance_sdk/models/create_check_deposit_send_link_request.py +105 -0
- unit_finance_sdk/models/create_counterparty201_response.py +105 -0
- unit_finance_sdk/models/create_counterparty_body.py +137 -0
- unit_finance_sdk/models/create_counterparty_data.py +120 -0
- unit_finance_sdk/models/create_counterparty_data_attributes.py +115 -0
- unit_finance_sdk/models/create_counterparty_request.py +105 -0
- unit_finance_sdk/models/create_counterparty_with_plaid_token_data.py +120 -0
- unit_finance_sdk/models/create_counterparty_with_plaid_token_data_attributes.py +113 -0
- unit_finance_sdk/models/create_counterparty_with_plaid_token_request.py +105 -0
- unit_finance_sdk/models/create_credit_account_data.py +120 -0
- unit_finance_sdk/models/create_credit_account_data_attributes.py +107 -0
- unit_finance_sdk/models/create_credit_account_request.py +105 -0
- unit_finance_sdk/models/create_deposit_account_data.py +120 -0
- unit_finance_sdk/models/create_deposit_account_data_attributes.py +105 -0
- unit_finance_sdk/models/create_deposit_account_data_relationships.py +105 -0
- unit_finance_sdk/models/create_deposit_account_request.py +105 -0
- unit_finance_sdk/models/create_fee201_response.py +105 -0
- unit_finance_sdk/models/create_fee_data.py +120 -0
- unit_finance_sdk/models/create_fee_data_attributes.py +107 -0
- unit_finance_sdk/models/create_fee_data_relationships.py +105 -0
- unit_finance_sdk/models/create_fee_request.py +105 -0
- unit_finance_sdk/models/create_individual_application_data.py +114 -0
- unit_finance_sdk/models/create_individual_application_data_attributes.py +158 -0
- unit_finance_sdk/models/create_individual_application_request.py +105 -0
- unit_finance_sdk/models/create_individual_debit_card_data.py +120 -0
- unit_finance_sdk/models/create_individual_debit_card_data_attributes.py +119 -0
- unit_finance_sdk/models/create_individual_debit_card_request.py +105 -0
- unit_finance_sdk/models/create_individual_virtual_debit_card_data.py +120 -0
- unit_finance_sdk/models/create_individual_virtual_debit_card_data_attributes.py +107 -0
- unit_finance_sdk/models/create_individual_virtual_debit_card_request.py +105 -0
- unit_finance_sdk/models/create_payment201_response.py +105 -0
- unit_finance_sdk/models/create_payment201_response_data.py +154 -0
- unit_finance_sdk/models/create_payment_request.py +179 -0
- unit_finance_sdk/models/create_recurring_credit_ach_payment_data.py +120 -0
- unit_finance_sdk/models/create_recurring_credit_ach_payment_data_attributes.py +117 -0
- unit_finance_sdk/models/create_recurring_credit_ach_payment_request.py +105 -0
- unit_finance_sdk/models/create_recurring_credit_book_payment_data.py +120 -0
- unit_finance_sdk/models/create_recurring_credit_book_payment_data_attributes.py +115 -0
- unit_finance_sdk/models/create_recurring_credit_book_payment_request.py +105 -0
- unit_finance_sdk/models/create_recurring_debit_ach_payment_data.py +120 -0
- unit_finance_sdk/models/create_recurring_debit_ach_payment_data_attributes.py +119 -0
- unit_finance_sdk/models/create_recurring_debit_ach_payment_request.py +105 -0
- unit_finance_sdk/models/create_recurring_payment201_response.py +105 -0
- unit_finance_sdk/models/create_recurring_payment_request.py +151 -0
- unit_finance_sdk/models/create_schedule_type.py +112 -0
- unit_finance_sdk/models/create_sole_proprietor_application_data.py +114 -0
- unit_finance_sdk/models/create_sole_proprietor_application_data_attributes.py +174 -0
- unit_finance_sdk/models/create_sole_proprietor_application_request.py +105 -0
- unit_finance_sdk/models/create_wallet_data.py +120 -0
- unit_finance_sdk/models/create_wallet_data_attributes.py +105 -0
- unit_finance_sdk/models/create_wallet_request.py +105 -0
- unit_finance_sdk/models/credit_account.py +122 -0
- unit_finance_sdk/models/credit_account_attributes.py +130 -0
- unit_finance_sdk/models/credit_account_relationships.py +105 -0
- unit_finance_sdk/models/currency_conversion_type.py +105 -0
- unit_finance_sdk/models/deposit_account.py +122 -0
- unit_finance_sdk/models/deposit_account_attributes.py +138 -0
- unit_finance_sdk/models/deposit_account_relationships.py +110 -0
- unit_finance_sdk/models/device_fingerprint_type.py +103 -0
- unit_finance_sdk/models/dishonored_ach_transaction.py +122 -0
- unit_finance_sdk/models/dishonored_ach_transaction_attributes.py +124 -0
- unit_finance_sdk/models/dispute_transaction.py +122 -0
- unit_finance_sdk/models/dispute_transaction_attributes.py +116 -0
- unit_finance_sdk/models/dispute_transaction_relationships.py +120 -0
- unit_finance_sdk/models/error_document.py +109 -0
- unit_finance_sdk/models/error_document_errors_inner.py +115 -0
- unit_finance_sdk/models/error_document_errors_inner_source.py +101 -0
- unit_finance_sdk/models/fee.py +122 -0
- unit_finance_sdk/models/fee_attributes.py +105 -0
- unit_finance_sdk/models/fee_relationships.py +105 -0
- unit_finance_sdk/models/fee_reversal.py +122 -0
- unit_finance_sdk/models/fee_reversal_attributes.py +103 -0
- unit_finance_sdk/models/fee_reversal_relationships.py +110 -0
- unit_finance_sdk/models/fee_reversal_transaction.py +122 -0
- unit_finance_sdk/models/fee_reversal_transaction_relationships.py +120 -0
- unit_finance_sdk/models/fee_transaction.py +122 -0
- unit_finance_sdk/models/freeze_account_request.py +151 -0
- unit_finance_sdk/models/freeze_card_data.py +114 -0
- unit_finance_sdk/models/freeze_card_data_attributes.py +101 -0
- unit_finance_sdk/models/freeze_card_request.py +105 -0
- unit_finance_sdk/models/freeze_credit_account_data.py +114 -0
- unit_finance_sdk/models/freeze_credit_account_request.py +105 -0
- unit_finance_sdk/models/freeze_deposit_account_data.py +114 -0
- unit_finance_sdk/models/freeze_deposit_account_data_attributes.py +103 -0
- unit_finance_sdk/models/freeze_deposit_account_request.py +105 -0
- unit_finance_sdk/models/freeze_wallet_data.py +114 -0
- unit_finance_sdk/models/freeze_wallet_data_attributes.py +103 -0
- unit_finance_sdk/models/freeze_wallet_request.py +105 -0
- unit_finance_sdk/models/full_name_type.py +103 -0
- unit_finance_sdk/models/generate_barcode_data.py +120 -0
- unit_finance_sdk/models/generate_barcode_data_attributes.py +101 -0
- unit_finance_sdk/models/generate_barcode_data_relationships.py +110 -0
- unit_finance_sdk/models/generate_cash_deposit_barcode200_response.py +105 -0
- unit_finance_sdk/models/generate_cash_deposit_barcode_request.py +105 -0
- unit_finance_sdk/models/get_account_balance_history200_response.py +115 -0
- unit_finance_sdk/models/get_account_limits200_response.py +105 -0
- unit_finance_sdk/models/get_account_limits200_response_data.py +105 -0
- unit_finance_sdk/models/get_available_deposit_products200_response.py +109 -0
- unit_finance_sdk/models/get_available_deposit_products200_response_data_inner.py +107 -0
- unit_finance_sdk/models/get_available_deposit_products200_response_data_inner_attributes.py +101 -0
- unit_finance_sdk/models/get_card200_response.py +115 -0
- unit_finance_sdk/models/get_card_pin_status200_response.py +105 -0
- unit_finance_sdk/models/get_check_deposit200_response.py +115 -0
- unit_finance_sdk/models/get_counterparty_balance200_response.py +105 -0
- unit_finance_sdk/models/get_customer200_response.py +115 -0
- unit_finance_sdk/models/get_expected_ach_completion_date200_response.py +105 -0
- unit_finance_sdk/models/get_expected_ach_completion_date200_response_data.py +103 -0
- unit_finance_sdk/models/get_expected_ach_completion_date_data.py +120 -0
- unit_finance_sdk/models/get_expected_ach_completion_date_data_attributes.py +108 -0
- unit_finance_sdk/models/get_expected_ach_completion_date_request.py +105 -0
- unit_finance_sdk/models/get_received_payment200_response.py +115 -0
- unit_finance_sdk/models/get_transaction200_response.py +115 -0
- unit_finance_sdk/models/get_wire_drawdown200_response.py +115 -0
- unit_finance_sdk/models/individual_application.py +122 -0
- unit_finance_sdk/models/individual_application_attributes.py +154 -0
- unit_finance_sdk/models/individual_application_relationships.py +121 -0
- unit_finance_sdk/models/individual_customer.py +118 -0
- unit_finance_sdk/models/individual_customer_relationships.py +115 -0
- unit_finance_sdk/models/individual_debit_card.py +122 -0
- unit_finance_sdk/models/individual_debit_card_attributes.py +120 -0
- unit_finance_sdk/models/individual_virtual_debit_card.py +122 -0
- unit_finance_sdk/models/individual_virtual_debit_card_attributes.py +112 -0
- unit_finance_sdk/models/industry_type.py +47 -0
- unit_finance_sdk/models/interest_share_transaction.py +122 -0
- unit_finance_sdk/models/interest_share_transaction_relationships.py +120 -0
- unit_finance_sdk/models/interest_transaction.py +122 -0
- unit_finance_sdk/models/list200_response.py +115 -0
- unit_finance_sdk/models/list200_response_data_inner.py +140 -0
- unit_finance_sdk/models/list_account_holds200_response.py +115 -0
- unit_finance_sdk/models/list_accounts200_response.py +111 -0
- unit_finance_sdk/models/list_accounts200_response_data_inner.py +154 -0
- unit_finance_sdk/models/list_cards200_response.py +119 -0
- unit_finance_sdk/models/list_cards200_response_data_inner.py +168 -0
- unit_finance_sdk/models/list_check_deposits200_response.py +125 -0
- unit_finance_sdk/models/list_counterparties200_response.py +109 -0
- unit_finance_sdk/models/list_customers200_response.py +115 -0
- unit_finance_sdk/models/list_customers200_response_data_inner.py +140 -0
- unit_finance_sdk/models/list_received_payments200_response.py +125 -0
- unit_finance_sdk/models/list_received_payments200_response_data_inner.py +140 -0
- unit_finance_sdk/models/list_recurring_payments200_response.py +115 -0
- unit_finance_sdk/models/list_recurring_payments200_response_data_inner.py +154 -0
- unit_finance_sdk/models/list_store_locations200_response.py +115 -0
- unit_finance_sdk/models/list_transactions200_response.py +125 -0
- unit_finance_sdk/models/list_transactions200_response_included_inner.py +140 -0
- unit_finance_sdk/models/list_wire_drawdowns200_response.py +125 -0
- unit_finance_sdk/models/meta.py +105 -0
- unit_finance_sdk/models/meta_pagination.py +105 -0
- unit_finance_sdk/models/negative_balance_coverage_transaction.py +122 -0
- unit_finance_sdk/models/number_of_employees_type.py +44 -0
- unit_finance_sdk/models/occupation_type.py +58 -0
- unit_finance_sdk/models/officer.py +122 -0
- unit_finance_sdk/models/officer_attributes.py +142 -0
- unit_finance_sdk/models/officer_relationships.py +110 -0
- unit_finance_sdk/models/officer_request_type.py +136 -0
- unit_finance_sdk/models/officer_type.py +144 -0
- unit_finance_sdk/models/originated_ach_transaction.py +122 -0
- unit_finance_sdk/models/originated_ach_transaction_attributes.py +126 -0
- unit_finance_sdk/models/originated_ach_transaction_relationships.py +125 -0
- unit_finance_sdk/models/payment_advance_transaction.py +122 -0
- unit_finance_sdk/models/payment_advance_transaction_attributes.py +112 -0
- unit_finance_sdk/models/payment_advance_transaction_relationships.py +115 -0
- unit_finance_sdk/models/payment_canceled_transaction.py +122 -0
- unit_finance_sdk/models/payment_canceled_transaction_relationships.py +125 -0
- unit_finance_sdk/models/phone_type.py +103 -0
- unit_finance_sdk/models/pin_status.py +114 -0
- unit_finance_sdk/models/pin_status_attributes.py +101 -0
- unit_finance_sdk/models/product_type.py +38 -0
- unit_finance_sdk/models/purchase_transaction.py +122 -0
- unit_finance_sdk/models/purchase_transaction_attributes.py +164 -0
- unit_finance_sdk/models/purchase_transaction_attributes_merchant.py +109 -0
- unit_finance_sdk/models/purchase_transaction_relationships.py +130 -0
- unit_finance_sdk/models/push_to_card_reversal_transaction.py +122 -0
- unit_finance_sdk/models/push_to_card_reversal_transaction_relationships.py +130 -0
- unit_finance_sdk/models/push_to_card_transaction.py +122 -0
- unit_finance_sdk/models/push_to_card_transaction_relationships.py +125 -0
- unit_finance_sdk/models/real_time_counterparty_type.py +105 -0
- unit_finance_sdk/models/realtime_received_payment.py +122 -0
- unit_finance_sdk/models/realtime_received_payment_attributes.py +120 -0
- unit_finance_sdk/models/realtime_received_payment_relationships.py +115 -0
- unit_finance_sdk/models/received_ach_transaction.py +122 -0
- unit_finance_sdk/models/received_ach_transaction_attributes.py +124 -0
- unit_finance_sdk/models/recurring_credit_ach_payment.py +122 -0
- unit_finance_sdk/models/recurring_credit_ach_payment_attributes.py +122 -0
- unit_finance_sdk/models/recurring_credit_ach_payment_relationships.py +120 -0
- unit_finance_sdk/models/recurring_credit_book_payment.py +122 -0
- unit_finance_sdk/models/recurring_credit_book_payment_attributes.py +122 -0
- unit_finance_sdk/models/recurring_credit_book_payment_relationships.py +120 -0
- unit_finance_sdk/models/recurring_debit_ach_payment.py +122 -0
- unit_finance_sdk/models/relationship.py +110 -0
- unit_finance_sdk/models/relationship_data.py +146 -0
- unit_finance_sdk/models/release_account_hold_data.py +114 -0
- unit_finance_sdk/models/release_account_hold_data_attributes.py +103 -0
- unit_finance_sdk/models/release_account_hold_request.py +105 -0
- unit_finance_sdk/models/release_transaction.py +122 -0
- unit_finance_sdk/models/release_transaction_attributes.py +130 -0
- unit_finance_sdk/models/remove_account_owners_request.py +109 -0
- unit_finance_sdk/models/reopen_account200_response.py +105 -0
- unit_finance_sdk/models/reopen_account200_response_data.py +140 -0
- unit_finance_sdk/models/repaid_payment_advance_transaction.py +122 -0
- unit_finance_sdk/models/repaid_payment_advance_transaction_attributes.py +112 -0
- unit_finance_sdk/models/repaid_payment_advance_transaction_relationships.py +120 -0
- unit_finance_sdk/models/replace_card200_response.py +105 -0
- unit_finance_sdk/models/replace_card200_response_data.py +140 -0
- unit_finance_sdk/models/replace_card_data.py +114 -0
- unit_finance_sdk/models/replace_card_data_attributes.py +105 -0
- unit_finance_sdk/models/replace_card_request.py +105 -0
- unit_finance_sdk/models/requested_product_type.py +40 -0
- unit_finance_sdk/models/resource_identifier.py +103 -0
- unit_finance_sdk/models/returned_ach_transaction.py +122 -0
- unit_finance_sdk/models/returned_ach_transaction_attributes.py +120 -0
- unit_finance_sdk/models/returned_ach_transaction_relationships.py +120 -0
- unit_finance_sdk/models/returned_check_deposit_transaction.py +122 -0
- unit_finance_sdk/models/returned_check_deposit_transaction_attributes.py +114 -0
- unit_finance_sdk/models/returned_check_payment_transaction.py +122 -0
- unit_finance_sdk/models/returned_check_payment_transaction_attributes.py +114 -0
- unit_finance_sdk/models/returned_received_ach_transaction.py +122 -0
- unit_finance_sdk/models/returned_received_ach_transaction_attributes.py +116 -0
- unit_finance_sdk/models/returned_received_ach_transaction_relationships.py +120 -0
- unit_finance_sdk/models/returned_wire_transaction.py +122 -0
- unit_finance_sdk/models/returned_wire_transaction_attributes.py +118 -0
- unit_finance_sdk/models/reverse_fee201_response.py +105 -0
- unit_finance_sdk/models/reverse_fee_data.py +120 -0
- unit_finance_sdk/models/reverse_fee_data_attributes.py +105 -0
- unit_finance_sdk/models/reverse_fee_data_relationships.py +110 -0
- unit_finance_sdk/models/reverse_fee_request.py +105 -0
- unit_finance_sdk/models/reward_transaction.py +122 -0
- unit_finance_sdk/models/reward_transaction_attributes.py +118 -0
- unit_finance_sdk/models/reward_transaction_relationships.py +125 -0
- unit_finance_sdk/models/rich_merchant_data_type.py +131 -0
- unit_finance_sdk/models/rich_merchant_data_type_address.py +107 -0
- unit_finance_sdk/models/rich_merchant_data_type_categories_inner.py +103 -0
- unit_finance_sdk/models/schedule_type.py +114 -0
- unit_finance_sdk/models/send_drawdown_payment200_response.py +105 -0
- unit_finance_sdk/models/send_drawdown_payment_data.py +114 -0
- unit_finance_sdk/models/send_drawdown_payment_data_attributes.py +103 -0
- unit_finance_sdk/models/send_drawdown_payment_request.py +105 -0
- unit_finance_sdk/models/sole_proprietor_annual_revenue_type.py +40 -0
- unit_finance_sdk/models/sole_proprietor_number_of_employees_type.py +39 -0
- unit_finance_sdk/models/source_of_income_type.py +41 -0
- unit_finance_sdk/models/store_location.py +116 -0
- unit_finance_sdk/models/store_location_attributes.py +123 -0
- unit_finance_sdk/models/to_many_relationship.py +109 -0
- unit_finance_sdk/models/total_accrued_interest_type.py +101 -0
- unit_finance_sdk/models/transaction.py +588 -0
- unit_finance_sdk/models/update_account_request.py +151 -0
- unit_finance_sdk/models/update_ach_payment_data.py +114 -0
- unit_finance_sdk/models/update_ach_payment_data_attributes.py +103 -0
- unit_finance_sdk/models/update_ach_payment_request.py +105 -0
- unit_finance_sdk/models/update_ach_received_payment_data.py +114 -0
- unit_finance_sdk/models/update_ach_received_payment_data_attributes.py +101 -0
- unit_finance_sdk/models/update_ach_received_payment_request.py +105 -0
- unit_finance_sdk/models/update_application_request.py +165 -0
- unit_finance_sdk/models/update_book_payment_data.py +114 -0
- unit_finance_sdk/models/update_book_payment_data_attributes.py +101 -0
- unit_finance_sdk/models/update_book_payment_request.py +105 -0
- unit_finance_sdk/models/update_book_transaction_data.py +120 -0
- unit_finance_sdk/models/update_book_transaction_data_attributes.py +103 -0
- unit_finance_sdk/models/update_book_transaction_request.py +105 -0
- unit_finance_sdk/models/update_business_application_data.py +114 -0
- unit_finance_sdk/models/update_business_application_data_attributes.py +121 -0
- unit_finance_sdk/models/update_business_application_request.py +105 -0
- unit_finance_sdk/models/update_business_beneficial_owner201_response.py +105 -0
- unit_finance_sdk/models/update_business_beneficial_owner_data.py +120 -0
- unit_finance_sdk/models/update_business_beneficial_owner_data_attributes.py +110 -0
- unit_finance_sdk/models/update_business_beneficial_owner_data_relationships.py +105 -0
- unit_finance_sdk/models/update_business_beneficial_owner_request.py +105 -0
- unit_finance_sdk/models/update_business_customer_data.py +114 -0
- unit_finance_sdk/models/update_business_customer_data_attributes.py +170 -0
- unit_finance_sdk/models/update_business_customer_officer200_response.py +105 -0
- unit_finance_sdk/models/update_business_customer_officer_data.py +114 -0
- unit_finance_sdk/models/update_business_customer_officer_data_attributes.py +110 -0
- unit_finance_sdk/models/update_business_customer_officer_request.py +105 -0
- unit_finance_sdk/models/update_business_customer_request.py +105 -0
- unit_finance_sdk/models/update_business_officer_data.py +114 -0
- unit_finance_sdk/models/update_business_officer_data_attributes.py +108 -0
- unit_finance_sdk/models/update_business_officer_request.py +105 -0
- unit_finance_sdk/models/update_card200_response.py +105 -0
- unit_finance_sdk/models/update_card200_response_data.py +168 -0
- unit_finance_sdk/models/update_card_data.py +114 -0
- unit_finance_sdk/models/update_card_data_attributes.py +121 -0
- unit_finance_sdk/models/update_card_request.py +105 -0
- unit_finance_sdk/models/update_chargeback_transaction_data.py +120 -0
- unit_finance_sdk/models/update_chargeback_transaction_data_attributes.py +103 -0
- unit_finance_sdk/models/update_chargeback_transaction_request.py +105 -0
- unit_finance_sdk/models/update_check_deposit_request.py +105 -0
- unit_finance_sdk/models/update_counterparty200_response.py +111 -0
- unit_finance_sdk/models/update_counterparty_data.py +114 -0
- unit_finance_sdk/models/update_counterparty_data_attributes.py +107 -0
- unit_finance_sdk/models/update_counterparty_request.py +105 -0
- unit_finance_sdk/models/update_credit_account_data.py +114 -0
- unit_finance_sdk/models/update_credit_account_data_attributes.py +103 -0
- unit_finance_sdk/models/update_credit_account_request.py +105 -0
- unit_finance_sdk/models/update_customer200_response.py +105 -0
- unit_finance_sdk/models/update_customer_request.py +137 -0
- unit_finance_sdk/models/update_data.py +114 -0
- unit_finance_sdk/models/update_data_attributes.py +103 -0
- unit_finance_sdk/models/update_deposit_account_data.py +114 -0
- unit_finance_sdk/models/update_deposit_account_data_attributes.py +103 -0
- unit_finance_sdk/models/update_deposit_account_request.py +105 -0
- unit_finance_sdk/models/update_individual_application_data.py +114 -0
- unit_finance_sdk/models/update_individual_application_data_attributes.py +110 -0
- unit_finance_sdk/models/update_individual_application_request.py +105 -0
- unit_finance_sdk/models/update_individual_customer_data.py +114 -0
- unit_finance_sdk/models/update_individual_customer_data_attributes.py +149 -0
- unit_finance_sdk/models/update_individual_customer_request.py +105 -0
- unit_finance_sdk/models/update_payment200_response.py +105 -0
- unit_finance_sdk/models/update_payment200_response_data.py +140 -0
- unit_finance_sdk/models/update_payment_request.py +137 -0
- unit_finance_sdk/models/update_realtime_received_payment_data.py +114 -0
- unit_finance_sdk/models/update_realtime_received_payment_request.py +105 -0
- unit_finance_sdk/models/update_received_payment200_response.py +105 -0
- unit_finance_sdk/models/update_received_payment_request.py +137 -0
- unit_finance_sdk/models/update_sole_proprietor_application_data.py +114 -0
- unit_finance_sdk/models/update_sole_proprietor_application_data_attributes.py +112 -0
- unit_finance_sdk/models/update_sole_proprietor_application_request.py +105 -0
- unit_finance_sdk/models/update_tags_data.py +114 -0
- unit_finance_sdk/models/update_tags_data_attributes.py +101 -0
- unit_finance_sdk/models/update_tags_request.py +105 -0
- unit_finance_sdk/models/update_transaction200_response.py +105 -0
- unit_finance_sdk/models/update_transaction_request.py +137 -0
- unit_finance_sdk/models/update_wallet_data.py +114 -0
- unit_finance_sdk/models/update_wallet_data_attributes.py +105 -0
- unit_finance_sdk/models/update_wallet_request.py +105 -0
- unit_finance_sdk/models/wallet_account.py +122 -0
- unit_finance_sdk/models/wallet_account_attributes.py +128 -0
- unit_finance_sdk/models/wire_counterparty_type.py +111 -0
- unit_finance_sdk/models/wire_drawdown.py +122 -0
- unit_finance_sdk/models/wire_drawdown_attributes.py +128 -0
- unit_finance_sdk/models/wire_drawdown_relationships.py +115 -0
- unit_finance_sdk/models/wire_payment.py +122 -0
- unit_finance_sdk/models/wire_payment_attributes.py +122 -0
- unit_finance_sdk/models/wire_payment_relationships.py +125 -0
- unit_finance_sdk/models/wire_transaction.py +122 -0
- unit_finance_sdk/models/wire_transaction_attributes.py +132 -0
- unit_finance_sdk/models/write_off_transaction.py +122 -0
- unit_finance_sdk/py.typed +0 -0
- unit_finance_sdk/rest.py +263 -0
- unit_openapi_python_sdk-0.9.0.dist-info/METADATA +730 -0
- unit_openapi_python_sdk-0.9.0.dist-info/RECORD +535 -0
- {unit_openapi_python_sdk-0.0.2.dist-info → unit_openapi_python_sdk-0.9.0.dist-info}/WHEEL +1 -1
- unit_openapi_python_sdk-0.9.0.dist-info/top_level.txt +1 -0
- unit_openapi_python_sdk-0.0.2.dist-info/LICENSE.md +0 -373
- unit_openapi_python_sdk-0.0.2.dist-info/METADATA +0 -18
- unit_openapi_python_sdk-0.0.2.dist-info/RECORD +0 -5
- unit_openapi_python_sdk-0.0.2.dist-info/top_level.txt +0 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Unit API
|
|
5
|
+
|
|
6
|
+
JSON:API-compliant banking API.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.9.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import json
|
|
17
|
+
import pprint
|
|
18
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
|
|
19
|
+
from typing import Any, List, Optional
|
|
20
|
+
from unit_finance_sdk.models.update_credit_account_request import UpdateCreditAccountRequest
|
|
21
|
+
from unit_finance_sdk.models.update_deposit_account_request import UpdateDepositAccountRequest
|
|
22
|
+
from unit_finance_sdk.models.update_wallet_request import UpdateWalletRequest
|
|
23
|
+
from pydantic import StrictStr, Field
|
|
24
|
+
from typing import Union, List, Set, Optional, Dict
|
|
25
|
+
from typing_extensions import Literal, Self
|
|
26
|
+
|
|
27
|
+
UPDATEACCOUNTREQUEST_ONE_OF_SCHEMAS = ["UpdateCreditAccountRequest", "UpdateDepositAccountRequest", "UpdateWalletRequest"]
|
|
28
|
+
|
|
29
|
+
class UpdateAccountRequest(BaseModel):
|
|
30
|
+
"""
|
|
31
|
+
UpdateAccountRequest
|
|
32
|
+
"""
|
|
33
|
+
# data type: UpdateDepositAccountRequest
|
|
34
|
+
oneof_schema_1_validator: Optional[UpdateDepositAccountRequest] = None
|
|
35
|
+
# data type: UpdateCreditAccountRequest
|
|
36
|
+
oneof_schema_2_validator: Optional[UpdateCreditAccountRequest] = None
|
|
37
|
+
# data type: UpdateWalletRequest
|
|
38
|
+
oneof_schema_3_validator: Optional[UpdateWalletRequest] = None
|
|
39
|
+
actual_instance: Optional[Union[UpdateCreditAccountRequest, UpdateDepositAccountRequest, UpdateWalletRequest]] = None
|
|
40
|
+
one_of_schemas: Set[str] = { "UpdateCreditAccountRequest", "UpdateDepositAccountRequest", "UpdateWalletRequest" }
|
|
41
|
+
|
|
42
|
+
model_config = ConfigDict(
|
|
43
|
+
validate_assignment=True,
|
|
44
|
+
protected_namespaces=(),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
49
|
+
if args:
|
|
50
|
+
if len(args) > 1:
|
|
51
|
+
raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
|
|
52
|
+
if kwargs:
|
|
53
|
+
raise ValueError("If a position argument is used, keyword arguments cannot be used.")
|
|
54
|
+
super().__init__(actual_instance=args[0])
|
|
55
|
+
else:
|
|
56
|
+
super().__init__(**kwargs)
|
|
57
|
+
|
|
58
|
+
@field_validator('actual_instance')
|
|
59
|
+
def actual_instance_must_validate_oneof(cls, v):
|
|
60
|
+
instance = UpdateAccountRequest.model_construct()
|
|
61
|
+
error_messages = []
|
|
62
|
+
match = 0
|
|
63
|
+
# validate data type: UpdateDepositAccountRequest
|
|
64
|
+
if not isinstance(v, UpdateDepositAccountRequest):
|
|
65
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `UpdateDepositAccountRequest`")
|
|
66
|
+
else:
|
|
67
|
+
match += 1
|
|
68
|
+
# validate data type: UpdateCreditAccountRequest
|
|
69
|
+
if not isinstance(v, UpdateCreditAccountRequest):
|
|
70
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `UpdateCreditAccountRequest`")
|
|
71
|
+
else:
|
|
72
|
+
match += 1
|
|
73
|
+
# validate data type: UpdateWalletRequest
|
|
74
|
+
if not isinstance(v, UpdateWalletRequest):
|
|
75
|
+
error_messages.append(f"Error! Input type `{type(v)}` is not `UpdateWalletRequest`")
|
|
76
|
+
else:
|
|
77
|
+
match += 1
|
|
78
|
+
if match > 1:
|
|
79
|
+
# more than 1 match
|
|
80
|
+
raise ValueError("Multiple matches found when setting `actual_instance` in UpdateAccountRequest with oneOf schemas: UpdateCreditAccountRequest, UpdateDepositAccountRequest, UpdateWalletRequest. Details: " + ", ".join(error_messages))
|
|
81
|
+
elif match == 0:
|
|
82
|
+
# no match
|
|
83
|
+
raise ValueError("No match found when setting `actual_instance` in UpdateAccountRequest with oneOf schemas: UpdateCreditAccountRequest, UpdateDepositAccountRequest, UpdateWalletRequest. Details: " + ", ".join(error_messages))
|
|
84
|
+
else:
|
|
85
|
+
return v
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
|
|
89
|
+
return cls.from_json(json.dumps(obj))
|
|
90
|
+
|
|
91
|
+
@classmethod
|
|
92
|
+
def from_json(cls, json_str: str) -> Self:
|
|
93
|
+
"""Returns the object represented by the json string"""
|
|
94
|
+
instance = cls.model_construct()
|
|
95
|
+
error_messages = []
|
|
96
|
+
match = 0
|
|
97
|
+
|
|
98
|
+
# deserialize data into UpdateDepositAccountRequest
|
|
99
|
+
try:
|
|
100
|
+
instance.actual_instance = UpdateDepositAccountRequest.from_json(json_str)
|
|
101
|
+
match += 1
|
|
102
|
+
except (ValidationError, ValueError) as e:
|
|
103
|
+
error_messages.append(str(e))
|
|
104
|
+
# deserialize data into UpdateCreditAccountRequest
|
|
105
|
+
try:
|
|
106
|
+
instance.actual_instance = UpdateCreditAccountRequest.from_json(json_str)
|
|
107
|
+
match += 1
|
|
108
|
+
except (ValidationError, ValueError) as e:
|
|
109
|
+
error_messages.append(str(e))
|
|
110
|
+
# deserialize data into UpdateWalletRequest
|
|
111
|
+
try:
|
|
112
|
+
instance.actual_instance = UpdateWalletRequest.from_json(json_str)
|
|
113
|
+
match += 1
|
|
114
|
+
except (ValidationError, ValueError) as e:
|
|
115
|
+
error_messages.append(str(e))
|
|
116
|
+
|
|
117
|
+
if match > 1:
|
|
118
|
+
# more than 1 match
|
|
119
|
+
raise ValueError("Multiple matches found when deserializing the JSON string into UpdateAccountRequest with oneOf schemas: UpdateCreditAccountRequest, UpdateDepositAccountRequest, UpdateWalletRequest. Details: " + ", ".join(error_messages))
|
|
120
|
+
elif match == 0:
|
|
121
|
+
# no match
|
|
122
|
+
raise ValueError("No match found when deserializing the JSON string into UpdateAccountRequest with oneOf schemas: UpdateCreditAccountRequest, UpdateDepositAccountRequest, UpdateWalletRequest. Details: " + ", ".join(error_messages))
|
|
123
|
+
else:
|
|
124
|
+
return instance
|
|
125
|
+
|
|
126
|
+
def to_json(self) -> str:
|
|
127
|
+
"""Returns the JSON representation of the actual instance"""
|
|
128
|
+
if self.actual_instance is None:
|
|
129
|
+
return "null"
|
|
130
|
+
|
|
131
|
+
if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
|
|
132
|
+
return self.actual_instance.to_json()
|
|
133
|
+
else:
|
|
134
|
+
return json.dumps(self.actual_instance)
|
|
135
|
+
|
|
136
|
+
def to_dict(self) -> Optional[Union[Dict[str, Any], UpdateCreditAccountRequest, UpdateDepositAccountRequest, UpdateWalletRequest]]:
|
|
137
|
+
"""Returns the dict representation of the actual instance"""
|
|
138
|
+
if self.actual_instance is None:
|
|
139
|
+
return None
|
|
140
|
+
|
|
141
|
+
if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
|
|
142
|
+
return self.actual_instance.to_dict()
|
|
143
|
+
else:
|
|
144
|
+
# primitive type
|
|
145
|
+
return self.actual_instance
|
|
146
|
+
|
|
147
|
+
def to_str(self) -> str:
|
|
148
|
+
"""Returns the string representation of the actual instance"""
|
|
149
|
+
return pprint.pformat(self.model_dump())
|
|
150
|
+
|
|
151
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Unit API
|
|
5
|
+
|
|
6
|
+
JSON:API-compliant banking API.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.9.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from unit_finance_sdk.models.update_ach_payment_data_attributes import UpdateACHPaymentDataAttributes
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
26
|
+
|
|
27
|
+
class UpdateACHPaymentData(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
UpdateACHPaymentData
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
type: StrictStr
|
|
32
|
+
attributes: UpdateACHPaymentDataAttributes
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["type", "attributes"]
|
|
35
|
+
|
|
36
|
+
@field_validator('type')
|
|
37
|
+
def type_validate_enum(cls, value):
|
|
38
|
+
"""Validates the enum"""
|
|
39
|
+
if value not in set(['achPayment']):
|
|
40
|
+
raise ValueError("must be one of enum values ('achPayment')")
|
|
41
|
+
return value
|
|
42
|
+
|
|
43
|
+
model_config = ConfigDict(
|
|
44
|
+
validate_by_name=True,
|
|
45
|
+
validate_by_alias=True,
|
|
46
|
+
validate_assignment=True,
|
|
47
|
+
protected_namespaces=(),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def to_str(self) -> str:
|
|
52
|
+
"""Returns the string representation of the model using alias"""
|
|
53
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
54
|
+
|
|
55
|
+
def to_json(self) -> str:
|
|
56
|
+
"""Returns the JSON representation of the model using alias"""
|
|
57
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
61
|
+
"""Create an instance of UpdateACHPaymentData from a JSON string"""
|
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
|
63
|
+
|
|
64
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
65
|
+
"""Return the dictionary representation of the model using alias.
|
|
66
|
+
|
|
67
|
+
This has the following differences from calling pydantic's
|
|
68
|
+
`self.model_dump(by_alias=True)`:
|
|
69
|
+
|
|
70
|
+
* `None` is only added to the output dict for nullable fields that
|
|
71
|
+
were set at model initialization. Other fields with value `None`
|
|
72
|
+
are ignored.
|
|
73
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
74
|
+
"""
|
|
75
|
+
excluded_fields: Set[str] = set([
|
|
76
|
+
"additional_properties",
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
_dict = self.model_dump(
|
|
80
|
+
by_alias=True,
|
|
81
|
+
exclude=excluded_fields,
|
|
82
|
+
exclude_none=True,
|
|
83
|
+
)
|
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of attributes
|
|
85
|
+
if self.attributes:
|
|
86
|
+
_dict['attributes'] = self.attributes.to_dict()
|
|
87
|
+
# puts key-value pairs in additional_properties in the top level
|
|
88
|
+
if self.additional_properties is not None:
|
|
89
|
+
for _key, _value in self.additional_properties.items():
|
|
90
|
+
_dict[_key] = _value
|
|
91
|
+
|
|
92
|
+
return _dict
|
|
93
|
+
|
|
94
|
+
@classmethod
|
|
95
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
96
|
+
"""Create an instance of UpdateACHPaymentData from a dict"""
|
|
97
|
+
if obj is None:
|
|
98
|
+
return None
|
|
99
|
+
|
|
100
|
+
if not isinstance(obj, dict):
|
|
101
|
+
return cls.model_validate(obj)
|
|
102
|
+
|
|
103
|
+
_obj = cls.model_validate({
|
|
104
|
+
"type": obj.get("type"),
|
|
105
|
+
"attributes": UpdateACHPaymentDataAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None
|
|
106
|
+
})
|
|
107
|
+
# store additional fields in additional_properties
|
|
108
|
+
for _key in obj.keys():
|
|
109
|
+
if _key not in cls.__properties:
|
|
110
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
111
|
+
|
|
112
|
+
return _obj
|
|
113
|
+
|
|
114
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Unit API
|
|
5
|
+
|
|
6
|
+
JSON:API-compliant banking API.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.9.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
class UpdateACHPaymentDataAttributes(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UpdateACHPaymentDataAttributes
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
tags: Dict[str, Any] = Field(description="See Updating Tags.")
|
|
31
|
+
clearing_days_override: StrictInt = Field(description="Only supports ACH Payments with direction Debit in status PendingReview or Pending. See Dynamic Clearing Period.", alias="clearingDaysOverride")
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties: ClassVar[List[str]] = ["tags", "clearingDaysOverride"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of UpdateACHPaymentDataAttributes from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
"additional_properties",
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
# puts key-value pairs in additional_properties in the top level
|
|
77
|
+
if self.additional_properties is not None:
|
|
78
|
+
for _key, _value in self.additional_properties.items():
|
|
79
|
+
_dict[_key] = _value
|
|
80
|
+
|
|
81
|
+
return _dict
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
+
"""Create an instance of UpdateACHPaymentDataAttributes from a dict"""
|
|
86
|
+
if obj is None:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
if not isinstance(obj, dict):
|
|
90
|
+
return cls.model_validate(obj)
|
|
91
|
+
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"tags": obj.get("tags"),
|
|
94
|
+
"clearingDaysOverride": obj.get("clearingDaysOverride")
|
|
95
|
+
})
|
|
96
|
+
# store additional fields in additional_properties
|
|
97
|
+
for _key in obj.keys():
|
|
98
|
+
if _key not in cls.__properties:
|
|
99
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
100
|
+
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Unit API
|
|
5
|
+
|
|
6
|
+
JSON:API-compliant banking API.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.9.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from unit_finance_sdk.models.update_ach_payment_data import UpdateACHPaymentData
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
26
|
+
|
|
27
|
+
class UpdateACHPaymentRequest(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
UpdateACHPaymentRequest
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
data: UpdateACHPaymentData
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties: ClassVar[List[str]] = ["data"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of UpdateACHPaymentRequest from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
"additional_properties",
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of data
|
|
77
|
+
if self.data:
|
|
78
|
+
_dict['data'] = self.data.to_dict()
|
|
79
|
+
# puts key-value pairs in additional_properties in the top level
|
|
80
|
+
if self.additional_properties is not None:
|
|
81
|
+
for _key, _value in self.additional_properties.items():
|
|
82
|
+
_dict[_key] = _value
|
|
83
|
+
|
|
84
|
+
return _dict
|
|
85
|
+
|
|
86
|
+
@classmethod
|
|
87
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
88
|
+
"""Create an instance of UpdateACHPaymentRequest from a dict"""
|
|
89
|
+
if obj is None:
|
|
90
|
+
return None
|
|
91
|
+
|
|
92
|
+
if not isinstance(obj, dict):
|
|
93
|
+
return cls.model_validate(obj)
|
|
94
|
+
|
|
95
|
+
_obj = cls.model_validate({
|
|
96
|
+
"data": UpdateACHPaymentData.from_dict(obj["data"]) if obj.get("data") is not None else None
|
|
97
|
+
})
|
|
98
|
+
# store additional fields in additional_properties
|
|
99
|
+
for _key in obj.keys():
|
|
100
|
+
if _key not in cls.__properties:
|
|
101
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
102
|
+
|
|
103
|
+
return _obj
|
|
104
|
+
|
|
105
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Unit API
|
|
5
|
+
|
|
6
|
+
JSON:API-compliant banking API.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.9.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from unit_finance_sdk.models.update_ach_received_payment_data_attributes import UpdateACHReceivedPaymentDataAttributes
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
26
|
+
|
|
27
|
+
class UpdateACHReceivedPaymentData(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
UpdateACHReceivedPaymentData
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
type: StrictStr
|
|
32
|
+
attributes: UpdateACHReceivedPaymentDataAttributes
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["type", "attributes"]
|
|
35
|
+
|
|
36
|
+
@field_validator('type')
|
|
37
|
+
def type_validate_enum(cls, value):
|
|
38
|
+
"""Validates the enum"""
|
|
39
|
+
if value not in set(['achReceivedPayment']):
|
|
40
|
+
raise ValueError("must be one of enum values ('achReceivedPayment')")
|
|
41
|
+
return value
|
|
42
|
+
|
|
43
|
+
model_config = ConfigDict(
|
|
44
|
+
validate_by_name=True,
|
|
45
|
+
validate_by_alias=True,
|
|
46
|
+
validate_assignment=True,
|
|
47
|
+
protected_namespaces=(),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def to_str(self) -> str:
|
|
52
|
+
"""Returns the string representation of the model using alias"""
|
|
53
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
54
|
+
|
|
55
|
+
def to_json(self) -> str:
|
|
56
|
+
"""Returns the JSON representation of the model using alias"""
|
|
57
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
61
|
+
"""Create an instance of UpdateACHReceivedPaymentData from a JSON string"""
|
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
|
63
|
+
|
|
64
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
65
|
+
"""Return the dictionary representation of the model using alias.
|
|
66
|
+
|
|
67
|
+
This has the following differences from calling pydantic's
|
|
68
|
+
`self.model_dump(by_alias=True)`:
|
|
69
|
+
|
|
70
|
+
* `None` is only added to the output dict for nullable fields that
|
|
71
|
+
were set at model initialization. Other fields with value `None`
|
|
72
|
+
are ignored.
|
|
73
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
74
|
+
"""
|
|
75
|
+
excluded_fields: Set[str] = set([
|
|
76
|
+
"additional_properties",
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
_dict = self.model_dump(
|
|
80
|
+
by_alias=True,
|
|
81
|
+
exclude=excluded_fields,
|
|
82
|
+
exclude_none=True,
|
|
83
|
+
)
|
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of attributes
|
|
85
|
+
if self.attributes:
|
|
86
|
+
_dict['attributes'] = self.attributes.to_dict()
|
|
87
|
+
# puts key-value pairs in additional_properties in the top level
|
|
88
|
+
if self.additional_properties is not None:
|
|
89
|
+
for _key, _value in self.additional_properties.items():
|
|
90
|
+
_dict[_key] = _value
|
|
91
|
+
|
|
92
|
+
return _dict
|
|
93
|
+
|
|
94
|
+
@classmethod
|
|
95
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
96
|
+
"""Create an instance of UpdateACHReceivedPaymentData from a dict"""
|
|
97
|
+
if obj is None:
|
|
98
|
+
return None
|
|
99
|
+
|
|
100
|
+
if not isinstance(obj, dict):
|
|
101
|
+
return cls.model_validate(obj)
|
|
102
|
+
|
|
103
|
+
_obj = cls.model_validate({
|
|
104
|
+
"type": obj.get("type"),
|
|
105
|
+
"attributes": UpdateACHReceivedPaymentDataAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None
|
|
106
|
+
})
|
|
107
|
+
# store additional fields in additional_properties
|
|
108
|
+
for _key in obj.keys():
|
|
109
|
+
if _key not in cls.__properties:
|
|
110
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
111
|
+
|
|
112
|
+
return _obj
|
|
113
|
+
|
|
114
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Unit API
|
|
5
|
+
|
|
6
|
+
JSON:API-compliant banking API.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.9.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
class UpdateACHReceivedPaymentDataAttributes(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
UpdateACHReceivedPaymentDataAttributes
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
tags: Dict[str, Any] = Field(description="See Updating Tags.")
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["tags"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of UpdateACHReceivedPaymentDataAttributes from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of UpdateACHReceivedPaymentDataAttributes from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"tags": obj.get("tags")
|
|
93
|
+
})
|
|
94
|
+
# store additional fields in additional_properties
|
|
95
|
+
for _key in obj.keys():
|
|
96
|
+
if _key not in cls.__properties:
|
|
97
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
98
|
+
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|