unit-openapi-python-sdk 0.0.2__py3-none-any.whl → 0.10.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.10.0.dist-info/METADATA +97 -0
- unit_openapi_python_sdk-0.10.0.dist-info/RECORD +535 -0
- {unit_openapi_python_sdk-0.0.2.dist-info → unit_openapi_python_sdk-0.10.0.dist-info}/WHEEL +1 -1
- unit_openapi_python_sdk-0.10.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,120 @@
|
|
|
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.create_deposit_account_data_relationships import CreateDepositAccountDataRelationships
|
|
23
|
+
from unit_finance_sdk.models.create_wallet_data_attributes import CreateWalletDataAttributes
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
27
|
+
|
|
28
|
+
class CreateWalletData(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
CreateWalletData
|
|
31
|
+
""" # noqa: E501
|
|
32
|
+
type: StrictStr
|
|
33
|
+
attributes: CreateWalletDataAttributes
|
|
34
|
+
relationships: CreateDepositAccountDataRelationships
|
|
35
|
+
additional_properties: Dict[str, Any] = {}
|
|
36
|
+
__properties: ClassVar[List[str]] = ["type", "attributes", "relationships"]
|
|
37
|
+
|
|
38
|
+
@field_validator('type')
|
|
39
|
+
def type_validate_enum(cls, value):
|
|
40
|
+
"""Validates the enum"""
|
|
41
|
+
if value not in set(['walletAccount']):
|
|
42
|
+
raise ValueError("must be one of enum values ('walletAccount')")
|
|
43
|
+
return value
|
|
44
|
+
|
|
45
|
+
model_config = ConfigDict(
|
|
46
|
+
validate_by_name=True,
|
|
47
|
+
validate_by_alias=True,
|
|
48
|
+
validate_assignment=True,
|
|
49
|
+
protected_namespaces=(),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def to_str(self) -> str:
|
|
54
|
+
"""Returns the string representation of the model using alias"""
|
|
55
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
56
|
+
|
|
57
|
+
def to_json(self) -> str:
|
|
58
|
+
"""Returns the JSON representation of the model using alias"""
|
|
59
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
63
|
+
"""Create an instance of CreateWalletData from a JSON string"""
|
|
64
|
+
return cls.from_dict(json.loads(json_str))
|
|
65
|
+
|
|
66
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
67
|
+
"""Return the dictionary representation of the model using alias.
|
|
68
|
+
|
|
69
|
+
This has the following differences from calling pydantic's
|
|
70
|
+
`self.model_dump(by_alias=True)`:
|
|
71
|
+
|
|
72
|
+
* `None` is only added to the output dict for nullable fields that
|
|
73
|
+
were set at model initialization. Other fields with value `None`
|
|
74
|
+
are ignored.
|
|
75
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
76
|
+
"""
|
|
77
|
+
excluded_fields: Set[str] = set([
|
|
78
|
+
"additional_properties",
|
|
79
|
+
])
|
|
80
|
+
|
|
81
|
+
_dict = self.model_dump(
|
|
82
|
+
by_alias=True,
|
|
83
|
+
exclude=excluded_fields,
|
|
84
|
+
exclude_none=True,
|
|
85
|
+
)
|
|
86
|
+
# override the default output from pydantic by calling `to_dict()` of attributes
|
|
87
|
+
if self.attributes:
|
|
88
|
+
_dict['attributes'] = self.attributes.to_dict()
|
|
89
|
+
# override the default output from pydantic by calling `to_dict()` of relationships
|
|
90
|
+
if self.relationships:
|
|
91
|
+
_dict['relationships'] = self.relationships.to_dict()
|
|
92
|
+
# puts key-value pairs in additional_properties in the top level
|
|
93
|
+
if self.additional_properties is not None:
|
|
94
|
+
for _key, _value in self.additional_properties.items():
|
|
95
|
+
_dict[_key] = _value
|
|
96
|
+
|
|
97
|
+
return _dict
|
|
98
|
+
|
|
99
|
+
@classmethod
|
|
100
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
101
|
+
"""Create an instance of CreateWalletData from a dict"""
|
|
102
|
+
if obj is None:
|
|
103
|
+
return None
|
|
104
|
+
|
|
105
|
+
if not isinstance(obj, dict):
|
|
106
|
+
return cls.model_validate(obj)
|
|
107
|
+
|
|
108
|
+
_obj = cls.model_validate({
|
|
109
|
+
"type": obj.get("type"),
|
|
110
|
+
"attributes": CreateWalletDataAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None,
|
|
111
|
+
"relationships": CreateDepositAccountDataRelationships.from_dict(obj["relationships"]) if obj.get("relationships") is not None else None
|
|
112
|
+
})
|
|
113
|
+
# store additional fields in additional_properties
|
|
114
|
+
for _key in obj.keys():
|
|
115
|
+
if _key not in cls.__properties:
|
|
116
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
117
|
+
|
|
118
|
+
return _obj
|
|
119
|
+
|
|
120
|
+
|
|
@@ -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, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
class CreateWalletDataAttributes(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
CreateWalletDataAttributes
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
wallet_terms: StrictStr = Field(description="The name of the wallet terms.", alias="walletTerms")
|
|
31
|
+
tags: Optional[Dict[str, Any]] = Field(default=None, description="Optional. See Tags.")
|
|
32
|
+
idempotency_key: Optional[StrictStr] = Field(default=None, description="Optional. See Idempotency.", alias="idempotencyKey")
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["walletTerms", "tags", "idempotencyKey"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of CreateWalletDataAttributes from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# puts key-value pairs in additional_properties in the top level
|
|
78
|
+
if self.additional_properties is not None:
|
|
79
|
+
for _key, _value in self.additional_properties.items():
|
|
80
|
+
_dict[_key] = _value
|
|
81
|
+
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of CreateWalletDataAttributes from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"walletTerms": obj.get("walletTerms"),
|
|
95
|
+
"tags": obj.get("tags"),
|
|
96
|
+
"idempotencyKey": obj.get("idempotencyKey")
|
|
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,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.create_wallet_data import CreateWalletData
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
26
|
+
|
|
27
|
+
class CreateWalletRequest(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
CreateWalletRequest
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
data: CreateWalletData
|
|
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 CreateWalletRequest 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 CreateWalletRequest 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": CreateWalletData.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,122 @@
|
|
|
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, Optional
|
|
22
|
+
from unit_finance_sdk.models.credit_account_attributes import CreditAccountAttributes
|
|
23
|
+
from unit_finance_sdk.models.credit_account_relationships import CreditAccountRelationships
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
27
|
+
|
|
28
|
+
class CreditAccount(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
`CreditAccount` is a JSON:API resource, top-level fields:
|
|
31
|
+
""" # noqa: E501
|
|
32
|
+
type: StrictStr
|
|
33
|
+
id: StrictStr
|
|
34
|
+
attributes: CreditAccountAttributes
|
|
35
|
+
relationships: Optional[CreditAccountRelationships] = None
|
|
36
|
+
additional_properties: Dict[str, Any] = {}
|
|
37
|
+
__properties: ClassVar[List[str]] = ["type", "id", "attributes", "relationships"]
|
|
38
|
+
|
|
39
|
+
@field_validator('type')
|
|
40
|
+
def type_validate_enum(cls, value):
|
|
41
|
+
"""Validates the enum"""
|
|
42
|
+
if value not in set(['creditAccount']):
|
|
43
|
+
raise ValueError("must be one of enum values ('creditAccount')")
|
|
44
|
+
return value
|
|
45
|
+
|
|
46
|
+
model_config = ConfigDict(
|
|
47
|
+
validate_by_name=True,
|
|
48
|
+
validate_by_alias=True,
|
|
49
|
+
validate_assignment=True,
|
|
50
|
+
protected_namespaces=(),
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def to_str(self) -> str:
|
|
55
|
+
"""Returns the string representation of the model using alias"""
|
|
56
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
57
|
+
|
|
58
|
+
def to_json(self) -> str:
|
|
59
|
+
"""Returns the JSON representation of the model using alias"""
|
|
60
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
61
|
+
|
|
62
|
+
@classmethod
|
|
63
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
64
|
+
"""Create an instance of CreditAccount from a JSON string"""
|
|
65
|
+
return cls.from_dict(json.loads(json_str))
|
|
66
|
+
|
|
67
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
68
|
+
"""Return the dictionary representation of the model using alias.
|
|
69
|
+
|
|
70
|
+
This has the following differences from calling pydantic's
|
|
71
|
+
`self.model_dump(by_alias=True)`:
|
|
72
|
+
|
|
73
|
+
* `None` is only added to the output dict for nullable fields that
|
|
74
|
+
were set at model initialization. Other fields with value `None`
|
|
75
|
+
are ignored.
|
|
76
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
77
|
+
"""
|
|
78
|
+
excluded_fields: Set[str] = set([
|
|
79
|
+
"additional_properties",
|
|
80
|
+
])
|
|
81
|
+
|
|
82
|
+
_dict = self.model_dump(
|
|
83
|
+
by_alias=True,
|
|
84
|
+
exclude=excluded_fields,
|
|
85
|
+
exclude_none=True,
|
|
86
|
+
)
|
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of attributes
|
|
88
|
+
if self.attributes:
|
|
89
|
+
_dict['attributes'] = self.attributes.to_dict()
|
|
90
|
+
# override the default output from pydantic by calling `to_dict()` of relationships
|
|
91
|
+
if self.relationships:
|
|
92
|
+
_dict['relationships'] = self.relationships.to_dict()
|
|
93
|
+
# puts key-value pairs in additional_properties in the top level
|
|
94
|
+
if self.additional_properties is not None:
|
|
95
|
+
for _key, _value in self.additional_properties.items():
|
|
96
|
+
_dict[_key] = _value
|
|
97
|
+
|
|
98
|
+
return _dict
|
|
99
|
+
|
|
100
|
+
@classmethod
|
|
101
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
102
|
+
"""Create an instance of CreditAccount from a dict"""
|
|
103
|
+
if obj is None:
|
|
104
|
+
return None
|
|
105
|
+
|
|
106
|
+
if not isinstance(obj, dict):
|
|
107
|
+
return cls.model_validate(obj)
|
|
108
|
+
|
|
109
|
+
_obj = cls.model_validate({
|
|
110
|
+
"type": obj.get("type"),
|
|
111
|
+
"id": obj.get("id"),
|
|
112
|
+
"attributes": CreditAccountAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None,
|
|
113
|
+
"relationships": CreditAccountRelationships.from_dict(obj["relationships"]) if obj.get("relationships") is not None else None
|
|
114
|
+
})
|
|
115
|
+
# store additional fields in additional_properties
|
|
116
|
+
for _key in obj.keys():
|
|
117
|
+
if _key not in cls.__properties:
|
|
118
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
119
|
+
|
|
120
|
+
return _obj
|
|
121
|
+
|
|
122
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
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 datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
26
|
+
|
|
27
|
+
class CreditAccountAttributes(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
CreditAccountAttributes
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
created_at: datetime = Field(description="The date the resource was created.", alias="createdAt")
|
|
32
|
+
updated_at: Optional[datetime] = Field(default=None, description="Optional. The date the resource was updated.", alias="updatedAt")
|
|
33
|
+
name: StrictStr = Field(description="Name of the account holder.")
|
|
34
|
+
credit_terms: StrictStr = Field(description="The selected credit terms.", alias="creditTerms")
|
|
35
|
+
currency: StrictStr = Field(description="Currency of the account.")
|
|
36
|
+
credit_limit: StrictInt = Field(description="The credit limit (cents).", alias="creditLimit")
|
|
37
|
+
balance: StrictInt = Field(description="The balance amount (cents). The balance represents the funds that are currently in the account (not taking into account future commitments). The balance equals the sum of settled transactions minus any repayments.")
|
|
38
|
+
hold: StrictInt = Field(description="The hold amount (cents). The hold represents funds that are not available for spending, due to an outstanding card authorization.")
|
|
39
|
+
available: StrictInt = Field(description="The available balance for spending (cents). Equals the credit limit, minus the balance and hold amounts.")
|
|
40
|
+
tags: Optional[Dict[str, Any]] = Field(default=None, description="See Tags.")
|
|
41
|
+
status: StrictStr = Field(description="Status of the account, either Open, Frozen, or Closed.")
|
|
42
|
+
freeze_reason: Optional[StrictStr] = Field(default=None, description="Optional. The reason the account was frozen, either Fraud, ByBank, or free-text description.", alias="freezeReason")
|
|
43
|
+
close_reason: Optional[StrictStr] = Field(default=None, description="Optional. The reason the account was closed, either ByCustomer, Overdue or Fraud.", alias="closeReason")
|
|
44
|
+
close_reason_text: Optional[StrictStr] = Field(default=None, description="Optional. An expanded free-text reason for account closure.", alias="closeReasonText")
|
|
45
|
+
fraud_reason: Optional[StrictStr] = Field(default=None, description="Optional. The expanded fraud reason for closing the account when Fraud is specified as the reason. Can be one of: (ACHActivity, CardActivity, CheckActivity, ApplicationHistory, AccountActivity, ClientIdentified, IdentityTheft, LinkedToFraudulentCustomer).", alias="fraudReason")
|
|
46
|
+
additional_properties: Dict[str, Any] = {}
|
|
47
|
+
__properties: ClassVar[List[str]] = ["createdAt", "updatedAt", "name", "creditTerms", "currency", "creditLimit", "balance", "hold", "available", "tags", "status", "freezeReason", "closeReason", "closeReasonText", "fraudReason"]
|
|
48
|
+
|
|
49
|
+
model_config = ConfigDict(
|
|
50
|
+
validate_by_name=True,
|
|
51
|
+
validate_by_alias=True,
|
|
52
|
+
validate_assignment=True,
|
|
53
|
+
protected_namespaces=(),
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def to_str(self) -> str:
|
|
58
|
+
"""Returns the string representation of the model using alias"""
|
|
59
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
60
|
+
|
|
61
|
+
def to_json(self) -> str:
|
|
62
|
+
"""Returns the JSON representation of the model using alias"""
|
|
63
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
64
|
+
|
|
65
|
+
@classmethod
|
|
66
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
67
|
+
"""Create an instance of CreditAccountAttributes from a JSON string"""
|
|
68
|
+
return cls.from_dict(json.loads(json_str))
|
|
69
|
+
|
|
70
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
71
|
+
"""Return the dictionary representation of the model using alias.
|
|
72
|
+
|
|
73
|
+
This has the following differences from calling pydantic's
|
|
74
|
+
`self.model_dump(by_alias=True)`:
|
|
75
|
+
|
|
76
|
+
* `None` is only added to the output dict for nullable fields that
|
|
77
|
+
were set at model initialization. Other fields with value `None`
|
|
78
|
+
are ignored.
|
|
79
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
80
|
+
"""
|
|
81
|
+
excluded_fields: Set[str] = set([
|
|
82
|
+
"additional_properties",
|
|
83
|
+
])
|
|
84
|
+
|
|
85
|
+
_dict = self.model_dump(
|
|
86
|
+
by_alias=True,
|
|
87
|
+
exclude=excluded_fields,
|
|
88
|
+
exclude_none=True,
|
|
89
|
+
)
|
|
90
|
+
# puts key-value pairs in additional_properties in the top level
|
|
91
|
+
if self.additional_properties is not None:
|
|
92
|
+
for _key, _value in self.additional_properties.items():
|
|
93
|
+
_dict[_key] = _value
|
|
94
|
+
|
|
95
|
+
return _dict
|
|
96
|
+
|
|
97
|
+
@classmethod
|
|
98
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
99
|
+
"""Create an instance of CreditAccountAttributes from a dict"""
|
|
100
|
+
if obj is None:
|
|
101
|
+
return None
|
|
102
|
+
|
|
103
|
+
if not isinstance(obj, dict):
|
|
104
|
+
return cls.model_validate(obj)
|
|
105
|
+
|
|
106
|
+
_obj = cls.model_validate({
|
|
107
|
+
"createdAt": obj.get("createdAt"),
|
|
108
|
+
"updatedAt": obj.get("updatedAt"),
|
|
109
|
+
"name": obj.get("name"),
|
|
110
|
+
"creditTerms": obj.get("creditTerms"),
|
|
111
|
+
"currency": obj.get("currency"),
|
|
112
|
+
"creditLimit": obj.get("creditLimit"),
|
|
113
|
+
"balance": obj.get("balance"),
|
|
114
|
+
"hold": obj.get("hold"),
|
|
115
|
+
"available": obj.get("available"),
|
|
116
|
+
"tags": obj.get("tags"),
|
|
117
|
+
"status": obj.get("status"),
|
|
118
|
+
"freezeReason": obj.get("freezeReason"),
|
|
119
|
+
"closeReason": obj.get("closeReason"),
|
|
120
|
+
"closeReasonText": obj.get("closeReasonText"),
|
|
121
|
+
"fraudReason": obj.get("fraudReason")
|
|
122
|
+
})
|
|
123
|
+
# store additional fields in additional_properties
|
|
124
|
+
for _key in obj.keys():
|
|
125
|
+
if _key not in cls.__properties:
|
|
126
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
127
|
+
|
|
128
|
+
return _obj
|
|
129
|
+
|
|
130
|
+
|
|
@@ -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, Optional
|
|
22
|
+
from unit_finance_sdk.models.relationship import Relationship
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
26
|
+
|
|
27
|
+
class CreditAccountRelationships(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
CreditAccountRelationships
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
customer: Optional[Relationship] = None
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties: ClassVar[List[str]] = ["customer"]
|
|
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 CreditAccountRelationships 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 customer
|
|
77
|
+
if self.customer:
|
|
78
|
+
_dict['customer'] = self.customer.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 CreditAccountRelationships 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
|
+
"customer": Relationship.from_dict(obj["customer"]) if obj.get("customer") 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
|
+
|