pluggy-sdk 1.0.0.post12__py3-none-any.whl → 1.0.0.post14__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 +13 -10
- pluggy_sdk/api/__init__.py +2 -1
- pluggy_sdk/api/benefit_api.py +561 -0
- pluggy_sdk/api/consent_api.py +570 -0
- pluggy_sdk/api/payment_request_api.py +9 -9
- pluggy_sdk/api_client.py +1 -1
- pluggy_sdk/configuration.py +1 -1
- pluggy_sdk/models/__init__.py +10 -8
- 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/connector.py +2 -2
- pluggy_sdk/models/create_item.py +2 -2
- pluggy_sdk/models/custom.py +100 -0
- pluggy_sdk/models/daily.py +101 -0
- pluggy_sdk/models/item.py +2 -2
- pluggy_sdk/models/monthly.py +103 -0
- pluggy_sdk/models/payment_request.py +2 -2
- pluggy_sdk/models/payment_request_schedule.py +48 -48
- pluggy_sdk/models/payroll_loan.py +121 -0
- pluggy_sdk/models/payroll_loan_client.py +102 -0
- pluggy_sdk/models/single.py +98 -0
- pluggy_sdk/models/update_item.py +2 -2
- pluggy_sdk/models/weekly.py +110 -0
- {pluggy_sdk-1.0.0.post12.dist-info → pluggy_sdk-1.0.0.post14.dist-info}/METADATA +19 -15
- {pluggy_sdk-1.0.0.post12.dist-info → pluggy_sdk-1.0.0.post14.dist-info}/RECORD +30 -16
- {pluggy_sdk-1.0.0.post12.dist-info → pluggy_sdk-1.0.0.post14.dist-info}/WHEEL +1 -1
- {pluggy_sdk-1.0.0.post12.dist-info → pluggy_sdk-1.0.0.post14.dist-info}/top_level.txt +0 -0
pluggy_sdk/__init__.py
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
""" # noqa: E501
|
16
16
|
|
17
17
|
|
18
|
-
__version__ = "1.0.0.
|
18
|
+
__version__ = "1.0.0.post14"
|
19
19
|
|
20
20
|
# import apis into sdk package
|
21
21
|
from pluggy_sdk.api.account_api import AccountApi
|
@@ -23,10 +23,12 @@ from pluggy_sdk.api.acquirer_anticipation_api import AcquirerAnticipationApi
|
|
23
23
|
from pluggy_sdk.api.acquirer_receivable_api import AcquirerReceivableApi
|
24
24
|
from pluggy_sdk.api.acquirer_sale_api import AcquirerSaleApi
|
25
25
|
from pluggy_sdk.api.auth_api import AuthApi
|
26
|
+
from pluggy_sdk.api.benefit_api import BenefitApi
|
26
27
|
from pluggy_sdk.api.bill_api import BillApi
|
27
28
|
from pluggy_sdk.api.bulk_payment_api import BulkPaymentApi
|
28
29
|
from pluggy_sdk.api.category_api import CategoryApi
|
29
30
|
from pluggy_sdk.api.connector_api import ConnectorApi
|
31
|
+
from pluggy_sdk.api.consent_api import ConsentApi
|
30
32
|
from pluggy_sdk.api.identity_api import IdentityApi
|
31
33
|
from pluggy_sdk.api.income_report_api import IncomeReportApi
|
32
34
|
from pluggy_sdk.api.investment_api import InvestmentApi
|
@@ -36,7 +38,6 @@ from pluggy_sdk.api.payment_customer_api import PaymentCustomerApi
|
|
36
38
|
from pluggy_sdk.api.payment_intent_api import PaymentIntentApi
|
37
39
|
from pluggy_sdk.api.payment_recipient_api import PaymentRecipientApi
|
38
40
|
from pluggy_sdk.api.payment_request_api import PaymentRequestApi
|
39
|
-
from pluggy_sdk.api.payroll_loan_api import PayrollLoanApi
|
40
41
|
from pluggy_sdk.api.portfolio_yield_api import PortfolioYieldApi
|
41
42
|
from pluggy_sdk.api.smart_account_api import SmartAccountApi
|
42
43
|
from pluggy_sdk.api.transaction_api import TransactionApi
|
@@ -75,6 +76,11 @@ from pluggy_sdk.models.asset_distribution import AssetDistribution
|
|
75
76
|
from pluggy_sdk.models.auth_request import AuthRequest
|
76
77
|
from pluggy_sdk.models.auth_response import AuthResponse
|
77
78
|
from pluggy_sdk.models.bank_data import BankData
|
79
|
+
from pluggy_sdk.models.benefit_loan import BenefitLoan
|
80
|
+
from pluggy_sdk.models.benefit_loan_client import BenefitLoanClient
|
81
|
+
from pluggy_sdk.models.benefit_response import BenefitResponse
|
82
|
+
from pluggy_sdk.models.benefit_response_paying_institution import BenefitResponsePayingInstitution
|
83
|
+
from pluggy_sdk.models.benefits_list200_response import BenefitsList200Response
|
78
84
|
from pluggy_sdk.models.bill import Bill
|
79
85
|
from pluggy_sdk.models.bill_finance_charge import BillFinanceCharge
|
80
86
|
from pluggy_sdk.models.bills_list200_response import BillsList200Response
|
@@ -83,6 +89,7 @@ from pluggy_sdk.models.boleto_payer import BoletoPayer
|
|
83
89
|
from pluggy_sdk.models.boleto_recipient import BoletoRecipient
|
84
90
|
from pluggy_sdk.models.bulk_payment import BulkPayment
|
85
91
|
from pluggy_sdk.models.bulk_payments_list200_response import BulkPaymentsList200Response
|
92
|
+
from pluggy_sdk.models.custom import CUSTOM
|
86
93
|
from pluggy_sdk.models.category import Category
|
87
94
|
from pluggy_sdk.models.client_category_rule import ClientCategoryRule
|
88
95
|
from pluggy_sdk.models.company import Company
|
@@ -112,6 +119,7 @@ from pluggy_sdk.models.create_webhook import CreateWebhook
|
|
112
119
|
from pluggy_sdk.models.credential_select_option import CredentialSelectOption
|
113
120
|
from pluggy_sdk.models.credit_card_metadata import CreditCardMetadata
|
114
121
|
from pluggy_sdk.models.credit_data import CreditData
|
122
|
+
from pluggy_sdk.models.daily import DAILY
|
115
123
|
from pluggy_sdk.models.document import Document
|
116
124
|
from pluggy_sdk.models.email import Email
|
117
125
|
from pluggy_sdk.models.global_error_response import GlobalErrorResponse
|
@@ -143,6 +151,7 @@ from pluggy_sdk.models.loan_payment_release_over_parcel_fee import LoanPaymentRe
|
|
143
151
|
from pluggy_sdk.models.loan_payments import LoanPayments
|
144
152
|
from pluggy_sdk.models.loan_warranty import LoanWarranty
|
145
153
|
from pluggy_sdk.models.loans_list200_response import LoansList200Response
|
154
|
+
from pluggy_sdk.models.monthly import MONTHLY
|
146
155
|
from pluggy_sdk.models.merchant import Merchant
|
147
156
|
from pluggy_sdk.models.monthly_portfolio import MonthlyPortfolio
|
148
157
|
from pluggy_sdk.models.monthly_portfolio_response import MonthlyPortfolioResponse
|
@@ -177,18 +186,11 @@ from pluggy_sdk.models.payment_request_receipt_list200_response import PaymentRe
|
|
177
186
|
from pluggy_sdk.models.payment_request_schedule import PaymentRequestSchedule
|
178
187
|
from pluggy_sdk.models.payment_requests_list200_response import PaymentRequestsList200Response
|
179
188
|
from pluggy_sdk.models.payment_schedules_list200_response import PaymentSchedulesList200Response
|
180
|
-
from pluggy_sdk.models.payroll_loan_response import PayrollLoanResponse
|
181
|
-
from pluggy_sdk.models.payroll_loan_response_client import PayrollLoanResponseClient
|
182
|
-
from pluggy_sdk.models.payroll_loans_list200_response import PayrollLoansList200Response
|
183
189
|
from pluggy_sdk.models.percentage_over_index import PercentageOverIndex
|
184
190
|
from pluggy_sdk.models.phone_number import PhoneNumber
|
185
191
|
from pluggy_sdk.models.pix_data import PixData
|
192
|
+
from pluggy_sdk.models.single import SINGLE
|
186
193
|
from pluggy_sdk.models.schedule_payment import SchedulePayment
|
187
|
-
from pluggy_sdk.models.schedule_type_custom import ScheduleTypeCustom
|
188
|
-
from pluggy_sdk.models.schedule_type_daily import ScheduleTypeDaily
|
189
|
-
from pluggy_sdk.models.schedule_type_monthly import ScheduleTypeMonthly
|
190
|
-
from pluggy_sdk.models.schedule_type_single import ScheduleTypeSingle
|
191
|
-
from pluggy_sdk.models.schedule_type_weekly import ScheduleTypeWeekly
|
192
194
|
from pluggy_sdk.models.smart_account import SmartAccount
|
193
195
|
from pluggy_sdk.models.smart_account_address import SmartAccountAddress
|
194
196
|
from pluggy_sdk.models.smart_account_balance import SmartAccountBalance
|
@@ -203,6 +205,7 @@ from pluggy_sdk.models.update_item_parameters import UpdateItemParameters
|
|
203
205
|
from pluggy_sdk.models.update_payment_recipient import UpdatePaymentRecipient
|
204
206
|
from pluggy_sdk.models.update_payment_request import UpdatePaymentRequest
|
205
207
|
from pluggy_sdk.models.update_transaction import UpdateTransaction
|
208
|
+
from pluggy_sdk.models.weekly import WEEKLY
|
206
209
|
from pluggy_sdk.models.webhook import Webhook
|
207
210
|
from pluggy_sdk.models.webhook_creation_error_response import WebhookCreationErrorResponse
|
208
211
|
from pluggy_sdk.models.webhooks_list200_response import WebhooksList200Response
|
pluggy_sdk/api/__init__.py
CHANGED
@@ -6,10 +6,12 @@ from pluggy_sdk.api.acquirer_anticipation_api import AcquirerAnticipationApi
|
|
6
6
|
from pluggy_sdk.api.acquirer_receivable_api import AcquirerReceivableApi
|
7
7
|
from pluggy_sdk.api.acquirer_sale_api import AcquirerSaleApi
|
8
8
|
from pluggy_sdk.api.auth_api import AuthApi
|
9
|
+
from pluggy_sdk.api.benefit_api import BenefitApi
|
9
10
|
from pluggy_sdk.api.bill_api import BillApi
|
10
11
|
from pluggy_sdk.api.bulk_payment_api import BulkPaymentApi
|
11
12
|
from pluggy_sdk.api.category_api import CategoryApi
|
12
13
|
from pluggy_sdk.api.connector_api import ConnectorApi
|
14
|
+
from pluggy_sdk.api.consent_api import ConsentApi
|
13
15
|
from pluggy_sdk.api.identity_api import IdentityApi
|
14
16
|
from pluggy_sdk.api.income_report_api import IncomeReportApi
|
15
17
|
from pluggy_sdk.api.investment_api import InvestmentApi
|
@@ -19,7 +21,6 @@ from pluggy_sdk.api.payment_customer_api import PaymentCustomerApi
|
|
19
21
|
from pluggy_sdk.api.payment_intent_api import PaymentIntentApi
|
20
22
|
from pluggy_sdk.api.payment_recipient_api import PaymentRecipientApi
|
21
23
|
from pluggy_sdk.api.payment_request_api import PaymentRequestApi
|
22
|
-
from pluggy_sdk.api.payroll_loan_api import PayrollLoanApi
|
23
24
|
from pluggy_sdk.api.portfolio_yield_api import PortfolioYieldApi
|
24
25
|
from pluggy_sdk.api.smart_account_api import SmartAccountApi
|
25
26
|
from pluggy_sdk.api.transaction_api import TransactionApi
|
@@ -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.benefit_response import BenefitResponse
|
23
|
+
from pluggy_sdk.models.benefits_list200_response import BenefitsList200Response
|
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 BenefitApi:
|
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 benefit_retrieve_by_id(
|
45
|
+
self,
|
46
|
+
id: Annotated[StrictStr, Field(description="benefit 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
|
+
) -> BenefitResponse:
|
60
|
+
"""Retrieve
|
61
|
+
|
62
|
+
Recovers the benefit resource by its id
|
63
|
+
|
64
|
+
:param id: benefit primary identifier (required)
|
65
|
+
:type 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._benefit_retrieve_by_id_serialize(
|
89
|
+
id=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': "BenefitResponse",
|
98
|
+
'404': "GlobalErrorResponse",
|
99
|
+
}
|
100
|
+
response_data = self.api_client.call_api(
|
101
|
+
*_param,
|
102
|
+
_request_timeout=_request_timeout
|
103
|
+
)
|
104
|
+
response_data.read()
|
105
|
+
return self.api_client.response_deserialize(
|
106
|
+
response_data=response_data,
|
107
|
+
response_types_map=_response_types_map,
|
108
|
+
).data
|
109
|
+
|
110
|
+
|
111
|
+
@validate_call
|
112
|
+
def benefit_retrieve_by_id_with_http_info(
|
113
|
+
self,
|
114
|
+
id: Annotated[StrictStr, Field(description="benefit primary identifier")],
|
115
|
+
_request_timeout: Union[
|
116
|
+
None,
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
118
|
+
Tuple[
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
121
|
+
]
|
122
|
+
] = None,
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
127
|
+
) -> ApiResponse[BenefitResponse]:
|
128
|
+
"""Retrieve
|
129
|
+
|
130
|
+
Recovers the benefit resource by its id
|
131
|
+
|
132
|
+
:param id: benefit primary identifier (required)
|
133
|
+
:type id: str
|
134
|
+
:param _request_timeout: timeout setting for this request. If one
|
135
|
+
number provided, it will be total request
|
136
|
+
timeout. It can also be a pair (tuple) of
|
137
|
+
(connection, read) timeouts.
|
138
|
+
:type _request_timeout: int, tuple(int, int), optional
|
139
|
+
:param _request_auth: set to override the auth_settings for an a single
|
140
|
+
request; this effectively ignores the
|
141
|
+
authentication in the spec for a single request.
|
142
|
+
:type _request_auth: dict, optional
|
143
|
+
:param _content_type: force content-type for the request.
|
144
|
+
:type _content_type: str, Optional
|
145
|
+
:param _headers: set to override the headers for a single
|
146
|
+
request; this effectively ignores the headers
|
147
|
+
in the spec for a single request.
|
148
|
+
:type _headers: dict, optional
|
149
|
+
:param _host_index: set to override the host_index for a single
|
150
|
+
request; this effectively ignores the host_index
|
151
|
+
in the spec for a single request.
|
152
|
+
:type _host_index: int, optional
|
153
|
+
:return: Returns the result object.
|
154
|
+
""" # noqa: E501
|
155
|
+
|
156
|
+
_param = self._benefit_retrieve_by_id_serialize(
|
157
|
+
id=id,
|
158
|
+
_request_auth=_request_auth,
|
159
|
+
_content_type=_content_type,
|
160
|
+
_headers=_headers,
|
161
|
+
_host_index=_host_index
|
162
|
+
)
|
163
|
+
|
164
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
165
|
+
'200': "BenefitResponse",
|
166
|
+
'404': "GlobalErrorResponse",
|
167
|
+
}
|
168
|
+
response_data = self.api_client.call_api(
|
169
|
+
*_param,
|
170
|
+
_request_timeout=_request_timeout
|
171
|
+
)
|
172
|
+
response_data.read()
|
173
|
+
return self.api_client.response_deserialize(
|
174
|
+
response_data=response_data,
|
175
|
+
response_types_map=_response_types_map,
|
176
|
+
)
|
177
|
+
|
178
|
+
|
179
|
+
@validate_call
|
180
|
+
def benefit_retrieve_by_id_without_preload_content(
|
181
|
+
self,
|
182
|
+
id: Annotated[StrictStr, Field(description="benefit primary identifier")],
|
183
|
+
_request_timeout: Union[
|
184
|
+
None,
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
186
|
+
Tuple[
|
187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
188
|
+
Annotated[StrictFloat, Field(gt=0)]
|
189
|
+
]
|
190
|
+
] = None,
|
191
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
192
|
+
_content_type: Optional[StrictStr] = None,
|
193
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
194
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
195
|
+
) -> RESTResponseType:
|
196
|
+
"""Retrieve
|
197
|
+
|
198
|
+
Recovers the benefit resource by its id
|
199
|
+
|
200
|
+
:param id: benefit primary identifier (required)
|
201
|
+
:type id: str
|
202
|
+
:param _request_timeout: timeout setting for this request. If one
|
203
|
+
number provided, it will be total request
|
204
|
+
timeout. It can also be a pair (tuple) of
|
205
|
+
(connection, read) timeouts.
|
206
|
+
:type _request_timeout: int, tuple(int, int), optional
|
207
|
+
:param _request_auth: set to override the auth_settings for an a single
|
208
|
+
request; this effectively ignores the
|
209
|
+
authentication in the spec for a single request.
|
210
|
+
:type _request_auth: dict, optional
|
211
|
+
:param _content_type: force content-type for the request.
|
212
|
+
:type _content_type: str, Optional
|
213
|
+
:param _headers: set to override the headers for a single
|
214
|
+
request; this effectively ignores the headers
|
215
|
+
in the spec for a single request.
|
216
|
+
:type _headers: dict, optional
|
217
|
+
:param _host_index: set to override the host_index for a single
|
218
|
+
request; this effectively ignores the host_index
|
219
|
+
in the spec for a single request.
|
220
|
+
:type _host_index: int, optional
|
221
|
+
:return: Returns the result object.
|
222
|
+
""" # noqa: E501
|
223
|
+
|
224
|
+
_param = self._benefit_retrieve_by_id_serialize(
|
225
|
+
id=id,
|
226
|
+
_request_auth=_request_auth,
|
227
|
+
_content_type=_content_type,
|
228
|
+
_headers=_headers,
|
229
|
+
_host_index=_host_index
|
230
|
+
)
|
231
|
+
|
232
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
233
|
+
'200': "BenefitResponse",
|
234
|
+
'404': "GlobalErrorResponse",
|
235
|
+
}
|
236
|
+
response_data = self.api_client.call_api(
|
237
|
+
*_param,
|
238
|
+
_request_timeout=_request_timeout
|
239
|
+
)
|
240
|
+
return response_data.response
|
241
|
+
|
242
|
+
|
243
|
+
def _benefit_retrieve_by_id_serialize(
|
244
|
+
self,
|
245
|
+
id,
|
246
|
+
_request_auth,
|
247
|
+
_content_type,
|
248
|
+
_headers,
|
249
|
+
_host_index,
|
250
|
+
) -> RequestSerialized:
|
251
|
+
|
252
|
+
_host = None
|
253
|
+
|
254
|
+
_collection_formats: Dict[str, str] = {
|
255
|
+
}
|
256
|
+
|
257
|
+
_path_params: Dict[str, str] = {}
|
258
|
+
_query_params: List[Tuple[str, str]] = []
|
259
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
260
|
+
_form_params: List[Tuple[str, str]] = []
|
261
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
262
|
+
_body_params: Optional[bytes] = None
|
263
|
+
|
264
|
+
# process the path parameters
|
265
|
+
if id is not None:
|
266
|
+
_path_params['id'] = id
|
267
|
+
# process the query parameters
|
268
|
+
# process the header parameters
|
269
|
+
# process the form parameters
|
270
|
+
# process the body parameter
|
271
|
+
|
272
|
+
|
273
|
+
# set the HTTP header `Accept`
|
274
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
275
|
+
[
|
276
|
+
'application/json'
|
277
|
+
]
|
278
|
+
)
|
279
|
+
|
280
|
+
|
281
|
+
# authentication setting
|
282
|
+
_auth_settings: List[str] = [
|
283
|
+
'default'
|
284
|
+
]
|
285
|
+
|
286
|
+
return self.api_client.param_serialize(
|
287
|
+
method='GET',
|
288
|
+
resource_path='/benefits/{id}',
|
289
|
+
path_params=_path_params,
|
290
|
+
query_params=_query_params,
|
291
|
+
header_params=_header_params,
|
292
|
+
body=_body_params,
|
293
|
+
post_params=_form_params,
|
294
|
+
files=_files,
|
295
|
+
auth_settings=_auth_settings,
|
296
|
+
collection_formats=_collection_formats,
|
297
|
+
_host=_host,
|
298
|
+
_request_auth=_request_auth
|
299
|
+
)
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
@validate_call
|
305
|
+
def benefits_list(
|
306
|
+
self,
|
307
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
308
|
+
_request_timeout: Union[
|
309
|
+
None,
|
310
|
+
Annotated[StrictFloat, Field(gt=0)],
|
311
|
+
Tuple[
|
312
|
+
Annotated[StrictFloat, Field(gt=0)],
|
313
|
+
Annotated[StrictFloat, Field(gt=0)]
|
314
|
+
]
|
315
|
+
] = None,
|
316
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
317
|
+
_content_type: Optional[StrictStr] = None,
|
318
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
319
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
320
|
+
) -> BenefitsList200Response:
|
321
|
+
"""List
|
322
|
+
|
323
|
+
Recovers all benefits collected for the item provided
|
324
|
+
|
325
|
+
:param item_id: Item's primary identifier (required)
|
326
|
+
:type item_id: str
|
327
|
+
:param _request_timeout: timeout setting for this request. If one
|
328
|
+
number provided, it will be total request
|
329
|
+
timeout. It can also be a pair (tuple) of
|
330
|
+
(connection, read) timeouts.
|
331
|
+
:type _request_timeout: int, tuple(int, int), optional
|
332
|
+
:param _request_auth: set to override the auth_settings for an a single
|
333
|
+
request; this effectively ignores the
|
334
|
+
authentication in the spec for a single request.
|
335
|
+
:type _request_auth: dict, optional
|
336
|
+
:param _content_type: force content-type for the request.
|
337
|
+
:type _content_type: str, Optional
|
338
|
+
:param _headers: set to override the headers for a single
|
339
|
+
request; this effectively ignores the headers
|
340
|
+
in the spec for a single request.
|
341
|
+
:type _headers: dict, optional
|
342
|
+
:param _host_index: set to override the host_index for a single
|
343
|
+
request; this effectively ignores the host_index
|
344
|
+
in the spec for a single request.
|
345
|
+
:type _host_index: int, optional
|
346
|
+
:return: Returns the result object.
|
347
|
+
""" # noqa: E501
|
348
|
+
|
349
|
+
_param = self._benefits_list_serialize(
|
350
|
+
item_id=item_id,
|
351
|
+
_request_auth=_request_auth,
|
352
|
+
_content_type=_content_type,
|
353
|
+
_headers=_headers,
|
354
|
+
_host_index=_host_index
|
355
|
+
)
|
356
|
+
|
357
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
358
|
+
'200': "BenefitsList200Response",
|
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 benefits_list_with_http_info(
|
373
|
+
self,
|
374
|
+
item_id: Annotated[StrictStr, Field(description="Item's 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[BenefitsList200Response]:
|
388
|
+
"""List
|
389
|
+
|
390
|
+
Recovers all benefits collected for the item provided
|
391
|
+
|
392
|
+
:param item_id: Item's primary identifier (required)
|
393
|
+
:type item_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._benefits_list_serialize(
|
417
|
+
item_id=item_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': "BenefitsList200Response",
|
426
|
+
}
|
427
|
+
response_data = self.api_client.call_api(
|
428
|
+
*_param,
|
429
|
+
_request_timeout=_request_timeout
|
430
|
+
)
|
431
|
+
response_data.read()
|
432
|
+
return self.api_client.response_deserialize(
|
433
|
+
response_data=response_data,
|
434
|
+
response_types_map=_response_types_map,
|
435
|
+
)
|
436
|
+
|
437
|
+
|
438
|
+
@validate_call
|
439
|
+
def benefits_list_without_preload_content(
|
440
|
+
self,
|
441
|
+
item_id: Annotated[StrictStr, Field(description="Item's primary identifier")],
|
442
|
+
_request_timeout: Union[
|
443
|
+
None,
|
444
|
+
Annotated[StrictFloat, Field(gt=0)],
|
445
|
+
Tuple[
|
446
|
+
Annotated[StrictFloat, Field(gt=0)],
|
447
|
+
Annotated[StrictFloat, Field(gt=0)]
|
448
|
+
]
|
449
|
+
] = None,
|
450
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
451
|
+
_content_type: Optional[StrictStr] = None,
|
452
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
453
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
454
|
+
) -> RESTResponseType:
|
455
|
+
"""List
|
456
|
+
|
457
|
+
Recovers all benefits collected for the item provided
|
458
|
+
|
459
|
+
:param item_id: Item's primary identifier (required)
|
460
|
+
:type item_id: str
|
461
|
+
:param _request_timeout: timeout setting for this request. If one
|
462
|
+
number provided, it will be total request
|
463
|
+
timeout. It can also be a pair (tuple) of
|
464
|
+
(connection, read) timeouts.
|
465
|
+
:type _request_timeout: int, tuple(int, int), optional
|
466
|
+
:param _request_auth: set to override the auth_settings for an a single
|
467
|
+
request; this effectively ignores the
|
468
|
+
authentication in the spec for a single request.
|
469
|
+
:type _request_auth: dict, optional
|
470
|
+
:param _content_type: force content-type for the request.
|
471
|
+
:type _content_type: str, Optional
|
472
|
+
:param _headers: set to override the headers for a single
|
473
|
+
request; this effectively ignores the headers
|
474
|
+
in the spec for a single request.
|
475
|
+
:type _headers: dict, optional
|
476
|
+
:param _host_index: set to override the host_index for a single
|
477
|
+
request; this effectively ignores the host_index
|
478
|
+
in the spec for a single request.
|
479
|
+
:type _host_index: int, optional
|
480
|
+
:return: Returns the result object.
|
481
|
+
""" # noqa: E501
|
482
|
+
|
483
|
+
_param = self._benefits_list_serialize(
|
484
|
+
item_id=item_id,
|
485
|
+
_request_auth=_request_auth,
|
486
|
+
_content_type=_content_type,
|
487
|
+
_headers=_headers,
|
488
|
+
_host_index=_host_index
|
489
|
+
)
|
490
|
+
|
491
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
492
|
+
'200': "BenefitsList200Response",
|
493
|
+
}
|
494
|
+
response_data = self.api_client.call_api(
|
495
|
+
*_param,
|
496
|
+
_request_timeout=_request_timeout
|
497
|
+
)
|
498
|
+
return response_data.response
|
499
|
+
|
500
|
+
|
501
|
+
def _benefits_list_serialize(
|
502
|
+
self,
|
503
|
+
item_id,
|
504
|
+
_request_auth,
|
505
|
+
_content_type,
|
506
|
+
_headers,
|
507
|
+
_host_index,
|
508
|
+
) -> RequestSerialized:
|
509
|
+
|
510
|
+
_host = None
|
511
|
+
|
512
|
+
_collection_formats: Dict[str, str] = {
|
513
|
+
}
|
514
|
+
|
515
|
+
_path_params: Dict[str, str] = {}
|
516
|
+
_query_params: List[Tuple[str, str]] = []
|
517
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
518
|
+
_form_params: List[Tuple[str, str]] = []
|
519
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
520
|
+
_body_params: Optional[bytes] = None
|
521
|
+
|
522
|
+
# process the path parameters
|
523
|
+
# process the query parameters
|
524
|
+
if item_id is not None:
|
525
|
+
|
526
|
+
_query_params.append(('itemId', item_id))
|
527
|
+
|
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='/benefits',
|
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
|
+
|