astrada 2.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.
- astrada/__init__.py +421 -0
- astrada/_lenient.py +28 -0
- astrada/_retry.py +102 -0
- astrada/_sandbox_guard.py +47 -0
- astrada/_sandbox_routes.py +19 -0
- astrada/_services.py +49 -0
- astrada/api/__init__.py +16 -0
- astrada/api/bin_lookup_api.py +318 -0
- astrada/api/card_api.py +1317 -0
- astrada/api/card_subscription_api.py +1096 -0
- astrada/api/card_verification_api.py +898 -0
- astrada/api/enrollment_links_api.py +1506 -0
- astrada/api/enrollment_methods_api.py +330 -0
- astrada/api/network_bulk_enrollments_api.py +1212 -0
- astrada/api/network_bulk_feeds_api.py +1246 -0
- astrada/api/subaccounts_api.py +1210 -0
- astrada/api/transaction_messages_api.py +596 -0
- astrada/api/transactions_api.py +787 -0
- astrada/api/webhooks_api.py +1503 -0
- astrada/api_client.py +812 -0
- astrada/api_response.py +21 -0
- astrada/auth_client.py +241 -0
- astrada/banking/__init__.py +198 -0
- astrada/banking/_services.py +28 -0
- astrada/banking/_staff_only.py +103 -0
- astrada/banking/api/__init__.py +9 -0
- astrada/banking/api/bank_accounts_api.py +2718 -0
- astrada/banking/api/bank_links_api.py +1857 -0
- astrada/banking/api/bank_subscriptions_api.py +958 -0
- astrada/banking/api/bank_transactions_api.py +1121 -0
- astrada/banking/api/transaction_matches_api.py +774 -0
- astrada/banking/api_client.py +815 -0
- astrada/banking/api_response.py +21 -0
- astrada/banking/configuration.py +674 -0
- astrada/banking/exceptions.py +36 -0
- astrada/banking/models/__init__.py +73 -0
- astrada/banking/models/bank_account.py +232 -0
- astrada/banking/models/bank_account_backfill_params.py +109 -0
- astrada/banking/models/bank_account_backfill_result.py +109 -0
- astrada/banking/models/bank_account_cards_update.py +111 -0
- astrada/banking/models/bank_account_cards_update_backfill.py +107 -0
- astrada/banking/models/bank_account_disconnect.py +118 -0
- astrada/banking/models/bank_account_link_cards_params.py +92 -0
- astrada/banking/models/bank_account_link_cards_result.py +105 -0
- astrada/banking/models/bank_account_links.py +118 -0
- astrada/banking/models/bank_account_list.py +118 -0
- astrada/banking/models/bank_account_maintenance_params.py +98 -0
- astrada/banking/models/bank_account_maintenance_result.py +136 -0
- astrada/banking/models/bank_account_maintenance_result_cardholder_cards.py +124 -0
- astrada/banking/models/bank_account_maintenance_result_junction_last4.py +108 -0
- astrada/banking/models/bank_account_maintenance_result_minted_value.py +109 -0
- astrada/banking/models/bank_account_refresh_result.py +110 -0
- astrada/banking/models/bank_account_transactions_refresh_result.py +110 -0
- astrada/banking/models/bank_account_update_params.py +173 -0
- astrada/banking/models/bank_account_update_result.py +118 -0
- astrada/banking/models/bank_account_update_result_backfill.py +106 -0
- astrada/banking/models/bank_feed_card.py +135 -0
- astrada/banking/models/bank_institution_incident.py +127 -0
- astrada/banking/models/bank_link.py +204 -0
- astrada/banking/models/bank_link_bank_account.py +158 -0
- astrada/banking/models/bank_link_consent.py +154 -0
- astrada/banking/models/bank_link_create_params.py +195 -0
- astrada/banking/models/bank_link_create_params_filters.py +118 -0
- astrada/banking/models/bank_link_filters.py +117 -0
- astrada/banking/models/bank_link_last_mint_failure.py +120 -0
- astrada/banking/models/bank_link_last_rejection.py +112 -0
- astrada/banking/models/bank_link_links.py +117 -0
- astrada/banking/models/bank_link_list.py +118 -0
- astrada/banking/models/bank_link_sync_params.py +117 -0
- astrada/banking/models/bank_link_sync_result.py +104 -0
- astrada/banking/models/bank_link_update_params.py +118 -0
- astrada/banking/models/bank_subscription.py +190 -0
- astrada/banking/models/bank_subscription_institution_health.py +139 -0
- astrada/banking/models/bank_subscription_list.py +118 -0
- astrada/banking/models/bank_subscription_webhook.py +119 -0
- astrada/banking/models/bank_transaction.py +203 -0
- astrada/banking/models/bank_transaction_links.py +123 -0
- astrada/banking/models/bank_transaction_list.py +118 -0
- astrada/banking/models/bank_transaction_settlement.py +137 -0
- astrada/banking/models/bank_transaction_webhook_failure.py +106 -0
- astrada/banking/models/bank_transaction_webhooks_params.py +123 -0
- astrada/banking/models/bank_transaction_webhooks_result.py +126 -0
- astrada/banking/models/banking_error.py +114 -0
- astrada/banking/models/cursor_pagination.py +106 -0
- astrada/banking/models/link.py +118 -0
- astrada/banking/models/problem.py +110 -0
- astrada/banking/models/transaction_match.py +157 -0
- astrada/banking/models/transaction_match_bank_transaction.py +117 -0
- astrada/banking/models/transaction_match_card_transaction.py +118 -0
- astrada/banking/models/transaction_match_links.py +123 -0
- astrada/banking/models/transaction_match_list.py +118 -0
- astrada/banking/models/transaction_match_reason.py +135 -0
- astrada/banking/py.typed +0 -0
- astrada/banking/rest.py +289 -0
- astrada/client.py +398 -0
- astrada/configuration.py +674 -0
- astrada/environments.py +47 -0
- astrada/exceptions.py +381 -0
- astrada/models/__init__.py +173 -0
- astrada/models/amex_countries_or_wildcard.py +194 -0
- astrada/models/bank_linking_policy.py +200 -0
- astrada/models/bin_lookup.py +212 -0
- astrada/models/bin_lookup_validation_problem.py +116 -0
- astrada/models/bin_lookup_validation_problem_item.py +108 -0
- astrada/models/bin_lookup_warning.py +114 -0
- astrada/models/card.py +166 -0
- astrada/models/card_embedded.py +108 -0
- astrada/models/card_links.py +113 -0
- astrada/models/card_list.py +116 -0
- astrada/models/card_list_embedded.py +112 -0
- astrada/models/card_subscription.py +176 -0
- astrada/models/card_subscription_deactivation_reason.py +57 -0
- astrada/models/card_subscription_embedded.py +114 -0
- astrada/models/card_subscription_links.py +128 -0
- astrada/models/card_subscription_list.py +116 -0
- astrada/models/card_subscription_list_embedded.py +112 -0
- astrada/models/card_subscription_update_params.py +105 -0
- astrada/models/card_verification.py +186 -0
- astrada/models/card_verification_links.py +118 -0
- astrada/models/card_verification_list.py +116 -0
- astrada/models/card_verification_list_embedded.py +112 -0
- astrada/models/card_verification_unlock_params.py +105 -0
- astrada/models/card_verification_unlock_result.py +106 -0
- astrada/models/cardholder.py +147 -0
- astrada/models/cardholder_corporate.py +134 -0
- astrada/models/cardholder_corporate_legal_entity.py +107 -0
- astrada/models/cardholder_update_params.py +106 -0
- astrada/models/cardholder_update_params_corporate.py +108 -0
- astrada/models/conflict.py +121 -0
- astrada/models/consent_policy.py +129 -0
- astrada/models/create_subaccount_configurations.py +120 -0
- astrada/models/create_subaccount_configurations_amex.py +120 -0
- astrada/models/create_subaccount_configurations_amex_bulk_enrollment.py +128 -0
- astrada/models/create_subaccount_configurations_amex_single_enrollment.py +128 -0
- astrada/models/create_subaccount_configurations_mastercard.py +120 -0
- astrada/models/create_subaccount_configurations_mastercard_bulk_enrollment.py +128 -0
- astrada/models/create_subaccount_configurations_mastercard_single_enrollment.py +128 -0
- astrada/models/create_subaccount_configurations_visa.py +120 -0
- astrada/models/create_subaccount_configurations_visa_bulk_enrollment.py +128 -0
- astrada/models/create_subaccount_configurations_visa_single_enrollment.py +128 -0
- astrada/models/customer_enrollment_policy.py +145 -0
- astrada/models/enrollment_link.py +172 -0
- astrada/models/enrollment_link_conflict_problem.py +124 -0
- astrada/models/enrollment_link_create_params.py +139 -0
- astrada/models/enrollment_link_create_result.py +174 -0
- astrada/models/enrollment_link_create_validation_problem.py +137 -0
- astrada/models/enrollment_link_created_by.py +114 -0
- astrada/models/enrollment_link_detail.py +182 -0
- astrada/models/enrollment_link_forbidden_problem.py +127 -0
- astrada/models/enrollment_link_list.py +114 -0
- astrada/models/enrollment_link_list_embedded.py +112 -0
- astrada/models/enrollment_link_list_validation_problem.py +137 -0
- astrada/models/enrollment_link_not_found_problem.py +124 -0
- astrada/models/enrollment_link_rate_limited_problem.py +124 -0
- astrada/models/enrollment_link_session.py +128 -0
- astrada/models/enrollment_link_session_outcome.py +112 -0
- astrada/models/enrollment_link_subaccount_not_found_problem.py +124 -0
- astrada/models/enrollment_methods_params.py +116 -0
- astrada/models/enrollment_methods_result.py +152 -0
- astrada/models/enrollment_methods_result_bin_info.py +145 -0
- astrada/models/enrollment_methods_result_single_decision.py +117 -0
- astrada/models/enrollment_policy.py +166 -0
- astrada/models/failure_reason.py +130 -0
- astrada/models/failure_reason_acs_references.py +108 -0
- astrada/models/link.py +118 -0
- astrada/models/mastercard_countries_or_wildcard.py +194 -0
- astrada/models/network_blocked_card_rule.py +125 -0
- astrada/models/network_bulk_bank_contact.py +106 -0
- astrada/models/network_bulk_bank_contact_params.py +107 -0
- astrada/models/network_bulk_company_params.py +105 -0
- astrada/models/network_bulk_confirmation.py +194 -0
- astrada/models/network_bulk_confirmation_bin_info.py +130 -0
- astrada/models/network_bulk_confirmation_card_admin.py +106 -0
- astrada/models/network_bulk_confirmation_company.py +104 -0
- astrada/models/network_bulk_confirmation_create_params.py +167 -0
- astrada/models/network_bulk_confirmation_create_params_bin_info.py +111 -0
- astrada/models/network_bulk_confirmation_create_params_card_admin.py +107 -0
- astrada/models/network_bulk_confirmation_create_result.py +173 -0
- astrada/models/network_bulk_confirmation_summary.py +134 -0
- astrada/models/network_bulk_enrollment.py +231 -0
- astrada/models/network_bulk_enrollment_bin_info.py +130 -0
- astrada/models/network_bulk_enrollment_card_admin.py +106 -0
- astrada/models/network_bulk_enrollment_company.py +104 -0
- astrada/models/network_bulk_enrollment_consent.py +107 -0
- astrada/models/network_bulk_enrollment_create_params.py +185 -0
- astrada/models/network_bulk_enrollment_create_params_bin_info.py +111 -0
- astrada/models/network_bulk_enrollment_create_params_card_admin.py +107 -0
- astrada/models/network_bulk_enrollment_create_params_consent.py +107 -0
- astrada/models/network_bulk_enrollment_create_result.py +173 -0
- astrada/models/network_bulk_enrollment_links.py +113 -0
- astrada/models/network_bulk_enrollment_open.py +123 -0
- astrada/models/network_bulk_enrollment_summary.py +152 -0
- astrada/models/network_bulk_enrollment_summary_links.py +108 -0
- astrada/models/network_bulk_feed_create_amex.py +155 -0
- astrada/models/network_bulk_feed_create_common.py +132 -0
- astrada/models/network_bulk_feed_create_mastercard.py +155 -0
- astrada/models/network_bulk_feed_create_params.py +190 -0
- astrada/models/network_bulk_feed_create_visa.py +155 -0
- astrada/models/network_bulk_feed_list.py +116 -0
- astrada/models/network_bulk_feed_list_embedded.py +112 -0
- astrada/models/network_bulk_feed_update_params.py +108 -0
- astrada/models/network_bulk_feeds.py +180 -0
- astrada/models/offset_page_links.py +128 -0
- astrada/models/page_links.py +113 -0
- astrada/models/plaid_end_customer.py +109 -0
- astrada/models/problem.py +110 -0
- astrada/models/raw_transaction_message.py +110 -0
- astrada/models/raw_transaction_message_links.py +113 -0
- astrada/models/self_links.py +108 -0
- astrada/models/subaccount.py +206 -0
- astrada/models/subaccount_amex_product.py +124 -0
- astrada/models/subaccount_amex_product_clearing.py +104 -0
- astrada/models/subaccount_amex_product_real_time_auth.py +104 -0
- astrada/models/subaccount_configuration.py +107 -0
- astrada/models/subaccount_configuration_amex.py +111 -0
- astrada/models/subaccount_configuration_amex_bulk_enrollment.py +119 -0
- astrada/models/subaccount_configuration_amex_single_enrollment.py +119 -0
- astrada/models/subaccount_configuration_mastercard.py +111 -0
- astrada/models/subaccount_configuration_mastercard_bulk_enrollment.py +119 -0
- astrada/models/subaccount_configuration_mastercard_single_enrollment.py +119 -0
- astrada/models/subaccount_configuration_visa.py +111 -0
- astrada/models/subaccount_configuration_visa_bulk_enrollment.py +119 -0
- astrada/models/subaccount_configuration_visa_single_enrollment.py +119 -0
- astrada/models/subaccount_create_params.py +110 -0
- astrada/models/subaccount_enrollment_policy.py +168 -0
- astrada/models/subaccount_links.py +113 -0
- astrada/models/subaccount_list.py +114 -0
- astrada/models/subaccount_list_embedded.py +112 -0
- astrada/models/subaccount_network_blocked_cards_value.py +121 -0
- astrada/models/subaccount_update_params.py +122 -0
- astrada/models/subaccount_update_result.py +208 -0
- astrada/models/team_link.py +112 -0
- astrada/models/transaction.py +181 -0
- astrada/models/transaction_acceptor.py +130 -0
- astrada/models/transaction_embedded.py +120 -0
- astrada/models/transaction_links.py +127 -0
- astrada/models/transaction_list.py +114 -0
- astrada/models/transaction_list_embedded.py +112 -0
- astrada/models/transaction_message.py +230 -0
- astrada/models/transaction_message_acceptor.py +151 -0
- astrada/models/transaction_message_bank_data.py +126 -0
- astrada/models/transaction_message_bank_data_personal_finance_category.py +111 -0
- astrada/models/transaction_message_links.py +113 -0
- astrada/models/unprocessable_entity.py +114 -0
- astrada/models/validation_problem.py +116 -0
- astrada/models/validation_problem_item.py +106 -0
- astrada/models/verification_policy.py +134 -0
- astrada/models/visa_countries_or_wildcard.py +194 -0
- astrada/models/webhook.py +140 -0
- astrada/models/webhook_create_params.py +122 -0
- astrada/models/webhook_create_result.py +142 -0
- astrada/models/webhook_list.py +101 -0
- astrada/models/webhook_list_embedded.py +112 -0
- astrada/models/webhook_list_links.py +113 -0
- astrada/models/webhook_update_params.py +109 -0
- astrada/pagination.py +76 -0
- astrada/py.typed +0 -0
- astrada/rest.py +289 -0
- astrada/sandbox/__init__.py +114 -0
- astrada/sandbox/_services.py +24 -0
- astrada/sandbox/api/__init__.py +8 -0
- astrada/sandbox/api/card_subscription_api.py +316 -0
- astrada/sandbox/api/network_bulk_feeds_api.py +316 -0
- astrada/sandbox/api/sandbox_simulation_api.py +2093 -0
- astrada/sandbox/api/subaccounts_api.py +316 -0
- astrada/sandbox/api_client.py +826 -0
- astrada/sandbox/api_response.py +21 -0
- astrada/sandbox/configuration.py +674 -0
- astrada/sandbox/exceptions.py +36 -0
- astrada/sandbox/models/__init__.py +32 -0
- astrada/sandbox/models/conflict.py +121 -0
- astrada/sandbox/models/problem.py +110 -0
- astrada/sandbox/models/simulate_bulk_feed_file_gl_request.py +119 -0
- astrada/sandbox/models/simulate_bulk_feed_file_smartdata_request.py +119 -0
- astrada/sandbox/models/simulate_bulk_feed_file_vbds_request.py +119 -0
- astrada/sandbox/models/simulate_bulk_feed_file_vcf_request.py +119 -0
- astrada/sandbox/models/simulate_transaction_accepted.py +105 -0
- astrada/sandbox/models/simulate_transaction_message_request.py +118 -0
- astrada/sandbox/models/simulate_transaction_request.py +142 -0
- astrada/sandbox/models/simulate_transaction_request_merchant.py +130 -0
- astrada/sandbox/models/simulate_transaction_scenario_accepted.py +113 -0
- astrada/sandbox/models/simulate_transaction_scenario_request.py +148 -0
- astrada/sandbox/models/simulate_transaction_scenario_transaction.py +106 -0
- astrada/sandbox/models/validation_problem.py +116 -0
- astrada/sandbox/models/validation_problem_item.py +106 -0
- astrada/sandbox/py.typed +0 -0
- astrada/sandbox/rest.py +289 -0
- astrada/testing/__init__.py +197 -0
- astrada/testing/responses.json +2429 -0
- astrada/webhooks.py +309 -0
- astrada-2.0.0.dist-info/METADATA +607 -0
- astrada-2.0.0.dist-info/RECORD +295 -0
- astrada-2.0.0.dist-info/WHEEL +5 -0
- astrada-2.0.0.dist-info/licenses/LICENSE +21 -0
- astrada-2.0.0.dist-info/top_level.txt +1 -0
astrada/__init__.py
ADDED
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
.. include:: ../README.md
|
|
7
|
+
""" # The reference site (pdoc) opens with the README.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
__version__ = "2.0.0"
|
|
11
|
+
|
|
12
|
+
# Define package exports
|
|
13
|
+
__all__ = [
|
|
14
|
+
"Astrada",
|
|
15
|
+
"Environment",
|
|
16
|
+
"paginate",
|
|
17
|
+
"verify_webhook",
|
|
18
|
+
"WebhookEvent",
|
|
19
|
+
"parse_stored_webhook",
|
|
20
|
+
"UnexpectedScopesError",
|
|
21
|
+
"TransactionWebhookMessage",
|
|
22
|
+
"WebhookVerificationError",
|
|
23
|
+
"BinLookupApi",
|
|
24
|
+
"CardApi",
|
|
25
|
+
"CardSubscriptionApi",
|
|
26
|
+
"CardVerificationApi",
|
|
27
|
+
"EnrollmentLinksApi",
|
|
28
|
+
"EnrollmentMethodsApi",
|
|
29
|
+
"NetworkBulkEnrollmentsApi",
|
|
30
|
+
"NetworkBulkFeedsApi",
|
|
31
|
+
"SubaccountsApi",
|
|
32
|
+
"TransactionMessagesApi",
|
|
33
|
+
"TransactionsApi",
|
|
34
|
+
"WebhooksApi",
|
|
35
|
+
"ApiResponse",
|
|
36
|
+
"ApiClient",
|
|
37
|
+
"Configuration",
|
|
38
|
+
"AuthenticationClient",
|
|
39
|
+
"AccessToken",
|
|
40
|
+
"OpenApiException",
|
|
41
|
+
"ApiTypeError",
|
|
42
|
+
"ApiValueError",
|
|
43
|
+
"ApiKeyError",
|
|
44
|
+
"ApiAttributeError",
|
|
45
|
+
"ApiException",
|
|
46
|
+
"AuthenticationError",
|
|
47
|
+
"ApiConnectionError",
|
|
48
|
+
"RateLimitError",
|
|
49
|
+
"SandboxOnlyError",
|
|
50
|
+
"ScopeRequiredError",
|
|
51
|
+
"BadRequestException",
|
|
52
|
+
"UnauthorizedException",
|
|
53
|
+
"ForbiddenException",
|
|
54
|
+
"NotFoundException",
|
|
55
|
+
"ConflictException",
|
|
56
|
+
"UnprocessableEntityException",
|
|
57
|
+
"ServiceException",
|
|
58
|
+
"AmexCountriesOrWildcard",
|
|
59
|
+
"BankLinkingPolicy",
|
|
60
|
+
"BinLookup",
|
|
61
|
+
"BinLookupValidationProblem",
|
|
62
|
+
"BinLookupValidationProblemItem",
|
|
63
|
+
"BinLookupWarning",
|
|
64
|
+
"Card",
|
|
65
|
+
"CardEmbedded",
|
|
66
|
+
"CardLinks",
|
|
67
|
+
"CardList",
|
|
68
|
+
"CardListEmbedded",
|
|
69
|
+
"CardSubscription",
|
|
70
|
+
"CardSubscriptionDeactivationReason",
|
|
71
|
+
"CardSubscriptionEmbedded",
|
|
72
|
+
"CardSubscriptionLinks",
|
|
73
|
+
"CardSubscriptionList",
|
|
74
|
+
"CardSubscriptionListEmbedded",
|
|
75
|
+
"CardSubscriptionUpdateParams",
|
|
76
|
+
"CardVerification",
|
|
77
|
+
"CardVerificationLinks",
|
|
78
|
+
"CardVerificationList",
|
|
79
|
+
"CardVerificationListEmbedded",
|
|
80
|
+
"CardVerificationUnlockParams",
|
|
81
|
+
"CardVerificationUnlockResult",
|
|
82
|
+
"Cardholder",
|
|
83
|
+
"CardholderCorporate",
|
|
84
|
+
"CardholderCorporateLegalEntity",
|
|
85
|
+
"CardholderUpdateParams",
|
|
86
|
+
"CardholderUpdateParamsCorporate",
|
|
87
|
+
"Conflict",
|
|
88
|
+
"ConsentPolicy",
|
|
89
|
+
"CreateSubaccountConfigurations",
|
|
90
|
+
"CreateSubaccountConfigurationsAMEX",
|
|
91
|
+
"CreateSubaccountConfigurationsAMEXBulkEnrollment",
|
|
92
|
+
"CreateSubaccountConfigurationsAMEXSingleEnrollment",
|
|
93
|
+
"CreateSubaccountConfigurationsMASTERCARD",
|
|
94
|
+
"CreateSubaccountConfigurationsMASTERCARDBulkEnrollment",
|
|
95
|
+
"CreateSubaccountConfigurationsMASTERCARDSingleEnrollment",
|
|
96
|
+
"CreateSubaccountConfigurationsVISA",
|
|
97
|
+
"CreateSubaccountConfigurationsVISABulkEnrollment",
|
|
98
|
+
"CreateSubaccountConfigurationsVISASingleEnrollment",
|
|
99
|
+
"CustomerEnrollmentPolicy",
|
|
100
|
+
"EnrollmentLink",
|
|
101
|
+
"EnrollmentLinkConflictProblem",
|
|
102
|
+
"EnrollmentLinkCreateParams",
|
|
103
|
+
"EnrollmentLinkCreateResult",
|
|
104
|
+
"EnrollmentLinkCreateValidationProblem",
|
|
105
|
+
"EnrollmentLinkCreatedBy",
|
|
106
|
+
"EnrollmentLinkDetail",
|
|
107
|
+
"EnrollmentLinkForbiddenProblem",
|
|
108
|
+
"EnrollmentLinkList",
|
|
109
|
+
"EnrollmentLinkListEmbedded",
|
|
110
|
+
"EnrollmentLinkListValidationProblem",
|
|
111
|
+
"EnrollmentLinkNotFoundProblem",
|
|
112
|
+
"EnrollmentLinkRateLimitedProblem",
|
|
113
|
+
"EnrollmentLinkSession",
|
|
114
|
+
"EnrollmentLinkSessionOutcome",
|
|
115
|
+
"EnrollmentLinkSubaccountNotFoundProblem",
|
|
116
|
+
"EnrollmentMethodsParams",
|
|
117
|
+
"EnrollmentMethodsResult",
|
|
118
|
+
"EnrollmentMethodsResultBinInfo",
|
|
119
|
+
"EnrollmentMethodsResultSingleDecision",
|
|
120
|
+
"EnrollmentPolicy",
|
|
121
|
+
"FailureReason",
|
|
122
|
+
"FailureReasonAcsReferences",
|
|
123
|
+
"Link",
|
|
124
|
+
"MastercardCountriesOrWildcard",
|
|
125
|
+
"NetworkBlockedCardRule",
|
|
126
|
+
"NetworkBulkBankContact",
|
|
127
|
+
"NetworkBulkBankContactParams",
|
|
128
|
+
"NetworkBulkCompanyParams",
|
|
129
|
+
"NetworkBulkConfirmation",
|
|
130
|
+
"NetworkBulkConfirmationBinInfo",
|
|
131
|
+
"NetworkBulkConfirmationCardAdmin",
|
|
132
|
+
"NetworkBulkConfirmationCompany",
|
|
133
|
+
"NetworkBulkConfirmationCreateParams",
|
|
134
|
+
"NetworkBulkConfirmationCreateParamsBinInfo",
|
|
135
|
+
"NetworkBulkConfirmationCreateParamsCardAdmin",
|
|
136
|
+
"NetworkBulkConfirmationCreateResult",
|
|
137
|
+
"NetworkBulkConfirmationSummary",
|
|
138
|
+
"NetworkBulkEnrollment",
|
|
139
|
+
"NetworkBulkEnrollmentBinInfo",
|
|
140
|
+
"NetworkBulkEnrollmentCardAdmin",
|
|
141
|
+
"NetworkBulkEnrollmentCompany",
|
|
142
|
+
"NetworkBulkEnrollmentConsent",
|
|
143
|
+
"NetworkBulkEnrollmentCreateParams",
|
|
144
|
+
"NetworkBulkEnrollmentCreateParamsBinInfo",
|
|
145
|
+
"NetworkBulkEnrollmentCreateParamsCardAdmin",
|
|
146
|
+
"NetworkBulkEnrollmentCreateParamsConsent",
|
|
147
|
+
"NetworkBulkEnrollmentCreateResult",
|
|
148
|
+
"NetworkBulkEnrollmentLinks",
|
|
149
|
+
"NetworkBulkEnrollmentOpen",
|
|
150
|
+
"NetworkBulkEnrollmentSummary",
|
|
151
|
+
"NetworkBulkEnrollmentSummaryLinks",
|
|
152
|
+
"NetworkBulkFeedCreateAmex",
|
|
153
|
+
"NetworkBulkFeedCreateCommon",
|
|
154
|
+
"NetworkBulkFeedCreateMastercard",
|
|
155
|
+
"NetworkBulkFeedCreateParams",
|
|
156
|
+
"NetworkBulkFeedCreateVisa",
|
|
157
|
+
"NetworkBulkFeedList",
|
|
158
|
+
"NetworkBulkFeedListEmbedded",
|
|
159
|
+
"NetworkBulkFeedUpdateParams",
|
|
160
|
+
"NetworkBulkFeeds",
|
|
161
|
+
"OffsetPageLinks",
|
|
162
|
+
"PageLinks",
|
|
163
|
+
"PlaidEndCustomer",
|
|
164
|
+
"Problem",
|
|
165
|
+
"RawTransactionMessage",
|
|
166
|
+
"RawTransactionMessageLinks",
|
|
167
|
+
"SelfLinks",
|
|
168
|
+
"Subaccount",
|
|
169
|
+
"SubaccountAmexProduct",
|
|
170
|
+
"SubaccountAmexProductClearing",
|
|
171
|
+
"SubaccountAmexProductRealTimeAuth",
|
|
172
|
+
"SubaccountConfiguration",
|
|
173
|
+
"SubaccountConfigurationAMEX",
|
|
174
|
+
"SubaccountConfigurationAMEXBulkEnrollment",
|
|
175
|
+
"SubaccountConfigurationAMEXSingleEnrollment",
|
|
176
|
+
"SubaccountConfigurationMASTERCARD",
|
|
177
|
+
"SubaccountConfigurationMASTERCARDBulkEnrollment",
|
|
178
|
+
"SubaccountConfigurationMASTERCARDSingleEnrollment",
|
|
179
|
+
"SubaccountConfigurationVISA",
|
|
180
|
+
"SubaccountConfigurationVISABulkEnrollment",
|
|
181
|
+
"SubaccountConfigurationVISASingleEnrollment",
|
|
182
|
+
"SubaccountCreateParams",
|
|
183
|
+
"SubaccountEnrollmentPolicy",
|
|
184
|
+
"SubaccountLinks",
|
|
185
|
+
"SubaccountList",
|
|
186
|
+
"SubaccountListEmbedded",
|
|
187
|
+
"SubaccountNetworkBlockedCardsValue",
|
|
188
|
+
"SubaccountUpdateParams",
|
|
189
|
+
"SubaccountUpdateResult",
|
|
190
|
+
"TeamLink",
|
|
191
|
+
"Transaction",
|
|
192
|
+
"TransactionAcceptor",
|
|
193
|
+
"TransactionEmbedded",
|
|
194
|
+
"TransactionLinks",
|
|
195
|
+
"TransactionList",
|
|
196
|
+
"TransactionListEmbedded",
|
|
197
|
+
"TransactionMessage",
|
|
198
|
+
"TransactionMessageAcceptor",
|
|
199
|
+
"TransactionMessageBankData",
|
|
200
|
+
"TransactionMessageBankDataPersonalFinanceCategory",
|
|
201
|
+
"TransactionMessageLinks",
|
|
202
|
+
"UnprocessableEntity",
|
|
203
|
+
"ValidationProblem",
|
|
204
|
+
"ValidationProblemItem",
|
|
205
|
+
"VerificationPolicy",
|
|
206
|
+
"VisaCountriesOrWildcard",
|
|
207
|
+
"Webhook",
|
|
208
|
+
"WebhookCreateParams",
|
|
209
|
+
"WebhookCreateResult",
|
|
210
|
+
"WebhookList",
|
|
211
|
+
"WebhookListEmbedded",
|
|
212
|
+
"WebhookListLinks",
|
|
213
|
+
"WebhookUpdateParams",
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
# import apis into sdk package
|
|
217
|
+
from astrada.api.bin_lookup_api import BinLookupApi as BinLookupApi
|
|
218
|
+
from astrada.api.card_api import CardApi as CardApi
|
|
219
|
+
from astrada.api.card_subscription_api import CardSubscriptionApi as CardSubscriptionApi
|
|
220
|
+
from astrada.api.card_verification_api import CardVerificationApi as CardVerificationApi
|
|
221
|
+
from astrada.api.enrollment_links_api import EnrollmentLinksApi as EnrollmentLinksApi
|
|
222
|
+
from astrada.api.enrollment_methods_api import EnrollmentMethodsApi as EnrollmentMethodsApi
|
|
223
|
+
from astrada.api.network_bulk_enrollments_api import NetworkBulkEnrollmentsApi as NetworkBulkEnrollmentsApi
|
|
224
|
+
from astrada.api.network_bulk_feeds_api import NetworkBulkFeedsApi as NetworkBulkFeedsApi
|
|
225
|
+
from astrada.api.subaccounts_api import SubaccountsApi as SubaccountsApi
|
|
226
|
+
from astrada.api.transaction_messages_api import TransactionMessagesApi as TransactionMessagesApi
|
|
227
|
+
from astrada.api.transactions_api import TransactionsApi as TransactionsApi
|
|
228
|
+
from astrada.api.webhooks_api import WebhooksApi as WebhooksApi
|
|
229
|
+
|
|
230
|
+
# import ApiClient
|
|
231
|
+
from astrada.api_response import ApiResponse as ApiResponse
|
|
232
|
+
from astrada.api_client import ApiClient as ApiClient
|
|
233
|
+
from astrada.configuration import Configuration as Configuration
|
|
234
|
+
from astrada.auth_client import AuthenticationClient as AuthenticationClient
|
|
235
|
+
from astrada.auth_client import AccessToken as AccessToken
|
|
236
|
+
from astrada.environments import Environment as Environment
|
|
237
|
+
from astrada.exceptions import OpenApiException as OpenApiException
|
|
238
|
+
from astrada.exceptions import ApiTypeError as ApiTypeError
|
|
239
|
+
from astrada.exceptions import ApiValueError as ApiValueError
|
|
240
|
+
from astrada.exceptions import ApiKeyError as ApiKeyError
|
|
241
|
+
from astrada.exceptions import ApiAttributeError as ApiAttributeError
|
|
242
|
+
from astrada.exceptions import ApiException as ApiException
|
|
243
|
+
from astrada.exceptions import AuthenticationError as AuthenticationError
|
|
244
|
+
from astrada.exceptions import ApiConnectionError as ApiConnectionError
|
|
245
|
+
from astrada.exceptions import RateLimitError as RateLimitError
|
|
246
|
+
from astrada.exceptions import SandboxOnlyError as SandboxOnlyError
|
|
247
|
+
from astrada.exceptions import ScopeRequiredError as ScopeRequiredError
|
|
248
|
+
from astrada.exceptions import BadRequestException as BadRequestException
|
|
249
|
+
from astrada.exceptions import UnauthorizedException as UnauthorizedException
|
|
250
|
+
from astrada.exceptions import ForbiddenException as ForbiddenException
|
|
251
|
+
from astrada.exceptions import NotFoundException as NotFoundException
|
|
252
|
+
from astrada.exceptions import ConflictException as ConflictException
|
|
253
|
+
from astrada.exceptions import UnprocessableEntityException as UnprocessableEntityException
|
|
254
|
+
from astrada.exceptions import ServiceException as ServiceException
|
|
255
|
+
from astrada.webhooks import verify_webhook as verify_webhook
|
|
256
|
+
from astrada.webhooks import parse_stored_webhook as parse_stored_webhook
|
|
257
|
+
from astrada.webhooks import WebhookEvent as WebhookEvent
|
|
258
|
+
from astrada.exceptions import UnexpectedScopesError as UnexpectedScopesError
|
|
259
|
+
from astrada.webhooks import TransactionWebhookMessage as TransactionWebhookMessage
|
|
260
|
+
from astrada.webhooks import WebhookVerificationError as WebhookVerificationError
|
|
261
|
+
from astrada.pagination import paginate as paginate
|
|
262
|
+
from astrada.client import Astrada as Astrada
|
|
263
|
+
|
|
264
|
+
# import models into sdk package
|
|
265
|
+
from astrada.models.amex_countries_or_wildcard import AmexCountriesOrWildcard as AmexCountriesOrWildcard
|
|
266
|
+
from astrada.models.bank_linking_policy import BankLinkingPolicy as BankLinkingPolicy
|
|
267
|
+
from astrada.models.bin_lookup import BinLookup as BinLookup
|
|
268
|
+
from astrada.models.bin_lookup_validation_problem import BinLookupValidationProblem as BinLookupValidationProblem
|
|
269
|
+
from astrada.models.bin_lookup_validation_problem_item import BinLookupValidationProblemItem as BinLookupValidationProblemItem
|
|
270
|
+
from astrada.models.bin_lookup_warning import BinLookupWarning as BinLookupWarning
|
|
271
|
+
from astrada.models.card import Card as Card
|
|
272
|
+
from astrada.models.card_embedded import CardEmbedded as CardEmbedded
|
|
273
|
+
from astrada.models.card_links import CardLinks as CardLinks
|
|
274
|
+
from astrada.models.card_list import CardList as CardList
|
|
275
|
+
from astrada.models.card_list_embedded import CardListEmbedded as CardListEmbedded
|
|
276
|
+
from astrada.models.card_subscription import CardSubscription as CardSubscription
|
|
277
|
+
from astrada.models.card_subscription_deactivation_reason import CardSubscriptionDeactivationReason as CardSubscriptionDeactivationReason
|
|
278
|
+
from astrada.models.card_subscription_embedded import CardSubscriptionEmbedded as CardSubscriptionEmbedded
|
|
279
|
+
from astrada.models.card_subscription_links import CardSubscriptionLinks as CardSubscriptionLinks
|
|
280
|
+
from astrada.models.card_subscription_list import CardSubscriptionList as CardSubscriptionList
|
|
281
|
+
from astrada.models.card_subscription_list_embedded import CardSubscriptionListEmbedded as CardSubscriptionListEmbedded
|
|
282
|
+
from astrada.models.card_subscription_update_params import CardSubscriptionUpdateParams as CardSubscriptionUpdateParams
|
|
283
|
+
from astrada.models.card_verification import CardVerification as CardVerification
|
|
284
|
+
from astrada.models.card_verification_links import CardVerificationLinks as CardVerificationLinks
|
|
285
|
+
from astrada.models.card_verification_list import CardVerificationList as CardVerificationList
|
|
286
|
+
from astrada.models.card_verification_list_embedded import CardVerificationListEmbedded as CardVerificationListEmbedded
|
|
287
|
+
from astrada.models.card_verification_unlock_params import CardVerificationUnlockParams as CardVerificationUnlockParams
|
|
288
|
+
from astrada.models.card_verification_unlock_result import CardVerificationUnlockResult as CardVerificationUnlockResult
|
|
289
|
+
from astrada.models.cardholder import Cardholder as Cardholder
|
|
290
|
+
from astrada.models.cardholder_corporate import CardholderCorporate as CardholderCorporate
|
|
291
|
+
from astrada.models.cardholder_corporate_legal_entity import CardholderCorporateLegalEntity as CardholderCorporateLegalEntity
|
|
292
|
+
from astrada.models.cardholder_update_params import CardholderUpdateParams as CardholderUpdateParams
|
|
293
|
+
from astrada.models.cardholder_update_params_corporate import CardholderUpdateParamsCorporate as CardholderUpdateParamsCorporate
|
|
294
|
+
from astrada.models.conflict import Conflict as Conflict
|
|
295
|
+
from astrada.models.consent_policy import ConsentPolicy as ConsentPolicy
|
|
296
|
+
from astrada.models.create_subaccount_configurations import CreateSubaccountConfigurations as CreateSubaccountConfigurations
|
|
297
|
+
from astrada.models.create_subaccount_configurations_amex import CreateSubaccountConfigurationsAMEX as CreateSubaccountConfigurationsAMEX
|
|
298
|
+
from astrada.models.create_subaccount_configurations_amex_bulk_enrollment import CreateSubaccountConfigurationsAMEXBulkEnrollment as CreateSubaccountConfigurationsAMEXBulkEnrollment
|
|
299
|
+
from astrada.models.create_subaccount_configurations_amex_single_enrollment import CreateSubaccountConfigurationsAMEXSingleEnrollment as CreateSubaccountConfigurationsAMEXSingleEnrollment
|
|
300
|
+
from astrada.models.create_subaccount_configurations_mastercard import CreateSubaccountConfigurationsMASTERCARD as CreateSubaccountConfigurationsMASTERCARD
|
|
301
|
+
from astrada.models.create_subaccount_configurations_mastercard_bulk_enrollment import CreateSubaccountConfigurationsMASTERCARDBulkEnrollment as CreateSubaccountConfigurationsMASTERCARDBulkEnrollment
|
|
302
|
+
from astrada.models.create_subaccount_configurations_mastercard_single_enrollment import CreateSubaccountConfigurationsMASTERCARDSingleEnrollment as CreateSubaccountConfigurationsMASTERCARDSingleEnrollment
|
|
303
|
+
from astrada.models.create_subaccount_configurations_visa import CreateSubaccountConfigurationsVISA as CreateSubaccountConfigurationsVISA
|
|
304
|
+
from astrada.models.create_subaccount_configurations_visa_bulk_enrollment import CreateSubaccountConfigurationsVISABulkEnrollment as CreateSubaccountConfigurationsVISABulkEnrollment
|
|
305
|
+
from astrada.models.create_subaccount_configurations_visa_single_enrollment import CreateSubaccountConfigurationsVISASingleEnrollment as CreateSubaccountConfigurationsVISASingleEnrollment
|
|
306
|
+
from astrada.models.customer_enrollment_policy import CustomerEnrollmentPolicy as CustomerEnrollmentPolicy
|
|
307
|
+
from astrada.models.enrollment_link import EnrollmentLink as EnrollmentLink
|
|
308
|
+
from astrada.models.enrollment_link_conflict_problem import EnrollmentLinkConflictProblem as EnrollmentLinkConflictProblem
|
|
309
|
+
from astrada.models.enrollment_link_create_params import EnrollmentLinkCreateParams as EnrollmentLinkCreateParams
|
|
310
|
+
from astrada.models.enrollment_link_create_result import EnrollmentLinkCreateResult as EnrollmentLinkCreateResult
|
|
311
|
+
from astrada.models.enrollment_link_create_validation_problem import EnrollmentLinkCreateValidationProblem as EnrollmentLinkCreateValidationProblem
|
|
312
|
+
from astrada.models.enrollment_link_created_by import EnrollmentLinkCreatedBy as EnrollmentLinkCreatedBy
|
|
313
|
+
from astrada.models.enrollment_link_detail import EnrollmentLinkDetail as EnrollmentLinkDetail
|
|
314
|
+
from astrada.models.enrollment_link_forbidden_problem import EnrollmentLinkForbiddenProblem as EnrollmentLinkForbiddenProblem
|
|
315
|
+
from astrada.models.enrollment_link_list import EnrollmentLinkList as EnrollmentLinkList
|
|
316
|
+
from astrada.models.enrollment_link_list_embedded import EnrollmentLinkListEmbedded as EnrollmentLinkListEmbedded
|
|
317
|
+
from astrada.models.enrollment_link_list_validation_problem import EnrollmentLinkListValidationProblem as EnrollmentLinkListValidationProblem
|
|
318
|
+
from astrada.models.enrollment_link_not_found_problem import EnrollmentLinkNotFoundProblem as EnrollmentLinkNotFoundProblem
|
|
319
|
+
from astrada.models.enrollment_link_rate_limited_problem import EnrollmentLinkRateLimitedProblem as EnrollmentLinkRateLimitedProblem
|
|
320
|
+
from astrada.models.enrollment_link_session import EnrollmentLinkSession as EnrollmentLinkSession
|
|
321
|
+
from astrada.models.enrollment_link_session_outcome import EnrollmentLinkSessionOutcome as EnrollmentLinkSessionOutcome
|
|
322
|
+
from astrada.models.enrollment_link_subaccount_not_found_problem import EnrollmentLinkSubaccountNotFoundProblem as EnrollmentLinkSubaccountNotFoundProblem
|
|
323
|
+
from astrada.models.enrollment_methods_params import EnrollmentMethodsParams as EnrollmentMethodsParams
|
|
324
|
+
from astrada.models.enrollment_methods_result import EnrollmentMethodsResult as EnrollmentMethodsResult
|
|
325
|
+
from astrada.models.enrollment_methods_result_bin_info import EnrollmentMethodsResultBinInfo as EnrollmentMethodsResultBinInfo
|
|
326
|
+
from astrada.models.enrollment_methods_result_single_decision import EnrollmentMethodsResultSingleDecision as EnrollmentMethodsResultSingleDecision
|
|
327
|
+
from astrada.models.enrollment_policy import EnrollmentPolicy as EnrollmentPolicy
|
|
328
|
+
from astrada.models.failure_reason import FailureReason as FailureReason
|
|
329
|
+
from astrada.models.failure_reason_acs_references import FailureReasonAcsReferences as FailureReasonAcsReferences
|
|
330
|
+
from astrada.models.link import Link as Link
|
|
331
|
+
from astrada.models.mastercard_countries_or_wildcard import MastercardCountriesOrWildcard as MastercardCountriesOrWildcard
|
|
332
|
+
from astrada.models.network_blocked_card_rule import NetworkBlockedCardRule as NetworkBlockedCardRule
|
|
333
|
+
from astrada.models.network_bulk_bank_contact import NetworkBulkBankContact as NetworkBulkBankContact
|
|
334
|
+
from astrada.models.network_bulk_bank_contact_params import NetworkBulkBankContactParams as NetworkBulkBankContactParams
|
|
335
|
+
from astrada.models.network_bulk_company_params import NetworkBulkCompanyParams as NetworkBulkCompanyParams
|
|
336
|
+
from astrada.models.network_bulk_confirmation import NetworkBulkConfirmation as NetworkBulkConfirmation
|
|
337
|
+
from astrada.models.network_bulk_confirmation_bin_info import NetworkBulkConfirmationBinInfo as NetworkBulkConfirmationBinInfo
|
|
338
|
+
from astrada.models.network_bulk_confirmation_card_admin import NetworkBulkConfirmationCardAdmin as NetworkBulkConfirmationCardAdmin
|
|
339
|
+
from astrada.models.network_bulk_confirmation_company import NetworkBulkConfirmationCompany as NetworkBulkConfirmationCompany
|
|
340
|
+
from astrada.models.network_bulk_confirmation_create_params import NetworkBulkConfirmationCreateParams as NetworkBulkConfirmationCreateParams
|
|
341
|
+
from astrada.models.network_bulk_confirmation_create_params_bin_info import NetworkBulkConfirmationCreateParamsBinInfo as NetworkBulkConfirmationCreateParamsBinInfo
|
|
342
|
+
from astrada.models.network_bulk_confirmation_create_params_card_admin import NetworkBulkConfirmationCreateParamsCardAdmin as NetworkBulkConfirmationCreateParamsCardAdmin
|
|
343
|
+
from astrada.models.network_bulk_confirmation_create_result import NetworkBulkConfirmationCreateResult as NetworkBulkConfirmationCreateResult
|
|
344
|
+
from astrada.models.network_bulk_confirmation_summary import NetworkBulkConfirmationSummary as NetworkBulkConfirmationSummary
|
|
345
|
+
from astrada.models.network_bulk_enrollment import NetworkBulkEnrollment as NetworkBulkEnrollment
|
|
346
|
+
from astrada.models.network_bulk_enrollment_bin_info import NetworkBulkEnrollmentBinInfo as NetworkBulkEnrollmentBinInfo
|
|
347
|
+
from astrada.models.network_bulk_enrollment_card_admin import NetworkBulkEnrollmentCardAdmin as NetworkBulkEnrollmentCardAdmin
|
|
348
|
+
from astrada.models.network_bulk_enrollment_company import NetworkBulkEnrollmentCompany as NetworkBulkEnrollmentCompany
|
|
349
|
+
from astrada.models.network_bulk_enrollment_consent import NetworkBulkEnrollmentConsent as NetworkBulkEnrollmentConsent
|
|
350
|
+
from astrada.models.network_bulk_enrollment_create_params import NetworkBulkEnrollmentCreateParams as NetworkBulkEnrollmentCreateParams
|
|
351
|
+
from astrada.models.network_bulk_enrollment_create_params_bin_info import NetworkBulkEnrollmentCreateParamsBinInfo as NetworkBulkEnrollmentCreateParamsBinInfo
|
|
352
|
+
from astrada.models.network_bulk_enrollment_create_params_card_admin import NetworkBulkEnrollmentCreateParamsCardAdmin as NetworkBulkEnrollmentCreateParamsCardAdmin
|
|
353
|
+
from astrada.models.network_bulk_enrollment_create_params_consent import NetworkBulkEnrollmentCreateParamsConsent as NetworkBulkEnrollmentCreateParamsConsent
|
|
354
|
+
from astrada.models.network_bulk_enrollment_create_result import NetworkBulkEnrollmentCreateResult as NetworkBulkEnrollmentCreateResult
|
|
355
|
+
from astrada.models.network_bulk_enrollment_links import NetworkBulkEnrollmentLinks as NetworkBulkEnrollmentLinks
|
|
356
|
+
from astrada.models.network_bulk_enrollment_open import NetworkBulkEnrollmentOpen as NetworkBulkEnrollmentOpen
|
|
357
|
+
from astrada.models.network_bulk_enrollment_summary import NetworkBulkEnrollmentSummary as NetworkBulkEnrollmentSummary
|
|
358
|
+
from astrada.models.network_bulk_enrollment_summary_links import NetworkBulkEnrollmentSummaryLinks as NetworkBulkEnrollmentSummaryLinks
|
|
359
|
+
from astrada.models.network_bulk_feed_create_amex import NetworkBulkFeedCreateAmex as NetworkBulkFeedCreateAmex
|
|
360
|
+
from astrada.models.network_bulk_feed_create_common import NetworkBulkFeedCreateCommon as NetworkBulkFeedCreateCommon
|
|
361
|
+
from astrada.models.network_bulk_feed_create_mastercard import NetworkBulkFeedCreateMastercard as NetworkBulkFeedCreateMastercard
|
|
362
|
+
from astrada.models.network_bulk_feed_create_params import NetworkBulkFeedCreateParams as NetworkBulkFeedCreateParams
|
|
363
|
+
from astrada.models.network_bulk_feed_create_visa import NetworkBulkFeedCreateVisa as NetworkBulkFeedCreateVisa
|
|
364
|
+
from astrada.models.network_bulk_feed_list import NetworkBulkFeedList as NetworkBulkFeedList
|
|
365
|
+
from astrada.models.network_bulk_feed_list_embedded import NetworkBulkFeedListEmbedded as NetworkBulkFeedListEmbedded
|
|
366
|
+
from astrada.models.network_bulk_feed_update_params import NetworkBulkFeedUpdateParams as NetworkBulkFeedUpdateParams
|
|
367
|
+
from astrada.models.network_bulk_feeds import NetworkBulkFeeds as NetworkBulkFeeds
|
|
368
|
+
from astrada.models.offset_page_links import OffsetPageLinks as OffsetPageLinks
|
|
369
|
+
from astrada.models.page_links import PageLinks as PageLinks
|
|
370
|
+
from astrada.models.plaid_end_customer import PlaidEndCustomer as PlaidEndCustomer
|
|
371
|
+
from astrada.models.problem import Problem as Problem
|
|
372
|
+
from astrada.models.raw_transaction_message import RawTransactionMessage as RawTransactionMessage
|
|
373
|
+
from astrada.models.raw_transaction_message_links import RawTransactionMessageLinks as RawTransactionMessageLinks
|
|
374
|
+
from astrada.models.self_links import SelfLinks as SelfLinks
|
|
375
|
+
from astrada.models.subaccount import Subaccount as Subaccount
|
|
376
|
+
from astrada.models.subaccount_amex_product import SubaccountAmexProduct as SubaccountAmexProduct
|
|
377
|
+
from astrada.models.subaccount_amex_product_clearing import SubaccountAmexProductClearing as SubaccountAmexProductClearing
|
|
378
|
+
from astrada.models.subaccount_amex_product_real_time_auth import SubaccountAmexProductRealTimeAuth as SubaccountAmexProductRealTimeAuth
|
|
379
|
+
from astrada.models.subaccount_configuration import SubaccountConfiguration as SubaccountConfiguration
|
|
380
|
+
from astrada.models.subaccount_configuration_amex import SubaccountConfigurationAMEX as SubaccountConfigurationAMEX
|
|
381
|
+
from astrada.models.subaccount_configuration_amex_bulk_enrollment import SubaccountConfigurationAMEXBulkEnrollment as SubaccountConfigurationAMEXBulkEnrollment
|
|
382
|
+
from astrada.models.subaccount_configuration_amex_single_enrollment import SubaccountConfigurationAMEXSingleEnrollment as SubaccountConfigurationAMEXSingleEnrollment
|
|
383
|
+
from astrada.models.subaccount_configuration_mastercard import SubaccountConfigurationMASTERCARD as SubaccountConfigurationMASTERCARD
|
|
384
|
+
from astrada.models.subaccount_configuration_mastercard_bulk_enrollment import SubaccountConfigurationMASTERCARDBulkEnrollment as SubaccountConfigurationMASTERCARDBulkEnrollment
|
|
385
|
+
from astrada.models.subaccount_configuration_mastercard_single_enrollment import SubaccountConfigurationMASTERCARDSingleEnrollment as SubaccountConfigurationMASTERCARDSingleEnrollment
|
|
386
|
+
from astrada.models.subaccount_configuration_visa import SubaccountConfigurationVISA as SubaccountConfigurationVISA
|
|
387
|
+
from astrada.models.subaccount_configuration_visa_bulk_enrollment import SubaccountConfigurationVISABulkEnrollment as SubaccountConfigurationVISABulkEnrollment
|
|
388
|
+
from astrada.models.subaccount_configuration_visa_single_enrollment import SubaccountConfigurationVISASingleEnrollment as SubaccountConfigurationVISASingleEnrollment
|
|
389
|
+
from astrada.models.subaccount_create_params import SubaccountCreateParams as SubaccountCreateParams
|
|
390
|
+
from astrada.models.subaccount_enrollment_policy import SubaccountEnrollmentPolicy as SubaccountEnrollmentPolicy
|
|
391
|
+
from astrada.models.subaccount_links import SubaccountLinks as SubaccountLinks
|
|
392
|
+
from astrada.models.subaccount_list import SubaccountList as SubaccountList
|
|
393
|
+
from astrada.models.subaccount_list_embedded import SubaccountListEmbedded as SubaccountListEmbedded
|
|
394
|
+
from astrada.models.subaccount_network_blocked_cards_value import SubaccountNetworkBlockedCardsValue as SubaccountNetworkBlockedCardsValue
|
|
395
|
+
from astrada.models.subaccount_update_params import SubaccountUpdateParams as SubaccountUpdateParams
|
|
396
|
+
from astrada.models.subaccount_update_result import SubaccountUpdateResult as SubaccountUpdateResult
|
|
397
|
+
from astrada.models.team_link import TeamLink as TeamLink
|
|
398
|
+
from astrada.models.transaction import Transaction as Transaction
|
|
399
|
+
from astrada.models.transaction_acceptor import TransactionAcceptor as TransactionAcceptor
|
|
400
|
+
from astrada.models.transaction_embedded import TransactionEmbedded as TransactionEmbedded
|
|
401
|
+
from astrada.models.transaction_links import TransactionLinks as TransactionLinks
|
|
402
|
+
from astrada.models.transaction_list import TransactionList as TransactionList
|
|
403
|
+
from astrada.models.transaction_list_embedded import TransactionListEmbedded as TransactionListEmbedded
|
|
404
|
+
from astrada.models.transaction_message import TransactionMessage as TransactionMessage
|
|
405
|
+
from astrada.models.transaction_message_acceptor import TransactionMessageAcceptor as TransactionMessageAcceptor
|
|
406
|
+
from astrada.models.transaction_message_bank_data import TransactionMessageBankData as TransactionMessageBankData
|
|
407
|
+
from astrada.models.transaction_message_bank_data_personal_finance_category import TransactionMessageBankDataPersonalFinanceCategory as TransactionMessageBankDataPersonalFinanceCategory
|
|
408
|
+
from astrada.models.transaction_message_links import TransactionMessageLinks as TransactionMessageLinks
|
|
409
|
+
from astrada.models.unprocessable_entity import UnprocessableEntity as UnprocessableEntity
|
|
410
|
+
from astrada.models.validation_problem import ValidationProblem as ValidationProblem
|
|
411
|
+
from astrada.models.validation_problem_item import ValidationProblemItem as ValidationProblemItem
|
|
412
|
+
from astrada.models.verification_policy import VerificationPolicy as VerificationPolicy
|
|
413
|
+
from astrada.models.visa_countries_or_wildcard import VisaCountriesOrWildcard as VisaCountriesOrWildcard
|
|
414
|
+
from astrada.models.webhook import Webhook as Webhook
|
|
415
|
+
from astrada.models.webhook_create_params import WebhookCreateParams as WebhookCreateParams
|
|
416
|
+
from astrada.models.webhook_create_result import WebhookCreateResult as WebhookCreateResult
|
|
417
|
+
from astrada.models.webhook_list import WebhookList as WebhookList
|
|
418
|
+
from astrada.models.webhook_list_embedded import WebhookListEmbedded as WebhookListEmbedded
|
|
419
|
+
from astrada.models.webhook_list_links import WebhookListLinks as WebhookListLinks
|
|
420
|
+
from astrada.models.webhook_update_params import WebhookUpdateParams as WebhookUpdateParams
|
|
421
|
+
|
astrada/_lenient.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
"""Response parsing that tolerates values the SDK does not know yet. Hand-written; not generated.
|
|
3
|
+
|
|
4
|
+
Enum checks in the generated models stop a request with a value the API does not accept. When the
|
|
5
|
+
SDK parses a response (or a webhook) instead, a value added to the API after this SDK was released
|
|
6
|
+
must not fail the call: inside :func:`lenient` the enum checks keep the unknown value as a plain
|
|
7
|
+
string.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import contextlib
|
|
11
|
+
import contextvars
|
|
12
|
+
from typing import Iterator
|
|
13
|
+
|
|
14
|
+
_LENIENT: contextvars.ContextVar[bool] = contextvars.ContextVar("astrada_lenient", default=False)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def active() -> bool:
|
|
18
|
+
"""True while a response or webhook is being parsed."""
|
|
19
|
+
return _LENIENT.get()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@contextlib.contextmanager
|
|
23
|
+
def lenient() -> Iterator[None]:
|
|
24
|
+
token = _LENIENT.set(True)
|
|
25
|
+
try:
|
|
26
|
+
yield
|
|
27
|
+
finally:
|
|
28
|
+
_LENIENT.reset(token)
|
astrada/_retry.py
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
"""The default retry policy and timeout. Hand-written; not generated."""
|
|
3
|
+
|
|
4
|
+
from typing import Any, Optional, Union
|
|
5
|
+
|
|
6
|
+
from urllib3.exceptions import InvalidHeader, MaxRetryError, ResponseError
|
|
7
|
+
from urllib3.util.retry import Retry
|
|
8
|
+
|
|
9
|
+
DEFAULT_TIMEOUT = 60.0
|
|
10
|
+
"""Seconds to wait for the API to answer, per request (connect and read)."""
|
|
11
|
+
|
|
12
|
+
DEFAULT_MAX_RETRIES = 2
|
|
13
|
+
"""Retries after the first attempt."""
|
|
14
|
+
|
|
15
|
+
SANDBOX_DELETE_TIMEOUT = 300.0
|
|
16
|
+
"""Seconds the sandbox-only deletes wait at least (they answer when the cascading delete is done).
|
|
17
|
+
They are never retried: a second call while the first still runs is not safe."""
|
|
18
|
+
|
|
19
|
+
RETRY_STATUSES = frozenset({429, 500, 502, 503, 504})
|
|
20
|
+
IDEMPOTENT_METHODS = frozenset({"GET", "HEAD", "PUT", "DELETE", "OPTIONS"})
|
|
21
|
+
MAX_RETRY_AFTER = 60.0
|
|
22
|
+
"""The longest Retry-After wait the SDK honours, in seconds; a longer one ends the retries."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AstradaRetry(Retry):
|
|
26
|
+
"""urllib3 Retry that gives up instead of sleeping through a very long Retry-After.
|
|
27
|
+
|
|
28
|
+
When a 429 or 503 asks for a wait longer than MAX_RETRY_AFTER, the retries end there and the
|
|
29
|
+
response is raised as its exception (``RateLimitError.retry_after`` gives the wait), so the SDK
|
|
30
|
+
never retries earlier than the API asked.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def get_retry_after(self, response: Any) -> Optional[float]:
|
|
34
|
+
"""The Retry-After wait, or None when the header is missing or malformed (``1.5``): a bad
|
|
35
|
+
header then means the usual backoff, not an error that hides the real answer."""
|
|
36
|
+
try:
|
|
37
|
+
return super().get_retry_after(response)
|
|
38
|
+
except InvalidHeader:
|
|
39
|
+
return None
|
|
40
|
+
|
|
41
|
+
def increment( # type: ignore[override]
|
|
42
|
+
self,
|
|
43
|
+
method: Optional[str] = None,
|
|
44
|
+
url: Optional[str] = None,
|
|
45
|
+
response: Any = None,
|
|
46
|
+
error: Optional[Exception] = None,
|
|
47
|
+
_pool: Any = None,
|
|
48
|
+
_stacktrace: Any = None,
|
|
49
|
+
) -> Retry:
|
|
50
|
+
if response is not None and self.respect_retry_after_header \
|
|
51
|
+
and response.status in self.RETRY_AFTER_STATUS_CODES:
|
|
52
|
+
wait = self.get_retry_after(response)
|
|
53
|
+
if wait is not None and wait > MAX_RETRY_AFTER:
|
|
54
|
+
raise MaxRetryError(_pool, url or "", ResponseError(
|
|
55
|
+
"Retry-After of %.0f s is longer than %.0f s" % (wait, MAX_RETRY_AFTER)))
|
|
56
|
+
return super().increment(method, url, response, error, _pool, _stacktrace)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def build_retry(retries: Union[None, int, Retry]) -> Retry:
|
|
60
|
+
"""The urllib3 Retry for ``retries``: a count, a Retry of your own, or None for the default.
|
|
61
|
+
|
|
62
|
+
Connection failures are retried for every method (nothing reached the API). A response with
|
|
63
|
+
status 429, 500, 502, 503 or 504 is retried only for GET, HEAD, PUT, DELETE and OPTIONS, so a
|
|
64
|
+
POST or PATCH is never sent twice. Waits grow 0.5 s, 1 s, 2 s and so on (at most 8 s), and a
|
|
65
|
+
Retry-After header on 429 or 503 is honoured when it is at most 60 s; a longer one ends the
|
|
66
|
+
retries at once. When the retries run out, the last
|
|
67
|
+
response is returned and raised as the matching exception (for example ``RateLimitError``).
|
|
68
|
+
"""
|
|
69
|
+
if isinstance(retries, Retry):
|
|
70
|
+
# A Retry of your own is used as given, except that running out of retries returns the
|
|
71
|
+
# last answer (raised as its exception, such as RateLimitError) instead of MaxRetryError.
|
|
72
|
+
return retries.new(raise_on_status=False)
|
|
73
|
+
count = DEFAULT_MAX_RETRIES if retries is None else int(retries)
|
|
74
|
+
return AstradaRetry(
|
|
75
|
+
total=count,
|
|
76
|
+
connect=count,
|
|
77
|
+
read=count,
|
|
78
|
+
status=count,
|
|
79
|
+
other=0,
|
|
80
|
+
backoff_factor=0.5,
|
|
81
|
+
backoff_max=8,
|
|
82
|
+
status_forcelist=RETRY_STATUSES,
|
|
83
|
+
allowed_methods=IDEMPOTENT_METHODS,
|
|
84
|
+
respect_retry_after_header=True,
|
|
85
|
+
raise_on_status=False,
|
|
86
|
+
raise_on_redirect=False,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def build_login_retry(retries: Union[None, int, Retry]) -> Retry:
|
|
91
|
+
"""The Retry for the login (the OAuth2 token request): the same as ``build_retry``, and its POST
|
|
92
|
+
is retried too (a 429, a 5xx or a read timeout), as asking for a token again changes nothing.
|
|
93
|
+
POST is added to a Retry of your own as well."""
|
|
94
|
+
retry = build_retry(retries)
|
|
95
|
+
allowed = retry.allowed_methods
|
|
96
|
+
if allowed:
|
|
97
|
+
retry = retry.new(allowed_methods=frozenset(allowed) | {"POST"})
|
|
98
|
+
return retry
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def timeout_or_default(value: Optional[float]) -> float:
|
|
102
|
+
return DEFAULT_TIMEOUT if value is None else float(value)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
"""The check that keeps sandbox-only calls off production. Hand-written; not generated.
|
|
3
|
+
|
|
4
|
+
Every request of the generated ``astrada.sandbox`` package goes through :func:`check` first (its
|
|
5
|
+
ApiClient calls it before building the request, so not even a login is sent). A call passes only
|
|
6
|
+
when the configuration's environment is ``"sandbox"`` and its base URL is the sandbox API, or a
|
|
7
|
+
custom base URL that was explicitly marked as a sandbox with ``sandbox_base_url=True``.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from typing import Any
|
|
11
|
+
from urllib.parse import urlsplit
|
|
12
|
+
|
|
13
|
+
from astrada.environments import Environment
|
|
14
|
+
from astrada.exceptions import SandboxOnlyError
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def check(configuration: Any) -> None:
|
|
18
|
+
"""Raise SandboxOnlyError unless ``configuration`` points at a sandbox."""
|
|
19
|
+
environment = getattr(configuration, "environment", None)
|
|
20
|
+
if environment != "sandbox":
|
|
21
|
+
raise SandboxOnlyError(
|
|
22
|
+
"Sandbox-only calls (simulations and test-data deletes) only run in the sandbox; this "
|
|
23
|
+
"client's environment is %s."
|
|
24
|
+
% ("production" if environment is None else repr(environment))
|
|
25
|
+
)
|
|
26
|
+
parts = urlsplit(str(configuration.host))
|
|
27
|
+
host = parts.netloc.lower()
|
|
28
|
+
sandbox = urlsplit(Environment.SANDBOX)
|
|
29
|
+
if host == sandbox.netloc.lower():
|
|
30
|
+
if parts.scheme.lower() != sandbox.scheme.lower():
|
|
31
|
+
# The login sends the client secret: never over plain HTTP to the real sandbox.
|
|
32
|
+
raise SandboxOnlyError(
|
|
33
|
+
"Sandbox-only calls to %s need %s; this client's base URL is %s."
|
|
34
|
+
% (Environment.SANDBOX, sandbox.scheme, configuration.host)
|
|
35
|
+
)
|
|
36
|
+
return
|
|
37
|
+
hostname = (parts.hostname or "").lower().rstrip(".")
|
|
38
|
+
astrada_host = hostname == "astrada.co" or hostname.endswith(".astrada.co")
|
|
39
|
+
# The marker is for hosts outside Astrada (a local mock, Prism, a proxy). An Astrada host other
|
|
40
|
+
# than the sandbox API (production above all) is refused even when marked.
|
|
41
|
+
if getattr(configuration, "sandbox_base_url", False) is True and not astrada_host:
|
|
42
|
+
return
|
|
43
|
+
raise SandboxOnlyError(
|
|
44
|
+
"Sandbox-only calls only run against %s; this client's base URL is %s. Pass "
|
|
45
|
+
"sandbox_base_url=True to mark a custom base URL (a proxy or a local mock) as a sandbox."
|
|
46
|
+
% (Environment.SANDBOX, configuration.host)
|
|
47
|
+
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
"""Written by scripts/sandbox-routes.mjs from the sandbox-only API definition; do not edit."""
|
|
3
|
+
|
|
4
|
+
import re
|
|
5
|
+
from typing import List, Pattern, Tuple
|
|
6
|
+
|
|
7
|
+
SANDBOX_ROUTES: List[Tuple[str, Pattern[str]]] = [
|
|
8
|
+
("DELETE", re.compile(r"^/card-subscriptions/[^/]+$")), # /card-subscriptions/{subscriptionId}
|
|
9
|
+
("DELETE", re.compile(r"^/network-bulk-feeds/[^/]+$")), # /network-bulk-feeds/{networkBulkFeedId}
|
|
10
|
+
("POST", re.compile(r"^/simulate/ingestion/amex-gl$")), # /simulate/ingestion/amex-gl
|
|
11
|
+
("POST", re.compile(r"^/simulate/ingestion/smartdata$")), # /simulate/ingestion/smartdata
|
|
12
|
+
("POST", re.compile(r"^/simulate/ingestion/vbds$")), # /simulate/ingestion/vbds
|
|
13
|
+
("POST", re.compile(r"^/simulate/ingestion/vcf$")), # /simulate/ingestion/vcf
|
|
14
|
+
("POST", re.compile(r"^/simulate/transaction/scenario$")), # /simulate/transaction/scenario
|
|
15
|
+
("POST", re.compile(r"^/simulate/transactions/[^/]+$")), # /simulate/transactions/{transactionId}
|
|
16
|
+
("POST", re.compile(r"^/simulate/transactions$")), # /simulate/transactions
|
|
17
|
+
("DELETE", re.compile(r"^/subaccounts/[^/]+$")), # /subaccounts/{subaccountId}
|
|
18
|
+
]
|
|
19
|
+
"""The sandbox-only operations: method and a pattern for the decoded, lower-case path."""
|