pluggy-sdk 1.0.0.post34__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.
- pluggy_sdk/__init__.py +200 -0
- pluggy_sdk/api/__init__.py +25 -0
- pluggy_sdk/api/account_api.py +588 -0
- pluggy_sdk/api/acquirer_anticipation_api.py +664 -0
- pluggy_sdk/api/acquirer_receivable_api.py +664 -0
- pluggy_sdk/api/acquirer_sale_api.py +664 -0
- pluggy_sdk/api/auth_api.py +605 -0
- pluggy_sdk/api/benefit_api.py +567 -0
- pluggy_sdk/api/bill_api.py +567 -0
- pluggy_sdk/api/bulk_payment_api.py +1127 -0
- pluggy_sdk/api/category_api.py +1096 -0
- pluggy_sdk/api/connector_api.py +979 -0
- pluggy_sdk/api/consent_api.py +576 -0
- pluggy_sdk/api/identity_api.py +581 -0
- pluggy_sdk/api/income_report_api.py +311 -0
- pluggy_sdk/api/investment_api.py +918 -0
- pluggy_sdk/api/items_api.py +1456 -0
- pluggy_sdk/api/loan_api.py +567 -0
- pluggy_sdk/api/payment_customer_api.py +1414 -0
- pluggy_sdk/api/payment_intent_api.py +842 -0
- pluggy_sdk/api/payment_receipts_api.py +842 -0
- pluggy_sdk/api/payment_recipient_api.py +1997 -0
- pluggy_sdk/api/payment_request_api.py +2739 -0
- pluggy_sdk/api/payment_schedule_api.py +823 -0
- pluggy_sdk/api/payroll_loan_api.py +561 -0
- pluggy_sdk/api/portfolio_yield_api.py +580 -0
- pluggy_sdk/api/smart_account_api.py +1704 -0
- pluggy_sdk/api/smart_account_transfer_api.py +610 -0
- pluggy_sdk/api/smart_transfer_api.py +1406 -0
- pluggy_sdk/api/transaction_api.py +963 -0
- pluggy_sdk/api/webhook_api.py +1406 -0
- pluggy_sdk/api_client.py +798 -0
- pluggy_sdk/api_response.py +21 -0
- pluggy_sdk/configuration.py +596 -0
- pluggy_sdk/exceptions.py +217 -0
- pluggy_sdk/models/__init__.py +163 -0
- pluggy_sdk/models/account.py +134 -0
- pluggy_sdk/models/accounts_list200_response.py +102 -0
- pluggy_sdk/models/acquirer_anticipation.py +117 -0
- pluggy_sdk/models/acquirer_anticipation_data.py +101 -0
- pluggy_sdk/models/acquirer_data.py +113 -0
- pluggy_sdk/models/acquirer_receivable.py +143 -0
- pluggy_sdk/models/acquirer_receivable_data.py +108 -0
- pluggy_sdk/models/acquirer_receivable_data_establishment.py +96 -0
- pluggy_sdk/models/acquirer_receivable_destination_account.py +92 -0
- pluggy_sdk/models/acquirer_receivable_related_sale.py +99 -0
- pluggy_sdk/models/acquirer_sale.py +171 -0
- pluggy_sdk/models/acquirer_sale_data.py +150 -0
- pluggy_sdk/models/acquirer_sale_installment.py +93 -0
- pluggy_sdk/models/acquirer_sale_installment_data.py +95 -0
- pluggy_sdk/models/address.py +110 -0
- pluggy_sdk/models/aggregated_portfolio.py +120 -0
- pluggy_sdk/models/aggregated_portfolio_response.py +102 -0
- pluggy_sdk/models/asset_distribution.py +88 -0
- pluggy_sdk/models/auth_request.py +90 -0
- pluggy_sdk/models/auth_response.py +88 -0
- pluggy_sdk/models/bank_data.py +92 -0
- pluggy_sdk/models/benefit_loan.py +121 -0
- pluggy_sdk/models/benefit_loan_client.py +102 -0
- pluggy_sdk/models/benefit_response.py +118 -0
- pluggy_sdk/models/benefit_response_paying_institution.py +94 -0
- pluggy_sdk/models/benefits_list200_response.py +102 -0
- pluggy_sdk/models/bill.py +109 -0
- pluggy_sdk/models/bill_finance_charge.py +103 -0
- pluggy_sdk/models/bills_list200_response.py +102 -0
- pluggy_sdk/models/boleto.py +121 -0
- pluggy_sdk/models/boleto_payer.py +90 -0
- pluggy_sdk/models/boleto_recipient.py +90 -0
- pluggy_sdk/models/bulk_payment.py +128 -0
- pluggy_sdk/models/bulk_payments_list200_response.py +102 -0
- pluggy_sdk/models/category.py +96 -0
- pluggy_sdk/models/client_category_rule.py +98 -0
- pluggy_sdk/models/company.py +90 -0
- pluggy_sdk/models/connect_token_request.py +94 -0
- pluggy_sdk/models/connect_token_response.py +88 -0
- pluggy_sdk/models/connector.py +145 -0
- pluggy_sdk/models/connector_credential.py +121 -0
- pluggy_sdk/models/connector_health.py +96 -0
- pluggy_sdk/models/connector_health_details.py +90 -0
- pluggy_sdk/models/connector_list_response.py +102 -0
- pluggy_sdk/models/connector_user_action.py +93 -0
- pluggy_sdk/models/consent.py +120 -0
- pluggy_sdk/models/create_boleto_payment_request.py +98 -0
- pluggy_sdk/models/create_bulk_payment.py +96 -0
- pluggy_sdk/models/create_client_category_rule.py +96 -0
- pluggy_sdk/models/create_item.py +115 -0
- pluggy_sdk/models/create_item_parameters.py +144 -0
- pluggy_sdk/models/create_or_update_payment_customer.py +105 -0
- pluggy_sdk/models/create_payment_customer_request_body.py +103 -0
- pluggy_sdk/models/create_payment_intent.py +110 -0
- pluggy_sdk/models/create_payment_recipient.py +104 -0
- pluggy_sdk/models/create_payment_request.py +115 -0
- pluggy_sdk/models/create_payment_request_schedule.py +189 -0
- pluggy_sdk/models/create_pix_qr_payment_request.py +96 -0
- pluggy_sdk/models/create_smart_account_request.py +104 -0
- pluggy_sdk/models/create_smart_account_transfer_request.py +92 -0
- pluggy_sdk/models/create_smart_transfer_payment.py +96 -0
- pluggy_sdk/models/create_smart_transfer_preauthorization.py +104 -0
- pluggy_sdk/models/create_webhook.py +99 -0
- pluggy_sdk/models/credential_select_option.py +90 -0
- pluggy_sdk/models/credit_card_metadata.py +101 -0
- pluggy_sdk/models/credit_data.py +127 -0
- pluggy_sdk/models/custom.py +100 -0
- pluggy_sdk/models/daily.py +101 -0
- pluggy_sdk/models/document.py +100 -0
- pluggy_sdk/models/email.py +100 -0
- pluggy_sdk/models/global_error_response.py +94 -0
- pluggy_sdk/models/i_count_response.py +88 -0
- pluggy_sdk/models/identity_relation.py +102 -0
- pluggy_sdk/models/identity_response.py +173 -0
- pluggy_sdk/models/identity_response_financial_relationships.py +111 -0
- pluggy_sdk/models/identity_response_financial_relationships_accounts_inner.py +98 -0
- pluggy_sdk/models/identity_response_financial_relationships_procurators_inner.py +101 -0
- pluggy_sdk/models/identity_response_qualifications.py +112 -0
- pluggy_sdk/models/identity_response_qualifications_informed_income.py +100 -0
- pluggy_sdk/models/identity_response_qualifications_informed_patrimony.py +90 -0
- pluggy_sdk/models/income_report.py +90 -0
- pluggy_sdk/models/income_reports_response.py +102 -0
- pluggy_sdk/models/investment.py +192 -0
- pluggy_sdk/models/investment_expenses.py +108 -0
- pluggy_sdk/models/investment_metadata.py +100 -0
- pluggy_sdk/models/investment_transaction.py +124 -0
- pluggy_sdk/models/investments_list200_response.py +102 -0
- pluggy_sdk/models/item.py +150 -0
- pluggy_sdk/models/item_creation_error_response.py +102 -0
- pluggy_sdk/models/item_error.py +94 -0
- pluggy_sdk/models/item_options.py +94 -0
- pluggy_sdk/models/loan.py +199 -0
- pluggy_sdk/models/loan_contracted_fee.py +118 -0
- pluggy_sdk/models/loan_contracted_finance_charge.py +92 -0
- pluggy_sdk/models/loan_installment_balloon_payment.py +95 -0
- pluggy_sdk/models/loan_installment_balloon_payment_amount.py +90 -0
- pluggy_sdk/models/loan_installments.py +130 -0
- pluggy_sdk/models/loan_interest_rate.py +136 -0
- pluggy_sdk/models/loan_payment_release.py +103 -0
- pluggy_sdk/models/loan_payment_release_over_parcel.py +106 -0
- pluggy_sdk/models/loan_payment_release_over_parcel_charge.py +92 -0
- pluggy_sdk/models/loan_payment_release_over_parcel_fee.py +92 -0
- pluggy_sdk/models/loan_payments.py +98 -0
- pluggy_sdk/models/loan_warranty.py +94 -0
- pluggy_sdk/models/loans_list200_response.py +102 -0
- pluggy_sdk/models/merchant.py +96 -0
- pluggy_sdk/models/monthly.py +103 -0
- pluggy_sdk/models/monthly_portfolio.py +100 -0
- pluggy_sdk/models/monthly_portfolio_response.py +102 -0
- pluggy_sdk/models/not_authenticated_response.py +90 -0
- pluggy_sdk/models/page_response_acquirer_anticipations.py +102 -0
- pluggy_sdk/models/page_response_acquirer_receivables.py +102 -0
- pluggy_sdk/models/page_response_acquirer_sales.py +102 -0
- pluggy_sdk/models/page_response_category_rules.py +102 -0
- pluggy_sdk/models/page_response_consents.py +102 -0
- pluggy_sdk/models/page_response_investment_transactions.py +102 -0
- pluggy_sdk/models/page_response_transactions.py +102 -0
- pluggy_sdk/models/parameter_validation_error.py +92 -0
- pluggy_sdk/models/parameter_validation_response.py +98 -0
- pluggy_sdk/models/payment_customer.py +105 -0
- pluggy_sdk/models/payment_customers_list200_response.py +102 -0
- pluggy_sdk/models/payment_data.py +111 -0
- pluggy_sdk/models/payment_data_boleto_metadata.py +98 -0
- pluggy_sdk/models/payment_data_participant.py +102 -0
- pluggy_sdk/models/payment_institution.py +101 -0
- pluggy_sdk/models/payment_intent.py +145 -0
- pluggy_sdk/models/payment_intent_parameter.py +90 -0
- pluggy_sdk/models/payment_intents_list200_response.py +102 -0
- pluggy_sdk/models/payment_receipt.py +120 -0
- pluggy_sdk/models/payment_receipt_bank_account.py +92 -0
- pluggy_sdk/models/payment_receipt_person.py +96 -0
- pluggy_sdk/models/payment_recipient.py +110 -0
- pluggy_sdk/models/payment_recipient_account.py +92 -0
- pluggy_sdk/models/payment_recipients_institution_list200_response.py +102 -0
- pluggy_sdk/models/payment_recipients_list200_response.py +102 -0
- pluggy_sdk/models/payment_request.py +132 -0
- pluggy_sdk/models/payment_request_callback_urls.py +92 -0
- pluggy_sdk/models/payment_request_receipt_list200_response.py +102 -0
- pluggy_sdk/models/payment_request_schedule.py +183 -0
- pluggy_sdk/models/payment_requests_list200_response.py +102 -0
- pluggy_sdk/models/payment_schedules_list200_response.py +102 -0
- pluggy_sdk/models/payroll_loan.py +121 -0
- pluggy_sdk/models/payroll_loan_client.py +102 -0
- pluggy_sdk/models/payroll_loan_response.py +125 -0
- pluggy_sdk/models/payroll_loan_response_client.py +102 -0
- pluggy_sdk/models/payroll_loans_list200_response.py +102 -0
- pluggy_sdk/models/percentage_over_index.py +90 -0
- pluggy_sdk/models/phone_number.py +100 -0
- pluggy_sdk/models/pix_data.py +90 -0
- pluggy_sdk/models/schedule_payment.py +102 -0
- pluggy_sdk/models/schedule_type_custom.py +100 -0
- pluggy_sdk/models/schedule_type_daily.py +101 -0
- pluggy_sdk/models/schedule_type_monthly.py +103 -0
- pluggy_sdk/models/schedule_type_single.py +98 -0
- pluggy_sdk/models/schedule_type_weekly.py +110 -0
- pluggy_sdk/models/single.py +98 -0
- pluggy_sdk/models/smart_account.py +107 -0
- pluggy_sdk/models/smart_account_address.py +112 -0
- pluggy_sdk/models/smart_account_balance.py +95 -0
- pluggy_sdk/models/smart_account_transfer.py +123 -0
- pluggy_sdk/models/smart_accounts_list200_response.py +102 -0
- pluggy_sdk/models/smart_tranfers_preauthorizations_list200_response.py +102 -0
- pluggy_sdk/models/smart_transfer_callback_urls.py +90 -0
- pluggy_sdk/models/smart_transfer_payment.py +116 -0
- pluggy_sdk/models/smart_transfer_preauthorization.py +128 -0
- pluggy_sdk/models/smart_transfer_preauthorization_parameter.py +90 -0
- pluggy_sdk/models/status_detail.py +127 -0
- pluggy_sdk/models/status_detail_product.py +101 -0
- pluggy_sdk/models/status_detail_product_warning.py +92 -0
- pluggy_sdk/models/transaction.py +141 -0
- pluggy_sdk/models/update_item.py +109 -0
- pluggy_sdk/models/update_item_parameters.py +144 -0
- pluggy_sdk/models/update_payment_recipient.py +102 -0
- pluggy_sdk/models/update_payment_request.py +102 -0
- pluggy_sdk/models/update_transaction.py +88 -0
- pluggy_sdk/models/webhook.py +106 -0
- pluggy_sdk/models/webhook_creation_error_response.py +90 -0
- pluggy_sdk/models/webhooks_list200_response.py +102 -0
- pluggy_sdk/models/weekly.py +110 -0
- pluggy_sdk/py.typed +0 -0
- pluggy_sdk/rest.py +258 -0
- pluggy_sdk-1.0.0.post34.dist-info/METADATA +373 -0
- pluggy_sdk-1.0.0.post34.dist-info/RECORD +221 -0
- pluggy_sdk-1.0.0.post34.dist-info/WHEEL +5 -0
- pluggy_sdk-1.0.0.post34.dist-info/top_level.txt +1 -0
@@ -0,0 +1,311 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pluggy API
|
5
|
+
|
6
|
+
Pluggy's main API to review data and execute connectors
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: hello@pluggy.ai
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
import warnings
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
|
+
from typing_extensions import Annotated
|
19
|
+
|
20
|
+
from pydantic import Field, StrictStr
|
21
|
+
from typing_extensions import Annotated
|
22
|
+
from pluggy_sdk.models.income_reports_response import IncomeReportsResponse
|
23
|
+
|
24
|
+
from pluggy_sdk.api_client import ApiClient, RequestSerialized
|
25
|
+
from pluggy_sdk.api_response import ApiResponse
|
26
|
+
from pluggy_sdk.rest import RESTResponseType
|
27
|
+
|
28
|
+
|
29
|
+
class IncomeReportApi:
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
31
|
+
Ref: https://openapi-generator.tech
|
32
|
+
|
33
|
+
Do not edit the class manually.
|
34
|
+
"""
|
35
|
+
|
36
|
+
def __init__(self, api_client=None) -> None:
|
37
|
+
if api_client is None:
|
38
|
+
api_client = ApiClient.get_default()
|
39
|
+
self.api_client = api_client
|
40
|
+
|
41
|
+
|
42
|
+
@validate_call
|
43
|
+
def income_reports_find_by_item(
|
44
|
+
self,
|
45
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
46
|
+
_request_timeout: Union[
|
47
|
+
None,
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
49
|
+
Tuple[
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
52
|
+
]
|
53
|
+
] = None,
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
58
|
+
) -> IncomeReportsResponse:
|
59
|
+
"""Find income reports by item
|
60
|
+
|
61
|
+
Recovers income reports of an item if available
|
62
|
+
|
63
|
+
:param item_id: Item's primary identifier (required)
|
64
|
+
:type item_id: str
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
66
|
+
number provided, it will be total request
|
67
|
+
timeout. It can also be a pair (tuple) of
|
68
|
+
(connection, read) timeouts.
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
71
|
+
request; this effectively ignores the
|
72
|
+
authentication in the spec for a single request.
|
73
|
+
:type _request_auth: dict, optional
|
74
|
+
:param _content_type: force content-type for the request.
|
75
|
+
:type _content_type: str, Optional
|
76
|
+
:param _headers: set to override the headers for a single
|
77
|
+
request; this effectively ignores the headers
|
78
|
+
in the spec for a single request.
|
79
|
+
:type _headers: dict, optional
|
80
|
+
:param _host_index: set to override the host_index for a single
|
81
|
+
request; this effectively ignores the host_index
|
82
|
+
in the spec for a single request.
|
83
|
+
:type _host_index: int, optional
|
84
|
+
:return: Returns the result object.
|
85
|
+
""" # noqa: E501
|
86
|
+
|
87
|
+
_param = self._income_reports_find_by_item_serialize(
|
88
|
+
item_id=item_id,
|
89
|
+
_request_auth=_request_auth,
|
90
|
+
_content_type=_content_type,
|
91
|
+
_headers=_headers,
|
92
|
+
_host_index=_host_index
|
93
|
+
)
|
94
|
+
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
96
|
+
'200': "IncomeReportsResponse",
|
97
|
+
'400': "GlobalErrorResponse",
|
98
|
+
'404': "GlobalErrorResponse",
|
99
|
+
'500': "GlobalErrorResponse",
|
100
|
+
}
|
101
|
+
response_data = self.api_client.call_api(
|
102
|
+
*_param,
|
103
|
+
_request_timeout=_request_timeout
|
104
|
+
)
|
105
|
+
response_data.read()
|
106
|
+
return self.api_client.response_deserialize(
|
107
|
+
response_data=response_data,
|
108
|
+
response_types_map=_response_types_map,
|
109
|
+
).data
|
110
|
+
|
111
|
+
|
112
|
+
@validate_call
|
113
|
+
def income_reports_find_by_item_with_http_info(
|
114
|
+
self,
|
115
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
116
|
+
_request_timeout: Union[
|
117
|
+
None,
|
118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
119
|
+
Tuple[
|
120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
121
|
+
Annotated[StrictFloat, Field(gt=0)]
|
122
|
+
]
|
123
|
+
] = None,
|
124
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
125
|
+
_content_type: Optional[StrictStr] = None,
|
126
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
127
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
128
|
+
) -> ApiResponse[IncomeReportsResponse]:
|
129
|
+
"""Find income reports by item
|
130
|
+
|
131
|
+
Recovers income reports of an item if available
|
132
|
+
|
133
|
+
:param item_id: Item's primary identifier (required)
|
134
|
+
:type item_id: str
|
135
|
+
:param _request_timeout: timeout setting for this request. If one
|
136
|
+
number provided, it will be total request
|
137
|
+
timeout. It can also be a pair (tuple) of
|
138
|
+
(connection, read) timeouts.
|
139
|
+
:type _request_timeout: int, tuple(int, int), optional
|
140
|
+
:param _request_auth: set to override the auth_settings for an a single
|
141
|
+
request; this effectively ignores the
|
142
|
+
authentication in the spec for a single request.
|
143
|
+
:type _request_auth: dict, optional
|
144
|
+
:param _content_type: force content-type for the request.
|
145
|
+
:type _content_type: str, Optional
|
146
|
+
:param _headers: set to override the headers for a single
|
147
|
+
request; this effectively ignores the headers
|
148
|
+
in the spec for a single request.
|
149
|
+
:type _headers: dict, optional
|
150
|
+
:param _host_index: set to override the host_index for a single
|
151
|
+
request; this effectively ignores the host_index
|
152
|
+
in the spec for a single request.
|
153
|
+
:type _host_index: int, optional
|
154
|
+
:return: Returns the result object.
|
155
|
+
""" # noqa: E501
|
156
|
+
|
157
|
+
_param = self._income_reports_find_by_item_serialize(
|
158
|
+
item_id=item_id,
|
159
|
+
_request_auth=_request_auth,
|
160
|
+
_content_type=_content_type,
|
161
|
+
_headers=_headers,
|
162
|
+
_host_index=_host_index
|
163
|
+
)
|
164
|
+
|
165
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
166
|
+
'200': "IncomeReportsResponse",
|
167
|
+
'400': "GlobalErrorResponse",
|
168
|
+
'404': "GlobalErrorResponse",
|
169
|
+
'500': "GlobalErrorResponse",
|
170
|
+
}
|
171
|
+
response_data = self.api_client.call_api(
|
172
|
+
*_param,
|
173
|
+
_request_timeout=_request_timeout
|
174
|
+
)
|
175
|
+
response_data.read()
|
176
|
+
return self.api_client.response_deserialize(
|
177
|
+
response_data=response_data,
|
178
|
+
response_types_map=_response_types_map,
|
179
|
+
)
|
180
|
+
|
181
|
+
|
182
|
+
@validate_call
|
183
|
+
def income_reports_find_by_item_without_preload_content(
|
184
|
+
self,
|
185
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
186
|
+
_request_timeout: Union[
|
187
|
+
None,
|
188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
189
|
+
Tuple[
|
190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
191
|
+
Annotated[StrictFloat, Field(gt=0)]
|
192
|
+
]
|
193
|
+
] = None,
|
194
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
195
|
+
_content_type: Optional[StrictStr] = None,
|
196
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
197
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
198
|
+
) -> RESTResponseType:
|
199
|
+
"""Find income reports by item
|
200
|
+
|
201
|
+
Recovers income reports of an item if available
|
202
|
+
|
203
|
+
:param item_id: Item's primary identifier (required)
|
204
|
+
:type item_id: str
|
205
|
+
:param _request_timeout: timeout setting for this request. If one
|
206
|
+
number provided, it will be total request
|
207
|
+
timeout. It can also be a pair (tuple) of
|
208
|
+
(connection, read) timeouts.
|
209
|
+
:type _request_timeout: int, tuple(int, int), optional
|
210
|
+
:param _request_auth: set to override the auth_settings for an a single
|
211
|
+
request; this effectively ignores the
|
212
|
+
authentication in the spec for a single request.
|
213
|
+
:type _request_auth: dict, optional
|
214
|
+
:param _content_type: force content-type for the request.
|
215
|
+
:type _content_type: str, Optional
|
216
|
+
:param _headers: set to override the headers for a single
|
217
|
+
request; this effectively ignores the headers
|
218
|
+
in the spec for a single request.
|
219
|
+
:type _headers: dict, optional
|
220
|
+
:param _host_index: set to override the host_index for a single
|
221
|
+
request; this effectively ignores the host_index
|
222
|
+
in the spec for a single request.
|
223
|
+
:type _host_index: int, optional
|
224
|
+
:return: Returns the result object.
|
225
|
+
""" # noqa: E501
|
226
|
+
|
227
|
+
_param = self._income_reports_find_by_item_serialize(
|
228
|
+
item_id=item_id,
|
229
|
+
_request_auth=_request_auth,
|
230
|
+
_content_type=_content_type,
|
231
|
+
_headers=_headers,
|
232
|
+
_host_index=_host_index
|
233
|
+
)
|
234
|
+
|
235
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
236
|
+
'200': "IncomeReportsResponse",
|
237
|
+
'400': "GlobalErrorResponse",
|
238
|
+
'404': "GlobalErrorResponse",
|
239
|
+
'500': "GlobalErrorResponse",
|
240
|
+
}
|
241
|
+
response_data = self.api_client.call_api(
|
242
|
+
*_param,
|
243
|
+
_request_timeout=_request_timeout
|
244
|
+
)
|
245
|
+
return response_data.response
|
246
|
+
|
247
|
+
|
248
|
+
def _income_reports_find_by_item_serialize(
|
249
|
+
self,
|
250
|
+
item_id,
|
251
|
+
_request_auth,
|
252
|
+
_content_type,
|
253
|
+
_headers,
|
254
|
+
_host_index,
|
255
|
+
) -> RequestSerialized:
|
256
|
+
|
257
|
+
_host = None
|
258
|
+
|
259
|
+
_collection_formats: Dict[str, str] = {
|
260
|
+
}
|
261
|
+
|
262
|
+
_path_params: Dict[str, str] = {}
|
263
|
+
_query_params: List[Tuple[str, str]] = []
|
264
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
265
|
+
_form_params: List[Tuple[str, str]] = []
|
266
|
+
_files: Dict[
|
267
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
268
|
+
] = {}
|
269
|
+
_body_params: Optional[bytes] = None
|
270
|
+
|
271
|
+
# process the path parameters
|
272
|
+
# process the query parameters
|
273
|
+
if item_id is not None:
|
274
|
+
|
275
|
+
_query_params.append(('itemId', item_id))
|
276
|
+
|
277
|
+
# process the header parameters
|
278
|
+
# process the form parameters
|
279
|
+
# process the body parameter
|
280
|
+
|
281
|
+
|
282
|
+
# set the HTTP header `Accept`
|
283
|
+
if 'Accept' not in _header_params:
|
284
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
285
|
+
[
|
286
|
+
'application/json'
|
287
|
+
]
|
288
|
+
)
|
289
|
+
|
290
|
+
|
291
|
+
# authentication setting
|
292
|
+
_auth_settings: List[str] = [
|
293
|
+
'default'
|
294
|
+
]
|
295
|
+
|
296
|
+
return self.api_client.param_serialize(
|
297
|
+
method='GET',
|
298
|
+
resource_path='/income-reports',
|
299
|
+
path_params=_path_params,
|
300
|
+
query_params=_query_params,
|
301
|
+
header_params=_header_params,
|
302
|
+
body=_body_params,
|
303
|
+
post_params=_form_params,
|
304
|
+
files=_files,
|
305
|
+
auth_settings=_auth_settings,
|
306
|
+
collection_formats=_collection_formats,
|
307
|
+
_host=_host,
|
308
|
+
_request_auth=_request_auth
|
309
|
+
)
|
310
|
+
|
311
|
+
|