wp-sdk 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- reportingsettlementresearchapi/__init__.py +13 -0
- reportingsettlementresearchapi/api_helper.py +19 -0
- reportingsettlementresearchapi/apis/__init__.py +11 -0
- reportingsettlementresearchapi/apis/base_api.py +70 -0
- reportingsettlementresearchapi/apis/settlement_batches_api.py +139 -0
- reportingsettlementresearchapi/apis/settlement_daily_totals_api.py +89 -0
- reportingsettlementresearchapi/apis/settlement_errors_api.py +147 -0
- reportingsettlementresearchapi/apis/settlements_api.py +90 -0
- reportingsettlementresearchapi/apis/transaction_status_api.py +81 -0
- reportingsettlementresearchapi/apis/transaction_type_api.py +79 -0
- reportingsettlementresearchapi/configuration.py +252 -0
- reportingsettlementresearchapi/exceptions/__init__.py +13 -0
- reportingsettlementresearchapi/exceptions/api_exception.py +36 -0
- reportingsettlementresearchapi/exceptions/search_date_0_error_exception.py +79 -0
- reportingsettlementresearchapi/exceptions/search_store_0_error_exception.py +79 -0
- reportingsettlementresearchapi/exceptions/settlementerrors_pendingsettlementbatches_search_0_error_exception.py +80 -0
- reportingsettlementresearchapi/exceptions/settlementerrors_settlementfileerrors_search_0_error_exception.py +80 -0
- reportingsettlementresearchapi/exceptions/settlements_daily_totals_search_0_error_exception.py +80 -0
- reportingsettlementresearchapi/exceptions/settlements_search_0_error_exception.py +79 -0
- reportingsettlementresearchapi/exceptions/transaction_statuses_0_error_exception.py +79 -0
- reportingsettlementresearchapi/exceptions/transaction_types_0_error_exception.py +79 -0
- reportingsettlementresearchapi/http/__init__.py +11 -0
- reportingsettlementresearchapi/http/api_response.py +67 -0
- reportingsettlementresearchapi/http/auth/__init__.py +5 -0
- reportingsettlementresearchapi/http/auth/custom_header_authentication.py +101 -0
- reportingsettlementresearchapi/http/http_call_back.py +20 -0
- reportingsettlementresearchapi/http/http_client_provider.py +23 -0
- reportingsettlementresearchapi/http/http_method_enum.py +25 -0
- reportingsettlementresearchapi/http/http_request.py +55 -0
- reportingsettlementresearchapi/http/http_response.py +45 -0
- reportingsettlementresearchapi/http/proxy_settings.py +50 -0
- reportingsettlementresearchapi/logging/__init__.py +6 -0
- reportingsettlementresearchapi/logging/configuration/__init__.py +5 -0
- reportingsettlementresearchapi/logging/configuration/api_logging_configuration.py +398 -0
- reportingsettlementresearchapi/logging/sdk_logger.py +28 -0
- reportingsettlementresearchapi/models/__init__.py +178 -0
- reportingsettlementresearchapi/models/account_name_inquiry.py +151 -0
- reportingsettlementresearchapi/models/aci.py +151 -0
- reportingsettlementresearchapi/models/additional_details.py +224 -0
- reportingsettlementresearchapi/models/authorization_currency.py +151 -0
- reportingsettlementresearchapi/models/authorization_source.py +151 -0
- reportingsettlementresearchapi/models/avs_response_code.py +151 -0
- reportingsettlementresearchapi/models/bank_card_rej_real_time_transaction.py +332 -0
- reportingsettlementresearchapi/models/bank_card_rejects_search_request.py +287 -0
- reportingsettlementresearchapi/models/bank_card_rejects_search_response.py +142 -0
- reportingsettlementresearchapi/models/batch_card_type.py +51 -0
- reportingsettlementresearchapi/models/batch_card_type_1.py +51 -0
- reportingsettlementresearchapi/models/batch_hold_status.py +151 -0
- reportingsettlementresearchapi/models/billing_indicator.py +151 -0
- reportingsettlementresearchapi/models/card_account_term.py +151 -0
- reportingsettlementresearchapi/models/card_details.py +711 -0
- reportingsettlementresearchapi/models/card_details_2.py +709 -0
- reportingsettlementresearchapi/models/card_network.py +151 -0
- reportingsettlementresearchapi/models/card_networks.py +108 -0
- reportingsettlementresearchapi/models/card_product_results.py +151 -0
- reportingsettlementresearchapi/models/card_product_type.py +151 -0
- reportingsettlementresearchapi/models/card_types.py +57 -0
- reportingsettlementresearchapi/models/card_types_1.py +51 -0
- reportingsettlementresearchapi/models/cardholder_id.py +151 -0
- reportingsettlementresearchapi/models/code_and_description.py +153 -0
- reportingsettlementresearchapi/models/code_and_description_1.py +130 -0
- reportingsettlementresearchapi/models/country_of_origin.py +151 -0
- reportingsettlementresearchapi/models/credit_additional_details.py +226 -0
- reportingsettlementresearchapi/models/credit_card_details.py +416 -0
- reportingsettlementresearchapi/models/credit_interchange_details.py +389 -0
- reportingsettlementresearchapi/models/credit_merchant_hierarchy_details.py +183 -0
- reportingsettlementresearchapi/models/credit_other_services_details.py +264 -0
- reportingsettlementresearchapi/models/credit_premium_payback_details.py +199 -0
- reportingsettlementresearchapi/models/credit_transaction_details.py +845 -0
- reportingsettlementresearchapi/models/customer_fields.py +153 -0
- reportingsettlementresearchapi/models/customer_fields_2.py +151 -0
- reportingsettlementresearchapi/models/cvv_2_presence_indicator.py +151 -0
- reportingsettlementresearchapi/models/cvv_2_response_code.py +151 -0
- reportingsettlementresearchapi/models/date_range_1.py +128 -0
- reportingsettlementresearchapi/models/date_type.py +47 -0
- reportingsettlementresearchapi/models/daterange.py +130 -0
- reportingsettlementresearchapi/models/emv_details.py +181 -0
- reportingsettlementresearchapi/models/emv_details_2.py +179 -0
- reportingsettlementresearchapi/models/entity.py +157 -0
- reportingsettlementresearchapi/models/entry_mode.py +151 -0
- reportingsettlementresearchapi/models/error.py +153 -0
- reportingsettlementresearchapi/models/field_name.py +90 -0
- reportingsettlementresearchapi/models/field_name_1.py +72 -0
- reportingsettlementresearchapi/models/field_name_2.py +63 -0
- reportingsettlementresearchapi/models/field_name_3.py +63 -0
- reportingsettlementresearchapi/models/field_name_4.py +66 -0
- reportingsettlementresearchapi/models/field_name_5.py +57 -0
- reportingsettlementresearchapi/models/fraud_coverage_type.py +151 -0
- reportingsettlementresearchapi/models/fraud_detection_stage.py +151 -0
- reportingsettlementresearchapi/models/fraud_fields.py +159 -0
- reportingsettlementresearchapi/models/fraud_fields_2.py +157 -0
- reportingsettlementresearchapi/models/fraud_fields_fraud_score.py +131 -0
- reportingsettlementresearchapi/models/fraud_response_code.py +59 -0
- reportingsettlementresearchapi/models/fraud_response_code_2.py +151 -0
- reportingsettlementresearchapi/models/fraud_rule_result.py +56 -0
- reportingsettlementresearchapi/models/fraud_rule_result_2.py +151 -0
- reportingsettlementresearchapi/models/fraud_score.py +128 -0
- reportingsettlementresearchapi/models/fraud_sight_details.py +212 -0
- reportingsettlementresearchapi/models/fraud_sight_details_2.py +210 -0
- reportingsettlementresearchapi/models/funded_net_settle.py +180 -0
- reportingsettlementresearchapi/models/funded_net_settle_2.py +178 -0
- reportingsettlementresearchapi/models/hierarchy.py +155 -0
- reportingsettlementresearchapi/models/hierarchy_1.py +155 -0
- reportingsettlementresearchapi/models/hierarchy_10.py +233 -0
- reportingsettlementresearchapi/models/hierarchy_2.py +128 -0
- reportingsettlementresearchapi/models/hierarchy_4.py +181 -0
- reportingsettlementresearchapi/models/hierarchy_6.py +155 -0
- reportingsettlementresearchapi/models/hierarchy_7.py +211 -0
- reportingsettlementresearchapi/models/hierarchy_9.py +187 -0
- reportingsettlementresearchapi/models/hierarchy_level.py +157 -0
- reportingsettlementresearchapi/models/hierarchy_levels.py +157 -0
- reportingsettlementresearchapi/models/interchange_code.py +128 -0
- reportingsettlementresearchapi/models/interchange_data.py +179 -0
- reportingsettlementresearchapi/models/interchange_details.py +387 -0
- reportingsettlementresearchapi/models/interchange_details_1.py +177 -0
- reportingsettlementresearchapi/models/international_indicator.py +151 -0
- reportingsettlementresearchapi/models/level.py +54 -0
- reportingsettlementresearchapi/models/level_1.py +57 -0
- reportingsettlementresearchapi/models/level_2.py +47 -0
- reportingsettlementresearchapi/models/level_3.py +71 -0
- reportingsettlementresearchapi/models/level_indicator.py +151 -0
- reportingsettlementresearchapi/models/location_details.py +361 -0
- reportingsettlementresearchapi/models/location_details_2.py +359 -0
- reportingsettlementresearchapi/models/mail_phone_indicator.py +151 -0
- reportingsettlementresearchapi/models/market_specific_data_indicator.py +151 -0
- reportingsettlementresearchapi/models/mastercard_tic_indicator.py +151 -0
- reportingsettlementresearchapi/models/merchant_category.py +151 -0
- reportingsettlementresearchapi/models/merchant_hierarchy.py +189 -0
- reportingsettlementresearchapi/models/merchant_hierarchy_detail.py +213 -0
- reportingsettlementresearchapi/models/merchant_info.py +235 -0
- reportingsettlementresearchapi/models/network_group.py +151 -0
- reportingsettlementresearchapi/models/order_by.py +47 -0
- reportingsettlementresearchapi/models/order_by_for_settled_daily_totals.py +130 -0
- reportingsettlementresearchapi/models/order_by_for_settled_transactions_type.py +130 -0
- reportingsettlementresearchapi/models/origin_type.py +151 -0
- reportingsettlementresearchapi/models/other_services.py +319 -0
- reportingsettlementresearchapi/models/other_services_2.py +317 -0
- reportingsettlementresearchapi/models/pagination.py +128 -0
- reportingsettlementresearchapi/models/pagination_4.py +173 -0
- reportingsettlementresearchapi/models/pagination_response.py +175 -0
- reportingsettlementresearchapi/models/paginationtype.py +130 -0
- reportingsettlementresearchapi/models/payment_gateway_details.py +203 -0
- reportingsettlementresearchapi/models/payment_gateway_details_1.py +201 -0
- reportingsettlementresearchapi/models/pin_less.py +151 -0
- reportingsettlementresearchapi/models/pos_condition_code.py +151 -0
- reportingsettlementresearchapi/models/premium_payback.py +197 -0
- reportingsettlementresearchapi/models/processdaterange.py +130 -0
- reportingsettlementresearchapi/models/rejection_reason.py +151 -0
- reportingsettlementresearchapi/models/search_auth_transactions.py +414 -0
- reportingsettlementresearchapi/models/search_daily_totals.py +143 -0
- reportingsettlementresearchapi/models/search_daily_totals_details.py +318 -0
- reportingsettlementresearchapi/models/search_date_request.py +191 -0
- reportingsettlementresearchapi/models/search_date_response.py +140 -0
- reportingsettlementresearchapi/models/search_requesttransaction_amount_range.py +157 -0
- reportingsettlementresearchapi/models/search_settle_daily_totals_request.py +231 -0
- reportingsettlementresearchapi/models/search_settle_transactions_request.py +469 -0
- reportingsettlementresearchapi/models/search_store_request.py +191 -0
- reportingsettlementresearchapi/models/search_store_response.py +140 -0
- reportingsettlementresearchapi/models/search_transaction_details_response.py +142 -0
- reportingsettlementresearchapi/models/settlement_batches_date_request.py +193 -0
- reportingsettlementresearchapi/models/settlement_batches_date_response.py +142 -0
- reportingsettlementresearchapi/models/settlement_batches_entity.py +130 -0
- reportingsettlementresearchapi/models/settlement_batches_hierarchy.py +183 -0
- reportingsettlementresearchapi/models/settlement_batches_sort_store.py +130 -0
- reportingsettlementresearchapi/models/settlement_batches_sortbankcarddetails.py +130 -0
- reportingsettlementresearchapi/models/settlement_batches_store_request.py +193 -0
- reportingsettlementresearchapi/models/settlement_batches_store_response.py +142 -0
- reportingsettlementresearchapi/models/settlement_batches_transaction_date.py +369 -0
- reportingsettlementresearchapi/models/settlement_batches_transaction_store.py +370 -0
- reportingsettlementresearchapi/models/settlement_rej_real_time_transaction.py +280 -0
- reportingsettlementresearchapi/models/settlement_rejects_search_request.py +170 -0
- reportingsettlementresearchapi/models/settlement_rejects_search_response.py +142 -0
- reportingsettlementresearchapi/models/settlementerrors_pendingsettlementbatches_search_request.py +288 -0
- reportingsettlementresearchapi/models/settlementerrors_pendingsettlementbatches_search_response.py +143 -0
- reportingsettlementresearchapi/models/settlementerrors_settlementfileerrors_search_request.py +169 -0
- reportingsettlementresearchapi/models/settlementerrors_settlementfileerrors_search_response.py +141 -0
- reportingsettlementresearchapi/models/settlements_daily_totals_search_request.py +229 -0
- reportingsettlementresearchapi/models/settlements_daily_totals_search_response.py +140 -0
- reportingsettlementresearchapi/models/settlements_search_request.py +467 -0
- reportingsettlementresearchapi/models/settlements_search_response.py +140 -0
- reportingsettlementresearchapi/models/signature_capabilities_indicator.py +151 -0
- reportingsettlementresearchapi/models/signature_compression.py +151 -0
- reportingsettlementresearchapi/models/signature_pen.py +151 -0
- reportingsettlementresearchapi/models/signify_details.py +162 -0
- reportingsettlementresearchapi/models/signifyd_detail.py +164 -0
- reportingsettlementresearchapi/models/sort_results_by.py +128 -0
- reportingsettlementresearchapi/models/sort_results_by_1.py +128 -0
- reportingsettlementresearchapi/models/sort_results_by_2.py +128 -0
- reportingsettlementresearchapi/models/sort_results_by_3.py +128 -0
- reportingsettlementresearchapi/models/sort_results_by_4.py +128 -0
- reportingsettlementresearchapi/models/sort_results_by_5.py +128 -0
- reportingsettlementresearchapi/models/sortbankcarddetails.py +130 -0
- reportingsettlementresearchapi/models/sortsettlementfiledetails.py +130 -0
- reportingsettlementresearchapi/models/stand_in_indicator.py +151 -0
- reportingsettlementresearchapi/models/stand_in_level.py +151 -0
- reportingsettlementresearchapi/models/surcharge_reason.py +128 -0
- reportingsettlementresearchapi/models/terminal.py +178 -0
- reportingsettlementresearchapi/models/terminal_capability.py +151 -0
- reportingsettlementresearchapi/models/terminal_details.py +180 -0
- reportingsettlementresearchapi/models/transaction_amount_range.py +155 -0
- reportingsettlementresearchapi/models/transaction_details.py +1435 -0
- reportingsettlementresearchapi/models/transaction_details_2.py +1433 -0
- reportingsettlementresearchapi/models/transaction_status.py +151 -0
- reportingsettlementresearchapi/models/transaction_status_code.py +153 -0
- reportingsettlementresearchapi/models/transaction_status_code_1.py +792 -0
- reportingsettlementresearchapi/models/transaction_summary.py +317 -0
- reportingsettlementresearchapi/models/transaction_summary_data.py +319 -0
- reportingsettlementresearchapi/models/transaction_type.py +151 -0
- reportingsettlementresearchapi/models/transaction_type_code.py +153 -0
- reportingsettlementresearchapi/models/transaction_type_code_1.py +186 -0
- reportingsettlementresearchapi/reportingsettlementresearchapi_client.py +117 -0
- reportingsettlementresearchapi/utilities/__init__.py +6 -0
- reportingsettlementresearchapi/utilities/file_wrapper.py +45 -0
- wp_sdk-1.0.0.dist-info/METADATA +137 -0
- wp_sdk-1.0.0.dist-info/RECORD +218 -0
- wp_sdk-1.0.0.dist-info/WHEEL +5 -0
- wp_sdk-1.0.0.dist-info/licenses/LICENSE +28 -0
- wp_sdk-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# ruff: noqa: D104 | Missing docstring in public package
|
|
2
|
+
# ruff: noqa: RUF022 | `__all__` is not sorted
|
|
3
|
+
__all__ = [
|
|
4
|
+
"api_helper",
|
|
5
|
+
"apis",
|
|
6
|
+
"configuration",
|
|
7
|
+
"exceptions",
|
|
8
|
+
"http",
|
|
9
|
+
"logging",
|
|
10
|
+
"models",
|
|
11
|
+
"reportingsettlementresearchapi_client",
|
|
12
|
+
"utilities",
|
|
13
|
+
]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""
|
|
2
|
+
reportingsettlementresearchapi
|
|
3
|
+
|
|
4
|
+
This file was automatically generated by APIMATIC v3.0 (
|
|
5
|
+
https://www.apimatic.io ).
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from apimatic_core.utilities.api_helper import ApiHelper as CoreApiHelper
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class APIHelper(CoreApiHelper):
|
|
12
|
+
"""
|
|
13
|
+
A Helper Class for various functions associated with API Calls.
|
|
14
|
+
|
|
15
|
+
This class contains static methods for operations that need to be
|
|
16
|
+
performed during API requests. All of the methods inside this class are
|
|
17
|
+
static methods, there is no need to ever initialise an instance of this
|
|
18
|
+
class.
|
|
19
|
+
"""
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ruff: noqa: D104 | Missing docstring in public package
|
|
2
|
+
# ruff: noqa: RUF022 | `__all__` is not sorted
|
|
3
|
+
__all__ = [
|
|
4
|
+
"base_api",
|
|
5
|
+
"settlement_batches_api",
|
|
6
|
+
"settlement_daily_totals_api",
|
|
7
|
+
"settlement_errors_api",
|
|
8
|
+
"settlements_api",
|
|
9
|
+
"transaction_status_api",
|
|
10
|
+
"transaction_type_api",
|
|
11
|
+
]
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""reportingsettlementresearchapi.
|
|
2
|
+
|
|
3
|
+
This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import platform
|
|
7
|
+
|
|
8
|
+
from apimatic_core.api_call import ApiCall
|
|
9
|
+
from apimatic_core.types.error_case import ErrorCase
|
|
10
|
+
|
|
11
|
+
from reportingsettlementresearchapi.exceptions.api_exception import (
|
|
12
|
+
ApiException,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class BaseApi(object):
|
|
17
|
+
"""All controllers inherit from this base class.
|
|
18
|
+
|
|
19
|
+
Attributes:
|
|
20
|
+
config (Configuration): The HttpClient which a specific controller
|
|
21
|
+
instance will use. By default all the controller objects share
|
|
22
|
+
the same HttpClient. A user can use his own custom HttpClient
|
|
23
|
+
as well.
|
|
24
|
+
http_call_back (HttpCallBack): An object which holds call back
|
|
25
|
+
methods to be called before and after the execution of an HttpRequest.
|
|
26
|
+
new_api_call_builder (APICall): Returns the API Call builder instance.
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
@staticmethod
|
|
31
|
+
def user_agent():
|
|
32
|
+
"""Return UserAgent value."""
|
|
33
|
+
return "Python SDK, Version: 1.0.0, on OS {os-info}"
|
|
34
|
+
|
|
35
|
+
@staticmethod
|
|
36
|
+
def user_agent_parameters():
|
|
37
|
+
"""Return UserAgentParameters value."""
|
|
38
|
+
return {
|
|
39
|
+
"os-info": {"value": platform.system(), "encode": False},
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@staticmethod
|
|
43
|
+
def global_errors():
|
|
44
|
+
"""Return GlobalErrors value."""
|
|
45
|
+
return {
|
|
46
|
+
"default": ErrorCase()
|
|
47
|
+
.error_message("HTTP response not OK.")
|
|
48
|
+
.exception_type(ApiException),
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, config):
|
|
52
|
+
"""Initialize BaseApi object."""
|
|
53
|
+
self._config = config.get_http_client_configuration()
|
|
54
|
+
self._http_call_back = self.config.http_callback
|
|
55
|
+
self.api_call = ApiCall(config)
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def config(self):
|
|
59
|
+
"""Return Configuration object."""
|
|
60
|
+
return self._config
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def http_call_back(self):
|
|
64
|
+
"""Return HttpCallBack object."""
|
|
65
|
+
return self._http_call_back
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def new_api_call_builder(self):
|
|
69
|
+
"""Return New ApiCallBuilder object."""
|
|
70
|
+
return self.api_call.new_builder
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"""reportingsettlementresearchapi.
|
|
2
|
+
|
|
3
|
+
This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: D410, E501, E101, D206
|
|
7
|
+
from apimatic_core.authentication.multiple.single_auth import (
|
|
8
|
+
Single,
|
|
9
|
+
)
|
|
10
|
+
from apimatic_core.request_builder import RequestBuilder
|
|
11
|
+
from apimatic_core.response_handler import ResponseHandler
|
|
12
|
+
from apimatic_core.types.parameter import Parameter
|
|
13
|
+
|
|
14
|
+
from reportingsettlementresearchapi.api_helper import (
|
|
15
|
+
APIHelper,
|
|
16
|
+
)
|
|
17
|
+
from reportingsettlementresearchapi.apis.base_api import (
|
|
18
|
+
BaseApi,
|
|
19
|
+
)
|
|
20
|
+
from reportingsettlementresearchapi.configuration import (
|
|
21
|
+
Server,
|
|
22
|
+
)
|
|
23
|
+
from reportingsettlementresearchapi.exceptions.search_date_0_error_exception import (
|
|
24
|
+
SearchDate0ErrorException,
|
|
25
|
+
)
|
|
26
|
+
from reportingsettlementresearchapi.exceptions.search_store_0_error_exception import (
|
|
27
|
+
SearchStore0ErrorException,
|
|
28
|
+
)
|
|
29
|
+
from reportingsettlementresearchapi.http.http_method_enum import (
|
|
30
|
+
HttpMethodEnum,
|
|
31
|
+
)
|
|
32
|
+
from reportingsettlementresearchapi.models.search_date_response import (
|
|
33
|
+
SearchDateResponse,
|
|
34
|
+
)
|
|
35
|
+
from reportingsettlementresearchapi.models.search_store_response import (
|
|
36
|
+
SearchStoreResponse,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class SettlementBatchesApi(BaseApi):
|
|
41
|
+
"""A Controller to access Endpoints in the reportingsettlementresearchapi API."""
|
|
42
|
+
|
|
43
|
+
def __init__(self, config):
|
|
44
|
+
"""Initialize SettlementBatchesApi object."""
|
|
45
|
+
super(SettlementBatchesApi, self).__init__(config)
|
|
46
|
+
|
|
47
|
+
def search_settlement_batches_store(self,
|
|
48
|
+
body,
|
|
49
|
+
v_correlation_id=None):
|
|
50
|
+
"""Perform a POST request to /search/store.
|
|
51
|
+
|
|
52
|
+
Search settlement batches grouped by store.
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
body (SearchStoreRequest): The request body parameter.
|
|
56
|
+
v_correlation_id (uuid|str, optional): Correlation Id
|
|
57
|
+
|
|
58
|
+
Returns:
|
|
59
|
+
ApiResponse: An object with the response value as well as other useful
|
|
60
|
+
information such as status codes and headers. OK
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
ApiException: When an error occurs while fetching the data from the
|
|
64
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
65
|
+
message, and the HTTP body that was received in the request.
|
|
66
|
+
|
|
67
|
+
"""
|
|
68
|
+
return super().new_api_call_builder.request(
|
|
69
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
70
|
+
.path("/search/store")
|
|
71
|
+
.http_method(HttpMethodEnum.POST)
|
|
72
|
+
.header_param(Parameter()
|
|
73
|
+
.key("Content-Type")
|
|
74
|
+
.value("application/json"))
|
|
75
|
+
.body_param(Parameter()
|
|
76
|
+
.value(body)
|
|
77
|
+
.is_required(True))
|
|
78
|
+
.header_param(Parameter()
|
|
79
|
+
.key("v-correlation-id")
|
|
80
|
+
.value(v_correlation_id))
|
|
81
|
+
.header_param(Parameter()
|
|
82
|
+
.key("accept")
|
|
83
|
+
.value("application/json"))
|
|
84
|
+
.body_serializer(APIHelper.json_serialize)
|
|
85
|
+
.auth(Single("api_key")),
|
|
86
|
+
).response(
|
|
87
|
+
ResponseHandler()
|
|
88
|
+
.deserializer(APIHelper.json_deserialize)
|
|
89
|
+
.deserialize_into(SearchStoreResponse.from_dictionary)
|
|
90
|
+
.is_api_response(True)
|
|
91
|
+
.local_error("default", "Default errors", SearchStore0ErrorException),
|
|
92
|
+
).execute()
|
|
93
|
+
|
|
94
|
+
def search_settlement_batches_date(self,
|
|
95
|
+
body,
|
|
96
|
+
v_correlation_id=None):
|
|
97
|
+
"""Perform a POST request to /search/date.
|
|
98
|
+
|
|
99
|
+
Search settlement batches grouped by date.
|
|
100
|
+
|
|
101
|
+
Args:
|
|
102
|
+
body (SearchDateRequest): The request body parameter.
|
|
103
|
+
v_correlation_id (uuid|str, optional): Correlation Id
|
|
104
|
+
|
|
105
|
+
Returns:
|
|
106
|
+
ApiResponse: An object with the response value as well as other useful
|
|
107
|
+
information such as status codes and headers. OK
|
|
108
|
+
|
|
109
|
+
Raises:
|
|
110
|
+
ApiException: When an error occurs while fetching the data from the
|
|
111
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
112
|
+
message, and the HTTP body that was received in the request.
|
|
113
|
+
|
|
114
|
+
"""
|
|
115
|
+
return super().new_api_call_builder.request(
|
|
116
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
117
|
+
.path("/search/date")
|
|
118
|
+
.http_method(HttpMethodEnum.POST)
|
|
119
|
+
.header_param(Parameter()
|
|
120
|
+
.key("Content-Type")
|
|
121
|
+
.value("application/json"))
|
|
122
|
+
.body_param(Parameter()
|
|
123
|
+
.value(body)
|
|
124
|
+
.is_required(True))
|
|
125
|
+
.header_param(Parameter()
|
|
126
|
+
.key("v-correlation-id")
|
|
127
|
+
.value(v_correlation_id))
|
|
128
|
+
.header_param(Parameter()
|
|
129
|
+
.key("accept")
|
|
130
|
+
.value("application/json"))
|
|
131
|
+
.body_serializer(APIHelper.json_serialize)
|
|
132
|
+
.auth(Single("api_key")),
|
|
133
|
+
).response(
|
|
134
|
+
ResponseHandler()
|
|
135
|
+
.deserializer(APIHelper.json_deserialize)
|
|
136
|
+
.deserialize_into(SearchDateResponse.from_dictionary)
|
|
137
|
+
.is_api_response(True)
|
|
138
|
+
.local_error("default", "Default errors", SearchDate0ErrorException),
|
|
139
|
+
).execute()
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"""reportingsettlementresearchapi.
|
|
2
|
+
|
|
3
|
+
This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: D410, E501, E101, D206
|
|
7
|
+
from apimatic_core.authentication.multiple.single_auth import (
|
|
8
|
+
Single,
|
|
9
|
+
)
|
|
10
|
+
from apimatic_core.request_builder import RequestBuilder
|
|
11
|
+
from apimatic_core.response_handler import ResponseHandler
|
|
12
|
+
from apimatic_core.types.parameter import Parameter
|
|
13
|
+
|
|
14
|
+
from reportingsettlementresearchapi.api_helper import (
|
|
15
|
+
APIHelper,
|
|
16
|
+
)
|
|
17
|
+
from reportingsettlementresearchapi.apis.base_api import (
|
|
18
|
+
BaseApi,
|
|
19
|
+
)
|
|
20
|
+
from reportingsettlementresearchapi.configuration import (
|
|
21
|
+
Server,
|
|
22
|
+
)
|
|
23
|
+
from reportingsettlementresearchapi.exceptions.settlements_daily_totals_search_0_error_exception import ( # noqa: E501
|
|
24
|
+
SettlementsDailyTotalsSearch0ErrorException,
|
|
25
|
+
)
|
|
26
|
+
from reportingsettlementresearchapi.http.http_method_enum import (
|
|
27
|
+
HttpMethodEnum,
|
|
28
|
+
)
|
|
29
|
+
from reportingsettlementresearchapi.models.settlements_daily_totals_search_response import ( # noqa: E501
|
|
30
|
+
SettlementsDailyTotalsSearchResponse,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class SettlementDailyTotalsApi(BaseApi):
|
|
35
|
+
"""A Controller to access Endpoints in the reportingsettlementresearchapi API."""
|
|
36
|
+
|
|
37
|
+
def __init__(self, config):
|
|
38
|
+
"""Initialize SettlementDailyTotalsApi object."""
|
|
39
|
+
super(SettlementDailyTotalsApi, self).__init__(config)
|
|
40
|
+
|
|
41
|
+
def search_settlements_daily_totals(self,
|
|
42
|
+
body,
|
|
43
|
+
v_correlation_id=None):
|
|
44
|
+
"""Perform a POST request to /settlements/daily-totals/search.
|
|
45
|
+
|
|
46
|
+
Retrieve the settled transactions daily financial activity for a given
|
|
47
|
+
hierarchy and date range. Optional fields help refine the search.
|
|
48
|
+
|
|
49
|
+
Args:
|
|
50
|
+
body (SettlementsDailyTotalsSearchRequest): The request body parameter.
|
|
51
|
+
v_correlation_id (uuid|str, optional): Correlation Id
|
|
52
|
+
|
|
53
|
+
Returns:
|
|
54
|
+
ApiResponse: An object with the response value as well as other useful
|
|
55
|
+
information such as status codes and headers. OK
|
|
56
|
+
|
|
57
|
+
Raises:
|
|
58
|
+
ApiException: When an error occurs while fetching the data from the
|
|
59
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
60
|
+
message, and the HTTP body that was received in the request.
|
|
61
|
+
|
|
62
|
+
"""
|
|
63
|
+
return super().new_api_call_builder.request(
|
|
64
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
65
|
+
.path("/settlements/daily-totals/search")
|
|
66
|
+
.http_method(HttpMethodEnum.POST)
|
|
67
|
+
.header_param(Parameter()
|
|
68
|
+
.key("Content-Type")
|
|
69
|
+
.value("application/json"))
|
|
70
|
+
.body_param(Parameter()
|
|
71
|
+
.value(body)
|
|
72
|
+
.is_required(True))
|
|
73
|
+
.header_param(Parameter()
|
|
74
|
+
.key("v-correlation-id")
|
|
75
|
+
.value(v_correlation_id))
|
|
76
|
+
.header_param(Parameter()
|
|
77
|
+
.key("accept")
|
|
78
|
+
.value("application/json"))
|
|
79
|
+
.body_serializer(APIHelper.json_serialize)
|
|
80
|
+
.auth(Single("api_key")),
|
|
81
|
+
).response(
|
|
82
|
+
ResponseHandler()
|
|
83
|
+
.deserializer(APIHelper.json_deserialize)
|
|
84
|
+
.deserialize_into(SettlementsDailyTotalsSearchResponse.from_dictionary)
|
|
85
|
+
.is_api_response(True)
|
|
86
|
+
.local_error("default",
|
|
87
|
+
"Default errors",
|
|
88
|
+
SettlementsDailyTotalsSearch0ErrorException),
|
|
89
|
+
).execute()
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"""reportingsettlementresearchapi.
|
|
2
|
+
|
|
3
|
+
This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: D410, E501, E101, D206
|
|
7
|
+
from apimatic_core.authentication.multiple.single_auth import (
|
|
8
|
+
Single,
|
|
9
|
+
)
|
|
10
|
+
from apimatic_core.request_builder import RequestBuilder
|
|
11
|
+
from apimatic_core.response_handler import ResponseHandler
|
|
12
|
+
from apimatic_core.types.parameter import Parameter
|
|
13
|
+
|
|
14
|
+
from reportingsettlementresearchapi.api_helper import (
|
|
15
|
+
APIHelper,
|
|
16
|
+
)
|
|
17
|
+
from reportingsettlementresearchapi.apis.base_api import (
|
|
18
|
+
BaseApi,
|
|
19
|
+
)
|
|
20
|
+
from reportingsettlementresearchapi.configuration import (
|
|
21
|
+
Server,
|
|
22
|
+
)
|
|
23
|
+
from reportingsettlementresearchapi.exceptions.settlementerrors_pendingsettlementbatches_search_0_error_exception import ( # noqa: E501
|
|
24
|
+
SettlementerrorsPendingsettlementbatchesSearch0ErrorException,
|
|
25
|
+
)
|
|
26
|
+
from reportingsettlementresearchapi.exceptions.settlementerrors_settlementfileerrors_search_0_error_exception import ( # noqa: E501
|
|
27
|
+
SettlementerrorsSettlementfileerrorsSearch0ErrorException,
|
|
28
|
+
)
|
|
29
|
+
from reportingsettlementresearchapi.http.http_method_enum import (
|
|
30
|
+
HttpMethodEnum,
|
|
31
|
+
)
|
|
32
|
+
from reportingsettlementresearchapi.models.settlementerrors_pendingsettlementbatches_search_response import ( # noqa: E501
|
|
33
|
+
SettlementerrorsPendingsettlementbatchesSearchResponse,
|
|
34
|
+
)
|
|
35
|
+
from reportingsettlementresearchapi.models.settlementerrors_settlementfileerrors_search_response import ( # noqa: E501
|
|
36
|
+
SettlementerrorsSettlementfileerrorsSearchResponse,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class SettlementErrorsApi(BaseApi):
|
|
41
|
+
"""A Controller to access Endpoints in the reportingsettlementresearchapi API."""
|
|
42
|
+
|
|
43
|
+
def __init__(self, config):
|
|
44
|
+
"""Initialize SettlementErrorsApi object."""
|
|
45
|
+
super(SettlementErrorsApi, self).__init__(config)
|
|
46
|
+
|
|
47
|
+
def search_settlement_rejects(self,
|
|
48
|
+
body,
|
|
49
|
+
v_correlation_id=None):
|
|
50
|
+
"""Perform a POST request to
|
|
51
|
+
/settlementerrors/settlementfileerrors/search.
|
|
52
|
+
|
|
53
|
+
Search settlement rejections.
|
|
54
|
+
|
|
55
|
+
Args:
|
|
56
|
+
body (SettlementerrorsSettlementfileerrorsSearchRequest): The request
|
|
57
|
+
body parameter.
|
|
58
|
+
v_correlation_id (uuid|str, optional): Correlation Id
|
|
59
|
+
|
|
60
|
+
Returns:
|
|
61
|
+
ApiResponse: An object with the response value as well as other useful
|
|
62
|
+
information such as status codes and headers. OK
|
|
63
|
+
|
|
64
|
+
Raises:
|
|
65
|
+
ApiException: When an error occurs while fetching the data from the
|
|
66
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
67
|
+
message, and the HTTP body that was received in the request.
|
|
68
|
+
|
|
69
|
+
"""
|
|
70
|
+
return super().new_api_call_builder.request(
|
|
71
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
72
|
+
.path("/settlementerrors/settlementfileerrors/search")
|
|
73
|
+
.http_method(HttpMethodEnum.POST)
|
|
74
|
+
.header_param(Parameter()
|
|
75
|
+
.key("Content-Type")
|
|
76
|
+
.value("application/json"))
|
|
77
|
+
.body_param(Parameter()
|
|
78
|
+
.value(body)
|
|
79
|
+
.is_required(True))
|
|
80
|
+
.header_param(Parameter()
|
|
81
|
+
.key("v-correlation-id")
|
|
82
|
+
.value(v_correlation_id))
|
|
83
|
+
.header_param(Parameter()
|
|
84
|
+
.key("accept")
|
|
85
|
+
.value("application/json"))
|
|
86
|
+
.body_serializer(APIHelper.json_serialize)
|
|
87
|
+
.auth(Single("api_key")),
|
|
88
|
+
).response(
|
|
89
|
+
ResponseHandler()
|
|
90
|
+
.deserializer(APIHelper.json_deserialize)
|
|
91
|
+
.deserialize_into(SettlementerrorsSettlementfileerrorsSearchResponse.from_dictionary)
|
|
92
|
+
.is_api_response(True)
|
|
93
|
+
.local_error("default",
|
|
94
|
+
"Default errors",
|
|
95
|
+
SettlementerrorsSettlementfileerrorsSearch0ErrorException),
|
|
96
|
+
).execute()
|
|
97
|
+
|
|
98
|
+
def search_bank_card_rejects(self,
|
|
99
|
+
body,
|
|
100
|
+
v_correlation_id=None):
|
|
101
|
+
"""Perform a POST request to
|
|
102
|
+
/settlementerrors/pendingsettlementbatches/search.
|
|
103
|
+
|
|
104
|
+
Search bank card rejections.
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
body (SettlementerrorsPendingsettlementbatchesSearchRequest): The request
|
|
108
|
+
body parameter.
|
|
109
|
+
v_correlation_id (uuid|str, optional): Correlation Id
|
|
110
|
+
|
|
111
|
+
Returns:
|
|
112
|
+
ApiResponse: An object with the response value as well as other useful
|
|
113
|
+
information such as status codes and headers. OK
|
|
114
|
+
|
|
115
|
+
Raises:
|
|
116
|
+
ApiException: When an error occurs while fetching the data from the
|
|
117
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
118
|
+
message, and the HTTP body that was received in the request.
|
|
119
|
+
|
|
120
|
+
"""
|
|
121
|
+
return super().new_api_call_builder.request(
|
|
122
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
123
|
+
.path("/settlementerrors/pendingsettlementbatches/search")
|
|
124
|
+
.http_method(HttpMethodEnum.POST)
|
|
125
|
+
.header_param(Parameter()
|
|
126
|
+
.key("Content-Type")
|
|
127
|
+
.value("application/json"))
|
|
128
|
+
.body_param(Parameter()
|
|
129
|
+
.value(body)
|
|
130
|
+
.is_required(True))
|
|
131
|
+
.header_param(Parameter()
|
|
132
|
+
.key("v-correlation-id")
|
|
133
|
+
.value(v_correlation_id))
|
|
134
|
+
.header_param(Parameter()
|
|
135
|
+
.key("accept")
|
|
136
|
+
.value("application/json"))
|
|
137
|
+
.body_serializer(APIHelper.json_serialize)
|
|
138
|
+
.auth(Single("api_key")),
|
|
139
|
+
).response(
|
|
140
|
+
ResponseHandler()
|
|
141
|
+
.deserializer(APIHelper.json_deserialize)
|
|
142
|
+
.deserialize_into(SettlementerrorsPendingsettlementbatchesSearchResponse.from_dictionary)
|
|
143
|
+
.is_api_response(True)
|
|
144
|
+
.local_error("default",
|
|
145
|
+
"Default errors",
|
|
146
|
+
SettlementerrorsPendingsettlementbatchesSearch0ErrorException),
|
|
147
|
+
).execute()
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"""reportingsettlementresearchapi.
|
|
2
|
+
|
|
3
|
+
This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: D410, E501, E101, D206
|
|
7
|
+
from apimatic_core.authentication.multiple.single_auth import (
|
|
8
|
+
Single,
|
|
9
|
+
)
|
|
10
|
+
from apimatic_core.request_builder import RequestBuilder
|
|
11
|
+
from apimatic_core.response_handler import ResponseHandler
|
|
12
|
+
from apimatic_core.types.parameter import Parameter
|
|
13
|
+
|
|
14
|
+
from reportingsettlementresearchapi.api_helper import (
|
|
15
|
+
APIHelper,
|
|
16
|
+
)
|
|
17
|
+
from reportingsettlementresearchapi.apis.base_api import (
|
|
18
|
+
BaseApi,
|
|
19
|
+
)
|
|
20
|
+
from reportingsettlementresearchapi.configuration import (
|
|
21
|
+
Server,
|
|
22
|
+
)
|
|
23
|
+
from reportingsettlementresearchapi.exceptions.settlements_search_0_error_exception import ( # noqa: E501
|
|
24
|
+
SettlementsSearch0ErrorException,
|
|
25
|
+
)
|
|
26
|
+
from reportingsettlementresearchapi.http.http_method_enum import (
|
|
27
|
+
HttpMethodEnum,
|
|
28
|
+
)
|
|
29
|
+
from reportingsettlementresearchapi.models.settlements_search_response import (
|
|
30
|
+
SettlementsSearchResponse,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class SettlementsApi(BaseApi):
|
|
35
|
+
"""A Controller to access Endpoints in the reportingsettlementresearchapi API."""
|
|
36
|
+
|
|
37
|
+
def __init__(self, config):
|
|
38
|
+
"""Initialize SettlementsApi object."""
|
|
39
|
+
super(SettlementsApi, self).__init__(config)
|
|
40
|
+
|
|
41
|
+
def search_settlements(self,
|
|
42
|
+
body,
|
|
43
|
+
v_correlation_id=None):
|
|
44
|
+
"""Perform a POST request to /settlements/search.
|
|
45
|
+
|
|
46
|
+
Endpoint to retrieve the settled transaction details for a given hierarchy
|
|
47
|
+
and date range, with a 45-day limit and unrestricted lookup period. Optional
|
|
48
|
+
fields help refine the search.
|
|
49
|
+
|
|
50
|
+
Args:
|
|
51
|
+
body (SettlementsSearchRequest): The request body parameter.
|
|
52
|
+
v_correlation_id (uuid|str, optional): Correlation Id
|
|
53
|
+
|
|
54
|
+
Returns:
|
|
55
|
+
ApiResponse: An object with the response value as well as other useful
|
|
56
|
+
information such as status codes and headers. OK
|
|
57
|
+
|
|
58
|
+
Raises:
|
|
59
|
+
ApiException: When an error occurs while fetching the data from the
|
|
60
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
61
|
+
message, and the HTTP body that was received in the request.
|
|
62
|
+
|
|
63
|
+
"""
|
|
64
|
+
return super().new_api_call_builder.request(
|
|
65
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
66
|
+
.path("/settlements/search")
|
|
67
|
+
.http_method(HttpMethodEnum.POST)
|
|
68
|
+
.header_param(Parameter()
|
|
69
|
+
.key("Content-Type")
|
|
70
|
+
.value("application/json"))
|
|
71
|
+
.body_param(Parameter()
|
|
72
|
+
.value(body)
|
|
73
|
+
.is_required(True))
|
|
74
|
+
.header_param(Parameter()
|
|
75
|
+
.key("v-correlation-id")
|
|
76
|
+
.value(v_correlation_id))
|
|
77
|
+
.header_param(Parameter()
|
|
78
|
+
.key("accept")
|
|
79
|
+
.value("application/json"))
|
|
80
|
+
.body_serializer(APIHelper.json_serialize)
|
|
81
|
+
.auth(Single("api_key")),
|
|
82
|
+
).response(
|
|
83
|
+
ResponseHandler()
|
|
84
|
+
.deserializer(APIHelper.json_deserialize)
|
|
85
|
+
.deserialize_into(SettlementsSearchResponse.from_dictionary)
|
|
86
|
+
.is_api_response(True)
|
|
87
|
+
.local_error("default",
|
|
88
|
+
"Default errors",
|
|
89
|
+
SettlementsSearch0ErrorException),
|
|
90
|
+
).execute()
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""reportingsettlementresearchapi.
|
|
2
|
+
|
|
3
|
+
This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: D410, E501, E101, D206
|
|
7
|
+
from apimatic_core.authentication.multiple.single_auth import (
|
|
8
|
+
Single,
|
|
9
|
+
)
|
|
10
|
+
from apimatic_core.request_builder import RequestBuilder
|
|
11
|
+
from apimatic_core.response_handler import ResponseHandler
|
|
12
|
+
from apimatic_core.types.parameter import Parameter
|
|
13
|
+
|
|
14
|
+
from reportingsettlementresearchapi.api_helper import (
|
|
15
|
+
APIHelper,
|
|
16
|
+
)
|
|
17
|
+
from reportingsettlementresearchapi.apis.base_api import (
|
|
18
|
+
BaseApi,
|
|
19
|
+
)
|
|
20
|
+
from reportingsettlementresearchapi.configuration import (
|
|
21
|
+
Server,
|
|
22
|
+
)
|
|
23
|
+
from reportingsettlementresearchapi.exceptions.transaction_statuses_0_error_exception import ( # noqa: E501
|
|
24
|
+
TransactionStatuses0ErrorException,
|
|
25
|
+
)
|
|
26
|
+
from reportingsettlementresearchapi.http.http_method_enum import (
|
|
27
|
+
HttpMethodEnum,
|
|
28
|
+
)
|
|
29
|
+
from reportingsettlementresearchapi.models.transaction_status_code import (
|
|
30
|
+
TransactionStatusCode,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class TransactionStatusApi(BaseApi):
|
|
35
|
+
"""A Controller to access Endpoints in the reportingsettlementresearchapi API."""
|
|
36
|
+
|
|
37
|
+
def __init__(self, config):
|
|
38
|
+
"""Initialize TransactionStatusApi object."""
|
|
39
|
+
super(TransactionStatusApi, self).__init__(config)
|
|
40
|
+
|
|
41
|
+
def get_transaction_status(self,
|
|
42
|
+
v_correlation_id=None):
|
|
43
|
+
"""Perform a GET request to /transaction-statuses.
|
|
44
|
+
|
|
45
|
+
Indicates the current state of a financial transaction, whether it's pending,
|
|
46
|
+
completed, failed, or under review.
|
|
47
|
+
|
|
48
|
+
Args:
|
|
49
|
+
v_correlation_id (uuid|str, optional): Correlation Id
|
|
50
|
+
|
|
51
|
+
Returns:
|
|
52
|
+
ApiResponse: An object with the response value as well as other useful
|
|
53
|
+
information such as status codes and headers. Transaction status code
|
|
54
|
+
and description.
|
|
55
|
+
|
|
56
|
+
Raises:
|
|
57
|
+
ApiException: When an error occurs while fetching the data from the
|
|
58
|
+
remote API. This exception includes the HTTP Response code, an error
|
|
59
|
+
message, and the HTTP body that was received in the request.
|
|
60
|
+
|
|
61
|
+
"""
|
|
62
|
+
return super().new_api_call_builder.request(
|
|
63
|
+
RequestBuilder().server(Server.DEFAULT)
|
|
64
|
+
.path("/transaction-statuses")
|
|
65
|
+
.http_method(HttpMethodEnum.GET)
|
|
66
|
+
.header_param(Parameter()
|
|
67
|
+
.key("v-correlation-id")
|
|
68
|
+
.value(v_correlation_id))
|
|
69
|
+
.header_param(Parameter()
|
|
70
|
+
.key("accept")
|
|
71
|
+
.value("application/json"))
|
|
72
|
+
.auth(Single("api_key")),
|
|
73
|
+
).response(
|
|
74
|
+
ResponseHandler()
|
|
75
|
+
.deserializer(APIHelper.json_deserialize)
|
|
76
|
+
.deserialize_into(TransactionStatusCode.from_dictionary)
|
|
77
|
+
.is_api_response(True)
|
|
78
|
+
.local_error("default",
|
|
79
|
+
"Default errors",
|
|
80
|
+
TransactionStatuses0ErrorException),
|
|
81
|
+
).execute()
|