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,1127 @@
|
|
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, StrictFloat, StrictInt, StrictStr
|
21
|
+
from typing import Optional, Union
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from pluggy_sdk.models.bulk_payment import BulkPayment
|
24
|
+
from pluggy_sdk.models.bulk_payments_list200_response import BulkPaymentsList200Response
|
25
|
+
from pluggy_sdk.models.create_bulk_payment import CreateBulkPayment
|
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 BulkPaymentApi:
|
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 bulk_payment_create(
|
47
|
+
self,
|
48
|
+
create_bulk_payment: CreateBulkPayment,
|
49
|
+
_request_timeout: Union[
|
50
|
+
None,
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
52
|
+
Tuple[
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
55
|
+
]
|
56
|
+
] = None,
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
61
|
+
) -> BulkPayment:
|
62
|
+
"""Create
|
63
|
+
|
64
|
+
Creates the bulk payment resource
|
65
|
+
|
66
|
+
:param create_bulk_payment: (required)
|
67
|
+
:type create_bulk_payment: CreateBulkPayment
|
68
|
+
:param _request_timeout: timeout setting for this request. If one
|
69
|
+
number provided, it will be total request
|
70
|
+
timeout. It can also be a pair (tuple) of
|
71
|
+
(connection, read) timeouts.
|
72
|
+
:type _request_timeout: int, tuple(int, int), optional
|
73
|
+
:param _request_auth: set to override the auth_settings for an a single
|
74
|
+
request; this effectively ignores the
|
75
|
+
authentication in the spec for a single request.
|
76
|
+
:type _request_auth: dict, optional
|
77
|
+
:param _content_type: force content-type for the request.
|
78
|
+
:type _content_type: str, Optional
|
79
|
+
:param _headers: set to override the headers for a single
|
80
|
+
request; this effectively ignores the headers
|
81
|
+
in the spec for a single request.
|
82
|
+
:type _headers: dict, optional
|
83
|
+
:param _host_index: set to override the host_index for a single
|
84
|
+
request; this effectively ignores the host_index
|
85
|
+
in the spec for a single request.
|
86
|
+
:type _host_index: int, optional
|
87
|
+
:return: Returns the result object.
|
88
|
+
""" # noqa: E501
|
89
|
+
|
90
|
+
_param = self._bulk_payment_create_serialize(
|
91
|
+
create_bulk_payment=create_bulk_payment,
|
92
|
+
_request_auth=_request_auth,
|
93
|
+
_content_type=_content_type,
|
94
|
+
_headers=_headers,
|
95
|
+
_host_index=_host_index
|
96
|
+
)
|
97
|
+
|
98
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
99
|
+
'200': "BulkPayment",
|
100
|
+
'400': "GlobalErrorResponse",
|
101
|
+
}
|
102
|
+
response_data = self.api_client.call_api(
|
103
|
+
*_param,
|
104
|
+
_request_timeout=_request_timeout
|
105
|
+
)
|
106
|
+
response_data.read()
|
107
|
+
return self.api_client.response_deserialize(
|
108
|
+
response_data=response_data,
|
109
|
+
response_types_map=_response_types_map,
|
110
|
+
).data
|
111
|
+
|
112
|
+
|
113
|
+
@validate_call
|
114
|
+
def bulk_payment_create_with_http_info(
|
115
|
+
self,
|
116
|
+
create_bulk_payment: CreateBulkPayment,
|
117
|
+
_request_timeout: Union[
|
118
|
+
None,
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
120
|
+
Tuple[
|
121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
122
|
+
Annotated[StrictFloat, Field(gt=0)]
|
123
|
+
]
|
124
|
+
] = None,
|
125
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
126
|
+
_content_type: Optional[StrictStr] = None,
|
127
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
128
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
129
|
+
) -> ApiResponse[BulkPayment]:
|
130
|
+
"""Create
|
131
|
+
|
132
|
+
Creates the bulk payment resource
|
133
|
+
|
134
|
+
:param create_bulk_payment: (required)
|
135
|
+
:type create_bulk_payment: CreateBulkPayment
|
136
|
+
:param _request_timeout: timeout setting for this request. If one
|
137
|
+
number provided, it will be total request
|
138
|
+
timeout. It can also be a pair (tuple) of
|
139
|
+
(connection, read) timeouts.
|
140
|
+
:type _request_timeout: int, tuple(int, int), optional
|
141
|
+
:param _request_auth: set to override the auth_settings for an a single
|
142
|
+
request; this effectively ignores the
|
143
|
+
authentication in the spec for a single request.
|
144
|
+
:type _request_auth: dict, optional
|
145
|
+
:param _content_type: force content-type for the request.
|
146
|
+
:type _content_type: str, Optional
|
147
|
+
:param _headers: set to override the headers for a single
|
148
|
+
request; this effectively ignores the headers
|
149
|
+
in the spec for a single request.
|
150
|
+
:type _headers: dict, optional
|
151
|
+
:param _host_index: set to override the host_index for a single
|
152
|
+
request; this effectively ignores the host_index
|
153
|
+
in the spec for a single request.
|
154
|
+
:type _host_index: int, optional
|
155
|
+
:return: Returns the result object.
|
156
|
+
""" # noqa: E501
|
157
|
+
|
158
|
+
_param = self._bulk_payment_create_serialize(
|
159
|
+
create_bulk_payment=create_bulk_payment,
|
160
|
+
_request_auth=_request_auth,
|
161
|
+
_content_type=_content_type,
|
162
|
+
_headers=_headers,
|
163
|
+
_host_index=_host_index
|
164
|
+
)
|
165
|
+
|
166
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
167
|
+
'200': "BulkPayment",
|
168
|
+
'400': "GlobalErrorResponse",
|
169
|
+
}
|
170
|
+
response_data = self.api_client.call_api(
|
171
|
+
*_param,
|
172
|
+
_request_timeout=_request_timeout
|
173
|
+
)
|
174
|
+
response_data.read()
|
175
|
+
return self.api_client.response_deserialize(
|
176
|
+
response_data=response_data,
|
177
|
+
response_types_map=_response_types_map,
|
178
|
+
)
|
179
|
+
|
180
|
+
|
181
|
+
@validate_call
|
182
|
+
def bulk_payment_create_without_preload_content(
|
183
|
+
self,
|
184
|
+
create_bulk_payment: CreateBulkPayment,
|
185
|
+
_request_timeout: Union[
|
186
|
+
None,
|
187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
188
|
+
Tuple[
|
189
|
+
Annotated[StrictFloat, Field(gt=0)],
|
190
|
+
Annotated[StrictFloat, Field(gt=0)]
|
191
|
+
]
|
192
|
+
] = None,
|
193
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
194
|
+
_content_type: Optional[StrictStr] = None,
|
195
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
196
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
197
|
+
) -> RESTResponseType:
|
198
|
+
"""Create
|
199
|
+
|
200
|
+
Creates the bulk payment resource
|
201
|
+
|
202
|
+
:param create_bulk_payment: (required)
|
203
|
+
:type create_bulk_payment: CreateBulkPayment
|
204
|
+
:param _request_timeout: timeout setting for this request. If one
|
205
|
+
number provided, it will be total request
|
206
|
+
timeout. It can also be a pair (tuple) of
|
207
|
+
(connection, read) timeouts.
|
208
|
+
:type _request_timeout: int, tuple(int, int), optional
|
209
|
+
:param _request_auth: set to override the auth_settings for an a single
|
210
|
+
request; this effectively ignores the
|
211
|
+
authentication in the spec for a single request.
|
212
|
+
:type _request_auth: dict, optional
|
213
|
+
:param _content_type: force content-type for the request.
|
214
|
+
:type _content_type: str, Optional
|
215
|
+
:param _headers: set to override the headers for a single
|
216
|
+
request; this effectively ignores the headers
|
217
|
+
in the spec for a single request.
|
218
|
+
:type _headers: dict, optional
|
219
|
+
:param _host_index: set to override the host_index for a single
|
220
|
+
request; this effectively ignores the host_index
|
221
|
+
in the spec for a single request.
|
222
|
+
:type _host_index: int, optional
|
223
|
+
:return: Returns the result object.
|
224
|
+
""" # noqa: E501
|
225
|
+
|
226
|
+
_param = self._bulk_payment_create_serialize(
|
227
|
+
create_bulk_payment=create_bulk_payment,
|
228
|
+
_request_auth=_request_auth,
|
229
|
+
_content_type=_content_type,
|
230
|
+
_headers=_headers,
|
231
|
+
_host_index=_host_index
|
232
|
+
)
|
233
|
+
|
234
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
235
|
+
'200': "BulkPayment",
|
236
|
+
'400': "GlobalErrorResponse",
|
237
|
+
}
|
238
|
+
response_data = self.api_client.call_api(
|
239
|
+
*_param,
|
240
|
+
_request_timeout=_request_timeout
|
241
|
+
)
|
242
|
+
return response_data.response
|
243
|
+
|
244
|
+
|
245
|
+
def _bulk_payment_create_serialize(
|
246
|
+
self,
|
247
|
+
create_bulk_payment,
|
248
|
+
_request_auth,
|
249
|
+
_content_type,
|
250
|
+
_headers,
|
251
|
+
_host_index,
|
252
|
+
) -> RequestSerialized:
|
253
|
+
|
254
|
+
_host = None
|
255
|
+
|
256
|
+
_collection_formats: Dict[str, str] = {
|
257
|
+
}
|
258
|
+
|
259
|
+
_path_params: Dict[str, str] = {}
|
260
|
+
_query_params: List[Tuple[str, str]] = []
|
261
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
262
|
+
_form_params: List[Tuple[str, str]] = []
|
263
|
+
_files: Dict[
|
264
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
265
|
+
] = {}
|
266
|
+
_body_params: Optional[bytes] = None
|
267
|
+
|
268
|
+
# process the path parameters
|
269
|
+
# process the query parameters
|
270
|
+
# process the header parameters
|
271
|
+
# process the form parameters
|
272
|
+
# process the body parameter
|
273
|
+
if create_bulk_payment is not None:
|
274
|
+
_body_params = create_bulk_payment
|
275
|
+
|
276
|
+
|
277
|
+
# set the HTTP header `Accept`
|
278
|
+
if 'Accept' not in _header_params:
|
279
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
280
|
+
[
|
281
|
+
'application/json'
|
282
|
+
]
|
283
|
+
)
|
284
|
+
|
285
|
+
# set the HTTP header `Content-Type`
|
286
|
+
if _content_type:
|
287
|
+
_header_params['Content-Type'] = _content_type
|
288
|
+
else:
|
289
|
+
_default_content_type = (
|
290
|
+
self.api_client.select_header_content_type(
|
291
|
+
[
|
292
|
+
'application/json'
|
293
|
+
]
|
294
|
+
)
|
295
|
+
)
|
296
|
+
if _default_content_type is not None:
|
297
|
+
_header_params['Content-Type'] = _default_content_type
|
298
|
+
|
299
|
+
# authentication setting
|
300
|
+
_auth_settings: List[str] = [
|
301
|
+
'default'
|
302
|
+
]
|
303
|
+
|
304
|
+
return self.api_client.param_serialize(
|
305
|
+
method='POST',
|
306
|
+
resource_path='/payments/bulk',
|
307
|
+
path_params=_path_params,
|
308
|
+
query_params=_query_params,
|
309
|
+
header_params=_header_params,
|
310
|
+
body=_body_params,
|
311
|
+
post_params=_form_params,
|
312
|
+
files=_files,
|
313
|
+
auth_settings=_auth_settings,
|
314
|
+
collection_formats=_collection_formats,
|
315
|
+
_host=_host,
|
316
|
+
_request_auth=_request_auth
|
317
|
+
)
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
@validate_call
|
323
|
+
def bulk_payment_delete(
|
324
|
+
self,
|
325
|
+
id: Annotated[StrictStr, Field(description="Bulk payment primary identifier")],
|
326
|
+
_request_timeout: Union[
|
327
|
+
None,
|
328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
329
|
+
Tuple[
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
331
|
+
Annotated[StrictFloat, Field(gt=0)]
|
332
|
+
]
|
333
|
+
] = None,
|
334
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
335
|
+
_content_type: Optional[StrictStr] = None,
|
336
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
337
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
338
|
+
) -> None:
|
339
|
+
"""Delete
|
340
|
+
|
341
|
+
Deletes the bulk payment resource
|
342
|
+
|
343
|
+
:param id: Bulk payment primary identifier (required)
|
344
|
+
:type id: str
|
345
|
+
:param _request_timeout: timeout setting for this request. If one
|
346
|
+
number provided, it will be total request
|
347
|
+
timeout. It can also be a pair (tuple) of
|
348
|
+
(connection, read) timeouts.
|
349
|
+
:type _request_timeout: int, tuple(int, int), optional
|
350
|
+
:param _request_auth: set to override the auth_settings for an a single
|
351
|
+
request; this effectively ignores the
|
352
|
+
authentication in the spec for a single request.
|
353
|
+
:type _request_auth: dict, optional
|
354
|
+
:param _content_type: force content-type for the request.
|
355
|
+
:type _content_type: str, Optional
|
356
|
+
:param _headers: set to override the headers for a single
|
357
|
+
request; this effectively ignores the headers
|
358
|
+
in the spec for a single request.
|
359
|
+
:type _headers: dict, optional
|
360
|
+
:param _host_index: set to override the host_index for a single
|
361
|
+
request; this effectively ignores the host_index
|
362
|
+
in the spec for a single request.
|
363
|
+
:type _host_index: int, optional
|
364
|
+
:return: Returns the result object.
|
365
|
+
""" # noqa: E501
|
366
|
+
|
367
|
+
_param = self._bulk_payment_delete_serialize(
|
368
|
+
id=id,
|
369
|
+
_request_auth=_request_auth,
|
370
|
+
_content_type=_content_type,
|
371
|
+
_headers=_headers,
|
372
|
+
_host_index=_host_index
|
373
|
+
)
|
374
|
+
|
375
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
376
|
+
'204': None,
|
377
|
+
'404': "GlobalErrorResponse",
|
378
|
+
}
|
379
|
+
response_data = self.api_client.call_api(
|
380
|
+
*_param,
|
381
|
+
_request_timeout=_request_timeout
|
382
|
+
)
|
383
|
+
response_data.read()
|
384
|
+
return self.api_client.response_deserialize(
|
385
|
+
response_data=response_data,
|
386
|
+
response_types_map=_response_types_map,
|
387
|
+
).data
|
388
|
+
|
389
|
+
|
390
|
+
@validate_call
|
391
|
+
def bulk_payment_delete_with_http_info(
|
392
|
+
self,
|
393
|
+
id: Annotated[StrictStr, Field(description="Bulk payment primary identifier")],
|
394
|
+
_request_timeout: Union[
|
395
|
+
None,
|
396
|
+
Annotated[StrictFloat, Field(gt=0)],
|
397
|
+
Tuple[
|
398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
399
|
+
Annotated[StrictFloat, Field(gt=0)]
|
400
|
+
]
|
401
|
+
] = None,
|
402
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
403
|
+
_content_type: Optional[StrictStr] = None,
|
404
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
405
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
406
|
+
) -> ApiResponse[None]:
|
407
|
+
"""Delete
|
408
|
+
|
409
|
+
Deletes the bulk payment resource
|
410
|
+
|
411
|
+
:param id: Bulk payment primary identifier (required)
|
412
|
+
:type id: str
|
413
|
+
:param _request_timeout: timeout setting for this request. If one
|
414
|
+
number provided, it will be total request
|
415
|
+
timeout. It can also be a pair (tuple) of
|
416
|
+
(connection, read) timeouts.
|
417
|
+
:type _request_timeout: int, tuple(int, int), optional
|
418
|
+
:param _request_auth: set to override the auth_settings for an a single
|
419
|
+
request; this effectively ignores the
|
420
|
+
authentication in the spec for a single request.
|
421
|
+
:type _request_auth: dict, optional
|
422
|
+
:param _content_type: force content-type for the request.
|
423
|
+
:type _content_type: str, Optional
|
424
|
+
:param _headers: set to override the headers for a single
|
425
|
+
request; this effectively ignores the headers
|
426
|
+
in the spec for a single request.
|
427
|
+
:type _headers: dict, optional
|
428
|
+
:param _host_index: set to override the host_index for a single
|
429
|
+
request; this effectively ignores the host_index
|
430
|
+
in the spec for a single request.
|
431
|
+
:type _host_index: int, optional
|
432
|
+
:return: Returns the result object.
|
433
|
+
""" # noqa: E501
|
434
|
+
|
435
|
+
_param = self._bulk_payment_delete_serialize(
|
436
|
+
id=id,
|
437
|
+
_request_auth=_request_auth,
|
438
|
+
_content_type=_content_type,
|
439
|
+
_headers=_headers,
|
440
|
+
_host_index=_host_index
|
441
|
+
)
|
442
|
+
|
443
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
444
|
+
'204': None,
|
445
|
+
'404': "GlobalErrorResponse",
|
446
|
+
}
|
447
|
+
response_data = self.api_client.call_api(
|
448
|
+
*_param,
|
449
|
+
_request_timeout=_request_timeout
|
450
|
+
)
|
451
|
+
response_data.read()
|
452
|
+
return self.api_client.response_deserialize(
|
453
|
+
response_data=response_data,
|
454
|
+
response_types_map=_response_types_map,
|
455
|
+
)
|
456
|
+
|
457
|
+
|
458
|
+
@validate_call
|
459
|
+
def bulk_payment_delete_without_preload_content(
|
460
|
+
self,
|
461
|
+
id: Annotated[StrictStr, Field(description="Bulk payment primary identifier")],
|
462
|
+
_request_timeout: Union[
|
463
|
+
None,
|
464
|
+
Annotated[StrictFloat, Field(gt=0)],
|
465
|
+
Tuple[
|
466
|
+
Annotated[StrictFloat, Field(gt=0)],
|
467
|
+
Annotated[StrictFloat, Field(gt=0)]
|
468
|
+
]
|
469
|
+
] = None,
|
470
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
471
|
+
_content_type: Optional[StrictStr] = None,
|
472
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
473
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
474
|
+
) -> RESTResponseType:
|
475
|
+
"""Delete
|
476
|
+
|
477
|
+
Deletes the bulk payment resource
|
478
|
+
|
479
|
+
:param id: Bulk payment primary identifier (required)
|
480
|
+
:type id: str
|
481
|
+
:param _request_timeout: timeout setting for this request. If one
|
482
|
+
number provided, it will be total request
|
483
|
+
timeout. It can also be a pair (tuple) of
|
484
|
+
(connection, read) timeouts.
|
485
|
+
:type _request_timeout: int, tuple(int, int), optional
|
486
|
+
:param _request_auth: set to override the auth_settings for an a single
|
487
|
+
request; this effectively ignores the
|
488
|
+
authentication in the spec for a single request.
|
489
|
+
:type _request_auth: dict, optional
|
490
|
+
:param _content_type: force content-type for the request.
|
491
|
+
:type _content_type: str, Optional
|
492
|
+
:param _headers: set to override the headers for a single
|
493
|
+
request; this effectively ignores the headers
|
494
|
+
in the spec for a single request.
|
495
|
+
:type _headers: dict, optional
|
496
|
+
:param _host_index: set to override the host_index for a single
|
497
|
+
request; this effectively ignores the host_index
|
498
|
+
in the spec for a single request.
|
499
|
+
:type _host_index: int, optional
|
500
|
+
:return: Returns the result object.
|
501
|
+
""" # noqa: E501
|
502
|
+
|
503
|
+
_param = self._bulk_payment_delete_serialize(
|
504
|
+
id=id,
|
505
|
+
_request_auth=_request_auth,
|
506
|
+
_content_type=_content_type,
|
507
|
+
_headers=_headers,
|
508
|
+
_host_index=_host_index
|
509
|
+
)
|
510
|
+
|
511
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
512
|
+
'204': None,
|
513
|
+
'404': "GlobalErrorResponse",
|
514
|
+
}
|
515
|
+
response_data = self.api_client.call_api(
|
516
|
+
*_param,
|
517
|
+
_request_timeout=_request_timeout
|
518
|
+
)
|
519
|
+
return response_data.response
|
520
|
+
|
521
|
+
|
522
|
+
def _bulk_payment_delete_serialize(
|
523
|
+
self,
|
524
|
+
id,
|
525
|
+
_request_auth,
|
526
|
+
_content_type,
|
527
|
+
_headers,
|
528
|
+
_host_index,
|
529
|
+
) -> RequestSerialized:
|
530
|
+
|
531
|
+
_host = None
|
532
|
+
|
533
|
+
_collection_formats: Dict[str, str] = {
|
534
|
+
}
|
535
|
+
|
536
|
+
_path_params: Dict[str, str] = {}
|
537
|
+
_query_params: List[Tuple[str, str]] = []
|
538
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
539
|
+
_form_params: List[Tuple[str, str]] = []
|
540
|
+
_files: Dict[
|
541
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
542
|
+
] = {}
|
543
|
+
_body_params: Optional[bytes] = None
|
544
|
+
|
545
|
+
# process the path parameters
|
546
|
+
if id is not None:
|
547
|
+
_path_params['id'] = id
|
548
|
+
# process the query parameters
|
549
|
+
# process the header parameters
|
550
|
+
# process the form parameters
|
551
|
+
# process the body parameter
|
552
|
+
|
553
|
+
|
554
|
+
# set the HTTP header `Accept`
|
555
|
+
if 'Accept' not in _header_params:
|
556
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
557
|
+
[
|
558
|
+
'application/json'
|
559
|
+
]
|
560
|
+
)
|
561
|
+
|
562
|
+
|
563
|
+
# authentication setting
|
564
|
+
_auth_settings: List[str] = [
|
565
|
+
'default'
|
566
|
+
]
|
567
|
+
|
568
|
+
return self.api_client.param_serialize(
|
569
|
+
method='DELETE',
|
570
|
+
resource_path='/payments/bulk/{id}',
|
571
|
+
path_params=_path_params,
|
572
|
+
query_params=_query_params,
|
573
|
+
header_params=_header_params,
|
574
|
+
body=_body_params,
|
575
|
+
post_params=_form_params,
|
576
|
+
files=_files,
|
577
|
+
auth_settings=_auth_settings,
|
578
|
+
collection_formats=_collection_formats,
|
579
|
+
_host=_host,
|
580
|
+
_request_auth=_request_auth
|
581
|
+
)
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
|
586
|
+
@validate_call
|
587
|
+
def bulk_payment_retrieve(
|
588
|
+
self,
|
589
|
+
id: Annotated[StrictStr, Field(description="Bulk payment primary identifier")],
|
590
|
+
_request_timeout: Union[
|
591
|
+
None,
|
592
|
+
Annotated[StrictFloat, Field(gt=0)],
|
593
|
+
Tuple[
|
594
|
+
Annotated[StrictFloat, Field(gt=0)],
|
595
|
+
Annotated[StrictFloat, Field(gt=0)]
|
596
|
+
]
|
597
|
+
] = None,
|
598
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
599
|
+
_content_type: Optional[StrictStr] = None,
|
600
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
601
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
602
|
+
) -> BulkPayment:
|
603
|
+
"""Retrieve
|
604
|
+
|
605
|
+
Recovers the bulk payment resource by its id
|
606
|
+
|
607
|
+
:param id: Bulk payment primary identifier (required)
|
608
|
+
:type id: str
|
609
|
+
:param _request_timeout: timeout setting for this request. If one
|
610
|
+
number provided, it will be total request
|
611
|
+
timeout. It can also be a pair (tuple) of
|
612
|
+
(connection, read) timeouts.
|
613
|
+
:type _request_timeout: int, tuple(int, int), optional
|
614
|
+
:param _request_auth: set to override the auth_settings for an a single
|
615
|
+
request; this effectively ignores the
|
616
|
+
authentication in the spec for a single request.
|
617
|
+
:type _request_auth: dict, optional
|
618
|
+
:param _content_type: force content-type for the request.
|
619
|
+
:type _content_type: str, Optional
|
620
|
+
:param _headers: set to override the headers for a single
|
621
|
+
request; this effectively ignores the headers
|
622
|
+
in the spec for a single request.
|
623
|
+
:type _headers: dict, optional
|
624
|
+
:param _host_index: set to override the host_index for a single
|
625
|
+
request; this effectively ignores the host_index
|
626
|
+
in the spec for a single request.
|
627
|
+
:type _host_index: int, optional
|
628
|
+
:return: Returns the result object.
|
629
|
+
""" # noqa: E501
|
630
|
+
|
631
|
+
_param = self._bulk_payment_retrieve_serialize(
|
632
|
+
id=id,
|
633
|
+
_request_auth=_request_auth,
|
634
|
+
_content_type=_content_type,
|
635
|
+
_headers=_headers,
|
636
|
+
_host_index=_host_index
|
637
|
+
)
|
638
|
+
|
639
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
640
|
+
'200': "BulkPayment",
|
641
|
+
'404': "GlobalErrorResponse",
|
642
|
+
}
|
643
|
+
response_data = self.api_client.call_api(
|
644
|
+
*_param,
|
645
|
+
_request_timeout=_request_timeout
|
646
|
+
)
|
647
|
+
response_data.read()
|
648
|
+
return self.api_client.response_deserialize(
|
649
|
+
response_data=response_data,
|
650
|
+
response_types_map=_response_types_map,
|
651
|
+
).data
|
652
|
+
|
653
|
+
|
654
|
+
@validate_call
|
655
|
+
def bulk_payment_retrieve_with_http_info(
|
656
|
+
self,
|
657
|
+
id: Annotated[StrictStr, Field(description="Bulk payment primary identifier")],
|
658
|
+
_request_timeout: Union[
|
659
|
+
None,
|
660
|
+
Annotated[StrictFloat, Field(gt=0)],
|
661
|
+
Tuple[
|
662
|
+
Annotated[StrictFloat, Field(gt=0)],
|
663
|
+
Annotated[StrictFloat, Field(gt=0)]
|
664
|
+
]
|
665
|
+
] = None,
|
666
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
667
|
+
_content_type: Optional[StrictStr] = None,
|
668
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
669
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
670
|
+
) -> ApiResponse[BulkPayment]:
|
671
|
+
"""Retrieve
|
672
|
+
|
673
|
+
Recovers the bulk payment resource by its id
|
674
|
+
|
675
|
+
:param id: Bulk payment primary identifier (required)
|
676
|
+
:type id: str
|
677
|
+
:param _request_timeout: timeout setting for this request. If one
|
678
|
+
number provided, it will be total request
|
679
|
+
timeout. It can also be a pair (tuple) of
|
680
|
+
(connection, read) timeouts.
|
681
|
+
:type _request_timeout: int, tuple(int, int), optional
|
682
|
+
:param _request_auth: set to override the auth_settings for an a single
|
683
|
+
request; this effectively ignores the
|
684
|
+
authentication in the spec for a single request.
|
685
|
+
:type _request_auth: dict, optional
|
686
|
+
:param _content_type: force content-type for the request.
|
687
|
+
:type _content_type: str, Optional
|
688
|
+
:param _headers: set to override the headers for a single
|
689
|
+
request; this effectively ignores the headers
|
690
|
+
in the spec for a single request.
|
691
|
+
:type _headers: dict, optional
|
692
|
+
:param _host_index: set to override the host_index for a single
|
693
|
+
request; this effectively ignores the host_index
|
694
|
+
in the spec for a single request.
|
695
|
+
:type _host_index: int, optional
|
696
|
+
:return: Returns the result object.
|
697
|
+
""" # noqa: E501
|
698
|
+
|
699
|
+
_param = self._bulk_payment_retrieve_serialize(
|
700
|
+
id=id,
|
701
|
+
_request_auth=_request_auth,
|
702
|
+
_content_type=_content_type,
|
703
|
+
_headers=_headers,
|
704
|
+
_host_index=_host_index
|
705
|
+
)
|
706
|
+
|
707
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
708
|
+
'200': "BulkPayment",
|
709
|
+
'404': "GlobalErrorResponse",
|
710
|
+
}
|
711
|
+
response_data = self.api_client.call_api(
|
712
|
+
*_param,
|
713
|
+
_request_timeout=_request_timeout
|
714
|
+
)
|
715
|
+
response_data.read()
|
716
|
+
return self.api_client.response_deserialize(
|
717
|
+
response_data=response_data,
|
718
|
+
response_types_map=_response_types_map,
|
719
|
+
)
|
720
|
+
|
721
|
+
|
722
|
+
@validate_call
|
723
|
+
def bulk_payment_retrieve_without_preload_content(
|
724
|
+
self,
|
725
|
+
id: Annotated[StrictStr, Field(description="Bulk payment primary identifier")],
|
726
|
+
_request_timeout: Union[
|
727
|
+
None,
|
728
|
+
Annotated[StrictFloat, Field(gt=0)],
|
729
|
+
Tuple[
|
730
|
+
Annotated[StrictFloat, Field(gt=0)],
|
731
|
+
Annotated[StrictFloat, Field(gt=0)]
|
732
|
+
]
|
733
|
+
] = None,
|
734
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
735
|
+
_content_type: Optional[StrictStr] = None,
|
736
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
737
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
738
|
+
) -> RESTResponseType:
|
739
|
+
"""Retrieve
|
740
|
+
|
741
|
+
Recovers the bulk payment resource by its id
|
742
|
+
|
743
|
+
:param id: Bulk payment primary identifier (required)
|
744
|
+
:type id: str
|
745
|
+
:param _request_timeout: timeout setting for this request. If one
|
746
|
+
number provided, it will be total request
|
747
|
+
timeout. It can also be a pair (tuple) of
|
748
|
+
(connection, read) timeouts.
|
749
|
+
:type _request_timeout: int, tuple(int, int), optional
|
750
|
+
:param _request_auth: set to override the auth_settings for an a single
|
751
|
+
request; this effectively ignores the
|
752
|
+
authentication in the spec for a single request.
|
753
|
+
:type _request_auth: dict, optional
|
754
|
+
:param _content_type: force content-type for the request.
|
755
|
+
:type _content_type: str, Optional
|
756
|
+
:param _headers: set to override the headers for a single
|
757
|
+
request; this effectively ignores the headers
|
758
|
+
in the spec for a single request.
|
759
|
+
:type _headers: dict, optional
|
760
|
+
:param _host_index: set to override the host_index for a single
|
761
|
+
request; this effectively ignores the host_index
|
762
|
+
in the spec for a single request.
|
763
|
+
:type _host_index: int, optional
|
764
|
+
:return: Returns the result object.
|
765
|
+
""" # noqa: E501
|
766
|
+
|
767
|
+
_param = self._bulk_payment_retrieve_serialize(
|
768
|
+
id=id,
|
769
|
+
_request_auth=_request_auth,
|
770
|
+
_content_type=_content_type,
|
771
|
+
_headers=_headers,
|
772
|
+
_host_index=_host_index
|
773
|
+
)
|
774
|
+
|
775
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
776
|
+
'200': "BulkPayment",
|
777
|
+
'404': "GlobalErrorResponse",
|
778
|
+
}
|
779
|
+
response_data = self.api_client.call_api(
|
780
|
+
*_param,
|
781
|
+
_request_timeout=_request_timeout
|
782
|
+
)
|
783
|
+
return response_data.response
|
784
|
+
|
785
|
+
|
786
|
+
def _bulk_payment_retrieve_serialize(
|
787
|
+
self,
|
788
|
+
id,
|
789
|
+
_request_auth,
|
790
|
+
_content_type,
|
791
|
+
_headers,
|
792
|
+
_host_index,
|
793
|
+
) -> RequestSerialized:
|
794
|
+
|
795
|
+
_host = None
|
796
|
+
|
797
|
+
_collection_formats: Dict[str, str] = {
|
798
|
+
}
|
799
|
+
|
800
|
+
_path_params: Dict[str, str] = {}
|
801
|
+
_query_params: List[Tuple[str, str]] = []
|
802
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
803
|
+
_form_params: List[Tuple[str, str]] = []
|
804
|
+
_files: Dict[
|
805
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
806
|
+
] = {}
|
807
|
+
_body_params: Optional[bytes] = None
|
808
|
+
|
809
|
+
# process the path parameters
|
810
|
+
if id is not None:
|
811
|
+
_path_params['id'] = id
|
812
|
+
# process the query parameters
|
813
|
+
# process the header parameters
|
814
|
+
# process the form parameters
|
815
|
+
# process the body parameter
|
816
|
+
|
817
|
+
|
818
|
+
# set the HTTP header `Accept`
|
819
|
+
if 'Accept' not in _header_params:
|
820
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
821
|
+
[
|
822
|
+
'application/json'
|
823
|
+
]
|
824
|
+
)
|
825
|
+
|
826
|
+
|
827
|
+
# authentication setting
|
828
|
+
_auth_settings: List[str] = [
|
829
|
+
'default'
|
830
|
+
]
|
831
|
+
|
832
|
+
return self.api_client.param_serialize(
|
833
|
+
method='GET',
|
834
|
+
resource_path='/payments/bulk/{id}',
|
835
|
+
path_params=_path_params,
|
836
|
+
query_params=_query_params,
|
837
|
+
header_params=_header_params,
|
838
|
+
body=_body_params,
|
839
|
+
post_params=_form_params,
|
840
|
+
files=_files,
|
841
|
+
auth_settings=_auth_settings,
|
842
|
+
collection_formats=_collection_formats,
|
843
|
+
_host=_host,
|
844
|
+
_request_auth=_request_auth
|
845
|
+
)
|
846
|
+
|
847
|
+
|
848
|
+
|
849
|
+
|
850
|
+
@validate_call
|
851
|
+
def bulk_payments_list(
|
852
|
+
self,
|
853
|
+
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
854
|
+
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
855
|
+
_request_timeout: Union[
|
856
|
+
None,
|
857
|
+
Annotated[StrictFloat, Field(gt=0)],
|
858
|
+
Tuple[
|
859
|
+
Annotated[StrictFloat, Field(gt=0)],
|
860
|
+
Annotated[StrictFloat, Field(gt=0)]
|
861
|
+
]
|
862
|
+
] = None,
|
863
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
864
|
+
_content_type: Optional[StrictStr] = None,
|
865
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
866
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
867
|
+
) -> BulkPaymentsList200Response:
|
868
|
+
"""List
|
869
|
+
|
870
|
+
Recovers all created bulk payments
|
871
|
+
|
872
|
+
:param page_size: Page size for the paging request, default: 20
|
873
|
+
:type page_size: float
|
874
|
+
:param page: Page number for the paging request, default: 1
|
875
|
+
:type page: float
|
876
|
+
:param _request_timeout: timeout setting for this request. If one
|
877
|
+
number provided, it will be total request
|
878
|
+
timeout. It can also be a pair (tuple) of
|
879
|
+
(connection, read) timeouts.
|
880
|
+
:type _request_timeout: int, tuple(int, int), optional
|
881
|
+
:param _request_auth: set to override the auth_settings for an a single
|
882
|
+
request; this effectively ignores the
|
883
|
+
authentication in the spec for a single request.
|
884
|
+
:type _request_auth: dict, optional
|
885
|
+
:param _content_type: force content-type for the request.
|
886
|
+
:type _content_type: str, Optional
|
887
|
+
:param _headers: set to override the headers for a single
|
888
|
+
request; this effectively ignores the headers
|
889
|
+
in the spec for a single request.
|
890
|
+
:type _headers: dict, optional
|
891
|
+
:param _host_index: set to override the host_index for a single
|
892
|
+
request; this effectively ignores the host_index
|
893
|
+
in the spec for a single request.
|
894
|
+
:type _host_index: int, optional
|
895
|
+
:return: Returns the result object.
|
896
|
+
""" # noqa: E501
|
897
|
+
|
898
|
+
_param = self._bulk_payments_list_serialize(
|
899
|
+
page_size=page_size,
|
900
|
+
page=page,
|
901
|
+
_request_auth=_request_auth,
|
902
|
+
_content_type=_content_type,
|
903
|
+
_headers=_headers,
|
904
|
+
_host_index=_host_index
|
905
|
+
)
|
906
|
+
|
907
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
908
|
+
'200': "BulkPaymentsList200Response",
|
909
|
+
}
|
910
|
+
response_data = self.api_client.call_api(
|
911
|
+
*_param,
|
912
|
+
_request_timeout=_request_timeout
|
913
|
+
)
|
914
|
+
response_data.read()
|
915
|
+
return self.api_client.response_deserialize(
|
916
|
+
response_data=response_data,
|
917
|
+
response_types_map=_response_types_map,
|
918
|
+
).data
|
919
|
+
|
920
|
+
|
921
|
+
@validate_call
|
922
|
+
def bulk_payments_list_with_http_info(
|
923
|
+
self,
|
924
|
+
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
925
|
+
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
926
|
+
_request_timeout: Union[
|
927
|
+
None,
|
928
|
+
Annotated[StrictFloat, Field(gt=0)],
|
929
|
+
Tuple[
|
930
|
+
Annotated[StrictFloat, Field(gt=0)],
|
931
|
+
Annotated[StrictFloat, Field(gt=0)]
|
932
|
+
]
|
933
|
+
] = None,
|
934
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
935
|
+
_content_type: Optional[StrictStr] = None,
|
936
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
937
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
938
|
+
) -> ApiResponse[BulkPaymentsList200Response]:
|
939
|
+
"""List
|
940
|
+
|
941
|
+
Recovers all created bulk payments
|
942
|
+
|
943
|
+
:param page_size: Page size for the paging request, default: 20
|
944
|
+
:type page_size: float
|
945
|
+
:param page: Page number for the paging request, default: 1
|
946
|
+
:type page: float
|
947
|
+
:param _request_timeout: timeout setting for this request. If one
|
948
|
+
number provided, it will be total request
|
949
|
+
timeout. It can also be a pair (tuple) of
|
950
|
+
(connection, read) timeouts.
|
951
|
+
:type _request_timeout: int, tuple(int, int), optional
|
952
|
+
:param _request_auth: set to override the auth_settings for an a single
|
953
|
+
request; this effectively ignores the
|
954
|
+
authentication in the spec for a single request.
|
955
|
+
:type _request_auth: dict, optional
|
956
|
+
:param _content_type: force content-type for the request.
|
957
|
+
:type _content_type: str, Optional
|
958
|
+
:param _headers: set to override the headers for a single
|
959
|
+
request; this effectively ignores the headers
|
960
|
+
in the spec for a single request.
|
961
|
+
:type _headers: dict, optional
|
962
|
+
:param _host_index: set to override the host_index for a single
|
963
|
+
request; this effectively ignores the host_index
|
964
|
+
in the spec for a single request.
|
965
|
+
:type _host_index: int, optional
|
966
|
+
:return: Returns the result object.
|
967
|
+
""" # noqa: E501
|
968
|
+
|
969
|
+
_param = self._bulk_payments_list_serialize(
|
970
|
+
page_size=page_size,
|
971
|
+
page=page,
|
972
|
+
_request_auth=_request_auth,
|
973
|
+
_content_type=_content_type,
|
974
|
+
_headers=_headers,
|
975
|
+
_host_index=_host_index
|
976
|
+
)
|
977
|
+
|
978
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
979
|
+
'200': "BulkPaymentsList200Response",
|
980
|
+
}
|
981
|
+
response_data = self.api_client.call_api(
|
982
|
+
*_param,
|
983
|
+
_request_timeout=_request_timeout
|
984
|
+
)
|
985
|
+
response_data.read()
|
986
|
+
return self.api_client.response_deserialize(
|
987
|
+
response_data=response_data,
|
988
|
+
response_types_map=_response_types_map,
|
989
|
+
)
|
990
|
+
|
991
|
+
|
992
|
+
@validate_call
|
993
|
+
def bulk_payments_list_without_preload_content(
|
994
|
+
self,
|
995
|
+
page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
|
996
|
+
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
|
997
|
+
_request_timeout: Union[
|
998
|
+
None,
|
999
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1000
|
+
Tuple[
|
1001
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1002
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1003
|
+
]
|
1004
|
+
] = None,
|
1005
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1006
|
+
_content_type: Optional[StrictStr] = None,
|
1007
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1008
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1009
|
+
) -> RESTResponseType:
|
1010
|
+
"""List
|
1011
|
+
|
1012
|
+
Recovers all created bulk payments
|
1013
|
+
|
1014
|
+
:param page_size: Page size for the paging request, default: 20
|
1015
|
+
:type page_size: float
|
1016
|
+
:param page: Page number for the paging request, default: 1
|
1017
|
+
:type page: float
|
1018
|
+
:param _request_timeout: timeout setting for this request. If one
|
1019
|
+
number provided, it will be total request
|
1020
|
+
timeout. It can also be a pair (tuple) of
|
1021
|
+
(connection, read) timeouts.
|
1022
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1023
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1024
|
+
request; this effectively ignores the
|
1025
|
+
authentication in the spec for a single request.
|
1026
|
+
:type _request_auth: dict, optional
|
1027
|
+
:param _content_type: force content-type for the request.
|
1028
|
+
:type _content_type: str, Optional
|
1029
|
+
:param _headers: set to override the headers for a single
|
1030
|
+
request; this effectively ignores the headers
|
1031
|
+
in the spec for a single request.
|
1032
|
+
:type _headers: dict, optional
|
1033
|
+
:param _host_index: set to override the host_index for a single
|
1034
|
+
request; this effectively ignores the host_index
|
1035
|
+
in the spec for a single request.
|
1036
|
+
:type _host_index: int, optional
|
1037
|
+
:return: Returns the result object.
|
1038
|
+
""" # noqa: E501
|
1039
|
+
|
1040
|
+
_param = self._bulk_payments_list_serialize(
|
1041
|
+
page_size=page_size,
|
1042
|
+
page=page,
|
1043
|
+
_request_auth=_request_auth,
|
1044
|
+
_content_type=_content_type,
|
1045
|
+
_headers=_headers,
|
1046
|
+
_host_index=_host_index
|
1047
|
+
)
|
1048
|
+
|
1049
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1050
|
+
'200': "BulkPaymentsList200Response",
|
1051
|
+
}
|
1052
|
+
response_data = self.api_client.call_api(
|
1053
|
+
*_param,
|
1054
|
+
_request_timeout=_request_timeout
|
1055
|
+
)
|
1056
|
+
return response_data.response
|
1057
|
+
|
1058
|
+
|
1059
|
+
def _bulk_payments_list_serialize(
|
1060
|
+
self,
|
1061
|
+
page_size,
|
1062
|
+
page,
|
1063
|
+
_request_auth,
|
1064
|
+
_content_type,
|
1065
|
+
_headers,
|
1066
|
+
_host_index,
|
1067
|
+
) -> RequestSerialized:
|
1068
|
+
|
1069
|
+
_host = None
|
1070
|
+
|
1071
|
+
_collection_formats: Dict[str, str] = {
|
1072
|
+
}
|
1073
|
+
|
1074
|
+
_path_params: Dict[str, str] = {}
|
1075
|
+
_query_params: List[Tuple[str, str]] = []
|
1076
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1077
|
+
_form_params: List[Tuple[str, str]] = []
|
1078
|
+
_files: Dict[
|
1079
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1080
|
+
] = {}
|
1081
|
+
_body_params: Optional[bytes] = None
|
1082
|
+
|
1083
|
+
# process the path parameters
|
1084
|
+
# process the query parameters
|
1085
|
+
if page_size is not None:
|
1086
|
+
|
1087
|
+
_query_params.append(('pageSize', page_size))
|
1088
|
+
|
1089
|
+
if page is not None:
|
1090
|
+
|
1091
|
+
_query_params.append(('page', page))
|
1092
|
+
|
1093
|
+
# process the header parameters
|
1094
|
+
# process the form parameters
|
1095
|
+
# process the body parameter
|
1096
|
+
|
1097
|
+
|
1098
|
+
# set the HTTP header `Accept`
|
1099
|
+
if 'Accept' not in _header_params:
|
1100
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1101
|
+
[
|
1102
|
+
'application/json'
|
1103
|
+
]
|
1104
|
+
)
|
1105
|
+
|
1106
|
+
|
1107
|
+
# authentication setting
|
1108
|
+
_auth_settings: List[str] = [
|
1109
|
+
'default'
|
1110
|
+
]
|
1111
|
+
|
1112
|
+
return self.api_client.param_serialize(
|
1113
|
+
method='GET',
|
1114
|
+
resource_path='/payments/bulk',
|
1115
|
+
path_params=_path_params,
|
1116
|
+
query_params=_query_params,
|
1117
|
+
header_params=_header_params,
|
1118
|
+
body=_body_params,
|
1119
|
+
post_params=_form_params,
|
1120
|
+
files=_files,
|
1121
|
+
auth_settings=_auth_settings,
|
1122
|
+
collection_formats=_collection_formats,
|
1123
|
+
_host=_host,
|
1124
|
+
_request_auth=_request_auth
|
1125
|
+
)
|
1126
|
+
|
1127
|
+
|