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