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,561 @@
|
|
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.payroll_loan_response import PayrollLoanResponse
|
23
|
+
from pluggy_sdk.models.payroll_loans_list200_response import PayrollLoansList200Response
|
24
|
+
|
25
|
+
from pluggy_sdk.api_client import ApiClient, RequestSerialized
|
26
|
+
from pluggy_sdk.api_response import ApiResponse
|
27
|
+
from pluggy_sdk.rest import RESTResponseType
|
28
|
+
|
29
|
+
|
30
|
+
class PayrollLoanApi:
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
32
|
+
Ref: https://openapi-generator.tech
|
33
|
+
|
34
|
+
Do not edit the class manually.
|
35
|
+
"""
|
36
|
+
|
37
|
+
def __init__(self, api_client=None) -> None:
|
38
|
+
if api_client is None:
|
39
|
+
api_client = ApiClient.get_default()
|
40
|
+
self.api_client = api_client
|
41
|
+
|
42
|
+
|
43
|
+
@validate_call
|
44
|
+
def payroll_loans_list(
|
45
|
+
self,
|
46
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
47
|
+
_request_timeout: Union[
|
48
|
+
None,
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
50
|
+
Tuple[
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
53
|
+
]
|
54
|
+
] = None,
|
55
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
56
|
+
_content_type: Optional[StrictStr] = None,
|
57
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
58
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
59
|
+
) -> PayrollLoansList200Response:
|
60
|
+
"""List
|
61
|
+
|
62
|
+
Recovers all payroll loans collected for the item provided
|
63
|
+
|
64
|
+
:param item_id: Item's primary identifier (required)
|
65
|
+
:type item_id: str
|
66
|
+
:param _request_timeout: timeout setting for this request. If one
|
67
|
+
number provided, it will be total request
|
68
|
+
timeout. It can also be a pair (tuple) of
|
69
|
+
(connection, read) timeouts.
|
70
|
+
:type _request_timeout: int, tuple(int, int), optional
|
71
|
+
:param _request_auth: set to override the auth_settings for an a single
|
72
|
+
request; this effectively ignores the
|
73
|
+
authentication in the spec for a single request.
|
74
|
+
:type _request_auth: dict, optional
|
75
|
+
:param _content_type: force content-type for the request.
|
76
|
+
:type _content_type: str, Optional
|
77
|
+
:param _headers: set to override the headers for a single
|
78
|
+
request; this effectively ignores the headers
|
79
|
+
in the spec for a single request.
|
80
|
+
:type _headers: dict, optional
|
81
|
+
:param _host_index: set to override the host_index for a single
|
82
|
+
request; this effectively ignores the host_index
|
83
|
+
in the spec for a single request.
|
84
|
+
:type _host_index: int, optional
|
85
|
+
:return: Returns the result object.
|
86
|
+
""" # noqa: E501
|
87
|
+
|
88
|
+
_param = self._payroll_loans_list_serialize(
|
89
|
+
item_id=item_id,
|
90
|
+
_request_auth=_request_auth,
|
91
|
+
_content_type=_content_type,
|
92
|
+
_headers=_headers,
|
93
|
+
_host_index=_host_index
|
94
|
+
)
|
95
|
+
|
96
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
97
|
+
'200': "PayrollLoansList200Response",
|
98
|
+
}
|
99
|
+
response_data = self.api_client.call_api(
|
100
|
+
*_param,
|
101
|
+
_request_timeout=_request_timeout
|
102
|
+
)
|
103
|
+
response_data.read()
|
104
|
+
return self.api_client.response_deserialize(
|
105
|
+
response_data=response_data,
|
106
|
+
response_types_map=_response_types_map,
|
107
|
+
).data
|
108
|
+
|
109
|
+
|
110
|
+
@validate_call
|
111
|
+
def payroll_loans_list_with_http_info(
|
112
|
+
self,
|
113
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
114
|
+
_request_timeout: Union[
|
115
|
+
None,
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
117
|
+
Tuple[
|
118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
119
|
+
Annotated[StrictFloat, Field(gt=0)]
|
120
|
+
]
|
121
|
+
] = None,
|
122
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
123
|
+
_content_type: Optional[StrictStr] = None,
|
124
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
125
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
126
|
+
) -> ApiResponse[PayrollLoansList200Response]:
|
127
|
+
"""List
|
128
|
+
|
129
|
+
Recovers all payroll loans collected for the item provided
|
130
|
+
|
131
|
+
:param item_id: Item's primary identifier (required)
|
132
|
+
:type item_id: str
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
134
|
+
number provided, it will be total request
|
135
|
+
timeout. It can also be a pair (tuple) of
|
136
|
+
(connection, read) timeouts.
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
139
|
+
request; this effectively ignores the
|
140
|
+
authentication in the spec for a single request.
|
141
|
+
:type _request_auth: dict, optional
|
142
|
+
:param _content_type: force content-type for the request.
|
143
|
+
:type _content_type: str, Optional
|
144
|
+
:param _headers: set to override the headers for a single
|
145
|
+
request; this effectively ignores the headers
|
146
|
+
in the spec for a single request.
|
147
|
+
:type _headers: dict, optional
|
148
|
+
:param _host_index: set to override the host_index for a single
|
149
|
+
request; this effectively ignores the host_index
|
150
|
+
in the spec for a single request.
|
151
|
+
:type _host_index: int, optional
|
152
|
+
:return: Returns the result object.
|
153
|
+
""" # noqa: E501
|
154
|
+
|
155
|
+
_param = self._payroll_loans_list_serialize(
|
156
|
+
item_id=item_id,
|
157
|
+
_request_auth=_request_auth,
|
158
|
+
_content_type=_content_type,
|
159
|
+
_headers=_headers,
|
160
|
+
_host_index=_host_index
|
161
|
+
)
|
162
|
+
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
164
|
+
'200': "PayrollLoansList200Response",
|
165
|
+
}
|
166
|
+
response_data = self.api_client.call_api(
|
167
|
+
*_param,
|
168
|
+
_request_timeout=_request_timeout
|
169
|
+
)
|
170
|
+
response_data.read()
|
171
|
+
return self.api_client.response_deserialize(
|
172
|
+
response_data=response_data,
|
173
|
+
response_types_map=_response_types_map,
|
174
|
+
)
|
175
|
+
|
176
|
+
|
177
|
+
@validate_call
|
178
|
+
def payroll_loans_list_without_preload_content(
|
179
|
+
self,
|
180
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
181
|
+
_request_timeout: Union[
|
182
|
+
None,
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
184
|
+
Tuple[
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
186
|
+
Annotated[StrictFloat, Field(gt=0)]
|
187
|
+
]
|
188
|
+
] = None,
|
189
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
190
|
+
_content_type: Optional[StrictStr] = None,
|
191
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
192
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
193
|
+
) -> RESTResponseType:
|
194
|
+
"""List
|
195
|
+
|
196
|
+
Recovers all payroll loans collected for the item provided
|
197
|
+
|
198
|
+
:param item_id: Item's primary identifier (required)
|
199
|
+
:type item_id: str
|
200
|
+
:param _request_timeout: timeout setting for this request. If one
|
201
|
+
number provided, it will be total request
|
202
|
+
timeout. It can also be a pair (tuple) of
|
203
|
+
(connection, read) timeouts.
|
204
|
+
:type _request_timeout: int, tuple(int, int), optional
|
205
|
+
:param _request_auth: set to override the auth_settings for an a single
|
206
|
+
request; this effectively ignores the
|
207
|
+
authentication in the spec for a single request.
|
208
|
+
:type _request_auth: dict, optional
|
209
|
+
:param _content_type: force content-type for the request.
|
210
|
+
:type _content_type: str, Optional
|
211
|
+
:param _headers: set to override the headers for a single
|
212
|
+
request; this effectively ignores the headers
|
213
|
+
in the spec for a single request.
|
214
|
+
:type _headers: dict, optional
|
215
|
+
:param _host_index: set to override the host_index for a single
|
216
|
+
request; this effectively ignores the host_index
|
217
|
+
in the spec for a single request.
|
218
|
+
:type _host_index: int, optional
|
219
|
+
:return: Returns the result object.
|
220
|
+
""" # noqa: E501
|
221
|
+
|
222
|
+
_param = self._payroll_loans_list_serialize(
|
223
|
+
item_id=item_id,
|
224
|
+
_request_auth=_request_auth,
|
225
|
+
_content_type=_content_type,
|
226
|
+
_headers=_headers,
|
227
|
+
_host_index=_host_index
|
228
|
+
)
|
229
|
+
|
230
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
231
|
+
'200': "PayrollLoansList200Response",
|
232
|
+
}
|
233
|
+
response_data = self.api_client.call_api(
|
234
|
+
*_param,
|
235
|
+
_request_timeout=_request_timeout
|
236
|
+
)
|
237
|
+
return response_data.response
|
238
|
+
|
239
|
+
|
240
|
+
def _payroll_loans_list_serialize(
|
241
|
+
self,
|
242
|
+
item_id,
|
243
|
+
_request_auth,
|
244
|
+
_content_type,
|
245
|
+
_headers,
|
246
|
+
_host_index,
|
247
|
+
) -> RequestSerialized:
|
248
|
+
|
249
|
+
_host = None
|
250
|
+
|
251
|
+
_collection_formats: Dict[str, str] = {
|
252
|
+
}
|
253
|
+
|
254
|
+
_path_params: Dict[str, str] = {}
|
255
|
+
_query_params: List[Tuple[str, str]] = []
|
256
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
257
|
+
_form_params: List[Tuple[str, str]] = []
|
258
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
259
|
+
_body_params: Optional[bytes] = None
|
260
|
+
|
261
|
+
# process the path parameters
|
262
|
+
# process the query parameters
|
263
|
+
if item_id is not None:
|
264
|
+
|
265
|
+
_query_params.append(('itemId', item_id))
|
266
|
+
|
267
|
+
# process the header parameters
|
268
|
+
# process the form parameters
|
269
|
+
# process the body parameter
|
270
|
+
|
271
|
+
|
272
|
+
# set the HTTP header `Accept`
|
273
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
274
|
+
[
|
275
|
+
'application/json'
|
276
|
+
]
|
277
|
+
)
|
278
|
+
|
279
|
+
|
280
|
+
# authentication setting
|
281
|
+
_auth_settings: List[str] = [
|
282
|
+
'default'
|
283
|
+
]
|
284
|
+
|
285
|
+
return self.api_client.param_serialize(
|
286
|
+
method='GET',
|
287
|
+
resource_path='/payroll-loans',
|
288
|
+
path_params=_path_params,
|
289
|
+
query_params=_query_params,
|
290
|
+
header_params=_header_params,
|
291
|
+
body=_body_params,
|
292
|
+
post_params=_form_params,
|
293
|
+
files=_files,
|
294
|
+
auth_settings=_auth_settings,
|
295
|
+
collection_formats=_collection_formats,
|
296
|
+
_host=_host,
|
297
|
+
_request_auth=_request_auth
|
298
|
+
)
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
@validate_call
|
304
|
+
def payroll_loans_retrieve(
|
305
|
+
self,
|
306
|
+
id: Annotated[StrictStr, Field(description="loan primary identifier")],
|
307
|
+
_request_timeout: Union[
|
308
|
+
None,
|
309
|
+
Annotated[StrictFloat, Field(gt=0)],
|
310
|
+
Tuple[
|
311
|
+
Annotated[StrictFloat, Field(gt=0)],
|
312
|
+
Annotated[StrictFloat, Field(gt=0)]
|
313
|
+
]
|
314
|
+
] = None,
|
315
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
316
|
+
_content_type: Optional[StrictStr] = None,
|
317
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
318
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
319
|
+
) -> PayrollLoanResponse:
|
320
|
+
"""Retrieve
|
321
|
+
|
322
|
+
Recovers the payroll loan resource by its id
|
323
|
+
|
324
|
+
:param id: loan primary identifier (required)
|
325
|
+
:type id: str
|
326
|
+
:param _request_timeout: timeout setting for this request. If one
|
327
|
+
number provided, it will be total request
|
328
|
+
timeout. It can also be a pair (tuple) of
|
329
|
+
(connection, read) timeouts.
|
330
|
+
:type _request_timeout: int, tuple(int, int), optional
|
331
|
+
:param _request_auth: set to override the auth_settings for an a single
|
332
|
+
request; this effectively ignores the
|
333
|
+
authentication in the spec for a single request.
|
334
|
+
:type _request_auth: dict, optional
|
335
|
+
:param _content_type: force content-type for the request.
|
336
|
+
:type _content_type: str, Optional
|
337
|
+
:param _headers: set to override the headers for a single
|
338
|
+
request; this effectively ignores the headers
|
339
|
+
in the spec for a single request.
|
340
|
+
:type _headers: dict, optional
|
341
|
+
:param _host_index: set to override the host_index for a single
|
342
|
+
request; this effectively ignores the host_index
|
343
|
+
in the spec for a single request.
|
344
|
+
:type _host_index: int, optional
|
345
|
+
:return: Returns the result object.
|
346
|
+
""" # noqa: E501
|
347
|
+
|
348
|
+
_param = self._payroll_loans_retrieve_serialize(
|
349
|
+
id=id,
|
350
|
+
_request_auth=_request_auth,
|
351
|
+
_content_type=_content_type,
|
352
|
+
_headers=_headers,
|
353
|
+
_host_index=_host_index
|
354
|
+
)
|
355
|
+
|
356
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
357
|
+
'200': "PayrollLoanResponse",
|
358
|
+
'404': "GlobalErrorResponse",
|
359
|
+
}
|
360
|
+
response_data = self.api_client.call_api(
|
361
|
+
*_param,
|
362
|
+
_request_timeout=_request_timeout
|
363
|
+
)
|
364
|
+
response_data.read()
|
365
|
+
return self.api_client.response_deserialize(
|
366
|
+
response_data=response_data,
|
367
|
+
response_types_map=_response_types_map,
|
368
|
+
).data
|
369
|
+
|
370
|
+
|
371
|
+
@validate_call
|
372
|
+
def payroll_loans_retrieve_with_http_info(
|
373
|
+
self,
|
374
|
+
id: Annotated[StrictStr, Field(description="loan primary identifier")],
|
375
|
+
_request_timeout: Union[
|
376
|
+
None,
|
377
|
+
Annotated[StrictFloat, Field(gt=0)],
|
378
|
+
Tuple[
|
379
|
+
Annotated[StrictFloat, Field(gt=0)],
|
380
|
+
Annotated[StrictFloat, Field(gt=0)]
|
381
|
+
]
|
382
|
+
] = None,
|
383
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
384
|
+
_content_type: Optional[StrictStr] = None,
|
385
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
386
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
387
|
+
) -> ApiResponse[PayrollLoanResponse]:
|
388
|
+
"""Retrieve
|
389
|
+
|
390
|
+
Recovers the payroll loan resource by its id
|
391
|
+
|
392
|
+
:param id: loan primary identifier (required)
|
393
|
+
:type id: str
|
394
|
+
:param _request_timeout: timeout setting for this request. If one
|
395
|
+
number provided, it will be total request
|
396
|
+
timeout. It can also be a pair (tuple) of
|
397
|
+
(connection, read) timeouts.
|
398
|
+
:type _request_timeout: int, tuple(int, int), optional
|
399
|
+
:param _request_auth: set to override the auth_settings for an a single
|
400
|
+
request; this effectively ignores the
|
401
|
+
authentication in the spec for a single request.
|
402
|
+
:type _request_auth: dict, optional
|
403
|
+
:param _content_type: force content-type for the request.
|
404
|
+
:type _content_type: str, Optional
|
405
|
+
:param _headers: set to override the headers for a single
|
406
|
+
request; this effectively ignores the headers
|
407
|
+
in the spec for a single request.
|
408
|
+
:type _headers: dict, optional
|
409
|
+
:param _host_index: set to override the host_index for a single
|
410
|
+
request; this effectively ignores the host_index
|
411
|
+
in the spec for a single request.
|
412
|
+
:type _host_index: int, optional
|
413
|
+
:return: Returns the result object.
|
414
|
+
""" # noqa: E501
|
415
|
+
|
416
|
+
_param = self._payroll_loans_retrieve_serialize(
|
417
|
+
id=id,
|
418
|
+
_request_auth=_request_auth,
|
419
|
+
_content_type=_content_type,
|
420
|
+
_headers=_headers,
|
421
|
+
_host_index=_host_index
|
422
|
+
)
|
423
|
+
|
424
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
425
|
+
'200': "PayrollLoanResponse",
|
426
|
+
'404': "GlobalErrorResponse",
|
427
|
+
}
|
428
|
+
response_data = self.api_client.call_api(
|
429
|
+
*_param,
|
430
|
+
_request_timeout=_request_timeout
|
431
|
+
)
|
432
|
+
response_data.read()
|
433
|
+
return self.api_client.response_deserialize(
|
434
|
+
response_data=response_data,
|
435
|
+
response_types_map=_response_types_map,
|
436
|
+
)
|
437
|
+
|
438
|
+
|
439
|
+
@validate_call
|
440
|
+
def payroll_loans_retrieve_without_preload_content(
|
441
|
+
self,
|
442
|
+
id: Annotated[StrictStr, Field(description="loan primary identifier")],
|
443
|
+
_request_timeout: Union[
|
444
|
+
None,
|
445
|
+
Annotated[StrictFloat, Field(gt=0)],
|
446
|
+
Tuple[
|
447
|
+
Annotated[StrictFloat, Field(gt=0)],
|
448
|
+
Annotated[StrictFloat, Field(gt=0)]
|
449
|
+
]
|
450
|
+
] = None,
|
451
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
452
|
+
_content_type: Optional[StrictStr] = None,
|
453
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
454
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
455
|
+
) -> RESTResponseType:
|
456
|
+
"""Retrieve
|
457
|
+
|
458
|
+
Recovers the payroll loan resource by its id
|
459
|
+
|
460
|
+
:param id: loan primary identifier (required)
|
461
|
+
:type id: str
|
462
|
+
:param _request_timeout: timeout setting for this request. If one
|
463
|
+
number provided, it will be total request
|
464
|
+
timeout. It can also be a pair (tuple) of
|
465
|
+
(connection, read) timeouts.
|
466
|
+
:type _request_timeout: int, tuple(int, int), optional
|
467
|
+
:param _request_auth: set to override the auth_settings for an a single
|
468
|
+
request; this effectively ignores the
|
469
|
+
authentication in the spec for a single request.
|
470
|
+
:type _request_auth: dict, optional
|
471
|
+
:param _content_type: force content-type for the request.
|
472
|
+
:type _content_type: str, Optional
|
473
|
+
:param _headers: set to override the headers for a single
|
474
|
+
request; this effectively ignores the headers
|
475
|
+
in the spec for a single request.
|
476
|
+
:type _headers: dict, optional
|
477
|
+
:param _host_index: set to override the host_index for a single
|
478
|
+
request; this effectively ignores the host_index
|
479
|
+
in the spec for a single request.
|
480
|
+
:type _host_index: int, optional
|
481
|
+
:return: Returns the result object.
|
482
|
+
""" # noqa: E501
|
483
|
+
|
484
|
+
_param = self._payroll_loans_retrieve_serialize(
|
485
|
+
id=id,
|
486
|
+
_request_auth=_request_auth,
|
487
|
+
_content_type=_content_type,
|
488
|
+
_headers=_headers,
|
489
|
+
_host_index=_host_index
|
490
|
+
)
|
491
|
+
|
492
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
493
|
+
'200': "PayrollLoanResponse",
|
494
|
+
'404': "GlobalErrorResponse",
|
495
|
+
}
|
496
|
+
response_data = self.api_client.call_api(
|
497
|
+
*_param,
|
498
|
+
_request_timeout=_request_timeout
|
499
|
+
)
|
500
|
+
return response_data.response
|
501
|
+
|
502
|
+
|
503
|
+
def _payroll_loans_retrieve_serialize(
|
504
|
+
self,
|
505
|
+
id,
|
506
|
+
_request_auth,
|
507
|
+
_content_type,
|
508
|
+
_headers,
|
509
|
+
_host_index,
|
510
|
+
) -> RequestSerialized:
|
511
|
+
|
512
|
+
_host = None
|
513
|
+
|
514
|
+
_collection_formats: Dict[str, str] = {
|
515
|
+
}
|
516
|
+
|
517
|
+
_path_params: Dict[str, str] = {}
|
518
|
+
_query_params: List[Tuple[str, str]] = []
|
519
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
520
|
+
_form_params: List[Tuple[str, str]] = []
|
521
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
522
|
+
_body_params: Optional[bytes] = None
|
523
|
+
|
524
|
+
# process the path parameters
|
525
|
+
if id is not None:
|
526
|
+
_path_params['id'] = id
|
527
|
+
# process the query parameters
|
528
|
+
# process the header parameters
|
529
|
+
# process the form parameters
|
530
|
+
# process the body parameter
|
531
|
+
|
532
|
+
|
533
|
+
# set the HTTP header `Accept`
|
534
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
535
|
+
[
|
536
|
+
'application/json'
|
537
|
+
]
|
538
|
+
)
|
539
|
+
|
540
|
+
|
541
|
+
# authentication setting
|
542
|
+
_auth_settings: List[str] = [
|
543
|
+
'default'
|
544
|
+
]
|
545
|
+
|
546
|
+
return self.api_client.param_serialize(
|
547
|
+
method='GET',
|
548
|
+
resource_path='/payroll-loans/{id}',
|
549
|
+
path_params=_path_params,
|
550
|
+
query_params=_query_params,
|
551
|
+
header_params=_header_params,
|
552
|
+
body=_body_params,
|
553
|
+
post_params=_form_params,
|
554
|
+
files=_files,
|
555
|
+
auth_settings=_auth_settings,
|
556
|
+
collection_formats=_collection_formats,
|
557
|
+
_host=_host,
|
558
|
+
_request_auth=_request_auth
|
559
|
+
)
|
560
|
+
|
561
|
+
|