vortex-sdk 0.2.0__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.
- vortex/__init__.py +265 -0
- vortex/api/__init__.py +24 -0
- vortex/api/billing_api.py +34608 -0
- vortex/api/catalog_api.py +708 -0
- vortex/api/checkout_api.py +372 -0
- vortex/api/credit_notes_api.py +1688 -0
- vortex/api/customer_balance_api.py +1747 -0
- vortex/api/customers_api.py +387 -0
- vortex/api/discounts_api.py +2623 -0
- vortex/api/entitlements_api.py +1646 -0
- vortex/api/hosted_api.py +2855 -0
- vortex/api/invoices_api.py +2402 -0
- vortex/api/payables_api.py +1380 -0
- vortex/api/payment_methods_api.py +2069 -0
- vortex/api/payment_requests_api.py +1877 -0
- vortex/api/payments_api.py +694 -0
- vortex/api/payments_readiness_api.py +2311 -0
- vortex/api/public_api.py +6931 -0
- vortex/api/quotes_api.py +6817 -0
- vortex/api/receipts_api.py +1111 -0
- vortex/api/subscriptions_api.py +1059 -0
- vortex/api/tax_api.py +1397 -0
- vortex/api/webhooks_api.py +4931 -0
- vortex/api_client.py +804 -0
- vortex/api_response.py +21 -0
- vortex/configuration.py +658 -0
- vortex/exceptions.py +218 -0
- vortex/models/__init__.py +104 -0
- vortex/models/api_error.py +103 -0
- vortex/models/api_error_error.py +114 -0
- vortex/models/api_write_envelope.py +101 -0
- vortex/models/apply_coupon_request.py +97 -0
- vortex/models/billing_order_form_sign_request.py +103 -0
- vortex/models/billing_order_form_signature_request_request.py +86 -0
- vortex/models/billing_order_form_void_request.py +86 -0
- vortex/models/billing_order_forms_expire_due_request.py +90 -0
- vortex/models/billing_order_update_request.py +99 -0
- vortex/models/billing_orders_execute_due_request.py +90 -0
- vortex/models/billing_quote_create_request.py +119 -0
- vortex/models/billing_quote_line_input.py +93 -0
- vortex/models/billing_quote_version_approve_request.py +87 -0
- vortex/models/billing_quote_version_create_request.py +103 -0
- vortex/models/billing_quote_version_update_request.py +102 -0
- vortex/models/billing_quote_version_void_request.py +96 -0
- vortex/models/checkout_session_line_item_request.py +91 -0
- vortex/models/coupon_targets.py +89 -0
- vortex/models/create_checkout_session_request.py +140 -0
- vortex/models/create_coupon_request.py +132 -0
- vortex/models/create_deposit_balance_payable_request.py +172 -0
- vortex/models/create_installment_payable_request.py +170 -0
- vortex/models/create_payable_request.py +158 -0
- vortex/models/create_recurring_payable_request.py +181 -0
- vortex/models/create_recurring_payable_request_cadence.py +96 -0
- vortex/models/credit_note_create_line.py +105 -0
- vortex/models/credit_note_create_request.py +112 -0
- vortex/models/credit_note_reason.py +39 -0
- vortex/models/credit_note_refund_reconcile_request.py +86 -0
- vortex/models/credit_note_refund_request.py +94 -0
- vortex/models/customer_balance_targets.py +102 -0
- vortex/models/customer_default_payment_method_request.py +88 -0
- vortex/models/customer_payment_method_archive_request.py +88 -0
- vortex/models/customer_payment_method_attach_request.py +94 -0
- vortex/models/customer_payment_method_setup_request.py +100 -0
- vortex/models/customer_upsert_request.py +96 -0
- vortex/models/expire_customer_balance_request.py +98 -0
- vortex/models/grant_customer_balance_from_payment_request.py +103 -0
- vortex/models/grant_customer_balance_request.py +106 -0
- vortex/models/grant_entitlement_request.py +106 -0
- vortex/models/invoice_collect_request.py +86 -0
- vortex/models/invoice_create_request.py +92 -0
- vortex/models/invoice_finalize_request.py +86 -0
- vortex/models/invoice_mark_uncollectible_request.py +90 -0
- vortex/models/invoice_tax.py +142 -0
- vortex/models/invoice_void_request.py +88 -0
- vortex/models/merchant_account_create_request.py +183 -0
- vortex/models/merchant_address.py +96 -0
- vortex/models/merchant_associated_identity.py +114 -0
- vortex/models/merchant_onboarding_link_request.py +95 -0
- vortex/models/merchant_profile_date.py +90 -0
- vortex/models/merchant_settlement_bank_account.py +94 -0
- vortex/models/merchant_tax_profile_request.py +125 -0
- vortex/models/merchant_tax_profile_request_registrations_inner.py +88 -0
- vortex/models/merchant_underwriting_data.py +127 -0
- vortex/models/merchant_underwriting_data_card_volume_distribution.py +90 -0
- vortex/models/merchant_underwriting_data_volume_distribution_by_business_type.py +90 -0
- vortex/models/open_api_invoice_tax_response.py +92 -0
- vortex/models/open_api_invoice_tax_response_all_of_data.py +92 -0
- vortex/models/payment_request_collect_request.py +86 -0
- vortex/models/payment_request_create_request.py +100 -0
- vortex/models/payment_request_link_create_request.py +89 -0
- vortex/models/price_create_request.py +122 -0
- vortex/models/product_create_request.py +92 -0
- vortex/models/reverse_customer_balance_request.py +98 -0
- vortex/models/revoke_entitlement_request.py +106 -0
- vortex/models/subscription_change_request.py +111 -0
- vortex/models/subscription_create_request.py +122 -0
- vortex/models/subscription_item_change_preview_request.py +100 -0
- vortex/models/subscription_item_change_request_item.py +91 -0
- vortex/models/tax_address.py +96 -0
- vortex/models/tax_behavior.py +36 -0
- vortex/models/tax_behavior_policy.py +100 -0
- vortex/models/tax_behavior_policy_request.py +89 -0
- vortex/models/tax_failure.py +104 -0
- vortex/models/tax_finalize_request.py +98 -0
- vortex/models/tax_jurisdiction_evidence.py +94 -0
- vortex/models/tax_line_evidence.py +103 -0
- vortex/models/tax_quote_request.py +98 -0
- vortex/models/terminate_applied_coupon_request.py +87 -0
- vortex/models/terminate_coupon_request.py +87 -0
- vortex/models/webhook_deliveries_dispatch_request.py +91 -0
- vortex/models/webhook_deliveries_redrive_request.py +107 -0
- vortex/models/webhook_delivery_replay_request.py +88 -0
- vortex/models/webhook_endpoint_create_request.py +91 -0
- vortex/models/webhook_endpoint_secret_rotate_request.py +87 -0
- vortex/models/webhook_endpoint_test_request.py +88 -0
- vortex/models/webhook_endpoint_update_request.py +103 -0
- vortex/models/webhook_event_resend_request.py +86 -0
- vortex/rest.py +263 -0
- vortex_sdk-0.2.0.dist-info/METADATA +34 -0
- vortex_sdk-0.2.0.dist-info/RECORD +123 -0
- vortex_sdk-0.2.0.dist-info/WHEEL +5 -0
- vortex_sdk-0.2.0.dist-info/licenses/LICENSE +21 -0
- vortex_sdk-0.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1111 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Vortex Payments API
|
|
3
|
+
|
|
4
|
+
Public Vortex Payments API for customers, subscriptions, invoices, payment requests, checkout, receipts, webhooks, tax.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2026-08
|
|
7
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
|
|
9
|
+
Do not edit the class manually.
|
|
10
|
+
""" # noqa: E501
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import warnings
|
|
14
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
+
from typing_extensions import Annotated
|
|
17
|
+
|
|
18
|
+
from pydantic import StrictStr
|
|
19
|
+
from typing import Optional
|
|
20
|
+
from vortex.models.api_write_envelope import ApiWriteEnvelope
|
|
21
|
+
|
|
22
|
+
from vortex.api_client import ApiClient, RequestSerialized
|
|
23
|
+
from vortex.api_response import ApiResponse
|
|
24
|
+
from vortex.rest import RESTResponseType
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ReceiptsApi:
|
|
28
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
|
+
Ref: https://openapi-generator.tech
|
|
30
|
+
|
|
31
|
+
Do not edit the class manually.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, api_client=None) -> None:
|
|
35
|
+
if api_client is None:
|
|
36
|
+
api_client = ApiClient.get_default()
|
|
37
|
+
self.api_client = api_client
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@validate_call
|
|
41
|
+
def get_payment_receipt(
|
|
42
|
+
self,
|
|
43
|
+
receipt_id: StrictStr,
|
|
44
|
+
environment: StrictStr,
|
|
45
|
+
merchant_account_id: StrictStr,
|
|
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
|
+
) -> ApiWriteEnvelope:
|
|
59
|
+
"""Get one payment receipt artifact
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
:param receipt_id: (required)
|
|
63
|
+
:type receipt_id: str
|
|
64
|
+
:param environment: (required)
|
|
65
|
+
:type environment: str
|
|
66
|
+
:param merchant_account_id: (required)
|
|
67
|
+
:type merchant_account_id: str
|
|
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._get_payment_receipt_serialize(
|
|
91
|
+
receipt_id=receipt_id,
|
|
92
|
+
environment=environment,
|
|
93
|
+
merchant_account_id=merchant_account_id,
|
|
94
|
+
_request_auth=_request_auth,
|
|
95
|
+
_content_type=_content_type,
|
|
96
|
+
_headers=_headers,
|
|
97
|
+
_host_index=_host_index
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
101
|
+
'200': "ApiWriteEnvelope",
|
|
102
|
+
'400': "ApiError",
|
|
103
|
+
'401': "ApiError",
|
|
104
|
+
'409': "ApiError",
|
|
105
|
+
'422': "ApiError",
|
|
106
|
+
'429': "ApiError",
|
|
107
|
+
}
|
|
108
|
+
response_data = self.api_client.call_api(
|
|
109
|
+
*_param,
|
|
110
|
+
_request_timeout=_request_timeout
|
|
111
|
+
)
|
|
112
|
+
response_data.read()
|
|
113
|
+
return self.api_client.response_deserialize(
|
|
114
|
+
response_data=response_data,
|
|
115
|
+
response_types_map=_response_types_map,
|
|
116
|
+
).data
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@validate_call
|
|
120
|
+
def get_payment_receipt_with_http_info(
|
|
121
|
+
self,
|
|
122
|
+
receipt_id: StrictStr,
|
|
123
|
+
environment: StrictStr,
|
|
124
|
+
merchant_account_id: StrictStr,
|
|
125
|
+
_request_timeout: Union[
|
|
126
|
+
None,
|
|
127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
128
|
+
Tuple[
|
|
129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
130
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
131
|
+
]
|
|
132
|
+
] = None,
|
|
133
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
134
|
+
_content_type: Optional[StrictStr] = None,
|
|
135
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
136
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
137
|
+
) -> ApiResponse[ApiWriteEnvelope]:
|
|
138
|
+
"""Get one payment receipt artifact
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:param receipt_id: (required)
|
|
142
|
+
:type receipt_id: str
|
|
143
|
+
:param environment: (required)
|
|
144
|
+
:type environment: str
|
|
145
|
+
:param merchant_account_id: (required)
|
|
146
|
+
:type merchant_account_id: str
|
|
147
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
148
|
+
number provided, it will be total request
|
|
149
|
+
timeout. It can also be a pair (tuple) of
|
|
150
|
+
(connection, read) timeouts.
|
|
151
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
152
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
153
|
+
request; this effectively ignores the
|
|
154
|
+
authentication in the spec for a single request.
|
|
155
|
+
:type _request_auth: dict, optional
|
|
156
|
+
:param _content_type: force content-type for the request.
|
|
157
|
+
:type _content_type: str, Optional
|
|
158
|
+
:param _headers: set to override the headers for a single
|
|
159
|
+
request; this effectively ignores the headers
|
|
160
|
+
in the spec for a single request.
|
|
161
|
+
:type _headers: dict, optional
|
|
162
|
+
:param _host_index: set to override the host_index for a single
|
|
163
|
+
request; this effectively ignores the host_index
|
|
164
|
+
in the spec for a single request.
|
|
165
|
+
:type _host_index: int, optional
|
|
166
|
+
:return: Returns the result object.
|
|
167
|
+
""" # noqa: E501
|
|
168
|
+
|
|
169
|
+
_param = self._get_payment_receipt_serialize(
|
|
170
|
+
receipt_id=receipt_id,
|
|
171
|
+
environment=environment,
|
|
172
|
+
merchant_account_id=merchant_account_id,
|
|
173
|
+
_request_auth=_request_auth,
|
|
174
|
+
_content_type=_content_type,
|
|
175
|
+
_headers=_headers,
|
|
176
|
+
_host_index=_host_index
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
180
|
+
'200': "ApiWriteEnvelope",
|
|
181
|
+
'400': "ApiError",
|
|
182
|
+
'401': "ApiError",
|
|
183
|
+
'409': "ApiError",
|
|
184
|
+
'422': "ApiError",
|
|
185
|
+
'429': "ApiError",
|
|
186
|
+
}
|
|
187
|
+
response_data = self.api_client.call_api(
|
|
188
|
+
*_param,
|
|
189
|
+
_request_timeout=_request_timeout
|
|
190
|
+
)
|
|
191
|
+
response_data.read()
|
|
192
|
+
return self.api_client.response_deserialize(
|
|
193
|
+
response_data=response_data,
|
|
194
|
+
response_types_map=_response_types_map,
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
@validate_call
|
|
199
|
+
def get_payment_receipt_without_preload_content(
|
|
200
|
+
self,
|
|
201
|
+
receipt_id: StrictStr,
|
|
202
|
+
environment: StrictStr,
|
|
203
|
+
merchant_account_id: StrictStr,
|
|
204
|
+
_request_timeout: Union[
|
|
205
|
+
None,
|
|
206
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
207
|
+
Tuple[
|
|
208
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
209
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
210
|
+
]
|
|
211
|
+
] = None,
|
|
212
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
213
|
+
_content_type: Optional[StrictStr] = None,
|
|
214
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
215
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
216
|
+
) -> RESTResponseType:
|
|
217
|
+
"""Get one payment receipt artifact
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
:param receipt_id: (required)
|
|
221
|
+
:type receipt_id: str
|
|
222
|
+
:param environment: (required)
|
|
223
|
+
:type environment: str
|
|
224
|
+
:param merchant_account_id: (required)
|
|
225
|
+
:type merchant_account_id: str
|
|
226
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
227
|
+
number provided, it will be total request
|
|
228
|
+
timeout. It can also be a pair (tuple) of
|
|
229
|
+
(connection, read) timeouts.
|
|
230
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
231
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
232
|
+
request; this effectively ignores the
|
|
233
|
+
authentication in the spec for a single request.
|
|
234
|
+
:type _request_auth: dict, optional
|
|
235
|
+
:param _content_type: force content-type for the request.
|
|
236
|
+
:type _content_type: str, Optional
|
|
237
|
+
:param _headers: set to override the headers for a single
|
|
238
|
+
request; this effectively ignores the headers
|
|
239
|
+
in the spec for a single request.
|
|
240
|
+
:type _headers: dict, optional
|
|
241
|
+
:param _host_index: set to override the host_index for a single
|
|
242
|
+
request; this effectively ignores the host_index
|
|
243
|
+
in the spec for a single request.
|
|
244
|
+
:type _host_index: int, optional
|
|
245
|
+
:return: Returns the result object.
|
|
246
|
+
""" # noqa: E501
|
|
247
|
+
|
|
248
|
+
_param = self._get_payment_receipt_serialize(
|
|
249
|
+
receipt_id=receipt_id,
|
|
250
|
+
environment=environment,
|
|
251
|
+
merchant_account_id=merchant_account_id,
|
|
252
|
+
_request_auth=_request_auth,
|
|
253
|
+
_content_type=_content_type,
|
|
254
|
+
_headers=_headers,
|
|
255
|
+
_host_index=_host_index
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
259
|
+
'200': "ApiWriteEnvelope",
|
|
260
|
+
'400': "ApiError",
|
|
261
|
+
'401': "ApiError",
|
|
262
|
+
'409': "ApiError",
|
|
263
|
+
'422': "ApiError",
|
|
264
|
+
'429': "ApiError",
|
|
265
|
+
}
|
|
266
|
+
response_data = self.api_client.call_api(
|
|
267
|
+
*_param,
|
|
268
|
+
_request_timeout=_request_timeout
|
|
269
|
+
)
|
|
270
|
+
return response_data.response
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
def _get_payment_receipt_serialize(
|
|
274
|
+
self,
|
|
275
|
+
receipt_id,
|
|
276
|
+
environment,
|
|
277
|
+
merchant_account_id,
|
|
278
|
+
_request_auth,
|
|
279
|
+
_content_type,
|
|
280
|
+
_headers,
|
|
281
|
+
_host_index,
|
|
282
|
+
) -> RequestSerialized:
|
|
283
|
+
|
|
284
|
+
_host = None
|
|
285
|
+
|
|
286
|
+
_collection_formats: Dict[str, str] = {
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
_path_params: Dict[str, str] = {}
|
|
290
|
+
_query_params: List[Tuple[str, str]] = []
|
|
291
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
292
|
+
_form_params: List[Tuple[str, str]] = []
|
|
293
|
+
_files: Dict[
|
|
294
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
295
|
+
] = {}
|
|
296
|
+
_body_params: Optional[bytes] = None
|
|
297
|
+
|
|
298
|
+
# process the path parameters
|
|
299
|
+
if receipt_id is not None:
|
|
300
|
+
_path_params['receiptId'] = receipt_id
|
|
301
|
+
# process the query parameters
|
|
302
|
+
if environment is not None:
|
|
303
|
+
|
|
304
|
+
_query_params.append(('environment', environment))
|
|
305
|
+
|
|
306
|
+
if merchant_account_id is not None:
|
|
307
|
+
|
|
308
|
+
_query_params.append(('merchantAccountId', merchant_account_id))
|
|
309
|
+
|
|
310
|
+
# process the header parameters
|
|
311
|
+
# process the form parameters
|
|
312
|
+
# process the body parameter
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
# set the HTTP header `Accept`
|
|
316
|
+
if 'Accept' not in _header_params:
|
|
317
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
318
|
+
[
|
|
319
|
+
'application/json'
|
|
320
|
+
]
|
|
321
|
+
)
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
# authentication setting
|
|
325
|
+
_auth_settings: List[str] = [
|
|
326
|
+
'api-key'
|
|
327
|
+
]
|
|
328
|
+
|
|
329
|
+
return self.api_client.param_serialize(
|
|
330
|
+
method='GET',
|
|
331
|
+
resource_path='/v1/payment-receipts/{receiptId}',
|
|
332
|
+
path_params=_path_params,
|
|
333
|
+
query_params=_query_params,
|
|
334
|
+
header_params=_header_params,
|
|
335
|
+
body=_body_params,
|
|
336
|
+
post_params=_form_params,
|
|
337
|
+
files=_files,
|
|
338
|
+
auth_settings=_auth_settings,
|
|
339
|
+
collection_formats=_collection_formats,
|
|
340
|
+
_host=_host,
|
|
341
|
+
_request_auth=_request_auth
|
|
342
|
+
)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
@validate_call
|
|
348
|
+
def list_invoice_receipts(
|
|
349
|
+
self,
|
|
350
|
+
invoice_id: StrictStr,
|
|
351
|
+
environment: StrictStr,
|
|
352
|
+
merchant_account_id: StrictStr,
|
|
353
|
+
_request_timeout: Union[
|
|
354
|
+
None,
|
|
355
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
356
|
+
Tuple[
|
|
357
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
358
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
359
|
+
]
|
|
360
|
+
] = None,
|
|
361
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
362
|
+
_content_type: Optional[StrictStr] = None,
|
|
363
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
364
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
365
|
+
) -> ApiWriteEnvelope:
|
|
366
|
+
"""List invoice payment receipts
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
:param invoice_id: (required)
|
|
370
|
+
:type invoice_id: str
|
|
371
|
+
:param environment: (required)
|
|
372
|
+
:type environment: str
|
|
373
|
+
:param merchant_account_id: (required)
|
|
374
|
+
:type merchant_account_id: str
|
|
375
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
376
|
+
number provided, it will be total request
|
|
377
|
+
timeout. It can also be a pair (tuple) of
|
|
378
|
+
(connection, read) timeouts.
|
|
379
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
380
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
381
|
+
request; this effectively ignores the
|
|
382
|
+
authentication in the spec for a single request.
|
|
383
|
+
:type _request_auth: dict, optional
|
|
384
|
+
:param _content_type: force content-type for the request.
|
|
385
|
+
:type _content_type: str, Optional
|
|
386
|
+
:param _headers: set to override the headers for a single
|
|
387
|
+
request; this effectively ignores the headers
|
|
388
|
+
in the spec for a single request.
|
|
389
|
+
:type _headers: dict, optional
|
|
390
|
+
:param _host_index: set to override the host_index for a single
|
|
391
|
+
request; this effectively ignores the host_index
|
|
392
|
+
in the spec for a single request.
|
|
393
|
+
:type _host_index: int, optional
|
|
394
|
+
:return: Returns the result object.
|
|
395
|
+
""" # noqa: E501
|
|
396
|
+
|
|
397
|
+
_param = self._list_invoice_receipts_serialize(
|
|
398
|
+
invoice_id=invoice_id,
|
|
399
|
+
environment=environment,
|
|
400
|
+
merchant_account_id=merchant_account_id,
|
|
401
|
+
_request_auth=_request_auth,
|
|
402
|
+
_content_type=_content_type,
|
|
403
|
+
_headers=_headers,
|
|
404
|
+
_host_index=_host_index
|
|
405
|
+
)
|
|
406
|
+
|
|
407
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
408
|
+
'200': "ApiWriteEnvelope",
|
|
409
|
+
'400': "ApiError",
|
|
410
|
+
'401': "ApiError",
|
|
411
|
+
'409': "ApiError",
|
|
412
|
+
'422': "ApiError",
|
|
413
|
+
'429': "ApiError",
|
|
414
|
+
}
|
|
415
|
+
response_data = self.api_client.call_api(
|
|
416
|
+
*_param,
|
|
417
|
+
_request_timeout=_request_timeout
|
|
418
|
+
)
|
|
419
|
+
response_data.read()
|
|
420
|
+
return self.api_client.response_deserialize(
|
|
421
|
+
response_data=response_data,
|
|
422
|
+
response_types_map=_response_types_map,
|
|
423
|
+
).data
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
@validate_call
|
|
427
|
+
def list_invoice_receipts_with_http_info(
|
|
428
|
+
self,
|
|
429
|
+
invoice_id: StrictStr,
|
|
430
|
+
environment: StrictStr,
|
|
431
|
+
merchant_account_id: StrictStr,
|
|
432
|
+
_request_timeout: Union[
|
|
433
|
+
None,
|
|
434
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
435
|
+
Tuple[
|
|
436
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
437
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
438
|
+
]
|
|
439
|
+
] = None,
|
|
440
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
441
|
+
_content_type: Optional[StrictStr] = None,
|
|
442
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
443
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
444
|
+
) -> ApiResponse[ApiWriteEnvelope]:
|
|
445
|
+
"""List invoice payment receipts
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
:param invoice_id: (required)
|
|
449
|
+
:type invoice_id: str
|
|
450
|
+
:param environment: (required)
|
|
451
|
+
:type environment: str
|
|
452
|
+
:param merchant_account_id: (required)
|
|
453
|
+
:type merchant_account_id: str
|
|
454
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
455
|
+
number provided, it will be total request
|
|
456
|
+
timeout. It can also be a pair (tuple) of
|
|
457
|
+
(connection, read) timeouts.
|
|
458
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
459
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
460
|
+
request; this effectively ignores the
|
|
461
|
+
authentication in the spec for a single request.
|
|
462
|
+
:type _request_auth: dict, optional
|
|
463
|
+
:param _content_type: force content-type for the request.
|
|
464
|
+
:type _content_type: str, Optional
|
|
465
|
+
:param _headers: set to override the headers for a single
|
|
466
|
+
request; this effectively ignores the headers
|
|
467
|
+
in the spec for a single request.
|
|
468
|
+
:type _headers: dict, optional
|
|
469
|
+
:param _host_index: set to override the host_index for a single
|
|
470
|
+
request; this effectively ignores the host_index
|
|
471
|
+
in the spec for a single request.
|
|
472
|
+
:type _host_index: int, optional
|
|
473
|
+
:return: Returns the result object.
|
|
474
|
+
""" # noqa: E501
|
|
475
|
+
|
|
476
|
+
_param = self._list_invoice_receipts_serialize(
|
|
477
|
+
invoice_id=invoice_id,
|
|
478
|
+
environment=environment,
|
|
479
|
+
merchant_account_id=merchant_account_id,
|
|
480
|
+
_request_auth=_request_auth,
|
|
481
|
+
_content_type=_content_type,
|
|
482
|
+
_headers=_headers,
|
|
483
|
+
_host_index=_host_index
|
|
484
|
+
)
|
|
485
|
+
|
|
486
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
487
|
+
'200': "ApiWriteEnvelope",
|
|
488
|
+
'400': "ApiError",
|
|
489
|
+
'401': "ApiError",
|
|
490
|
+
'409': "ApiError",
|
|
491
|
+
'422': "ApiError",
|
|
492
|
+
'429': "ApiError",
|
|
493
|
+
}
|
|
494
|
+
response_data = self.api_client.call_api(
|
|
495
|
+
*_param,
|
|
496
|
+
_request_timeout=_request_timeout
|
|
497
|
+
)
|
|
498
|
+
response_data.read()
|
|
499
|
+
return self.api_client.response_deserialize(
|
|
500
|
+
response_data=response_data,
|
|
501
|
+
response_types_map=_response_types_map,
|
|
502
|
+
)
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
@validate_call
|
|
506
|
+
def list_invoice_receipts_without_preload_content(
|
|
507
|
+
self,
|
|
508
|
+
invoice_id: StrictStr,
|
|
509
|
+
environment: StrictStr,
|
|
510
|
+
merchant_account_id: StrictStr,
|
|
511
|
+
_request_timeout: Union[
|
|
512
|
+
None,
|
|
513
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
514
|
+
Tuple[
|
|
515
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
516
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
517
|
+
]
|
|
518
|
+
] = None,
|
|
519
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
520
|
+
_content_type: Optional[StrictStr] = None,
|
|
521
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
522
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
523
|
+
) -> RESTResponseType:
|
|
524
|
+
"""List invoice payment receipts
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
:param invoice_id: (required)
|
|
528
|
+
:type invoice_id: str
|
|
529
|
+
:param environment: (required)
|
|
530
|
+
:type environment: str
|
|
531
|
+
:param merchant_account_id: (required)
|
|
532
|
+
:type merchant_account_id: str
|
|
533
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
534
|
+
number provided, it will be total request
|
|
535
|
+
timeout. It can also be a pair (tuple) of
|
|
536
|
+
(connection, read) timeouts.
|
|
537
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
538
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
539
|
+
request; this effectively ignores the
|
|
540
|
+
authentication in the spec for a single request.
|
|
541
|
+
:type _request_auth: dict, optional
|
|
542
|
+
:param _content_type: force content-type for the request.
|
|
543
|
+
:type _content_type: str, Optional
|
|
544
|
+
:param _headers: set to override the headers for a single
|
|
545
|
+
request; this effectively ignores the headers
|
|
546
|
+
in the spec for a single request.
|
|
547
|
+
:type _headers: dict, optional
|
|
548
|
+
:param _host_index: set to override the host_index for a single
|
|
549
|
+
request; this effectively ignores the host_index
|
|
550
|
+
in the spec for a single request.
|
|
551
|
+
:type _host_index: int, optional
|
|
552
|
+
:return: Returns the result object.
|
|
553
|
+
""" # noqa: E501
|
|
554
|
+
|
|
555
|
+
_param = self._list_invoice_receipts_serialize(
|
|
556
|
+
invoice_id=invoice_id,
|
|
557
|
+
environment=environment,
|
|
558
|
+
merchant_account_id=merchant_account_id,
|
|
559
|
+
_request_auth=_request_auth,
|
|
560
|
+
_content_type=_content_type,
|
|
561
|
+
_headers=_headers,
|
|
562
|
+
_host_index=_host_index
|
|
563
|
+
)
|
|
564
|
+
|
|
565
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
566
|
+
'200': "ApiWriteEnvelope",
|
|
567
|
+
'400': "ApiError",
|
|
568
|
+
'401': "ApiError",
|
|
569
|
+
'409': "ApiError",
|
|
570
|
+
'422': "ApiError",
|
|
571
|
+
'429': "ApiError",
|
|
572
|
+
}
|
|
573
|
+
response_data = self.api_client.call_api(
|
|
574
|
+
*_param,
|
|
575
|
+
_request_timeout=_request_timeout
|
|
576
|
+
)
|
|
577
|
+
return response_data.response
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
def _list_invoice_receipts_serialize(
|
|
581
|
+
self,
|
|
582
|
+
invoice_id,
|
|
583
|
+
environment,
|
|
584
|
+
merchant_account_id,
|
|
585
|
+
_request_auth,
|
|
586
|
+
_content_type,
|
|
587
|
+
_headers,
|
|
588
|
+
_host_index,
|
|
589
|
+
) -> RequestSerialized:
|
|
590
|
+
|
|
591
|
+
_host = None
|
|
592
|
+
|
|
593
|
+
_collection_formats: Dict[str, str] = {
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
_path_params: Dict[str, str] = {}
|
|
597
|
+
_query_params: List[Tuple[str, str]] = []
|
|
598
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
599
|
+
_form_params: List[Tuple[str, str]] = []
|
|
600
|
+
_files: Dict[
|
|
601
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
602
|
+
] = {}
|
|
603
|
+
_body_params: Optional[bytes] = None
|
|
604
|
+
|
|
605
|
+
# process the path parameters
|
|
606
|
+
if invoice_id is not None:
|
|
607
|
+
_path_params['invoiceId'] = invoice_id
|
|
608
|
+
# process the query parameters
|
|
609
|
+
if environment is not None:
|
|
610
|
+
|
|
611
|
+
_query_params.append(('environment', environment))
|
|
612
|
+
|
|
613
|
+
if merchant_account_id is not None:
|
|
614
|
+
|
|
615
|
+
_query_params.append(('merchantAccountId', merchant_account_id))
|
|
616
|
+
|
|
617
|
+
# process the header parameters
|
|
618
|
+
# process the form parameters
|
|
619
|
+
# process the body parameter
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
# set the HTTP header `Accept`
|
|
623
|
+
if 'Accept' not in _header_params:
|
|
624
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
625
|
+
[
|
|
626
|
+
'application/json'
|
|
627
|
+
]
|
|
628
|
+
)
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
# authentication setting
|
|
632
|
+
_auth_settings: List[str] = [
|
|
633
|
+
'api-key'
|
|
634
|
+
]
|
|
635
|
+
|
|
636
|
+
return self.api_client.param_serialize(
|
|
637
|
+
method='GET',
|
|
638
|
+
resource_path='/v1/invoices/{invoiceId}/receipts',
|
|
639
|
+
path_params=_path_params,
|
|
640
|
+
query_params=_query_params,
|
|
641
|
+
header_params=_header_params,
|
|
642
|
+
body=_body_params,
|
|
643
|
+
post_params=_form_params,
|
|
644
|
+
files=_files,
|
|
645
|
+
auth_settings=_auth_settings,
|
|
646
|
+
collection_formats=_collection_formats,
|
|
647
|
+
_host=_host,
|
|
648
|
+
_request_auth=_request_auth
|
|
649
|
+
)
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
@validate_call
|
|
655
|
+
def list_payment_receipts(
|
|
656
|
+
self,
|
|
657
|
+
environment: StrictStr,
|
|
658
|
+
merchant_account_id: StrictStr,
|
|
659
|
+
customer: Optional[StrictStr] = None,
|
|
660
|
+
customer_external_id: Optional[StrictStr] = None,
|
|
661
|
+
billing_account_id: Optional[StrictStr] = None,
|
|
662
|
+
invoice: Optional[StrictStr] = None,
|
|
663
|
+
invoice_id: Optional[StrictStr] = None,
|
|
664
|
+
payment_id: Optional[StrictStr] = None,
|
|
665
|
+
payment_intent_id: Optional[StrictStr] = None,
|
|
666
|
+
status: Optional[StrictStr] = None,
|
|
667
|
+
limit: Optional[StrictStr] = None,
|
|
668
|
+
offset: Optional[StrictStr] = None,
|
|
669
|
+
_request_timeout: Union[
|
|
670
|
+
None,
|
|
671
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
672
|
+
Tuple[
|
|
673
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
674
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
675
|
+
]
|
|
676
|
+
] = None,
|
|
677
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
678
|
+
_content_type: Optional[StrictStr] = None,
|
|
679
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
680
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
681
|
+
) -> ApiWriteEnvelope:
|
|
682
|
+
"""List payment receipts
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
:param environment: (required)
|
|
686
|
+
:type environment: str
|
|
687
|
+
:param merchant_account_id: (required)
|
|
688
|
+
:type merchant_account_id: str
|
|
689
|
+
:param customer:
|
|
690
|
+
:type customer: str
|
|
691
|
+
:param customer_external_id:
|
|
692
|
+
:type customer_external_id: str
|
|
693
|
+
:param billing_account_id:
|
|
694
|
+
:type billing_account_id: str
|
|
695
|
+
:param invoice:
|
|
696
|
+
:type invoice: str
|
|
697
|
+
:param invoice_id:
|
|
698
|
+
:type invoice_id: str
|
|
699
|
+
:param payment_id:
|
|
700
|
+
:type payment_id: str
|
|
701
|
+
:param payment_intent_id:
|
|
702
|
+
:type payment_intent_id: str
|
|
703
|
+
:param status:
|
|
704
|
+
:type status: str
|
|
705
|
+
:param limit:
|
|
706
|
+
:type limit: str
|
|
707
|
+
:param offset:
|
|
708
|
+
:type offset: str
|
|
709
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
710
|
+
number provided, it will be total request
|
|
711
|
+
timeout. It can also be a pair (tuple) of
|
|
712
|
+
(connection, read) timeouts.
|
|
713
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
714
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
715
|
+
request; this effectively ignores the
|
|
716
|
+
authentication in the spec for a single request.
|
|
717
|
+
:type _request_auth: dict, optional
|
|
718
|
+
:param _content_type: force content-type for the request.
|
|
719
|
+
:type _content_type: str, Optional
|
|
720
|
+
:param _headers: set to override the headers for a single
|
|
721
|
+
request; this effectively ignores the headers
|
|
722
|
+
in the spec for a single request.
|
|
723
|
+
:type _headers: dict, optional
|
|
724
|
+
:param _host_index: set to override the host_index for a single
|
|
725
|
+
request; this effectively ignores the host_index
|
|
726
|
+
in the spec for a single request.
|
|
727
|
+
:type _host_index: int, optional
|
|
728
|
+
:return: Returns the result object.
|
|
729
|
+
""" # noqa: E501
|
|
730
|
+
|
|
731
|
+
_param = self._list_payment_receipts_serialize(
|
|
732
|
+
environment=environment,
|
|
733
|
+
merchant_account_id=merchant_account_id,
|
|
734
|
+
customer=customer,
|
|
735
|
+
customer_external_id=customer_external_id,
|
|
736
|
+
billing_account_id=billing_account_id,
|
|
737
|
+
invoice=invoice,
|
|
738
|
+
invoice_id=invoice_id,
|
|
739
|
+
payment_id=payment_id,
|
|
740
|
+
payment_intent_id=payment_intent_id,
|
|
741
|
+
status=status,
|
|
742
|
+
limit=limit,
|
|
743
|
+
offset=offset,
|
|
744
|
+
_request_auth=_request_auth,
|
|
745
|
+
_content_type=_content_type,
|
|
746
|
+
_headers=_headers,
|
|
747
|
+
_host_index=_host_index
|
|
748
|
+
)
|
|
749
|
+
|
|
750
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
751
|
+
'200': "ApiWriteEnvelope",
|
|
752
|
+
'400': "ApiError",
|
|
753
|
+
'401': "ApiError",
|
|
754
|
+
'409': "ApiError",
|
|
755
|
+
'422': "ApiError",
|
|
756
|
+
'429': "ApiError",
|
|
757
|
+
}
|
|
758
|
+
response_data = self.api_client.call_api(
|
|
759
|
+
*_param,
|
|
760
|
+
_request_timeout=_request_timeout
|
|
761
|
+
)
|
|
762
|
+
response_data.read()
|
|
763
|
+
return self.api_client.response_deserialize(
|
|
764
|
+
response_data=response_data,
|
|
765
|
+
response_types_map=_response_types_map,
|
|
766
|
+
).data
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
@validate_call
|
|
770
|
+
def list_payment_receipts_with_http_info(
|
|
771
|
+
self,
|
|
772
|
+
environment: StrictStr,
|
|
773
|
+
merchant_account_id: StrictStr,
|
|
774
|
+
customer: Optional[StrictStr] = None,
|
|
775
|
+
customer_external_id: Optional[StrictStr] = None,
|
|
776
|
+
billing_account_id: Optional[StrictStr] = None,
|
|
777
|
+
invoice: Optional[StrictStr] = None,
|
|
778
|
+
invoice_id: Optional[StrictStr] = None,
|
|
779
|
+
payment_id: Optional[StrictStr] = None,
|
|
780
|
+
payment_intent_id: Optional[StrictStr] = None,
|
|
781
|
+
status: Optional[StrictStr] = None,
|
|
782
|
+
limit: Optional[StrictStr] = None,
|
|
783
|
+
offset: Optional[StrictStr] = None,
|
|
784
|
+
_request_timeout: Union[
|
|
785
|
+
None,
|
|
786
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
787
|
+
Tuple[
|
|
788
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
789
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
790
|
+
]
|
|
791
|
+
] = None,
|
|
792
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
793
|
+
_content_type: Optional[StrictStr] = None,
|
|
794
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
795
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
796
|
+
) -> ApiResponse[ApiWriteEnvelope]:
|
|
797
|
+
"""List payment receipts
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
:param environment: (required)
|
|
801
|
+
:type environment: str
|
|
802
|
+
:param merchant_account_id: (required)
|
|
803
|
+
:type merchant_account_id: str
|
|
804
|
+
:param customer:
|
|
805
|
+
:type customer: str
|
|
806
|
+
:param customer_external_id:
|
|
807
|
+
:type customer_external_id: str
|
|
808
|
+
:param billing_account_id:
|
|
809
|
+
:type billing_account_id: str
|
|
810
|
+
:param invoice:
|
|
811
|
+
:type invoice: str
|
|
812
|
+
:param invoice_id:
|
|
813
|
+
:type invoice_id: str
|
|
814
|
+
:param payment_id:
|
|
815
|
+
:type payment_id: str
|
|
816
|
+
:param payment_intent_id:
|
|
817
|
+
:type payment_intent_id: str
|
|
818
|
+
:param status:
|
|
819
|
+
:type status: str
|
|
820
|
+
:param limit:
|
|
821
|
+
:type limit: str
|
|
822
|
+
:param offset:
|
|
823
|
+
:type offset: str
|
|
824
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
825
|
+
number provided, it will be total request
|
|
826
|
+
timeout. It can also be a pair (tuple) of
|
|
827
|
+
(connection, read) timeouts.
|
|
828
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
829
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
830
|
+
request; this effectively ignores the
|
|
831
|
+
authentication in the spec for a single request.
|
|
832
|
+
:type _request_auth: dict, optional
|
|
833
|
+
:param _content_type: force content-type for the request.
|
|
834
|
+
:type _content_type: str, Optional
|
|
835
|
+
:param _headers: set to override the headers for a single
|
|
836
|
+
request; this effectively ignores the headers
|
|
837
|
+
in the spec for a single request.
|
|
838
|
+
:type _headers: dict, optional
|
|
839
|
+
:param _host_index: set to override the host_index for a single
|
|
840
|
+
request; this effectively ignores the host_index
|
|
841
|
+
in the spec for a single request.
|
|
842
|
+
:type _host_index: int, optional
|
|
843
|
+
:return: Returns the result object.
|
|
844
|
+
""" # noqa: E501
|
|
845
|
+
|
|
846
|
+
_param = self._list_payment_receipts_serialize(
|
|
847
|
+
environment=environment,
|
|
848
|
+
merchant_account_id=merchant_account_id,
|
|
849
|
+
customer=customer,
|
|
850
|
+
customer_external_id=customer_external_id,
|
|
851
|
+
billing_account_id=billing_account_id,
|
|
852
|
+
invoice=invoice,
|
|
853
|
+
invoice_id=invoice_id,
|
|
854
|
+
payment_id=payment_id,
|
|
855
|
+
payment_intent_id=payment_intent_id,
|
|
856
|
+
status=status,
|
|
857
|
+
limit=limit,
|
|
858
|
+
offset=offset,
|
|
859
|
+
_request_auth=_request_auth,
|
|
860
|
+
_content_type=_content_type,
|
|
861
|
+
_headers=_headers,
|
|
862
|
+
_host_index=_host_index
|
|
863
|
+
)
|
|
864
|
+
|
|
865
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
866
|
+
'200': "ApiWriteEnvelope",
|
|
867
|
+
'400': "ApiError",
|
|
868
|
+
'401': "ApiError",
|
|
869
|
+
'409': "ApiError",
|
|
870
|
+
'422': "ApiError",
|
|
871
|
+
'429': "ApiError",
|
|
872
|
+
}
|
|
873
|
+
response_data = self.api_client.call_api(
|
|
874
|
+
*_param,
|
|
875
|
+
_request_timeout=_request_timeout
|
|
876
|
+
)
|
|
877
|
+
response_data.read()
|
|
878
|
+
return self.api_client.response_deserialize(
|
|
879
|
+
response_data=response_data,
|
|
880
|
+
response_types_map=_response_types_map,
|
|
881
|
+
)
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
@validate_call
|
|
885
|
+
def list_payment_receipts_without_preload_content(
|
|
886
|
+
self,
|
|
887
|
+
environment: StrictStr,
|
|
888
|
+
merchant_account_id: StrictStr,
|
|
889
|
+
customer: Optional[StrictStr] = None,
|
|
890
|
+
customer_external_id: Optional[StrictStr] = None,
|
|
891
|
+
billing_account_id: Optional[StrictStr] = None,
|
|
892
|
+
invoice: Optional[StrictStr] = None,
|
|
893
|
+
invoice_id: Optional[StrictStr] = None,
|
|
894
|
+
payment_id: Optional[StrictStr] = None,
|
|
895
|
+
payment_intent_id: Optional[StrictStr] = None,
|
|
896
|
+
status: Optional[StrictStr] = None,
|
|
897
|
+
limit: Optional[StrictStr] = None,
|
|
898
|
+
offset: Optional[StrictStr] = None,
|
|
899
|
+
_request_timeout: Union[
|
|
900
|
+
None,
|
|
901
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
902
|
+
Tuple[
|
|
903
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
904
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
905
|
+
]
|
|
906
|
+
] = None,
|
|
907
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
908
|
+
_content_type: Optional[StrictStr] = None,
|
|
909
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
910
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
911
|
+
) -> RESTResponseType:
|
|
912
|
+
"""List payment receipts
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
:param environment: (required)
|
|
916
|
+
:type environment: str
|
|
917
|
+
:param merchant_account_id: (required)
|
|
918
|
+
:type merchant_account_id: str
|
|
919
|
+
:param customer:
|
|
920
|
+
:type customer: str
|
|
921
|
+
:param customer_external_id:
|
|
922
|
+
:type customer_external_id: str
|
|
923
|
+
:param billing_account_id:
|
|
924
|
+
:type billing_account_id: str
|
|
925
|
+
:param invoice:
|
|
926
|
+
:type invoice: str
|
|
927
|
+
:param invoice_id:
|
|
928
|
+
:type invoice_id: str
|
|
929
|
+
:param payment_id:
|
|
930
|
+
:type payment_id: str
|
|
931
|
+
:param payment_intent_id:
|
|
932
|
+
:type payment_intent_id: str
|
|
933
|
+
:param status:
|
|
934
|
+
:type status: str
|
|
935
|
+
:param limit:
|
|
936
|
+
:type limit: str
|
|
937
|
+
:param offset:
|
|
938
|
+
:type offset: str
|
|
939
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
940
|
+
number provided, it will be total request
|
|
941
|
+
timeout. It can also be a pair (tuple) of
|
|
942
|
+
(connection, read) timeouts.
|
|
943
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
944
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
945
|
+
request; this effectively ignores the
|
|
946
|
+
authentication in the spec for a single request.
|
|
947
|
+
:type _request_auth: dict, optional
|
|
948
|
+
:param _content_type: force content-type for the request.
|
|
949
|
+
:type _content_type: str, Optional
|
|
950
|
+
:param _headers: set to override the headers for a single
|
|
951
|
+
request; this effectively ignores the headers
|
|
952
|
+
in the spec for a single request.
|
|
953
|
+
:type _headers: dict, optional
|
|
954
|
+
:param _host_index: set to override the host_index for a single
|
|
955
|
+
request; this effectively ignores the host_index
|
|
956
|
+
in the spec for a single request.
|
|
957
|
+
:type _host_index: int, optional
|
|
958
|
+
:return: Returns the result object.
|
|
959
|
+
""" # noqa: E501
|
|
960
|
+
|
|
961
|
+
_param = self._list_payment_receipts_serialize(
|
|
962
|
+
environment=environment,
|
|
963
|
+
merchant_account_id=merchant_account_id,
|
|
964
|
+
customer=customer,
|
|
965
|
+
customer_external_id=customer_external_id,
|
|
966
|
+
billing_account_id=billing_account_id,
|
|
967
|
+
invoice=invoice,
|
|
968
|
+
invoice_id=invoice_id,
|
|
969
|
+
payment_id=payment_id,
|
|
970
|
+
payment_intent_id=payment_intent_id,
|
|
971
|
+
status=status,
|
|
972
|
+
limit=limit,
|
|
973
|
+
offset=offset,
|
|
974
|
+
_request_auth=_request_auth,
|
|
975
|
+
_content_type=_content_type,
|
|
976
|
+
_headers=_headers,
|
|
977
|
+
_host_index=_host_index
|
|
978
|
+
)
|
|
979
|
+
|
|
980
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
981
|
+
'200': "ApiWriteEnvelope",
|
|
982
|
+
'400': "ApiError",
|
|
983
|
+
'401': "ApiError",
|
|
984
|
+
'409': "ApiError",
|
|
985
|
+
'422': "ApiError",
|
|
986
|
+
'429': "ApiError",
|
|
987
|
+
}
|
|
988
|
+
response_data = self.api_client.call_api(
|
|
989
|
+
*_param,
|
|
990
|
+
_request_timeout=_request_timeout
|
|
991
|
+
)
|
|
992
|
+
return response_data.response
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
def _list_payment_receipts_serialize(
|
|
996
|
+
self,
|
|
997
|
+
environment,
|
|
998
|
+
merchant_account_id,
|
|
999
|
+
customer,
|
|
1000
|
+
customer_external_id,
|
|
1001
|
+
billing_account_id,
|
|
1002
|
+
invoice,
|
|
1003
|
+
invoice_id,
|
|
1004
|
+
payment_id,
|
|
1005
|
+
payment_intent_id,
|
|
1006
|
+
status,
|
|
1007
|
+
limit,
|
|
1008
|
+
offset,
|
|
1009
|
+
_request_auth,
|
|
1010
|
+
_content_type,
|
|
1011
|
+
_headers,
|
|
1012
|
+
_host_index,
|
|
1013
|
+
) -> RequestSerialized:
|
|
1014
|
+
|
|
1015
|
+
_host = None
|
|
1016
|
+
|
|
1017
|
+
_collection_formats: Dict[str, str] = {
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
_path_params: Dict[str, str] = {}
|
|
1021
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1022
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1023
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1024
|
+
_files: Dict[
|
|
1025
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1026
|
+
] = {}
|
|
1027
|
+
_body_params: Optional[bytes] = None
|
|
1028
|
+
|
|
1029
|
+
# process the path parameters
|
|
1030
|
+
# process the query parameters
|
|
1031
|
+
if environment is not None:
|
|
1032
|
+
|
|
1033
|
+
_query_params.append(('environment', environment))
|
|
1034
|
+
|
|
1035
|
+
if merchant_account_id is not None:
|
|
1036
|
+
|
|
1037
|
+
_query_params.append(('merchantAccountId', merchant_account_id))
|
|
1038
|
+
|
|
1039
|
+
if customer is not None:
|
|
1040
|
+
|
|
1041
|
+
_query_params.append(('customer', customer))
|
|
1042
|
+
|
|
1043
|
+
if customer_external_id is not None:
|
|
1044
|
+
|
|
1045
|
+
_query_params.append(('customerExternalId', customer_external_id))
|
|
1046
|
+
|
|
1047
|
+
if billing_account_id is not None:
|
|
1048
|
+
|
|
1049
|
+
_query_params.append(('billingAccountId', billing_account_id))
|
|
1050
|
+
|
|
1051
|
+
if invoice is not None:
|
|
1052
|
+
|
|
1053
|
+
_query_params.append(('invoice', invoice))
|
|
1054
|
+
|
|
1055
|
+
if invoice_id is not None:
|
|
1056
|
+
|
|
1057
|
+
_query_params.append(('invoiceId', invoice_id))
|
|
1058
|
+
|
|
1059
|
+
if payment_id is not None:
|
|
1060
|
+
|
|
1061
|
+
_query_params.append(('paymentId', payment_id))
|
|
1062
|
+
|
|
1063
|
+
if payment_intent_id is not None:
|
|
1064
|
+
|
|
1065
|
+
_query_params.append(('paymentIntentId', payment_intent_id))
|
|
1066
|
+
|
|
1067
|
+
if status is not None:
|
|
1068
|
+
|
|
1069
|
+
_query_params.append(('status', status))
|
|
1070
|
+
|
|
1071
|
+
if limit is not None:
|
|
1072
|
+
|
|
1073
|
+
_query_params.append(('limit', limit))
|
|
1074
|
+
|
|
1075
|
+
if offset is not None:
|
|
1076
|
+
|
|
1077
|
+
_query_params.append(('offset', offset))
|
|
1078
|
+
|
|
1079
|
+
# process the header parameters
|
|
1080
|
+
# process the form parameters
|
|
1081
|
+
# process the body parameter
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
# set the HTTP header `Accept`
|
|
1085
|
+
if 'Accept' not in _header_params:
|
|
1086
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1087
|
+
[
|
|
1088
|
+
'application/json'
|
|
1089
|
+
]
|
|
1090
|
+
)
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
# authentication setting
|
|
1094
|
+
_auth_settings: List[str] = [
|
|
1095
|
+
'api-key'
|
|
1096
|
+
]
|
|
1097
|
+
|
|
1098
|
+
return self.api_client.param_serialize(
|
|
1099
|
+
method='GET',
|
|
1100
|
+
resource_path='/v1/payment-receipts',
|
|
1101
|
+
path_params=_path_params,
|
|
1102
|
+
query_params=_query_params,
|
|
1103
|
+
header_params=_header_params,
|
|
1104
|
+
body=_body_params,
|
|
1105
|
+
post_params=_form_params,
|
|
1106
|
+
files=_files,
|
|
1107
|
+
auth_settings=_auth_settings,
|
|
1108
|
+
collection_formats=_collection_formats,
|
|
1109
|
+
_host=_host,
|
|
1110
|
+
_request_auth=_request_auth
|
|
1111
|
+
)
|