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
vortex/api/hosted_api.py
ADDED
|
@@ -0,0 +1,2855 @@
|
|
|
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 Field, StrictStr
|
|
19
|
+
from typing import Any, Dict
|
|
20
|
+
from typing_extensions import Annotated
|
|
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 HostedApi:
|
|
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 delete_customer_portal_prefix(
|
|
42
|
+
self,
|
|
43
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
44
|
+
_request_timeout: Union[
|
|
45
|
+
None,
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Tuple[
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
50
|
+
]
|
|
51
|
+
] = None,
|
|
52
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_content_type: Optional[StrictStr] = None,
|
|
54
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
56
|
+
) -> Dict[str, object]:
|
|
57
|
+
"""DELETE /customer-portal/*
|
|
58
|
+
|
|
59
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
60
|
+
|
|
61
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
62
|
+
:type tail: str
|
|
63
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
64
|
+
number provided, it will be total request
|
|
65
|
+
timeout. It can also be a pair (tuple) of
|
|
66
|
+
(connection, read) timeouts.
|
|
67
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
68
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
69
|
+
request; this effectively ignores the
|
|
70
|
+
authentication in the spec for a single request.
|
|
71
|
+
:type _request_auth: dict, optional
|
|
72
|
+
:param _content_type: force content-type for the request.
|
|
73
|
+
:type _content_type: str, Optional
|
|
74
|
+
:param _headers: set to override the headers for a single
|
|
75
|
+
request; this effectively ignores the headers
|
|
76
|
+
in the spec for a single request.
|
|
77
|
+
:type _headers: dict, optional
|
|
78
|
+
:param _host_index: set to override the host_index for a single
|
|
79
|
+
request; this effectively ignores the host_index
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _host_index: int, optional
|
|
82
|
+
:return: Returns the result object.
|
|
83
|
+
""" # noqa: E501
|
|
84
|
+
|
|
85
|
+
_param = self._delete_customer_portal_prefix_serialize(
|
|
86
|
+
tail=tail,
|
|
87
|
+
_request_auth=_request_auth,
|
|
88
|
+
_content_type=_content_type,
|
|
89
|
+
_headers=_headers,
|
|
90
|
+
_host_index=_host_index
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
+
'200': "Dict[str, object]",
|
|
95
|
+
'400': "ApiError",
|
|
96
|
+
'401': "ApiError",
|
|
97
|
+
'403': "ApiError",
|
|
98
|
+
'404': "ApiError",
|
|
99
|
+
'409': "ApiError",
|
|
100
|
+
'422': "ApiError",
|
|
101
|
+
'429': "ApiError",
|
|
102
|
+
}
|
|
103
|
+
response_data = self.api_client.call_api(
|
|
104
|
+
*_param,
|
|
105
|
+
_request_timeout=_request_timeout
|
|
106
|
+
)
|
|
107
|
+
response_data.read()
|
|
108
|
+
return self.api_client.response_deserialize(
|
|
109
|
+
response_data=response_data,
|
|
110
|
+
response_types_map=_response_types_map,
|
|
111
|
+
).data
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@validate_call
|
|
115
|
+
def delete_customer_portal_prefix_with_http_info(
|
|
116
|
+
self,
|
|
117
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
118
|
+
_request_timeout: Union[
|
|
119
|
+
None,
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
121
|
+
Tuple[
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
124
|
+
]
|
|
125
|
+
] = None,
|
|
126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
127
|
+
_content_type: Optional[StrictStr] = None,
|
|
128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
130
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
131
|
+
"""DELETE /customer-portal/*
|
|
132
|
+
|
|
133
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
134
|
+
|
|
135
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
136
|
+
:type tail: str
|
|
137
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
138
|
+
number provided, it will be total request
|
|
139
|
+
timeout. It can also be a pair (tuple) of
|
|
140
|
+
(connection, read) timeouts.
|
|
141
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
142
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
143
|
+
request; this effectively ignores the
|
|
144
|
+
authentication in the spec for a single request.
|
|
145
|
+
:type _request_auth: dict, optional
|
|
146
|
+
:param _content_type: force content-type for the request.
|
|
147
|
+
:type _content_type: str, Optional
|
|
148
|
+
:param _headers: set to override the headers for a single
|
|
149
|
+
request; this effectively ignores the headers
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _headers: dict, optional
|
|
152
|
+
:param _host_index: set to override the host_index for a single
|
|
153
|
+
request; this effectively ignores the host_index
|
|
154
|
+
in the spec for a single request.
|
|
155
|
+
:type _host_index: int, optional
|
|
156
|
+
:return: Returns the result object.
|
|
157
|
+
""" # noqa: E501
|
|
158
|
+
|
|
159
|
+
_param = self._delete_customer_portal_prefix_serialize(
|
|
160
|
+
tail=tail,
|
|
161
|
+
_request_auth=_request_auth,
|
|
162
|
+
_content_type=_content_type,
|
|
163
|
+
_headers=_headers,
|
|
164
|
+
_host_index=_host_index
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
168
|
+
'200': "Dict[str, object]",
|
|
169
|
+
'400': "ApiError",
|
|
170
|
+
'401': "ApiError",
|
|
171
|
+
'403': "ApiError",
|
|
172
|
+
'404': "ApiError",
|
|
173
|
+
'409': "ApiError",
|
|
174
|
+
'422': "ApiError",
|
|
175
|
+
'429': "ApiError",
|
|
176
|
+
}
|
|
177
|
+
response_data = self.api_client.call_api(
|
|
178
|
+
*_param,
|
|
179
|
+
_request_timeout=_request_timeout
|
|
180
|
+
)
|
|
181
|
+
response_data.read()
|
|
182
|
+
return self.api_client.response_deserialize(
|
|
183
|
+
response_data=response_data,
|
|
184
|
+
response_types_map=_response_types_map,
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
@validate_call
|
|
189
|
+
def delete_customer_portal_prefix_without_preload_content(
|
|
190
|
+
self,
|
|
191
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
192
|
+
_request_timeout: Union[
|
|
193
|
+
None,
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
195
|
+
Tuple[
|
|
196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
197
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
198
|
+
]
|
|
199
|
+
] = None,
|
|
200
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
201
|
+
_content_type: Optional[StrictStr] = None,
|
|
202
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
203
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
204
|
+
) -> RESTResponseType:
|
|
205
|
+
"""DELETE /customer-portal/*
|
|
206
|
+
|
|
207
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
208
|
+
|
|
209
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
210
|
+
:type tail: str
|
|
211
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
212
|
+
number provided, it will be total request
|
|
213
|
+
timeout. It can also be a pair (tuple) of
|
|
214
|
+
(connection, read) timeouts.
|
|
215
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
216
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
217
|
+
request; this effectively ignores the
|
|
218
|
+
authentication in the spec for a single request.
|
|
219
|
+
:type _request_auth: dict, optional
|
|
220
|
+
:param _content_type: force content-type for the request.
|
|
221
|
+
:type _content_type: str, Optional
|
|
222
|
+
:param _headers: set to override the headers for a single
|
|
223
|
+
request; this effectively ignores the headers
|
|
224
|
+
in the spec for a single request.
|
|
225
|
+
:type _headers: dict, optional
|
|
226
|
+
:param _host_index: set to override the host_index for a single
|
|
227
|
+
request; this effectively ignores the host_index
|
|
228
|
+
in the spec for a single request.
|
|
229
|
+
:type _host_index: int, optional
|
|
230
|
+
:return: Returns the result object.
|
|
231
|
+
""" # noqa: E501
|
|
232
|
+
|
|
233
|
+
_param = self._delete_customer_portal_prefix_serialize(
|
|
234
|
+
tail=tail,
|
|
235
|
+
_request_auth=_request_auth,
|
|
236
|
+
_content_type=_content_type,
|
|
237
|
+
_headers=_headers,
|
|
238
|
+
_host_index=_host_index
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
242
|
+
'200': "Dict[str, object]",
|
|
243
|
+
'400': "ApiError",
|
|
244
|
+
'401': "ApiError",
|
|
245
|
+
'403': "ApiError",
|
|
246
|
+
'404': "ApiError",
|
|
247
|
+
'409': "ApiError",
|
|
248
|
+
'422': "ApiError",
|
|
249
|
+
'429': "ApiError",
|
|
250
|
+
}
|
|
251
|
+
response_data = self.api_client.call_api(
|
|
252
|
+
*_param,
|
|
253
|
+
_request_timeout=_request_timeout
|
|
254
|
+
)
|
|
255
|
+
return response_data.response
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
def _delete_customer_portal_prefix_serialize(
|
|
259
|
+
self,
|
|
260
|
+
tail,
|
|
261
|
+
_request_auth,
|
|
262
|
+
_content_type,
|
|
263
|
+
_headers,
|
|
264
|
+
_host_index,
|
|
265
|
+
) -> RequestSerialized:
|
|
266
|
+
|
|
267
|
+
_host = None
|
|
268
|
+
|
|
269
|
+
_collection_formats: Dict[str, str] = {
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
_path_params: Dict[str, str] = {}
|
|
273
|
+
_query_params: List[Tuple[str, str]] = []
|
|
274
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
275
|
+
_form_params: List[Tuple[str, str]] = []
|
|
276
|
+
_files: Dict[
|
|
277
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
278
|
+
] = {}
|
|
279
|
+
_body_params: Optional[bytes] = None
|
|
280
|
+
|
|
281
|
+
# process the path parameters
|
|
282
|
+
if tail is not None:
|
|
283
|
+
_path_params['tail'] = tail
|
|
284
|
+
# process the query parameters
|
|
285
|
+
# process the header parameters
|
|
286
|
+
# process the form parameters
|
|
287
|
+
# process the body parameter
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
# set the HTTP header `Accept`
|
|
291
|
+
if 'Accept' not in _header_params:
|
|
292
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
293
|
+
[
|
|
294
|
+
'application/json'
|
|
295
|
+
]
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
# authentication setting
|
|
300
|
+
_auth_settings: List[str] = [
|
|
301
|
+
'checkout-token'
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
return self.api_client.param_serialize(
|
|
305
|
+
method='DELETE',
|
|
306
|
+
resource_path='/customer-portal/{tail}',
|
|
307
|
+
path_params=_path_params,
|
|
308
|
+
query_params=_query_params,
|
|
309
|
+
header_params=_header_params,
|
|
310
|
+
body=_body_params,
|
|
311
|
+
post_params=_form_params,
|
|
312
|
+
files=_files,
|
|
313
|
+
auth_settings=_auth_settings,
|
|
314
|
+
collection_formats=_collection_formats,
|
|
315
|
+
_host=_host,
|
|
316
|
+
_request_auth=_request_auth
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
@validate_call
|
|
323
|
+
def delete_invoice_prefix(
|
|
324
|
+
self,
|
|
325
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
326
|
+
_request_timeout: Union[
|
|
327
|
+
None,
|
|
328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
329
|
+
Tuple[
|
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
331
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
332
|
+
]
|
|
333
|
+
] = None,
|
|
334
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
335
|
+
_content_type: Optional[StrictStr] = None,
|
|
336
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
337
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
338
|
+
) -> Dict[str, object]:
|
|
339
|
+
"""DELETE /invoice/*
|
|
340
|
+
|
|
341
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
342
|
+
|
|
343
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
344
|
+
:type tail: str
|
|
345
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
346
|
+
number provided, it will be total request
|
|
347
|
+
timeout. It can also be a pair (tuple) of
|
|
348
|
+
(connection, read) timeouts.
|
|
349
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
350
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
351
|
+
request; this effectively ignores the
|
|
352
|
+
authentication in the spec for a single request.
|
|
353
|
+
:type _request_auth: dict, optional
|
|
354
|
+
:param _content_type: force content-type for the request.
|
|
355
|
+
:type _content_type: str, Optional
|
|
356
|
+
:param _headers: set to override the headers for a single
|
|
357
|
+
request; this effectively ignores the headers
|
|
358
|
+
in the spec for a single request.
|
|
359
|
+
:type _headers: dict, optional
|
|
360
|
+
:param _host_index: set to override the host_index for a single
|
|
361
|
+
request; this effectively ignores the host_index
|
|
362
|
+
in the spec for a single request.
|
|
363
|
+
:type _host_index: int, optional
|
|
364
|
+
:return: Returns the result object.
|
|
365
|
+
""" # noqa: E501
|
|
366
|
+
|
|
367
|
+
_param = self._delete_invoice_prefix_serialize(
|
|
368
|
+
tail=tail,
|
|
369
|
+
_request_auth=_request_auth,
|
|
370
|
+
_content_type=_content_type,
|
|
371
|
+
_headers=_headers,
|
|
372
|
+
_host_index=_host_index
|
|
373
|
+
)
|
|
374
|
+
|
|
375
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
376
|
+
'200': "Dict[str, object]",
|
|
377
|
+
'400': "ApiError",
|
|
378
|
+
'401': "ApiError",
|
|
379
|
+
'403': "ApiError",
|
|
380
|
+
'404': "ApiError",
|
|
381
|
+
'409': "ApiError",
|
|
382
|
+
'422': "ApiError",
|
|
383
|
+
'429': "ApiError",
|
|
384
|
+
}
|
|
385
|
+
response_data = self.api_client.call_api(
|
|
386
|
+
*_param,
|
|
387
|
+
_request_timeout=_request_timeout
|
|
388
|
+
)
|
|
389
|
+
response_data.read()
|
|
390
|
+
return self.api_client.response_deserialize(
|
|
391
|
+
response_data=response_data,
|
|
392
|
+
response_types_map=_response_types_map,
|
|
393
|
+
).data
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
@validate_call
|
|
397
|
+
def delete_invoice_prefix_with_http_info(
|
|
398
|
+
self,
|
|
399
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
400
|
+
_request_timeout: Union[
|
|
401
|
+
None,
|
|
402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
403
|
+
Tuple[
|
|
404
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
405
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
406
|
+
]
|
|
407
|
+
] = None,
|
|
408
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
409
|
+
_content_type: Optional[StrictStr] = None,
|
|
410
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
411
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
412
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
413
|
+
"""DELETE /invoice/*
|
|
414
|
+
|
|
415
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
416
|
+
|
|
417
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
418
|
+
:type tail: str
|
|
419
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
420
|
+
number provided, it will be total request
|
|
421
|
+
timeout. It can also be a pair (tuple) of
|
|
422
|
+
(connection, read) timeouts.
|
|
423
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
424
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
425
|
+
request; this effectively ignores the
|
|
426
|
+
authentication in the spec for a single request.
|
|
427
|
+
:type _request_auth: dict, optional
|
|
428
|
+
:param _content_type: force content-type for the request.
|
|
429
|
+
:type _content_type: str, Optional
|
|
430
|
+
:param _headers: set to override the headers for a single
|
|
431
|
+
request; this effectively ignores the headers
|
|
432
|
+
in the spec for a single request.
|
|
433
|
+
:type _headers: dict, optional
|
|
434
|
+
:param _host_index: set to override the host_index for a single
|
|
435
|
+
request; this effectively ignores the host_index
|
|
436
|
+
in the spec for a single request.
|
|
437
|
+
:type _host_index: int, optional
|
|
438
|
+
:return: Returns the result object.
|
|
439
|
+
""" # noqa: E501
|
|
440
|
+
|
|
441
|
+
_param = self._delete_invoice_prefix_serialize(
|
|
442
|
+
tail=tail,
|
|
443
|
+
_request_auth=_request_auth,
|
|
444
|
+
_content_type=_content_type,
|
|
445
|
+
_headers=_headers,
|
|
446
|
+
_host_index=_host_index
|
|
447
|
+
)
|
|
448
|
+
|
|
449
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
450
|
+
'200': "Dict[str, object]",
|
|
451
|
+
'400': "ApiError",
|
|
452
|
+
'401': "ApiError",
|
|
453
|
+
'403': "ApiError",
|
|
454
|
+
'404': "ApiError",
|
|
455
|
+
'409': "ApiError",
|
|
456
|
+
'422': "ApiError",
|
|
457
|
+
'429': "ApiError",
|
|
458
|
+
}
|
|
459
|
+
response_data = self.api_client.call_api(
|
|
460
|
+
*_param,
|
|
461
|
+
_request_timeout=_request_timeout
|
|
462
|
+
)
|
|
463
|
+
response_data.read()
|
|
464
|
+
return self.api_client.response_deserialize(
|
|
465
|
+
response_data=response_data,
|
|
466
|
+
response_types_map=_response_types_map,
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
@validate_call
|
|
471
|
+
def delete_invoice_prefix_without_preload_content(
|
|
472
|
+
self,
|
|
473
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
474
|
+
_request_timeout: Union[
|
|
475
|
+
None,
|
|
476
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
477
|
+
Tuple[
|
|
478
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
479
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
480
|
+
]
|
|
481
|
+
] = None,
|
|
482
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
483
|
+
_content_type: Optional[StrictStr] = None,
|
|
484
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
485
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
486
|
+
) -> RESTResponseType:
|
|
487
|
+
"""DELETE /invoice/*
|
|
488
|
+
|
|
489
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
490
|
+
|
|
491
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
492
|
+
:type tail: str
|
|
493
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
494
|
+
number provided, it will be total request
|
|
495
|
+
timeout. It can also be a pair (tuple) of
|
|
496
|
+
(connection, read) timeouts.
|
|
497
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
498
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
499
|
+
request; this effectively ignores the
|
|
500
|
+
authentication in the spec for a single request.
|
|
501
|
+
:type _request_auth: dict, optional
|
|
502
|
+
:param _content_type: force content-type for the request.
|
|
503
|
+
:type _content_type: str, Optional
|
|
504
|
+
:param _headers: set to override the headers for a single
|
|
505
|
+
request; this effectively ignores the headers
|
|
506
|
+
in the spec for a single request.
|
|
507
|
+
:type _headers: dict, optional
|
|
508
|
+
:param _host_index: set to override the host_index for a single
|
|
509
|
+
request; this effectively ignores the host_index
|
|
510
|
+
in the spec for a single request.
|
|
511
|
+
:type _host_index: int, optional
|
|
512
|
+
:return: Returns the result object.
|
|
513
|
+
""" # noqa: E501
|
|
514
|
+
|
|
515
|
+
_param = self._delete_invoice_prefix_serialize(
|
|
516
|
+
tail=tail,
|
|
517
|
+
_request_auth=_request_auth,
|
|
518
|
+
_content_type=_content_type,
|
|
519
|
+
_headers=_headers,
|
|
520
|
+
_host_index=_host_index
|
|
521
|
+
)
|
|
522
|
+
|
|
523
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
524
|
+
'200': "Dict[str, object]",
|
|
525
|
+
'400': "ApiError",
|
|
526
|
+
'401': "ApiError",
|
|
527
|
+
'403': "ApiError",
|
|
528
|
+
'404': "ApiError",
|
|
529
|
+
'409': "ApiError",
|
|
530
|
+
'422': "ApiError",
|
|
531
|
+
'429': "ApiError",
|
|
532
|
+
}
|
|
533
|
+
response_data = self.api_client.call_api(
|
|
534
|
+
*_param,
|
|
535
|
+
_request_timeout=_request_timeout
|
|
536
|
+
)
|
|
537
|
+
return response_data.response
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
def _delete_invoice_prefix_serialize(
|
|
541
|
+
self,
|
|
542
|
+
tail,
|
|
543
|
+
_request_auth,
|
|
544
|
+
_content_type,
|
|
545
|
+
_headers,
|
|
546
|
+
_host_index,
|
|
547
|
+
) -> RequestSerialized:
|
|
548
|
+
|
|
549
|
+
_host = None
|
|
550
|
+
|
|
551
|
+
_collection_formats: Dict[str, str] = {
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
_path_params: Dict[str, str] = {}
|
|
555
|
+
_query_params: List[Tuple[str, str]] = []
|
|
556
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
557
|
+
_form_params: List[Tuple[str, str]] = []
|
|
558
|
+
_files: Dict[
|
|
559
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
560
|
+
] = {}
|
|
561
|
+
_body_params: Optional[bytes] = None
|
|
562
|
+
|
|
563
|
+
# process the path parameters
|
|
564
|
+
if tail is not None:
|
|
565
|
+
_path_params['tail'] = tail
|
|
566
|
+
# process the query parameters
|
|
567
|
+
# process the header parameters
|
|
568
|
+
# process the form parameters
|
|
569
|
+
# process the body parameter
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
# set the HTTP header `Accept`
|
|
573
|
+
if 'Accept' not in _header_params:
|
|
574
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
575
|
+
[
|
|
576
|
+
'application/json'
|
|
577
|
+
]
|
|
578
|
+
)
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
# authentication setting
|
|
582
|
+
_auth_settings: List[str] = [
|
|
583
|
+
'checkout-token'
|
|
584
|
+
]
|
|
585
|
+
|
|
586
|
+
return self.api_client.param_serialize(
|
|
587
|
+
method='DELETE',
|
|
588
|
+
resource_path='/invoice/{tail}',
|
|
589
|
+
path_params=_path_params,
|
|
590
|
+
query_params=_query_params,
|
|
591
|
+
header_params=_header_params,
|
|
592
|
+
body=_body_params,
|
|
593
|
+
post_params=_form_params,
|
|
594
|
+
files=_files,
|
|
595
|
+
auth_settings=_auth_settings,
|
|
596
|
+
collection_formats=_collection_formats,
|
|
597
|
+
_host=_host,
|
|
598
|
+
_request_auth=_request_auth
|
|
599
|
+
)
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
@validate_call
|
|
605
|
+
def get_customer_portal_prefix(
|
|
606
|
+
self,
|
|
607
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
608
|
+
_request_timeout: Union[
|
|
609
|
+
None,
|
|
610
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
611
|
+
Tuple[
|
|
612
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
613
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
614
|
+
]
|
|
615
|
+
] = None,
|
|
616
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
617
|
+
_content_type: Optional[StrictStr] = None,
|
|
618
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
619
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
620
|
+
) -> Dict[str, object]:
|
|
621
|
+
"""GET /customer-portal/*
|
|
622
|
+
|
|
623
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
624
|
+
|
|
625
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
626
|
+
:type tail: str
|
|
627
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
628
|
+
number provided, it will be total request
|
|
629
|
+
timeout. It can also be a pair (tuple) of
|
|
630
|
+
(connection, read) timeouts.
|
|
631
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
632
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
633
|
+
request; this effectively ignores the
|
|
634
|
+
authentication in the spec for a single request.
|
|
635
|
+
:type _request_auth: dict, optional
|
|
636
|
+
:param _content_type: force content-type for the request.
|
|
637
|
+
:type _content_type: str, Optional
|
|
638
|
+
:param _headers: set to override the headers for a single
|
|
639
|
+
request; this effectively ignores the headers
|
|
640
|
+
in the spec for a single request.
|
|
641
|
+
:type _headers: dict, optional
|
|
642
|
+
:param _host_index: set to override the host_index for a single
|
|
643
|
+
request; this effectively ignores the host_index
|
|
644
|
+
in the spec for a single request.
|
|
645
|
+
:type _host_index: int, optional
|
|
646
|
+
:return: Returns the result object.
|
|
647
|
+
""" # noqa: E501
|
|
648
|
+
|
|
649
|
+
_param = self._get_customer_portal_prefix_serialize(
|
|
650
|
+
tail=tail,
|
|
651
|
+
_request_auth=_request_auth,
|
|
652
|
+
_content_type=_content_type,
|
|
653
|
+
_headers=_headers,
|
|
654
|
+
_host_index=_host_index
|
|
655
|
+
)
|
|
656
|
+
|
|
657
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
658
|
+
'200': "Dict[str, object]",
|
|
659
|
+
'400': "ApiError",
|
|
660
|
+
'401': "ApiError",
|
|
661
|
+
'403': "ApiError",
|
|
662
|
+
'404': "ApiError",
|
|
663
|
+
'409': "ApiError",
|
|
664
|
+
'422': "ApiError",
|
|
665
|
+
'429': "ApiError",
|
|
666
|
+
}
|
|
667
|
+
response_data = self.api_client.call_api(
|
|
668
|
+
*_param,
|
|
669
|
+
_request_timeout=_request_timeout
|
|
670
|
+
)
|
|
671
|
+
response_data.read()
|
|
672
|
+
return self.api_client.response_deserialize(
|
|
673
|
+
response_data=response_data,
|
|
674
|
+
response_types_map=_response_types_map,
|
|
675
|
+
).data
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
@validate_call
|
|
679
|
+
def get_customer_portal_prefix_with_http_info(
|
|
680
|
+
self,
|
|
681
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
682
|
+
_request_timeout: Union[
|
|
683
|
+
None,
|
|
684
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
685
|
+
Tuple[
|
|
686
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
687
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
688
|
+
]
|
|
689
|
+
] = None,
|
|
690
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
691
|
+
_content_type: Optional[StrictStr] = None,
|
|
692
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
693
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
694
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
695
|
+
"""GET /customer-portal/*
|
|
696
|
+
|
|
697
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
698
|
+
|
|
699
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
700
|
+
:type tail: str
|
|
701
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
702
|
+
number provided, it will be total request
|
|
703
|
+
timeout. It can also be a pair (tuple) of
|
|
704
|
+
(connection, read) timeouts.
|
|
705
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
706
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
707
|
+
request; this effectively ignores the
|
|
708
|
+
authentication in the spec for a single request.
|
|
709
|
+
:type _request_auth: dict, optional
|
|
710
|
+
:param _content_type: force content-type for the request.
|
|
711
|
+
:type _content_type: str, Optional
|
|
712
|
+
:param _headers: set to override the headers for a single
|
|
713
|
+
request; this effectively ignores the headers
|
|
714
|
+
in the spec for a single request.
|
|
715
|
+
:type _headers: dict, optional
|
|
716
|
+
:param _host_index: set to override the host_index for a single
|
|
717
|
+
request; this effectively ignores the host_index
|
|
718
|
+
in the spec for a single request.
|
|
719
|
+
:type _host_index: int, optional
|
|
720
|
+
:return: Returns the result object.
|
|
721
|
+
""" # noqa: E501
|
|
722
|
+
|
|
723
|
+
_param = self._get_customer_portal_prefix_serialize(
|
|
724
|
+
tail=tail,
|
|
725
|
+
_request_auth=_request_auth,
|
|
726
|
+
_content_type=_content_type,
|
|
727
|
+
_headers=_headers,
|
|
728
|
+
_host_index=_host_index
|
|
729
|
+
)
|
|
730
|
+
|
|
731
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
732
|
+
'200': "Dict[str, object]",
|
|
733
|
+
'400': "ApiError",
|
|
734
|
+
'401': "ApiError",
|
|
735
|
+
'403': "ApiError",
|
|
736
|
+
'404': "ApiError",
|
|
737
|
+
'409': "ApiError",
|
|
738
|
+
'422': "ApiError",
|
|
739
|
+
'429': "ApiError",
|
|
740
|
+
}
|
|
741
|
+
response_data = self.api_client.call_api(
|
|
742
|
+
*_param,
|
|
743
|
+
_request_timeout=_request_timeout
|
|
744
|
+
)
|
|
745
|
+
response_data.read()
|
|
746
|
+
return self.api_client.response_deserialize(
|
|
747
|
+
response_data=response_data,
|
|
748
|
+
response_types_map=_response_types_map,
|
|
749
|
+
)
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
@validate_call
|
|
753
|
+
def get_customer_portal_prefix_without_preload_content(
|
|
754
|
+
self,
|
|
755
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
756
|
+
_request_timeout: Union[
|
|
757
|
+
None,
|
|
758
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
759
|
+
Tuple[
|
|
760
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
761
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
762
|
+
]
|
|
763
|
+
] = None,
|
|
764
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
765
|
+
_content_type: Optional[StrictStr] = None,
|
|
766
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
767
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
768
|
+
) -> RESTResponseType:
|
|
769
|
+
"""GET /customer-portal/*
|
|
770
|
+
|
|
771
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
772
|
+
|
|
773
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
774
|
+
:type tail: str
|
|
775
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
776
|
+
number provided, it will be total request
|
|
777
|
+
timeout. It can also be a pair (tuple) of
|
|
778
|
+
(connection, read) timeouts.
|
|
779
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
780
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
781
|
+
request; this effectively ignores the
|
|
782
|
+
authentication in the spec for a single request.
|
|
783
|
+
:type _request_auth: dict, optional
|
|
784
|
+
:param _content_type: force content-type for the request.
|
|
785
|
+
:type _content_type: str, Optional
|
|
786
|
+
:param _headers: set to override the headers for a single
|
|
787
|
+
request; this effectively ignores the headers
|
|
788
|
+
in the spec for a single request.
|
|
789
|
+
:type _headers: dict, optional
|
|
790
|
+
:param _host_index: set to override the host_index for a single
|
|
791
|
+
request; this effectively ignores the host_index
|
|
792
|
+
in the spec for a single request.
|
|
793
|
+
:type _host_index: int, optional
|
|
794
|
+
:return: Returns the result object.
|
|
795
|
+
""" # noqa: E501
|
|
796
|
+
|
|
797
|
+
_param = self._get_customer_portal_prefix_serialize(
|
|
798
|
+
tail=tail,
|
|
799
|
+
_request_auth=_request_auth,
|
|
800
|
+
_content_type=_content_type,
|
|
801
|
+
_headers=_headers,
|
|
802
|
+
_host_index=_host_index
|
|
803
|
+
)
|
|
804
|
+
|
|
805
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
806
|
+
'200': "Dict[str, object]",
|
|
807
|
+
'400': "ApiError",
|
|
808
|
+
'401': "ApiError",
|
|
809
|
+
'403': "ApiError",
|
|
810
|
+
'404': "ApiError",
|
|
811
|
+
'409': "ApiError",
|
|
812
|
+
'422': "ApiError",
|
|
813
|
+
'429': "ApiError",
|
|
814
|
+
}
|
|
815
|
+
response_data = self.api_client.call_api(
|
|
816
|
+
*_param,
|
|
817
|
+
_request_timeout=_request_timeout
|
|
818
|
+
)
|
|
819
|
+
return response_data.response
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
def _get_customer_portal_prefix_serialize(
|
|
823
|
+
self,
|
|
824
|
+
tail,
|
|
825
|
+
_request_auth,
|
|
826
|
+
_content_type,
|
|
827
|
+
_headers,
|
|
828
|
+
_host_index,
|
|
829
|
+
) -> RequestSerialized:
|
|
830
|
+
|
|
831
|
+
_host = None
|
|
832
|
+
|
|
833
|
+
_collection_formats: Dict[str, str] = {
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
_path_params: Dict[str, str] = {}
|
|
837
|
+
_query_params: List[Tuple[str, str]] = []
|
|
838
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
839
|
+
_form_params: List[Tuple[str, str]] = []
|
|
840
|
+
_files: Dict[
|
|
841
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
842
|
+
] = {}
|
|
843
|
+
_body_params: Optional[bytes] = None
|
|
844
|
+
|
|
845
|
+
# process the path parameters
|
|
846
|
+
if tail is not None:
|
|
847
|
+
_path_params['tail'] = tail
|
|
848
|
+
# process the query parameters
|
|
849
|
+
# process the header parameters
|
|
850
|
+
# process the form parameters
|
|
851
|
+
# process the body parameter
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
# set the HTTP header `Accept`
|
|
855
|
+
if 'Accept' not in _header_params:
|
|
856
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
857
|
+
[
|
|
858
|
+
'application/json'
|
|
859
|
+
]
|
|
860
|
+
)
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
# authentication setting
|
|
864
|
+
_auth_settings: List[str] = [
|
|
865
|
+
'checkout-token'
|
|
866
|
+
]
|
|
867
|
+
|
|
868
|
+
return self.api_client.param_serialize(
|
|
869
|
+
method='GET',
|
|
870
|
+
resource_path='/customer-portal/{tail}',
|
|
871
|
+
path_params=_path_params,
|
|
872
|
+
query_params=_query_params,
|
|
873
|
+
header_params=_header_params,
|
|
874
|
+
body=_body_params,
|
|
875
|
+
post_params=_form_params,
|
|
876
|
+
files=_files,
|
|
877
|
+
auth_settings=_auth_settings,
|
|
878
|
+
collection_formats=_collection_formats,
|
|
879
|
+
_host=_host,
|
|
880
|
+
_request_auth=_request_auth
|
|
881
|
+
)
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
@validate_call
|
|
887
|
+
def get_invoice_prefix(
|
|
888
|
+
self,
|
|
889
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
890
|
+
_request_timeout: Union[
|
|
891
|
+
None,
|
|
892
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
893
|
+
Tuple[
|
|
894
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
895
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
896
|
+
]
|
|
897
|
+
] = None,
|
|
898
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
899
|
+
_content_type: Optional[StrictStr] = None,
|
|
900
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
901
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
902
|
+
) -> Dict[str, object]:
|
|
903
|
+
"""GET /invoice/*
|
|
904
|
+
|
|
905
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
906
|
+
|
|
907
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
908
|
+
:type tail: str
|
|
909
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
910
|
+
number provided, it will be total request
|
|
911
|
+
timeout. It can also be a pair (tuple) of
|
|
912
|
+
(connection, read) timeouts.
|
|
913
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
914
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
915
|
+
request; this effectively ignores the
|
|
916
|
+
authentication in the spec for a single request.
|
|
917
|
+
:type _request_auth: dict, optional
|
|
918
|
+
:param _content_type: force content-type for the request.
|
|
919
|
+
:type _content_type: str, Optional
|
|
920
|
+
:param _headers: set to override the headers for a single
|
|
921
|
+
request; this effectively ignores the headers
|
|
922
|
+
in the spec for a single request.
|
|
923
|
+
:type _headers: dict, optional
|
|
924
|
+
:param _host_index: set to override the host_index for a single
|
|
925
|
+
request; this effectively ignores the host_index
|
|
926
|
+
in the spec for a single request.
|
|
927
|
+
:type _host_index: int, optional
|
|
928
|
+
:return: Returns the result object.
|
|
929
|
+
""" # noqa: E501
|
|
930
|
+
|
|
931
|
+
_param = self._get_invoice_prefix_serialize(
|
|
932
|
+
tail=tail,
|
|
933
|
+
_request_auth=_request_auth,
|
|
934
|
+
_content_type=_content_type,
|
|
935
|
+
_headers=_headers,
|
|
936
|
+
_host_index=_host_index
|
|
937
|
+
)
|
|
938
|
+
|
|
939
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
940
|
+
'200': "Dict[str, object]",
|
|
941
|
+
'400': "ApiError",
|
|
942
|
+
'401': "ApiError",
|
|
943
|
+
'403': "ApiError",
|
|
944
|
+
'404': "ApiError",
|
|
945
|
+
'409': "ApiError",
|
|
946
|
+
'422': "ApiError",
|
|
947
|
+
'429': "ApiError",
|
|
948
|
+
}
|
|
949
|
+
response_data = self.api_client.call_api(
|
|
950
|
+
*_param,
|
|
951
|
+
_request_timeout=_request_timeout
|
|
952
|
+
)
|
|
953
|
+
response_data.read()
|
|
954
|
+
return self.api_client.response_deserialize(
|
|
955
|
+
response_data=response_data,
|
|
956
|
+
response_types_map=_response_types_map,
|
|
957
|
+
).data
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
@validate_call
|
|
961
|
+
def get_invoice_prefix_with_http_info(
|
|
962
|
+
self,
|
|
963
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
964
|
+
_request_timeout: Union[
|
|
965
|
+
None,
|
|
966
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
967
|
+
Tuple[
|
|
968
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
969
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
970
|
+
]
|
|
971
|
+
] = None,
|
|
972
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
973
|
+
_content_type: Optional[StrictStr] = None,
|
|
974
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
975
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
976
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
977
|
+
"""GET /invoice/*
|
|
978
|
+
|
|
979
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
980
|
+
|
|
981
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
982
|
+
:type tail: str
|
|
983
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
984
|
+
number provided, it will be total request
|
|
985
|
+
timeout. It can also be a pair (tuple) of
|
|
986
|
+
(connection, read) timeouts.
|
|
987
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
988
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
989
|
+
request; this effectively ignores the
|
|
990
|
+
authentication in the spec for a single request.
|
|
991
|
+
:type _request_auth: dict, optional
|
|
992
|
+
:param _content_type: force content-type for the request.
|
|
993
|
+
:type _content_type: str, Optional
|
|
994
|
+
:param _headers: set to override the headers for a single
|
|
995
|
+
request; this effectively ignores the headers
|
|
996
|
+
in the spec for a single request.
|
|
997
|
+
:type _headers: dict, optional
|
|
998
|
+
:param _host_index: set to override the host_index for a single
|
|
999
|
+
request; this effectively ignores the host_index
|
|
1000
|
+
in the spec for a single request.
|
|
1001
|
+
:type _host_index: int, optional
|
|
1002
|
+
:return: Returns the result object.
|
|
1003
|
+
""" # noqa: E501
|
|
1004
|
+
|
|
1005
|
+
_param = self._get_invoice_prefix_serialize(
|
|
1006
|
+
tail=tail,
|
|
1007
|
+
_request_auth=_request_auth,
|
|
1008
|
+
_content_type=_content_type,
|
|
1009
|
+
_headers=_headers,
|
|
1010
|
+
_host_index=_host_index
|
|
1011
|
+
)
|
|
1012
|
+
|
|
1013
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1014
|
+
'200': "Dict[str, object]",
|
|
1015
|
+
'400': "ApiError",
|
|
1016
|
+
'401': "ApiError",
|
|
1017
|
+
'403': "ApiError",
|
|
1018
|
+
'404': "ApiError",
|
|
1019
|
+
'409': "ApiError",
|
|
1020
|
+
'422': "ApiError",
|
|
1021
|
+
'429': "ApiError",
|
|
1022
|
+
}
|
|
1023
|
+
response_data = self.api_client.call_api(
|
|
1024
|
+
*_param,
|
|
1025
|
+
_request_timeout=_request_timeout
|
|
1026
|
+
)
|
|
1027
|
+
response_data.read()
|
|
1028
|
+
return self.api_client.response_deserialize(
|
|
1029
|
+
response_data=response_data,
|
|
1030
|
+
response_types_map=_response_types_map,
|
|
1031
|
+
)
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
@validate_call
|
|
1035
|
+
def get_invoice_prefix_without_preload_content(
|
|
1036
|
+
self,
|
|
1037
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1038
|
+
_request_timeout: Union[
|
|
1039
|
+
None,
|
|
1040
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1041
|
+
Tuple[
|
|
1042
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1043
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1044
|
+
]
|
|
1045
|
+
] = None,
|
|
1046
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1047
|
+
_content_type: Optional[StrictStr] = None,
|
|
1048
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1049
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1050
|
+
) -> RESTResponseType:
|
|
1051
|
+
"""GET /invoice/*
|
|
1052
|
+
|
|
1053
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1054
|
+
|
|
1055
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1056
|
+
:type tail: str
|
|
1057
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1058
|
+
number provided, it will be total request
|
|
1059
|
+
timeout. It can also be a pair (tuple) of
|
|
1060
|
+
(connection, read) timeouts.
|
|
1061
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1062
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1063
|
+
request; this effectively ignores the
|
|
1064
|
+
authentication in the spec for a single request.
|
|
1065
|
+
:type _request_auth: dict, optional
|
|
1066
|
+
:param _content_type: force content-type for the request.
|
|
1067
|
+
:type _content_type: str, Optional
|
|
1068
|
+
:param _headers: set to override the headers for a single
|
|
1069
|
+
request; this effectively ignores the headers
|
|
1070
|
+
in the spec for a single request.
|
|
1071
|
+
:type _headers: dict, optional
|
|
1072
|
+
:param _host_index: set to override the host_index for a single
|
|
1073
|
+
request; this effectively ignores the host_index
|
|
1074
|
+
in the spec for a single request.
|
|
1075
|
+
:type _host_index: int, optional
|
|
1076
|
+
:return: Returns the result object.
|
|
1077
|
+
""" # noqa: E501
|
|
1078
|
+
|
|
1079
|
+
_param = self._get_invoice_prefix_serialize(
|
|
1080
|
+
tail=tail,
|
|
1081
|
+
_request_auth=_request_auth,
|
|
1082
|
+
_content_type=_content_type,
|
|
1083
|
+
_headers=_headers,
|
|
1084
|
+
_host_index=_host_index
|
|
1085
|
+
)
|
|
1086
|
+
|
|
1087
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1088
|
+
'200': "Dict[str, object]",
|
|
1089
|
+
'400': "ApiError",
|
|
1090
|
+
'401': "ApiError",
|
|
1091
|
+
'403': "ApiError",
|
|
1092
|
+
'404': "ApiError",
|
|
1093
|
+
'409': "ApiError",
|
|
1094
|
+
'422': "ApiError",
|
|
1095
|
+
'429': "ApiError",
|
|
1096
|
+
}
|
|
1097
|
+
response_data = self.api_client.call_api(
|
|
1098
|
+
*_param,
|
|
1099
|
+
_request_timeout=_request_timeout
|
|
1100
|
+
)
|
|
1101
|
+
return response_data.response
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
def _get_invoice_prefix_serialize(
|
|
1105
|
+
self,
|
|
1106
|
+
tail,
|
|
1107
|
+
_request_auth,
|
|
1108
|
+
_content_type,
|
|
1109
|
+
_headers,
|
|
1110
|
+
_host_index,
|
|
1111
|
+
) -> RequestSerialized:
|
|
1112
|
+
|
|
1113
|
+
_host = None
|
|
1114
|
+
|
|
1115
|
+
_collection_formats: Dict[str, str] = {
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
_path_params: Dict[str, str] = {}
|
|
1119
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1120
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1121
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1122
|
+
_files: Dict[
|
|
1123
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1124
|
+
] = {}
|
|
1125
|
+
_body_params: Optional[bytes] = None
|
|
1126
|
+
|
|
1127
|
+
# process the path parameters
|
|
1128
|
+
if tail is not None:
|
|
1129
|
+
_path_params['tail'] = tail
|
|
1130
|
+
# process the query parameters
|
|
1131
|
+
# process the header parameters
|
|
1132
|
+
# process the form parameters
|
|
1133
|
+
# process the body parameter
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
# set the HTTP header `Accept`
|
|
1137
|
+
if 'Accept' not in _header_params:
|
|
1138
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1139
|
+
[
|
|
1140
|
+
'application/json'
|
|
1141
|
+
]
|
|
1142
|
+
)
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
# authentication setting
|
|
1146
|
+
_auth_settings: List[str] = [
|
|
1147
|
+
'checkout-token'
|
|
1148
|
+
]
|
|
1149
|
+
|
|
1150
|
+
return self.api_client.param_serialize(
|
|
1151
|
+
method='GET',
|
|
1152
|
+
resource_path='/invoice/{tail}',
|
|
1153
|
+
path_params=_path_params,
|
|
1154
|
+
query_params=_query_params,
|
|
1155
|
+
header_params=_header_params,
|
|
1156
|
+
body=_body_params,
|
|
1157
|
+
post_params=_form_params,
|
|
1158
|
+
files=_files,
|
|
1159
|
+
auth_settings=_auth_settings,
|
|
1160
|
+
collection_formats=_collection_formats,
|
|
1161
|
+
_host=_host,
|
|
1162
|
+
_request_auth=_request_auth
|
|
1163
|
+
)
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
@validate_call
|
|
1169
|
+
def patch_customer_portal_prefix(
|
|
1170
|
+
self,
|
|
1171
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1172
|
+
_request_timeout: Union[
|
|
1173
|
+
None,
|
|
1174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1175
|
+
Tuple[
|
|
1176
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1177
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1178
|
+
]
|
|
1179
|
+
] = None,
|
|
1180
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1181
|
+
_content_type: Optional[StrictStr] = None,
|
|
1182
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1183
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1184
|
+
) -> Dict[str, object]:
|
|
1185
|
+
"""PATCH /customer-portal/*
|
|
1186
|
+
|
|
1187
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1188
|
+
|
|
1189
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1190
|
+
:type tail: str
|
|
1191
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1192
|
+
number provided, it will be total request
|
|
1193
|
+
timeout. It can also be a pair (tuple) of
|
|
1194
|
+
(connection, read) timeouts.
|
|
1195
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1196
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1197
|
+
request; this effectively ignores the
|
|
1198
|
+
authentication in the spec for a single request.
|
|
1199
|
+
:type _request_auth: dict, optional
|
|
1200
|
+
:param _content_type: force content-type for the request.
|
|
1201
|
+
:type _content_type: str, Optional
|
|
1202
|
+
:param _headers: set to override the headers for a single
|
|
1203
|
+
request; this effectively ignores the headers
|
|
1204
|
+
in the spec for a single request.
|
|
1205
|
+
:type _headers: dict, optional
|
|
1206
|
+
:param _host_index: set to override the host_index for a single
|
|
1207
|
+
request; this effectively ignores the host_index
|
|
1208
|
+
in the spec for a single request.
|
|
1209
|
+
:type _host_index: int, optional
|
|
1210
|
+
:return: Returns the result object.
|
|
1211
|
+
""" # noqa: E501
|
|
1212
|
+
|
|
1213
|
+
_param = self._patch_customer_portal_prefix_serialize(
|
|
1214
|
+
tail=tail,
|
|
1215
|
+
_request_auth=_request_auth,
|
|
1216
|
+
_content_type=_content_type,
|
|
1217
|
+
_headers=_headers,
|
|
1218
|
+
_host_index=_host_index
|
|
1219
|
+
)
|
|
1220
|
+
|
|
1221
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1222
|
+
'200': "Dict[str, object]",
|
|
1223
|
+
'400': "ApiError",
|
|
1224
|
+
'401': "ApiError",
|
|
1225
|
+
'403': "ApiError",
|
|
1226
|
+
'404': "ApiError",
|
|
1227
|
+
'409': "ApiError",
|
|
1228
|
+
'422': "ApiError",
|
|
1229
|
+
'429': "ApiError",
|
|
1230
|
+
}
|
|
1231
|
+
response_data = self.api_client.call_api(
|
|
1232
|
+
*_param,
|
|
1233
|
+
_request_timeout=_request_timeout
|
|
1234
|
+
)
|
|
1235
|
+
response_data.read()
|
|
1236
|
+
return self.api_client.response_deserialize(
|
|
1237
|
+
response_data=response_data,
|
|
1238
|
+
response_types_map=_response_types_map,
|
|
1239
|
+
).data
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
@validate_call
|
|
1243
|
+
def patch_customer_portal_prefix_with_http_info(
|
|
1244
|
+
self,
|
|
1245
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1246
|
+
_request_timeout: Union[
|
|
1247
|
+
None,
|
|
1248
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1249
|
+
Tuple[
|
|
1250
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1251
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1252
|
+
]
|
|
1253
|
+
] = None,
|
|
1254
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1255
|
+
_content_type: Optional[StrictStr] = None,
|
|
1256
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1257
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1258
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
1259
|
+
"""PATCH /customer-portal/*
|
|
1260
|
+
|
|
1261
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1262
|
+
|
|
1263
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1264
|
+
:type tail: str
|
|
1265
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1266
|
+
number provided, it will be total request
|
|
1267
|
+
timeout. It can also be a pair (tuple) of
|
|
1268
|
+
(connection, read) timeouts.
|
|
1269
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1270
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1271
|
+
request; this effectively ignores the
|
|
1272
|
+
authentication in the spec for a single request.
|
|
1273
|
+
:type _request_auth: dict, optional
|
|
1274
|
+
:param _content_type: force content-type for the request.
|
|
1275
|
+
:type _content_type: str, Optional
|
|
1276
|
+
:param _headers: set to override the headers for a single
|
|
1277
|
+
request; this effectively ignores the headers
|
|
1278
|
+
in the spec for a single request.
|
|
1279
|
+
:type _headers: dict, optional
|
|
1280
|
+
:param _host_index: set to override the host_index for a single
|
|
1281
|
+
request; this effectively ignores the host_index
|
|
1282
|
+
in the spec for a single request.
|
|
1283
|
+
:type _host_index: int, optional
|
|
1284
|
+
:return: Returns the result object.
|
|
1285
|
+
""" # noqa: E501
|
|
1286
|
+
|
|
1287
|
+
_param = self._patch_customer_portal_prefix_serialize(
|
|
1288
|
+
tail=tail,
|
|
1289
|
+
_request_auth=_request_auth,
|
|
1290
|
+
_content_type=_content_type,
|
|
1291
|
+
_headers=_headers,
|
|
1292
|
+
_host_index=_host_index
|
|
1293
|
+
)
|
|
1294
|
+
|
|
1295
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1296
|
+
'200': "Dict[str, object]",
|
|
1297
|
+
'400': "ApiError",
|
|
1298
|
+
'401': "ApiError",
|
|
1299
|
+
'403': "ApiError",
|
|
1300
|
+
'404': "ApiError",
|
|
1301
|
+
'409': "ApiError",
|
|
1302
|
+
'422': "ApiError",
|
|
1303
|
+
'429': "ApiError",
|
|
1304
|
+
}
|
|
1305
|
+
response_data = self.api_client.call_api(
|
|
1306
|
+
*_param,
|
|
1307
|
+
_request_timeout=_request_timeout
|
|
1308
|
+
)
|
|
1309
|
+
response_data.read()
|
|
1310
|
+
return self.api_client.response_deserialize(
|
|
1311
|
+
response_data=response_data,
|
|
1312
|
+
response_types_map=_response_types_map,
|
|
1313
|
+
)
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
@validate_call
|
|
1317
|
+
def patch_customer_portal_prefix_without_preload_content(
|
|
1318
|
+
self,
|
|
1319
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1320
|
+
_request_timeout: Union[
|
|
1321
|
+
None,
|
|
1322
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1323
|
+
Tuple[
|
|
1324
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1325
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1326
|
+
]
|
|
1327
|
+
] = None,
|
|
1328
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1329
|
+
_content_type: Optional[StrictStr] = None,
|
|
1330
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1331
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1332
|
+
) -> RESTResponseType:
|
|
1333
|
+
"""PATCH /customer-portal/*
|
|
1334
|
+
|
|
1335
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1336
|
+
|
|
1337
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1338
|
+
:type tail: str
|
|
1339
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1340
|
+
number provided, it will be total request
|
|
1341
|
+
timeout. It can also be a pair (tuple) of
|
|
1342
|
+
(connection, read) timeouts.
|
|
1343
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1344
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1345
|
+
request; this effectively ignores the
|
|
1346
|
+
authentication in the spec for a single request.
|
|
1347
|
+
:type _request_auth: dict, optional
|
|
1348
|
+
:param _content_type: force content-type for the request.
|
|
1349
|
+
:type _content_type: str, Optional
|
|
1350
|
+
:param _headers: set to override the headers for a single
|
|
1351
|
+
request; this effectively ignores the headers
|
|
1352
|
+
in the spec for a single request.
|
|
1353
|
+
:type _headers: dict, optional
|
|
1354
|
+
:param _host_index: set to override the host_index for a single
|
|
1355
|
+
request; this effectively ignores the host_index
|
|
1356
|
+
in the spec for a single request.
|
|
1357
|
+
:type _host_index: int, optional
|
|
1358
|
+
:return: Returns the result object.
|
|
1359
|
+
""" # noqa: E501
|
|
1360
|
+
|
|
1361
|
+
_param = self._patch_customer_portal_prefix_serialize(
|
|
1362
|
+
tail=tail,
|
|
1363
|
+
_request_auth=_request_auth,
|
|
1364
|
+
_content_type=_content_type,
|
|
1365
|
+
_headers=_headers,
|
|
1366
|
+
_host_index=_host_index
|
|
1367
|
+
)
|
|
1368
|
+
|
|
1369
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1370
|
+
'200': "Dict[str, object]",
|
|
1371
|
+
'400': "ApiError",
|
|
1372
|
+
'401': "ApiError",
|
|
1373
|
+
'403': "ApiError",
|
|
1374
|
+
'404': "ApiError",
|
|
1375
|
+
'409': "ApiError",
|
|
1376
|
+
'422': "ApiError",
|
|
1377
|
+
'429': "ApiError",
|
|
1378
|
+
}
|
|
1379
|
+
response_data = self.api_client.call_api(
|
|
1380
|
+
*_param,
|
|
1381
|
+
_request_timeout=_request_timeout
|
|
1382
|
+
)
|
|
1383
|
+
return response_data.response
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
def _patch_customer_portal_prefix_serialize(
|
|
1387
|
+
self,
|
|
1388
|
+
tail,
|
|
1389
|
+
_request_auth,
|
|
1390
|
+
_content_type,
|
|
1391
|
+
_headers,
|
|
1392
|
+
_host_index,
|
|
1393
|
+
) -> RequestSerialized:
|
|
1394
|
+
|
|
1395
|
+
_host = None
|
|
1396
|
+
|
|
1397
|
+
_collection_formats: Dict[str, str] = {
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
_path_params: Dict[str, str] = {}
|
|
1401
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1402
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1403
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1404
|
+
_files: Dict[
|
|
1405
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1406
|
+
] = {}
|
|
1407
|
+
_body_params: Optional[bytes] = None
|
|
1408
|
+
|
|
1409
|
+
# process the path parameters
|
|
1410
|
+
if tail is not None:
|
|
1411
|
+
_path_params['tail'] = tail
|
|
1412
|
+
# process the query parameters
|
|
1413
|
+
# process the header parameters
|
|
1414
|
+
# process the form parameters
|
|
1415
|
+
# process the body parameter
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
# set the HTTP header `Accept`
|
|
1419
|
+
if 'Accept' not in _header_params:
|
|
1420
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1421
|
+
[
|
|
1422
|
+
'application/json'
|
|
1423
|
+
]
|
|
1424
|
+
)
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
# authentication setting
|
|
1428
|
+
_auth_settings: List[str] = [
|
|
1429
|
+
'checkout-token'
|
|
1430
|
+
]
|
|
1431
|
+
|
|
1432
|
+
return self.api_client.param_serialize(
|
|
1433
|
+
method='PATCH',
|
|
1434
|
+
resource_path='/customer-portal/{tail}',
|
|
1435
|
+
path_params=_path_params,
|
|
1436
|
+
query_params=_query_params,
|
|
1437
|
+
header_params=_header_params,
|
|
1438
|
+
body=_body_params,
|
|
1439
|
+
post_params=_form_params,
|
|
1440
|
+
files=_files,
|
|
1441
|
+
auth_settings=_auth_settings,
|
|
1442
|
+
collection_formats=_collection_formats,
|
|
1443
|
+
_host=_host,
|
|
1444
|
+
_request_auth=_request_auth
|
|
1445
|
+
)
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
@validate_call
|
|
1451
|
+
def patch_invoice_prefix(
|
|
1452
|
+
self,
|
|
1453
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1454
|
+
_request_timeout: Union[
|
|
1455
|
+
None,
|
|
1456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1457
|
+
Tuple[
|
|
1458
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1459
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1460
|
+
]
|
|
1461
|
+
] = None,
|
|
1462
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1463
|
+
_content_type: Optional[StrictStr] = None,
|
|
1464
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1465
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1466
|
+
) -> Dict[str, object]:
|
|
1467
|
+
"""PATCH /invoice/*
|
|
1468
|
+
|
|
1469
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1470
|
+
|
|
1471
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1472
|
+
:type tail: str
|
|
1473
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1474
|
+
number provided, it will be total request
|
|
1475
|
+
timeout. It can also be a pair (tuple) of
|
|
1476
|
+
(connection, read) timeouts.
|
|
1477
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1478
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1479
|
+
request; this effectively ignores the
|
|
1480
|
+
authentication in the spec for a single request.
|
|
1481
|
+
:type _request_auth: dict, optional
|
|
1482
|
+
:param _content_type: force content-type for the request.
|
|
1483
|
+
:type _content_type: str, Optional
|
|
1484
|
+
:param _headers: set to override the headers for a single
|
|
1485
|
+
request; this effectively ignores the headers
|
|
1486
|
+
in the spec for a single request.
|
|
1487
|
+
:type _headers: dict, optional
|
|
1488
|
+
:param _host_index: set to override the host_index for a single
|
|
1489
|
+
request; this effectively ignores the host_index
|
|
1490
|
+
in the spec for a single request.
|
|
1491
|
+
:type _host_index: int, optional
|
|
1492
|
+
:return: Returns the result object.
|
|
1493
|
+
""" # noqa: E501
|
|
1494
|
+
|
|
1495
|
+
_param = self._patch_invoice_prefix_serialize(
|
|
1496
|
+
tail=tail,
|
|
1497
|
+
_request_auth=_request_auth,
|
|
1498
|
+
_content_type=_content_type,
|
|
1499
|
+
_headers=_headers,
|
|
1500
|
+
_host_index=_host_index
|
|
1501
|
+
)
|
|
1502
|
+
|
|
1503
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1504
|
+
'200': "Dict[str, object]",
|
|
1505
|
+
'400': "ApiError",
|
|
1506
|
+
'401': "ApiError",
|
|
1507
|
+
'403': "ApiError",
|
|
1508
|
+
'404': "ApiError",
|
|
1509
|
+
'409': "ApiError",
|
|
1510
|
+
'422': "ApiError",
|
|
1511
|
+
'429': "ApiError",
|
|
1512
|
+
}
|
|
1513
|
+
response_data = self.api_client.call_api(
|
|
1514
|
+
*_param,
|
|
1515
|
+
_request_timeout=_request_timeout
|
|
1516
|
+
)
|
|
1517
|
+
response_data.read()
|
|
1518
|
+
return self.api_client.response_deserialize(
|
|
1519
|
+
response_data=response_data,
|
|
1520
|
+
response_types_map=_response_types_map,
|
|
1521
|
+
).data
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
@validate_call
|
|
1525
|
+
def patch_invoice_prefix_with_http_info(
|
|
1526
|
+
self,
|
|
1527
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1528
|
+
_request_timeout: Union[
|
|
1529
|
+
None,
|
|
1530
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1531
|
+
Tuple[
|
|
1532
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1533
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1534
|
+
]
|
|
1535
|
+
] = None,
|
|
1536
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1537
|
+
_content_type: Optional[StrictStr] = None,
|
|
1538
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1539
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1540
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
1541
|
+
"""PATCH /invoice/*
|
|
1542
|
+
|
|
1543
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1544
|
+
|
|
1545
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1546
|
+
:type tail: str
|
|
1547
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1548
|
+
number provided, it will be total request
|
|
1549
|
+
timeout. It can also be a pair (tuple) of
|
|
1550
|
+
(connection, read) timeouts.
|
|
1551
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1552
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1553
|
+
request; this effectively ignores the
|
|
1554
|
+
authentication in the spec for a single request.
|
|
1555
|
+
:type _request_auth: dict, optional
|
|
1556
|
+
:param _content_type: force content-type for the request.
|
|
1557
|
+
:type _content_type: str, Optional
|
|
1558
|
+
:param _headers: set to override the headers for a single
|
|
1559
|
+
request; this effectively ignores the headers
|
|
1560
|
+
in the spec for a single request.
|
|
1561
|
+
:type _headers: dict, optional
|
|
1562
|
+
:param _host_index: set to override the host_index for a single
|
|
1563
|
+
request; this effectively ignores the host_index
|
|
1564
|
+
in the spec for a single request.
|
|
1565
|
+
:type _host_index: int, optional
|
|
1566
|
+
:return: Returns the result object.
|
|
1567
|
+
""" # noqa: E501
|
|
1568
|
+
|
|
1569
|
+
_param = self._patch_invoice_prefix_serialize(
|
|
1570
|
+
tail=tail,
|
|
1571
|
+
_request_auth=_request_auth,
|
|
1572
|
+
_content_type=_content_type,
|
|
1573
|
+
_headers=_headers,
|
|
1574
|
+
_host_index=_host_index
|
|
1575
|
+
)
|
|
1576
|
+
|
|
1577
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1578
|
+
'200': "Dict[str, object]",
|
|
1579
|
+
'400': "ApiError",
|
|
1580
|
+
'401': "ApiError",
|
|
1581
|
+
'403': "ApiError",
|
|
1582
|
+
'404': "ApiError",
|
|
1583
|
+
'409': "ApiError",
|
|
1584
|
+
'422': "ApiError",
|
|
1585
|
+
'429': "ApiError",
|
|
1586
|
+
}
|
|
1587
|
+
response_data = self.api_client.call_api(
|
|
1588
|
+
*_param,
|
|
1589
|
+
_request_timeout=_request_timeout
|
|
1590
|
+
)
|
|
1591
|
+
response_data.read()
|
|
1592
|
+
return self.api_client.response_deserialize(
|
|
1593
|
+
response_data=response_data,
|
|
1594
|
+
response_types_map=_response_types_map,
|
|
1595
|
+
)
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
@validate_call
|
|
1599
|
+
def patch_invoice_prefix_without_preload_content(
|
|
1600
|
+
self,
|
|
1601
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1602
|
+
_request_timeout: Union[
|
|
1603
|
+
None,
|
|
1604
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1605
|
+
Tuple[
|
|
1606
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1607
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1608
|
+
]
|
|
1609
|
+
] = None,
|
|
1610
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1611
|
+
_content_type: Optional[StrictStr] = None,
|
|
1612
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1613
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1614
|
+
) -> RESTResponseType:
|
|
1615
|
+
"""PATCH /invoice/*
|
|
1616
|
+
|
|
1617
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1618
|
+
|
|
1619
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1620
|
+
:type tail: str
|
|
1621
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1622
|
+
number provided, it will be total request
|
|
1623
|
+
timeout. It can also be a pair (tuple) of
|
|
1624
|
+
(connection, read) timeouts.
|
|
1625
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1626
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1627
|
+
request; this effectively ignores the
|
|
1628
|
+
authentication in the spec for a single request.
|
|
1629
|
+
:type _request_auth: dict, optional
|
|
1630
|
+
:param _content_type: force content-type for the request.
|
|
1631
|
+
:type _content_type: str, Optional
|
|
1632
|
+
:param _headers: set to override the headers for a single
|
|
1633
|
+
request; this effectively ignores the headers
|
|
1634
|
+
in the spec for a single request.
|
|
1635
|
+
:type _headers: dict, optional
|
|
1636
|
+
:param _host_index: set to override the host_index for a single
|
|
1637
|
+
request; this effectively ignores the host_index
|
|
1638
|
+
in the spec for a single request.
|
|
1639
|
+
:type _host_index: int, optional
|
|
1640
|
+
:return: Returns the result object.
|
|
1641
|
+
""" # noqa: E501
|
|
1642
|
+
|
|
1643
|
+
_param = self._patch_invoice_prefix_serialize(
|
|
1644
|
+
tail=tail,
|
|
1645
|
+
_request_auth=_request_auth,
|
|
1646
|
+
_content_type=_content_type,
|
|
1647
|
+
_headers=_headers,
|
|
1648
|
+
_host_index=_host_index
|
|
1649
|
+
)
|
|
1650
|
+
|
|
1651
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1652
|
+
'200': "Dict[str, object]",
|
|
1653
|
+
'400': "ApiError",
|
|
1654
|
+
'401': "ApiError",
|
|
1655
|
+
'403': "ApiError",
|
|
1656
|
+
'404': "ApiError",
|
|
1657
|
+
'409': "ApiError",
|
|
1658
|
+
'422': "ApiError",
|
|
1659
|
+
'429': "ApiError",
|
|
1660
|
+
}
|
|
1661
|
+
response_data = self.api_client.call_api(
|
|
1662
|
+
*_param,
|
|
1663
|
+
_request_timeout=_request_timeout
|
|
1664
|
+
)
|
|
1665
|
+
return response_data.response
|
|
1666
|
+
|
|
1667
|
+
|
|
1668
|
+
def _patch_invoice_prefix_serialize(
|
|
1669
|
+
self,
|
|
1670
|
+
tail,
|
|
1671
|
+
_request_auth,
|
|
1672
|
+
_content_type,
|
|
1673
|
+
_headers,
|
|
1674
|
+
_host_index,
|
|
1675
|
+
) -> RequestSerialized:
|
|
1676
|
+
|
|
1677
|
+
_host = None
|
|
1678
|
+
|
|
1679
|
+
_collection_formats: Dict[str, str] = {
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
_path_params: Dict[str, str] = {}
|
|
1683
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1684
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1685
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1686
|
+
_files: Dict[
|
|
1687
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1688
|
+
] = {}
|
|
1689
|
+
_body_params: Optional[bytes] = None
|
|
1690
|
+
|
|
1691
|
+
# process the path parameters
|
|
1692
|
+
if tail is not None:
|
|
1693
|
+
_path_params['tail'] = tail
|
|
1694
|
+
# process the query parameters
|
|
1695
|
+
# process the header parameters
|
|
1696
|
+
# process the form parameters
|
|
1697
|
+
# process the body parameter
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
# set the HTTP header `Accept`
|
|
1701
|
+
if 'Accept' not in _header_params:
|
|
1702
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1703
|
+
[
|
|
1704
|
+
'application/json'
|
|
1705
|
+
]
|
|
1706
|
+
)
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
# authentication setting
|
|
1710
|
+
_auth_settings: List[str] = [
|
|
1711
|
+
'checkout-token'
|
|
1712
|
+
]
|
|
1713
|
+
|
|
1714
|
+
return self.api_client.param_serialize(
|
|
1715
|
+
method='PATCH',
|
|
1716
|
+
resource_path='/invoice/{tail}',
|
|
1717
|
+
path_params=_path_params,
|
|
1718
|
+
query_params=_query_params,
|
|
1719
|
+
header_params=_header_params,
|
|
1720
|
+
body=_body_params,
|
|
1721
|
+
post_params=_form_params,
|
|
1722
|
+
files=_files,
|
|
1723
|
+
auth_settings=_auth_settings,
|
|
1724
|
+
collection_formats=_collection_formats,
|
|
1725
|
+
_host=_host,
|
|
1726
|
+
_request_auth=_request_auth
|
|
1727
|
+
)
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
@validate_call
|
|
1733
|
+
def post_customer_portal_prefix(
|
|
1734
|
+
self,
|
|
1735
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1736
|
+
_request_timeout: Union[
|
|
1737
|
+
None,
|
|
1738
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1739
|
+
Tuple[
|
|
1740
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1741
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1742
|
+
]
|
|
1743
|
+
] = None,
|
|
1744
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1745
|
+
_content_type: Optional[StrictStr] = None,
|
|
1746
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1747
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1748
|
+
) -> Dict[str, object]:
|
|
1749
|
+
"""POST /customer-portal/*
|
|
1750
|
+
|
|
1751
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1752
|
+
|
|
1753
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1754
|
+
:type tail: str
|
|
1755
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1756
|
+
number provided, it will be total request
|
|
1757
|
+
timeout. It can also be a pair (tuple) of
|
|
1758
|
+
(connection, read) timeouts.
|
|
1759
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1760
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1761
|
+
request; this effectively ignores the
|
|
1762
|
+
authentication in the spec for a single request.
|
|
1763
|
+
:type _request_auth: dict, optional
|
|
1764
|
+
:param _content_type: force content-type for the request.
|
|
1765
|
+
:type _content_type: str, Optional
|
|
1766
|
+
:param _headers: set to override the headers for a single
|
|
1767
|
+
request; this effectively ignores the headers
|
|
1768
|
+
in the spec for a single request.
|
|
1769
|
+
:type _headers: dict, optional
|
|
1770
|
+
:param _host_index: set to override the host_index for a single
|
|
1771
|
+
request; this effectively ignores the host_index
|
|
1772
|
+
in the spec for a single request.
|
|
1773
|
+
:type _host_index: int, optional
|
|
1774
|
+
:return: Returns the result object.
|
|
1775
|
+
""" # noqa: E501
|
|
1776
|
+
|
|
1777
|
+
_param = self._post_customer_portal_prefix_serialize(
|
|
1778
|
+
tail=tail,
|
|
1779
|
+
_request_auth=_request_auth,
|
|
1780
|
+
_content_type=_content_type,
|
|
1781
|
+
_headers=_headers,
|
|
1782
|
+
_host_index=_host_index
|
|
1783
|
+
)
|
|
1784
|
+
|
|
1785
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1786
|
+
'200': "Dict[str, object]",
|
|
1787
|
+
'400': "ApiError",
|
|
1788
|
+
'401': "ApiError",
|
|
1789
|
+
'403': "ApiError",
|
|
1790
|
+
'404': "ApiError",
|
|
1791
|
+
'409': "ApiError",
|
|
1792
|
+
'422': "ApiError",
|
|
1793
|
+
'429': "ApiError",
|
|
1794
|
+
}
|
|
1795
|
+
response_data = self.api_client.call_api(
|
|
1796
|
+
*_param,
|
|
1797
|
+
_request_timeout=_request_timeout
|
|
1798
|
+
)
|
|
1799
|
+
response_data.read()
|
|
1800
|
+
return self.api_client.response_deserialize(
|
|
1801
|
+
response_data=response_data,
|
|
1802
|
+
response_types_map=_response_types_map,
|
|
1803
|
+
).data
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
@validate_call
|
|
1807
|
+
def post_customer_portal_prefix_with_http_info(
|
|
1808
|
+
self,
|
|
1809
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1810
|
+
_request_timeout: Union[
|
|
1811
|
+
None,
|
|
1812
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1813
|
+
Tuple[
|
|
1814
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1815
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1816
|
+
]
|
|
1817
|
+
] = None,
|
|
1818
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1819
|
+
_content_type: Optional[StrictStr] = None,
|
|
1820
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1821
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1822
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
1823
|
+
"""POST /customer-portal/*
|
|
1824
|
+
|
|
1825
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1826
|
+
|
|
1827
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1828
|
+
:type tail: str
|
|
1829
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1830
|
+
number provided, it will be total request
|
|
1831
|
+
timeout. It can also be a pair (tuple) of
|
|
1832
|
+
(connection, read) timeouts.
|
|
1833
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1834
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1835
|
+
request; this effectively ignores the
|
|
1836
|
+
authentication in the spec for a single request.
|
|
1837
|
+
:type _request_auth: dict, optional
|
|
1838
|
+
:param _content_type: force content-type for the request.
|
|
1839
|
+
:type _content_type: str, Optional
|
|
1840
|
+
:param _headers: set to override the headers for a single
|
|
1841
|
+
request; this effectively ignores the headers
|
|
1842
|
+
in the spec for a single request.
|
|
1843
|
+
:type _headers: dict, optional
|
|
1844
|
+
:param _host_index: set to override the host_index for a single
|
|
1845
|
+
request; this effectively ignores the host_index
|
|
1846
|
+
in the spec for a single request.
|
|
1847
|
+
:type _host_index: int, optional
|
|
1848
|
+
:return: Returns the result object.
|
|
1849
|
+
""" # noqa: E501
|
|
1850
|
+
|
|
1851
|
+
_param = self._post_customer_portal_prefix_serialize(
|
|
1852
|
+
tail=tail,
|
|
1853
|
+
_request_auth=_request_auth,
|
|
1854
|
+
_content_type=_content_type,
|
|
1855
|
+
_headers=_headers,
|
|
1856
|
+
_host_index=_host_index
|
|
1857
|
+
)
|
|
1858
|
+
|
|
1859
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1860
|
+
'200': "Dict[str, object]",
|
|
1861
|
+
'400': "ApiError",
|
|
1862
|
+
'401': "ApiError",
|
|
1863
|
+
'403': "ApiError",
|
|
1864
|
+
'404': "ApiError",
|
|
1865
|
+
'409': "ApiError",
|
|
1866
|
+
'422': "ApiError",
|
|
1867
|
+
'429': "ApiError",
|
|
1868
|
+
}
|
|
1869
|
+
response_data = self.api_client.call_api(
|
|
1870
|
+
*_param,
|
|
1871
|
+
_request_timeout=_request_timeout
|
|
1872
|
+
)
|
|
1873
|
+
response_data.read()
|
|
1874
|
+
return self.api_client.response_deserialize(
|
|
1875
|
+
response_data=response_data,
|
|
1876
|
+
response_types_map=_response_types_map,
|
|
1877
|
+
)
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
@validate_call
|
|
1881
|
+
def post_customer_portal_prefix_without_preload_content(
|
|
1882
|
+
self,
|
|
1883
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
1884
|
+
_request_timeout: Union[
|
|
1885
|
+
None,
|
|
1886
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1887
|
+
Tuple[
|
|
1888
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1889
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1890
|
+
]
|
|
1891
|
+
] = None,
|
|
1892
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1893
|
+
_content_type: Optional[StrictStr] = None,
|
|
1894
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1895
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1896
|
+
) -> RESTResponseType:
|
|
1897
|
+
"""POST /customer-portal/*
|
|
1898
|
+
|
|
1899
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
1900
|
+
|
|
1901
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
1902
|
+
:type tail: str
|
|
1903
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1904
|
+
number provided, it will be total request
|
|
1905
|
+
timeout. It can also be a pair (tuple) of
|
|
1906
|
+
(connection, read) timeouts.
|
|
1907
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1908
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1909
|
+
request; this effectively ignores the
|
|
1910
|
+
authentication in the spec for a single request.
|
|
1911
|
+
:type _request_auth: dict, optional
|
|
1912
|
+
:param _content_type: force content-type for the request.
|
|
1913
|
+
:type _content_type: str, Optional
|
|
1914
|
+
:param _headers: set to override the headers for a single
|
|
1915
|
+
request; this effectively ignores the headers
|
|
1916
|
+
in the spec for a single request.
|
|
1917
|
+
:type _headers: dict, optional
|
|
1918
|
+
:param _host_index: set to override the host_index for a single
|
|
1919
|
+
request; this effectively ignores the host_index
|
|
1920
|
+
in the spec for a single request.
|
|
1921
|
+
:type _host_index: int, optional
|
|
1922
|
+
:return: Returns the result object.
|
|
1923
|
+
""" # noqa: E501
|
|
1924
|
+
|
|
1925
|
+
_param = self._post_customer_portal_prefix_serialize(
|
|
1926
|
+
tail=tail,
|
|
1927
|
+
_request_auth=_request_auth,
|
|
1928
|
+
_content_type=_content_type,
|
|
1929
|
+
_headers=_headers,
|
|
1930
|
+
_host_index=_host_index
|
|
1931
|
+
)
|
|
1932
|
+
|
|
1933
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1934
|
+
'200': "Dict[str, object]",
|
|
1935
|
+
'400': "ApiError",
|
|
1936
|
+
'401': "ApiError",
|
|
1937
|
+
'403': "ApiError",
|
|
1938
|
+
'404': "ApiError",
|
|
1939
|
+
'409': "ApiError",
|
|
1940
|
+
'422': "ApiError",
|
|
1941
|
+
'429': "ApiError",
|
|
1942
|
+
}
|
|
1943
|
+
response_data = self.api_client.call_api(
|
|
1944
|
+
*_param,
|
|
1945
|
+
_request_timeout=_request_timeout
|
|
1946
|
+
)
|
|
1947
|
+
return response_data.response
|
|
1948
|
+
|
|
1949
|
+
|
|
1950
|
+
def _post_customer_portal_prefix_serialize(
|
|
1951
|
+
self,
|
|
1952
|
+
tail,
|
|
1953
|
+
_request_auth,
|
|
1954
|
+
_content_type,
|
|
1955
|
+
_headers,
|
|
1956
|
+
_host_index,
|
|
1957
|
+
) -> RequestSerialized:
|
|
1958
|
+
|
|
1959
|
+
_host = None
|
|
1960
|
+
|
|
1961
|
+
_collection_formats: Dict[str, str] = {
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
_path_params: Dict[str, str] = {}
|
|
1965
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1966
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1967
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1968
|
+
_files: Dict[
|
|
1969
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1970
|
+
] = {}
|
|
1971
|
+
_body_params: Optional[bytes] = None
|
|
1972
|
+
|
|
1973
|
+
# process the path parameters
|
|
1974
|
+
if tail is not None:
|
|
1975
|
+
_path_params['tail'] = tail
|
|
1976
|
+
# process the query parameters
|
|
1977
|
+
# process the header parameters
|
|
1978
|
+
# process the form parameters
|
|
1979
|
+
# process the body parameter
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
# set the HTTP header `Accept`
|
|
1983
|
+
if 'Accept' not in _header_params:
|
|
1984
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1985
|
+
[
|
|
1986
|
+
'application/json'
|
|
1987
|
+
]
|
|
1988
|
+
)
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
# authentication setting
|
|
1992
|
+
_auth_settings: List[str] = [
|
|
1993
|
+
'checkout-token'
|
|
1994
|
+
]
|
|
1995
|
+
|
|
1996
|
+
return self.api_client.param_serialize(
|
|
1997
|
+
method='POST',
|
|
1998
|
+
resource_path='/customer-portal/{tail}',
|
|
1999
|
+
path_params=_path_params,
|
|
2000
|
+
query_params=_query_params,
|
|
2001
|
+
header_params=_header_params,
|
|
2002
|
+
body=_body_params,
|
|
2003
|
+
post_params=_form_params,
|
|
2004
|
+
files=_files,
|
|
2005
|
+
auth_settings=_auth_settings,
|
|
2006
|
+
collection_formats=_collection_formats,
|
|
2007
|
+
_host=_host,
|
|
2008
|
+
_request_auth=_request_auth
|
|
2009
|
+
)
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
@validate_call
|
|
2015
|
+
def post_invoice_prefix(
|
|
2016
|
+
self,
|
|
2017
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
2018
|
+
_request_timeout: Union[
|
|
2019
|
+
None,
|
|
2020
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2021
|
+
Tuple[
|
|
2022
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2023
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2024
|
+
]
|
|
2025
|
+
] = None,
|
|
2026
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2027
|
+
_content_type: Optional[StrictStr] = None,
|
|
2028
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2029
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2030
|
+
) -> Dict[str, object]:
|
|
2031
|
+
"""POST /invoice/*
|
|
2032
|
+
|
|
2033
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
2034
|
+
|
|
2035
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
2036
|
+
:type tail: str
|
|
2037
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2038
|
+
number provided, it will be total request
|
|
2039
|
+
timeout. It can also be a pair (tuple) of
|
|
2040
|
+
(connection, read) timeouts.
|
|
2041
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2042
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2043
|
+
request; this effectively ignores the
|
|
2044
|
+
authentication in the spec for a single request.
|
|
2045
|
+
:type _request_auth: dict, optional
|
|
2046
|
+
:param _content_type: force content-type for the request.
|
|
2047
|
+
:type _content_type: str, Optional
|
|
2048
|
+
:param _headers: set to override the headers for a single
|
|
2049
|
+
request; this effectively ignores the headers
|
|
2050
|
+
in the spec for a single request.
|
|
2051
|
+
:type _headers: dict, optional
|
|
2052
|
+
:param _host_index: set to override the host_index for a single
|
|
2053
|
+
request; this effectively ignores the host_index
|
|
2054
|
+
in the spec for a single request.
|
|
2055
|
+
:type _host_index: int, optional
|
|
2056
|
+
:return: Returns the result object.
|
|
2057
|
+
""" # noqa: E501
|
|
2058
|
+
|
|
2059
|
+
_param = self._post_invoice_prefix_serialize(
|
|
2060
|
+
tail=tail,
|
|
2061
|
+
_request_auth=_request_auth,
|
|
2062
|
+
_content_type=_content_type,
|
|
2063
|
+
_headers=_headers,
|
|
2064
|
+
_host_index=_host_index
|
|
2065
|
+
)
|
|
2066
|
+
|
|
2067
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2068
|
+
'200': "Dict[str, object]",
|
|
2069
|
+
'400': "ApiError",
|
|
2070
|
+
'401': "ApiError",
|
|
2071
|
+
'403': "ApiError",
|
|
2072
|
+
'404': "ApiError",
|
|
2073
|
+
'409': "ApiError",
|
|
2074
|
+
'422': "ApiError",
|
|
2075
|
+
'429': "ApiError",
|
|
2076
|
+
}
|
|
2077
|
+
response_data = self.api_client.call_api(
|
|
2078
|
+
*_param,
|
|
2079
|
+
_request_timeout=_request_timeout
|
|
2080
|
+
)
|
|
2081
|
+
response_data.read()
|
|
2082
|
+
return self.api_client.response_deserialize(
|
|
2083
|
+
response_data=response_data,
|
|
2084
|
+
response_types_map=_response_types_map,
|
|
2085
|
+
).data
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
@validate_call
|
|
2089
|
+
def post_invoice_prefix_with_http_info(
|
|
2090
|
+
self,
|
|
2091
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
2092
|
+
_request_timeout: Union[
|
|
2093
|
+
None,
|
|
2094
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2095
|
+
Tuple[
|
|
2096
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2097
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2098
|
+
]
|
|
2099
|
+
] = None,
|
|
2100
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2101
|
+
_content_type: Optional[StrictStr] = None,
|
|
2102
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2103
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2104
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
2105
|
+
"""POST /invoice/*
|
|
2106
|
+
|
|
2107
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
2108
|
+
|
|
2109
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
2110
|
+
:type tail: str
|
|
2111
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2112
|
+
number provided, it will be total request
|
|
2113
|
+
timeout. It can also be a pair (tuple) of
|
|
2114
|
+
(connection, read) timeouts.
|
|
2115
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2116
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2117
|
+
request; this effectively ignores the
|
|
2118
|
+
authentication in the spec for a single request.
|
|
2119
|
+
:type _request_auth: dict, optional
|
|
2120
|
+
:param _content_type: force content-type for the request.
|
|
2121
|
+
:type _content_type: str, Optional
|
|
2122
|
+
:param _headers: set to override the headers for a single
|
|
2123
|
+
request; this effectively ignores the headers
|
|
2124
|
+
in the spec for a single request.
|
|
2125
|
+
:type _headers: dict, optional
|
|
2126
|
+
:param _host_index: set to override the host_index for a single
|
|
2127
|
+
request; this effectively ignores the host_index
|
|
2128
|
+
in the spec for a single request.
|
|
2129
|
+
:type _host_index: int, optional
|
|
2130
|
+
:return: Returns the result object.
|
|
2131
|
+
""" # noqa: E501
|
|
2132
|
+
|
|
2133
|
+
_param = self._post_invoice_prefix_serialize(
|
|
2134
|
+
tail=tail,
|
|
2135
|
+
_request_auth=_request_auth,
|
|
2136
|
+
_content_type=_content_type,
|
|
2137
|
+
_headers=_headers,
|
|
2138
|
+
_host_index=_host_index
|
|
2139
|
+
)
|
|
2140
|
+
|
|
2141
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2142
|
+
'200': "Dict[str, object]",
|
|
2143
|
+
'400': "ApiError",
|
|
2144
|
+
'401': "ApiError",
|
|
2145
|
+
'403': "ApiError",
|
|
2146
|
+
'404': "ApiError",
|
|
2147
|
+
'409': "ApiError",
|
|
2148
|
+
'422': "ApiError",
|
|
2149
|
+
'429': "ApiError",
|
|
2150
|
+
}
|
|
2151
|
+
response_data = self.api_client.call_api(
|
|
2152
|
+
*_param,
|
|
2153
|
+
_request_timeout=_request_timeout
|
|
2154
|
+
)
|
|
2155
|
+
response_data.read()
|
|
2156
|
+
return self.api_client.response_deserialize(
|
|
2157
|
+
response_data=response_data,
|
|
2158
|
+
response_types_map=_response_types_map,
|
|
2159
|
+
)
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
@validate_call
|
|
2163
|
+
def post_invoice_prefix_without_preload_content(
|
|
2164
|
+
self,
|
|
2165
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
2166
|
+
_request_timeout: Union[
|
|
2167
|
+
None,
|
|
2168
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2169
|
+
Tuple[
|
|
2170
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2171
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2172
|
+
]
|
|
2173
|
+
] = None,
|
|
2174
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2175
|
+
_content_type: Optional[StrictStr] = None,
|
|
2176
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2177
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2178
|
+
) -> RESTResponseType:
|
|
2179
|
+
"""POST /invoice/*
|
|
2180
|
+
|
|
2181
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
2182
|
+
|
|
2183
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
2184
|
+
:type tail: str
|
|
2185
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2186
|
+
number provided, it will be total request
|
|
2187
|
+
timeout. It can also be a pair (tuple) of
|
|
2188
|
+
(connection, read) timeouts.
|
|
2189
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2190
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2191
|
+
request; this effectively ignores the
|
|
2192
|
+
authentication in the spec for a single request.
|
|
2193
|
+
:type _request_auth: dict, optional
|
|
2194
|
+
:param _content_type: force content-type for the request.
|
|
2195
|
+
:type _content_type: str, Optional
|
|
2196
|
+
:param _headers: set to override the headers for a single
|
|
2197
|
+
request; this effectively ignores the headers
|
|
2198
|
+
in the spec for a single request.
|
|
2199
|
+
:type _headers: dict, optional
|
|
2200
|
+
:param _host_index: set to override the host_index for a single
|
|
2201
|
+
request; this effectively ignores the host_index
|
|
2202
|
+
in the spec for a single request.
|
|
2203
|
+
:type _host_index: int, optional
|
|
2204
|
+
:return: Returns the result object.
|
|
2205
|
+
""" # noqa: E501
|
|
2206
|
+
|
|
2207
|
+
_param = self._post_invoice_prefix_serialize(
|
|
2208
|
+
tail=tail,
|
|
2209
|
+
_request_auth=_request_auth,
|
|
2210
|
+
_content_type=_content_type,
|
|
2211
|
+
_headers=_headers,
|
|
2212
|
+
_host_index=_host_index
|
|
2213
|
+
)
|
|
2214
|
+
|
|
2215
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2216
|
+
'200': "Dict[str, object]",
|
|
2217
|
+
'400': "ApiError",
|
|
2218
|
+
'401': "ApiError",
|
|
2219
|
+
'403': "ApiError",
|
|
2220
|
+
'404': "ApiError",
|
|
2221
|
+
'409': "ApiError",
|
|
2222
|
+
'422': "ApiError",
|
|
2223
|
+
'429': "ApiError",
|
|
2224
|
+
}
|
|
2225
|
+
response_data = self.api_client.call_api(
|
|
2226
|
+
*_param,
|
|
2227
|
+
_request_timeout=_request_timeout
|
|
2228
|
+
)
|
|
2229
|
+
return response_data.response
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
def _post_invoice_prefix_serialize(
|
|
2233
|
+
self,
|
|
2234
|
+
tail,
|
|
2235
|
+
_request_auth,
|
|
2236
|
+
_content_type,
|
|
2237
|
+
_headers,
|
|
2238
|
+
_host_index,
|
|
2239
|
+
) -> RequestSerialized:
|
|
2240
|
+
|
|
2241
|
+
_host = None
|
|
2242
|
+
|
|
2243
|
+
_collection_formats: Dict[str, str] = {
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
_path_params: Dict[str, str] = {}
|
|
2247
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2248
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2249
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2250
|
+
_files: Dict[
|
|
2251
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2252
|
+
] = {}
|
|
2253
|
+
_body_params: Optional[bytes] = None
|
|
2254
|
+
|
|
2255
|
+
# process the path parameters
|
|
2256
|
+
if tail is not None:
|
|
2257
|
+
_path_params['tail'] = tail
|
|
2258
|
+
# process the query parameters
|
|
2259
|
+
# process the header parameters
|
|
2260
|
+
# process the form parameters
|
|
2261
|
+
# process the body parameter
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
# set the HTTP header `Accept`
|
|
2265
|
+
if 'Accept' not in _header_params:
|
|
2266
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2267
|
+
[
|
|
2268
|
+
'application/json'
|
|
2269
|
+
]
|
|
2270
|
+
)
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
# authentication setting
|
|
2274
|
+
_auth_settings: List[str] = [
|
|
2275
|
+
'checkout-token'
|
|
2276
|
+
]
|
|
2277
|
+
|
|
2278
|
+
return self.api_client.param_serialize(
|
|
2279
|
+
method='POST',
|
|
2280
|
+
resource_path='/invoice/{tail}',
|
|
2281
|
+
path_params=_path_params,
|
|
2282
|
+
query_params=_query_params,
|
|
2283
|
+
header_params=_header_params,
|
|
2284
|
+
body=_body_params,
|
|
2285
|
+
post_params=_form_params,
|
|
2286
|
+
files=_files,
|
|
2287
|
+
auth_settings=_auth_settings,
|
|
2288
|
+
collection_formats=_collection_formats,
|
|
2289
|
+
_host=_host,
|
|
2290
|
+
_request_auth=_request_auth
|
|
2291
|
+
)
|
|
2292
|
+
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
|
|
2296
|
+
@validate_call
|
|
2297
|
+
def put_customer_portal_prefix(
|
|
2298
|
+
self,
|
|
2299
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
2300
|
+
_request_timeout: Union[
|
|
2301
|
+
None,
|
|
2302
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2303
|
+
Tuple[
|
|
2304
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2305
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2306
|
+
]
|
|
2307
|
+
] = None,
|
|
2308
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2309
|
+
_content_type: Optional[StrictStr] = None,
|
|
2310
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2311
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2312
|
+
) -> Dict[str, object]:
|
|
2313
|
+
"""PUT /customer-portal/*
|
|
2314
|
+
|
|
2315
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
2316
|
+
|
|
2317
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
2318
|
+
:type tail: str
|
|
2319
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2320
|
+
number provided, it will be total request
|
|
2321
|
+
timeout. It can also be a pair (tuple) of
|
|
2322
|
+
(connection, read) timeouts.
|
|
2323
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2324
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2325
|
+
request; this effectively ignores the
|
|
2326
|
+
authentication in the spec for a single request.
|
|
2327
|
+
:type _request_auth: dict, optional
|
|
2328
|
+
:param _content_type: force content-type for the request.
|
|
2329
|
+
:type _content_type: str, Optional
|
|
2330
|
+
:param _headers: set to override the headers for a single
|
|
2331
|
+
request; this effectively ignores the headers
|
|
2332
|
+
in the spec for a single request.
|
|
2333
|
+
:type _headers: dict, optional
|
|
2334
|
+
:param _host_index: set to override the host_index for a single
|
|
2335
|
+
request; this effectively ignores the host_index
|
|
2336
|
+
in the spec for a single request.
|
|
2337
|
+
:type _host_index: int, optional
|
|
2338
|
+
:return: Returns the result object.
|
|
2339
|
+
""" # noqa: E501
|
|
2340
|
+
|
|
2341
|
+
_param = self._put_customer_portal_prefix_serialize(
|
|
2342
|
+
tail=tail,
|
|
2343
|
+
_request_auth=_request_auth,
|
|
2344
|
+
_content_type=_content_type,
|
|
2345
|
+
_headers=_headers,
|
|
2346
|
+
_host_index=_host_index
|
|
2347
|
+
)
|
|
2348
|
+
|
|
2349
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2350
|
+
'200': "Dict[str, object]",
|
|
2351
|
+
'400': "ApiError",
|
|
2352
|
+
'401': "ApiError",
|
|
2353
|
+
'403': "ApiError",
|
|
2354
|
+
'404': "ApiError",
|
|
2355
|
+
'409': "ApiError",
|
|
2356
|
+
'422': "ApiError",
|
|
2357
|
+
'429': "ApiError",
|
|
2358
|
+
}
|
|
2359
|
+
response_data = self.api_client.call_api(
|
|
2360
|
+
*_param,
|
|
2361
|
+
_request_timeout=_request_timeout
|
|
2362
|
+
)
|
|
2363
|
+
response_data.read()
|
|
2364
|
+
return self.api_client.response_deserialize(
|
|
2365
|
+
response_data=response_data,
|
|
2366
|
+
response_types_map=_response_types_map,
|
|
2367
|
+
).data
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
@validate_call
|
|
2371
|
+
def put_customer_portal_prefix_with_http_info(
|
|
2372
|
+
self,
|
|
2373
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
2374
|
+
_request_timeout: Union[
|
|
2375
|
+
None,
|
|
2376
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2377
|
+
Tuple[
|
|
2378
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2379
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2380
|
+
]
|
|
2381
|
+
] = None,
|
|
2382
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2383
|
+
_content_type: Optional[StrictStr] = None,
|
|
2384
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2385
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2386
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
2387
|
+
"""PUT /customer-portal/*
|
|
2388
|
+
|
|
2389
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
2390
|
+
|
|
2391
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
2392
|
+
:type tail: str
|
|
2393
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2394
|
+
number provided, it will be total request
|
|
2395
|
+
timeout. It can also be a pair (tuple) of
|
|
2396
|
+
(connection, read) timeouts.
|
|
2397
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2398
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2399
|
+
request; this effectively ignores the
|
|
2400
|
+
authentication in the spec for a single request.
|
|
2401
|
+
:type _request_auth: dict, optional
|
|
2402
|
+
:param _content_type: force content-type for the request.
|
|
2403
|
+
:type _content_type: str, Optional
|
|
2404
|
+
:param _headers: set to override the headers for a single
|
|
2405
|
+
request; this effectively ignores the headers
|
|
2406
|
+
in the spec for a single request.
|
|
2407
|
+
:type _headers: dict, optional
|
|
2408
|
+
:param _host_index: set to override the host_index for a single
|
|
2409
|
+
request; this effectively ignores the host_index
|
|
2410
|
+
in the spec for a single request.
|
|
2411
|
+
:type _host_index: int, optional
|
|
2412
|
+
:return: Returns the result object.
|
|
2413
|
+
""" # noqa: E501
|
|
2414
|
+
|
|
2415
|
+
_param = self._put_customer_portal_prefix_serialize(
|
|
2416
|
+
tail=tail,
|
|
2417
|
+
_request_auth=_request_auth,
|
|
2418
|
+
_content_type=_content_type,
|
|
2419
|
+
_headers=_headers,
|
|
2420
|
+
_host_index=_host_index
|
|
2421
|
+
)
|
|
2422
|
+
|
|
2423
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2424
|
+
'200': "Dict[str, object]",
|
|
2425
|
+
'400': "ApiError",
|
|
2426
|
+
'401': "ApiError",
|
|
2427
|
+
'403': "ApiError",
|
|
2428
|
+
'404': "ApiError",
|
|
2429
|
+
'409': "ApiError",
|
|
2430
|
+
'422': "ApiError",
|
|
2431
|
+
'429': "ApiError",
|
|
2432
|
+
}
|
|
2433
|
+
response_data = self.api_client.call_api(
|
|
2434
|
+
*_param,
|
|
2435
|
+
_request_timeout=_request_timeout
|
|
2436
|
+
)
|
|
2437
|
+
response_data.read()
|
|
2438
|
+
return self.api_client.response_deserialize(
|
|
2439
|
+
response_data=response_data,
|
|
2440
|
+
response_types_map=_response_types_map,
|
|
2441
|
+
)
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
@validate_call
|
|
2445
|
+
def put_customer_portal_prefix_without_preload_content(
|
|
2446
|
+
self,
|
|
2447
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
2448
|
+
_request_timeout: Union[
|
|
2449
|
+
None,
|
|
2450
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2451
|
+
Tuple[
|
|
2452
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2453
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2454
|
+
]
|
|
2455
|
+
] = None,
|
|
2456
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2457
|
+
_content_type: Optional[StrictStr] = None,
|
|
2458
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2459
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2460
|
+
) -> RESTResponseType:
|
|
2461
|
+
"""PUT /customer-portal/*
|
|
2462
|
+
|
|
2463
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
2464
|
+
|
|
2465
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
2466
|
+
:type tail: str
|
|
2467
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2468
|
+
number provided, it will be total request
|
|
2469
|
+
timeout. It can also be a pair (tuple) of
|
|
2470
|
+
(connection, read) timeouts.
|
|
2471
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2472
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2473
|
+
request; this effectively ignores the
|
|
2474
|
+
authentication in the spec for a single request.
|
|
2475
|
+
:type _request_auth: dict, optional
|
|
2476
|
+
:param _content_type: force content-type for the request.
|
|
2477
|
+
:type _content_type: str, Optional
|
|
2478
|
+
:param _headers: set to override the headers for a single
|
|
2479
|
+
request; this effectively ignores the headers
|
|
2480
|
+
in the spec for a single request.
|
|
2481
|
+
:type _headers: dict, optional
|
|
2482
|
+
:param _host_index: set to override the host_index for a single
|
|
2483
|
+
request; this effectively ignores the host_index
|
|
2484
|
+
in the spec for a single request.
|
|
2485
|
+
:type _host_index: int, optional
|
|
2486
|
+
:return: Returns the result object.
|
|
2487
|
+
""" # noqa: E501
|
|
2488
|
+
|
|
2489
|
+
_param = self._put_customer_portal_prefix_serialize(
|
|
2490
|
+
tail=tail,
|
|
2491
|
+
_request_auth=_request_auth,
|
|
2492
|
+
_content_type=_content_type,
|
|
2493
|
+
_headers=_headers,
|
|
2494
|
+
_host_index=_host_index
|
|
2495
|
+
)
|
|
2496
|
+
|
|
2497
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2498
|
+
'200': "Dict[str, object]",
|
|
2499
|
+
'400': "ApiError",
|
|
2500
|
+
'401': "ApiError",
|
|
2501
|
+
'403': "ApiError",
|
|
2502
|
+
'404': "ApiError",
|
|
2503
|
+
'409': "ApiError",
|
|
2504
|
+
'422': "ApiError",
|
|
2505
|
+
'429': "ApiError",
|
|
2506
|
+
}
|
|
2507
|
+
response_data = self.api_client.call_api(
|
|
2508
|
+
*_param,
|
|
2509
|
+
_request_timeout=_request_timeout
|
|
2510
|
+
)
|
|
2511
|
+
return response_data.response
|
|
2512
|
+
|
|
2513
|
+
|
|
2514
|
+
def _put_customer_portal_prefix_serialize(
|
|
2515
|
+
self,
|
|
2516
|
+
tail,
|
|
2517
|
+
_request_auth,
|
|
2518
|
+
_content_type,
|
|
2519
|
+
_headers,
|
|
2520
|
+
_host_index,
|
|
2521
|
+
) -> RequestSerialized:
|
|
2522
|
+
|
|
2523
|
+
_host = None
|
|
2524
|
+
|
|
2525
|
+
_collection_formats: Dict[str, str] = {
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
_path_params: Dict[str, str] = {}
|
|
2529
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2530
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2531
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2532
|
+
_files: Dict[
|
|
2533
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2534
|
+
] = {}
|
|
2535
|
+
_body_params: Optional[bytes] = None
|
|
2536
|
+
|
|
2537
|
+
# process the path parameters
|
|
2538
|
+
if tail is not None:
|
|
2539
|
+
_path_params['tail'] = tail
|
|
2540
|
+
# process the query parameters
|
|
2541
|
+
# process the header parameters
|
|
2542
|
+
# process the form parameters
|
|
2543
|
+
# process the body parameter
|
|
2544
|
+
|
|
2545
|
+
|
|
2546
|
+
# set the HTTP header `Accept`
|
|
2547
|
+
if 'Accept' not in _header_params:
|
|
2548
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2549
|
+
[
|
|
2550
|
+
'application/json'
|
|
2551
|
+
]
|
|
2552
|
+
)
|
|
2553
|
+
|
|
2554
|
+
|
|
2555
|
+
# authentication setting
|
|
2556
|
+
_auth_settings: List[str] = [
|
|
2557
|
+
'checkout-token'
|
|
2558
|
+
]
|
|
2559
|
+
|
|
2560
|
+
return self.api_client.param_serialize(
|
|
2561
|
+
method='PUT',
|
|
2562
|
+
resource_path='/customer-portal/{tail}',
|
|
2563
|
+
path_params=_path_params,
|
|
2564
|
+
query_params=_query_params,
|
|
2565
|
+
header_params=_header_params,
|
|
2566
|
+
body=_body_params,
|
|
2567
|
+
post_params=_form_params,
|
|
2568
|
+
files=_files,
|
|
2569
|
+
auth_settings=_auth_settings,
|
|
2570
|
+
collection_formats=_collection_formats,
|
|
2571
|
+
_host=_host,
|
|
2572
|
+
_request_auth=_request_auth
|
|
2573
|
+
)
|
|
2574
|
+
|
|
2575
|
+
|
|
2576
|
+
|
|
2577
|
+
|
|
2578
|
+
@validate_call
|
|
2579
|
+
def put_invoice_prefix(
|
|
2580
|
+
self,
|
|
2581
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
2582
|
+
_request_timeout: Union[
|
|
2583
|
+
None,
|
|
2584
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2585
|
+
Tuple[
|
|
2586
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2587
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2588
|
+
]
|
|
2589
|
+
] = None,
|
|
2590
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2591
|
+
_content_type: Optional[StrictStr] = None,
|
|
2592
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2593
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2594
|
+
) -> Dict[str, object]:
|
|
2595
|
+
"""PUT /invoice/*
|
|
2596
|
+
|
|
2597
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
2598
|
+
|
|
2599
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
2600
|
+
:type tail: str
|
|
2601
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2602
|
+
number provided, it will be total request
|
|
2603
|
+
timeout. It can also be a pair (tuple) of
|
|
2604
|
+
(connection, read) timeouts.
|
|
2605
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2606
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2607
|
+
request; this effectively ignores the
|
|
2608
|
+
authentication in the spec for a single request.
|
|
2609
|
+
:type _request_auth: dict, optional
|
|
2610
|
+
:param _content_type: force content-type for the request.
|
|
2611
|
+
:type _content_type: str, Optional
|
|
2612
|
+
:param _headers: set to override the headers for a single
|
|
2613
|
+
request; this effectively ignores the headers
|
|
2614
|
+
in the spec for a single request.
|
|
2615
|
+
:type _headers: dict, optional
|
|
2616
|
+
:param _host_index: set to override the host_index for a single
|
|
2617
|
+
request; this effectively ignores the host_index
|
|
2618
|
+
in the spec for a single request.
|
|
2619
|
+
:type _host_index: int, optional
|
|
2620
|
+
:return: Returns the result object.
|
|
2621
|
+
""" # noqa: E501
|
|
2622
|
+
|
|
2623
|
+
_param = self._put_invoice_prefix_serialize(
|
|
2624
|
+
tail=tail,
|
|
2625
|
+
_request_auth=_request_auth,
|
|
2626
|
+
_content_type=_content_type,
|
|
2627
|
+
_headers=_headers,
|
|
2628
|
+
_host_index=_host_index
|
|
2629
|
+
)
|
|
2630
|
+
|
|
2631
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2632
|
+
'200': "Dict[str, object]",
|
|
2633
|
+
'400': "ApiError",
|
|
2634
|
+
'401': "ApiError",
|
|
2635
|
+
'403': "ApiError",
|
|
2636
|
+
'404': "ApiError",
|
|
2637
|
+
'409': "ApiError",
|
|
2638
|
+
'422': "ApiError",
|
|
2639
|
+
'429': "ApiError",
|
|
2640
|
+
}
|
|
2641
|
+
response_data = self.api_client.call_api(
|
|
2642
|
+
*_param,
|
|
2643
|
+
_request_timeout=_request_timeout
|
|
2644
|
+
)
|
|
2645
|
+
response_data.read()
|
|
2646
|
+
return self.api_client.response_deserialize(
|
|
2647
|
+
response_data=response_data,
|
|
2648
|
+
response_types_map=_response_types_map,
|
|
2649
|
+
).data
|
|
2650
|
+
|
|
2651
|
+
|
|
2652
|
+
@validate_call
|
|
2653
|
+
def put_invoice_prefix_with_http_info(
|
|
2654
|
+
self,
|
|
2655
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
2656
|
+
_request_timeout: Union[
|
|
2657
|
+
None,
|
|
2658
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2659
|
+
Tuple[
|
|
2660
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2661
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2662
|
+
]
|
|
2663
|
+
] = None,
|
|
2664
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2665
|
+
_content_type: Optional[StrictStr] = None,
|
|
2666
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2667
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2668
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
2669
|
+
"""PUT /invoice/*
|
|
2670
|
+
|
|
2671
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
2672
|
+
|
|
2673
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
2674
|
+
:type tail: str
|
|
2675
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2676
|
+
number provided, it will be total request
|
|
2677
|
+
timeout. It can also be a pair (tuple) of
|
|
2678
|
+
(connection, read) timeouts.
|
|
2679
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2680
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2681
|
+
request; this effectively ignores the
|
|
2682
|
+
authentication in the spec for a single request.
|
|
2683
|
+
:type _request_auth: dict, optional
|
|
2684
|
+
:param _content_type: force content-type for the request.
|
|
2685
|
+
:type _content_type: str, Optional
|
|
2686
|
+
:param _headers: set to override the headers for a single
|
|
2687
|
+
request; this effectively ignores the headers
|
|
2688
|
+
in the spec for a single request.
|
|
2689
|
+
:type _headers: dict, optional
|
|
2690
|
+
:param _host_index: set to override the host_index for a single
|
|
2691
|
+
request; this effectively ignores the host_index
|
|
2692
|
+
in the spec for a single request.
|
|
2693
|
+
:type _host_index: int, optional
|
|
2694
|
+
:return: Returns the result object.
|
|
2695
|
+
""" # noqa: E501
|
|
2696
|
+
|
|
2697
|
+
_param = self._put_invoice_prefix_serialize(
|
|
2698
|
+
tail=tail,
|
|
2699
|
+
_request_auth=_request_auth,
|
|
2700
|
+
_content_type=_content_type,
|
|
2701
|
+
_headers=_headers,
|
|
2702
|
+
_host_index=_host_index
|
|
2703
|
+
)
|
|
2704
|
+
|
|
2705
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2706
|
+
'200': "Dict[str, object]",
|
|
2707
|
+
'400': "ApiError",
|
|
2708
|
+
'401': "ApiError",
|
|
2709
|
+
'403': "ApiError",
|
|
2710
|
+
'404': "ApiError",
|
|
2711
|
+
'409': "ApiError",
|
|
2712
|
+
'422': "ApiError",
|
|
2713
|
+
'429': "ApiError",
|
|
2714
|
+
}
|
|
2715
|
+
response_data = self.api_client.call_api(
|
|
2716
|
+
*_param,
|
|
2717
|
+
_request_timeout=_request_timeout
|
|
2718
|
+
)
|
|
2719
|
+
response_data.read()
|
|
2720
|
+
return self.api_client.response_deserialize(
|
|
2721
|
+
response_data=response_data,
|
|
2722
|
+
response_types_map=_response_types_map,
|
|
2723
|
+
)
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
@validate_call
|
|
2727
|
+
def put_invoice_prefix_without_preload_content(
|
|
2728
|
+
self,
|
|
2729
|
+
tail: Annotated[StrictStr, Field(description="Remainder of the prefix-routed path. See route docs/contract for exact sub-operation.")],
|
|
2730
|
+
_request_timeout: Union[
|
|
2731
|
+
None,
|
|
2732
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2733
|
+
Tuple[
|
|
2734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2735
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2736
|
+
]
|
|
2737
|
+
] = None,
|
|
2738
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2739
|
+
_content_type: Optional[StrictStr] = None,
|
|
2740
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2741
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2742
|
+
) -> RESTResponseType:
|
|
2743
|
+
"""PUT /invoice/*
|
|
2744
|
+
|
|
2745
|
+
Generated route-discovery operation. Promoted operations in this spec carry exact request and response schemas; use this route entry for auth, path, idempotency, and error semantics until the route is promoted.
|
|
2746
|
+
|
|
2747
|
+
:param tail: Remainder of the prefix-routed path. See route docs/contract for exact sub-operation. (required)
|
|
2748
|
+
:type tail: str
|
|
2749
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2750
|
+
number provided, it will be total request
|
|
2751
|
+
timeout. It can also be a pair (tuple) of
|
|
2752
|
+
(connection, read) timeouts.
|
|
2753
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2754
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2755
|
+
request; this effectively ignores the
|
|
2756
|
+
authentication in the spec for a single request.
|
|
2757
|
+
:type _request_auth: dict, optional
|
|
2758
|
+
:param _content_type: force content-type for the request.
|
|
2759
|
+
:type _content_type: str, Optional
|
|
2760
|
+
:param _headers: set to override the headers for a single
|
|
2761
|
+
request; this effectively ignores the headers
|
|
2762
|
+
in the spec for a single request.
|
|
2763
|
+
:type _headers: dict, optional
|
|
2764
|
+
:param _host_index: set to override the host_index for a single
|
|
2765
|
+
request; this effectively ignores the host_index
|
|
2766
|
+
in the spec for a single request.
|
|
2767
|
+
:type _host_index: int, optional
|
|
2768
|
+
:return: Returns the result object.
|
|
2769
|
+
""" # noqa: E501
|
|
2770
|
+
|
|
2771
|
+
_param = self._put_invoice_prefix_serialize(
|
|
2772
|
+
tail=tail,
|
|
2773
|
+
_request_auth=_request_auth,
|
|
2774
|
+
_content_type=_content_type,
|
|
2775
|
+
_headers=_headers,
|
|
2776
|
+
_host_index=_host_index
|
|
2777
|
+
)
|
|
2778
|
+
|
|
2779
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2780
|
+
'200': "Dict[str, object]",
|
|
2781
|
+
'400': "ApiError",
|
|
2782
|
+
'401': "ApiError",
|
|
2783
|
+
'403': "ApiError",
|
|
2784
|
+
'404': "ApiError",
|
|
2785
|
+
'409': "ApiError",
|
|
2786
|
+
'422': "ApiError",
|
|
2787
|
+
'429': "ApiError",
|
|
2788
|
+
}
|
|
2789
|
+
response_data = self.api_client.call_api(
|
|
2790
|
+
*_param,
|
|
2791
|
+
_request_timeout=_request_timeout
|
|
2792
|
+
)
|
|
2793
|
+
return response_data.response
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
def _put_invoice_prefix_serialize(
|
|
2797
|
+
self,
|
|
2798
|
+
tail,
|
|
2799
|
+
_request_auth,
|
|
2800
|
+
_content_type,
|
|
2801
|
+
_headers,
|
|
2802
|
+
_host_index,
|
|
2803
|
+
) -> RequestSerialized:
|
|
2804
|
+
|
|
2805
|
+
_host = None
|
|
2806
|
+
|
|
2807
|
+
_collection_formats: Dict[str, str] = {
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
_path_params: Dict[str, str] = {}
|
|
2811
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2812
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2813
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2814
|
+
_files: Dict[
|
|
2815
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2816
|
+
] = {}
|
|
2817
|
+
_body_params: Optional[bytes] = None
|
|
2818
|
+
|
|
2819
|
+
# process the path parameters
|
|
2820
|
+
if tail is not None:
|
|
2821
|
+
_path_params['tail'] = tail
|
|
2822
|
+
# process the query parameters
|
|
2823
|
+
# process the header parameters
|
|
2824
|
+
# process the form parameters
|
|
2825
|
+
# process the body parameter
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
# set the HTTP header `Accept`
|
|
2829
|
+
if 'Accept' not in _header_params:
|
|
2830
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2831
|
+
[
|
|
2832
|
+
'application/json'
|
|
2833
|
+
]
|
|
2834
|
+
)
|
|
2835
|
+
|
|
2836
|
+
|
|
2837
|
+
# authentication setting
|
|
2838
|
+
_auth_settings: List[str] = [
|
|
2839
|
+
'checkout-token'
|
|
2840
|
+
]
|
|
2841
|
+
|
|
2842
|
+
return self.api_client.param_serialize(
|
|
2843
|
+
method='PUT',
|
|
2844
|
+
resource_path='/invoice/{tail}',
|
|
2845
|
+
path_params=_path_params,
|
|
2846
|
+
query_params=_query_params,
|
|
2847
|
+
header_params=_header_params,
|
|
2848
|
+
body=_body_params,
|
|
2849
|
+
post_params=_form_params,
|
|
2850
|
+
files=_files,
|
|
2851
|
+
auth_settings=_auth_settings,
|
|
2852
|
+
collection_formats=_collection_formats,
|
|
2853
|
+
_host=_host,
|
|
2854
|
+
_request_auth=_request_auth
|
|
2855
|
+
)
|