fortis-python-sdk 1.0.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.
- fortis_python_sdk-1.0.0.dist-info/METADATA +183 -0
- fortis_python_sdk-1.0.0.dist-info/RECORD +699 -0
- fortis_python_sdk-1.0.0.dist-info/WHEEL +5 -0
- fortis_python_sdk-1.0.0.dist-info/licenses/LICENSE +28 -0
- fortis_python_sdk-1.0.0.dist-info/top_level.txt +1 -0
- fortisapi/__init__.py +12 -0
- fortisapi/api_helper.py +19 -0
- fortisapi/configuration.py +294 -0
- fortisapi/controllers/__init__.py +40 -0
- fortisapi/controllers/apple_pay_validate_merchant_controller.py +84 -0
- fortisapi/controllers/async_processing_controller.py +78 -0
- fortisapi/controllers/base_controller.py +67 -0
- fortisapi/controllers/batches_controller.py +179 -0
- fortisapi/controllers/calculate_surcharge_controller.py +76 -0
- fortisapi/controllers/contacts_controller.py +398 -0
- fortisapi/controllers/declined_recurring_transactions_controller.py +326 -0
- fortisapi/controllers/device_terms_controller.py +242 -0
- fortisapi/controllers/elements_controller.py +129 -0
- fortisapi/controllers/enterprise_link_redirect_controller.py +81 -0
- fortisapi/controllers/full_boarding_controller.py +85 -0
- fortisapi/controllers/level_3_data_controller.py +219 -0
- fortisapi/controllers/locations_controller.py +478 -0
- fortisapi/controllers/m_3_ds_authentication_controller.py +90 -0
- fortisapi/controllers/m_3_ds_transactions_controller.py +84 -0
- fortisapi/controllers/merchant_deposits_controller.py +295 -0
- fortisapi/controllers/merchant_details_controller.py +82 -0
- fortisapi/controllers/on_boarding_controller.py +100 -0
- fortisapi/controllers/paylinks_controller.py +396 -0
- fortisapi/controllers/payment_card_reader_token_controller.py +76 -0
- fortisapi/controllers/quick_invoices_controller.py +531 -0
- fortisapi/controllers/recurring_controller.py +545 -0
- fortisapi/controllers/reports_controller.py +209 -0
- fortisapi/controllers/signatures_controller.py +249 -0
- fortisapi/controllers/tags_controller.py +328 -0
- fortisapi/controllers/terminals_controller.py +304 -0
- fortisapi/controllers/tickets_controller.py +249 -0
- fortisapi/controllers/tokens_controller.py +679 -0
- fortisapi/controllers/transaction_ach_retries_controller.py +250 -0
- fortisapi/controllers/transactions_ach_controller.py +398 -0
- fortisapi/controllers/transactions_cash_controller.py +123 -0
- fortisapi/controllers/transactions_credit_card_controller.py +1796 -0
- fortisapi/controllers/transactions_ebt_card_controller.py +147 -0
- fortisapi/controllers/transactions_read_controller.py +248 -0
- fortisapi/controllers/transactions_updates_controller.py +435 -0
- fortisapi/controllers/webhooks_controller.py +493 -0
- fortisapi/exceptions/__init__.py +8 -0
- fortisapi/exceptions/api_exception.py +36 -0
- fortisapi/exceptions/response_401_token_exception.py +77 -0
- fortisapi/exceptions/response_412_exception.py +109 -0
- fortisapi/exceptions/response_error_exception.py +109 -0
- fortisapi/fortisapi_client.py +360 -0
- fortisapi/http/__init__.py +11 -0
- fortisapi/http/auth/__init__.py +8 -0
- fortisapi/http/auth/access_token.py +100 -0
- fortisapi/http/auth/developer_id.py +100 -0
- fortisapi/http/auth/user_api_key.py +100 -0
- fortisapi/http/auth/user_id.py +100 -0
- fortisapi/http/http_call_back.py +20 -0
- fortisapi/http/http_client_provider.py +23 -0
- fortisapi/http/http_method_enum.py +25 -0
- fortisapi/http/http_request.py +55 -0
- fortisapi/http/http_response.py +45 -0
- fortisapi/http/proxy_settings.py +50 -0
- fortisapi/models/__init__.py +636 -0
- fortisapi/models/account_info.py +519 -0
- fortisapi/models/account_type_12_enum.py +47 -0
- fortisapi/models/account_type_13_enum.py +51 -0
- fortisapi/models/account_type_16_enum.py +51 -0
- fortisapi/models/account_type_enum.py +83 -0
- fortisapi/models/account_vault.py +1408 -0
- fortisapi/models/account_vault_cau_log.py +201 -0
- fortisapi/models/account_vault_cau_product_transaction.py +754 -0
- fortisapi/models/ach_product_transaction.py +3048 -0
- fortisapi/models/ach_sec_code_1_enum.py +59 -0
- fortisapi/models/ach_sec_code_31_enum.py +61 -0
- fortisapi/models/ach_sec_code_3_enum.py +59 -0
- fortisapi/models/ach_sec_code_enum.py +67 -0
- fortisapi/models/acs_challenge_mandated_enum.py +52 -0
- fortisapi/models/action_enum.py +70 -0
- fortisapi/models/active_recurring.py +975 -0
- fortisapi/models/additional_access.py +102 -0
- fortisapi/models/additional_amount.py +201 -0
- fortisapi/models/addon.py +222 -0
- fortisapi/models/addon_transaction_type_enum.py +57 -0
- fortisapi/models/address.py +205 -0
- fortisapi/models/address_1.py +228 -0
- fortisapi/models/address_2.py +204 -0
- fortisapi/models/address_71.py +186 -0
- fortisapi/models/address_match_enum.py +54 -0
- fortisapi/models/address_type_enum.py +50 -0
- fortisapi/models/all_tag.py +194 -0
- fortisapi/models/alt_bank_account.py +180 -0
- fortisapi/models/amount_ind_enum.py +121 -0
- fortisapi/models/app_delivery_enum.py +50 -0
- fortisapi/models/auth_currency_enum.py +168 -0
- fortisapi/models/avs_enum.py +56 -0
- fortisapi/models/balance.py +154 -0
- fortisapi/models/bank_account.py +156 -0
- fortisapi/models/bank_account_1.py +186 -0
- fortisapi/models/batch_risk_config.py +132 -0
- fortisapi/models/billing_address.py +233 -0
- fortisapi/models/billing_address_1.py +258 -0
- fortisapi/models/billing_address_24.py +263 -0
- fortisapi/models/billing_address_5.py +155 -0
- fortisapi/models/body.py +134 -0
- fortisapi/models/branding_domain.py +867 -0
- fortisapi/models/branding_domain_1.py +867 -0
- fortisapi/models/broad_info.py +241 -0
- fortisapi/models/browser_information.py +401 -0
- fortisapi/models/business_category_enum.py +77 -0
- fortisapi/models/business_type_enum.py +365 -0
- fortisapi/models/cardholder.py +324 -0
- fortisapi/models/cardholder_account.py +211 -0
- fortisapi/models/category_enum.py +133 -0
- fortisapi/models/cau_subscribe_type_code_enum.py +50 -0
- fortisapi/models/cau_subscribe_type_id_enum.py +50 -0
- fortisapi/models/cau_summary_status_id_enum.py +53 -0
- fortisapi/models/cc_product_transaction.py +3048 -0
- fortisapi/models/ch_acc_age_ind_enum.py +66 -0
- fortisapi/models/ch_acc_change_ind_enum.py +63 -0
- fortisapi/models/ch_acc_pw_change_ind_enum.py +67 -0
- fortisapi/models/challenge_message_extension.py +177 -0
- fortisapi/models/challenge_window_size_enum.py +73 -0
- fortisapi/models/changelog.py +280 -0
- fortisapi/models/changelog_detail.py +178 -0
- fortisapi/models/children.py +822 -0
- fortisapi/models/communication_type_enum.py +50 -0
- fortisapi/models/conditions.py +125 -0
- fortisapi/models/conditions_18.py +146 -0
- fortisapi/models/conditions_181.py +146 -0
- fortisapi/models/conditions_191.py +146 -0
- fortisapi/models/conditions_27.py +125 -0
- fortisapi/models/conditions_4.py +146 -0
- fortisapi/models/conditions_41.py +146 -0
- fortisapi/models/conditions_42.py +146 -0
- fortisapi/models/conditions_43.py +146 -0
- fortisapi/models/contact.py +179 -0
- fortisapi/models/contact_1.py +822 -0
- fortisapi/models/contact_9.py +169 -0
- fortisapi/models/contact_user_default_entry_page_enum.py +59 -0
- fortisapi/models/context.py +125 -0
- fortisapi/models/country_enum.py +47 -0
- fortisapi/models/created_user.py +1197 -0
- fortisapi/models/currency_code_enum.py +186 -0
- fortisapi/models/currency_type.py +131 -0
- fortisapi/models/data.py +225 -0
- fortisapi/models/data_1.py +105 -0
- fortisapi/models/data_10.py +1283 -0
- fortisapi/models/data_11.py +948 -0
- fortisapi/models/data_12.py +369 -0
- fortisapi/models/data_13.py +263 -0
- fortisapi/models/data_14.py +552 -0
- fortisapi/models/data_15.py +102 -0
- fortisapi/models/data_16.py +930 -0
- fortisapi/models/data_17.py +920 -0
- fortisapi/models/data_18.py +102 -0
- fortisapi/models/data_19.py +631 -0
- fortisapi/models/data_2.py +1134 -0
- fortisapi/models/data_20.py +1657 -0
- fortisapi/models/data_21.py +223 -0
- fortisapi/models/data_22.py +1341 -0
- fortisapi/models/data_23.py +245 -0
- fortisapi/models/data_24.py +219 -0
- fortisapi/models/data_25.py +1456 -0
- fortisapi/models/data_26.py +376 -0
- fortisapi/models/data_27.py +1681 -0
- fortisapi/models/data_28.py +380 -0
- fortisapi/models/data_29.py +4233 -0
- fortisapi/models/data_3.py +296 -0
- fortisapi/models/data_30.py +421 -0
- fortisapi/models/data_31.py +150 -0
- fortisapi/models/data_34.py +103 -0
- fortisapi/models/data_35.py +259 -0
- fortisapi/models/data_36.py +537 -0
- fortisapi/models/data_4.py +482 -0
- fortisapi/models/data_5.py +171 -0
- fortisapi/models/data_6.py +469 -0
- fortisapi/models/data_7.py +230 -0
- fortisapi/models/data_8.py +616 -0
- fortisapi/models/data_9.py +129 -0
- fortisapi/models/debit_credit_enum.py +48 -0
- fortisapi/models/declined_recurring_notification.py +251 -0
- fortisapi/models/default_transaction_type_enum.py +50 -0
- fortisapi/models/delivery_method_enum.py +61 -0
- fortisapi/models/delivery_timeframe_enum.py +61 -0
- fortisapi/models/deposit_type_enum.py +50 -0
- fortisapi/models/detail.py +173 -0
- fortisapi/models/detail_1.py +323 -0
- fortisapi/models/detail_2.py +273 -0
- fortisapi/models/developer_company.py +270 -0
- fortisapi/models/device.py +123 -0
- fortisapi/models/device_binding_status_enum.py +373 -0
- fortisapi/models/device_channel_enum.py +51 -0
- fortisapi/models/document.py +115 -0
- fortisapi/models/e_format_enum.py +62 -0
- fortisapi/models/ebt_plan_enum.py +50 -0
- fortisapi/models/ebt_type_enum.py +61 -0
- fortisapi/models/email_blacklist.py +178 -0
- fortisapi/models/email_enum.py +47 -0
- fortisapi/models/emv_receipt_data.py +244 -0
- fortisapi/models/entry_mode_id_enum.py +73 -0
- fortisapi/models/expand_108_enum.py +48 -0
- fortisapi/models/expand_10_enum.py +42 -0
- fortisapi/models/expand_11_enum.py +99 -0
- fortisapi/models/expand_15_enum.py +42 -0
- fortisapi/models/expand_17_enum.py +96 -0
- fortisapi/models/expand_18_enum.py +84 -0
- fortisapi/models/expand_1_enum.py +75 -0
- fortisapi/models/expand_26_enum.py +87 -0
- fortisapi/models/expand_34_enum.py +42 -0
- fortisapi/models/expand_37_enum.py +42 -0
- fortisapi/models/expand_40_enum.py +63 -0
- fortisapi/models/expand_44_enum.py +48 -0
- fortisapi/models/expand_47_enum.py +69 -0
- fortisapi/models/expand_57_enum.py +54 -0
- fortisapi/models/expand_5_enum.py +48 -0
- fortisapi/models/expand_60_enum.py +171 -0
- fortisapi/models/expand_8_enum.py +57 -0
- fortisapi/models/expand_enum.py +51 -0
- fortisapi/models/field.py +125 -0
- fortisapi/models/field_20.py +267 -0
- fortisapi/models/field_27_enum.py +129 -0
- fortisapi/models/field_28_enum.py +168 -0
- fortisapi/models/field_30_enum.py +75 -0
- fortisapi/models/field_31_enum.py +87 -0
- fortisapi/models/field_33_enum.py +183 -0
- fortisapi/models/field_34_enum.py +195 -0
- fortisapi/models/field_35_enum.py +180 -0
- fortisapi/models/field_36_enum.py +192 -0
- fortisapi/models/field_37_enum.py +102 -0
- fortisapi/models/field_39_enum.py +186 -0
- fortisapi/models/field_41_enum.py +237 -0
- fortisapi/models/field_43_enum.py +198 -0
- fortisapi/models/field_45_enum.py +78 -0
- fortisapi/models/field_46_enum.py +126 -0
- fortisapi/models/field_47_enum.py +60 -0
- fortisapi/models/field_49_enum.py +57 -0
- fortisapi/models/field_51_enum.py +210 -0
- fortisapi/models/field_53_enum.py +84 -0
- fortisapi/models/field_55_enum.py +231 -0
- fortisapi/models/field_57_enum.py +75 -0
- fortisapi/models/field_59_enum.py +510 -0
- fortisapi/models/field_configuration.py +202 -0
- fortisapi/models/file.py +412 -0
- fortisapi/models/file_2.py +125 -0
- fortisapi/models/file_5.py +130 -0
- fortisapi/models/filter_by.py +171 -0
- fortisapi/models/footer.py +134 -0
- fortisapi/models/forecast.py +250 -0
- fortisapi/models/format_1_enum.py +47 -0
- fortisapi/models/format_enum.py +47 -0
- fortisapi/models/header.py +134 -0
- fortisapi/models/helppage.py +270 -0
- fortisapi/models/home_phone.py +130 -0
- fortisapi/models/hosted_payment_page.py +558 -0
- fortisapi/models/identity_verification.py +183 -0
- fortisapi/models/identity_verification_2.py +183 -0
- fortisapi/models/identity_verification_27.py +165 -0
- fortisapi/models/idtype_enum.py +47 -0
- fortisapi/models/iias_ind_enum.py +64 -0
- fortisapi/models/industry_type_enum.py +59 -0
- fortisapi/models/initiation_type_enum.py +92 -0
- fortisapi/models/interval_type_enum.py +50 -0
- fortisapi/models/item_list.py +125 -0
- fortisapi/models/item_list_4.py +99 -0
- fortisapi/models/item_list_5.py +130 -0
- fortisapi/models/joi.py +104 -0
- fortisapi/models/joi_18.py +111 -0
- fortisapi/models/joi_19.py +111 -0
- fortisapi/models/joi_27.py +104 -0
- fortisapi/models/joi_4.py +110 -0
- fortisapi/models/kyc_response_object.py +101 -0
- fortisapi/models/level_3_data.py +481 -0
- fortisapi/models/level_3_data_5.py +324 -0
- fortisapi/models/level_3_data_6.py +469 -0
- fortisapi/models/level_3_default.py +481 -0
- fortisapi/models/line_item.py +450 -0
- fortisapi/models/line_item_13.py +449 -0
- fortisapi/models/line_item_19.py +360 -0
- fortisapi/models/line_item_20.py +273 -0
- fortisapi/models/links.py +196 -0
- fortisapi/models/list.py +650 -0
- fortisapi/models/list_1.py +1134 -0
- fortisapi/models/list_10.py +1657 -0
- fortisapi/models/list_11.py +1341 -0
- fortisapi/models/list_12.py +336 -0
- fortisapi/models/list_13.py +731 -0
- fortisapi/models/list_14.py +245 -0
- fortisapi/models/list_15.py +219 -0
- fortisapi/models/list_16.py +1456 -0
- fortisapi/models/list_17.py +376 -0
- fortisapi/models/list_18.py +1681 -0
- fortisapi/models/list_19.py +380 -0
- fortisapi/models/list_20.py +4233 -0
- fortisapi/models/list_3.py +296 -0
- fortisapi/models/list_4.py +469 -0
- fortisapi/models/list_5.py +948 -0
- fortisapi/models/list_6.py +1283 -0
- fortisapi/models/list_8.py +552 -0
- fortisapi/models/list_9.py +920 -0
- fortisapi/models/location.py +756 -0
- fortisapi/models/location_18.py +217 -0
- fortisapi/models/location_5.py +227 -0
- fortisapi/models/location_billing_account.py +509 -0
- fortisapi/models/location_type_26_enum.py +51 -0
- fortisapi/models/location_type_enum.py +50 -0
- fortisapi/models/locationmarketplace.py +247 -0
- fortisapi/models/log_email.py +364 -0
- fortisapi/models/log_sms.py +315 -0
- fortisapi/models/marketplace.py +247 -0
- fortisapi/models/masync.py +128 -0
- fortisapi/models/merchant_list.py +193 -0
- fortisapi/models/merchant_risk_indicator.py +341 -0
- fortisapi/models/message_category_enum.py +119 -0
- fortisapi/models/message_extension.py +177 -0
- fortisapi/models/meta.py +107 -0
- fortisapi/models/method_3.py +147 -0
- fortisapi/models/method_50.py +145 -0
- fortisapi/models/method_53_enum.py +56 -0
- fortisapi/models/method_5_enum.py +56 -0
- fortisapi/models/method_enum.py +56 -0
- fortisapi/models/mobile_phone.py +130 -0
- fortisapi/models/modified_user.py +1197 -0
- fortisapi/models/multi_transaction.py +147 -0
- fortisapi/models/operator_1_enum.py +59 -0
- fortisapi/models/operator_enum.py +47 -0
- fortisapi/models/order_21.py +99 -0
- fortisapi/models/order_enum.py +47 -0
- fortisapi/models/owner.py +322 -0
- fortisapi/models/ownership_type_enum.py +71 -0
- fortisapi/models/page.py +132 -0
- fortisapi/models/pagination.py +196 -0
- fortisapi/models/parent.py +822 -0
- fortisapi/models/parent_3.py +756 -0
- fortisapi/models/partner_enum.py +71 -0
- fortisapi/models/paylink_action_enum.py +47 -0
- fortisapi/models/payment_acc_ind_enum.py +67 -0
- fortisapi/models/payment_method_16_enum.py +47 -0
- fortisapi/models/payment_method_1_enum.py +47 -0
- fortisapi/models/payment_method_9_enum.py +50 -0
- fortisapi/models/payment_method_enum.py +50 -0
- fortisapi/models/payment_recurring_notification.py +251 -0
- fortisapi/models/payment_type_priority_enum.py +47 -0
- fortisapi/models/postback_log.py +295 -0
- fortisapi/models/postback_status_id_enum.py +53 -0
- fortisapi/models/pre_order_purchase_ind_enum.py +52 -0
- fortisapi/models/preferred_language_enum.py +51 -0
- fortisapi/models/preferred_protocol_version_enum.py +65 -0
- fortisapi/models/pricing_element.py +147 -0
- fortisapi/models/primary_principal.py +396 -0
- fortisapi/models/primary_principal_1.py +376 -0
- fortisapi/models/process_method_enum.py +47 -0
- fortisapi/models/processor_enum.py +59 -0
- fortisapi/models/product_accountvault.py +317 -0
- fortisapi/models/product_file.py +416 -0
- fortisapi/models/product_file_1.py +414 -0
- fortisapi/models/product_invoice.py +651 -0
- fortisapi/models/product_recurring.py +387 -0
- fortisapi/models/product_token.py +317 -0
- fortisapi/models/product_transaction.py +3048 -0
- fortisapi/models/product_transaction_1.py +3046 -0
- fortisapi/models/purchase.py +501 -0
- fortisapi/models/quick_invoice.py +1256 -0
- fortisapi/models/quick_invoice_setting.py +299 -0
- fortisapi/models/quick_invoice_view.py +176 -0
- fortisapi/models/reason_code.py +131 -0
- fortisapi/models/reason_code_id_1_enum.py +935 -0
- fortisapi/models/reason_code_id_enum.py +578 -0
- fortisapi/models/reason_model_enum.py +74 -0
- fortisapi/models/received_email.py +364 -0
- fortisapi/models/recipients_enum.py +62 -0
- fortisapi/models/recurring.py +975 -0
- fortisapi/models/recurring_3.py +977 -0
- fortisapi/models/recurring_flag_enum.py +64 -0
- fortisapi/models/recurring_split.py +200 -0
- fortisapi/models/recurring_type_id_enum.py +47 -0
- fortisapi/models/registration_field_enum.py +87 -0
- fortisapi/models/rejected_transaction.py +3198 -0
- fortisapi/models/rejected_transaction_ach_retry.py +244 -0
- fortisapi/models/relationship_enum.py +50 -0
- fortisapi/models/reorder_items_ind_enum.py +51 -0
- fortisapi/models/report_export_type_enum.py +53 -0
- fortisapi/models/resource_12_enum.py +52 -0
- fortisapi/models/resource_2_enum.py +50 -0
- fortisapi/models/resource_enum.py +55 -0
- fortisapi/models/response_416_date_range.py +148 -0
- fortisapi/models/response_417_filter_channels.py +148 -0
- fortisapi/models/response_apple_pay_validate_merchant.py +126 -0
- fortisapi/models/response_async_status.py +126 -0
- fortisapi/models/response_batchs_collection.py +228 -0
- fortisapi/models/response_calculate_surcharge.py +126 -0
- fortisapi/models/response_contact.py +126 -0
- fortisapi/models/response_contact_searchs_collection.py +228 -0
- fortisapi/models/response_contacts_collection.py +228 -0
- fortisapi/models/response_declined_recurring_transaction.py +126 -0
- fortisapi/models/response_declined_recurring_transaction_payment.py +126 -0
- fortisapi/models/response_declined_recurring_transaction_resend.py +126 -0
- fortisapi/models/response_declined_recurring_transactions_collection.py +228 -0
- fortisapi/models/response_device_term.py +126 -0
- fortisapi/models/response_device_terms_collection.py +228 -0
- fortisapi/models/response_fullboarding.py +126 -0
- fortisapi/models/response_location.py +126 -0
- fortisapi/models/response_location_info.py +126 -0
- fortisapi/models/response_location_infos_collection.py +228 -0
- fortisapi/models/response_location_searchs_collection.py +228 -0
- fortisapi/models/response_locations_collection.py +228 -0
- fortisapi/models/response_merchant.py +126 -0
- fortisapi/models/response_merchant_deposit.py +126 -0
- fortisapi/models/response_merchant_deposits_collection.py +228 -0
- fortisapi/models/response_merchant_details.py +126 -0
- fortisapi/models/response_onboarding.py +126 -0
- fortisapi/models/response_paylink.py +126 -0
- fortisapi/models/response_paylinks_collection.py +228 -0
- fortisapi/models/response_payment_card_reader_token.py +126 -0
- fortisapi/models/response_quick_invoice.py +126 -0
- fortisapi/models/response_quick_invoice_resend.py +126 -0
- fortisapi/models/response_quick_invoices_collection.py +228 -0
- fortisapi/models/response_recurring.py +126 -0
- fortisapi/models/response_recurrings_collection.py +228 -0
- fortisapi/models/response_reporting_reports_cc_settled_transactions_collection.py +231 -0
- fortisapi/models/response_reporting_reports_chargebacks_collection.py +228 -0
- fortisapi/models/response_signature.py +126 -0
- fortisapi/models/response_signatures_collection.py +228 -0
- fortisapi/models/response_tag.py +126 -0
- fortisapi/models/response_tags_collection.py +228 -0
- fortisapi/models/response_terminal.py +126 -0
- fortisapi/models/response_terminals_collection.py +228 -0
- fortisapi/models/response_three_ds_authentication.py +126 -0
- fortisapi/models/response_three_ds_transaction.py +126 -0
- fortisapi/models/response_ticket.py +126 -0
- fortisapi/models/response_ticket_intention.py +126 -0
- fortisapi/models/response_tickets_collection.py +228 -0
- fortisapi/models/response_token.py +126 -0
- fortisapi/models/response_tokens_collection.py +228 -0
- fortisapi/models/response_transaction.py +126 -0
- fortisapi/models/response_transaction_ach_retry.py +126 -0
- fortisapi/models/response_transaction_ach_retrys_collection.py +228 -0
- fortisapi/models/response_transaction_bin_info.py +126 -0
- fortisapi/models/response_transaction_intention.py +126 -0
- fortisapi/models/response_transaction_level_3.py +126 -0
- fortisapi/models/response_transaction_level_3_master.py +126 -0
- fortisapi/models/response_transaction_level_3_visa.py +126 -0
- fortisapi/models/response_transaction_processing.py +126 -0
- fortisapi/models/response_transactions_collection.py +228 -0
- fortisapi/models/response_webhook.py +126 -0
- fortisapi/models/result.py +152 -0
- fortisapi/models/retry_transaction.py +3198 -0
- fortisapi/models/retry_transaction_ach_retry.py +246 -0
- fortisapi/models/return_fee_transaction.py +3198 -0
- fortisapi/models/return_fee_transaction_ach_retry.py +246 -0
- fortisapi/models/saved_account.py +1408 -0
- fortisapi/models/scheme_id_enum.py +54 -0
- fortisapi/models/sec_code_enum.py +51 -0
- fortisapi/models/settings.py +148 -0
- fortisapi/models/settled_currency_enum.py +168 -0
- fortisapi/models/severity_enum.py +62 -0
- fortisapi/models/ship_address_usage_ind_enum.py +62 -0
- fortisapi/models/ship_indicator_enum.py +101 -0
- fortisapi/models/ship_name_indicator_enum.py +52 -0
- fortisapi/models/shipping_address.py +264 -0
- fortisapi/models/signature.py +220 -0
- fortisapi/models/sms_blacklist.py +178 -0
- fortisapi/models/sms_enum.py +47 -0
- fortisapi/models/sort.py +132 -0
- fortisapi/models/source_enum.py +56 -0
- fortisapi/models/stack_enum.py +47 -0
- fortisapi/models/status_11.py +131 -0
- fortisapi/models/status_3_enum.py +47 -0
- fortisapi/models/status_5.py +102 -0
- fortisapi/models/status_code_12_enum.py +47 -0
- fortisapi/models/status_code_17_enum.py +102 -0
- fortisapi/models/status_code_enum.py +50 -0
- fortisapi/models/status_enum.py +50 -0
- fortisapi/models/status_id_enum.py +47 -0
- fortisapi/models/surcharge.py +574 -0
- fortisapi/models/surcharge_transaction.py +367 -0
- fortisapi/models/suspicious_acc_activity_enum.py +52 -0
- fortisapi/models/tag.py +194 -0
- fortisapi/models/tag_transaction.py +319 -0
- fortisapi/models/tax_exempt_enum.py +61 -0
- fortisapi/models/tax_surcharge_config_enum.py +47 -0
- fortisapi/models/terminal.py +1245 -0
- fortisapi/models/terminal_2.py +1243 -0
- fortisapi/models/terminal_application.py +411 -0
- fortisapi/models/terminal_cvm.py +293 -0
- fortisapi/models/terminal_manufacturer.py +249 -0
- fortisapi/models/terminal_manufacturer_code_enum.py +55 -0
- fortisapi/models/terminal_router.py +245 -0
- fortisapi/models/terminal_timeouts.py +304 -0
- fortisapi/models/terminal_timeouts_12.py +314 -0
- fortisapi/models/three_ds_req_auth_method_enum.py +154 -0
- fortisapi/models/three_ds_req_prior_auth_method_enum.py +123 -0
- fortisapi/models/three_ds_requestor.py +345 -0
- fortisapi/models/three_ds_requestor_authentication_ind_enum.py +141 -0
- fortisapi/models/three_ds_requestor_authentication_info.py +179 -0
- fortisapi/models/three_ds_requestor_challenge_ind_enum.py +126 -0
- fortisapi/models/three_ds_requestor_dec_req_ind_enum.py +72 -0
- fortisapi/models/three_ds_requestor_prior_authentication_info.py +188 -0
- fortisapi/models/three_ds_requestor_spc_support_enum.py +49 -0
- fortisapi/models/three_ri_ind_enum.py +180 -0
- fortisapi/models/tip_percents.py +160 -0
- fortisapi/models/trans_char_enum.py +45 -0
- fortisapi/models/transaction.py +3196 -0
- fortisapi/models/transaction_batch.py +537 -0
- fortisapi/models/transaction_batch_settlement.py +202 -0
- fortisapi/models/transaction_history.py +246 -0
- fortisapi/models/transaction_level_3.py +152 -0
- fortisapi/models/transaction_reference.py +298 -0
- fortisapi/models/transaction_split.py +221 -0
- fortisapi/models/transaction_status_enum.py +88 -0
- fortisapi/models/transaction_type_enum.py +68 -0
- fortisapi/models/trx_source_code_enum.py +155 -0
- fortisapi/models/trx_source_id_enum.py +155 -0
- fortisapi/models/type_103_enum.py +44 -0
- fortisapi/models/type_105_enum.py +44 -0
- fortisapi/models/type_10_enum.py +44 -0
- fortisapi/models/type_110_enum.py +44 -0
- fortisapi/models/type_114_enum.py +44 -0
- fortisapi/models/type_11_enum.py +44 -0
- fortisapi/models/type_121_enum.py +44 -0
- fortisapi/models/type_123.py +131 -0
- fortisapi/models/type_124_enum.py +44 -0
- fortisapi/models/type_125_enum.py +44 -0
- fortisapi/models/type_126_enum.py +44 -0
- fortisapi/models/type_127_enum.py +44 -0
- fortisapi/models/type_128_enum.py +44 -0
- fortisapi/models/type_134_enum.py +44 -0
- fortisapi/models/type_135_enum.py +44 -0
- fortisapi/models/type_136_enum.py +44 -0
- fortisapi/models/type_15_enum.py +44 -0
- fortisapi/models/type_16_enum.py +44 -0
- fortisapi/models/type_1_enum.py +44 -0
- fortisapi/models/type_20_enum.py +44 -0
- fortisapi/models/type_21_enum.py +44 -0
- fortisapi/models/type_22_enum.py +44 -0
- fortisapi/models/type_23_enum.py +44 -0
- fortisapi/models/type_27_enum.py +44 -0
- fortisapi/models/type_28_enum.py +44 -0
- fortisapi/models/type_29_enum.py +64 -0
- fortisapi/models/type_2_enum.py +44 -0
- fortisapi/models/type_30_enum.py +44 -0
- fortisapi/models/type_31_enum.py +44 -0
- fortisapi/models/type_35_enum.py +44 -0
- fortisapi/models/type_39_enum.py +44 -0
- fortisapi/models/type_3_enum.py +44 -0
- fortisapi/models/type_43_enum.py +44 -0
- fortisapi/models/type_44_enum.py +44 -0
- fortisapi/models/type_45_enum.py +44 -0
- fortisapi/models/type_46_enum.py +44 -0
- fortisapi/models/type_47_enum.py +44 -0
- fortisapi/models/type_48_enum.py +44 -0
- fortisapi/models/type_4_enum.py +44 -0
- fortisapi/models/type_52_enum.py +44 -0
- fortisapi/models/type_53_enum.py +44 -0
- fortisapi/models/type_54_enum.py +44 -0
- fortisapi/models/type_55_enum.py +44 -0
- fortisapi/models/type_59_enum.py +44 -0
- fortisapi/models/type_5_enum.py +44 -0
- fortisapi/models/type_60_enum.py +44 -0
- fortisapi/models/type_61_enum.py +45 -0
- fortisapi/models/type_62_enum.py +44 -0
- fortisapi/models/type_63_enum.py +91 -0
- fortisapi/models/type_64_enum.py +44 -0
- fortisapi/models/type_65_enum.py +44 -0
- fortisapi/models/type_6_enum.py +44 -0
- fortisapi/models/type_70_enum.py +44 -0
- fortisapi/models/type_71_enum.py +44 -0
- fortisapi/models/type_75_enum.py +44 -0
- fortisapi/models/type_79_enum.py +44 -0
- fortisapi/models/type_83_enum.py +44 -0
- fortisapi/models/type_84_enum.py +44 -0
- fortisapi/models/type_88_enum.py +44 -0
- fortisapi/models/type_89_enum.py +44 -0
- fortisapi/models/type_93_enum.py +44 -0
- fortisapi/models/type_94_enum.py +44 -0
- fortisapi/models/type_98_enum.py +44 -0
- fortisapi/models/type_99_enum.py +44 -0
- fortisapi/models/type_enum.py +44 -0
- fortisapi/models/type_id_enum.py +59 -0
- fortisapi/models/ui_prefs.py +204 -0
- fortisapi/models/update_if_exists_enum.py +44 -0
- fortisapi/models/user.py +180 -0
- fortisapi/models/user_1.py +1197 -0
- fortisapi/models/user_9.py +1195 -0
- fortisapi/models/user_type_code_enum.py +74 -0
- fortisapi/models/v_1_contacts_request.py +685 -0
- fortisapi/models/v_1_contacts_request_1.py +707 -0
- fortisapi/models/v_1_declined_recurring_transaction_payments_request.py +354 -0
- fortisapi/models/v_1_device_terms_request.py +161 -0
- fortisapi/models/v_1_elements_ticket_intention_request.py +195 -0
- fortisapi/models/v_1_elements_transaction_intention_request.py +591 -0
- fortisapi/models/v_1_fullboarding_request.py +827 -0
- fortisapi/models/v_1_merchant_threedsecure_authentication_request.py +696 -0
- fortisapi/models/v_1_onboarding_request.py +833 -0
- fortisapi/models/v_1_paylinks_request.py +723 -0
- fortisapi/models/v_1_paylinks_request_1.py +735 -0
- fortisapi/models/v_1_public_calculate_surcharge_request.py +527 -0
- fortisapi/models/v_1_quick_invoices_request.py +1035 -0
- fortisapi/models/v_1_quick_invoices_request_1.py +1070 -0
- fortisapi/models/v_1_quick_invoices_transaction_request.py +86 -0
- fortisapi/models/v_1_recurrings_defer_payment_request.py +86 -0
- fortisapi/models/v_1_recurrings_request.py +742 -0
- fortisapi/models/v_1_recurrings_request_1.py +750 -0
- fortisapi/models/v_1_recurrings_skip_payment_request.py +86 -0
- fortisapi/models/v_1_signatures_request.py +113 -0
- fortisapi/models/v_1_tags_request.py +99 -0
- fortisapi/models/v_1_tags_request_1.py +130 -0
- fortisapi/models/v_1_terminals_request.py +1005 -0
- fortisapi/models/v_1_terminals_request_1.py +1112 -0
- fortisapi/models/v_1_tickets_request.py +286 -0
- fortisapi/models/v_1_tokens_ach_request.py +945 -0
- fortisapi/models/v_1_tokens_ach_request_1.py +907 -0
- fortisapi/models/v_1_tokens_cc_request.py +1071 -0
- fortisapi/models/v_1_tokens_cc_request_1.py +905 -0
- fortisapi/models/v_1_tokens_previous_transaction_request.py +858 -0
- fortisapi/models/v_1_tokens_terminal_async_request.py +889 -0
- fortisapi/models/v_1_tokens_terminal_request.py +889 -0
- fortisapi/models/v_1_tokens_ticket_request.py +882 -0
- fortisapi/models/v_1_tokens_wallet_request.py +919 -0
- fortisapi/models/v_1_transaction_ach_retries_request.py +119 -0
- fortisapi/models/v_1_transactions_ach_credit_keyed_request.py +1600 -0
- fortisapi/models/v_1_transactions_ach_credit_prev_trxn_request.py +1616 -0
- fortisapi/models/v_1_transactions_ach_credit_token_request.py +1660 -0
- fortisapi/models/v_1_transactions_ach_debit_keyed_request.py +1600 -0
- fortisapi/models/v_1_transactions_ach_debit_prev_trxn_request.py +1616 -0
- fortisapi/models/v_1_transactions_ach_debit_token_request.py +1660 -0
- fortisapi/models/v_1_transactions_ach_refund_prev_trxn_request.py +1616 -0
- fortisapi/models/v_1_transactions_auth_complete_request.py +1519 -0
- fortisapi/models/v_1_transactions_auth_increment_request.py +1533 -0
- fortisapi/models/v_1_transactions_cash_refund_request.py +1515 -0
- fortisapi/models/v_1_transactions_cash_sale_request.py +1489 -0
- fortisapi/models/v_1_transactions_cc_auth_only_keyed_request.py +2164 -0
- fortisapi/models/v_1_transactions_cc_auth_only_prev_trxn_request.py +2124 -0
- fortisapi/models/v_1_transactions_cc_auth_only_taptopay_request.py +1843 -0
- fortisapi/models/v_1_transactions_cc_auth_only_terminal_request.py +2082 -0
- fortisapi/models/v_1_transactions_cc_auth_only_ticket_request.py +2050 -0
- fortisapi/models/v_1_transactions_cc_auth_only_token_request.py +2129 -0
- fortisapi/models/v_1_transactions_cc_auth_only_wallet_request.py +2062 -0
- fortisapi/models/v_1_transactions_cc_avs_only_keyed_request.py +2175 -0
- fortisapi/models/v_1_transactions_cc_avs_only_prev_trxn_request.py +2124 -0
- fortisapi/models/v_1_transactions_cc_avs_only_swiped_request.py +2086 -0
- fortisapi/models/v_1_transactions_cc_avs_only_terminal_request.py +2093 -0
- fortisapi/models/v_1_transactions_cc_avs_only_ticket_request.py +2061 -0
- fortisapi/models/v_1_transactions_cc_avs_only_token_request.py +2140 -0
- fortisapi/models/v_1_transactions_cc_avs_only_wallet_request.py +2073 -0
- fortisapi/models/v_1_transactions_cc_balance_inquiry_keyed_request.py +2176 -0
- fortisapi/models/v_1_transactions_cc_balance_inquiry_prev_trxn_request.py +2125 -0
- fortisapi/models/v_1_transactions_cc_balance_inquiry_swiped_request.py +2087 -0
- fortisapi/models/v_1_transactions_cc_balance_inquiry_terminal_request.py +2094 -0
- fortisapi/models/v_1_transactions_cc_balance_inquiry_ticket_request.py +2062 -0
- fortisapi/models/v_1_transactions_cc_balance_inquiry_token_request.py +2141 -0
- fortisapi/models/v_1_transactions_cc_balance_inquiry_wallet_request.py +2074 -0
- fortisapi/models/v_1_transactions_cc_refund_keyed_request.py +2218 -0
- fortisapi/models/v_1_transactions_cc_refund_prev_trxn_request.py +2124 -0
- fortisapi/models/v_1_transactions_cc_refund_taptopay_request.py +1869 -0
- fortisapi/models/v_1_transactions_cc_refund_terminal_request.py +2082 -0
- fortisapi/models/v_1_transactions_cc_refund_ticket_request.py +2050 -0
- fortisapi/models/v_1_transactions_cc_refund_token_request.py +2129 -0
- fortisapi/models/v_1_transactions_cc_refund_wallet_request.py +2062 -0
- fortisapi/models/v_1_transactions_cc_sale_keyed_request.py +2164 -0
- fortisapi/models/v_1_transactions_cc_sale_prev_trxn_request.py +2124 -0
- fortisapi/models/v_1_transactions_cc_sale_taptopay_request.py +1843 -0
- fortisapi/models/v_1_transactions_cc_sale_terminal_request.py +2082 -0
- fortisapi/models/v_1_transactions_cc_sale_ticket_request.py +2050 -0
- fortisapi/models/v_1_transactions_cc_sale_token_request.py +2129 -0
- fortisapi/models/v_1_transactions_cc_sale_wallet_request.py +2062 -0
- fortisapi/models/v_1_transactions_ebt_voucher_clear_refund_keyed_request.py +2190 -0
- fortisapi/models/v_1_transactions_ebt_voucher_clear_sale_keyed_request.py +2190 -0
- fortisapi/models/v_1_transactions_level_3_master_card_request.py +91 -0
- fortisapi/models/v_1_transactions_level_3_visa_request.py +91 -0
- fortisapi/models/v_1_transactions_partial_reversal_request.py +1462 -0
- fortisapi/models/v_1_transactions_refund_request.py +1448 -0
- fortisapi/models/v_1_transactions_tip_adjust_request.py +1973 -0
- fortisapi/models/v_1_transactions_void_request.py +130 -0
- fortisapi/models/v_1_wallet_provider_apple_pay_validate_merchant_request.py +127 -0
- fortisapi/models/v_1_wallet_provider_merchant_details_request.py +87 -0
- fortisapi/models/v_1_webhooks_apm_onboarding_request.py +421 -0
- fortisapi/models/v_1_webhooks_apm_onboarding_request_1.py +494 -0
- fortisapi/models/v_1_webhooks_batch_request.py +410 -0
- fortisapi/models/v_1_webhooks_batch_request_1.py +494 -0
- fortisapi/models/v_1_webhooks_contact_request.py +421 -0
- fortisapi/models/v_1_webhooks_contact_request_1.py +494 -0
- fortisapi/models/v_1_webhooks_transaction_request.py +410 -0
- fortisapi/models/v_1_webhooks_transaction_request_1.py +494 -0
- fortisapi/models/values_4_enum.py +59 -0
- fortisapi/models/values_50_enum.py +59 -0
- fortisapi/models/values_51_enum.py +62 -0
- fortisapi/models/values_58_enum.py +59 -0
- fortisapi/models/values_5_enum.py +59 -0
- fortisapi/models/values_6_enum.py +59 -0
- fortisapi/models/values_7_enum.py +59 -0
- fortisapi/models/values_99_enum.py +45 -0
- fortisapi/models/values_enum.py +51 -0
- fortisapi/models/wallet_provider_enum.py +47 -0
- fortisapi/models/wallet_type_enum.py +86 -0
- fortisapi/models/work_phone.py +130 -0
- fortisapi/utilities/__init__.py +6 -0
- fortisapi/utilities/file_wrapper.py +45 -0
- fortisapi/utilities/union_type_lookup.py +436 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
"""fortisapi.
|
|
2
|
+
|
|
3
|
+
This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: D410, E501, E101, D206
|
|
7
|
+
from apimatic_core.authentication.multiple.and_auth_group import (
|
|
8
|
+
And,
|
|
9
|
+
)
|
|
10
|
+
from apimatic_core.authentication.multiple.single_auth import (
|
|
11
|
+
Single,
|
|
12
|
+
)
|
|
13
|
+
from apimatic_core.request_builder import RequestBuilder
|
|
14
|
+
from apimatic_core.response_handler import ResponseHandler
|
|
15
|
+
from apimatic_core.types.parameter import Parameter
|
|
16
|
+
|
|
17
|
+
from fortisapi.api_helper import APIHelper
|
|
18
|
+
from fortisapi.configuration import Server
|
|
19
|
+
from fortisapi.controllers.base_controller import (
|
|
20
|
+
BaseController,
|
|
21
|
+
)
|
|
22
|
+
from fortisapi.exceptions.response_401_token_exception import (
|
|
23
|
+
Response401tokenException,
|
|
24
|
+
)
|
|
25
|
+
from fortisapi.exceptions.response_412_exception import (
|
|
26
|
+
Response412Exception,
|
|
27
|
+
)
|
|
28
|
+
from fortisapi.http.http_method_enum import (
|
|
29
|
+
HttpMethodEnum,
|
|
30
|
+
)
|
|
31
|
+
from fortisapi.models.response_transaction_ach_retry import (
|
|
32
|
+
ResponseTransactionAchRetry,
|
|
33
|
+
)
|
|
34
|
+
from fortisapi.models.response_transaction_ach_retrys_collection import (
|
|
35
|
+
ResponseTransactionAchRetrysCollection,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class TransactionACHRetriesController(BaseController):
|
|
40
|
+
"""A Controller to access Endpoints in the fortisapi API."""
|
|
41
|
+
|
|
42
|
+
def __init__(self, config):
|
|
43
|
+
"""Initialize TransactionACHRetriesController object."""
|
|
44
|
+
super(TransactionACHRetriesController, self).__init__(config)
|
|
45
|
+
|
|
46
|
+
def create_a_transaction_ach_retry(self,
|
|
47
|
+
body,
|
|
48
|
+
expand=None):
|
|
49
|
+
"""Perform a POST request to /v1/transaction-ach-retries.
|
|
50
|
+
|
|
51
|
+
Args:
|
|
52
|
+
body (V1TransactionAchRetriesRequest): The request body parameter.
|
|
53
|
+
expand (List[Expand57Enum], optional): Most endpoints in the API have a
|
|
54
|
+
way to retrieve extra data related to the current record being
|
|
55
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
56
|
+
endpoint, and the end user also needs to know which contact the token
|
|
57
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
58
|
+
request.
|
|
59
|
+
|
|
60
|
+
Returns:
|
|
61
|
+
ResponseTransactionAchRetry: Response from the API. Created
|
|
62
|
+
|
|
63
|
+
Raises:
|
|
64
|
+
APIException: When an error occurs while fetching the data from the
|
|
65
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
66
|
+
message, and the HTTP body that was received in the request.
|
|
67
|
+
|
|
68
|
+
"""
|
|
69
|
+
return super().new_api_call_builder.request(
|
|
70
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
71
|
+
.path("/v1/transaction-ach-retries")
|
|
72
|
+
.http_method(HttpMethodEnum.POST)
|
|
73
|
+
.header_param(Parameter()
|
|
74
|
+
.key("Content-Type")
|
|
75
|
+
.value("application/json"))
|
|
76
|
+
.body_param(Parameter()
|
|
77
|
+
.value(body))
|
|
78
|
+
.query_param(Parameter()
|
|
79
|
+
.key("expand")
|
|
80
|
+
.value(expand))
|
|
81
|
+
.header_param(Parameter()
|
|
82
|
+
.key("accept")
|
|
83
|
+
.value("application/json"))
|
|
84
|
+
.body_serializer(APIHelper.json_serialize)
|
|
85
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
86
|
+
Single("developer-id"))),
|
|
87
|
+
).response(
|
|
88
|
+
ResponseHandler()
|
|
89
|
+
.deserializer(APIHelper.json_deserialize)
|
|
90
|
+
.deserialize_into(ResponseTransactionAchRetry.from_dictionary)
|
|
91
|
+
.local_error("401", "Unauthorized", Response401tokenException)
|
|
92
|
+
.local_error("412", "Precondition Failed", Response412Exception),
|
|
93
|
+
).execute()
|
|
94
|
+
|
|
95
|
+
def list_all_transaction_ach_retries_related(self,
|
|
96
|
+
page=None,
|
|
97
|
+
order=None,
|
|
98
|
+
filter_by=None,
|
|
99
|
+
expand=None,
|
|
100
|
+
format=None,
|
|
101
|
+
typeahead=None,
|
|
102
|
+
fields=None,
|
|
103
|
+
export_refunds_negative=None):
|
|
104
|
+
"""Perform a GET request to /v1/transaction-ach-retries.
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
page (Page, optional): Use this field to specify paginate your results,
|
|
108
|
+
by using page size and number. You can use one of the following
|
|
109
|
+
methods: >/endpoint?page={ "number": 1, "size": 50 } >
|
|
110
|
+
>/endpoint?page[number]=1&page[size]=50 >
|
|
111
|
+
order (List[Order21], optional): Criteria used in query string parameters
|
|
112
|
+
to order results. Most fields from the endpoint results can be used
|
|
113
|
+
as a `key`. Unsupported fields or operators will return a `412`.
|
|
114
|
+
Must be encoded, or use syntax that does not require encoding.
|
|
115
|
+
>/endpoint?order[0][key]=created_ts&order[0][operator]=asc >
|
|
116
|
+
>/endpoint?order=[{ "key": "created_ts", "operator": "asc"}] >
|
|
117
|
+
>/endpoint?order=[{ "key": "balance", "operator": "desc"},{ "key":
|
|
118
|
+
"created_ts", "operator": "asc"}] >
|
|
119
|
+
filter_by (List[FilterBy], optional): Filter criteria that can be used in
|
|
120
|
+
query string parameters. Most fields from the endpoint results can
|
|
121
|
+
be used as a `key`. Unsupported fields or operators will return a
|
|
122
|
+
`412`. Must be encoded, or use syntax that does not require encoding.
|
|
123
|
+
>?filter_by[0][key]=first_name&filter_by[0][operator]==&filter_by[0][v
|
|
124
|
+
alue]=Steve > >/endpoint?filter_by=[{ "key": "first_name",
|
|
125
|
+
"operator": "=", "value": "Fred" }] > >/endpoint?filter_by=[{ "key":
|
|
126
|
+
"account_type", "operator": "=", "value": "VISA" }] >
|
|
127
|
+
>/endpoint?filter_by=[{ "key": "created_ts", "operator": ">=",
|
|
128
|
+
"value": "946702799" }, { "key": "created_ts", "operator": "<=",
|
|
129
|
+
value: "1695061891" }] > >/endpoint?filter_by=[{ "key": "last_name",
|
|
130
|
+
"operator": "IN", "value": "Williams,Brown,Allman" }] >
|
|
131
|
+
expand (List[Expand57Enum], optional): Most endpoints in the API have a
|
|
132
|
+
way to retrieve extra data related to the current record being
|
|
133
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
134
|
+
endpoint, and the end user also needs to know which contact the token
|
|
135
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
136
|
+
request.
|
|
137
|
+
format (Format1Enum, optional): Reporting format, valid values: csv, tsv
|
|
138
|
+
typeahead (str, optional): You can use any `field_name` from this
|
|
139
|
+
endpoint results to order the list using the value provided as filter
|
|
140
|
+
for the same `field_name`. It will be ordered using the following
|
|
141
|
+
rules: 1) Exact match, 2) Starts with, 3) Contains.
|
|
142
|
+
>/endpoint?filter={ "field_name": "Value" }&_typeahead=field_name >
|
|
143
|
+
fields (List[Field57Enum], optional): You can use any `field_name` from
|
|
144
|
+
this endpoint results to filter the list of fields returned on the
|
|
145
|
+
response.
|
|
146
|
+
export_refunds_negative (bool, optional): When true, converts refund
|
|
147
|
+
amounts to negative values for export formats
|
|
148
|
+
|
|
149
|
+
Returns:
|
|
150
|
+
ResponseTransactionAchRetrysCollection: Response from the API. OK
|
|
151
|
+
|
|
152
|
+
Raises:
|
|
153
|
+
APIException: When an error occurs while fetching the data from the
|
|
154
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
155
|
+
message, and the HTTP body that was received in the request.
|
|
156
|
+
|
|
157
|
+
"""
|
|
158
|
+
return super().new_api_call_builder.request(
|
|
159
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
160
|
+
.path("/v1/transaction-ach-retries")
|
|
161
|
+
.http_method(HttpMethodEnum.GET)
|
|
162
|
+
.query_param(Parameter()
|
|
163
|
+
.key("page")
|
|
164
|
+
.value(page))
|
|
165
|
+
.query_param(Parameter()
|
|
166
|
+
.key("order")
|
|
167
|
+
.value(order))
|
|
168
|
+
.query_param(Parameter()
|
|
169
|
+
.key("filter_by")
|
|
170
|
+
.value(filter_by))
|
|
171
|
+
.query_param(Parameter()
|
|
172
|
+
.key("expand")
|
|
173
|
+
.value(expand))
|
|
174
|
+
.query_param(Parameter()
|
|
175
|
+
.key("_format")
|
|
176
|
+
.value(format))
|
|
177
|
+
.query_param(Parameter()
|
|
178
|
+
.key("_typeahead")
|
|
179
|
+
.value(typeahead))
|
|
180
|
+
.query_param(Parameter()
|
|
181
|
+
.key("fields")
|
|
182
|
+
.value(fields))
|
|
183
|
+
.query_param(Parameter()
|
|
184
|
+
.key("export_refunds_negative")
|
|
185
|
+
.value(export_refunds_negative))
|
|
186
|
+
.header_param(Parameter()
|
|
187
|
+
.key("accept")
|
|
188
|
+
.value("application/json"))
|
|
189
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
190
|
+
Single("developer-id"))),
|
|
191
|
+
).response(
|
|
192
|
+
ResponseHandler()
|
|
193
|
+
.deserializer(APIHelper.json_deserialize)
|
|
194
|
+
.deserialize_into(ResponseTransactionAchRetrysCollection.from_dictionary)
|
|
195
|
+
.local_error("401", "Unauthorized", Response401tokenException),
|
|
196
|
+
).execute()
|
|
197
|
+
|
|
198
|
+
def view_single_transaction_ach_retry_record(self,
|
|
199
|
+
transaction_ach_retry_id,
|
|
200
|
+
expand=None,
|
|
201
|
+
fields=None):
|
|
202
|
+
"""Perform a GET request to
|
|
203
|
+
/v1/transaction-ach-retries/{transaction_ach_retry_id}.
|
|
204
|
+
|
|
205
|
+
Args:
|
|
206
|
+
transaction_ach_retry_id (str): Transaction ACH Retry ID.
|
|
207
|
+
expand (List[Expand57Enum], optional): Most endpoints in the API have a
|
|
208
|
+
way to retrieve extra data related to the current record being
|
|
209
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
210
|
+
endpoint, and the end user also needs to know which contact the token
|
|
211
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
212
|
+
request.
|
|
213
|
+
fields (List[Field57Enum], optional): You can use any `field_name` from
|
|
214
|
+
this endpoint results to filter the list of fields returned on the
|
|
215
|
+
response.
|
|
216
|
+
|
|
217
|
+
Returns:
|
|
218
|
+
ResponseTransactionAchRetry: Response from the API. OK
|
|
219
|
+
|
|
220
|
+
Raises:
|
|
221
|
+
APIException: When an error occurs while fetching the data from the
|
|
222
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
223
|
+
message, and the HTTP body that was received in the request.
|
|
224
|
+
|
|
225
|
+
"""
|
|
226
|
+
return super().new_api_call_builder.request(
|
|
227
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
228
|
+
.path("/v1/transaction-ach-retries/{transaction_ach_retry_id}")
|
|
229
|
+
.http_method(HttpMethodEnum.GET)
|
|
230
|
+
.template_param(Parameter()
|
|
231
|
+
.key("transaction_ach_retry_id")
|
|
232
|
+
.value(transaction_ach_retry_id)
|
|
233
|
+
.should_encode(True))
|
|
234
|
+
.query_param(Parameter()
|
|
235
|
+
.key("expand")
|
|
236
|
+
.value(expand))
|
|
237
|
+
.query_param(Parameter()
|
|
238
|
+
.key("fields")
|
|
239
|
+
.value(fields))
|
|
240
|
+
.header_param(Parameter()
|
|
241
|
+
.key("accept")
|
|
242
|
+
.value("application/json"))
|
|
243
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
244
|
+
Single("developer-id"))),
|
|
245
|
+
).response(
|
|
246
|
+
ResponseHandler()
|
|
247
|
+
.deserializer(APIHelper.json_deserialize)
|
|
248
|
+
.deserialize_into(ResponseTransactionAchRetry.from_dictionary)
|
|
249
|
+
.local_error("401", "Unauthorized", Response401tokenException),
|
|
250
|
+
).execute()
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
"""fortisapi.
|
|
2
|
+
|
|
3
|
+
This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: D410, E501, E101, D206
|
|
7
|
+
from apimatic_core.authentication.multiple.and_auth_group import (
|
|
8
|
+
And,
|
|
9
|
+
)
|
|
10
|
+
from apimatic_core.authentication.multiple.single_auth import (
|
|
11
|
+
Single,
|
|
12
|
+
)
|
|
13
|
+
from apimatic_core.request_builder import RequestBuilder
|
|
14
|
+
from apimatic_core.response_handler import ResponseHandler
|
|
15
|
+
from apimatic_core.types.parameter import Parameter
|
|
16
|
+
|
|
17
|
+
from fortisapi.api_helper import APIHelper
|
|
18
|
+
from fortisapi.configuration import Server
|
|
19
|
+
from fortisapi.controllers.base_controller import (
|
|
20
|
+
BaseController,
|
|
21
|
+
)
|
|
22
|
+
from fortisapi.exceptions.response_401_token_exception import (
|
|
23
|
+
Response401tokenException,
|
|
24
|
+
)
|
|
25
|
+
from fortisapi.exceptions.response_412_exception import (
|
|
26
|
+
Response412Exception,
|
|
27
|
+
)
|
|
28
|
+
from fortisapi.http.http_method_enum import (
|
|
29
|
+
HttpMethodEnum,
|
|
30
|
+
)
|
|
31
|
+
from fortisapi.models.response_transaction import (
|
|
32
|
+
ResponseTransaction,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class TransactionsACHController(BaseController):
|
|
37
|
+
"""A Controller to access Endpoints in the fortisapi API."""
|
|
38
|
+
|
|
39
|
+
def __init__(self, config):
|
|
40
|
+
"""Initialize TransactionsACHController object."""
|
|
41
|
+
super(TransactionsACHController, self).__init__(config)
|
|
42
|
+
|
|
43
|
+
def ach_credit(self,
|
|
44
|
+
body,
|
|
45
|
+
expand=None):
|
|
46
|
+
"""Perform a POST request to /v1/transactions/ach/credit/keyed.
|
|
47
|
+
|
|
48
|
+
Create a new keyed ACH credit transaction
|
|
49
|
+
|
|
50
|
+
Args:
|
|
51
|
+
body (V1TransactionsAchCreditKeyedRequest): The request body parameter.
|
|
52
|
+
expand (List[Expand60Enum], optional): Most endpoints in the API have a
|
|
53
|
+
way to retrieve extra data related to the current record being
|
|
54
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
55
|
+
endpoint, and the end user also needs to know which contact the token
|
|
56
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
57
|
+
request.
|
|
58
|
+
|
|
59
|
+
Returns:
|
|
60
|
+
ResponseTransaction: Response from the API. Created
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
APIException: When an error occurs while fetching the data from the
|
|
64
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
65
|
+
message, and the HTTP body that was received in the request.
|
|
66
|
+
|
|
67
|
+
"""
|
|
68
|
+
return super().new_api_call_builder.request(
|
|
69
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
70
|
+
.path("/v1/transactions/ach/credit/keyed")
|
|
71
|
+
.http_method(HttpMethodEnum.POST)
|
|
72
|
+
.header_param(Parameter()
|
|
73
|
+
.key("Content-Type")
|
|
74
|
+
.value("application/json"))
|
|
75
|
+
.body_param(Parameter()
|
|
76
|
+
.value(body))
|
|
77
|
+
.query_param(Parameter()
|
|
78
|
+
.key("expand")
|
|
79
|
+
.value(expand))
|
|
80
|
+
.header_param(Parameter()
|
|
81
|
+
.key("accept")
|
|
82
|
+
.value("application/json"))
|
|
83
|
+
.body_serializer(APIHelper.json_serialize)
|
|
84
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
85
|
+
Single("developer-id"))),
|
|
86
|
+
).response(
|
|
87
|
+
ResponseHandler()
|
|
88
|
+
.deserializer(APIHelper.json_deserialize)
|
|
89
|
+
.deserialize_into(ResponseTransaction.from_dictionary)
|
|
90
|
+
.local_error("401", "Unauthorized", Response401tokenException)
|
|
91
|
+
.local_error("412", "Precondition Failed", Response412Exception),
|
|
92
|
+
).execute()
|
|
93
|
+
|
|
94
|
+
def ach_credit_previous_transaction(self,
|
|
95
|
+
body,
|
|
96
|
+
expand=None):
|
|
97
|
+
"""Perform a POST request to /v1/transactions/ach/credit/prev-trxn.
|
|
98
|
+
|
|
99
|
+
Create a new ACH credit transaction using previous transaction id
|
|
100
|
+
|
|
101
|
+
Args:
|
|
102
|
+
body (V1TransactionsAchCreditPrevTrxnRequest): The request body parameter.
|
|
103
|
+
expand (List[Expand60Enum], optional): Most endpoints in the API have a
|
|
104
|
+
way to retrieve extra data related to the current record being
|
|
105
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
106
|
+
endpoint, and the end user also needs to know which contact the token
|
|
107
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
108
|
+
request.
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
ResponseTransaction: Response from the API. Created
|
|
112
|
+
|
|
113
|
+
Raises:
|
|
114
|
+
APIException: When an error occurs while fetching the data from the
|
|
115
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
116
|
+
message, and the HTTP body that was received in the request.
|
|
117
|
+
|
|
118
|
+
"""
|
|
119
|
+
return super().new_api_call_builder.request(
|
|
120
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
121
|
+
.path("/v1/transactions/ach/credit/prev-trxn")
|
|
122
|
+
.http_method(HttpMethodEnum.POST)
|
|
123
|
+
.header_param(Parameter()
|
|
124
|
+
.key("Content-Type")
|
|
125
|
+
.value("application/json"))
|
|
126
|
+
.body_param(Parameter()
|
|
127
|
+
.value(body))
|
|
128
|
+
.query_param(Parameter()
|
|
129
|
+
.key("expand")
|
|
130
|
+
.value(expand))
|
|
131
|
+
.header_param(Parameter()
|
|
132
|
+
.key("accept")
|
|
133
|
+
.value("application/json"))
|
|
134
|
+
.body_serializer(APIHelper.json_serialize)
|
|
135
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
136
|
+
Single("developer-id"))),
|
|
137
|
+
).response(
|
|
138
|
+
ResponseHandler()
|
|
139
|
+
.deserializer(APIHelper.json_deserialize)
|
|
140
|
+
.deserialize_into(ResponseTransaction.from_dictionary)
|
|
141
|
+
.local_error("401", "Unauthorized", Response401tokenException)
|
|
142
|
+
.local_error("412", "Precondition Failed", Response412Exception),
|
|
143
|
+
).execute()
|
|
144
|
+
|
|
145
|
+
def ach_credit_tokenized(self,
|
|
146
|
+
body,
|
|
147
|
+
expand=None):
|
|
148
|
+
"""Perform a POST request to /v1/transactions/ach/credit/token.
|
|
149
|
+
|
|
150
|
+
Create a new tokenized ACH credit transaction
|
|
151
|
+
|
|
152
|
+
Args:
|
|
153
|
+
body (V1TransactionsAchCreditTokenRequest): The request body parameter.
|
|
154
|
+
expand (List[Expand60Enum], optional): Most endpoints in the API have a
|
|
155
|
+
way to retrieve extra data related to the current record being
|
|
156
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
157
|
+
endpoint, and the end user also needs to know which contact the token
|
|
158
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
159
|
+
request.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
ResponseTransaction: Response from the API. Created
|
|
163
|
+
|
|
164
|
+
Raises:
|
|
165
|
+
APIException: When an error occurs while fetching the data from the
|
|
166
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
167
|
+
message, and the HTTP body that was received in the request.
|
|
168
|
+
|
|
169
|
+
"""
|
|
170
|
+
return super().new_api_call_builder.request(
|
|
171
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
172
|
+
.path("/v1/transactions/ach/credit/token")
|
|
173
|
+
.http_method(HttpMethodEnum.POST)
|
|
174
|
+
.header_param(Parameter()
|
|
175
|
+
.key("Content-Type")
|
|
176
|
+
.value("application/json"))
|
|
177
|
+
.body_param(Parameter()
|
|
178
|
+
.value(body))
|
|
179
|
+
.query_param(Parameter()
|
|
180
|
+
.key("expand")
|
|
181
|
+
.value(expand))
|
|
182
|
+
.header_param(Parameter()
|
|
183
|
+
.key("accept")
|
|
184
|
+
.value("application/json"))
|
|
185
|
+
.body_serializer(APIHelper.json_serialize)
|
|
186
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
187
|
+
Single("developer-id"))),
|
|
188
|
+
).response(
|
|
189
|
+
ResponseHandler()
|
|
190
|
+
.deserializer(APIHelper.json_deserialize)
|
|
191
|
+
.deserialize_into(ResponseTransaction.from_dictionary)
|
|
192
|
+
.local_error("401", "Unauthorized", Response401tokenException)
|
|
193
|
+
.local_error("412", "Precondition Failed", Response412Exception),
|
|
194
|
+
).execute()
|
|
195
|
+
|
|
196
|
+
def ach_debit(self,
|
|
197
|
+
body,
|
|
198
|
+
expand=None):
|
|
199
|
+
"""Perform a POST request to /v1/transactions/ach/debit/keyed.
|
|
200
|
+
|
|
201
|
+
Create a new keyed ACH debit transaction
|
|
202
|
+
|
|
203
|
+
Args:
|
|
204
|
+
body (V1TransactionsAchDebitKeyedRequest): The request body parameter.
|
|
205
|
+
expand (List[Expand60Enum], optional): Most endpoints in the API have a
|
|
206
|
+
way to retrieve extra data related to the current record being
|
|
207
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
208
|
+
endpoint, and the end user also needs to know which contact the token
|
|
209
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
210
|
+
request.
|
|
211
|
+
|
|
212
|
+
Returns:
|
|
213
|
+
ResponseTransaction: Response from the API. Created
|
|
214
|
+
|
|
215
|
+
Raises:
|
|
216
|
+
APIException: When an error occurs while fetching the data from the
|
|
217
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
218
|
+
message, and the HTTP body that was received in the request.
|
|
219
|
+
|
|
220
|
+
"""
|
|
221
|
+
return super().new_api_call_builder.request(
|
|
222
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
223
|
+
.path("/v1/transactions/ach/debit/keyed")
|
|
224
|
+
.http_method(HttpMethodEnum.POST)
|
|
225
|
+
.header_param(Parameter()
|
|
226
|
+
.key("Content-Type")
|
|
227
|
+
.value("application/json"))
|
|
228
|
+
.body_param(Parameter()
|
|
229
|
+
.value(body))
|
|
230
|
+
.query_param(Parameter()
|
|
231
|
+
.key("expand")
|
|
232
|
+
.value(expand))
|
|
233
|
+
.header_param(Parameter()
|
|
234
|
+
.key("accept")
|
|
235
|
+
.value("application/json"))
|
|
236
|
+
.body_serializer(APIHelper.json_serialize)
|
|
237
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
238
|
+
Single("developer-id"))),
|
|
239
|
+
).response(
|
|
240
|
+
ResponseHandler()
|
|
241
|
+
.deserializer(APIHelper.json_deserialize)
|
|
242
|
+
.deserialize_into(ResponseTransaction.from_dictionary)
|
|
243
|
+
.local_error("401", "Unauthorized", Response401tokenException)
|
|
244
|
+
.local_error("412", "Precondition Failed", Response412Exception),
|
|
245
|
+
).execute()
|
|
246
|
+
|
|
247
|
+
def ach_debit_previous_transaction(self,
|
|
248
|
+
body,
|
|
249
|
+
expand=None):
|
|
250
|
+
"""Perform a POST request to /v1/transactions/ach/debit/prev-trxn.
|
|
251
|
+
|
|
252
|
+
Create a new ACH debit transaction using previous transaction id
|
|
253
|
+
|
|
254
|
+
Args:
|
|
255
|
+
body (V1TransactionsAchDebitPrevTrxnRequest): The request body parameter.
|
|
256
|
+
expand (List[Expand60Enum], optional): Most endpoints in the API have a
|
|
257
|
+
way to retrieve extra data related to the current record being
|
|
258
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
259
|
+
endpoint, and the end user also needs to know which contact the token
|
|
260
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
261
|
+
request.
|
|
262
|
+
|
|
263
|
+
Returns:
|
|
264
|
+
ResponseTransaction: Response from the API. Created
|
|
265
|
+
|
|
266
|
+
Raises:
|
|
267
|
+
APIException: When an error occurs while fetching the data from the
|
|
268
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
269
|
+
message, and the HTTP body that was received in the request.
|
|
270
|
+
|
|
271
|
+
"""
|
|
272
|
+
return super().new_api_call_builder.request(
|
|
273
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
274
|
+
.path("/v1/transactions/ach/debit/prev-trxn")
|
|
275
|
+
.http_method(HttpMethodEnum.POST)
|
|
276
|
+
.header_param(Parameter()
|
|
277
|
+
.key("Content-Type")
|
|
278
|
+
.value("application/json"))
|
|
279
|
+
.body_param(Parameter()
|
|
280
|
+
.value(body))
|
|
281
|
+
.query_param(Parameter()
|
|
282
|
+
.key("expand")
|
|
283
|
+
.value(expand))
|
|
284
|
+
.header_param(Parameter()
|
|
285
|
+
.key("accept")
|
|
286
|
+
.value("application/json"))
|
|
287
|
+
.body_serializer(APIHelper.json_serialize)
|
|
288
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
289
|
+
Single("developer-id"))),
|
|
290
|
+
).response(
|
|
291
|
+
ResponseHandler()
|
|
292
|
+
.deserializer(APIHelper.json_deserialize)
|
|
293
|
+
.deserialize_into(ResponseTransaction.from_dictionary)
|
|
294
|
+
.local_error("401", "Unauthorized", Response401tokenException)
|
|
295
|
+
.local_error("412", "Precondition Failed", Response412Exception),
|
|
296
|
+
).execute()
|
|
297
|
+
|
|
298
|
+
def ach_debit_tokenized(self,
|
|
299
|
+
body,
|
|
300
|
+
expand=None):
|
|
301
|
+
"""Perform a POST request to /v1/transactions/ach/debit/token.
|
|
302
|
+
|
|
303
|
+
Create a new tokenized ACH debit transaction
|
|
304
|
+
|
|
305
|
+
Args:
|
|
306
|
+
body (V1TransactionsAchDebitTokenRequest): The request body parameter.
|
|
307
|
+
expand (List[Expand60Enum], optional): Most endpoints in the API have a
|
|
308
|
+
way to retrieve extra data related to the current record being
|
|
309
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
310
|
+
endpoint, and the end user also needs to know which contact the token
|
|
311
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
312
|
+
request.
|
|
313
|
+
|
|
314
|
+
Returns:
|
|
315
|
+
ResponseTransaction: Response from the API. Created
|
|
316
|
+
|
|
317
|
+
Raises:
|
|
318
|
+
APIException: When an error occurs while fetching the data from the
|
|
319
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
320
|
+
message, and the HTTP body that was received in the request.
|
|
321
|
+
|
|
322
|
+
"""
|
|
323
|
+
return super().new_api_call_builder.request(
|
|
324
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
325
|
+
.path("/v1/transactions/ach/debit/token")
|
|
326
|
+
.http_method(HttpMethodEnum.POST)
|
|
327
|
+
.header_param(Parameter()
|
|
328
|
+
.key("Content-Type")
|
|
329
|
+
.value("application/json"))
|
|
330
|
+
.body_param(Parameter()
|
|
331
|
+
.value(body))
|
|
332
|
+
.query_param(Parameter()
|
|
333
|
+
.key("expand")
|
|
334
|
+
.value(expand))
|
|
335
|
+
.header_param(Parameter()
|
|
336
|
+
.key("accept")
|
|
337
|
+
.value("application/json"))
|
|
338
|
+
.body_serializer(APIHelper.json_serialize)
|
|
339
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
340
|
+
Single("developer-id"))),
|
|
341
|
+
).response(
|
|
342
|
+
ResponseHandler()
|
|
343
|
+
.deserializer(APIHelper.json_deserialize)
|
|
344
|
+
.deserialize_into(ResponseTransaction.from_dictionary)
|
|
345
|
+
.local_error("401", "Unauthorized", Response401tokenException)
|
|
346
|
+
.local_error("412", "Precondition Failed", Response412Exception),
|
|
347
|
+
).execute()
|
|
348
|
+
|
|
349
|
+
def ach_refund_previous_transaction(self,
|
|
350
|
+
body,
|
|
351
|
+
expand=None):
|
|
352
|
+
"""Perform a POST request to /v1/transactions/ach/refund/prev-trxn.
|
|
353
|
+
|
|
354
|
+
Create a new ACH refund transaction using previous transaction id
|
|
355
|
+
|
|
356
|
+
Args:
|
|
357
|
+
body (V1TransactionsAchRefundPrevTrxnRequest): The request body parameter.
|
|
358
|
+
expand (List[Expand60Enum], optional): Most endpoints in the API have a
|
|
359
|
+
way to retrieve extra data related to the current record being
|
|
360
|
+
retrieved. For example, if the API request is for the accountvaults
|
|
361
|
+
endpoint, and the end user also needs to know which contact the token
|
|
362
|
+
belongs to, this data can be returned in the accountvaults endpoint
|
|
363
|
+
request.
|
|
364
|
+
|
|
365
|
+
Returns:
|
|
366
|
+
ResponseTransaction: Response from the API. Created
|
|
367
|
+
|
|
368
|
+
Raises:
|
|
369
|
+
APIException: When an error occurs while fetching the data from the
|
|
370
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
371
|
+
message, and the HTTP body that was received in the request.
|
|
372
|
+
|
|
373
|
+
"""
|
|
374
|
+
return super().new_api_call_builder.request(
|
|
375
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
376
|
+
.path("/v1/transactions/ach/refund/prev-trxn")
|
|
377
|
+
.http_method(HttpMethodEnum.POST)
|
|
378
|
+
.header_param(Parameter()
|
|
379
|
+
.key("Content-Type")
|
|
380
|
+
.value("application/json"))
|
|
381
|
+
.body_param(Parameter()
|
|
382
|
+
.value(body))
|
|
383
|
+
.query_param(Parameter()
|
|
384
|
+
.key("expand")
|
|
385
|
+
.value(expand))
|
|
386
|
+
.header_param(Parameter()
|
|
387
|
+
.key("accept")
|
|
388
|
+
.value("application/json"))
|
|
389
|
+
.body_serializer(APIHelper.json_serialize)
|
|
390
|
+
.auth(And(Single("user-id"), Single("user-api-key"),
|
|
391
|
+
Single("developer-id"))),
|
|
392
|
+
).response(
|
|
393
|
+
ResponseHandler()
|
|
394
|
+
.deserializer(APIHelper.json_deserialize)
|
|
395
|
+
.deserialize_into(ResponseTransaction.from_dictionary)
|
|
396
|
+
.local_error("401", "Unauthorized", Response401tokenException)
|
|
397
|
+
.local_error("412", "Precondition Failed", Response412Exception),
|
|
398
|
+
).execute()
|