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