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,3636 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Unit API
|
|
3
|
+
|
|
4
|
+
JSON:API-compliant banking API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.9.0
|
|
7
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
|
|
9
|
+
Do not edit the class manually.
|
|
10
|
+
""" # noqa: E501
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import warnings
|
|
14
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
+
from typing_extensions import Annotated
|
|
17
|
+
|
|
18
|
+
from pydantic import Field, StrictStr, field_validator
|
|
19
|
+
from typing import Any, Dict, Optional
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from unit_finance_sdk.models.close_card200_response import CloseCard200Response
|
|
22
|
+
from unit_finance_sdk.models.create_card201_response import CreateCard201Response
|
|
23
|
+
from unit_finance_sdk.models.create_card_request import CreateCardRequest
|
|
24
|
+
from unit_finance_sdk.models.freeze_card_request import FreezeCardRequest
|
|
25
|
+
from unit_finance_sdk.models.get_account_limits200_response import GetAccountLimits200Response
|
|
26
|
+
from unit_finance_sdk.models.get_card200_response import GetCard200Response
|
|
27
|
+
from unit_finance_sdk.models.get_card_pin_status200_response import GetCardPinStatus200Response
|
|
28
|
+
from unit_finance_sdk.models.list_cards200_response import ListCards200Response
|
|
29
|
+
from unit_finance_sdk.models.replace_card200_response import ReplaceCard200Response
|
|
30
|
+
from unit_finance_sdk.models.replace_card_request import ReplaceCardRequest
|
|
31
|
+
from unit_finance_sdk.models.update_card200_response import UpdateCard200Response
|
|
32
|
+
from unit_finance_sdk.models.update_card_request import UpdateCardRequest
|
|
33
|
+
|
|
34
|
+
from unit_finance_sdk.api_client import ApiClient, RequestSerialized
|
|
35
|
+
from unit_finance_sdk.api_response import ApiResponse
|
|
36
|
+
from unit_finance_sdk.rest import RESTResponseType
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class CardsApi:
|
|
40
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
41
|
+
Ref: https://openapi-generator.tech
|
|
42
|
+
|
|
43
|
+
Do not edit the class manually.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def __init__(self, api_client=None) -> None:
|
|
47
|
+
if api_client is None:
|
|
48
|
+
api_client = ApiClient.get_default()
|
|
49
|
+
self.api_client = api_client
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@validate_call
|
|
53
|
+
def close_card(
|
|
54
|
+
self,
|
|
55
|
+
card_id: StrictStr,
|
|
56
|
+
body: Optional[Dict[str, Any]] = None,
|
|
57
|
+
_request_timeout: Union[
|
|
58
|
+
None,
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
60
|
+
Tuple[
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
62
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
63
|
+
]
|
|
64
|
+
] = None,
|
|
65
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
66
|
+
_content_type: Optional[StrictStr] = None,
|
|
67
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
68
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
69
|
+
) -> CloseCard200Response:
|
|
70
|
+
"""Close a card
|
|
71
|
+
|
|
72
|
+
Close a card.
|
|
73
|
+
|
|
74
|
+
:param card_id: (required)
|
|
75
|
+
:type card_id: str
|
|
76
|
+
:param body:
|
|
77
|
+
:type body: object
|
|
78
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
79
|
+
number provided, it will be total request
|
|
80
|
+
timeout. It can also be a pair (tuple) of
|
|
81
|
+
(connection, read) timeouts.
|
|
82
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
83
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
84
|
+
request; this effectively ignores the
|
|
85
|
+
authentication in the spec for a single request.
|
|
86
|
+
:type _request_auth: dict, optional
|
|
87
|
+
:param _content_type: force content-type for the request.
|
|
88
|
+
:type _content_type: str, Optional
|
|
89
|
+
:param _headers: set to override the headers for a single
|
|
90
|
+
request; this effectively ignores the headers
|
|
91
|
+
in the spec for a single request.
|
|
92
|
+
:type _headers: dict, optional
|
|
93
|
+
:param _host_index: set to override the host_index for a single
|
|
94
|
+
request; this effectively ignores the host_index
|
|
95
|
+
in the spec for a single request.
|
|
96
|
+
:type _host_index: int, optional
|
|
97
|
+
:return: Returns the result object.
|
|
98
|
+
""" # noqa: E501
|
|
99
|
+
|
|
100
|
+
_param = self._close_card_serialize(
|
|
101
|
+
card_id=card_id,
|
|
102
|
+
body=body,
|
|
103
|
+
_request_auth=_request_auth,
|
|
104
|
+
_content_type=_content_type,
|
|
105
|
+
_headers=_headers,
|
|
106
|
+
_host_index=_host_index
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
110
|
+
'200': "CloseCard200Response",
|
|
111
|
+
'400': "ErrorDocument",
|
|
112
|
+
'401': "ErrorDocument",
|
|
113
|
+
'404': "ErrorDocument",
|
|
114
|
+
}
|
|
115
|
+
response_data = self.api_client.call_api(
|
|
116
|
+
*_param,
|
|
117
|
+
_request_timeout=_request_timeout
|
|
118
|
+
)
|
|
119
|
+
response_data.read()
|
|
120
|
+
return self.api_client.response_deserialize(
|
|
121
|
+
response_data=response_data,
|
|
122
|
+
response_types_map=_response_types_map,
|
|
123
|
+
).data
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
@validate_call
|
|
127
|
+
def close_card_with_http_info(
|
|
128
|
+
self,
|
|
129
|
+
card_id: StrictStr,
|
|
130
|
+
body: Optional[Dict[str, Any]] = None,
|
|
131
|
+
_request_timeout: Union[
|
|
132
|
+
None,
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
134
|
+
Tuple[
|
|
135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
136
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
137
|
+
]
|
|
138
|
+
] = None,
|
|
139
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
140
|
+
_content_type: Optional[StrictStr] = None,
|
|
141
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
142
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
143
|
+
) -> ApiResponse[CloseCard200Response]:
|
|
144
|
+
"""Close a card
|
|
145
|
+
|
|
146
|
+
Close a card.
|
|
147
|
+
|
|
148
|
+
:param card_id: (required)
|
|
149
|
+
:type card_id: str
|
|
150
|
+
:param body:
|
|
151
|
+
:type body: object
|
|
152
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
153
|
+
number provided, it will be total request
|
|
154
|
+
timeout. It can also be a pair (tuple) of
|
|
155
|
+
(connection, read) timeouts.
|
|
156
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
157
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
158
|
+
request; this effectively ignores the
|
|
159
|
+
authentication in the spec for a single request.
|
|
160
|
+
:type _request_auth: dict, optional
|
|
161
|
+
:param _content_type: force content-type for the request.
|
|
162
|
+
:type _content_type: str, Optional
|
|
163
|
+
:param _headers: set to override the headers for a single
|
|
164
|
+
request; this effectively ignores the headers
|
|
165
|
+
in the spec for a single request.
|
|
166
|
+
:type _headers: dict, optional
|
|
167
|
+
:param _host_index: set to override the host_index for a single
|
|
168
|
+
request; this effectively ignores the host_index
|
|
169
|
+
in the spec for a single request.
|
|
170
|
+
:type _host_index: int, optional
|
|
171
|
+
:return: Returns the result object.
|
|
172
|
+
""" # noqa: E501
|
|
173
|
+
|
|
174
|
+
_param = self._close_card_serialize(
|
|
175
|
+
card_id=card_id,
|
|
176
|
+
body=body,
|
|
177
|
+
_request_auth=_request_auth,
|
|
178
|
+
_content_type=_content_type,
|
|
179
|
+
_headers=_headers,
|
|
180
|
+
_host_index=_host_index
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
184
|
+
'200': "CloseCard200Response",
|
|
185
|
+
'400': "ErrorDocument",
|
|
186
|
+
'401': "ErrorDocument",
|
|
187
|
+
'404': "ErrorDocument",
|
|
188
|
+
}
|
|
189
|
+
response_data = self.api_client.call_api(
|
|
190
|
+
*_param,
|
|
191
|
+
_request_timeout=_request_timeout
|
|
192
|
+
)
|
|
193
|
+
response_data.read()
|
|
194
|
+
return self.api_client.response_deserialize(
|
|
195
|
+
response_data=response_data,
|
|
196
|
+
response_types_map=_response_types_map,
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
@validate_call
|
|
201
|
+
def close_card_without_preload_content(
|
|
202
|
+
self,
|
|
203
|
+
card_id: StrictStr,
|
|
204
|
+
body: Optional[Dict[str, Any]] = None,
|
|
205
|
+
_request_timeout: Union[
|
|
206
|
+
None,
|
|
207
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
208
|
+
Tuple[
|
|
209
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
210
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
211
|
+
]
|
|
212
|
+
] = None,
|
|
213
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
214
|
+
_content_type: Optional[StrictStr] = None,
|
|
215
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
216
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
217
|
+
) -> RESTResponseType:
|
|
218
|
+
"""Close a card
|
|
219
|
+
|
|
220
|
+
Close a card.
|
|
221
|
+
|
|
222
|
+
:param card_id: (required)
|
|
223
|
+
:type card_id: str
|
|
224
|
+
:param body:
|
|
225
|
+
:type body: object
|
|
226
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
227
|
+
number provided, it will be total request
|
|
228
|
+
timeout. It can also be a pair (tuple) of
|
|
229
|
+
(connection, read) timeouts.
|
|
230
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
231
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
232
|
+
request; this effectively ignores the
|
|
233
|
+
authentication in the spec for a single request.
|
|
234
|
+
:type _request_auth: dict, optional
|
|
235
|
+
:param _content_type: force content-type for the request.
|
|
236
|
+
:type _content_type: str, Optional
|
|
237
|
+
:param _headers: set to override the headers for a single
|
|
238
|
+
request; this effectively ignores the headers
|
|
239
|
+
in the spec for a single request.
|
|
240
|
+
:type _headers: dict, optional
|
|
241
|
+
:param _host_index: set to override the host_index for a single
|
|
242
|
+
request; this effectively ignores the host_index
|
|
243
|
+
in the spec for a single request.
|
|
244
|
+
:type _host_index: int, optional
|
|
245
|
+
:return: Returns the result object.
|
|
246
|
+
""" # noqa: E501
|
|
247
|
+
|
|
248
|
+
_param = self._close_card_serialize(
|
|
249
|
+
card_id=card_id,
|
|
250
|
+
body=body,
|
|
251
|
+
_request_auth=_request_auth,
|
|
252
|
+
_content_type=_content_type,
|
|
253
|
+
_headers=_headers,
|
|
254
|
+
_host_index=_host_index
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
258
|
+
'200': "CloseCard200Response",
|
|
259
|
+
'400': "ErrorDocument",
|
|
260
|
+
'401': "ErrorDocument",
|
|
261
|
+
'404': "ErrorDocument",
|
|
262
|
+
}
|
|
263
|
+
response_data = self.api_client.call_api(
|
|
264
|
+
*_param,
|
|
265
|
+
_request_timeout=_request_timeout
|
|
266
|
+
)
|
|
267
|
+
return response_data.response
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
def _close_card_serialize(
|
|
271
|
+
self,
|
|
272
|
+
card_id,
|
|
273
|
+
body,
|
|
274
|
+
_request_auth,
|
|
275
|
+
_content_type,
|
|
276
|
+
_headers,
|
|
277
|
+
_host_index,
|
|
278
|
+
) -> RequestSerialized:
|
|
279
|
+
|
|
280
|
+
_host = None
|
|
281
|
+
|
|
282
|
+
_collection_formats: Dict[str, str] = {
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
_path_params: Dict[str, str] = {}
|
|
286
|
+
_query_params: List[Tuple[str, str]] = []
|
|
287
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
288
|
+
_form_params: List[Tuple[str, str]] = []
|
|
289
|
+
_files: Dict[
|
|
290
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
291
|
+
] = {}
|
|
292
|
+
_body_params: Optional[bytes] = None
|
|
293
|
+
|
|
294
|
+
# process the path parameters
|
|
295
|
+
if card_id is not None:
|
|
296
|
+
_path_params['cardId'] = card_id
|
|
297
|
+
# process the query parameters
|
|
298
|
+
# process the header parameters
|
|
299
|
+
# process the form parameters
|
|
300
|
+
# process the body parameter
|
|
301
|
+
if body is not None:
|
|
302
|
+
_body_params = body
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
# set the HTTP header `Accept`
|
|
306
|
+
if 'Accept' not in _header_params:
|
|
307
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
308
|
+
[
|
|
309
|
+
'application/vnd.api+json'
|
|
310
|
+
]
|
|
311
|
+
)
|
|
312
|
+
|
|
313
|
+
# set the HTTP header `Content-Type`
|
|
314
|
+
if _content_type:
|
|
315
|
+
_header_params['Content-Type'] = _content_type
|
|
316
|
+
else:
|
|
317
|
+
_default_content_type = (
|
|
318
|
+
self.api_client.select_header_content_type(
|
|
319
|
+
[
|
|
320
|
+
'application/vnd.api+json'
|
|
321
|
+
]
|
|
322
|
+
)
|
|
323
|
+
)
|
|
324
|
+
if _default_content_type is not None:
|
|
325
|
+
_header_params['Content-Type'] = _default_content_type
|
|
326
|
+
|
|
327
|
+
# authentication setting
|
|
328
|
+
_auth_settings: List[str] = [
|
|
329
|
+
'bearerAuth'
|
|
330
|
+
]
|
|
331
|
+
|
|
332
|
+
return self.api_client.param_serialize(
|
|
333
|
+
method='POST',
|
|
334
|
+
resource_path='/cards/{cardId}/close',
|
|
335
|
+
path_params=_path_params,
|
|
336
|
+
query_params=_query_params,
|
|
337
|
+
header_params=_header_params,
|
|
338
|
+
body=_body_params,
|
|
339
|
+
post_params=_form_params,
|
|
340
|
+
files=_files,
|
|
341
|
+
auth_settings=_auth_settings,
|
|
342
|
+
collection_formats=_collection_formats,
|
|
343
|
+
_host=_host,
|
|
344
|
+
_request_auth=_request_auth
|
|
345
|
+
)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
@validate_call
|
|
351
|
+
def create_card(
|
|
352
|
+
self,
|
|
353
|
+
create_card_request: CreateCardRequest,
|
|
354
|
+
_request_timeout: Union[
|
|
355
|
+
None,
|
|
356
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
357
|
+
Tuple[
|
|
358
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
359
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
360
|
+
]
|
|
361
|
+
] = None,
|
|
362
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
363
|
+
_content_type: Optional[StrictStr] = None,
|
|
364
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
365
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
366
|
+
) -> CreateCard201Response:
|
|
367
|
+
"""Create a card
|
|
368
|
+
|
|
369
|
+
Create a card. Variants: - **CreateBusinessCreditCard** - **CreateBusinessDebitCard** - **CreateBusinessVirtualCreditCard** - **CreateBusinessVirtualDebitCard** - **CreateIndividualDebitCard** - **CreateIndividualVirtualDebitCard**
|
|
370
|
+
|
|
371
|
+
:param create_card_request: (required)
|
|
372
|
+
:type create_card_request: CreateCardRequest
|
|
373
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
374
|
+
number provided, it will be total request
|
|
375
|
+
timeout. It can also be a pair (tuple) of
|
|
376
|
+
(connection, read) timeouts.
|
|
377
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
378
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
379
|
+
request; this effectively ignores the
|
|
380
|
+
authentication in the spec for a single request.
|
|
381
|
+
:type _request_auth: dict, optional
|
|
382
|
+
:param _content_type: force content-type for the request.
|
|
383
|
+
:type _content_type: str, Optional
|
|
384
|
+
:param _headers: set to override the headers for a single
|
|
385
|
+
request; this effectively ignores the headers
|
|
386
|
+
in the spec for a single request.
|
|
387
|
+
:type _headers: dict, optional
|
|
388
|
+
:param _host_index: set to override the host_index for a single
|
|
389
|
+
request; this effectively ignores the host_index
|
|
390
|
+
in the spec for a single request.
|
|
391
|
+
:type _host_index: int, optional
|
|
392
|
+
:return: Returns the result object.
|
|
393
|
+
""" # noqa: E501
|
|
394
|
+
|
|
395
|
+
_param = self._create_card_serialize(
|
|
396
|
+
create_card_request=create_card_request,
|
|
397
|
+
_request_auth=_request_auth,
|
|
398
|
+
_content_type=_content_type,
|
|
399
|
+
_headers=_headers,
|
|
400
|
+
_host_index=_host_index
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
404
|
+
'201': "CreateCard201Response",
|
|
405
|
+
'400': "ErrorDocument",
|
|
406
|
+
'401': "ErrorDocument",
|
|
407
|
+
'404': "ErrorDocument",
|
|
408
|
+
}
|
|
409
|
+
response_data = self.api_client.call_api(
|
|
410
|
+
*_param,
|
|
411
|
+
_request_timeout=_request_timeout
|
|
412
|
+
)
|
|
413
|
+
response_data.read()
|
|
414
|
+
return self.api_client.response_deserialize(
|
|
415
|
+
response_data=response_data,
|
|
416
|
+
response_types_map=_response_types_map,
|
|
417
|
+
).data
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
@validate_call
|
|
421
|
+
def create_card_with_http_info(
|
|
422
|
+
self,
|
|
423
|
+
create_card_request: CreateCardRequest,
|
|
424
|
+
_request_timeout: Union[
|
|
425
|
+
None,
|
|
426
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
427
|
+
Tuple[
|
|
428
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
429
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
430
|
+
]
|
|
431
|
+
] = None,
|
|
432
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
433
|
+
_content_type: Optional[StrictStr] = None,
|
|
434
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
435
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
436
|
+
) -> ApiResponse[CreateCard201Response]:
|
|
437
|
+
"""Create a card
|
|
438
|
+
|
|
439
|
+
Create a card. Variants: - **CreateBusinessCreditCard** - **CreateBusinessDebitCard** - **CreateBusinessVirtualCreditCard** - **CreateBusinessVirtualDebitCard** - **CreateIndividualDebitCard** - **CreateIndividualVirtualDebitCard**
|
|
440
|
+
|
|
441
|
+
:param create_card_request: (required)
|
|
442
|
+
:type create_card_request: CreateCardRequest
|
|
443
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
444
|
+
number provided, it will be total request
|
|
445
|
+
timeout. It can also be a pair (tuple) of
|
|
446
|
+
(connection, read) timeouts.
|
|
447
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
448
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
449
|
+
request; this effectively ignores the
|
|
450
|
+
authentication in the spec for a single request.
|
|
451
|
+
:type _request_auth: dict, optional
|
|
452
|
+
:param _content_type: force content-type for the request.
|
|
453
|
+
:type _content_type: str, Optional
|
|
454
|
+
:param _headers: set to override the headers for a single
|
|
455
|
+
request; this effectively ignores the headers
|
|
456
|
+
in the spec for a single request.
|
|
457
|
+
:type _headers: dict, optional
|
|
458
|
+
:param _host_index: set to override the host_index for a single
|
|
459
|
+
request; this effectively ignores the host_index
|
|
460
|
+
in the spec for a single request.
|
|
461
|
+
:type _host_index: int, optional
|
|
462
|
+
:return: Returns the result object.
|
|
463
|
+
""" # noqa: E501
|
|
464
|
+
|
|
465
|
+
_param = self._create_card_serialize(
|
|
466
|
+
create_card_request=create_card_request,
|
|
467
|
+
_request_auth=_request_auth,
|
|
468
|
+
_content_type=_content_type,
|
|
469
|
+
_headers=_headers,
|
|
470
|
+
_host_index=_host_index
|
|
471
|
+
)
|
|
472
|
+
|
|
473
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
474
|
+
'201': "CreateCard201Response",
|
|
475
|
+
'400': "ErrorDocument",
|
|
476
|
+
'401': "ErrorDocument",
|
|
477
|
+
'404': "ErrorDocument",
|
|
478
|
+
}
|
|
479
|
+
response_data = self.api_client.call_api(
|
|
480
|
+
*_param,
|
|
481
|
+
_request_timeout=_request_timeout
|
|
482
|
+
)
|
|
483
|
+
response_data.read()
|
|
484
|
+
return self.api_client.response_deserialize(
|
|
485
|
+
response_data=response_data,
|
|
486
|
+
response_types_map=_response_types_map,
|
|
487
|
+
)
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
@validate_call
|
|
491
|
+
def create_card_without_preload_content(
|
|
492
|
+
self,
|
|
493
|
+
create_card_request: CreateCardRequest,
|
|
494
|
+
_request_timeout: Union[
|
|
495
|
+
None,
|
|
496
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
497
|
+
Tuple[
|
|
498
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
499
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
500
|
+
]
|
|
501
|
+
] = None,
|
|
502
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
503
|
+
_content_type: Optional[StrictStr] = None,
|
|
504
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
505
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
506
|
+
) -> RESTResponseType:
|
|
507
|
+
"""Create a card
|
|
508
|
+
|
|
509
|
+
Create a card. Variants: - **CreateBusinessCreditCard** - **CreateBusinessDebitCard** - **CreateBusinessVirtualCreditCard** - **CreateBusinessVirtualDebitCard** - **CreateIndividualDebitCard** - **CreateIndividualVirtualDebitCard**
|
|
510
|
+
|
|
511
|
+
:param create_card_request: (required)
|
|
512
|
+
:type create_card_request: CreateCardRequest
|
|
513
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
514
|
+
number provided, it will be total request
|
|
515
|
+
timeout. It can also be a pair (tuple) of
|
|
516
|
+
(connection, read) timeouts.
|
|
517
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
518
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
519
|
+
request; this effectively ignores the
|
|
520
|
+
authentication in the spec for a single request.
|
|
521
|
+
:type _request_auth: dict, optional
|
|
522
|
+
:param _content_type: force content-type for the request.
|
|
523
|
+
:type _content_type: str, Optional
|
|
524
|
+
:param _headers: set to override the headers for a single
|
|
525
|
+
request; this effectively ignores the headers
|
|
526
|
+
in the spec for a single request.
|
|
527
|
+
:type _headers: dict, optional
|
|
528
|
+
:param _host_index: set to override the host_index for a single
|
|
529
|
+
request; this effectively ignores the host_index
|
|
530
|
+
in the spec for a single request.
|
|
531
|
+
:type _host_index: int, optional
|
|
532
|
+
:return: Returns the result object.
|
|
533
|
+
""" # noqa: E501
|
|
534
|
+
|
|
535
|
+
_param = self._create_card_serialize(
|
|
536
|
+
create_card_request=create_card_request,
|
|
537
|
+
_request_auth=_request_auth,
|
|
538
|
+
_content_type=_content_type,
|
|
539
|
+
_headers=_headers,
|
|
540
|
+
_host_index=_host_index
|
|
541
|
+
)
|
|
542
|
+
|
|
543
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
544
|
+
'201': "CreateCard201Response",
|
|
545
|
+
'400': "ErrorDocument",
|
|
546
|
+
'401': "ErrorDocument",
|
|
547
|
+
'404': "ErrorDocument",
|
|
548
|
+
}
|
|
549
|
+
response_data = self.api_client.call_api(
|
|
550
|
+
*_param,
|
|
551
|
+
_request_timeout=_request_timeout
|
|
552
|
+
)
|
|
553
|
+
return response_data.response
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
def _create_card_serialize(
|
|
557
|
+
self,
|
|
558
|
+
create_card_request,
|
|
559
|
+
_request_auth,
|
|
560
|
+
_content_type,
|
|
561
|
+
_headers,
|
|
562
|
+
_host_index,
|
|
563
|
+
) -> RequestSerialized:
|
|
564
|
+
|
|
565
|
+
_host = None
|
|
566
|
+
|
|
567
|
+
_collection_formats: Dict[str, str] = {
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
_path_params: Dict[str, str] = {}
|
|
571
|
+
_query_params: List[Tuple[str, str]] = []
|
|
572
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
573
|
+
_form_params: List[Tuple[str, str]] = []
|
|
574
|
+
_files: Dict[
|
|
575
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
576
|
+
] = {}
|
|
577
|
+
_body_params: Optional[bytes] = None
|
|
578
|
+
|
|
579
|
+
# process the path parameters
|
|
580
|
+
# process the query parameters
|
|
581
|
+
# process the header parameters
|
|
582
|
+
# process the form parameters
|
|
583
|
+
# process the body parameter
|
|
584
|
+
if create_card_request is not None:
|
|
585
|
+
_body_params = create_card_request
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
# set the HTTP header `Accept`
|
|
589
|
+
if 'Accept' not in _header_params:
|
|
590
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
591
|
+
[
|
|
592
|
+
'application/vnd.api+json'
|
|
593
|
+
]
|
|
594
|
+
)
|
|
595
|
+
|
|
596
|
+
# set the HTTP header `Content-Type`
|
|
597
|
+
if _content_type:
|
|
598
|
+
_header_params['Content-Type'] = _content_type
|
|
599
|
+
else:
|
|
600
|
+
_default_content_type = (
|
|
601
|
+
self.api_client.select_header_content_type(
|
|
602
|
+
[
|
|
603
|
+
'application/vnd.api+json'
|
|
604
|
+
]
|
|
605
|
+
)
|
|
606
|
+
)
|
|
607
|
+
if _default_content_type is not None:
|
|
608
|
+
_header_params['Content-Type'] = _default_content_type
|
|
609
|
+
|
|
610
|
+
# authentication setting
|
|
611
|
+
_auth_settings: List[str] = [
|
|
612
|
+
'bearerAuth'
|
|
613
|
+
]
|
|
614
|
+
|
|
615
|
+
return self.api_client.param_serialize(
|
|
616
|
+
method='POST',
|
|
617
|
+
resource_path='/cards',
|
|
618
|
+
path_params=_path_params,
|
|
619
|
+
query_params=_query_params,
|
|
620
|
+
header_params=_header_params,
|
|
621
|
+
body=_body_params,
|
|
622
|
+
post_params=_form_params,
|
|
623
|
+
files=_files,
|
|
624
|
+
auth_settings=_auth_settings,
|
|
625
|
+
collection_formats=_collection_formats,
|
|
626
|
+
_host=_host,
|
|
627
|
+
_request_auth=_request_auth
|
|
628
|
+
)
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
@validate_call
|
|
634
|
+
def freeze_card(
|
|
635
|
+
self,
|
|
636
|
+
card_id: StrictStr,
|
|
637
|
+
freeze_card_request: FreezeCardRequest,
|
|
638
|
+
_request_timeout: Union[
|
|
639
|
+
None,
|
|
640
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
641
|
+
Tuple[
|
|
642
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
643
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
644
|
+
]
|
|
645
|
+
] = None,
|
|
646
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
647
|
+
_content_type: Optional[StrictStr] = None,
|
|
648
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
649
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
650
|
+
) -> CloseCard200Response:
|
|
651
|
+
"""Freeze a card
|
|
652
|
+
|
|
653
|
+
Freeze a card (temporarily block a card).
|
|
654
|
+
|
|
655
|
+
:param card_id: (required)
|
|
656
|
+
:type card_id: str
|
|
657
|
+
:param freeze_card_request: (required)
|
|
658
|
+
:type freeze_card_request: FreezeCardRequest
|
|
659
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
660
|
+
number provided, it will be total request
|
|
661
|
+
timeout. It can also be a pair (tuple) of
|
|
662
|
+
(connection, read) timeouts.
|
|
663
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
664
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
665
|
+
request; this effectively ignores the
|
|
666
|
+
authentication in the spec for a single request.
|
|
667
|
+
:type _request_auth: dict, optional
|
|
668
|
+
:param _content_type: force content-type for the request.
|
|
669
|
+
:type _content_type: str, Optional
|
|
670
|
+
:param _headers: set to override the headers for a single
|
|
671
|
+
request; this effectively ignores the headers
|
|
672
|
+
in the spec for a single request.
|
|
673
|
+
:type _headers: dict, optional
|
|
674
|
+
:param _host_index: set to override the host_index for a single
|
|
675
|
+
request; this effectively ignores the host_index
|
|
676
|
+
in the spec for a single request.
|
|
677
|
+
:type _host_index: int, optional
|
|
678
|
+
:return: Returns the result object.
|
|
679
|
+
""" # noqa: E501
|
|
680
|
+
|
|
681
|
+
_param = self._freeze_card_serialize(
|
|
682
|
+
card_id=card_id,
|
|
683
|
+
freeze_card_request=freeze_card_request,
|
|
684
|
+
_request_auth=_request_auth,
|
|
685
|
+
_content_type=_content_type,
|
|
686
|
+
_headers=_headers,
|
|
687
|
+
_host_index=_host_index
|
|
688
|
+
)
|
|
689
|
+
|
|
690
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
691
|
+
'200': "CloseCard200Response",
|
|
692
|
+
'400': "ErrorDocument",
|
|
693
|
+
'401': "ErrorDocument",
|
|
694
|
+
'404': "ErrorDocument",
|
|
695
|
+
}
|
|
696
|
+
response_data = self.api_client.call_api(
|
|
697
|
+
*_param,
|
|
698
|
+
_request_timeout=_request_timeout
|
|
699
|
+
)
|
|
700
|
+
response_data.read()
|
|
701
|
+
return self.api_client.response_deserialize(
|
|
702
|
+
response_data=response_data,
|
|
703
|
+
response_types_map=_response_types_map,
|
|
704
|
+
).data
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
@validate_call
|
|
708
|
+
def freeze_card_with_http_info(
|
|
709
|
+
self,
|
|
710
|
+
card_id: StrictStr,
|
|
711
|
+
freeze_card_request: FreezeCardRequest,
|
|
712
|
+
_request_timeout: Union[
|
|
713
|
+
None,
|
|
714
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
715
|
+
Tuple[
|
|
716
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
717
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
718
|
+
]
|
|
719
|
+
] = None,
|
|
720
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
721
|
+
_content_type: Optional[StrictStr] = None,
|
|
722
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
723
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
724
|
+
) -> ApiResponse[CloseCard200Response]:
|
|
725
|
+
"""Freeze a card
|
|
726
|
+
|
|
727
|
+
Freeze a card (temporarily block a card).
|
|
728
|
+
|
|
729
|
+
:param card_id: (required)
|
|
730
|
+
:type card_id: str
|
|
731
|
+
:param freeze_card_request: (required)
|
|
732
|
+
:type freeze_card_request: FreezeCardRequest
|
|
733
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
734
|
+
number provided, it will be total request
|
|
735
|
+
timeout. It can also be a pair (tuple) of
|
|
736
|
+
(connection, read) timeouts.
|
|
737
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
738
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
739
|
+
request; this effectively ignores the
|
|
740
|
+
authentication in the spec for a single request.
|
|
741
|
+
:type _request_auth: dict, optional
|
|
742
|
+
:param _content_type: force content-type for the request.
|
|
743
|
+
:type _content_type: str, Optional
|
|
744
|
+
:param _headers: set to override the headers for a single
|
|
745
|
+
request; this effectively ignores the headers
|
|
746
|
+
in the spec for a single request.
|
|
747
|
+
:type _headers: dict, optional
|
|
748
|
+
:param _host_index: set to override the host_index for a single
|
|
749
|
+
request; this effectively ignores the host_index
|
|
750
|
+
in the spec for a single request.
|
|
751
|
+
:type _host_index: int, optional
|
|
752
|
+
:return: Returns the result object.
|
|
753
|
+
""" # noqa: E501
|
|
754
|
+
|
|
755
|
+
_param = self._freeze_card_serialize(
|
|
756
|
+
card_id=card_id,
|
|
757
|
+
freeze_card_request=freeze_card_request,
|
|
758
|
+
_request_auth=_request_auth,
|
|
759
|
+
_content_type=_content_type,
|
|
760
|
+
_headers=_headers,
|
|
761
|
+
_host_index=_host_index
|
|
762
|
+
)
|
|
763
|
+
|
|
764
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
765
|
+
'200': "CloseCard200Response",
|
|
766
|
+
'400': "ErrorDocument",
|
|
767
|
+
'401': "ErrorDocument",
|
|
768
|
+
'404': "ErrorDocument",
|
|
769
|
+
}
|
|
770
|
+
response_data = self.api_client.call_api(
|
|
771
|
+
*_param,
|
|
772
|
+
_request_timeout=_request_timeout
|
|
773
|
+
)
|
|
774
|
+
response_data.read()
|
|
775
|
+
return self.api_client.response_deserialize(
|
|
776
|
+
response_data=response_data,
|
|
777
|
+
response_types_map=_response_types_map,
|
|
778
|
+
)
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
@validate_call
|
|
782
|
+
def freeze_card_without_preload_content(
|
|
783
|
+
self,
|
|
784
|
+
card_id: StrictStr,
|
|
785
|
+
freeze_card_request: FreezeCardRequest,
|
|
786
|
+
_request_timeout: Union[
|
|
787
|
+
None,
|
|
788
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
789
|
+
Tuple[
|
|
790
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
791
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
792
|
+
]
|
|
793
|
+
] = None,
|
|
794
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
795
|
+
_content_type: Optional[StrictStr] = None,
|
|
796
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
797
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
798
|
+
) -> RESTResponseType:
|
|
799
|
+
"""Freeze a card
|
|
800
|
+
|
|
801
|
+
Freeze a card (temporarily block a card).
|
|
802
|
+
|
|
803
|
+
:param card_id: (required)
|
|
804
|
+
:type card_id: str
|
|
805
|
+
:param freeze_card_request: (required)
|
|
806
|
+
:type freeze_card_request: FreezeCardRequest
|
|
807
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
808
|
+
number provided, it will be total request
|
|
809
|
+
timeout. It can also be a pair (tuple) of
|
|
810
|
+
(connection, read) timeouts.
|
|
811
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
812
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
813
|
+
request; this effectively ignores the
|
|
814
|
+
authentication in the spec for a single request.
|
|
815
|
+
:type _request_auth: dict, optional
|
|
816
|
+
:param _content_type: force content-type for the request.
|
|
817
|
+
:type _content_type: str, Optional
|
|
818
|
+
:param _headers: set to override the headers for a single
|
|
819
|
+
request; this effectively ignores the headers
|
|
820
|
+
in the spec for a single request.
|
|
821
|
+
:type _headers: dict, optional
|
|
822
|
+
:param _host_index: set to override the host_index for a single
|
|
823
|
+
request; this effectively ignores the host_index
|
|
824
|
+
in the spec for a single request.
|
|
825
|
+
:type _host_index: int, optional
|
|
826
|
+
:return: Returns the result object.
|
|
827
|
+
""" # noqa: E501
|
|
828
|
+
|
|
829
|
+
_param = self._freeze_card_serialize(
|
|
830
|
+
card_id=card_id,
|
|
831
|
+
freeze_card_request=freeze_card_request,
|
|
832
|
+
_request_auth=_request_auth,
|
|
833
|
+
_content_type=_content_type,
|
|
834
|
+
_headers=_headers,
|
|
835
|
+
_host_index=_host_index
|
|
836
|
+
)
|
|
837
|
+
|
|
838
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
839
|
+
'200': "CloseCard200Response",
|
|
840
|
+
'400': "ErrorDocument",
|
|
841
|
+
'401': "ErrorDocument",
|
|
842
|
+
'404': "ErrorDocument",
|
|
843
|
+
}
|
|
844
|
+
response_data = self.api_client.call_api(
|
|
845
|
+
*_param,
|
|
846
|
+
_request_timeout=_request_timeout
|
|
847
|
+
)
|
|
848
|
+
return response_data.response
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
def _freeze_card_serialize(
|
|
852
|
+
self,
|
|
853
|
+
card_id,
|
|
854
|
+
freeze_card_request,
|
|
855
|
+
_request_auth,
|
|
856
|
+
_content_type,
|
|
857
|
+
_headers,
|
|
858
|
+
_host_index,
|
|
859
|
+
) -> RequestSerialized:
|
|
860
|
+
|
|
861
|
+
_host = None
|
|
862
|
+
|
|
863
|
+
_collection_formats: Dict[str, str] = {
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
_path_params: Dict[str, str] = {}
|
|
867
|
+
_query_params: List[Tuple[str, str]] = []
|
|
868
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
869
|
+
_form_params: List[Tuple[str, str]] = []
|
|
870
|
+
_files: Dict[
|
|
871
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
872
|
+
] = {}
|
|
873
|
+
_body_params: Optional[bytes] = None
|
|
874
|
+
|
|
875
|
+
# process the path parameters
|
|
876
|
+
if card_id is not None:
|
|
877
|
+
_path_params['cardId'] = card_id
|
|
878
|
+
# process the query parameters
|
|
879
|
+
# process the header parameters
|
|
880
|
+
# process the form parameters
|
|
881
|
+
# process the body parameter
|
|
882
|
+
if freeze_card_request is not None:
|
|
883
|
+
_body_params = freeze_card_request
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
# set the HTTP header `Accept`
|
|
887
|
+
if 'Accept' not in _header_params:
|
|
888
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
889
|
+
[
|
|
890
|
+
'application/vnd.api+json'
|
|
891
|
+
]
|
|
892
|
+
)
|
|
893
|
+
|
|
894
|
+
# set the HTTP header `Content-Type`
|
|
895
|
+
if _content_type:
|
|
896
|
+
_header_params['Content-Type'] = _content_type
|
|
897
|
+
else:
|
|
898
|
+
_default_content_type = (
|
|
899
|
+
self.api_client.select_header_content_type(
|
|
900
|
+
[
|
|
901
|
+
'application/vnd.api+json'
|
|
902
|
+
]
|
|
903
|
+
)
|
|
904
|
+
)
|
|
905
|
+
if _default_content_type is not None:
|
|
906
|
+
_header_params['Content-Type'] = _default_content_type
|
|
907
|
+
|
|
908
|
+
# authentication setting
|
|
909
|
+
_auth_settings: List[str] = [
|
|
910
|
+
'bearerAuth'
|
|
911
|
+
]
|
|
912
|
+
|
|
913
|
+
return self.api_client.param_serialize(
|
|
914
|
+
method='POST',
|
|
915
|
+
resource_path='/cards/{cardId}/freeze',
|
|
916
|
+
path_params=_path_params,
|
|
917
|
+
query_params=_query_params,
|
|
918
|
+
header_params=_header_params,
|
|
919
|
+
body=_body_params,
|
|
920
|
+
post_params=_form_params,
|
|
921
|
+
files=_files,
|
|
922
|
+
auth_settings=_auth_settings,
|
|
923
|
+
collection_formats=_collection_formats,
|
|
924
|
+
_host=_host,
|
|
925
|
+
_request_auth=_request_auth
|
|
926
|
+
)
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
@validate_call
|
|
932
|
+
def get_card(
|
|
933
|
+
self,
|
|
934
|
+
card_id: StrictStr,
|
|
935
|
+
include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
|
|
936
|
+
_request_timeout: Union[
|
|
937
|
+
None,
|
|
938
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
939
|
+
Tuple[
|
|
940
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
941
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
942
|
+
]
|
|
943
|
+
] = None,
|
|
944
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
945
|
+
_content_type: Optional[StrictStr] = None,
|
|
946
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
947
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
948
|
+
) -> GetCard200Response:
|
|
949
|
+
"""Get a card
|
|
950
|
+
|
|
951
|
+
Get a card resource by id.
|
|
952
|
+
|
|
953
|
+
:param card_id: (required)
|
|
954
|
+
:type card_id: str
|
|
955
|
+
:param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
|
|
956
|
+
:type include: str
|
|
957
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
958
|
+
number provided, it will be total request
|
|
959
|
+
timeout. It can also be a pair (tuple) of
|
|
960
|
+
(connection, read) timeouts.
|
|
961
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
962
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
963
|
+
request; this effectively ignores the
|
|
964
|
+
authentication in the spec for a single request.
|
|
965
|
+
:type _request_auth: dict, optional
|
|
966
|
+
:param _content_type: force content-type for the request.
|
|
967
|
+
:type _content_type: str, Optional
|
|
968
|
+
:param _headers: set to override the headers for a single
|
|
969
|
+
request; this effectively ignores the headers
|
|
970
|
+
in the spec for a single request.
|
|
971
|
+
:type _headers: dict, optional
|
|
972
|
+
:param _host_index: set to override the host_index for a single
|
|
973
|
+
request; this effectively ignores the host_index
|
|
974
|
+
in the spec for a single request.
|
|
975
|
+
:type _host_index: int, optional
|
|
976
|
+
:return: Returns the result object.
|
|
977
|
+
""" # noqa: E501
|
|
978
|
+
|
|
979
|
+
_param = self._get_card_serialize(
|
|
980
|
+
card_id=card_id,
|
|
981
|
+
include=include,
|
|
982
|
+
_request_auth=_request_auth,
|
|
983
|
+
_content_type=_content_type,
|
|
984
|
+
_headers=_headers,
|
|
985
|
+
_host_index=_host_index
|
|
986
|
+
)
|
|
987
|
+
|
|
988
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
989
|
+
'200': "GetCard200Response",
|
|
990
|
+
'400': "ErrorDocument",
|
|
991
|
+
'401': "ErrorDocument",
|
|
992
|
+
'404': "ErrorDocument",
|
|
993
|
+
}
|
|
994
|
+
response_data = self.api_client.call_api(
|
|
995
|
+
*_param,
|
|
996
|
+
_request_timeout=_request_timeout
|
|
997
|
+
)
|
|
998
|
+
response_data.read()
|
|
999
|
+
return self.api_client.response_deserialize(
|
|
1000
|
+
response_data=response_data,
|
|
1001
|
+
response_types_map=_response_types_map,
|
|
1002
|
+
).data
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
@validate_call
|
|
1006
|
+
def get_card_with_http_info(
|
|
1007
|
+
self,
|
|
1008
|
+
card_id: StrictStr,
|
|
1009
|
+
include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
|
|
1010
|
+
_request_timeout: Union[
|
|
1011
|
+
None,
|
|
1012
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1013
|
+
Tuple[
|
|
1014
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1015
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1016
|
+
]
|
|
1017
|
+
] = None,
|
|
1018
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1019
|
+
_content_type: Optional[StrictStr] = None,
|
|
1020
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1021
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1022
|
+
) -> ApiResponse[GetCard200Response]:
|
|
1023
|
+
"""Get a card
|
|
1024
|
+
|
|
1025
|
+
Get a card resource by id.
|
|
1026
|
+
|
|
1027
|
+
:param card_id: (required)
|
|
1028
|
+
:type card_id: str
|
|
1029
|
+
:param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
|
|
1030
|
+
:type include: str
|
|
1031
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1032
|
+
number provided, it will be total request
|
|
1033
|
+
timeout. It can also be a pair (tuple) of
|
|
1034
|
+
(connection, read) timeouts.
|
|
1035
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1036
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1037
|
+
request; this effectively ignores the
|
|
1038
|
+
authentication in the spec for a single request.
|
|
1039
|
+
:type _request_auth: dict, optional
|
|
1040
|
+
:param _content_type: force content-type for the request.
|
|
1041
|
+
:type _content_type: str, Optional
|
|
1042
|
+
:param _headers: set to override the headers for a single
|
|
1043
|
+
request; this effectively ignores the headers
|
|
1044
|
+
in the spec for a single request.
|
|
1045
|
+
:type _headers: dict, optional
|
|
1046
|
+
:param _host_index: set to override the host_index for a single
|
|
1047
|
+
request; this effectively ignores the host_index
|
|
1048
|
+
in the spec for a single request.
|
|
1049
|
+
:type _host_index: int, optional
|
|
1050
|
+
:return: Returns the result object.
|
|
1051
|
+
""" # noqa: E501
|
|
1052
|
+
|
|
1053
|
+
_param = self._get_card_serialize(
|
|
1054
|
+
card_id=card_id,
|
|
1055
|
+
include=include,
|
|
1056
|
+
_request_auth=_request_auth,
|
|
1057
|
+
_content_type=_content_type,
|
|
1058
|
+
_headers=_headers,
|
|
1059
|
+
_host_index=_host_index
|
|
1060
|
+
)
|
|
1061
|
+
|
|
1062
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1063
|
+
'200': "GetCard200Response",
|
|
1064
|
+
'400': "ErrorDocument",
|
|
1065
|
+
'401': "ErrorDocument",
|
|
1066
|
+
'404': "ErrorDocument",
|
|
1067
|
+
}
|
|
1068
|
+
response_data = self.api_client.call_api(
|
|
1069
|
+
*_param,
|
|
1070
|
+
_request_timeout=_request_timeout
|
|
1071
|
+
)
|
|
1072
|
+
response_data.read()
|
|
1073
|
+
return self.api_client.response_deserialize(
|
|
1074
|
+
response_data=response_data,
|
|
1075
|
+
response_types_map=_response_types_map,
|
|
1076
|
+
)
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
@validate_call
|
|
1080
|
+
def get_card_without_preload_content(
|
|
1081
|
+
self,
|
|
1082
|
+
card_id: StrictStr,
|
|
1083
|
+
include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
|
|
1084
|
+
_request_timeout: Union[
|
|
1085
|
+
None,
|
|
1086
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1087
|
+
Tuple[
|
|
1088
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1089
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1090
|
+
]
|
|
1091
|
+
] = None,
|
|
1092
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1093
|
+
_content_type: Optional[StrictStr] = None,
|
|
1094
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1095
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1096
|
+
) -> RESTResponseType:
|
|
1097
|
+
"""Get a card
|
|
1098
|
+
|
|
1099
|
+
Get a card resource by id.
|
|
1100
|
+
|
|
1101
|
+
:param card_id: (required)
|
|
1102
|
+
:type card_id: str
|
|
1103
|
+
:param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
|
|
1104
|
+
:type include: str
|
|
1105
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1106
|
+
number provided, it will be total request
|
|
1107
|
+
timeout. It can also be a pair (tuple) of
|
|
1108
|
+
(connection, read) timeouts.
|
|
1109
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1110
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1111
|
+
request; this effectively ignores the
|
|
1112
|
+
authentication in the spec for a single request.
|
|
1113
|
+
:type _request_auth: dict, optional
|
|
1114
|
+
:param _content_type: force content-type for the request.
|
|
1115
|
+
:type _content_type: str, Optional
|
|
1116
|
+
:param _headers: set to override the headers for a single
|
|
1117
|
+
request; this effectively ignores the headers
|
|
1118
|
+
in the spec for a single request.
|
|
1119
|
+
:type _headers: dict, optional
|
|
1120
|
+
:param _host_index: set to override the host_index for a single
|
|
1121
|
+
request; this effectively ignores the host_index
|
|
1122
|
+
in the spec for a single request.
|
|
1123
|
+
:type _host_index: int, optional
|
|
1124
|
+
:return: Returns the result object.
|
|
1125
|
+
""" # noqa: E501
|
|
1126
|
+
|
|
1127
|
+
_param = self._get_card_serialize(
|
|
1128
|
+
card_id=card_id,
|
|
1129
|
+
include=include,
|
|
1130
|
+
_request_auth=_request_auth,
|
|
1131
|
+
_content_type=_content_type,
|
|
1132
|
+
_headers=_headers,
|
|
1133
|
+
_host_index=_host_index
|
|
1134
|
+
)
|
|
1135
|
+
|
|
1136
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1137
|
+
'200': "GetCard200Response",
|
|
1138
|
+
'400': "ErrorDocument",
|
|
1139
|
+
'401': "ErrorDocument",
|
|
1140
|
+
'404': "ErrorDocument",
|
|
1141
|
+
}
|
|
1142
|
+
response_data = self.api_client.call_api(
|
|
1143
|
+
*_param,
|
|
1144
|
+
_request_timeout=_request_timeout
|
|
1145
|
+
)
|
|
1146
|
+
return response_data.response
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
def _get_card_serialize(
|
|
1150
|
+
self,
|
|
1151
|
+
card_id,
|
|
1152
|
+
include,
|
|
1153
|
+
_request_auth,
|
|
1154
|
+
_content_type,
|
|
1155
|
+
_headers,
|
|
1156
|
+
_host_index,
|
|
1157
|
+
) -> RequestSerialized:
|
|
1158
|
+
|
|
1159
|
+
_host = None
|
|
1160
|
+
|
|
1161
|
+
_collection_formats: Dict[str, str] = {
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
_path_params: Dict[str, str] = {}
|
|
1165
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1166
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1167
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1168
|
+
_files: Dict[
|
|
1169
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1170
|
+
] = {}
|
|
1171
|
+
_body_params: Optional[bytes] = None
|
|
1172
|
+
|
|
1173
|
+
# process the path parameters
|
|
1174
|
+
if card_id is not None:
|
|
1175
|
+
_path_params['cardId'] = card_id
|
|
1176
|
+
# process the query parameters
|
|
1177
|
+
if include is not None:
|
|
1178
|
+
|
|
1179
|
+
_query_params.append(('include', include))
|
|
1180
|
+
|
|
1181
|
+
# process the header parameters
|
|
1182
|
+
# process the form parameters
|
|
1183
|
+
# process the body parameter
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
# set the HTTP header `Accept`
|
|
1187
|
+
if 'Accept' not in _header_params:
|
|
1188
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1189
|
+
[
|
|
1190
|
+
'application/vnd.api+json'
|
|
1191
|
+
]
|
|
1192
|
+
)
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
# authentication setting
|
|
1196
|
+
_auth_settings: List[str] = [
|
|
1197
|
+
'bearerAuth'
|
|
1198
|
+
]
|
|
1199
|
+
|
|
1200
|
+
return self.api_client.param_serialize(
|
|
1201
|
+
method='GET',
|
|
1202
|
+
resource_path='/cards/{cardId}',
|
|
1203
|
+
path_params=_path_params,
|
|
1204
|
+
query_params=_query_params,
|
|
1205
|
+
header_params=_header_params,
|
|
1206
|
+
body=_body_params,
|
|
1207
|
+
post_params=_form_params,
|
|
1208
|
+
files=_files,
|
|
1209
|
+
auth_settings=_auth_settings,
|
|
1210
|
+
collection_formats=_collection_formats,
|
|
1211
|
+
_host=_host,
|
|
1212
|
+
_request_auth=_request_auth
|
|
1213
|
+
)
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
@validate_call
|
|
1219
|
+
def get_card_limits(
|
|
1220
|
+
self,
|
|
1221
|
+
card_id: StrictStr,
|
|
1222
|
+
_request_timeout: Union[
|
|
1223
|
+
None,
|
|
1224
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1225
|
+
Tuple[
|
|
1226
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1227
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1228
|
+
]
|
|
1229
|
+
] = None,
|
|
1230
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1231
|
+
_content_type: Optional[StrictStr] = None,
|
|
1232
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1233
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1234
|
+
) -> GetAccountLimits200Response:
|
|
1235
|
+
"""Get card limits
|
|
1236
|
+
|
|
1237
|
+
Get the limits of a card.
|
|
1238
|
+
|
|
1239
|
+
:param card_id: (required)
|
|
1240
|
+
:type card_id: str
|
|
1241
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1242
|
+
number provided, it will be total request
|
|
1243
|
+
timeout. It can also be a pair (tuple) of
|
|
1244
|
+
(connection, read) timeouts.
|
|
1245
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1246
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1247
|
+
request; this effectively ignores the
|
|
1248
|
+
authentication in the spec for a single request.
|
|
1249
|
+
:type _request_auth: dict, optional
|
|
1250
|
+
:param _content_type: force content-type for the request.
|
|
1251
|
+
:type _content_type: str, Optional
|
|
1252
|
+
:param _headers: set to override the headers for a single
|
|
1253
|
+
request; this effectively ignores the headers
|
|
1254
|
+
in the spec for a single request.
|
|
1255
|
+
:type _headers: dict, optional
|
|
1256
|
+
:param _host_index: set to override the host_index for a single
|
|
1257
|
+
request; this effectively ignores the host_index
|
|
1258
|
+
in the spec for a single request.
|
|
1259
|
+
:type _host_index: int, optional
|
|
1260
|
+
:return: Returns the result object.
|
|
1261
|
+
""" # noqa: E501
|
|
1262
|
+
|
|
1263
|
+
_param = self._get_card_limits_serialize(
|
|
1264
|
+
card_id=card_id,
|
|
1265
|
+
_request_auth=_request_auth,
|
|
1266
|
+
_content_type=_content_type,
|
|
1267
|
+
_headers=_headers,
|
|
1268
|
+
_host_index=_host_index
|
|
1269
|
+
)
|
|
1270
|
+
|
|
1271
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1272
|
+
'200': "GetAccountLimits200Response",
|
|
1273
|
+
'400': "ErrorDocument",
|
|
1274
|
+
'401': "ErrorDocument",
|
|
1275
|
+
'404': "ErrorDocument",
|
|
1276
|
+
}
|
|
1277
|
+
response_data = self.api_client.call_api(
|
|
1278
|
+
*_param,
|
|
1279
|
+
_request_timeout=_request_timeout
|
|
1280
|
+
)
|
|
1281
|
+
response_data.read()
|
|
1282
|
+
return self.api_client.response_deserialize(
|
|
1283
|
+
response_data=response_data,
|
|
1284
|
+
response_types_map=_response_types_map,
|
|
1285
|
+
).data
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
@validate_call
|
|
1289
|
+
def get_card_limits_with_http_info(
|
|
1290
|
+
self,
|
|
1291
|
+
card_id: StrictStr,
|
|
1292
|
+
_request_timeout: Union[
|
|
1293
|
+
None,
|
|
1294
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1295
|
+
Tuple[
|
|
1296
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1297
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1298
|
+
]
|
|
1299
|
+
] = None,
|
|
1300
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1301
|
+
_content_type: Optional[StrictStr] = None,
|
|
1302
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1303
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1304
|
+
) -> ApiResponse[GetAccountLimits200Response]:
|
|
1305
|
+
"""Get card limits
|
|
1306
|
+
|
|
1307
|
+
Get the limits of a card.
|
|
1308
|
+
|
|
1309
|
+
:param card_id: (required)
|
|
1310
|
+
:type card_id: str
|
|
1311
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1312
|
+
number provided, it will be total request
|
|
1313
|
+
timeout. It can also be a pair (tuple) of
|
|
1314
|
+
(connection, read) timeouts.
|
|
1315
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1316
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1317
|
+
request; this effectively ignores the
|
|
1318
|
+
authentication in the spec for a single request.
|
|
1319
|
+
:type _request_auth: dict, optional
|
|
1320
|
+
:param _content_type: force content-type for the request.
|
|
1321
|
+
:type _content_type: str, Optional
|
|
1322
|
+
:param _headers: set to override the headers for a single
|
|
1323
|
+
request; this effectively ignores the headers
|
|
1324
|
+
in the spec for a single request.
|
|
1325
|
+
:type _headers: dict, optional
|
|
1326
|
+
:param _host_index: set to override the host_index for a single
|
|
1327
|
+
request; this effectively ignores the host_index
|
|
1328
|
+
in the spec for a single request.
|
|
1329
|
+
:type _host_index: int, optional
|
|
1330
|
+
:return: Returns the result object.
|
|
1331
|
+
""" # noqa: E501
|
|
1332
|
+
|
|
1333
|
+
_param = self._get_card_limits_serialize(
|
|
1334
|
+
card_id=card_id,
|
|
1335
|
+
_request_auth=_request_auth,
|
|
1336
|
+
_content_type=_content_type,
|
|
1337
|
+
_headers=_headers,
|
|
1338
|
+
_host_index=_host_index
|
|
1339
|
+
)
|
|
1340
|
+
|
|
1341
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1342
|
+
'200': "GetAccountLimits200Response",
|
|
1343
|
+
'400': "ErrorDocument",
|
|
1344
|
+
'401': "ErrorDocument",
|
|
1345
|
+
'404': "ErrorDocument",
|
|
1346
|
+
}
|
|
1347
|
+
response_data = self.api_client.call_api(
|
|
1348
|
+
*_param,
|
|
1349
|
+
_request_timeout=_request_timeout
|
|
1350
|
+
)
|
|
1351
|
+
response_data.read()
|
|
1352
|
+
return self.api_client.response_deserialize(
|
|
1353
|
+
response_data=response_data,
|
|
1354
|
+
response_types_map=_response_types_map,
|
|
1355
|
+
)
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
@validate_call
|
|
1359
|
+
def get_card_limits_without_preload_content(
|
|
1360
|
+
self,
|
|
1361
|
+
card_id: StrictStr,
|
|
1362
|
+
_request_timeout: Union[
|
|
1363
|
+
None,
|
|
1364
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1365
|
+
Tuple[
|
|
1366
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1367
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1368
|
+
]
|
|
1369
|
+
] = None,
|
|
1370
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1371
|
+
_content_type: Optional[StrictStr] = None,
|
|
1372
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1373
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1374
|
+
) -> RESTResponseType:
|
|
1375
|
+
"""Get card limits
|
|
1376
|
+
|
|
1377
|
+
Get the limits of a card.
|
|
1378
|
+
|
|
1379
|
+
:param card_id: (required)
|
|
1380
|
+
:type card_id: str
|
|
1381
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1382
|
+
number provided, it will be total request
|
|
1383
|
+
timeout. It can also be a pair (tuple) of
|
|
1384
|
+
(connection, read) timeouts.
|
|
1385
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1386
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1387
|
+
request; this effectively ignores the
|
|
1388
|
+
authentication in the spec for a single request.
|
|
1389
|
+
:type _request_auth: dict, optional
|
|
1390
|
+
:param _content_type: force content-type for the request.
|
|
1391
|
+
:type _content_type: str, Optional
|
|
1392
|
+
:param _headers: set to override the headers for a single
|
|
1393
|
+
request; this effectively ignores the headers
|
|
1394
|
+
in the spec for a single request.
|
|
1395
|
+
:type _headers: dict, optional
|
|
1396
|
+
:param _host_index: set to override the host_index for a single
|
|
1397
|
+
request; this effectively ignores the host_index
|
|
1398
|
+
in the spec for a single request.
|
|
1399
|
+
:type _host_index: int, optional
|
|
1400
|
+
:return: Returns the result object.
|
|
1401
|
+
""" # noqa: E501
|
|
1402
|
+
|
|
1403
|
+
_param = self._get_card_limits_serialize(
|
|
1404
|
+
card_id=card_id,
|
|
1405
|
+
_request_auth=_request_auth,
|
|
1406
|
+
_content_type=_content_type,
|
|
1407
|
+
_headers=_headers,
|
|
1408
|
+
_host_index=_host_index
|
|
1409
|
+
)
|
|
1410
|
+
|
|
1411
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1412
|
+
'200': "GetAccountLimits200Response",
|
|
1413
|
+
'400': "ErrorDocument",
|
|
1414
|
+
'401': "ErrorDocument",
|
|
1415
|
+
'404': "ErrorDocument",
|
|
1416
|
+
}
|
|
1417
|
+
response_data = self.api_client.call_api(
|
|
1418
|
+
*_param,
|
|
1419
|
+
_request_timeout=_request_timeout
|
|
1420
|
+
)
|
|
1421
|
+
return response_data.response
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
def _get_card_limits_serialize(
|
|
1425
|
+
self,
|
|
1426
|
+
card_id,
|
|
1427
|
+
_request_auth,
|
|
1428
|
+
_content_type,
|
|
1429
|
+
_headers,
|
|
1430
|
+
_host_index,
|
|
1431
|
+
) -> RequestSerialized:
|
|
1432
|
+
|
|
1433
|
+
_host = None
|
|
1434
|
+
|
|
1435
|
+
_collection_formats: Dict[str, str] = {
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
_path_params: Dict[str, str] = {}
|
|
1439
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1440
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1441
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1442
|
+
_files: Dict[
|
|
1443
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1444
|
+
] = {}
|
|
1445
|
+
_body_params: Optional[bytes] = None
|
|
1446
|
+
|
|
1447
|
+
# process the path parameters
|
|
1448
|
+
if card_id is not None:
|
|
1449
|
+
_path_params['cardId'] = card_id
|
|
1450
|
+
# process the query parameters
|
|
1451
|
+
# process the header parameters
|
|
1452
|
+
# process the form parameters
|
|
1453
|
+
# process the body parameter
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
# set the HTTP header `Accept`
|
|
1457
|
+
if 'Accept' not in _header_params:
|
|
1458
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1459
|
+
[
|
|
1460
|
+
'application/vnd.api+json'
|
|
1461
|
+
]
|
|
1462
|
+
)
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
# authentication setting
|
|
1466
|
+
_auth_settings: List[str] = [
|
|
1467
|
+
'bearerAuth'
|
|
1468
|
+
]
|
|
1469
|
+
|
|
1470
|
+
return self.api_client.param_serialize(
|
|
1471
|
+
method='GET',
|
|
1472
|
+
resource_path='/cards/{cardId}/limits',
|
|
1473
|
+
path_params=_path_params,
|
|
1474
|
+
query_params=_query_params,
|
|
1475
|
+
header_params=_header_params,
|
|
1476
|
+
body=_body_params,
|
|
1477
|
+
post_params=_form_params,
|
|
1478
|
+
files=_files,
|
|
1479
|
+
auth_settings=_auth_settings,
|
|
1480
|
+
collection_formats=_collection_formats,
|
|
1481
|
+
_host=_host,
|
|
1482
|
+
_request_auth=_request_auth
|
|
1483
|
+
)
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
@validate_call
|
|
1489
|
+
def get_card_pin_status(
|
|
1490
|
+
self,
|
|
1491
|
+
card_id: StrictStr,
|
|
1492
|
+
_request_timeout: Union[
|
|
1493
|
+
None,
|
|
1494
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1495
|
+
Tuple[
|
|
1496
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1497
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1498
|
+
]
|
|
1499
|
+
] = None,
|
|
1500
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1501
|
+
_content_type: Optional[StrictStr] = None,
|
|
1502
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1503
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1504
|
+
) -> GetCardPinStatus200Response:
|
|
1505
|
+
"""Get card PIN status
|
|
1506
|
+
|
|
1507
|
+
Gets the PIN status for the specified card.
|
|
1508
|
+
|
|
1509
|
+
:param card_id: (required)
|
|
1510
|
+
:type card_id: str
|
|
1511
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1512
|
+
number provided, it will be total request
|
|
1513
|
+
timeout. It can also be a pair (tuple) of
|
|
1514
|
+
(connection, read) timeouts.
|
|
1515
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1516
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1517
|
+
request; this effectively ignores the
|
|
1518
|
+
authentication in the spec for a single request.
|
|
1519
|
+
:type _request_auth: dict, optional
|
|
1520
|
+
:param _content_type: force content-type for the request.
|
|
1521
|
+
:type _content_type: str, Optional
|
|
1522
|
+
:param _headers: set to override the headers for a single
|
|
1523
|
+
request; this effectively ignores the headers
|
|
1524
|
+
in the spec for a single request.
|
|
1525
|
+
:type _headers: dict, optional
|
|
1526
|
+
:param _host_index: set to override the host_index for a single
|
|
1527
|
+
request; this effectively ignores the host_index
|
|
1528
|
+
in the spec for a single request.
|
|
1529
|
+
:type _host_index: int, optional
|
|
1530
|
+
:return: Returns the result object.
|
|
1531
|
+
""" # noqa: E501
|
|
1532
|
+
|
|
1533
|
+
_param = self._get_card_pin_status_serialize(
|
|
1534
|
+
card_id=card_id,
|
|
1535
|
+
_request_auth=_request_auth,
|
|
1536
|
+
_content_type=_content_type,
|
|
1537
|
+
_headers=_headers,
|
|
1538
|
+
_host_index=_host_index
|
|
1539
|
+
)
|
|
1540
|
+
|
|
1541
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1542
|
+
'200': "GetCardPinStatus200Response",
|
|
1543
|
+
'400': "ErrorDocument",
|
|
1544
|
+
'401': "ErrorDocument",
|
|
1545
|
+
'404': "ErrorDocument",
|
|
1546
|
+
}
|
|
1547
|
+
response_data = self.api_client.call_api(
|
|
1548
|
+
*_param,
|
|
1549
|
+
_request_timeout=_request_timeout
|
|
1550
|
+
)
|
|
1551
|
+
response_data.read()
|
|
1552
|
+
return self.api_client.response_deserialize(
|
|
1553
|
+
response_data=response_data,
|
|
1554
|
+
response_types_map=_response_types_map,
|
|
1555
|
+
).data
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
@validate_call
|
|
1559
|
+
def get_card_pin_status_with_http_info(
|
|
1560
|
+
self,
|
|
1561
|
+
card_id: StrictStr,
|
|
1562
|
+
_request_timeout: Union[
|
|
1563
|
+
None,
|
|
1564
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1565
|
+
Tuple[
|
|
1566
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1567
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1568
|
+
]
|
|
1569
|
+
] = None,
|
|
1570
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1571
|
+
_content_type: Optional[StrictStr] = None,
|
|
1572
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1573
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1574
|
+
) -> ApiResponse[GetCardPinStatus200Response]:
|
|
1575
|
+
"""Get card PIN status
|
|
1576
|
+
|
|
1577
|
+
Gets the PIN status for the specified card.
|
|
1578
|
+
|
|
1579
|
+
:param card_id: (required)
|
|
1580
|
+
:type card_id: str
|
|
1581
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1582
|
+
number provided, it will be total request
|
|
1583
|
+
timeout. It can also be a pair (tuple) of
|
|
1584
|
+
(connection, read) timeouts.
|
|
1585
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1586
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1587
|
+
request; this effectively ignores the
|
|
1588
|
+
authentication in the spec for a single request.
|
|
1589
|
+
:type _request_auth: dict, optional
|
|
1590
|
+
:param _content_type: force content-type for the request.
|
|
1591
|
+
:type _content_type: str, Optional
|
|
1592
|
+
:param _headers: set to override the headers for a single
|
|
1593
|
+
request; this effectively ignores the headers
|
|
1594
|
+
in the spec for a single request.
|
|
1595
|
+
:type _headers: dict, optional
|
|
1596
|
+
:param _host_index: set to override the host_index for a single
|
|
1597
|
+
request; this effectively ignores the host_index
|
|
1598
|
+
in the spec for a single request.
|
|
1599
|
+
:type _host_index: int, optional
|
|
1600
|
+
:return: Returns the result object.
|
|
1601
|
+
""" # noqa: E501
|
|
1602
|
+
|
|
1603
|
+
_param = self._get_card_pin_status_serialize(
|
|
1604
|
+
card_id=card_id,
|
|
1605
|
+
_request_auth=_request_auth,
|
|
1606
|
+
_content_type=_content_type,
|
|
1607
|
+
_headers=_headers,
|
|
1608
|
+
_host_index=_host_index
|
|
1609
|
+
)
|
|
1610
|
+
|
|
1611
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1612
|
+
'200': "GetCardPinStatus200Response",
|
|
1613
|
+
'400': "ErrorDocument",
|
|
1614
|
+
'401': "ErrorDocument",
|
|
1615
|
+
'404': "ErrorDocument",
|
|
1616
|
+
}
|
|
1617
|
+
response_data = self.api_client.call_api(
|
|
1618
|
+
*_param,
|
|
1619
|
+
_request_timeout=_request_timeout
|
|
1620
|
+
)
|
|
1621
|
+
response_data.read()
|
|
1622
|
+
return self.api_client.response_deserialize(
|
|
1623
|
+
response_data=response_data,
|
|
1624
|
+
response_types_map=_response_types_map,
|
|
1625
|
+
)
|
|
1626
|
+
|
|
1627
|
+
|
|
1628
|
+
@validate_call
|
|
1629
|
+
def get_card_pin_status_without_preload_content(
|
|
1630
|
+
self,
|
|
1631
|
+
card_id: StrictStr,
|
|
1632
|
+
_request_timeout: Union[
|
|
1633
|
+
None,
|
|
1634
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1635
|
+
Tuple[
|
|
1636
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1637
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1638
|
+
]
|
|
1639
|
+
] = None,
|
|
1640
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1641
|
+
_content_type: Optional[StrictStr] = None,
|
|
1642
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1643
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1644
|
+
) -> RESTResponseType:
|
|
1645
|
+
"""Get card PIN status
|
|
1646
|
+
|
|
1647
|
+
Gets the PIN status for the specified card.
|
|
1648
|
+
|
|
1649
|
+
:param card_id: (required)
|
|
1650
|
+
:type card_id: str
|
|
1651
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1652
|
+
number provided, it will be total request
|
|
1653
|
+
timeout. It can also be a pair (tuple) of
|
|
1654
|
+
(connection, read) timeouts.
|
|
1655
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1656
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1657
|
+
request; this effectively ignores the
|
|
1658
|
+
authentication in the spec for a single request.
|
|
1659
|
+
:type _request_auth: dict, optional
|
|
1660
|
+
:param _content_type: force content-type for the request.
|
|
1661
|
+
:type _content_type: str, Optional
|
|
1662
|
+
:param _headers: set to override the headers for a single
|
|
1663
|
+
request; this effectively ignores the headers
|
|
1664
|
+
in the spec for a single request.
|
|
1665
|
+
:type _headers: dict, optional
|
|
1666
|
+
:param _host_index: set to override the host_index for a single
|
|
1667
|
+
request; this effectively ignores the host_index
|
|
1668
|
+
in the spec for a single request.
|
|
1669
|
+
:type _host_index: int, optional
|
|
1670
|
+
:return: Returns the result object.
|
|
1671
|
+
""" # noqa: E501
|
|
1672
|
+
|
|
1673
|
+
_param = self._get_card_pin_status_serialize(
|
|
1674
|
+
card_id=card_id,
|
|
1675
|
+
_request_auth=_request_auth,
|
|
1676
|
+
_content_type=_content_type,
|
|
1677
|
+
_headers=_headers,
|
|
1678
|
+
_host_index=_host_index
|
|
1679
|
+
)
|
|
1680
|
+
|
|
1681
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1682
|
+
'200': "GetCardPinStatus200Response",
|
|
1683
|
+
'400': "ErrorDocument",
|
|
1684
|
+
'401': "ErrorDocument",
|
|
1685
|
+
'404': "ErrorDocument",
|
|
1686
|
+
}
|
|
1687
|
+
response_data = self.api_client.call_api(
|
|
1688
|
+
*_param,
|
|
1689
|
+
_request_timeout=_request_timeout
|
|
1690
|
+
)
|
|
1691
|
+
return response_data.response
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
def _get_card_pin_status_serialize(
|
|
1695
|
+
self,
|
|
1696
|
+
card_id,
|
|
1697
|
+
_request_auth,
|
|
1698
|
+
_content_type,
|
|
1699
|
+
_headers,
|
|
1700
|
+
_host_index,
|
|
1701
|
+
) -> RequestSerialized:
|
|
1702
|
+
|
|
1703
|
+
_host = None
|
|
1704
|
+
|
|
1705
|
+
_collection_formats: Dict[str, str] = {
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
_path_params: Dict[str, str] = {}
|
|
1709
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1710
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1711
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1712
|
+
_files: Dict[
|
|
1713
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1714
|
+
] = {}
|
|
1715
|
+
_body_params: Optional[bytes] = None
|
|
1716
|
+
|
|
1717
|
+
# process the path parameters
|
|
1718
|
+
if card_id is not None:
|
|
1719
|
+
_path_params['cardId'] = card_id
|
|
1720
|
+
# process the query parameters
|
|
1721
|
+
# process the header parameters
|
|
1722
|
+
# process the form parameters
|
|
1723
|
+
# process the body parameter
|
|
1724
|
+
|
|
1725
|
+
|
|
1726
|
+
# set the HTTP header `Accept`
|
|
1727
|
+
if 'Accept' not in _header_params:
|
|
1728
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1729
|
+
[
|
|
1730
|
+
'application/vnd.api+json'
|
|
1731
|
+
]
|
|
1732
|
+
)
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
# authentication setting
|
|
1736
|
+
_auth_settings: List[str] = [
|
|
1737
|
+
'bearerAuth'
|
|
1738
|
+
]
|
|
1739
|
+
|
|
1740
|
+
return self.api_client.param_serialize(
|
|
1741
|
+
method='GET',
|
|
1742
|
+
resource_path='/cards/{cardId}/secure-data/pin/status',
|
|
1743
|
+
path_params=_path_params,
|
|
1744
|
+
query_params=_query_params,
|
|
1745
|
+
header_params=_header_params,
|
|
1746
|
+
body=_body_params,
|
|
1747
|
+
post_params=_form_params,
|
|
1748
|
+
files=_files,
|
|
1749
|
+
auth_settings=_auth_settings,
|
|
1750
|
+
collection_formats=_collection_formats,
|
|
1751
|
+
_host=_host,
|
|
1752
|
+
_request_auth=_request_auth
|
|
1753
|
+
)
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
@validate_call
|
|
1759
|
+
def list_cards(
|
|
1760
|
+
self,
|
|
1761
|
+
page_limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).")] = None,
|
|
1762
|
+
page_offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Optional. Number of resources to skip. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).")] = None,
|
|
1763
|
+
filter_account_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account id.")] = None,
|
|
1764
|
+
filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified customer id.")] = None,
|
|
1765
|
+
filter_tags: Annotated[Optional[StrictStr], Field(description="Optional. Filter Cards by Tags.")] = None,
|
|
1766
|
+
filter_status: Annotated[Optional[StrictStr], Field(description="Optional. Filter cards by Card Status. Usage example: *filter[status][0]=Stolen&filter[status][1]=Lost*")] = None,
|
|
1767
|
+
include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
|
|
1768
|
+
sort: Annotated[Optional[StrictStr], Field(description="Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.")] = None,
|
|
1769
|
+
_request_timeout: Union[
|
|
1770
|
+
None,
|
|
1771
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1772
|
+
Tuple[
|
|
1773
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1774
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1775
|
+
]
|
|
1776
|
+
] = None,
|
|
1777
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1778
|
+
_content_type: Optional[StrictStr] = None,
|
|
1779
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1780
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1781
|
+
) -> ListCards200Response:
|
|
1782
|
+
"""List cards
|
|
1783
|
+
|
|
1784
|
+
List cards. Filtering and paging can be applied.
|
|
1785
|
+
|
|
1786
|
+
:param page_limit: Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).
|
|
1787
|
+
:type page_limit: str
|
|
1788
|
+
:param page_offset: Optional. Number of resources to skip. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).
|
|
1789
|
+
:type page_offset: str
|
|
1790
|
+
:param filter_account_id: Optional. Filters the results by the specified account id.
|
|
1791
|
+
:type filter_account_id: str
|
|
1792
|
+
:param filter_customer_id: Optional. Filters the results by the specified customer id.
|
|
1793
|
+
:type filter_customer_id: str
|
|
1794
|
+
:param filter_tags: Optional. Filter Cards by Tags.
|
|
1795
|
+
:type filter_tags: str
|
|
1796
|
+
:param filter_status: Optional. Filter cards by Card Status. Usage example: *filter[status][0]=Stolen&filter[status][1]=Lost*
|
|
1797
|
+
:type filter_status: str
|
|
1798
|
+
:param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
|
|
1799
|
+
:type include: str
|
|
1800
|
+
:param sort: Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.
|
|
1801
|
+
:type sort: str
|
|
1802
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1803
|
+
number provided, it will be total request
|
|
1804
|
+
timeout. It can also be a pair (tuple) of
|
|
1805
|
+
(connection, read) timeouts.
|
|
1806
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1807
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1808
|
+
request; this effectively ignores the
|
|
1809
|
+
authentication in the spec for a single request.
|
|
1810
|
+
:type _request_auth: dict, optional
|
|
1811
|
+
:param _content_type: force content-type for the request.
|
|
1812
|
+
:type _content_type: str, Optional
|
|
1813
|
+
:param _headers: set to override the headers for a single
|
|
1814
|
+
request; this effectively ignores the headers
|
|
1815
|
+
in the spec for a single request.
|
|
1816
|
+
:type _headers: dict, optional
|
|
1817
|
+
:param _host_index: set to override the host_index for a single
|
|
1818
|
+
request; this effectively ignores the host_index
|
|
1819
|
+
in the spec for a single request.
|
|
1820
|
+
:type _host_index: int, optional
|
|
1821
|
+
:return: Returns the result object.
|
|
1822
|
+
""" # noqa: E501
|
|
1823
|
+
|
|
1824
|
+
_param = self._list_cards_serialize(
|
|
1825
|
+
page_limit=page_limit,
|
|
1826
|
+
page_offset=page_offset,
|
|
1827
|
+
filter_account_id=filter_account_id,
|
|
1828
|
+
filter_customer_id=filter_customer_id,
|
|
1829
|
+
filter_tags=filter_tags,
|
|
1830
|
+
filter_status=filter_status,
|
|
1831
|
+
include=include,
|
|
1832
|
+
sort=sort,
|
|
1833
|
+
_request_auth=_request_auth,
|
|
1834
|
+
_content_type=_content_type,
|
|
1835
|
+
_headers=_headers,
|
|
1836
|
+
_host_index=_host_index
|
|
1837
|
+
)
|
|
1838
|
+
|
|
1839
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1840
|
+
'200': "ListCards200Response",
|
|
1841
|
+
'400': "ErrorDocument",
|
|
1842
|
+
'401': "ErrorDocument",
|
|
1843
|
+
'404': "ErrorDocument",
|
|
1844
|
+
}
|
|
1845
|
+
response_data = self.api_client.call_api(
|
|
1846
|
+
*_param,
|
|
1847
|
+
_request_timeout=_request_timeout
|
|
1848
|
+
)
|
|
1849
|
+
response_data.read()
|
|
1850
|
+
return self.api_client.response_deserialize(
|
|
1851
|
+
response_data=response_data,
|
|
1852
|
+
response_types_map=_response_types_map,
|
|
1853
|
+
).data
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
@validate_call
|
|
1857
|
+
def list_cards_with_http_info(
|
|
1858
|
+
self,
|
|
1859
|
+
page_limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).")] = None,
|
|
1860
|
+
page_offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Optional. Number of resources to skip. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).")] = None,
|
|
1861
|
+
filter_account_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account id.")] = None,
|
|
1862
|
+
filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified customer id.")] = None,
|
|
1863
|
+
filter_tags: Annotated[Optional[StrictStr], Field(description="Optional. Filter Cards by Tags.")] = None,
|
|
1864
|
+
filter_status: Annotated[Optional[StrictStr], Field(description="Optional. Filter cards by Card Status. Usage example: *filter[status][0]=Stolen&filter[status][1]=Lost*")] = None,
|
|
1865
|
+
include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
|
|
1866
|
+
sort: Annotated[Optional[StrictStr], Field(description="Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.")] = None,
|
|
1867
|
+
_request_timeout: Union[
|
|
1868
|
+
None,
|
|
1869
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1870
|
+
Tuple[
|
|
1871
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1872
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1873
|
+
]
|
|
1874
|
+
] = None,
|
|
1875
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1876
|
+
_content_type: Optional[StrictStr] = None,
|
|
1877
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1878
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1879
|
+
) -> ApiResponse[ListCards200Response]:
|
|
1880
|
+
"""List cards
|
|
1881
|
+
|
|
1882
|
+
List cards. Filtering and paging can be applied.
|
|
1883
|
+
|
|
1884
|
+
:param page_limit: Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).
|
|
1885
|
+
:type page_limit: str
|
|
1886
|
+
:param page_offset: Optional. Number of resources to skip. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).
|
|
1887
|
+
:type page_offset: str
|
|
1888
|
+
:param filter_account_id: Optional. Filters the results by the specified account id.
|
|
1889
|
+
:type filter_account_id: str
|
|
1890
|
+
:param filter_customer_id: Optional. Filters the results by the specified customer id.
|
|
1891
|
+
:type filter_customer_id: str
|
|
1892
|
+
:param filter_tags: Optional. Filter Cards by Tags.
|
|
1893
|
+
:type filter_tags: str
|
|
1894
|
+
:param filter_status: Optional. Filter cards by Card Status. Usage example: *filter[status][0]=Stolen&filter[status][1]=Lost*
|
|
1895
|
+
:type filter_status: str
|
|
1896
|
+
:param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
|
|
1897
|
+
:type include: str
|
|
1898
|
+
:param sort: Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.
|
|
1899
|
+
:type sort: str
|
|
1900
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1901
|
+
number provided, it will be total request
|
|
1902
|
+
timeout. It can also be a pair (tuple) of
|
|
1903
|
+
(connection, read) timeouts.
|
|
1904
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1905
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1906
|
+
request; this effectively ignores the
|
|
1907
|
+
authentication in the spec for a single request.
|
|
1908
|
+
:type _request_auth: dict, optional
|
|
1909
|
+
:param _content_type: force content-type for the request.
|
|
1910
|
+
:type _content_type: str, Optional
|
|
1911
|
+
:param _headers: set to override the headers for a single
|
|
1912
|
+
request; this effectively ignores the headers
|
|
1913
|
+
in the spec for a single request.
|
|
1914
|
+
:type _headers: dict, optional
|
|
1915
|
+
:param _host_index: set to override the host_index for a single
|
|
1916
|
+
request; this effectively ignores the host_index
|
|
1917
|
+
in the spec for a single request.
|
|
1918
|
+
:type _host_index: int, optional
|
|
1919
|
+
:return: Returns the result object.
|
|
1920
|
+
""" # noqa: E501
|
|
1921
|
+
|
|
1922
|
+
_param = self._list_cards_serialize(
|
|
1923
|
+
page_limit=page_limit,
|
|
1924
|
+
page_offset=page_offset,
|
|
1925
|
+
filter_account_id=filter_account_id,
|
|
1926
|
+
filter_customer_id=filter_customer_id,
|
|
1927
|
+
filter_tags=filter_tags,
|
|
1928
|
+
filter_status=filter_status,
|
|
1929
|
+
include=include,
|
|
1930
|
+
sort=sort,
|
|
1931
|
+
_request_auth=_request_auth,
|
|
1932
|
+
_content_type=_content_type,
|
|
1933
|
+
_headers=_headers,
|
|
1934
|
+
_host_index=_host_index
|
|
1935
|
+
)
|
|
1936
|
+
|
|
1937
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1938
|
+
'200': "ListCards200Response",
|
|
1939
|
+
'400': "ErrorDocument",
|
|
1940
|
+
'401': "ErrorDocument",
|
|
1941
|
+
'404': "ErrorDocument",
|
|
1942
|
+
}
|
|
1943
|
+
response_data = self.api_client.call_api(
|
|
1944
|
+
*_param,
|
|
1945
|
+
_request_timeout=_request_timeout
|
|
1946
|
+
)
|
|
1947
|
+
response_data.read()
|
|
1948
|
+
return self.api_client.response_deserialize(
|
|
1949
|
+
response_data=response_data,
|
|
1950
|
+
response_types_map=_response_types_map,
|
|
1951
|
+
)
|
|
1952
|
+
|
|
1953
|
+
|
|
1954
|
+
@validate_call
|
|
1955
|
+
def list_cards_without_preload_content(
|
|
1956
|
+
self,
|
|
1957
|
+
page_limit: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).")] = None,
|
|
1958
|
+
page_offset: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Optional. Number of resources to skip. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).")] = None,
|
|
1959
|
+
filter_account_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified account id.")] = None,
|
|
1960
|
+
filter_customer_id: Annotated[Optional[StrictStr], Field(description="Optional. Filters the results by the specified customer id.")] = None,
|
|
1961
|
+
filter_tags: Annotated[Optional[StrictStr], Field(description="Optional. Filter Cards by Tags.")] = None,
|
|
1962
|
+
filter_status: Annotated[Optional[StrictStr], Field(description="Optional. Filter cards by Card Status. Usage example: *filter[status][0]=Stolen&filter[status][1]=Lost*")] = None,
|
|
1963
|
+
include: Annotated[Optional[StrictStr], Field(description="Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources")] = None,
|
|
1964
|
+
sort: Annotated[Optional[StrictStr], Field(description="Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.")] = None,
|
|
1965
|
+
_request_timeout: Union[
|
|
1966
|
+
None,
|
|
1967
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1968
|
+
Tuple[
|
|
1969
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1970
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1971
|
+
]
|
|
1972
|
+
] = None,
|
|
1973
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1974
|
+
_content_type: Optional[StrictStr] = None,
|
|
1975
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1976
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1977
|
+
) -> RESTResponseType:
|
|
1978
|
+
"""List cards
|
|
1979
|
+
|
|
1980
|
+
List cards. Filtering and paging can be applied.
|
|
1981
|
+
|
|
1982
|
+
:param page_limit: Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).
|
|
1983
|
+
:type page_limit: str
|
|
1984
|
+
:param page_offset: Optional. Number of resources to skip. See Pagination. Sent as a numeric string (query parameters are strings in HTTP).
|
|
1985
|
+
:type page_offset: str
|
|
1986
|
+
:param filter_account_id: Optional. Filters the results by the specified account id.
|
|
1987
|
+
:type filter_account_id: str
|
|
1988
|
+
:param filter_customer_id: Optional. Filters the results by the specified customer id.
|
|
1989
|
+
:type filter_customer_id: str
|
|
1990
|
+
:param filter_tags: Optional. Filter Cards by Tags.
|
|
1991
|
+
:type filter_tags: str
|
|
1992
|
+
:param filter_status: Optional. Filter cards by Card Status. Usage example: *filter[status][0]=Stolen&filter[status][1]=Lost*
|
|
1993
|
+
:type filter_status: str
|
|
1994
|
+
:param include: Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account. See Getting Related Resources
|
|
1995
|
+
:type include: str
|
|
1996
|
+
:param sort: Optional. sort=createdAt for ascending order or sort=-createdAt (leading minus sign) for descending order.
|
|
1997
|
+
:type sort: str
|
|
1998
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1999
|
+
number provided, it will be total request
|
|
2000
|
+
timeout. It can also be a pair (tuple) of
|
|
2001
|
+
(connection, read) timeouts.
|
|
2002
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2003
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2004
|
+
request; this effectively ignores the
|
|
2005
|
+
authentication in the spec for a single request.
|
|
2006
|
+
:type _request_auth: dict, optional
|
|
2007
|
+
:param _content_type: force content-type for the request.
|
|
2008
|
+
:type _content_type: str, Optional
|
|
2009
|
+
:param _headers: set to override the headers for a single
|
|
2010
|
+
request; this effectively ignores the headers
|
|
2011
|
+
in the spec for a single request.
|
|
2012
|
+
:type _headers: dict, optional
|
|
2013
|
+
:param _host_index: set to override the host_index for a single
|
|
2014
|
+
request; this effectively ignores the host_index
|
|
2015
|
+
in the spec for a single request.
|
|
2016
|
+
:type _host_index: int, optional
|
|
2017
|
+
:return: Returns the result object.
|
|
2018
|
+
""" # noqa: E501
|
|
2019
|
+
|
|
2020
|
+
_param = self._list_cards_serialize(
|
|
2021
|
+
page_limit=page_limit,
|
|
2022
|
+
page_offset=page_offset,
|
|
2023
|
+
filter_account_id=filter_account_id,
|
|
2024
|
+
filter_customer_id=filter_customer_id,
|
|
2025
|
+
filter_tags=filter_tags,
|
|
2026
|
+
filter_status=filter_status,
|
|
2027
|
+
include=include,
|
|
2028
|
+
sort=sort,
|
|
2029
|
+
_request_auth=_request_auth,
|
|
2030
|
+
_content_type=_content_type,
|
|
2031
|
+
_headers=_headers,
|
|
2032
|
+
_host_index=_host_index
|
|
2033
|
+
)
|
|
2034
|
+
|
|
2035
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2036
|
+
'200': "ListCards200Response",
|
|
2037
|
+
'400': "ErrorDocument",
|
|
2038
|
+
'401': "ErrorDocument",
|
|
2039
|
+
'404': "ErrorDocument",
|
|
2040
|
+
}
|
|
2041
|
+
response_data = self.api_client.call_api(
|
|
2042
|
+
*_param,
|
|
2043
|
+
_request_timeout=_request_timeout
|
|
2044
|
+
)
|
|
2045
|
+
return response_data.response
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
def _list_cards_serialize(
|
|
2049
|
+
self,
|
|
2050
|
+
page_limit,
|
|
2051
|
+
page_offset,
|
|
2052
|
+
filter_account_id,
|
|
2053
|
+
filter_customer_id,
|
|
2054
|
+
filter_tags,
|
|
2055
|
+
filter_status,
|
|
2056
|
+
include,
|
|
2057
|
+
sort,
|
|
2058
|
+
_request_auth,
|
|
2059
|
+
_content_type,
|
|
2060
|
+
_headers,
|
|
2061
|
+
_host_index,
|
|
2062
|
+
) -> RequestSerialized:
|
|
2063
|
+
|
|
2064
|
+
_host = None
|
|
2065
|
+
|
|
2066
|
+
_collection_formats: Dict[str, str] = {
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
_path_params: Dict[str, str] = {}
|
|
2070
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2071
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2072
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2073
|
+
_files: Dict[
|
|
2074
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2075
|
+
] = {}
|
|
2076
|
+
_body_params: Optional[bytes] = None
|
|
2077
|
+
|
|
2078
|
+
# process the path parameters
|
|
2079
|
+
# process the query parameters
|
|
2080
|
+
if page_limit is not None:
|
|
2081
|
+
|
|
2082
|
+
_query_params.append(('page[limit]', page_limit))
|
|
2083
|
+
|
|
2084
|
+
if page_offset is not None:
|
|
2085
|
+
|
|
2086
|
+
_query_params.append(('page[offset]', page_offset))
|
|
2087
|
+
|
|
2088
|
+
if filter_account_id is not None:
|
|
2089
|
+
|
|
2090
|
+
_query_params.append(('filter[accountId]', filter_account_id))
|
|
2091
|
+
|
|
2092
|
+
if filter_customer_id is not None:
|
|
2093
|
+
|
|
2094
|
+
_query_params.append(('filter[customerId]', filter_customer_id))
|
|
2095
|
+
|
|
2096
|
+
if filter_tags is not None:
|
|
2097
|
+
|
|
2098
|
+
_query_params.append(('filter[tags]', filter_tags))
|
|
2099
|
+
|
|
2100
|
+
if filter_status is not None:
|
|
2101
|
+
|
|
2102
|
+
_query_params.append(('filter[status][]', filter_status))
|
|
2103
|
+
|
|
2104
|
+
if include is not None:
|
|
2105
|
+
|
|
2106
|
+
_query_params.append(('include', include))
|
|
2107
|
+
|
|
2108
|
+
if sort is not None:
|
|
2109
|
+
|
|
2110
|
+
_query_params.append(('sort', sort))
|
|
2111
|
+
|
|
2112
|
+
# process the header parameters
|
|
2113
|
+
# process the form parameters
|
|
2114
|
+
# process the body parameter
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
# set the HTTP header `Accept`
|
|
2118
|
+
if 'Accept' not in _header_params:
|
|
2119
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2120
|
+
[
|
|
2121
|
+
'application/vnd.api+json'
|
|
2122
|
+
]
|
|
2123
|
+
)
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
# authentication setting
|
|
2127
|
+
_auth_settings: List[str] = [
|
|
2128
|
+
'bearerAuth'
|
|
2129
|
+
]
|
|
2130
|
+
|
|
2131
|
+
return self.api_client.param_serialize(
|
|
2132
|
+
method='GET',
|
|
2133
|
+
resource_path='/cards',
|
|
2134
|
+
path_params=_path_params,
|
|
2135
|
+
query_params=_query_params,
|
|
2136
|
+
header_params=_header_params,
|
|
2137
|
+
body=_body_params,
|
|
2138
|
+
post_params=_form_params,
|
|
2139
|
+
files=_files,
|
|
2140
|
+
auth_settings=_auth_settings,
|
|
2141
|
+
collection_formats=_collection_formats,
|
|
2142
|
+
_host=_host,
|
|
2143
|
+
_request_auth=_request_auth
|
|
2144
|
+
)
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
@validate_call
|
|
2150
|
+
def replace_card(
|
|
2151
|
+
self,
|
|
2152
|
+
card_id: StrictStr,
|
|
2153
|
+
replace_card_request: ReplaceCardRequest,
|
|
2154
|
+
_request_timeout: Union[
|
|
2155
|
+
None,
|
|
2156
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2157
|
+
Tuple[
|
|
2158
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2159
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2160
|
+
]
|
|
2161
|
+
] = None,
|
|
2162
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2163
|
+
_content_type: Optional[StrictStr] = None,
|
|
2164
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2165
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2166
|
+
) -> ReplaceCard200Response:
|
|
2167
|
+
"""Replace a card
|
|
2168
|
+
|
|
2169
|
+
Creates and ships a replacement physical debit card to an individual or business card holder. The replacement card has the same card number, expiration date and PIN as the original card, and does not require additional activation.
|
|
2170
|
+
|
|
2171
|
+
:param card_id: (required)
|
|
2172
|
+
:type card_id: str
|
|
2173
|
+
:param replace_card_request: (required)
|
|
2174
|
+
:type replace_card_request: ReplaceCardRequest
|
|
2175
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2176
|
+
number provided, it will be total request
|
|
2177
|
+
timeout. It can also be a pair (tuple) of
|
|
2178
|
+
(connection, read) timeouts.
|
|
2179
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2180
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2181
|
+
request; this effectively ignores the
|
|
2182
|
+
authentication in the spec for a single request.
|
|
2183
|
+
:type _request_auth: dict, optional
|
|
2184
|
+
:param _content_type: force content-type for the request.
|
|
2185
|
+
:type _content_type: str, Optional
|
|
2186
|
+
:param _headers: set to override the headers for a single
|
|
2187
|
+
request; this effectively ignores the headers
|
|
2188
|
+
in the spec for a single request.
|
|
2189
|
+
:type _headers: dict, optional
|
|
2190
|
+
:param _host_index: set to override the host_index for a single
|
|
2191
|
+
request; this effectively ignores the host_index
|
|
2192
|
+
in the spec for a single request.
|
|
2193
|
+
:type _host_index: int, optional
|
|
2194
|
+
:return: Returns the result object.
|
|
2195
|
+
""" # noqa: E501
|
|
2196
|
+
|
|
2197
|
+
_param = self._replace_card_serialize(
|
|
2198
|
+
card_id=card_id,
|
|
2199
|
+
replace_card_request=replace_card_request,
|
|
2200
|
+
_request_auth=_request_auth,
|
|
2201
|
+
_content_type=_content_type,
|
|
2202
|
+
_headers=_headers,
|
|
2203
|
+
_host_index=_host_index
|
|
2204
|
+
)
|
|
2205
|
+
|
|
2206
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2207
|
+
'200': "ReplaceCard200Response",
|
|
2208
|
+
'400': "ErrorDocument",
|
|
2209
|
+
'401': "ErrorDocument",
|
|
2210
|
+
'404': "ErrorDocument",
|
|
2211
|
+
}
|
|
2212
|
+
response_data = self.api_client.call_api(
|
|
2213
|
+
*_param,
|
|
2214
|
+
_request_timeout=_request_timeout
|
|
2215
|
+
)
|
|
2216
|
+
response_data.read()
|
|
2217
|
+
return self.api_client.response_deserialize(
|
|
2218
|
+
response_data=response_data,
|
|
2219
|
+
response_types_map=_response_types_map,
|
|
2220
|
+
).data
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
@validate_call
|
|
2224
|
+
def replace_card_with_http_info(
|
|
2225
|
+
self,
|
|
2226
|
+
card_id: StrictStr,
|
|
2227
|
+
replace_card_request: ReplaceCardRequest,
|
|
2228
|
+
_request_timeout: Union[
|
|
2229
|
+
None,
|
|
2230
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2231
|
+
Tuple[
|
|
2232
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2233
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2234
|
+
]
|
|
2235
|
+
] = None,
|
|
2236
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2237
|
+
_content_type: Optional[StrictStr] = None,
|
|
2238
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2239
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2240
|
+
) -> ApiResponse[ReplaceCard200Response]:
|
|
2241
|
+
"""Replace a card
|
|
2242
|
+
|
|
2243
|
+
Creates and ships a replacement physical debit card to an individual or business card holder. The replacement card has the same card number, expiration date and PIN as the original card, and does not require additional activation.
|
|
2244
|
+
|
|
2245
|
+
:param card_id: (required)
|
|
2246
|
+
:type card_id: str
|
|
2247
|
+
:param replace_card_request: (required)
|
|
2248
|
+
:type replace_card_request: ReplaceCardRequest
|
|
2249
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2250
|
+
number provided, it will be total request
|
|
2251
|
+
timeout. It can also be a pair (tuple) of
|
|
2252
|
+
(connection, read) timeouts.
|
|
2253
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2254
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2255
|
+
request; this effectively ignores the
|
|
2256
|
+
authentication in the spec for a single request.
|
|
2257
|
+
:type _request_auth: dict, optional
|
|
2258
|
+
:param _content_type: force content-type for the request.
|
|
2259
|
+
:type _content_type: str, Optional
|
|
2260
|
+
:param _headers: set to override the headers for a single
|
|
2261
|
+
request; this effectively ignores the headers
|
|
2262
|
+
in the spec for a single request.
|
|
2263
|
+
:type _headers: dict, optional
|
|
2264
|
+
:param _host_index: set to override the host_index for a single
|
|
2265
|
+
request; this effectively ignores the host_index
|
|
2266
|
+
in the spec for a single request.
|
|
2267
|
+
:type _host_index: int, optional
|
|
2268
|
+
:return: Returns the result object.
|
|
2269
|
+
""" # noqa: E501
|
|
2270
|
+
|
|
2271
|
+
_param = self._replace_card_serialize(
|
|
2272
|
+
card_id=card_id,
|
|
2273
|
+
replace_card_request=replace_card_request,
|
|
2274
|
+
_request_auth=_request_auth,
|
|
2275
|
+
_content_type=_content_type,
|
|
2276
|
+
_headers=_headers,
|
|
2277
|
+
_host_index=_host_index
|
|
2278
|
+
)
|
|
2279
|
+
|
|
2280
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2281
|
+
'200': "ReplaceCard200Response",
|
|
2282
|
+
'400': "ErrorDocument",
|
|
2283
|
+
'401': "ErrorDocument",
|
|
2284
|
+
'404': "ErrorDocument",
|
|
2285
|
+
}
|
|
2286
|
+
response_data = self.api_client.call_api(
|
|
2287
|
+
*_param,
|
|
2288
|
+
_request_timeout=_request_timeout
|
|
2289
|
+
)
|
|
2290
|
+
response_data.read()
|
|
2291
|
+
return self.api_client.response_deserialize(
|
|
2292
|
+
response_data=response_data,
|
|
2293
|
+
response_types_map=_response_types_map,
|
|
2294
|
+
)
|
|
2295
|
+
|
|
2296
|
+
|
|
2297
|
+
@validate_call
|
|
2298
|
+
def replace_card_without_preload_content(
|
|
2299
|
+
self,
|
|
2300
|
+
card_id: StrictStr,
|
|
2301
|
+
replace_card_request: ReplaceCardRequest,
|
|
2302
|
+
_request_timeout: Union[
|
|
2303
|
+
None,
|
|
2304
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2305
|
+
Tuple[
|
|
2306
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2307
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2308
|
+
]
|
|
2309
|
+
] = None,
|
|
2310
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2311
|
+
_content_type: Optional[StrictStr] = None,
|
|
2312
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2313
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2314
|
+
) -> RESTResponseType:
|
|
2315
|
+
"""Replace a card
|
|
2316
|
+
|
|
2317
|
+
Creates and ships a replacement physical debit card to an individual or business card holder. The replacement card has the same card number, expiration date and PIN as the original card, and does not require additional activation.
|
|
2318
|
+
|
|
2319
|
+
:param card_id: (required)
|
|
2320
|
+
:type card_id: str
|
|
2321
|
+
:param replace_card_request: (required)
|
|
2322
|
+
:type replace_card_request: ReplaceCardRequest
|
|
2323
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2324
|
+
number provided, it will be total request
|
|
2325
|
+
timeout. It can also be a pair (tuple) of
|
|
2326
|
+
(connection, read) timeouts.
|
|
2327
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2328
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2329
|
+
request; this effectively ignores the
|
|
2330
|
+
authentication in the spec for a single request.
|
|
2331
|
+
:type _request_auth: dict, optional
|
|
2332
|
+
:param _content_type: force content-type for the request.
|
|
2333
|
+
:type _content_type: str, Optional
|
|
2334
|
+
:param _headers: set to override the headers for a single
|
|
2335
|
+
request; this effectively ignores the headers
|
|
2336
|
+
in the spec for a single request.
|
|
2337
|
+
:type _headers: dict, optional
|
|
2338
|
+
:param _host_index: set to override the host_index for a single
|
|
2339
|
+
request; this effectively ignores the host_index
|
|
2340
|
+
in the spec for a single request.
|
|
2341
|
+
:type _host_index: int, optional
|
|
2342
|
+
:return: Returns the result object.
|
|
2343
|
+
""" # noqa: E501
|
|
2344
|
+
|
|
2345
|
+
_param = self._replace_card_serialize(
|
|
2346
|
+
card_id=card_id,
|
|
2347
|
+
replace_card_request=replace_card_request,
|
|
2348
|
+
_request_auth=_request_auth,
|
|
2349
|
+
_content_type=_content_type,
|
|
2350
|
+
_headers=_headers,
|
|
2351
|
+
_host_index=_host_index
|
|
2352
|
+
)
|
|
2353
|
+
|
|
2354
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2355
|
+
'200': "ReplaceCard200Response",
|
|
2356
|
+
'400': "ErrorDocument",
|
|
2357
|
+
'401': "ErrorDocument",
|
|
2358
|
+
'404': "ErrorDocument",
|
|
2359
|
+
}
|
|
2360
|
+
response_data = self.api_client.call_api(
|
|
2361
|
+
*_param,
|
|
2362
|
+
_request_timeout=_request_timeout
|
|
2363
|
+
)
|
|
2364
|
+
return response_data.response
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
def _replace_card_serialize(
|
|
2368
|
+
self,
|
|
2369
|
+
card_id,
|
|
2370
|
+
replace_card_request,
|
|
2371
|
+
_request_auth,
|
|
2372
|
+
_content_type,
|
|
2373
|
+
_headers,
|
|
2374
|
+
_host_index,
|
|
2375
|
+
) -> RequestSerialized:
|
|
2376
|
+
|
|
2377
|
+
_host = None
|
|
2378
|
+
|
|
2379
|
+
_collection_formats: Dict[str, str] = {
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
_path_params: Dict[str, str] = {}
|
|
2383
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2384
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2385
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2386
|
+
_files: Dict[
|
|
2387
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2388
|
+
] = {}
|
|
2389
|
+
_body_params: Optional[bytes] = None
|
|
2390
|
+
|
|
2391
|
+
# process the path parameters
|
|
2392
|
+
if card_id is not None:
|
|
2393
|
+
_path_params['cardId'] = card_id
|
|
2394
|
+
# process the query parameters
|
|
2395
|
+
# process the header parameters
|
|
2396
|
+
# process the form parameters
|
|
2397
|
+
# process the body parameter
|
|
2398
|
+
if replace_card_request is not None:
|
|
2399
|
+
_body_params = replace_card_request
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
# set the HTTP header `Accept`
|
|
2403
|
+
if 'Accept' not in _header_params:
|
|
2404
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2405
|
+
[
|
|
2406
|
+
'application/vnd.api+json'
|
|
2407
|
+
]
|
|
2408
|
+
)
|
|
2409
|
+
|
|
2410
|
+
# set the HTTP header `Content-Type`
|
|
2411
|
+
if _content_type:
|
|
2412
|
+
_header_params['Content-Type'] = _content_type
|
|
2413
|
+
else:
|
|
2414
|
+
_default_content_type = (
|
|
2415
|
+
self.api_client.select_header_content_type(
|
|
2416
|
+
[
|
|
2417
|
+
'application/vnd.api+json'
|
|
2418
|
+
]
|
|
2419
|
+
)
|
|
2420
|
+
)
|
|
2421
|
+
if _default_content_type is not None:
|
|
2422
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2423
|
+
|
|
2424
|
+
# authentication setting
|
|
2425
|
+
_auth_settings: List[str] = [
|
|
2426
|
+
'bearerAuth'
|
|
2427
|
+
]
|
|
2428
|
+
|
|
2429
|
+
return self.api_client.param_serialize(
|
|
2430
|
+
method='POST',
|
|
2431
|
+
resource_path='/cards/{cardId}/replace',
|
|
2432
|
+
path_params=_path_params,
|
|
2433
|
+
query_params=_query_params,
|
|
2434
|
+
header_params=_header_params,
|
|
2435
|
+
body=_body_params,
|
|
2436
|
+
post_params=_form_params,
|
|
2437
|
+
files=_files,
|
|
2438
|
+
auth_settings=_auth_settings,
|
|
2439
|
+
collection_formats=_collection_formats,
|
|
2440
|
+
_host=_host,
|
|
2441
|
+
_request_auth=_request_auth
|
|
2442
|
+
)
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
|
|
2447
|
+
@validate_call
|
|
2448
|
+
def report_card_lost(
|
|
2449
|
+
self,
|
|
2450
|
+
card_id: StrictStr,
|
|
2451
|
+
body: Optional[Dict[str, Any]] = None,
|
|
2452
|
+
_request_timeout: Union[
|
|
2453
|
+
None,
|
|
2454
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2455
|
+
Tuple[
|
|
2456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2457
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2458
|
+
]
|
|
2459
|
+
] = None,
|
|
2460
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2461
|
+
_content_type: Optional[StrictStr] = None,
|
|
2462
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2463
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2464
|
+
) -> CloseCard200Response:
|
|
2465
|
+
"""Report card lost
|
|
2466
|
+
|
|
2467
|
+
Report card as lost.
|
|
2468
|
+
|
|
2469
|
+
:param card_id: (required)
|
|
2470
|
+
:type card_id: str
|
|
2471
|
+
:param body:
|
|
2472
|
+
:type body: object
|
|
2473
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2474
|
+
number provided, it will be total request
|
|
2475
|
+
timeout. It can also be a pair (tuple) of
|
|
2476
|
+
(connection, read) timeouts.
|
|
2477
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2478
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2479
|
+
request; this effectively ignores the
|
|
2480
|
+
authentication in the spec for a single request.
|
|
2481
|
+
:type _request_auth: dict, optional
|
|
2482
|
+
:param _content_type: force content-type for the request.
|
|
2483
|
+
:type _content_type: str, Optional
|
|
2484
|
+
:param _headers: set to override the headers for a single
|
|
2485
|
+
request; this effectively ignores the headers
|
|
2486
|
+
in the spec for a single request.
|
|
2487
|
+
:type _headers: dict, optional
|
|
2488
|
+
:param _host_index: set to override the host_index for a single
|
|
2489
|
+
request; this effectively ignores the host_index
|
|
2490
|
+
in the spec for a single request.
|
|
2491
|
+
:type _host_index: int, optional
|
|
2492
|
+
:return: Returns the result object.
|
|
2493
|
+
""" # noqa: E501
|
|
2494
|
+
|
|
2495
|
+
_param = self._report_card_lost_serialize(
|
|
2496
|
+
card_id=card_id,
|
|
2497
|
+
body=body,
|
|
2498
|
+
_request_auth=_request_auth,
|
|
2499
|
+
_content_type=_content_type,
|
|
2500
|
+
_headers=_headers,
|
|
2501
|
+
_host_index=_host_index
|
|
2502
|
+
)
|
|
2503
|
+
|
|
2504
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2505
|
+
'200': "CloseCard200Response",
|
|
2506
|
+
'400': "ErrorDocument",
|
|
2507
|
+
'401': "ErrorDocument",
|
|
2508
|
+
'404': "ErrorDocument",
|
|
2509
|
+
}
|
|
2510
|
+
response_data = self.api_client.call_api(
|
|
2511
|
+
*_param,
|
|
2512
|
+
_request_timeout=_request_timeout
|
|
2513
|
+
)
|
|
2514
|
+
response_data.read()
|
|
2515
|
+
return self.api_client.response_deserialize(
|
|
2516
|
+
response_data=response_data,
|
|
2517
|
+
response_types_map=_response_types_map,
|
|
2518
|
+
).data
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
@validate_call
|
|
2522
|
+
def report_card_lost_with_http_info(
|
|
2523
|
+
self,
|
|
2524
|
+
card_id: StrictStr,
|
|
2525
|
+
body: Optional[Dict[str, Any]] = None,
|
|
2526
|
+
_request_timeout: Union[
|
|
2527
|
+
None,
|
|
2528
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2529
|
+
Tuple[
|
|
2530
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2531
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2532
|
+
]
|
|
2533
|
+
] = None,
|
|
2534
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2535
|
+
_content_type: Optional[StrictStr] = None,
|
|
2536
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2537
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2538
|
+
) -> ApiResponse[CloseCard200Response]:
|
|
2539
|
+
"""Report card lost
|
|
2540
|
+
|
|
2541
|
+
Report card as lost.
|
|
2542
|
+
|
|
2543
|
+
:param card_id: (required)
|
|
2544
|
+
:type card_id: str
|
|
2545
|
+
:param body:
|
|
2546
|
+
:type body: object
|
|
2547
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2548
|
+
number provided, it will be total request
|
|
2549
|
+
timeout. It can also be a pair (tuple) of
|
|
2550
|
+
(connection, read) timeouts.
|
|
2551
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2552
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2553
|
+
request; this effectively ignores the
|
|
2554
|
+
authentication in the spec for a single request.
|
|
2555
|
+
:type _request_auth: dict, optional
|
|
2556
|
+
:param _content_type: force content-type for the request.
|
|
2557
|
+
:type _content_type: str, Optional
|
|
2558
|
+
:param _headers: set to override the headers for a single
|
|
2559
|
+
request; this effectively ignores the headers
|
|
2560
|
+
in the spec for a single request.
|
|
2561
|
+
:type _headers: dict, optional
|
|
2562
|
+
:param _host_index: set to override the host_index for a single
|
|
2563
|
+
request; this effectively ignores the host_index
|
|
2564
|
+
in the spec for a single request.
|
|
2565
|
+
:type _host_index: int, optional
|
|
2566
|
+
:return: Returns the result object.
|
|
2567
|
+
""" # noqa: E501
|
|
2568
|
+
|
|
2569
|
+
_param = self._report_card_lost_serialize(
|
|
2570
|
+
card_id=card_id,
|
|
2571
|
+
body=body,
|
|
2572
|
+
_request_auth=_request_auth,
|
|
2573
|
+
_content_type=_content_type,
|
|
2574
|
+
_headers=_headers,
|
|
2575
|
+
_host_index=_host_index
|
|
2576
|
+
)
|
|
2577
|
+
|
|
2578
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2579
|
+
'200': "CloseCard200Response",
|
|
2580
|
+
'400': "ErrorDocument",
|
|
2581
|
+
'401': "ErrorDocument",
|
|
2582
|
+
'404': "ErrorDocument",
|
|
2583
|
+
}
|
|
2584
|
+
response_data = self.api_client.call_api(
|
|
2585
|
+
*_param,
|
|
2586
|
+
_request_timeout=_request_timeout
|
|
2587
|
+
)
|
|
2588
|
+
response_data.read()
|
|
2589
|
+
return self.api_client.response_deserialize(
|
|
2590
|
+
response_data=response_data,
|
|
2591
|
+
response_types_map=_response_types_map,
|
|
2592
|
+
)
|
|
2593
|
+
|
|
2594
|
+
|
|
2595
|
+
@validate_call
|
|
2596
|
+
def report_card_lost_without_preload_content(
|
|
2597
|
+
self,
|
|
2598
|
+
card_id: StrictStr,
|
|
2599
|
+
body: Optional[Dict[str, Any]] = None,
|
|
2600
|
+
_request_timeout: Union[
|
|
2601
|
+
None,
|
|
2602
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2603
|
+
Tuple[
|
|
2604
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2605
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2606
|
+
]
|
|
2607
|
+
] = None,
|
|
2608
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2609
|
+
_content_type: Optional[StrictStr] = None,
|
|
2610
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2611
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2612
|
+
) -> RESTResponseType:
|
|
2613
|
+
"""Report card lost
|
|
2614
|
+
|
|
2615
|
+
Report card as lost.
|
|
2616
|
+
|
|
2617
|
+
:param card_id: (required)
|
|
2618
|
+
:type card_id: str
|
|
2619
|
+
:param body:
|
|
2620
|
+
:type body: object
|
|
2621
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2622
|
+
number provided, it will be total request
|
|
2623
|
+
timeout. It can also be a pair (tuple) of
|
|
2624
|
+
(connection, read) timeouts.
|
|
2625
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2626
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2627
|
+
request; this effectively ignores the
|
|
2628
|
+
authentication in the spec for a single request.
|
|
2629
|
+
:type _request_auth: dict, optional
|
|
2630
|
+
:param _content_type: force content-type for the request.
|
|
2631
|
+
:type _content_type: str, Optional
|
|
2632
|
+
:param _headers: set to override the headers for a single
|
|
2633
|
+
request; this effectively ignores the headers
|
|
2634
|
+
in the spec for a single request.
|
|
2635
|
+
:type _headers: dict, optional
|
|
2636
|
+
:param _host_index: set to override the host_index for a single
|
|
2637
|
+
request; this effectively ignores the host_index
|
|
2638
|
+
in the spec for a single request.
|
|
2639
|
+
:type _host_index: int, optional
|
|
2640
|
+
:return: Returns the result object.
|
|
2641
|
+
""" # noqa: E501
|
|
2642
|
+
|
|
2643
|
+
_param = self._report_card_lost_serialize(
|
|
2644
|
+
card_id=card_id,
|
|
2645
|
+
body=body,
|
|
2646
|
+
_request_auth=_request_auth,
|
|
2647
|
+
_content_type=_content_type,
|
|
2648
|
+
_headers=_headers,
|
|
2649
|
+
_host_index=_host_index
|
|
2650
|
+
)
|
|
2651
|
+
|
|
2652
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2653
|
+
'200': "CloseCard200Response",
|
|
2654
|
+
'400': "ErrorDocument",
|
|
2655
|
+
'401': "ErrorDocument",
|
|
2656
|
+
'404': "ErrorDocument",
|
|
2657
|
+
}
|
|
2658
|
+
response_data = self.api_client.call_api(
|
|
2659
|
+
*_param,
|
|
2660
|
+
_request_timeout=_request_timeout
|
|
2661
|
+
)
|
|
2662
|
+
return response_data.response
|
|
2663
|
+
|
|
2664
|
+
|
|
2665
|
+
def _report_card_lost_serialize(
|
|
2666
|
+
self,
|
|
2667
|
+
card_id,
|
|
2668
|
+
body,
|
|
2669
|
+
_request_auth,
|
|
2670
|
+
_content_type,
|
|
2671
|
+
_headers,
|
|
2672
|
+
_host_index,
|
|
2673
|
+
) -> RequestSerialized:
|
|
2674
|
+
|
|
2675
|
+
_host = None
|
|
2676
|
+
|
|
2677
|
+
_collection_formats: Dict[str, str] = {
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
_path_params: Dict[str, str] = {}
|
|
2681
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2682
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2683
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2684
|
+
_files: Dict[
|
|
2685
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2686
|
+
] = {}
|
|
2687
|
+
_body_params: Optional[bytes] = None
|
|
2688
|
+
|
|
2689
|
+
# process the path parameters
|
|
2690
|
+
if card_id is not None:
|
|
2691
|
+
_path_params['cardId'] = card_id
|
|
2692
|
+
# process the query parameters
|
|
2693
|
+
# process the header parameters
|
|
2694
|
+
# process the form parameters
|
|
2695
|
+
# process the body parameter
|
|
2696
|
+
if body is not None:
|
|
2697
|
+
_body_params = body
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
# set the HTTP header `Accept`
|
|
2701
|
+
if 'Accept' not in _header_params:
|
|
2702
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2703
|
+
[
|
|
2704
|
+
'application/vnd.api+json'
|
|
2705
|
+
]
|
|
2706
|
+
)
|
|
2707
|
+
|
|
2708
|
+
# set the HTTP header `Content-Type`
|
|
2709
|
+
if _content_type:
|
|
2710
|
+
_header_params['Content-Type'] = _content_type
|
|
2711
|
+
else:
|
|
2712
|
+
_default_content_type = (
|
|
2713
|
+
self.api_client.select_header_content_type(
|
|
2714
|
+
[
|
|
2715
|
+
'application/vnd.api+json'
|
|
2716
|
+
]
|
|
2717
|
+
)
|
|
2718
|
+
)
|
|
2719
|
+
if _default_content_type is not None:
|
|
2720
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2721
|
+
|
|
2722
|
+
# authentication setting
|
|
2723
|
+
_auth_settings: List[str] = [
|
|
2724
|
+
'bearerAuth'
|
|
2725
|
+
]
|
|
2726
|
+
|
|
2727
|
+
return self.api_client.param_serialize(
|
|
2728
|
+
method='POST',
|
|
2729
|
+
resource_path='/cards/{cardId}/report-lost',
|
|
2730
|
+
path_params=_path_params,
|
|
2731
|
+
query_params=_query_params,
|
|
2732
|
+
header_params=_header_params,
|
|
2733
|
+
body=_body_params,
|
|
2734
|
+
post_params=_form_params,
|
|
2735
|
+
files=_files,
|
|
2736
|
+
auth_settings=_auth_settings,
|
|
2737
|
+
collection_formats=_collection_formats,
|
|
2738
|
+
_host=_host,
|
|
2739
|
+
_request_auth=_request_auth
|
|
2740
|
+
)
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
@validate_call
|
|
2746
|
+
def report_card_stolen(
|
|
2747
|
+
self,
|
|
2748
|
+
card_id: StrictStr,
|
|
2749
|
+
body: Optional[Dict[str, Any]] = None,
|
|
2750
|
+
_request_timeout: Union[
|
|
2751
|
+
None,
|
|
2752
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2753
|
+
Tuple[
|
|
2754
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2755
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2756
|
+
]
|
|
2757
|
+
] = None,
|
|
2758
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2759
|
+
_content_type: Optional[StrictStr] = None,
|
|
2760
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2761
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2762
|
+
) -> CloseCard200Response:
|
|
2763
|
+
"""Report card stolen
|
|
2764
|
+
|
|
2765
|
+
Report card as stolen.
|
|
2766
|
+
|
|
2767
|
+
:param card_id: (required)
|
|
2768
|
+
:type card_id: str
|
|
2769
|
+
:param body:
|
|
2770
|
+
:type body: object
|
|
2771
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2772
|
+
number provided, it will be total request
|
|
2773
|
+
timeout. It can also be a pair (tuple) of
|
|
2774
|
+
(connection, read) timeouts.
|
|
2775
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2776
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2777
|
+
request; this effectively ignores the
|
|
2778
|
+
authentication in the spec for a single request.
|
|
2779
|
+
:type _request_auth: dict, optional
|
|
2780
|
+
:param _content_type: force content-type for the request.
|
|
2781
|
+
:type _content_type: str, Optional
|
|
2782
|
+
:param _headers: set to override the headers for a single
|
|
2783
|
+
request; this effectively ignores the headers
|
|
2784
|
+
in the spec for a single request.
|
|
2785
|
+
:type _headers: dict, optional
|
|
2786
|
+
:param _host_index: set to override the host_index for a single
|
|
2787
|
+
request; this effectively ignores the host_index
|
|
2788
|
+
in the spec for a single request.
|
|
2789
|
+
:type _host_index: int, optional
|
|
2790
|
+
:return: Returns the result object.
|
|
2791
|
+
""" # noqa: E501
|
|
2792
|
+
|
|
2793
|
+
_param = self._report_card_stolen_serialize(
|
|
2794
|
+
card_id=card_id,
|
|
2795
|
+
body=body,
|
|
2796
|
+
_request_auth=_request_auth,
|
|
2797
|
+
_content_type=_content_type,
|
|
2798
|
+
_headers=_headers,
|
|
2799
|
+
_host_index=_host_index
|
|
2800
|
+
)
|
|
2801
|
+
|
|
2802
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2803
|
+
'200': "CloseCard200Response",
|
|
2804
|
+
'400': "ErrorDocument",
|
|
2805
|
+
'401': "ErrorDocument",
|
|
2806
|
+
'404': "ErrorDocument",
|
|
2807
|
+
}
|
|
2808
|
+
response_data = self.api_client.call_api(
|
|
2809
|
+
*_param,
|
|
2810
|
+
_request_timeout=_request_timeout
|
|
2811
|
+
)
|
|
2812
|
+
response_data.read()
|
|
2813
|
+
return self.api_client.response_deserialize(
|
|
2814
|
+
response_data=response_data,
|
|
2815
|
+
response_types_map=_response_types_map,
|
|
2816
|
+
).data
|
|
2817
|
+
|
|
2818
|
+
|
|
2819
|
+
@validate_call
|
|
2820
|
+
def report_card_stolen_with_http_info(
|
|
2821
|
+
self,
|
|
2822
|
+
card_id: StrictStr,
|
|
2823
|
+
body: Optional[Dict[str, Any]] = None,
|
|
2824
|
+
_request_timeout: Union[
|
|
2825
|
+
None,
|
|
2826
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2827
|
+
Tuple[
|
|
2828
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2829
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2830
|
+
]
|
|
2831
|
+
] = None,
|
|
2832
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2833
|
+
_content_type: Optional[StrictStr] = None,
|
|
2834
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2835
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2836
|
+
) -> ApiResponse[CloseCard200Response]:
|
|
2837
|
+
"""Report card stolen
|
|
2838
|
+
|
|
2839
|
+
Report card as stolen.
|
|
2840
|
+
|
|
2841
|
+
:param card_id: (required)
|
|
2842
|
+
:type card_id: str
|
|
2843
|
+
:param body:
|
|
2844
|
+
:type body: object
|
|
2845
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2846
|
+
number provided, it will be total request
|
|
2847
|
+
timeout. It can also be a pair (tuple) of
|
|
2848
|
+
(connection, read) timeouts.
|
|
2849
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2850
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2851
|
+
request; this effectively ignores the
|
|
2852
|
+
authentication in the spec for a single request.
|
|
2853
|
+
:type _request_auth: dict, optional
|
|
2854
|
+
:param _content_type: force content-type for the request.
|
|
2855
|
+
:type _content_type: str, Optional
|
|
2856
|
+
:param _headers: set to override the headers for a single
|
|
2857
|
+
request; this effectively ignores the headers
|
|
2858
|
+
in the spec for a single request.
|
|
2859
|
+
:type _headers: dict, optional
|
|
2860
|
+
:param _host_index: set to override the host_index for a single
|
|
2861
|
+
request; this effectively ignores the host_index
|
|
2862
|
+
in the spec for a single request.
|
|
2863
|
+
:type _host_index: int, optional
|
|
2864
|
+
:return: Returns the result object.
|
|
2865
|
+
""" # noqa: E501
|
|
2866
|
+
|
|
2867
|
+
_param = self._report_card_stolen_serialize(
|
|
2868
|
+
card_id=card_id,
|
|
2869
|
+
body=body,
|
|
2870
|
+
_request_auth=_request_auth,
|
|
2871
|
+
_content_type=_content_type,
|
|
2872
|
+
_headers=_headers,
|
|
2873
|
+
_host_index=_host_index
|
|
2874
|
+
)
|
|
2875
|
+
|
|
2876
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2877
|
+
'200': "CloseCard200Response",
|
|
2878
|
+
'400': "ErrorDocument",
|
|
2879
|
+
'401': "ErrorDocument",
|
|
2880
|
+
'404': "ErrorDocument",
|
|
2881
|
+
}
|
|
2882
|
+
response_data = self.api_client.call_api(
|
|
2883
|
+
*_param,
|
|
2884
|
+
_request_timeout=_request_timeout
|
|
2885
|
+
)
|
|
2886
|
+
response_data.read()
|
|
2887
|
+
return self.api_client.response_deserialize(
|
|
2888
|
+
response_data=response_data,
|
|
2889
|
+
response_types_map=_response_types_map,
|
|
2890
|
+
)
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
@validate_call
|
|
2894
|
+
def report_card_stolen_without_preload_content(
|
|
2895
|
+
self,
|
|
2896
|
+
card_id: StrictStr,
|
|
2897
|
+
body: Optional[Dict[str, Any]] = None,
|
|
2898
|
+
_request_timeout: Union[
|
|
2899
|
+
None,
|
|
2900
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2901
|
+
Tuple[
|
|
2902
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2903
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2904
|
+
]
|
|
2905
|
+
] = None,
|
|
2906
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2907
|
+
_content_type: Optional[StrictStr] = None,
|
|
2908
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2909
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2910
|
+
) -> RESTResponseType:
|
|
2911
|
+
"""Report card stolen
|
|
2912
|
+
|
|
2913
|
+
Report card as stolen.
|
|
2914
|
+
|
|
2915
|
+
:param card_id: (required)
|
|
2916
|
+
:type card_id: str
|
|
2917
|
+
:param body:
|
|
2918
|
+
:type body: object
|
|
2919
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2920
|
+
number provided, it will be total request
|
|
2921
|
+
timeout. It can also be a pair (tuple) of
|
|
2922
|
+
(connection, read) timeouts.
|
|
2923
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2924
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2925
|
+
request; this effectively ignores the
|
|
2926
|
+
authentication in the spec for a single request.
|
|
2927
|
+
:type _request_auth: dict, optional
|
|
2928
|
+
:param _content_type: force content-type for the request.
|
|
2929
|
+
:type _content_type: str, Optional
|
|
2930
|
+
:param _headers: set to override the headers for a single
|
|
2931
|
+
request; this effectively ignores the headers
|
|
2932
|
+
in the spec for a single request.
|
|
2933
|
+
:type _headers: dict, optional
|
|
2934
|
+
:param _host_index: set to override the host_index for a single
|
|
2935
|
+
request; this effectively ignores the host_index
|
|
2936
|
+
in the spec for a single request.
|
|
2937
|
+
:type _host_index: int, optional
|
|
2938
|
+
:return: Returns the result object.
|
|
2939
|
+
""" # noqa: E501
|
|
2940
|
+
|
|
2941
|
+
_param = self._report_card_stolen_serialize(
|
|
2942
|
+
card_id=card_id,
|
|
2943
|
+
body=body,
|
|
2944
|
+
_request_auth=_request_auth,
|
|
2945
|
+
_content_type=_content_type,
|
|
2946
|
+
_headers=_headers,
|
|
2947
|
+
_host_index=_host_index
|
|
2948
|
+
)
|
|
2949
|
+
|
|
2950
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2951
|
+
'200': "CloseCard200Response",
|
|
2952
|
+
'400': "ErrorDocument",
|
|
2953
|
+
'401': "ErrorDocument",
|
|
2954
|
+
'404': "ErrorDocument",
|
|
2955
|
+
}
|
|
2956
|
+
response_data = self.api_client.call_api(
|
|
2957
|
+
*_param,
|
|
2958
|
+
_request_timeout=_request_timeout
|
|
2959
|
+
)
|
|
2960
|
+
return response_data.response
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
def _report_card_stolen_serialize(
|
|
2964
|
+
self,
|
|
2965
|
+
card_id,
|
|
2966
|
+
body,
|
|
2967
|
+
_request_auth,
|
|
2968
|
+
_content_type,
|
|
2969
|
+
_headers,
|
|
2970
|
+
_host_index,
|
|
2971
|
+
) -> RequestSerialized:
|
|
2972
|
+
|
|
2973
|
+
_host = None
|
|
2974
|
+
|
|
2975
|
+
_collection_formats: Dict[str, str] = {
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2978
|
+
_path_params: Dict[str, str] = {}
|
|
2979
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2980
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2981
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2982
|
+
_files: Dict[
|
|
2983
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2984
|
+
] = {}
|
|
2985
|
+
_body_params: Optional[bytes] = None
|
|
2986
|
+
|
|
2987
|
+
# process the path parameters
|
|
2988
|
+
if card_id is not None:
|
|
2989
|
+
_path_params['cardId'] = card_id
|
|
2990
|
+
# process the query parameters
|
|
2991
|
+
# process the header parameters
|
|
2992
|
+
# process the form parameters
|
|
2993
|
+
# process the body parameter
|
|
2994
|
+
if body is not None:
|
|
2995
|
+
_body_params = body
|
|
2996
|
+
|
|
2997
|
+
|
|
2998
|
+
# set the HTTP header `Accept`
|
|
2999
|
+
if 'Accept' not in _header_params:
|
|
3000
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3001
|
+
[
|
|
3002
|
+
'application/vnd.api+json'
|
|
3003
|
+
]
|
|
3004
|
+
)
|
|
3005
|
+
|
|
3006
|
+
# set the HTTP header `Content-Type`
|
|
3007
|
+
if _content_type:
|
|
3008
|
+
_header_params['Content-Type'] = _content_type
|
|
3009
|
+
else:
|
|
3010
|
+
_default_content_type = (
|
|
3011
|
+
self.api_client.select_header_content_type(
|
|
3012
|
+
[
|
|
3013
|
+
'application/vnd.api+json'
|
|
3014
|
+
]
|
|
3015
|
+
)
|
|
3016
|
+
)
|
|
3017
|
+
if _default_content_type is not None:
|
|
3018
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3019
|
+
|
|
3020
|
+
# authentication setting
|
|
3021
|
+
_auth_settings: List[str] = [
|
|
3022
|
+
'bearerAuth'
|
|
3023
|
+
]
|
|
3024
|
+
|
|
3025
|
+
return self.api_client.param_serialize(
|
|
3026
|
+
method='POST',
|
|
3027
|
+
resource_path='/cards/{cardId}/report-stolen',
|
|
3028
|
+
path_params=_path_params,
|
|
3029
|
+
query_params=_query_params,
|
|
3030
|
+
header_params=_header_params,
|
|
3031
|
+
body=_body_params,
|
|
3032
|
+
post_params=_form_params,
|
|
3033
|
+
files=_files,
|
|
3034
|
+
auth_settings=_auth_settings,
|
|
3035
|
+
collection_formats=_collection_formats,
|
|
3036
|
+
_host=_host,
|
|
3037
|
+
_request_auth=_request_auth
|
|
3038
|
+
)
|
|
3039
|
+
|
|
3040
|
+
|
|
3041
|
+
|
|
3042
|
+
|
|
3043
|
+
@validate_call
|
|
3044
|
+
def unfreeze_card(
|
|
3045
|
+
self,
|
|
3046
|
+
card_id: StrictStr,
|
|
3047
|
+
body: Optional[Dict[str, Any]] = None,
|
|
3048
|
+
_request_timeout: Union[
|
|
3049
|
+
None,
|
|
3050
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3051
|
+
Tuple[
|
|
3052
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3053
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3054
|
+
]
|
|
3055
|
+
] = None,
|
|
3056
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3057
|
+
_content_type: Optional[StrictStr] = None,
|
|
3058
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3059
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3060
|
+
) -> CloseCard200Response:
|
|
3061
|
+
"""Unfreeze a card
|
|
3062
|
+
|
|
3063
|
+
Unfreeze a frozen card.
|
|
3064
|
+
|
|
3065
|
+
:param card_id: (required)
|
|
3066
|
+
:type card_id: str
|
|
3067
|
+
:param body:
|
|
3068
|
+
:type body: object
|
|
3069
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3070
|
+
number provided, it will be total request
|
|
3071
|
+
timeout. It can also be a pair (tuple) of
|
|
3072
|
+
(connection, read) timeouts.
|
|
3073
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3074
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3075
|
+
request; this effectively ignores the
|
|
3076
|
+
authentication in the spec for a single request.
|
|
3077
|
+
:type _request_auth: dict, optional
|
|
3078
|
+
:param _content_type: force content-type for the request.
|
|
3079
|
+
:type _content_type: str, Optional
|
|
3080
|
+
:param _headers: set to override the headers for a single
|
|
3081
|
+
request; this effectively ignores the headers
|
|
3082
|
+
in the spec for a single request.
|
|
3083
|
+
:type _headers: dict, optional
|
|
3084
|
+
:param _host_index: set to override the host_index for a single
|
|
3085
|
+
request; this effectively ignores the host_index
|
|
3086
|
+
in the spec for a single request.
|
|
3087
|
+
:type _host_index: int, optional
|
|
3088
|
+
:return: Returns the result object.
|
|
3089
|
+
""" # noqa: E501
|
|
3090
|
+
|
|
3091
|
+
_param = self._unfreeze_card_serialize(
|
|
3092
|
+
card_id=card_id,
|
|
3093
|
+
body=body,
|
|
3094
|
+
_request_auth=_request_auth,
|
|
3095
|
+
_content_type=_content_type,
|
|
3096
|
+
_headers=_headers,
|
|
3097
|
+
_host_index=_host_index
|
|
3098
|
+
)
|
|
3099
|
+
|
|
3100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3101
|
+
'200': "CloseCard200Response",
|
|
3102
|
+
'400': "ErrorDocument",
|
|
3103
|
+
'401': "ErrorDocument",
|
|
3104
|
+
'404': "ErrorDocument",
|
|
3105
|
+
}
|
|
3106
|
+
response_data = self.api_client.call_api(
|
|
3107
|
+
*_param,
|
|
3108
|
+
_request_timeout=_request_timeout
|
|
3109
|
+
)
|
|
3110
|
+
response_data.read()
|
|
3111
|
+
return self.api_client.response_deserialize(
|
|
3112
|
+
response_data=response_data,
|
|
3113
|
+
response_types_map=_response_types_map,
|
|
3114
|
+
).data
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
@validate_call
|
|
3118
|
+
def unfreeze_card_with_http_info(
|
|
3119
|
+
self,
|
|
3120
|
+
card_id: StrictStr,
|
|
3121
|
+
body: Optional[Dict[str, Any]] = None,
|
|
3122
|
+
_request_timeout: Union[
|
|
3123
|
+
None,
|
|
3124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3125
|
+
Tuple[
|
|
3126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3127
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3128
|
+
]
|
|
3129
|
+
] = None,
|
|
3130
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3131
|
+
_content_type: Optional[StrictStr] = None,
|
|
3132
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3133
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3134
|
+
) -> ApiResponse[CloseCard200Response]:
|
|
3135
|
+
"""Unfreeze a card
|
|
3136
|
+
|
|
3137
|
+
Unfreeze a frozen card.
|
|
3138
|
+
|
|
3139
|
+
:param card_id: (required)
|
|
3140
|
+
:type card_id: str
|
|
3141
|
+
:param body:
|
|
3142
|
+
:type body: object
|
|
3143
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3144
|
+
number provided, it will be total request
|
|
3145
|
+
timeout. It can also be a pair (tuple) of
|
|
3146
|
+
(connection, read) timeouts.
|
|
3147
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3148
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3149
|
+
request; this effectively ignores the
|
|
3150
|
+
authentication in the spec for a single request.
|
|
3151
|
+
:type _request_auth: dict, optional
|
|
3152
|
+
:param _content_type: force content-type for the request.
|
|
3153
|
+
:type _content_type: str, Optional
|
|
3154
|
+
:param _headers: set to override the headers for a single
|
|
3155
|
+
request; this effectively ignores the headers
|
|
3156
|
+
in the spec for a single request.
|
|
3157
|
+
:type _headers: dict, optional
|
|
3158
|
+
:param _host_index: set to override the host_index for a single
|
|
3159
|
+
request; this effectively ignores the host_index
|
|
3160
|
+
in the spec for a single request.
|
|
3161
|
+
:type _host_index: int, optional
|
|
3162
|
+
:return: Returns the result object.
|
|
3163
|
+
""" # noqa: E501
|
|
3164
|
+
|
|
3165
|
+
_param = self._unfreeze_card_serialize(
|
|
3166
|
+
card_id=card_id,
|
|
3167
|
+
body=body,
|
|
3168
|
+
_request_auth=_request_auth,
|
|
3169
|
+
_content_type=_content_type,
|
|
3170
|
+
_headers=_headers,
|
|
3171
|
+
_host_index=_host_index
|
|
3172
|
+
)
|
|
3173
|
+
|
|
3174
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3175
|
+
'200': "CloseCard200Response",
|
|
3176
|
+
'400': "ErrorDocument",
|
|
3177
|
+
'401': "ErrorDocument",
|
|
3178
|
+
'404': "ErrorDocument",
|
|
3179
|
+
}
|
|
3180
|
+
response_data = self.api_client.call_api(
|
|
3181
|
+
*_param,
|
|
3182
|
+
_request_timeout=_request_timeout
|
|
3183
|
+
)
|
|
3184
|
+
response_data.read()
|
|
3185
|
+
return self.api_client.response_deserialize(
|
|
3186
|
+
response_data=response_data,
|
|
3187
|
+
response_types_map=_response_types_map,
|
|
3188
|
+
)
|
|
3189
|
+
|
|
3190
|
+
|
|
3191
|
+
@validate_call
|
|
3192
|
+
def unfreeze_card_without_preload_content(
|
|
3193
|
+
self,
|
|
3194
|
+
card_id: StrictStr,
|
|
3195
|
+
body: Optional[Dict[str, Any]] = None,
|
|
3196
|
+
_request_timeout: Union[
|
|
3197
|
+
None,
|
|
3198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3199
|
+
Tuple[
|
|
3200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3202
|
+
]
|
|
3203
|
+
] = None,
|
|
3204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3205
|
+
_content_type: Optional[StrictStr] = None,
|
|
3206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3208
|
+
) -> RESTResponseType:
|
|
3209
|
+
"""Unfreeze a card
|
|
3210
|
+
|
|
3211
|
+
Unfreeze a frozen card.
|
|
3212
|
+
|
|
3213
|
+
:param card_id: (required)
|
|
3214
|
+
:type card_id: str
|
|
3215
|
+
:param body:
|
|
3216
|
+
:type body: object
|
|
3217
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3218
|
+
number provided, it will be total request
|
|
3219
|
+
timeout. It can also be a pair (tuple) of
|
|
3220
|
+
(connection, read) timeouts.
|
|
3221
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3222
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3223
|
+
request; this effectively ignores the
|
|
3224
|
+
authentication in the spec for a single request.
|
|
3225
|
+
:type _request_auth: dict, optional
|
|
3226
|
+
:param _content_type: force content-type for the request.
|
|
3227
|
+
:type _content_type: str, Optional
|
|
3228
|
+
:param _headers: set to override the headers for a single
|
|
3229
|
+
request; this effectively ignores the headers
|
|
3230
|
+
in the spec for a single request.
|
|
3231
|
+
:type _headers: dict, optional
|
|
3232
|
+
:param _host_index: set to override the host_index for a single
|
|
3233
|
+
request; this effectively ignores the host_index
|
|
3234
|
+
in the spec for a single request.
|
|
3235
|
+
:type _host_index: int, optional
|
|
3236
|
+
:return: Returns the result object.
|
|
3237
|
+
""" # noqa: E501
|
|
3238
|
+
|
|
3239
|
+
_param = self._unfreeze_card_serialize(
|
|
3240
|
+
card_id=card_id,
|
|
3241
|
+
body=body,
|
|
3242
|
+
_request_auth=_request_auth,
|
|
3243
|
+
_content_type=_content_type,
|
|
3244
|
+
_headers=_headers,
|
|
3245
|
+
_host_index=_host_index
|
|
3246
|
+
)
|
|
3247
|
+
|
|
3248
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3249
|
+
'200': "CloseCard200Response",
|
|
3250
|
+
'400': "ErrorDocument",
|
|
3251
|
+
'401': "ErrorDocument",
|
|
3252
|
+
'404': "ErrorDocument",
|
|
3253
|
+
}
|
|
3254
|
+
response_data = self.api_client.call_api(
|
|
3255
|
+
*_param,
|
|
3256
|
+
_request_timeout=_request_timeout
|
|
3257
|
+
)
|
|
3258
|
+
return response_data.response
|
|
3259
|
+
|
|
3260
|
+
|
|
3261
|
+
def _unfreeze_card_serialize(
|
|
3262
|
+
self,
|
|
3263
|
+
card_id,
|
|
3264
|
+
body,
|
|
3265
|
+
_request_auth,
|
|
3266
|
+
_content_type,
|
|
3267
|
+
_headers,
|
|
3268
|
+
_host_index,
|
|
3269
|
+
) -> RequestSerialized:
|
|
3270
|
+
|
|
3271
|
+
_host = None
|
|
3272
|
+
|
|
3273
|
+
_collection_formats: Dict[str, str] = {
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
_path_params: Dict[str, str] = {}
|
|
3277
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3278
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3279
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3280
|
+
_files: Dict[
|
|
3281
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3282
|
+
] = {}
|
|
3283
|
+
_body_params: Optional[bytes] = None
|
|
3284
|
+
|
|
3285
|
+
# process the path parameters
|
|
3286
|
+
if card_id is not None:
|
|
3287
|
+
_path_params['cardId'] = card_id
|
|
3288
|
+
# process the query parameters
|
|
3289
|
+
# process the header parameters
|
|
3290
|
+
# process the form parameters
|
|
3291
|
+
# process the body parameter
|
|
3292
|
+
if body is not None:
|
|
3293
|
+
_body_params = body
|
|
3294
|
+
|
|
3295
|
+
|
|
3296
|
+
# set the HTTP header `Accept`
|
|
3297
|
+
if 'Accept' not in _header_params:
|
|
3298
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3299
|
+
[
|
|
3300
|
+
'application/vnd.api+json'
|
|
3301
|
+
]
|
|
3302
|
+
)
|
|
3303
|
+
|
|
3304
|
+
# set the HTTP header `Content-Type`
|
|
3305
|
+
if _content_type:
|
|
3306
|
+
_header_params['Content-Type'] = _content_type
|
|
3307
|
+
else:
|
|
3308
|
+
_default_content_type = (
|
|
3309
|
+
self.api_client.select_header_content_type(
|
|
3310
|
+
[
|
|
3311
|
+
'application/vnd.api+json'
|
|
3312
|
+
]
|
|
3313
|
+
)
|
|
3314
|
+
)
|
|
3315
|
+
if _default_content_type is not None:
|
|
3316
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3317
|
+
|
|
3318
|
+
# authentication setting
|
|
3319
|
+
_auth_settings: List[str] = [
|
|
3320
|
+
'bearerAuth'
|
|
3321
|
+
]
|
|
3322
|
+
|
|
3323
|
+
return self.api_client.param_serialize(
|
|
3324
|
+
method='POST',
|
|
3325
|
+
resource_path='/cards/{cardId}/unfreeze',
|
|
3326
|
+
path_params=_path_params,
|
|
3327
|
+
query_params=_query_params,
|
|
3328
|
+
header_params=_header_params,
|
|
3329
|
+
body=_body_params,
|
|
3330
|
+
post_params=_form_params,
|
|
3331
|
+
files=_files,
|
|
3332
|
+
auth_settings=_auth_settings,
|
|
3333
|
+
collection_formats=_collection_formats,
|
|
3334
|
+
_host=_host,
|
|
3335
|
+
_request_auth=_request_auth
|
|
3336
|
+
)
|
|
3337
|
+
|
|
3338
|
+
|
|
3339
|
+
|
|
3340
|
+
|
|
3341
|
+
@validate_call
|
|
3342
|
+
def update_card(
|
|
3343
|
+
self,
|
|
3344
|
+
card_id: StrictStr,
|
|
3345
|
+
update_card_request: UpdateCardRequest,
|
|
3346
|
+
_request_timeout: Union[
|
|
3347
|
+
None,
|
|
3348
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3349
|
+
Tuple[
|
|
3350
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3351
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3352
|
+
]
|
|
3353
|
+
] = None,
|
|
3354
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3355
|
+
_content_type: Optional[StrictStr] = None,
|
|
3356
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3357
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3358
|
+
) -> UpdateCard200Response:
|
|
3359
|
+
"""Update a card
|
|
3360
|
+
|
|
3361
|
+
Update a debit card.
|
|
3362
|
+
|
|
3363
|
+
:param card_id: (required)
|
|
3364
|
+
:type card_id: str
|
|
3365
|
+
:param update_card_request: (required)
|
|
3366
|
+
:type update_card_request: UpdateCardRequest
|
|
3367
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3368
|
+
number provided, it will be total request
|
|
3369
|
+
timeout. It can also be a pair (tuple) of
|
|
3370
|
+
(connection, read) timeouts.
|
|
3371
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3372
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3373
|
+
request; this effectively ignores the
|
|
3374
|
+
authentication in the spec for a single request.
|
|
3375
|
+
:type _request_auth: dict, optional
|
|
3376
|
+
:param _content_type: force content-type for the request.
|
|
3377
|
+
:type _content_type: str, Optional
|
|
3378
|
+
:param _headers: set to override the headers for a single
|
|
3379
|
+
request; this effectively ignores the headers
|
|
3380
|
+
in the spec for a single request.
|
|
3381
|
+
:type _headers: dict, optional
|
|
3382
|
+
:param _host_index: set to override the host_index for a single
|
|
3383
|
+
request; this effectively ignores the host_index
|
|
3384
|
+
in the spec for a single request.
|
|
3385
|
+
:type _host_index: int, optional
|
|
3386
|
+
:return: Returns the result object.
|
|
3387
|
+
""" # noqa: E501
|
|
3388
|
+
|
|
3389
|
+
_param = self._update_card_serialize(
|
|
3390
|
+
card_id=card_id,
|
|
3391
|
+
update_card_request=update_card_request,
|
|
3392
|
+
_request_auth=_request_auth,
|
|
3393
|
+
_content_type=_content_type,
|
|
3394
|
+
_headers=_headers,
|
|
3395
|
+
_host_index=_host_index
|
|
3396
|
+
)
|
|
3397
|
+
|
|
3398
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3399
|
+
'200': "UpdateCard200Response",
|
|
3400
|
+
'400': "ErrorDocument",
|
|
3401
|
+
'401': "ErrorDocument",
|
|
3402
|
+
'404': "ErrorDocument",
|
|
3403
|
+
}
|
|
3404
|
+
response_data = self.api_client.call_api(
|
|
3405
|
+
*_param,
|
|
3406
|
+
_request_timeout=_request_timeout
|
|
3407
|
+
)
|
|
3408
|
+
response_data.read()
|
|
3409
|
+
return self.api_client.response_deserialize(
|
|
3410
|
+
response_data=response_data,
|
|
3411
|
+
response_types_map=_response_types_map,
|
|
3412
|
+
).data
|
|
3413
|
+
|
|
3414
|
+
|
|
3415
|
+
@validate_call
|
|
3416
|
+
def update_card_with_http_info(
|
|
3417
|
+
self,
|
|
3418
|
+
card_id: StrictStr,
|
|
3419
|
+
update_card_request: UpdateCardRequest,
|
|
3420
|
+
_request_timeout: Union[
|
|
3421
|
+
None,
|
|
3422
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3423
|
+
Tuple[
|
|
3424
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3425
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3426
|
+
]
|
|
3427
|
+
] = None,
|
|
3428
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3429
|
+
_content_type: Optional[StrictStr] = None,
|
|
3430
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3431
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3432
|
+
) -> ApiResponse[UpdateCard200Response]:
|
|
3433
|
+
"""Update a card
|
|
3434
|
+
|
|
3435
|
+
Update a debit card.
|
|
3436
|
+
|
|
3437
|
+
:param card_id: (required)
|
|
3438
|
+
:type card_id: str
|
|
3439
|
+
:param update_card_request: (required)
|
|
3440
|
+
:type update_card_request: UpdateCardRequest
|
|
3441
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3442
|
+
number provided, it will be total request
|
|
3443
|
+
timeout. It can also be a pair (tuple) of
|
|
3444
|
+
(connection, read) timeouts.
|
|
3445
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3446
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3447
|
+
request; this effectively ignores the
|
|
3448
|
+
authentication in the spec for a single request.
|
|
3449
|
+
:type _request_auth: dict, optional
|
|
3450
|
+
:param _content_type: force content-type for the request.
|
|
3451
|
+
:type _content_type: str, Optional
|
|
3452
|
+
:param _headers: set to override the headers for a single
|
|
3453
|
+
request; this effectively ignores the headers
|
|
3454
|
+
in the spec for a single request.
|
|
3455
|
+
:type _headers: dict, optional
|
|
3456
|
+
:param _host_index: set to override the host_index for a single
|
|
3457
|
+
request; this effectively ignores the host_index
|
|
3458
|
+
in the spec for a single request.
|
|
3459
|
+
:type _host_index: int, optional
|
|
3460
|
+
:return: Returns the result object.
|
|
3461
|
+
""" # noqa: E501
|
|
3462
|
+
|
|
3463
|
+
_param = self._update_card_serialize(
|
|
3464
|
+
card_id=card_id,
|
|
3465
|
+
update_card_request=update_card_request,
|
|
3466
|
+
_request_auth=_request_auth,
|
|
3467
|
+
_content_type=_content_type,
|
|
3468
|
+
_headers=_headers,
|
|
3469
|
+
_host_index=_host_index
|
|
3470
|
+
)
|
|
3471
|
+
|
|
3472
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3473
|
+
'200': "UpdateCard200Response",
|
|
3474
|
+
'400': "ErrorDocument",
|
|
3475
|
+
'401': "ErrorDocument",
|
|
3476
|
+
'404': "ErrorDocument",
|
|
3477
|
+
}
|
|
3478
|
+
response_data = self.api_client.call_api(
|
|
3479
|
+
*_param,
|
|
3480
|
+
_request_timeout=_request_timeout
|
|
3481
|
+
)
|
|
3482
|
+
response_data.read()
|
|
3483
|
+
return self.api_client.response_deserialize(
|
|
3484
|
+
response_data=response_data,
|
|
3485
|
+
response_types_map=_response_types_map,
|
|
3486
|
+
)
|
|
3487
|
+
|
|
3488
|
+
|
|
3489
|
+
@validate_call
|
|
3490
|
+
def update_card_without_preload_content(
|
|
3491
|
+
self,
|
|
3492
|
+
card_id: StrictStr,
|
|
3493
|
+
update_card_request: UpdateCardRequest,
|
|
3494
|
+
_request_timeout: Union[
|
|
3495
|
+
None,
|
|
3496
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3497
|
+
Tuple[
|
|
3498
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3499
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3500
|
+
]
|
|
3501
|
+
] = None,
|
|
3502
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3503
|
+
_content_type: Optional[StrictStr] = None,
|
|
3504
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3505
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3506
|
+
) -> RESTResponseType:
|
|
3507
|
+
"""Update a card
|
|
3508
|
+
|
|
3509
|
+
Update a debit card.
|
|
3510
|
+
|
|
3511
|
+
:param card_id: (required)
|
|
3512
|
+
:type card_id: str
|
|
3513
|
+
:param update_card_request: (required)
|
|
3514
|
+
:type update_card_request: UpdateCardRequest
|
|
3515
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3516
|
+
number provided, it will be total request
|
|
3517
|
+
timeout. It can also be a pair (tuple) of
|
|
3518
|
+
(connection, read) timeouts.
|
|
3519
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3520
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3521
|
+
request; this effectively ignores the
|
|
3522
|
+
authentication in the spec for a single request.
|
|
3523
|
+
:type _request_auth: dict, optional
|
|
3524
|
+
:param _content_type: force content-type for the request.
|
|
3525
|
+
:type _content_type: str, Optional
|
|
3526
|
+
:param _headers: set to override the headers for a single
|
|
3527
|
+
request; this effectively ignores the headers
|
|
3528
|
+
in the spec for a single request.
|
|
3529
|
+
:type _headers: dict, optional
|
|
3530
|
+
:param _host_index: set to override the host_index for a single
|
|
3531
|
+
request; this effectively ignores the host_index
|
|
3532
|
+
in the spec for a single request.
|
|
3533
|
+
:type _host_index: int, optional
|
|
3534
|
+
:return: Returns the result object.
|
|
3535
|
+
""" # noqa: E501
|
|
3536
|
+
|
|
3537
|
+
_param = self._update_card_serialize(
|
|
3538
|
+
card_id=card_id,
|
|
3539
|
+
update_card_request=update_card_request,
|
|
3540
|
+
_request_auth=_request_auth,
|
|
3541
|
+
_content_type=_content_type,
|
|
3542
|
+
_headers=_headers,
|
|
3543
|
+
_host_index=_host_index
|
|
3544
|
+
)
|
|
3545
|
+
|
|
3546
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3547
|
+
'200': "UpdateCard200Response",
|
|
3548
|
+
'400': "ErrorDocument",
|
|
3549
|
+
'401': "ErrorDocument",
|
|
3550
|
+
'404': "ErrorDocument",
|
|
3551
|
+
}
|
|
3552
|
+
response_data = self.api_client.call_api(
|
|
3553
|
+
*_param,
|
|
3554
|
+
_request_timeout=_request_timeout
|
|
3555
|
+
)
|
|
3556
|
+
return response_data.response
|
|
3557
|
+
|
|
3558
|
+
|
|
3559
|
+
def _update_card_serialize(
|
|
3560
|
+
self,
|
|
3561
|
+
card_id,
|
|
3562
|
+
update_card_request,
|
|
3563
|
+
_request_auth,
|
|
3564
|
+
_content_type,
|
|
3565
|
+
_headers,
|
|
3566
|
+
_host_index,
|
|
3567
|
+
) -> RequestSerialized:
|
|
3568
|
+
|
|
3569
|
+
_host = None
|
|
3570
|
+
|
|
3571
|
+
_collection_formats: Dict[str, str] = {
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
_path_params: Dict[str, str] = {}
|
|
3575
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3576
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3577
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3578
|
+
_files: Dict[
|
|
3579
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3580
|
+
] = {}
|
|
3581
|
+
_body_params: Optional[bytes] = None
|
|
3582
|
+
|
|
3583
|
+
# process the path parameters
|
|
3584
|
+
if card_id is not None:
|
|
3585
|
+
_path_params['cardId'] = card_id
|
|
3586
|
+
# process the query parameters
|
|
3587
|
+
# process the header parameters
|
|
3588
|
+
# process the form parameters
|
|
3589
|
+
# process the body parameter
|
|
3590
|
+
if update_card_request is not None:
|
|
3591
|
+
_body_params = update_card_request
|
|
3592
|
+
|
|
3593
|
+
|
|
3594
|
+
# set the HTTP header `Accept`
|
|
3595
|
+
if 'Accept' not in _header_params:
|
|
3596
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3597
|
+
[
|
|
3598
|
+
'application/vnd.api+json'
|
|
3599
|
+
]
|
|
3600
|
+
)
|
|
3601
|
+
|
|
3602
|
+
# set the HTTP header `Content-Type`
|
|
3603
|
+
if _content_type:
|
|
3604
|
+
_header_params['Content-Type'] = _content_type
|
|
3605
|
+
else:
|
|
3606
|
+
_default_content_type = (
|
|
3607
|
+
self.api_client.select_header_content_type(
|
|
3608
|
+
[
|
|
3609
|
+
'application/vnd.api+json'
|
|
3610
|
+
]
|
|
3611
|
+
)
|
|
3612
|
+
)
|
|
3613
|
+
if _default_content_type is not None:
|
|
3614
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3615
|
+
|
|
3616
|
+
# authentication setting
|
|
3617
|
+
_auth_settings: List[str] = [
|
|
3618
|
+
'bearerAuth'
|
|
3619
|
+
]
|
|
3620
|
+
|
|
3621
|
+
return self.api_client.param_serialize(
|
|
3622
|
+
method='PATCH',
|
|
3623
|
+
resource_path='/cards/{cardId}',
|
|
3624
|
+
path_params=_path_params,
|
|
3625
|
+
query_params=_query_params,
|
|
3626
|
+
header_params=_header_params,
|
|
3627
|
+
body=_body_params,
|
|
3628
|
+
post_params=_form_params,
|
|
3629
|
+
files=_files,
|
|
3630
|
+
auth_settings=_auth_settings,
|
|
3631
|
+
collection_formats=_collection_formats,
|
|
3632
|
+
_host=_host,
|
|
3633
|
+
_request_auth=_request_auth
|
|
3634
|
+
)
|
|
3635
|
+
|
|
3636
|
+
|