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,823 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pluggy API
|
5
|
+
|
6
|
+
Pluggy's main API to review data and execute connectors
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: hello@pluggy.ai
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
import warnings
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
|
+
from typing_extensions import Annotated
|
19
|
+
|
20
|
+
from pydantic import Field, StrictStr
|
21
|
+
from typing_extensions import Annotated
|
22
|
+
from pluggy_sdk.models.payment_schedules_list200_response import PaymentSchedulesList200Response
|
23
|
+
|
24
|
+
from pluggy_sdk.api_client import ApiClient, RequestSerialized
|
25
|
+
from pluggy_sdk.api_response import ApiResponse
|
26
|
+
from pluggy_sdk.rest import RESTResponseType
|
27
|
+
|
28
|
+
|
29
|
+
class PaymentScheduleApi:
|
30
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
31
|
+
Ref: https://openapi-generator.tech
|
32
|
+
|
33
|
+
Do not edit the class manually.
|
34
|
+
"""
|
35
|
+
|
36
|
+
def __init__(self, api_client=None) -> None:
|
37
|
+
if api_client is None:
|
38
|
+
api_client = ApiClient.get_default()
|
39
|
+
self.api_client = api_client
|
40
|
+
|
41
|
+
|
42
|
+
@validate_call
|
43
|
+
def payment_schedules_cancel(
|
44
|
+
self,
|
45
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
46
|
+
_request_timeout: Union[
|
47
|
+
None,
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
49
|
+
Tuple[
|
50
|
+
Annotated[StrictFloat, Field(gt=0)],
|
51
|
+
Annotated[StrictFloat, Field(gt=0)]
|
52
|
+
]
|
53
|
+
] = None,
|
54
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
55
|
+
_content_type: Optional[StrictStr] = None,
|
56
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
57
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
58
|
+
) -> None:
|
59
|
+
"""Cancel Payment Schedule Authorization
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
:param id: Payment request primary identifier (required)
|
64
|
+
:type id: str
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
66
|
+
number provided, it will be total request
|
67
|
+
timeout. It can also be a pair (tuple) of
|
68
|
+
(connection, read) timeouts.
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
71
|
+
request; this effectively ignores the
|
72
|
+
authentication in the spec for a single request.
|
73
|
+
:type _request_auth: dict, optional
|
74
|
+
:param _content_type: force content-type for the request.
|
75
|
+
:type _content_type: str, Optional
|
76
|
+
:param _headers: set to override the headers for a single
|
77
|
+
request; this effectively ignores the headers
|
78
|
+
in the spec for a single request.
|
79
|
+
:type _headers: dict, optional
|
80
|
+
:param _host_index: set to override the host_index for a single
|
81
|
+
request; this effectively ignores the host_index
|
82
|
+
in the spec for a single request.
|
83
|
+
:type _host_index: int, optional
|
84
|
+
:return: Returns the result object.
|
85
|
+
""" # noqa: E501
|
86
|
+
|
87
|
+
_param = self._payment_schedules_cancel_serialize(
|
88
|
+
id=id,
|
89
|
+
_request_auth=_request_auth,
|
90
|
+
_content_type=_content_type,
|
91
|
+
_headers=_headers,
|
92
|
+
_host_index=_host_index
|
93
|
+
)
|
94
|
+
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
96
|
+
'204': None,
|
97
|
+
}
|
98
|
+
response_data = self.api_client.call_api(
|
99
|
+
*_param,
|
100
|
+
_request_timeout=_request_timeout
|
101
|
+
)
|
102
|
+
response_data.read()
|
103
|
+
return self.api_client.response_deserialize(
|
104
|
+
response_data=response_data,
|
105
|
+
response_types_map=_response_types_map,
|
106
|
+
).data
|
107
|
+
|
108
|
+
|
109
|
+
@validate_call
|
110
|
+
def payment_schedules_cancel_with_http_info(
|
111
|
+
self,
|
112
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
113
|
+
_request_timeout: Union[
|
114
|
+
None,
|
115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
116
|
+
Tuple[
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
118
|
+
Annotated[StrictFloat, Field(gt=0)]
|
119
|
+
]
|
120
|
+
] = None,
|
121
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
122
|
+
_content_type: Optional[StrictStr] = None,
|
123
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
124
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
125
|
+
) -> ApiResponse[None]:
|
126
|
+
"""Cancel Payment Schedule Authorization
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
:param id: Payment request primary identifier (required)
|
131
|
+
:type id: str
|
132
|
+
:param _request_timeout: timeout setting for this request. If one
|
133
|
+
number provided, it will be total request
|
134
|
+
timeout. It can also be a pair (tuple) of
|
135
|
+
(connection, read) timeouts.
|
136
|
+
:type _request_timeout: int, tuple(int, int), optional
|
137
|
+
:param _request_auth: set to override the auth_settings for an a single
|
138
|
+
request; this effectively ignores the
|
139
|
+
authentication in the spec for a single request.
|
140
|
+
:type _request_auth: dict, optional
|
141
|
+
:param _content_type: force content-type for the request.
|
142
|
+
:type _content_type: str, Optional
|
143
|
+
:param _headers: set to override the headers for a single
|
144
|
+
request; this effectively ignores the headers
|
145
|
+
in the spec for a single request.
|
146
|
+
:type _headers: dict, optional
|
147
|
+
:param _host_index: set to override the host_index for a single
|
148
|
+
request; this effectively ignores the host_index
|
149
|
+
in the spec for a single request.
|
150
|
+
:type _host_index: int, optional
|
151
|
+
:return: Returns the result object.
|
152
|
+
""" # noqa: E501
|
153
|
+
|
154
|
+
_param = self._payment_schedules_cancel_serialize(
|
155
|
+
id=id,
|
156
|
+
_request_auth=_request_auth,
|
157
|
+
_content_type=_content_type,
|
158
|
+
_headers=_headers,
|
159
|
+
_host_index=_host_index
|
160
|
+
)
|
161
|
+
|
162
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
163
|
+
'204': None,
|
164
|
+
}
|
165
|
+
response_data = self.api_client.call_api(
|
166
|
+
*_param,
|
167
|
+
_request_timeout=_request_timeout
|
168
|
+
)
|
169
|
+
response_data.read()
|
170
|
+
return self.api_client.response_deserialize(
|
171
|
+
response_data=response_data,
|
172
|
+
response_types_map=_response_types_map,
|
173
|
+
)
|
174
|
+
|
175
|
+
|
176
|
+
@validate_call
|
177
|
+
def payment_schedules_cancel_without_preload_content(
|
178
|
+
self,
|
179
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
180
|
+
_request_timeout: Union[
|
181
|
+
None,
|
182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
183
|
+
Tuple[
|
184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
185
|
+
Annotated[StrictFloat, Field(gt=0)]
|
186
|
+
]
|
187
|
+
] = None,
|
188
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
189
|
+
_content_type: Optional[StrictStr] = None,
|
190
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
191
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
192
|
+
) -> RESTResponseType:
|
193
|
+
"""Cancel Payment Schedule Authorization
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
:param id: Payment request primary identifier (required)
|
198
|
+
:type id: str
|
199
|
+
:param _request_timeout: timeout setting for this request. If one
|
200
|
+
number provided, it will be total request
|
201
|
+
timeout. It can also be a pair (tuple) of
|
202
|
+
(connection, read) timeouts.
|
203
|
+
:type _request_timeout: int, tuple(int, int), optional
|
204
|
+
:param _request_auth: set to override the auth_settings for an a single
|
205
|
+
request; this effectively ignores the
|
206
|
+
authentication in the spec for a single request.
|
207
|
+
:type _request_auth: dict, optional
|
208
|
+
:param _content_type: force content-type for the request.
|
209
|
+
:type _content_type: str, Optional
|
210
|
+
:param _headers: set to override the headers for a single
|
211
|
+
request; this effectively ignores the headers
|
212
|
+
in the spec for a single request.
|
213
|
+
:type _headers: dict, optional
|
214
|
+
:param _host_index: set to override the host_index for a single
|
215
|
+
request; this effectively ignores the host_index
|
216
|
+
in the spec for a single request.
|
217
|
+
:type _host_index: int, optional
|
218
|
+
:return: Returns the result object.
|
219
|
+
""" # noqa: E501
|
220
|
+
|
221
|
+
_param = self._payment_schedules_cancel_serialize(
|
222
|
+
id=id,
|
223
|
+
_request_auth=_request_auth,
|
224
|
+
_content_type=_content_type,
|
225
|
+
_headers=_headers,
|
226
|
+
_host_index=_host_index
|
227
|
+
)
|
228
|
+
|
229
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
230
|
+
'204': None,
|
231
|
+
}
|
232
|
+
response_data = self.api_client.call_api(
|
233
|
+
*_param,
|
234
|
+
_request_timeout=_request_timeout
|
235
|
+
)
|
236
|
+
return response_data.response
|
237
|
+
|
238
|
+
|
239
|
+
def _payment_schedules_cancel_serialize(
|
240
|
+
self,
|
241
|
+
id,
|
242
|
+
_request_auth,
|
243
|
+
_content_type,
|
244
|
+
_headers,
|
245
|
+
_host_index,
|
246
|
+
) -> RequestSerialized:
|
247
|
+
|
248
|
+
_host = None
|
249
|
+
|
250
|
+
_collection_formats: Dict[str, str] = {
|
251
|
+
}
|
252
|
+
|
253
|
+
_path_params: Dict[str, str] = {}
|
254
|
+
_query_params: List[Tuple[str, str]] = []
|
255
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
256
|
+
_form_params: List[Tuple[str, str]] = []
|
257
|
+
_files: Dict[
|
258
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
259
|
+
] = {}
|
260
|
+
_body_params: Optional[bytes] = None
|
261
|
+
|
262
|
+
# process the path parameters
|
263
|
+
if id is not None:
|
264
|
+
_path_params['id'] = id
|
265
|
+
# process the query parameters
|
266
|
+
# process the header parameters
|
267
|
+
# process the form parameters
|
268
|
+
# process the body parameter
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
# authentication setting
|
274
|
+
_auth_settings: List[str] = [
|
275
|
+
'default'
|
276
|
+
]
|
277
|
+
|
278
|
+
return self.api_client.param_serialize(
|
279
|
+
method='POST',
|
280
|
+
resource_path='/payments/requests/{id}/schedules/cancel',
|
281
|
+
path_params=_path_params,
|
282
|
+
query_params=_query_params,
|
283
|
+
header_params=_header_params,
|
284
|
+
body=_body_params,
|
285
|
+
post_params=_form_params,
|
286
|
+
files=_files,
|
287
|
+
auth_settings=_auth_settings,
|
288
|
+
collection_formats=_collection_formats,
|
289
|
+
_host=_host,
|
290
|
+
_request_auth=_request_auth
|
291
|
+
)
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
@validate_call
|
297
|
+
def payment_schedules_cancel_specific(
|
298
|
+
self,
|
299
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
300
|
+
schedule_id: Annotated[StrictStr, Field(description="Payment schedule primary identifier")],
|
301
|
+
_request_timeout: Union[
|
302
|
+
None,
|
303
|
+
Annotated[StrictFloat, Field(gt=0)],
|
304
|
+
Tuple[
|
305
|
+
Annotated[StrictFloat, Field(gt=0)],
|
306
|
+
Annotated[StrictFloat, Field(gt=0)]
|
307
|
+
]
|
308
|
+
] = None,
|
309
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
310
|
+
_content_type: Optional[StrictStr] = None,
|
311
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
312
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
313
|
+
) -> None:
|
314
|
+
"""Cancel Payment Schedule Authorization
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
:param id: Payment request primary identifier (required)
|
319
|
+
:type id: str
|
320
|
+
:param schedule_id: Payment schedule primary identifier (required)
|
321
|
+
:type schedule_id: str
|
322
|
+
:param _request_timeout: timeout setting for this request. If one
|
323
|
+
number provided, it will be total request
|
324
|
+
timeout. It can also be a pair (tuple) of
|
325
|
+
(connection, read) timeouts.
|
326
|
+
:type _request_timeout: int, tuple(int, int), optional
|
327
|
+
:param _request_auth: set to override the auth_settings for an a single
|
328
|
+
request; this effectively ignores the
|
329
|
+
authentication in the spec for a single request.
|
330
|
+
:type _request_auth: dict, optional
|
331
|
+
:param _content_type: force content-type for the request.
|
332
|
+
:type _content_type: str, Optional
|
333
|
+
:param _headers: set to override the headers for a single
|
334
|
+
request; this effectively ignores the headers
|
335
|
+
in the spec for a single request.
|
336
|
+
:type _headers: dict, optional
|
337
|
+
:param _host_index: set to override the host_index for a single
|
338
|
+
request; this effectively ignores the host_index
|
339
|
+
in the spec for a single request.
|
340
|
+
:type _host_index: int, optional
|
341
|
+
:return: Returns the result object.
|
342
|
+
""" # noqa: E501
|
343
|
+
|
344
|
+
_param = self._payment_schedules_cancel_specific_serialize(
|
345
|
+
id=id,
|
346
|
+
schedule_id=schedule_id,
|
347
|
+
_request_auth=_request_auth,
|
348
|
+
_content_type=_content_type,
|
349
|
+
_headers=_headers,
|
350
|
+
_host_index=_host_index
|
351
|
+
)
|
352
|
+
|
353
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
354
|
+
'204': None,
|
355
|
+
}
|
356
|
+
response_data = self.api_client.call_api(
|
357
|
+
*_param,
|
358
|
+
_request_timeout=_request_timeout
|
359
|
+
)
|
360
|
+
response_data.read()
|
361
|
+
return self.api_client.response_deserialize(
|
362
|
+
response_data=response_data,
|
363
|
+
response_types_map=_response_types_map,
|
364
|
+
).data
|
365
|
+
|
366
|
+
|
367
|
+
@validate_call
|
368
|
+
def payment_schedules_cancel_specific_with_http_info(
|
369
|
+
self,
|
370
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
371
|
+
schedule_id: Annotated[StrictStr, Field(description="Payment schedule primary identifier")],
|
372
|
+
_request_timeout: Union[
|
373
|
+
None,
|
374
|
+
Annotated[StrictFloat, Field(gt=0)],
|
375
|
+
Tuple[
|
376
|
+
Annotated[StrictFloat, Field(gt=0)],
|
377
|
+
Annotated[StrictFloat, Field(gt=0)]
|
378
|
+
]
|
379
|
+
] = None,
|
380
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
381
|
+
_content_type: Optional[StrictStr] = None,
|
382
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
383
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
384
|
+
) -> ApiResponse[None]:
|
385
|
+
"""Cancel Payment Schedule Authorization
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
:param id: Payment request primary identifier (required)
|
390
|
+
:type id: str
|
391
|
+
:param schedule_id: Payment schedule primary identifier (required)
|
392
|
+
:type schedule_id: str
|
393
|
+
:param _request_timeout: timeout setting for this request. If one
|
394
|
+
number provided, it will be total request
|
395
|
+
timeout. It can also be a pair (tuple) of
|
396
|
+
(connection, read) timeouts.
|
397
|
+
:type _request_timeout: int, tuple(int, int), optional
|
398
|
+
:param _request_auth: set to override the auth_settings for an a single
|
399
|
+
request; this effectively ignores the
|
400
|
+
authentication in the spec for a single request.
|
401
|
+
:type _request_auth: dict, optional
|
402
|
+
:param _content_type: force content-type for the request.
|
403
|
+
:type _content_type: str, Optional
|
404
|
+
:param _headers: set to override the headers for a single
|
405
|
+
request; this effectively ignores the headers
|
406
|
+
in the spec for a single request.
|
407
|
+
:type _headers: dict, optional
|
408
|
+
:param _host_index: set to override the host_index for a single
|
409
|
+
request; this effectively ignores the host_index
|
410
|
+
in the spec for a single request.
|
411
|
+
:type _host_index: int, optional
|
412
|
+
:return: Returns the result object.
|
413
|
+
""" # noqa: E501
|
414
|
+
|
415
|
+
_param = self._payment_schedules_cancel_specific_serialize(
|
416
|
+
id=id,
|
417
|
+
schedule_id=schedule_id,
|
418
|
+
_request_auth=_request_auth,
|
419
|
+
_content_type=_content_type,
|
420
|
+
_headers=_headers,
|
421
|
+
_host_index=_host_index
|
422
|
+
)
|
423
|
+
|
424
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
425
|
+
'204': None,
|
426
|
+
}
|
427
|
+
response_data = self.api_client.call_api(
|
428
|
+
*_param,
|
429
|
+
_request_timeout=_request_timeout
|
430
|
+
)
|
431
|
+
response_data.read()
|
432
|
+
return self.api_client.response_deserialize(
|
433
|
+
response_data=response_data,
|
434
|
+
response_types_map=_response_types_map,
|
435
|
+
)
|
436
|
+
|
437
|
+
|
438
|
+
@validate_call
|
439
|
+
def payment_schedules_cancel_specific_without_preload_content(
|
440
|
+
self,
|
441
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
442
|
+
schedule_id: Annotated[StrictStr, Field(description="Payment schedule primary identifier")],
|
443
|
+
_request_timeout: Union[
|
444
|
+
None,
|
445
|
+
Annotated[StrictFloat, Field(gt=0)],
|
446
|
+
Tuple[
|
447
|
+
Annotated[StrictFloat, Field(gt=0)],
|
448
|
+
Annotated[StrictFloat, Field(gt=0)]
|
449
|
+
]
|
450
|
+
] = None,
|
451
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
452
|
+
_content_type: Optional[StrictStr] = None,
|
453
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
454
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
455
|
+
) -> RESTResponseType:
|
456
|
+
"""Cancel Payment Schedule Authorization
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
:param id: Payment request primary identifier (required)
|
461
|
+
:type id: str
|
462
|
+
:param schedule_id: Payment schedule primary identifier (required)
|
463
|
+
:type schedule_id: str
|
464
|
+
:param _request_timeout: timeout setting for this request. If one
|
465
|
+
number provided, it will be total request
|
466
|
+
timeout. It can also be a pair (tuple) of
|
467
|
+
(connection, read) timeouts.
|
468
|
+
:type _request_timeout: int, tuple(int, int), optional
|
469
|
+
:param _request_auth: set to override the auth_settings for an a single
|
470
|
+
request; this effectively ignores the
|
471
|
+
authentication in the spec for a single request.
|
472
|
+
:type _request_auth: dict, optional
|
473
|
+
:param _content_type: force content-type for the request.
|
474
|
+
:type _content_type: str, Optional
|
475
|
+
:param _headers: set to override the headers for a single
|
476
|
+
request; this effectively ignores the headers
|
477
|
+
in the spec for a single request.
|
478
|
+
:type _headers: dict, optional
|
479
|
+
:param _host_index: set to override the host_index for a single
|
480
|
+
request; this effectively ignores the host_index
|
481
|
+
in the spec for a single request.
|
482
|
+
:type _host_index: int, optional
|
483
|
+
:return: Returns the result object.
|
484
|
+
""" # noqa: E501
|
485
|
+
|
486
|
+
_param = self._payment_schedules_cancel_specific_serialize(
|
487
|
+
id=id,
|
488
|
+
schedule_id=schedule_id,
|
489
|
+
_request_auth=_request_auth,
|
490
|
+
_content_type=_content_type,
|
491
|
+
_headers=_headers,
|
492
|
+
_host_index=_host_index
|
493
|
+
)
|
494
|
+
|
495
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
496
|
+
'204': None,
|
497
|
+
}
|
498
|
+
response_data = self.api_client.call_api(
|
499
|
+
*_param,
|
500
|
+
_request_timeout=_request_timeout
|
501
|
+
)
|
502
|
+
return response_data.response
|
503
|
+
|
504
|
+
|
505
|
+
def _payment_schedules_cancel_specific_serialize(
|
506
|
+
self,
|
507
|
+
id,
|
508
|
+
schedule_id,
|
509
|
+
_request_auth,
|
510
|
+
_content_type,
|
511
|
+
_headers,
|
512
|
+
_host_index,
|
513
|
+
) -> RequestSerialized:
|
514
|
+
|
515
|
+
_host = None
|
516
|
+
|
517
|
+
_collection_formats: Dict[str, str] = {
|
518
|
+
}
|
519
|
+
|
520
|
+
_path_params: Dict[str, str] = {}
|
521
|
+
_query_params: List[Tuple[str, str]] = []
|
522
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
523
|
+
_form_params: List[Tuple[str, str]] = []
|
524
|
+
_files: Dict[
|
525
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
526
|
+
] = {}
|
527
|
+
_body_params: Optional[bytes] = None
|
528
|
+
|
529
|
+
# process the path parameters
|
530
|
+
if id is not None:
|
531
|
+
_path_params['id'] = id
|
532
|
+
if schedule_id is not None:
|
533
|
+
_path_params['scheduleId'] = schedule_id
|
534
|
+
# process the query parameters
|
535
|
+
# process the header parameters
|
536
|
+
# process the form parameters
|
537
|
+
# process the body parameter
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
# authentication setting
|
543
|
+
_auth_settings: List[str] = [
|
544
|
+
'default'
|
545
|
+
]
|
546
|
+
|
547
|
+
return self.api_client.param_serialize(
|
548
|
+
method='POST',
|
549
|
+
resource_path='/payments/requests/{id}/schedules/{scheduleId}/cancel',
|
550
|
+
path_params=_path_params,
|
551
|
+
query_params=_query_params,
|
552
|
+
header_params=_header_params,
|
553
|
+
body=_body_params,
|
554
|
+
post_params=_form_params,
|
555
|
+
files=_files,
|
556
|
+
auth_settings=_auth_settings,
|
557
|
+
collection_formats=_collection_formats,
|
558
|
+
_host=_host,
|
559
|
+
_request_auth=_request_auth
|
560
|
+
)
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
@validate_call
|
566
|
+
def payment_schedules_list(
|
567
|
+
self,
|
568
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
569
|
+
_request_timeout: Union[
|
570
|
+
None,
|
571
|
+
Annotated[StrictFloat, Field(gt=0)],
|
572
|
+
Tuple[
|
573
|
+
Annotated[StrictFloat, Field(gt=0)],
|
574
|
+
Annotated[StrictFloat, Field(gt=0)]
|
575
|
+
]
|
576
|
+
] = None,
|
577
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
578
|
+
_content_type: Optional[StrictStr] = None,
|
579
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
580
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
581
|
+
) -> PaymentSchedulesList200Response:
|
582
|
+
"""List Schedules
|
583
|
+
|
584
|
+
Recovers all scheduled payments from a payment request
|
585
|
+
|
586
|
+
:param id: Payment request primary identifier (required)
|
587
|
+
:type id: str
|
588
|
+
:param _request_timeout: timeout setting for this request. If one
|
589
|
+
number provided, it will be total request
|
590
|
+
timeout. It can also be a pair (tuple) of
|
591
|
+
(connection, read) timeouts.
|
592
|
+
:type _request_timeout: int, tuple(int, int), optional
|
593
|
+
:param _request_auth: set to override the auth_settings for an a single
|
594
|
+
request; this effectively ignores the
|
595
|
+
authentication in the spec for a single request.
|
596
|
+
:type _request_auth: dict, optional
|
597
|
+
:param _content_type: force content-type for the request.
|
598
|
+
:type _content_type: str, Optional
|
599
|
+
:param _headers: set to override the headers for a single
|
600
|
+
request; this effectively ignores the headers
|
601
|
+
in the spec for a single request.
|
602
|
+
:type _headers: dict, optional
|
603
|
+
:param _host_index: set to override the host_index for a single
|
604
|
+
request; this effectively ignores the host_index
|
605
|
+
in the spec for a single request.
|
606
|
+
:type _host_index: int, optional
|
607
|
+
:return: Returns the result object.
|
608
|
+
""" # noqa: E501
|
609
|
+
|
610
|
+
_param = self._payment_schedules_list_serialize(
|
611
|
+
id=id,
|
612
|
+
_request_auth=_request_auth,
|
613
|
+
_content_type=_content_type,
|
614
|
+
_headers=_headers,
|
615
|
+
_host_index=_host_index
|
616
|
+
)
|
617
|
+
|
618
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
619
|
+
'200': "PaymentSchedulesList200Response",
|
620
|
+
}
|
621
|
+
response_data = self.api_client.call_api(
|
622
|
+
*_param,
|
623
|
+
_request_timeout=_request_timeout
|
624
|
+
)
|
625
|
+
response_data.read()
|
626
|
+
return self.api_client.response_deserialize(
|
627
|
+
response_data=response_data,
|
628
|
+
response_types_map=_response_types_map,
|
629
|
+
).data
|
630
|
+
|
631
|
+
|
632
|
+
@validate_call
|
633
|
+
def payment_schedules_list_with_http_info(
|
634
|
+
self,
|
635
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
636
|
+
_request_timeout: Union[
|
637
|
+
None,
|
638
|
+
Annotated[StrictFloat, Field(gt=0)],
|
639
|
+
Tuple[
|
640
|
+
Annotated[StrictFloat, Field(gt=0)],
|
641
|
+
Annotated[StrictFloat, Field(gt=0)]
|
642
|
+
]
|
643
|
+
] = None,
|
644
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
645
|
+
_content_type: Optional[StrictStr] = None,
|
646
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
647
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
648
|
+
) -> ApiResponse[PaymentSchedulesList200Response]:
|
649
|
+
"""List Schedules
|
650
|
+
|
651
|
+
Recovers all scheduled payments from a payment request
|
652
|
+
|
653
|
+
:param id: Payment request primary identifier (required)
|
654
|
+
:type id: str
|
655
|
+
:param _request_timeout: timeout setting for this request. If one
|
656
|
+
number provided, it will be total request
|
657
|
+
timeout. It can also be a pair (tuple) of
|
658
|
+
(connection, read) timeouts.
|
659
|
+
:type _request_timeout: int, tuple(int, int), optional
|
660
|
+
:param _request_auth: set to override the auth_settings for an a single
|
661
|
+
request; this effectively ignores the
|
662
|
+
authentication in the spec for a single request.
|
663
|
+
:type _request_auth: dict, optional
|
664
|
+
:param _content_type: force content-type for the request.
|
665
|
+
:type _content_type: str, Optional
|
666
|
+
:param _headers: set to override the headers for a single
|
667
|
+
request; this effectively ignores the headers
|
668
|
+
in the spec for a single request.
|
669
|
+
:type _headers: dict, optional
|
670
|
+
:param _host_index: set to override the host_index for a single
|
671
|
+
request; this effectively ignores the host_index
|
672
|
+
in the spec for a single request.
|
673
|
+
:type _host_index: int, optional
|
674
|
+
:return: Returns the result object.
|
675
|
+
""" # noqa: E501
|
676
|
+
|
677
|
+
_param = self._payment_schedules_list_serialize(
|
678
|
+
id=id,
|
679
|
+
_request_auth=_request_auth,
|
680
|
+
_content_type=_content_type,
|
681
|
+
_headers=_headers,
|
682
|
+
_host_index=_host_index
|
683
|
+
)
|
684
|
+
|
685
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
686
|
+
'200': "PaymentSchedulesList200Response",
|
687
|
+
}
|
688
|
+
response_data = self.api_client.call_api(
|
689
|
+
*_param,
|
690
|
+
_request_timeout=_request_timeout
|
691
|
+
)
|
692
|
+
response_data.read()
|
693
|
+
return self.api_client.response_deserialize(
|
694
|
+
response_data=response_data,
|
695
|
+
response_types_map=_response_types_map,
|
696
|
+
)
|
697
|
+
|
698
|
+
|
699
|
+
@validate_call
|
700
|
+
def payment_schedules_list_without_preload_content(
|
701
|
+
self,
|
702
|
+
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
703
|
+
_request_timeout: Union[
|
704
|
+
None,
|
705
|
+
Annotated[StrictFloat, Field(gt=0)],
|
706
|
+
Tuple[
|
707
|
+
Annotated[StrictFloat, Field(gt=0)],
|
708
|
+
Annotated[StrictFloat, Field(gt=0)]
|
709
|
+
]
|
710
|
+
] = None,
|
711
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
712
|
+
_content_type: Optional[StrictStr] = None,
|
713
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
714
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
715
|
+
) -> RESTResponseType:
|
716
|
+
"""List Schedules
|
717
|
+
|
718
|
+
Recovers all scheduled payments from a payment request
|
719
|
+
|
720
|
+
:param id: Payment request primary identifier (required)
|
721
|
+
:type id: str
|
722
|
+
:param _request_timeout: timeout setting for this request. If one
|
723
|
+
number provided, it will be total request
|
724
|
+
timeout. It can also be a pair (tuple) of
|
725
|
+
(connection, read) timeouts.
|
726
|
+
:type _request_timeout: int, tuple(int, int), optional
|
727
|
+
:param _request_auth: set to override the auth_settings for an a single
|
728
|
+
request; this effectively ignores the
|
729
|
+
authentication in the spec for a single request.
|
730
|
+
:type _request_auth: dict, optional
|
731
|
+
:param _content_type: force content-type for the request.
|
732
|
+
:type _content_type: str, Optional
|
733
|
+
:param _headers: set to override the headers for a single
|
734
|
+
request; this effectively ignores the headers
|
735
|
+
in the spec for a single request.
|
736
|
+
:type _headers: dict, optional
|
737
|
+
:param _host_index: set to override the host_index for a single
|
738
|
+
request; this effectively ignores the host_index
|
739
|
+
in the spec for a single request.
|
740
|
+
:type _host_index: int, optional
|
741
|
+
:return: Returns the result object.
|
742
|
+
""" # noqa: E501
|
743
|
+
|
744
|
+
_param = self._payment_schedules_list_serialize(
|
745
|
+
id=id,
|
746
|
+
_request_auth=_request_auth,
|
747
|
+
_content_type=_content_type,
|
748
|
+
_headers=_headers,
|
749
|
+
_host_index=_host_index
|
750
|
+
)
|
751
|
+
|
752
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
753
|
+
'200': "PaymentSchedulesList200Response",
|
754
|
+
}
|
755
|
+
response_data = self.api_client.call_api(
|
756
|
+
*_param,
|
757
|
+
_request_timeout=_request_timeout
|
758
|
+
)
|
759
|
+
return response_data.response
|
760
|
+
|
761
|
+
|
762
|
+
def _payment_schedules_list_serialize(
|
763
|
+
self,
|
764
|
+
id,
|
765
|
+
_request_auth,
|
766
|
+
_content_type,
|
767
|
+
_headers,
|
768
|
+
_host_index,
|
769
|
+
) -> RequestSerialized:
|
770
|
+
|
771
|
+
_host = None
|
772
|
+
|
773
|
+
_collection_formats: Dict[str, str] = {
|
774
|
+
}
|
775
|
+
|
776
|
+
_path_params: Dict[str, str] = {}
|
777
|
+
_query_params: List[Tuple[str, str]] = []
|
778
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
779
|
+
_form_params: List[Tuple[str, str]] = []
|
780
|
+
_files: Dict[
|
781
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
782
|
+
] = {}
|
783
|
+
_body_params: Optional[bytes] = None
|
784
|
+
|
785
|
+
# process the path parameters
|
786
|
+
if id is not None:
|
787
|
+
_path_params['id'] = id
|
788
|
+
# process the query parameters
|
789
|
+
# process the header parameters
|
790
|
+
# process the form parameters
|
791
|
+
# process the body parameter
|
792
|
+
|
793
|
+
|
794
|
+
# set the HTTP header `Accept`
|
795
|
+
if 'Accept' not in _header_params:
|
796
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
797
|
+
[
|
798
|
+
'application/json'
|
799
|
+
]
|
800
|
+
)
|
801
|
+
|
802
|
+
|
803
|
+
# authentication setting
|
804
|
+
_auth_settings: List[str] = [
|
805
|
+
'default'
|
806
|
+
]
|
807
|
+
|
808
|
+
return self.api_client.param_serialize(
|
809
|
+
method='GET',
|
810
|
+
resource_path='/payments/requests/{id}/schedules',
|
811
|
+
path_params=_path_params,
|
812
|
+
query_params=_query_params,
|
813
|
+
header_params=_header_params,
|
814
|
+
body=_body_params,
|
815
|
+
post_params=_form_params,
|
816
|
+
files=_files,
|
817
|
+
auth_settings=_auth_settings,
|
818
|
+
collection_formats=_collection_formats,
|
819
|
+
_host=_host,
|
820
|
+
_request_auth=_request_auth
|
821
|
+
)
|
822
|
+
|
823
|
+
|