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,567 @@
|
|
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.bill import Bill
|
23
|
+
from pluggy_sdk.models.bills_list200_response import BillsList200Response
|
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 BillApi:
|
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 bills_list(
|
45
|
+
self,
|
46
|
+
account_id: Annotated[StrictStr, Field(description="Account'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
|
+
) -> BillsList200Response:
|
60
|
+
"""List
|
61
|
+
|
62
|
+
Recovers all credit card bills collected for the account provided
|
63
|
+
|
64
|
+
:param account_id: Account's primary identifier (required)
|
65
|
+
:type account_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._bills_list_serialize(
|
89
|
+
account_id=account_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': "BillsList200Response",
|
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 bills_list_with_http_info(
|
112
|
+
self,
|
113
|
+
account_id: Annotated[StrictStr, Field(description="Account'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[BillsList200Response]:
|
127
|
+
"""List
|
128
|
+
|
129
|
+
Recovers all credit card bills collected for the account provided
|
130
|
+
|
131
|
+
:param account_id: Account's primary identifier (required)
|
132
|
+
:type account_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._bills_list_serialize(
|
156
|
+
account_id=account_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': "BillsList200Response",
|
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 bills_list_without_preload_content(
|
179
|
+
self,
|
180
|
+
account_id: Annotated[StrictStr, Field(description="Account'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 credit card bills collected for the account provided
|
197
|
+
|
198
|
+
:param account_id: Account's primary identifier (required)
|
199
|
+
:type account_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._bills_list_serialize(
|
223
|
+
account_id=account_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': "BillsList200Response",
|
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 _bills_list_serialize(
|
241
|
+
self,
|
242
|
+
account_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[
|
259
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
260
|
+
] = {}
|
261
|
+
_body_params: Optional[bytes] = None
|
262
|
+
|
263
|
+
# process the path parameters
|
264
|
+
# process the query parameters
|
265
|
+
if account_id is not None:
|
266
|
+
|
267
|
+
_query_params.append(('accountId', account_id))
|
268
|
+
|
269
|
+
# process the header parameters
|
270
|
+
# process the form parameters
|
271
|
+
# process the body parameter
|
272
|
+
|
273
|
+
|
274
|
+
# set the HTTP header `Accept`
|
275
|
+
if 'Accept' not in _header_params:
|
276
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
277
|
+
[
|
278
|
+
'application/json'
|
279
|
+
]
|
280
|
+
)
|
281
|
+
|
282
|
+
|
283
|
+
# authentication setting
|
284
|
+
_auth_settings: List[str] = [
|
285
|
+
'default'
|
286
|
+
]
|
287
|
+
|
288
|
+
return self.api_client.param_serialize(
|
289
|
+
method='GET',
|
290
|
+
resource_path='/bills',
|
291
|
+
path_params=_path_params,
|
292
|
+
query_params=_query_params,
|
293
|
+
header_params=_header_params,
|
294
|
+
body=_body_params,
|
295
|
+
post_params=_form_params,
|
296
|
+
files=_files,
|
297
|
+
auth_settings=_auth_settings,
|
298
|
+
collection_formats=_collection_formats,
|
299
|
+
_host=_host,
|
300
|
+
_request_auth=_request_auth
|
301
|
+
)
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
@validate_call
|
307
|
+
def bills_retrieve(
|
308
|
+
self,
|
309
|
+
id: Annotated[StrictStr, Field(description="Bill primary identifier")],
|
310
|
+
_request_timeout: Union[
|
311
|
+
None,
|
312
|
+
Annotated[StrictFloat, Field(gt=0)],
|
313
|
+
Tuple[
|
314
|
+
Annotated[StrictFloat, Field(gt=0)],
|
315
|
+
Annotated[StrictFloat, Field(gt=0)]
|
316
|
+
]
|
317
|
+
] = None,
|
318
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
319
|
+
_content_type: Optional[StrictStr] = None,
|
320
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
321
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
322
|
+
) -> Bill:
|
323
|
+
"""Retrieve
|
324
|
+
|
325
|
+
Recovers the bill resource by its id
|
326
|
+
|
327
|
+
:param id: Bill primary identifier (required)
|
328
|
+
:type id: str
|
329
|
+
:param _request_timeout: timeout setting for this request. If one
|
330
|
+
number provided, it will be total request
|
331
|
+
timeout. It can also be a pair (tuple) of
|
332
|
+
(connection, read) timeouts.
|
333
|
+
:type _request_timeout: int, tuple(int, int), optional
|
334
|
+
:param _request_auth: set to override the auth_settings for an a single
|
335
|
+
request; this effectively ignores the
|
336
|
+
authentication in the spec for a single request.
|
337
|
+
:type _request_auth: dict, optional
|
338
|
+
:param _content_type: force content-type for the request.
|
339
|
+
:type _content_type: str, Optional
|
340
|
+
:param _headers: set to override the headers for a single
|
341
|
+
request; this effectively ignores the headers
|
342
|
+
in the spec for a single request.
|
343
|
+
:type _headers: dict, optional
|
344
|
+
:param _host_index: set to override the host_index for a single
|
345
|
+
request; this effectively ignores the host_index
|
346
|
+
in the spec for a single request.
|
347
|
+
:type _host_index: int, optional
|
348
|
+
:return: Returns the result object.
|
349
|
+
""" # noqa: E501
|
350
|
+
|
351
|
+
_param = self._bills_retrieve_serialize(
|
352
|
+
id=id,
|
353
|
+
_request_auth=_request_auth,
|
354
|
+
_content_type=_content_type,
|
355
|
+
_headers=_headers,
|
356
|
+
_host_index=_host_index
|
357
|
+
)
|
358
|
+
|
359
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
360
|
+
'200': "Bill",
|
361
|
+
'404': "GlobalErrorResponse",
|
362
|
+
}
|
363
|
+
response_data = self.api_client.call_api(
|
364
|
+
*_param,
|
365
|
+
_request_timeout=_request_timeout
|
366
|
+
)
|
367
|
+
response_data.read()
|
368
|
+
return self.api_client.response_deserialize(
|
369
|
+
response_data=response_data,
|
370
|
+
response_types_map=_response_types_map,
|
371
|
+
).data
|
372
|
+
|
373
|
+
|
374
|
+
@validate_call
|
375
|
+
def bills_retrieve_with_http_info(
|
376
|
+
self,
|
377
|
+
id: Annotated[StrictStr, Field(description="Bill primary identifier")],
|
378
|
+
_request_timeout: Union[
|
379
|
+
None,
|
380
|
+
Annotated[StrictFloat, Field(gt=0)],
|
381
|
+
Tuple[
|
382
|
+
Annotated[StrictFloat, Field(gt=0)],
|
383
|
+
Annotated[StrictFloat, Field(gt=0)]
|
384
|
+
]
|
385
|
+
] = None,
|
386
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
387
|
+
_content_type: Optional[StrictStr] = None,
|
388
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
389
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
390
|
+
) -> ApiResponse[Bill]:
|
391
|
+
"""Retrieve
|
392
|
+
|
393
|
+
Recovers the bill resource by its id
|
394
|
+
|
395
|
+
:param id: Bill primary identifier (required)
|
396
|
+
:type id: str
|
397
|
+
:param _request_timeout: timeout setting for this request. If one
|
398
|
+
number provided, it will be total request
|
399
|
+
timeout. It can also be a pair (tuple) of
|
400
|
+
(connection, read) timeouts.
|
401
|
+
:type _request_timeout: int, tuple(int, int), optional
|
402
|
+
:param _request_auth: set to override the auth_settings for an a single
|
403
|
+
request; this effectively ignores the
|
404
|
+
authentication in the spec for a single request.
|
405
|
+
:type _request_auth: dict, optional
|
406
|
+
:param _content_type: force content-type for the request.
|
407
|
+
:type _content_type: str, Optional
|
408
|
+
:param _headers: set to override the headers for a single
|
409
|
+
request; this effectively ignores the headers
|
410
|
+
in the spec for a single request.
|
411
|
+
:type _headers: dict, optional
|
412
|
+
:param _host_index: set to override the host_index for a single
|
413
|
+
request; this effectively ignores the host_index
|
414
|
+
in the spec for a single request.
|
415
|
+
:type _host_index: int, optional
|
416
|
+
:return: Returns the result object.
|
417
|
+
""" # noqa: E501
|
418
|
+
|
419
|
+
_param = self._bills_retrieve_serialize(
|
420
|
+
id=id,
|
421
|
+
_request_auth=_request_auth,
|
422
|
+
_content_type=_content_type,
|
423
|
+
_headers=_headers,
|
424
|
+
_host_index=_host_index
|
425
|
+
)
|
426
|
+
|
427
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
428
|
+
'200': "Bill",
|
429
|
+
'404': "GlobalErrorResponse",
|
430
|
+
}
|
431
|
+
response_data = self.api_client.call_api(
|
432
|
+
*_param,
|
433
|
+
_request_timeout=_request_timeout
|
434
|
+
)
|
435
|
+
response_data.read()
|
436
|
+
return self.api_client.response_deserialize(
|
437
|
+
response_data=response_data,
|
438
|
+
response_types_map=_response_types_map,
|
439
|
+
)
|
440
|
+
|
441
|
+
|
442
|
+
@validate_call
|
443
|
+
def bills_retrieve_without_preload_content(
|
444
|
+
self,
|
445
|
+
id: Annotated[StrictStr, Field(description="Bill primary identifier")],
|
446
|
+
_request_timeout: Union[
|
447
|
+
None,
|
448
|
+
Annotated[StrictFloat, Field(gt=0)],
|
449
|
+
Tuple[
|
450
|
+
Annotated[StrictFloat, Field(gt=0)],
|
451
|
+
Annotated[StrictFloat, Field(gt=0)]
|
452
|
+
]
|
453
|
+
] = None,
|
454
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
455
|
+
_content_type: Optional[StrictStr] = None,
|
456
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
457
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
458
|
+
) -> RESTResponseType:
|
459
|
+
"""Retrieve
|
460
|
+
|
461
|
+
Recovers the bill resource by its id
|
462
|
+
|
463
|
+
:param id: Bill primary identifier (required)
|
464
|
+
:type id: str
|
465
|
+
:param _request_timeout: timeout setting for this request. If one
|
466
|
+
number provided, it will be total request
|
467
|
+
timeout. It can also be a pair (tuple) of
|
468
|
+
(connection, read) timeouts.
|
469
|
+
:type _request_timeout: int, tuple(int, int), optional
|
470
|
+
:param _request_auth: set to override the auth_settings for an a single
|
471
|
+
request; this effectively ignores the
|
472
|
+
authentication in the spec for a single request.
|
473
|
+
:type _request_auth: dict, optional
|
474
|
+
:param _content_type: force content-type for the request.
|
475
|
+
:type _content_type: str, Optional
|
476
|
+
:param _headers: set to override the headers for a single
|
477
|
+
request; this effectively ignores the headers
|
478
|
+
in the spec for a single request.
|
479
|
+
:type _headers: dict, optional
|
480
|
+
:param _host_index: set to override the host_index for a single
|
481
|
+
request; this effectively ignores the host_index
|
482
|
+
in the spec for a single request.
|
483
|
+
:type _host_index: int, optional
|
484
|
+
:return: Returns the result object.
|
485
|
+
""" # noqa: E501
|
486
|
+
|
487
|
+
_param = self._bills_retrieve_serialize(
|
488
|
+
id=id,
|
489
|
+
_request_auth=_request_auth,
|
490
|
+
_content_type=_content_type,
|
491
|
+
_headers=_headers,
|
492
|
+
_host_index=_host_index
|
493
|
+
)
|
494
|
+
|
495
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
496
|
+
'200': "Bill",
|
497
|
+
'404': "GlobalErrorResponse",
|
498
|
+
}
|
499
|
+
response_data = self.api_client.call_api(
|
500
|
+
*_param,
|
501
|
+
_request_timeout=_request_timeout
|
502
|
+
)
|
503
|
+
return response_data.response
|
504
|
+
|
505
|
+
|
506
|
+
def _bills_retrieve_serialize(
|
507
|
+
self,
|
508
|
+
id,
|
509
|
+
_request_auth,
|
510
|
+
_content_type,
|
511
|
+
_headers,
|
512
|
+
_host_index,
|
513
|
+
) -> RequestSerialized:
|
514
|
+
|
515
|
+
_host = None
|
516
|
+
|
517
|
+
_collection_formats: Dict[str, str] = {
|
518
|
+
}
|
519
|
+
|
520
|
+
_path_params: Dict[str, str] = {}
|
521
|
+
_query_params: List[Tuple[str, str]] = []
|
522
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
523
|
+
_form_params: List[Tuple[str, str]] = []
|
524
|
+
_files: Dict[
|
525
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
526
|
+
] = {}
|
527
|
+
_body_params: Optional[bytes] = None
|
528
|
+
|
529
|
+
# process the path parameters
|
530
|
+
if id is not None:
|
531
|
+
_path_params['id'] = id
|
532
|
+
# process the query parameters
|
533
|
+
# process the header parameters
|
534
|
+
# process the form parameters
|
535
|
+
# process the body parameter
|
536
|
+
|
537
|
+
|
538
|
+
# set the HTTP header `Accept`
|
539
|
+
if 'Accept' not in _header_params:
|
540
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
541
|
+
[
|
542
|
+
'application/json'
|
543
|
+
]
|
544
|
+
)
|
545
|
+
|
546
|
+
|
547
|
+
# authentication setting
|
548
|
+
_auth_settings: List[str] = [
|
549
|
+
'default'
|
550
|
+
]
|
551
|
+
|
552
|
+
return self.api_client.param_serialize(
|
553
|
+
method='GET',
|
554
|
+
resource_path='/bills/{id}',
|
555
|
+
path_params=_path_params,
|
556
|
+
query_params=_query_params,
|
557
|
+
header_params=_header_params,
|
558
|
+
body=_body_params,
|
559
|
+
post_params=_form_params,
|
560
|
+
files=_files,
|
561
|
+
auth_settings=_auth_settings,
|
562
|
+
collection_formats=_collection_formats,
|
563
|
+
_host=_host,
|
564
|
+
_request_auth=_request_auth
|
565
|
+
)
|
566
|
+
|
567
|
+
|