kard-financial-sdk 0.0.82__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.
- kard/__init__.py +579 -0
- kard/auth/__init__.py +34 -0
- kard/auth/client.py +121 -0
- kard/auth/raw_client.py +108 -0
- kard/auth/types/__init__.py +34 -0
- kard/auth/types/token_response.py +25 -0
- kard/client.py +416 -0
- kard/commons/__init__.py +120 -0
- kard/commons/errors/__init__.py +44 -0
- kard/commons/errors/conflict_error.py +11 -0
- kard/commons/errors/does_not_exist_error.py +11 -0
- kard/commons/errors/internal_server_error.py +11 -0
- kard/commons/errors/invalid_request.py +11 -0
- kard/commons/errors/unauthorized_error.py +11 -0
- kard/commons/types/__init__.py +107 -0
- kard/commons/types/category_option.py +26 -0
- kard/commons/types/commission_type.py +5 -0
- kard/commons/types/commission_value.py +28 -0
- kard/commons/types/commission_value_type.py +5 -0
- kard/commons/types/empty_object.py +17 -0
- kard/commons/types/enrolled_rewards_type.py +5 -0
- kard/commons/types/error_object.py +43 -0
- kard/commons/types/error_response.py +20 -0
- kard/commons/types/error_source.py +32 -0
- kard/commons/types/job.py +24 -0
- kard/commons/types/job_response.py +27 -0
- kard/commons/types/job_status.py +5 -0
- kard/commons/types/links.py +27 -0
- kard/commons/types/mongo_id.py +3 -0
- kard/commons/types/notification_type.py +19 -0
- kard/commons/types/organization_id.py +3 -0
- kard/commons/types/purchase_channel.py +5 -0
- kard/commons/types/relationship_data.py +24 -0
- kard/commons/types/relationship_multiple.py +20 -0
- kard/commons/types/relationship_single.py +20 -0
- kard/commons/types/resource_type.py +3 -0
- kard/commons/types/state.py +68 -0
- kard/commons/types/subscription_id.py +3 -0
- kard/commons/types/user_id.py +3 -0
- kard/core/__init__.py +105 -0
- kard/core/api_error.py +23 -0
- kard/core/client_wrapper.py +97 -0
- kard/core/datetime_utils.py +28 -0
- kard/core/file.py +67 -0
- kard/core/force_multipart.py +18 -0
- kard/core/http_client.py +613 -0
- kard/core/http_response.py +55 -0
- kard/core/http_sse/__init__.py +42 -0
- kard/core/http_sse/_api.py +112 -0
- kard/core/http_sse/_decoders.py +61 -0
- kard/core/http_sse/_exceptions.py +7 -0
- kard/core/http_sse/_models.py +17 -0
- kard/core/jsonable_encoder.py +100 -0
- kard/core/oauth_token_provider.py +73 -0
- kard/core/pydantic_utilities.py +260 -0
- kard/core/query_encoder.py +58 -0
- kard/core/remove_none_from_dict.py +11 -0
- kard/core/request_options.py +35 -0
- kard/core/serialization.py +276 -0
- kard/environment.py +8 -0
- kard/files/__init__.py +58 -0
- kard/files/client.py +213 -0
- kard/files/errors/__init__.py +34 -0
- kard/files/errors/forbidden_error.py +11 -0
- kard/files/raw_client.py +278 -0
- kard/files/types/__init__.py +53 -0
- kard/files/types/file_metadata_attribute.py +39 -0
- kard/files/types/file_metadata_with_url.py +34 -0
- kard/files/types/file_type.py +13 -0
- kard/files/types/files_metadata_sort_options.py +5 -0
- kard/files/types/get_files_metadata_response.py +71 -0
- kard/files/types/pagination_meta.py +29 -0
- kard/notifications/__init__.py +279 -0
- kard/notifications/client.py +63 -0
- kard/notifications/raw_client.py +13 -0
- kard/notifications/subscriptions/__init__.py +97 -0
- kard/notifications/subscriptions/client.py +372 -0
- kard/notifications/subscriptions/raw_client.py +581 -0
- kard/notifications/subscriptions/types/__init__.py +94 -0
- kard/notifications/subscriptions/types/create_subscription_union.py +27 -0
- kard/notifications/subscriptions/types/create_subscriptions_response_object.py +43 -0
- kard/notifications/subscriptions/types/created_subscription.py +23 -0
- kard/notifications/subscriptions/types/subscription.py +25 -0
- kard/notifications/subscriptions/types/subscription_attributes.py +35 -0
- kard/notifications/subscriptions/types/subscription_request.py +20 -0
- kard/notifications/subscriptions/types/subscription_request_attributes.py +35 -0
- kard/notifications/subscriptions/types/subscription_request_body.py +42 -0
- kard/notifications/subscriptions/types/subscription_request_union.py +26 -0
- kard/notifications/subscriptions/types/subscription_union.py +27 -0
- kard/notifications/subscriptions/types/subscriptions_response_object.py +43 -0
- kard/notifications/subscriptions/types/update_subscription_request.py +20 -0
- kard/notifications/subscriptions/types/update_subscription_request_attributes.py +39 -0
- kard/notifications/subscriptions/types/update_subscription_request_body.py +40 -0
- kard/notifications/subscriptions/types/update_subscription_request_union.py +26 -0
- kard/notifications/subscriptions/types/update_subscriptions_response_object.py +41 -0
- kard/notifications/types/__init__.py +214 -0
- kard/notifications/types/audit_update_attributes.py +88 -0
- kard/notifications/types/audit_update_data.py +27 -0
- kard/notifications/types/audit_update_relationships.py +21 -0
- kard/notifications/types/broker_amount.py +28 -0
- kard/notifications/types/broker_amount_type.py +5 -0
- kard/notifications/types/broker_asset.py +33 -0
- kard/notifications/types/broker_asset_type.py +5 -0
- kard/notifications/types/broker_operation_hours.py +30 -0
- kard/notifications/types/broker_operation_period.py +28 -0
- kard/notifications/types/broker_purchase_channel.py +5 -0
- kard/notifications/types/broker_reward.py +28 -0
- kard/notifications/types/broker_reward_type.py +5 -0
- kard/notifications/types/clawback_data.py +27 -0
- kard/notifications/types/earned_reward_approved_data.py +27 -0
- kard/notifications/types/earned_reward_attributes.py +18 -0
- kard/notifications/types/earned_reward_relationships.py +21 -0
- kard/notifications/types/earned_reward_settled_attributes.py +23 -0
- kard/notifications/types/earned_reward_settled_data.py +27 -0
- kard/notifications/types/failed_transaction_attributes.py +41 -0
- kard/notifications/types/failed_transaction_data.py +27 -0
- kard/notifications/types/failed_transaction_relationships.py +22 -0
- kard/notifications/types/location_address.py +39 -0
- kard/notifications/types/location_coordinates.py +27 -0
- kard/notifications/types/location_status.py +5 -0
- kard/notifications/types/merchant_source.py +5 -0
- kard/notifications/types/notification_data_union.py +203 -0
- kard/notifications/types/notification_metadata.py +22 -0
- kard/notifications/types/notification_payload.py +65 -0
- kard/notifications/types/offer_status.py +5 -0
- kard/notifications/types/offer_type.py +5 -0
- kard/notifications/types/reward_notification_attributes.py +48 -0
- kard/notifications/types/time_period.py +27 -0
- kard/notifications/types/transaction_relationships.py +22 -0
- kard/notifications/types/user_offer_status.py +5 -0
- kard/notifications/types/valid_transaction_attributes.py +25 -0
- kard/notifications/types/valid_transaction_commission_earned.py +21 -0
- kard/notifications/types/valid_transaction_data.py +27 -0
- kard/notifications/types/webhook_locations_attributes.py +71 -0
- kard/notifications/types/webhook_locations_data.py +27 -0
- kard/notifications/types/webhook_locations_relationships.py +20 -0
- kard/notifications/types/webhook_merchant_attributes.py +67 -0
- kard/notifications/types/webhook_merchant_data.py +27 -0
- kard/notifications/types/webhook_merchant_relationships.py +20 -0
- kard/notifications/types/webhook_offer_attributes.py +143 -0
- kard/notifications/types/webhook_offer_data.py +27 -0
- kard/notifications/types/webhook_offer_relationships.py +20 -0
- kard/notifications/types/webhook_user_offer_attributes.py +41 -0
- kard/notifications/types/webhook_user_offer_data.py +27 -0
- kard/notifications/types/webhook_user_offer_relationships.py +21 -0
- kard/ping/__init__.py +39 -0
- kard/ping/client.py +100 -0
- kard/ping/errors/__init__.py +34 -0
- kard/ping/errors/network_blocked_error.py +11 -0
- kard/ping/raw_client.py +113 -0
- kard/ping/types/__init__.py +38 -0
- kard/ping/types/network_blocked_error_body.py +34 -0
- kard/ping/types/ping_response_object.py +46 -0
- kard/py.typed +0 -0
- kard/transactions/__init__.py +212 -0
- kard/transactions/client.py +639 -0
- kard/transactions/errors/__init__.py +40 -0
- kard/transactions/errors/create_audit_multi_status.py +11 -0
- kard/transactions/errors/create_incoming_transactions_multi_status.py +11 -0
- kard/transactions/errors/fraud_multi_status.py +11 -0
- kard/transactions/raw_client.py +925 -0
- kard/transactions/types/__init__.py +199 -0
- kard/transactions/types/audit_attributes.py +44 -0
- kard/transactions/types/audit_request_data.py +20 -0
- kard/transactions/types/audit_response_attributes.py +24 -0
- kard/transactions/types/audit_response_data.py +25 -0
- kard/transactions/types/audit_status.py +5 -0
- kard/transactions/types/card_network.py +5 -0
- kard/transactions/types/commission_earned_details.py +21 -0
- kard/transactions/types/create_audit_multi_status_response.py +21 -0
- kard/transactions/types/create_audit_request_body.py +43 -0
- kard/transactions/types/create_audit_request_data_union.py +26 -0
- kard/transactions/types/create_audit_response_body.py +41 -0
- kard/transactions/types/create_audit_response_data_union.py +27 -0
- kard/transactions/types/direction_type.py +5 -0
- kard/transactions/types/fraudulent_transaction_attributes.py +24 -0
- kard/transactions/types/fraudulent_transaction_data.py +30 -0
- kard/transactions/types/fraudulent_transaction_object.py +42 -0
- kard/transactions/types/fraudulent_transaction_request_body.py +45 -0
- kard/transactions/types/fraudulent_transaction_response.py +21 -0
- kard/transactions/types/get_earned_rewards_response.py +133 -0
- kard/transactions/types/matched_transactions_attributes.py +156 -0
- kard/transactions/types/matched_transactions_request.py +25 -0
- kard/transactions/types/merchant.py +82 -0
- kard/transactions/types/payment_status.py +5 -0
- kard/transactions/types/payment_type.py +5 -0
- kard/transactions/types/processor_mid.py +26 -0
- kard/transactions/types/receipt_medium_type.py +5 -0
- kard/transactions/types/rewarded_transaction.py +27 -0
- kard/transactions/types/rewarded_transaction_attributes.py +74 -0
- kard/transactions/types/rewarded_transaction_relationships.py +22 -0
- kard/transactions/types/rewarded_transaction_status.py +5 -0
- kard/transactions/types/rewarded_transaction_union.py +29 -0
- kard/transactions/types/states.py +68 -0
- kard/transactions/types/transaction_included_resource.py +47 -0
- kard/transactions/types/transaction_merchant_attributes.py +22 -0
- kard/transactions/types/transaction_merchant_resource.py +28 -0
- kard/transactions/types/transaction_offer_attributes.py +26 -0
- kard/transactions/types/transaction_offer_resource.py +28 -0
- kard/transactions/types/transaction_payment_type.py +5 -0
- kard/transactions/types/transaction_status.py +5 -0
- kard/transactions/types/transactions.py +46 -0
- kard/transactions/types/transactions_attributes.py +198 -0
- kard/transactions/types/transactions_multi_response.py +21 -0
- kard/transactions/types/transactions_request.py +25 -0
- kard/transactions/types/transactions_request_body.py +90 -0
- kard/transactions/types/transactions_response.py +38 -0
- kard/transactions/types/transactions_response_data.py +27 -0
- kard/transactions/types/visa_mid.py +23 -0
- kard/transactions/types/visa_mid_details.py +27 -0
- kard/users/__init__.py +293 -0
- kard/users/attributions/__init__.py +73 -0
- kard/users/attributions/client.py +229 -0
- kard/users/attributions/raw_client.py +215 -0
- kard/users/attributions/types/__init__.py +73 -0
- kard/users/attributions/types/create_attribution_request_object.py +75 -0
- kard/users/attributions/types/create_attribution_request_union.py +45 -0
- kard/users/attributions/types/create_attribution_response.py +38 -0
- kard/users/attributions/types/event_code.py +5 -0
- kard/users/attributions/types/notification_attribution_attributes.py +35 -0
- kard/users/attributions/types/notification_attribution_request.py +20 -0
- kard/users/attributions/types/notification_medium.py +5 -0
- kard/users/attributions/types/offer_attribution_attributes.py +35 -0
- kard/users/attributions/types/offer_attribution_request.py +20 -0
- kard/users/attributions/types/offer_medium.py +5 -0
- kard/users/client.py +512 -0
- kard/users/errors/__init__.py +34 -0
- kard/users/errors/multi_status.py +11 -0
- kard/users/raw_client.py +783 -0
- kard/users/rewards/__init__.py +133 -0
- kard/users/rewards/client.py +448 -0
- kard/users/rewards/raw_client.py +587 -0
- kard/users/rewards/types/__init__.py +130 -0
- kard/users/rewards/types/amount.py +21 -0
- kard/users/rewards/types/amount_type.py +5 -0
- kard/users/rewards/types/asset.py +28 -0
- kard/users/rewards/types/category_data.py +18 -0
- kard/users/rewards/types/category_fields.py +23 -0
- kard/users/rewards/types/category_identifier.py +24 -0
- kard/users/rewards/types/category_included.py +21 -0
- kard/users/rewards/types/category_relationship.py +20 -0
- kard/users/rewards/types/category_relationship_object.py +20 -0
- kard/users/rewards/types/commission.py +21 -0
- kard/users/rewards/types/coordinates.py +20 -0
- kard/users/rewards/types/eligibility_location_address.py +24 -0
- kard/users/rewards/types/eligibility_location_included.py +8 -0
- kard/users/rewards/types/eligibility_offer_included.py +7 -0
- kard/users/rewards/types/eligibility_offer_relationship.py +7 -0
- kard/users/rewards/types/location_attributes.py +28 -0
- kard/users/rewards/types/location_data.py +32 -0
- kard/users/rewards/types/location_relationships.py +18 -0
- kard/users/rewards/types/location_sort_options.py +5 -0
- kard/users/rewards/types/locations_response_object.py +215 -0
- kard/users/rewards/types/offer_common_fields.py +103 -0
- kard/users/rewards/types/offer_data_union.py +30 -0
- kard/users/rewards/types/offer_relationship.py +21 -0
- kard/users/rewards/types/offer_sort_options.py +7 -0
- kard/users/rewards/types/offers_response_object.py +130 -0
- kard/users/rewards/types/operation_hours.py +23 -0
- kard/users/rewards/types/operation_period.py +21 -0
- kard/users/rewards/types/operation_time.py +20 -0
- kard/users/rewards/types/standard_offer.py +21 -0
- kard/users/rewards/types/standard_offer_core.py +26 -0
- kard/users/rewards/types/standard_offer_fields.py +18 -0
- kard/users/types/__init__.py +66 -0
- kard/users/types/create_users_multi_status_response.py +21 -0
- kard/users/types/create_users_object.py +42 -0
- kard/users/types/delete_user_response_object.py +34 -0
- kard/users/types/update_user_object.py +40 -0
- kard/users/types/user_request_attributes.py +60 -0
- kard/users/types/user_request_data.py +22 -0
- kard/users/types/user_request_data_union.py +28 -0
- kard/users/types/user_response_no_data.py +22 -0
- kard/users/types/user_response_union_no_data.py +28 -0
- kard/users/uploads/__init__.py +112 -0
- kard/users/uploads/client.py +484 -0
- kard/users/uploads/errors/__init__.py +34 -0
- kard/users/uploads/errors/upload_part_multi_status.py +13 -0
- kard/users/uploads/raw_client.py +625 -0
- kard/users/uploads/types/__init__.py +119 -0
- kard/users/uploads/types/create_upload_part_data_union.py +27 -0
- kard/users/uploads/types/create_upload_part_multi_status_response.py +21 -0
- kard/users/uploads/types/create_upload_part_request_object.py +74 -0
- kard/users/uploads/types/create_upload_part_response_data.py +25 -0
- kard/users/uploads/types/create_upload_part_response_data_union.py +27 -0
- kard/users/uploads/types/create_upload_part_response_object.py +39 -0
- kard/users/uploads/types/create_upload_request_data_union.py +26 -0
- kard/users/uploads/types/create_upload_request_object.py +36 -0
- kard/users/uploads/types/create_upload_response_data.py +25 -0
- kard/users/uploads/types/create_upload_response_data_union.py +27 -0
- kard/users/uploads/types/create_upload_response_object.py +37 -0
- kard/users/uploads/types/historical_transaction_complete_no_data.py +25 -0
- kard/users/uploads/types/start_historical_upload_no_data.py +20 -0
- kard/users/uploads/types/update_upload_request_data_union.py +27 -0
- kard/users/uploads/types/update_upload_request_object.py +37 -0
- kard/users/uploads/types/update_upload_response_data.py +25 -0
- kard/users/uploads/types/update_upload_response_data_union.py +27 -0
- kard/users/uploads/types/update_upload_response_object.py +37 -0
- kard/version.py +3 -0
- kard_financial_sdk-0.0.82.dist-info/METADATA +238 -0
- kard_financial_sdk-0.0.82.dist-info/RECORD +302 -0
- kard_financial_sdk-0.0.82.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .create_upload_part_data_union import (
|
|
10
|
+
CreateUploadPartDataUnion,
|
|
11
|
+
CreateUploadPartDataUnion_HistoricalTransaction,
|
|
12
|
+
)
|
|
13
|
+
from .create_upload_part_multi_status_response import CreateUploadPartMultiStatusResponse
|
|
14
|
+
from .create_upload_part_request_object import CreateUploadPartRequestObject
|
|
15
|
+
from .create_upload_part_response_data import CreateUploadPartResponseData
|
|
16
|
+
from .create_upload_part_response_data_union import (
|
|
17
|
+
CreateUploadPartResponseDataUnion,
|
|
18
|
+
CreateUploadPartResponseDataUnion_HistoricalTransaction,
|
|
19
|
+
)
|
|
20
|
+
from .create_upload_part_response_object import CreateUploadPartResponseObject
|
|
21
|
+
from .create_upload_request_data_union import (
|
|
22
|
+
CreateUploadRequestDataUnion,
|
|
23
|
+
CreateUploadRequestDataUnion_HistoricalTransactionStart,
|
|
24
|
+
)
|
|
25
|
+
from .create_upload_request_object import CreateUploadRequestObject
|
|
26
|
+
from .create_upload_response_data import CreateUploadResponseData
|
|
27
|
+
from .create_upload_response_data_union import (
|
|
28
|
+
CreateUploadResponseDataUnion,
|
|
29
|
+
CreateUploadResponseDataUnion_HistoricalTransactionStart,
|
|
30
|
+
)
|
|
31
|
+
from .create_upload_response_object import CreateUploadResponseObject
|
|
32
|
+
from .historical_transaction_complete_no_data import HistoricalTransactionCompleteNoData
|
|
33
|
+
from .start_historical_upload_no_data import StartHistoricalUploadNoData
|
|
34
|
+
from .update_upload_request_data_union import (
|
|
35
|
+
UpdateUploadRequestDataUnion,
|
|
36
|
+
UpdateUploadRequestDataUnion_HistoricalTransactionComplete,
|
|
37
|
+
)
|
|
38
|
+
from .update_upload_request_object import UpdateUploadRequestObject
|
|
39
|
+
from .update_upload_response_data import UpdateUploadResponseData
|
|
40
|
+
from .update_upload_response_data_union import (
|
|
41
|
+
UpdateUploadResponseDataUnion,
|
|
42
|
+
UpdateUploadResponseDataUnion_HistoricalTransactionComplete,
|
|
43
|
+
)
|
|
44
|
+
from .update_upload_response_object import UpdateUploadResponseObject
|
|
45
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
46
|
+
"CreateUploadPartDataUnion": ".create_upload_part_data_union",
|
|
47
|
+
"CreateUploadPartDataUnion_HistoricalTransaction": ".create_upload_part_data_union",
|
|
48
|
+
"CreateUploadPartMultiStatusResponse": ".create_upload_part_multi_status_response",
|
|
49
|
+
"CreateUploadPartRequestObject": ".create_upload_part_request_object",
|
|
50
|
+
"CreateUploadPartResponseData": ".create_upload_part_response_data",
|
|
51
|
+
"CreateUploadPartResponseDataUnion": ".create_upload_part_response_data_union",
|
|
52
|
+
"CreateUploadPartResponseDataUnion_HistoricalTransaction": ".create_upload_part_response_data_union",
|
|
53
|
+
"CreateUploadPartResponseObject": ".create_upload_part_response_object",
|
|
54
|
+
"CreateUploadRequestDataUnion": ".create_upload_request_data_union",
|
|
55
|
+
"CreateUploadRequestDataUnion_HistoricalTransactionStart": ".create_upload_request_data_union",
|
|
56
|
+
"CreateUploadRequestObject": ".create_upload_request_object",
|
|
57
|
+
"CreateUploadResponseData": ".create_upload_response_data",
|
|
58
|
+
"CreateUploadResponseDataUnion": ".create_upload_response_data_union",
|
|
59
|
+
"CreateUploadResponseDataUnion_HistoricalTransactionStart": ".create_upload_response_data_union",
|
|
60
|
+
"CreateUploadResponseObject": ".create_upload_response_object",
|
|
61
|
+
"HistoricalTransactionCompleteNoData": ".historical_transaction_complete_no_data",
|
|
62
|
+
"StartHistoricalUploadNoData": ".start_historical_upload_no_data",
|
|
63
|
+
"UpdateUploadRequestDataUnion": ".update_upload_request_data_union",
|
|
64
|
+
"UpdateUploadRequestDataUnion_HistoricalTransactionComplete": ".update_upload_request_data_union",
|
|
65
|
+
"UpdateUploadRequestObject": ".update_upload_request_object",
|
|
66
|
+
"UpdateUploadResponseData": ".update_upload_response_data",
|
|
67
|
+
"UpdateUploadResponseDataUnion": ".update_upload_response_data_union",
|
|
68
|
+
"UpdateUploadResponseDataUnion_HistoricalTransactionComplete": ".update_upload_response_data_union",
|
|
69
|
+
"UpdateUploadResponseObject": ".update_upload_response_object",
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
74
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
75
|
+
if module_name is None:
|
|
76
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
77
|
+
try:
|
|
78
|
+
module = import_module(module_name, __package__)
|
|
79
|
+
if module_name == f".{attr_name}":
|
|
80
|
+
return module
|
|
81
|
+
else:
|
|
82
|
+
return getattr(module, attr_name)
|
|
83
|
+
except ImportError as e:
|
|
84
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
85
|
+
except AttributeError as e:
|
|
86
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def __dir__():
|
|
90
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
91
|
+
return sorted(lazy_attrs)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
__all__ = [
|
|
95
|
+
"CreateUploadPartDataUnion",
|
|
96
|
+
"CreateUploadPartDataUnion_HistoricalTransaction",
|
|
97
|
+
"CreateUploadPartMultiStatusResponse",
|
|
98
|
+
"CreateUploadPartRequestObject",
|
|
99
|
+
"CreateUploadPartResponseData",
|
|
100
|
+
"CreateUploadPartResponseDataUnion",
|
|
101
|
+
"CreateUploadPartResponseDataUnion_HistoricalTransaction",
|
|
102
|
+
"CreateUploadPartResponseObject",
|
|
103
|
+
"CreateUploadRequestDataUnion",
|
|
104
|
+
"CreateUploadRequestDataUnion_HistoricalTransactionStart",
|
|
105
|
+
"CreateUploadRequestObject",
|
|
106
|
+
"CreateUploadResponseData",
|
|
107
|
+
"CreateUploadResponseDataUnion",
|
|
108
|
+
"CreateUploadResponseDataUnion_HistoricalTransactionStart",
|
|
109
|
+
"CreateUploadResponseObject",
|
|
110
|
+
"HistoricalTransactionCompleteNoData",
|
|
111
|
+
"StartHistoricalUploadNoData",
|
|
112
|
+
"UpdateUploadRequestDataUnion",
|
|
113
|
+
"UpdateUploadRequestDataUnion_HistoricalTransactionComplete",
|
|
114
|
+
"UpdateUploadRequestObject",
|
|
115
|
+
"UpdateUploadResponseData",
|
|
116
|
+
"UpdateUploadResponseDataUnion",
|
|
117
|
+
"UpdateUploadResponseDataUnion_HistoricalTransactionComplete",
|
|
118
|
+
"UpdateUploadResponseObject",
|
|
119
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
import pydantic
|
|
8
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
9
|
+
from ....transactions.types.transactions_attributes import TransactionsAttributes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateUploadPartDataUnion_HistoricalTransaction(UniversalBaseModel):
|
|
13
|
+
type: typing.Literal["historicalTransaction"] = "historicalTransaction"
|
|
14
|
+
id: str
|
|
15
|
+
attributes: TransactionsAttributes
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
CreateUploadPartDataUnion = CreateUploadPartDataUnion_HistoricalTransaction
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....commons.types.error_response import ErrorResponse
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
from .create_upload_part_response_data_union import CreateUploadPartResponseDataUnion
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateUploadPartMultiStatusResponse(ErrorResponse):
|
|
12
|
+
data: typing.Optional[typing.List[CreateUploadPartResponseDataUnion]] = None
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .create_upload_part_data_union import CreateUploadPartDataUnion
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreateUploadPartRequestObject(UniversalBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Examples
|
|
13
|
+
--------
|
|
14
|
+
import datetime
|
|
15
|
+
|
|
16
|
+
from kard.transactions import Merchant, TransactionsAttributes
|
|
17
|
+
from kard.users.uploads import (
|
|
18
|
+
CreateUploadPartDataUnion_HistoricalTransaction,
|
|
19
|
+
CreateUploadPartRequestObject,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
CreateUploadPartRequestObject(
|
|
23
|
+
data=[
|
|
24
|
+
CreateUploadPartDataUnion_HistoricalTransaction(
|
|
25
|
+
id="309rjfoincor3icno3rind093cdow3jciwjdwcm",
|
|
26
|
+
attributes=TransactionsAttributes(
|
|
27
|
+
user_id="6FHt5b6Fnp0qdomMEy5AN6PXcSJIeX69",
|
|
28
|
+
status="APPROVED",
|
|
29
|
+
amount=1000,
|
|
30
|
+
subtotal=800,
|
|
31
|
+
currency="USD",
|
|
32
|
+
direction="DEBIT",
|
|
33
|
+
payment_type="CARD",
|
|
34
|
+
description="ADVANCEAUTO",
|
|
35
|
+
description_2="ADVANCEAUTO",
|
|
36
|
+
mcc="1234",
|
|
37
|
+
card_bin="123456",
|
|
38
|
+
card_last_four="4321",
|
|
39
|
+
authorization_date=datetime.datetime.fromisoformat(
|
|
40
|
+
"2021-07-02 17:47:06+00:00",
|
|
41
|
+
),
|
|
42
|
+
merchant=Merchant(
|
|
43
|
+
id="12345678901234567",
|
|
44
|
+
name="ADVANCEAUTO",
|
|
45
|
+
addr_street="125 Main St",
|
|
46
|
+
addr_city="Philadelphia",
|
|
47
|
+
addr_state="PA",
|
|
48
|
+
addr_zipcode="19147",
|
|
49
|
+
addr_country="United States",
|
|
50
|
+
latitude="37.9419429",
|
|
51
|
+
longitude="-73.1446869",
|
|
52
|
+
store_id="12345",
|
|
53
|
+
),
|
|
54
|
+
authorization_code="123456",
|
|
55
|
+
retrieval_reference_number="100804333919",
|
|
56
|
+
acquirer_reference_number="1234567890123456789012345678",
|
|
57
|
+
system_trace_audit_number="333828",
|
|
58
|
+
transaction_id="2467de37-cbdc-416d-a359-75de87bfffb0",
|
|
59
|
+
),
|
|
60
|
+
)
|
|
61
|
+
],
|
|
62
|
+
)
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
data: typing.List[CreateUploadPartDataUnion]
|
|
66
|
+
|
|
67
|
+
if IS_PYDANTIC_V2:
|
|
68
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
69
|
+
else:
|
|
70
|
+
|
|
71
|
+
class Config:
|
|
72
|
+
frozen = True
|
|
73
|
+
smart_union = True
|
|
74
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....commons.types.empty_object import EmptyObject
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreateUploadPartResponseData(UniversalBaseModel):
|
|
11
|
+
id: str = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
Id of the upload to add parts
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
attributes: EmptyObject
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
+
else:
|
|
21
|
+
|
|
22
|
+
class Config:
|
|
23
|
+
frozen = True
|
|
24
|
+
smart_union = True
|
|
25
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
import pydantic
|
|
8
|
+
from ....commons.types.empty_object import EmptyObject
|
|
9
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateUploadPartResponseDataUnion_HistoricalTransaction(UniversalBaseModel):
|
|
13
|
+
type: typing.Literal["historicalTransaction"] = "historicalTransaction"
|
|
14
|
+
id: str
|
|
15
|
+
attributes: EmptyObject
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
CreateUploadPartResponseDataUnion = CreateUploadPartResponseDataUnion_HistoricalTransaction
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .create_upload_part_response_data_union import CreateUploadPartResponseDataUnion
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreateUploadPartResponseObject(UniversalBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Examples
|
|
13
|
+
--------
|
|
14
|
+
from kard.commons import EmptyObject
|
|
15
|
+
from kard.users.uploads import (
|
|
16
|
+
CreateUploadPartResponseDataUnion_HistoricalTransaction,
|
|
17
|
+
CreateUploadPartResponseObject,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
CreateUploadPartResponseObject(
|
|
21
|
+
data=[
|
|
22
|
+
CreateUploadPartResponseDataUnion_HistoricalTransaction(
|
|
23
|
+
id="txnId123",
|
|
24
|
+
attributes=EmptyObject(),
|
|
25
|
+
)
|
|
26
|
+
],
|
|
27
|
+
)
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
data: typing.List[CreateUploadPartResponseDataUnion]
|
|
31
|
+
|
|
32
|
+
if IS_PYDANTIC_V2:
|
|
33
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
34
|
+
else:
|
|
35
|
+
|
|
36
|
+
class Config:
|
|
37
|
+
frozen = True
|
|
38
|
+
smart_union = True
|
|
39
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
import pydantic
|
|
8
|
+
from ....commons.types.empty_object import EmptyObject
|
|
9
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateUploadRequestDataUnion_HistoricalTransactionStart(UniversalBaseModel):
|
|
13
|
+
type: typing.Literal["historicalTransactionStart"] = "historicalTransactionStart"
|
|
14
|
+
attributes: EmptyObject
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
CreateUploadRequestDataUnion = CreateUploadRequestDataUnion_HistoricalTransactionStart
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .create_upload_request_data_union import CreateUploadRequestDataUnion
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreateUploadRequestObject(UniversalBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Examples
|
|
13
|
+
--------
|
|
14
|
+
from kard.commons import EmptyObject
|
|
15
|
+
from kard.users.uploads import (
|
|
16
|
+
CreateUploadRequestDataUnion_HistoricalTransactionStart,
|
|
17
|
+
CreateUploadRequestObject,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
CreateUploadRequestObject(
|
|
21
|
+
data=CreateUploadRequestDataUnion_HistoricalTransactionStart(
|
|
22
|
+
attributes=EmptyObject(),
|
|
23
|
+
),
|
|
24
|
+
)
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
data: CreateUploadRequestDataUnion
|
|
28
|
+
|
|
29
|
+
if IS_PYDANTIC_V2:
|
|
30
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
31
|
+
else:
|
|
32
|
+
|
|
33
|
+
class Config:
|
|
34
|
+
frozen = True
|
|
35
|
+
smart_union = True
|
|
36
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....commons.types.empty_object import EmptyObject
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreateUploadResponseData(UniversalBaseModel):
|
|
11
|
+
id: str = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
Upload id to reference in subsequent upload request
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
attributes: EmptyObject
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
+
else:
|
|
21
|
+
|
|
22
|
+
class Config:
|
|
23
|
+
frozen = True
|
|
24
|
+
smart_union = True
|
|
25
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
import pydantic
|
|
8
|
+
from ....commons.types.empty_object import EmptyObject
|
|
9
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateUploadResponseDataUnion_HistoricalTransactionStart(UniversalBaseModel):
|
|
13
|
+
type: typing.Literal["historicalTransactionStart"] = "historicalTransactionStart"
|
|
14
|
+
id: str
|
|
15
|
+
attributes: EmptyObject
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
CreateUploadResponseDataUnion = CreateUploadResponseDataUnion_HistoricalTransactionStart
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .create_upload_response_data_union import CreateUploadResponseDataUnion
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreateUploadResponseObject(UniversalBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Examples
|
|
13
|
+
--------
|
|
14
|
+
from kard.commons import EmptyObject
|
|
15
|
+
from kard.users.uploads import (
|
|
16
|
+
CreateUploadResponseDataUnion_HistoricalTransactionStart,
|
|
17
|
+
CreateUploadResponseObject,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
CreateUploadResponseObject(
|
|
21
|
+
data=CreateUploadResponseDataUnion_HistoricalTransactionStart(
|
|
22
|
+
id="7e382223-b9a5-4825-91fb-436c8957a2e7",
|
|
23
|
+
attributes=EmptyObject(),
|
|
24
|
+
),
|
|
25
|
+
)
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
data: CreateUploadResponseDataUnion
|
|
29
|
+
|
|
30
|
+
if IS_PYDANTIC_V2:
|
|
31
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
32
|
+
else:
|
|
33
|
+
|
|
34
|
+
class Config:
|
|
35
|
+
frozen = True
|
|
36
|
+
smart_union = True
|
|
37
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....commons.types.empty_object import EmptyObject
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class HistoricalTransactionCompleteNoData(UniversalBaseModel):
|
|
11
|
+
id: str = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
Upload id the issuer can use in reference to the upload session
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
attributes: EmptyObject
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
+
else:
|
|
21
|
+
|
|
22
|
+
class Config:
|
|
23
|
+
frozen = True
|
|
24
|
+
smart_union = True
|
|
25
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....commons.types.empty_object import EmptyObject
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StartHistoricalUploadNoData(UniversalBaseModel):
|
|
11
|
+
attributes: EmptyObject
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
import pydantic
|
|
8
|
+
from ....commons.types.empty_object import EmptyObject
|
|
9
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdateUploadRequestDataUnion_HistoricalTransactionComplete(UniversalBaseModel):
|
|
13
|
+
type: typing.Literal["historicalTransactionComplete"] = "historicalTransactionComplete"
|
|
14
|
+
id: str
|
|
15
|
+
attributes: EmptyObject
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
UpdateUploadRequestDataUnion = UpdateUploadRequestDataUnion_HistoricalTransactionComplete
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .update_upload_request_data_union import UpdateUploadRequestDataUnion
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UpdateUploadRequestObject(UniversalBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Examples
|
|
13
|
+
--------
|
|
14
|
+
from kard.commons import EmptyObject
|
|
15
|
+
from kard.users.uploads import (
|
|
16
|
+
UpdateUploadRequestDataUnion_HistoricalTransactionComplete,
|
|
17
|
+
UpdateUploadRequestObject,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
UpdateUploadRequestObject(
|
|
21
|
+
data=UpdateUploadRequestDataUnion_HistoricalTransactionComplete(
|
|
22
|
+
id="7e382223-b9a5-4825-91fb-436c8957a2e7",
|
|
23
|
+
attributes=EmptyObject(),
|
|
24
|
+
),
|
|
25
|
+
)
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
data: UpdateUploadRequestDataUnion
|
|
29
|
+
|
|
30
|
+
if IS_PYDANTIC_V2:
|
|
31
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
32
|
+
else:
|
|
33
|
+
|
|
34
|
+
class Config:
|
|
35
|
+
frozen = True
|
|
36
|
+
smart_union = True
|
|
37
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....commons.types.empty_object import EmptyObject
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UpdateUploadResponseData(UniversalBaseModel):
|
|
11
|
+
id: str = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
Upload id to reference in subsequent upload request
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
attributes: EmptyObject
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
+
else:
|
|
21
|
+
|
|
22
|
+
class Config:
|
|
23
|
+
frozen = True
|
|
24
|
+
smart_union = True
|
|
25
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
import pydantic
|
|
8
|
+
from ....commons.types.empty_object import EmptyObject
|
|
9
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdateUploadResponseDataUnion_HistoricalTransactionComplete(UniversalBaseModel):
|
|
13
|
+
type: typing.Literal["historicalTransactionComplete"] = "historicalTransactionComplete"
|
|
14
|
+
id: str
|
|
15
|
+
attributes: EmptyObject
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
UpdateUploadResponseDataUnion = UpdateUploadResponseDataUnion_HistoricalTransactionComplete
|