hyperstack 1.45.2a0__py3-none-any.whl → 1.46.1a0__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.
- hyperstack/__init__.py +2 -1
- hyperstack/api/__init__.py +1 -0
- hyperstack/api/alive_api.py +10 -10
- hyperstack/api/api_key_api.py +7 -7
- hyperstack/api/auth_api.py +69 -69
- hyperstack/api/beta_access_api.py +50 -50
- hyperstack/api/billing_api.py +1659 -1659
- hyperstack/api/calculate_api.py +7 -7
- hyperstack/api/callbacks_api.py +21 -21
- hyperstack/api/cluster_events_api.py +7 -7
- hyperstack/api/clusters_api.py +445 -445
- hyperstack/api/compliance_api.py +21 -21
- hyperstack/api/credit_api.py +7 -7
- hyperstack/api/customer_contract_api.py +139 -139
- hyperstack/api/dashboard_api.py +7 -7
- hyperstack/api/deployment_api.py +7 -7
- hyperstack/api/environment_api.py +107 -107
- hyperstack/api/fip_exclusions_api.py +313 -0
- hyperstack/api/firewall_attachment_api.py +7 -7
- hyperstack/api/firewalls_api.py +145 -145
- hyperstack/api/floating_ip_api.py +14 -14
- hyperstack/api/image_api.py +14 -14
- hyperstack/api/payment_api.py +102 -102
- hyperstack/api/profile_api.py +56 -56
- hyperstack/api/snapshot_events_api.py +7 -7
- hyperstack/api/snapshots_api.py +167 -167
- hyperstack/api/stock_api.py +7 -7
- hyperstack/api/template_api.py +76 -76
- hyperstack/api/user_api.py +76 -76
- hyperstack/api/user_detail_choice_api.py +10 -10
- hyperstack/api/virtual_machine_api.py +799 -782
- hyperstack/api/virtual_machine_events_api.py +7 -7
- hyperstack/api/vnc_url_api.py +53 -53
- hyperstack/api/volume_api.py +77 -77
- hyperstack/api/volume_attachment_api.py +21 -21
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -1
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.1a0.dist-info}/METADATA +1 -1
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.1a0.dist-info}/RECORD +41 -40
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.1a0.dist-info}/WHEEL +0 -0
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.1a0.dist-info}/top_level.txt +0 -0
hyperstack/api/payment_api.py
CHANGED
|
@@ -40,8 +40,9 @@ class PaymentApi:
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
@validate_call
|
|
43
|
-
def
|
|
43
|
+
def get_payment_receipt(
|
|
44
44
|
self,
|
|
45
|
+
payment_id: StrictStr,
|
|
45
46
|
_request_timeout: Union[
|
|
46
47
|
None,
|
|
47
48
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -54,11 +55,13 @@ class PaymentApi:
|
|
|
54
55
|
_content_type: Optional[StrictStr] = None,
|
|
55
56
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
56
57
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
57
|
-
) ->
|
|
58
|
-
"""
|
|
58
|
+
) -> None:
|
|
59
|
+
"""Retrieve Payment Receipt
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
Retrieve the payment receipt from Stripe for a specific payment
|
|
61
62
|
|
|
63
|
+
:param payment_id: (required)
|
|
64
|
+
:type payment_id: str
|
|
62
65
|
:param _request_timeout: timeout setting for this request. If one
|
|
63
66
|
number provided, it will be total request
|
|
64
67
|
timeout. It can also be a pair (tuple) of
|
|
@@ -81,7 +84,8 @@ class PaymentApi:
|
|
|
81
84
|
:return: Returns the result object.
|
|
82
85
|
""" # noqa: E501
|
|
83
86
|
|
|
84
|
-
_param = self.
|
|
87
|
+
_param = self._get_payment_receipt_serialize(
|
|
88
|
+
payment_id=payment_id,
|
|
85
89
|
_request_auth=_request_auth,
|
|
86
90
|
_content_type=_content_type,
|
|
87
91
|
_headers=_headers,
|
|
@@ -89,7 +93,7 @@ class PaymentApi:
|
|
|
89
93
|
)
|
|
90
94
|
|
|
91
95
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
92
|
-
'200':
|
|
96
|
+
'200': None,
|
|
93
97
|
'400': "ErrorResponseModel",
|
|
94
98
|
'401': "ErrorResponseModel",
|
|
95
99
|
'403': "ErrorResponseModel",
|
|
@@ -108,8 +112,9 @@ class PaymentApi:
|
|
|
108
112
|
|
|
109
113
|
|
|
110
114
|
@validate_call
|
|
111
|
-
def
|
|
115
|
+
def get_payment_receipt_with_http_info(
|
|
112
116
|
self,
|
|
117
|
+
payment_id: StrictStr,
|
|
113
118
|
_request_timeout: Union[
|
|
114
119
|
None,
|
|
115
120
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -122,11 +127,13 @@ class PaymentApi:
|
|
|
122
127
|
_content_type: Optional[StrictStr] = None,
|
|
123
128
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
124
129
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
125
|
-
) -> ApiResponse[
|
|
126
|
-
"""
|
|
130
|
+
) -> ApiResponse[None]:
|
|
131
|
+
"""Retrieve Payment Receipt
|
|
127
132
|
|
|
128
|
-
|
|
133
|
+
Retrieve the payment receipt from Stripe for a specific payment
|
|
129
134
|
|
|
135
|
+
:param payment_id: (required)
|
|
136
|
+
:type payment_id: str
|
|
130
137
|
:param _request_timeout: timeout setting for this request. If one
|
|
131
138
|
number provided, it will be total request
|
|
132
139
|
timeout. It can also be a pair (tuple) of
|
|
@@ -149,7 +156,8 @@ class PaymentApi:
|
|
|
149
156
|
:return: Returns the result object.
|
|
150
157
|
""" # noqa: E501
|
|
151
158
|
|
|
152
|
-
_param = self.
|
|
159
|
+
_param = self._get_payment_receipt_serialize(
|
|
160
|
+
payment_id=payment_id,
|
|
153
161
|
_request_auth=_request_auth,
|
|
154
162
|
_content_type=_content_type,
|
|
155
163
|
_headers=_headers,
|
|
@@ -157,7 +165,7 @@ class PaymentApi:
|
|
|
157
165
|
)
|
|
158
166
|
|
|
159
167
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
160
|
-
'200':
|
|
168
|
+
'200': None,
|
|
161
169
|
'400': "ErrorResponseModel",
|
|
162
170
|
'401': "ErrorResponseModel",
|
|
163
171
|
'403': "ErrorResponseModel",
|
|
@@ -176,8 +184,9 @@ class PaymentApi:
|
|
|
176
184
|
|
|
177
185
|
|
|
178
186
|
@validate_call
|
|
179
|
-
def
|
|
187
|
+
def get_payment_receipt_without_preload_content(
|
|
180
188
|
self,
|
|
189
|
+
payment_id: StrictStr,
|
|
181
190
|
_request_timeout: Union[
|
|
182
191
|
None,
|
|
183
192
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -191,10 +200,12 @@ class PaymentApi:
|
|
|
191
200
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
192
201
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
193
202
|
) -> RESTResponseType:
|
|
194
|
-
"""
|
|
203
|
+
"""Retrieve Payment Receipt
|
|
195
204
|
|
|
196
|
-
|
|
205
|
+
Retrieve the payment receipt from Stripe for a specific payment
|
|
197
206
|
|
|
207
|
+
:param payment_id: (required)
|
|
208
|
+
:type payment_id: str
|
|
198
209
|
:param _request_timeout: timeout setting for this request. If one
|
|
199
210
|
number provided, it will be total request
|
|
200
211
|
timeout. It can also be a pair (tuple) of
|
|
@@ -217,7 +228,8 @@ class PaymentApi:
|
|
|
217
228
|
:return: Returns the result object.
|
|
218
229
|
""" # noqa: E501
|
|
219
230
|
|
|
220
|
-
_param = self.
|
|
231
|
+
_param = self._get_payment_receipt_serialize(
|
|
232
|
+
payment_id=payment_id,
|
|
221
233
|
_request_auth=_request_auth,
|
|
222
234
|
_content_type=_content_type,
|
|
223
235
|
_headers=_headers,
|
|
@@ -225,7 +237,7 @@ class PaymentApi:
|
|
|
225
237
|
)
|
|
226
238
|
|
|
227
239
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
228
|
-
'200':
|
|
240
|
+
'200': None,
|
|
229
241
|
'400': "ErrorResponseModel",
|
|
230
242
|
'401': "ErrorResponseModel",
|
|
231
243
|
'403': "ErrorResponseModel",
|
|
@@ -239,8 +251,9 @@ class PaymentApi:
|
|
|
239
251
|
return response_data.response
|
|
240
252
|
|
|
241
253
|
|
|
242
|
-
def
|
|
254
|
+
def _get_payment_receipt_serialize(
|
|
243
255
|
self,
|
|
256
|
+
payment_id,
|
|
244
257
|
_request_auth,
|
|
245
258
|
_content_type,
|
|
246
259
|
_headers,
|
|
@@ -262,6 +275,8 @@ class PaymentApi:
|
|
|
262
275
|
_body_params: Optional[bytes] = None
|
|
263
276
|
|
|
264
277
|
# process the path parameters
|
|
278
|
+
if payment_id is not None:
|
|
279
|
+
_path_params['payment_id'] = payment_id
|
|
265
280
|
# process the query parameters
|
|
266
281
|
# process the header parameters
|
|
267
282
|
# process the form parameters
|
|
@@ -284,7 +299,7 @@ class PaymentApi:
|
|
|
284
299
|
|
|
285
300
|
return self.api_client.param_serialize(
|
|
286
301
|
method='GET',
|
|
287
|
-
resource_path='/billing/payment/
|
|
302
|
+
resource_path='/billing/payment/receipt/{payment_id}',
|
|
288
303
|
path_params=_path_params,
|
|
289
304
|
query_params=_query_params,
|
|
290
305
|
header_params=_header_params,
|
|
@@ -301,9 +316,9 @@ class PaymentApi:
|
|
|
301
316
|
|
|
302
317
|
|
|
303
318
|
@validate_call
|
|
304
|
-
def
|
|
319
|
+
def initiate_payment(
|
|
305
320
|
self,
|
|
306
|
-
|
|
321
|
+
payload: PaymentInitiatePayload,
|
|
307
322
|
_request_timeout: Union[
|
|
308
323
|
None,
|
|
309
324
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -316,13 +331,13 @@ class PaymentApi:
|
|
|
316
331
|
_content_type: Optional[StrictStr] = None,
|
|
317
332
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
318
333
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
319
|
-
) ->
|
|
320
|
-
"""
|
|
334
|
+
) -> PaymentInitiateResponse:
|
|
335
|
+
"""POST: Initiate payment
|
|
321
336
|
|
|
322
|
-
|
|
337
|
+
Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](None/docs/api-reference/billing-resources/create-payment).
|
|
323
338
|
|
|
324
|
-
:param
|
|
325
|
-
:type
|
|
339
|
+
:param payload: (required)
|
|
340
|
+
:type payload: PaymentInitiatePayload
|
|
326
341
|
:param _request_timeout: timeout setting for this request. If one
|
|
327
342
|
number provided, it will be total request
|
|
328
343
|
timeout. It can also be a pair (tuple) of
|
|
@@ -345,8 +360,8 @@ class PaymentApi:
|
|
|
345
360
|
:return: Returns the result object.
|
|
346
361
|
""" # noqa: E501
|
|
347
362
|
|
|
348
|
-
_param = self.
|
|
349
|
-
|
|
363
|
+
_param = self._initiate_payment_serialize(
|
|
364
|
+
payload=payload,
|
|
350
365
|
_request_auth=_request_auth,
|
|
351
366
|
_content_type=_content_type,
|
|
352
367
|
_headers=_headers,
|
|
@@ -354,7 +369,7 @@ class PaymentApi:
|
|
|
354
369
|
)
|
|
355
370
|
|
|
356
371
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
357
|
-
'200':
|
|
372
|
+
'200': "PaymentInitiateResponse",
|
|
358
373
|
'400': "ErrorResponseModel",
|
|
359
374
|
'401': "ErrorResponseModel",
|
|
360
375
|
'403': "ErrorResponseModel",
|
|
@@ -373,9 +388,9 @@ class PaymentApi:
|
|
|
373
388
|
|
|
374
389
|
|
|
375
390
|
@validate_call
|
|
376
|
-
def
|
|
391
|
+
def initiate_payment_with_http_info(
|
|
377
392
|
self,
|
|
378
|
-
|
|
393
|
+
payload: PaymentInitiatePayload,
|
|
379
394
|
_request_timeout: Union[
|
|
380
395
|
None,
|
|
381
396
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -388,13 +403,13 @@ class PaymentApi:
|
|
|
388
403
|
_content_type: Optional[StrictStr] = None,
|
|
389
404
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
390
405
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
391
|
-
) -> ApiResponse[
|
|
392
|
-
"""
|
|
406
|
+
) -> ApiResponse[PaymentInitiateResponse]:
|
|
407
|
+
"""POST: Initiate payment
|
|
393
408
|
|
|
394
|
-
|
|
409
|
+
Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](None/docs/api-reference/billing-resources/create-payment).
|
|
395
410
|
|
|
396
|
-
:param
|
|
397
|
-
:type
|
|
411
|
+
:param payload: (required)
|
|
412
|
+
:type payload: PaymentInitiatePayload
|
|
398
413
|
:param _request_timeout: timeout setting for this request. If one
|
|
399
414
|
number provided, it will be total request
|
|
400
415
|
timeout. It can also be a pair (tuple) of
|
|
@@ -417,8 +432,8 @@ class PaymentApi:
|
|
|
417
432
|
:return: Returns the result object.
|
|
418
433
|
""" # noqa: E501
|
|
419
434
|
|
|
420
|
-
_param = self.
|
|
421
|
-
|
|
435
|
+
_param = self._initiate_payment_serialize(
|
|
436
|
+
payload=payload,
|
|
422
437
|
_request_auth=_request_auth,
|
|
423
438
|
_content_type=_content_type,
|
|
424
439
|
_headers=_headers,
|
|
@@ -426,7 +441,7 @@ class PaymentApi:
|
|
|
426
441
|
)
|
|
427
442
|
|
|
428
443
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
429
|
-
'200':
|
|
444
|
+
'200': "PaymentInitiateResponse",
|
|
430
445
|
'400': "ErrorResponseModel",
|
|
431
446
|
'401': "ErrorResponseModel",
|
|
432
447
|
'403': "ErrorResponseModel",
|
|
@@ -445,9 +460,9 @@ class PaymentApi:
|
|
|
445
460
|
|
|
446
461
|
|
|
447
462
|
@validate_call
|
|
448
|
-
def
|
|
463
|
+
def initiate_payment_without_preload_content(
|
|
449
464
|
self,
|
|
450
|
-
|
|
465
|
+
payload: PaymentInitiatePayload,
|
|
451
466
|
_request_timeout: Union[
|
|
452
467
|
None,
|
|
453
468
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -461,12 +476,12 @@ class PaymentApi:
|
|
|
461
476
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
462
477
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
463
478
|
) -> RESTResponseType:
|
|
464
|
-
"""
|
|
479
|
+
"""POST: Initiate payment
|
|
465
480
|
|
|
466
|
-
|
|
481
|
+
Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](None/docs/api-reference/billing-resources/create-payment).
|
|
467
482
|
|
|
468
|
-
:param
|
|
469
|
-
:type
|
|
483
|
+
:param payload: (required)
|
|
484
|
+
:type payload: PaymentInitiatePayload
|
|
470
485
|
:param _request_timeout: timeout setting for this request. If one
|
|
471
486
|
number provided, it will be total request
|
|
472
487
|
timeout. It can also be a pair (tuple) of
|
|
@@ -489,8 +504,8 @@ class PaymentApi:
|
|
|
489
504
|
:return: Returns the result object.
|
|
490
505
|
""" # noqa: E501
|
|
491
506
|
|
|
492
|
-
_param = self.
|
|
493
|
-
|
|
507
|
+
_param = self._initiate_payment_serialize(
|
|
508
|
+
payload=payload,
|
|
494
509
|
_request_auth=_request_auth,
|
|
495
510
|
_content_type=_content_type,
|
|
496
511
|
_headers=_headers,
|
|
@@ -498,7 +513,7 @@ class PaymentApi:
|
|
|
498
513
|
)
|
|
499
514
|
|
|
500
515
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
501
|
-
'200':
|
|
516
|
+
'200': "PaymentInitiateResponse",
|
|
502
517
|
'400': "ErrorResponseModel",
|
|
503
518
|
'401': "ErrorResponseModel",
|
|
504
519
|
'403': "ErrorResponseModel",
|
|
@@ -512,9 +527,9 @@ class PaymentApi:
|
|
|
512
527
|
return response_data.response
|
|
513
528
|
|
|
514
529
|
|
|
515
|
-
def
|
|
530
|
+
def _initiate_payment_serialize(
|
|
516
531
|
self,
|
|
517
|
-
|
|
532
|
+
payload,
|
|
518
533
|
_request_auth,
|
|
519
534
|
_content_type,
|
|
520
535
|
_headers,
|
|
@@ -536,12 +551,12 @@ class PaymentApi:
|
|
|
536
551
|
_body_params: Optional[bytes] = None
|
|
537
552
|
|
|
538
553
|
# process the path parameters
|
|
539
|
-
if payment_id is not None:
|
|
540
|
-
_path_params['payment_id'] = payment_id
|
|
541
554
|
# process the query parameters
|
|
542
555
|
# process the header parameters
|
|
543
556
|
# process the form parameters
|
|
544
557
|
# process the body parameter
|
|
558
|
+
if payload is not None:
|
|
559
|
+
_body_params = payload
|
|
545
560
|
|
|
546
561
|
|
|
547
562
|
# set the HTTP header `Accept`
|
|
@@ -552,6 +567,19 @@ class PaymentApi:
|
|
|
552
567
|
]
|
|
553
568
|
)
|
|
554
569
|
|
|
570
|
+
# set the HTTP header `Content-Type`
|
|
571
|
+
if _content_type:
|
|
572
|
+
_header_params['Content-Type'] = _content_type
|
|
573
|
+
else:
|
|
574
|
+
_default_content_type = (
|
|
575
|
+
self.api_client.select_header_content_type(
|
|
576
|
+
[
|
|
577
|
+
'application/json'
|
|
578
|
+
]
|
|
579
|
+
)
|
|
580
|
+
)
|
|
581
|
+
if _default_content_type is not None:
|
|
582
|
+
_header_params['Content-Type'] = _default_content_type
|
|
555
583
|
|
|
556
584
|
# authentication setting
|
|
557
585
|
_auth_settings: List[str] = [
|
|
@@ -559,8 +587,8 @@ class PaymentApi:
|
|
|
559
587
|
]
|
|
560
588
|
|
|
561
589
|
return self.api_client.param_serialize(
|
|
562
|
-
method='
|
|
563
|
-
resource_path='/billing/payment/
|
|
590
|
+
method='POST',
|
|
591
|
+
resource_path='/billing/payment/payment-initiate',
|
|
564
592
|
path_params=_path_params,
|
|
565
593
|
query_params=_query_params,
|
|
566
594
|
header_params=_header_params,
|
|
@@ -577,9 +605,8 @@ class PaymentApi:
|
|
|
577
605
|
|
|
578
606
|
|
|
579
607
|
@validate_call
|
|
580
|
-
def
|
|
608
|
+
def list_payment_details(
|
|
581
609
|
self,
|
|
582
|
-
payload: PaymentInitiatePayload,
|
|
583
610
|
_request_timeout: Union[
|
|
584
611
|
None,
|
|
585
612
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -592,13 +619,11 @@ class PaymentApi:
|
|
|
592
619
|
_content_type: Optional[StrictStr] = None,
|
|
593
620
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
594
621
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
595
|
-
) ->
|
|
596
|
-
"""
|
|
622
|
+
) -> PaymentDetailsResponse:
|
|
623
|
+
"""GET: View payment details
|
|
597
624
|
|
|
598
|
-
|
|
625
|
+
Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](None/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
599
626
|
|
|
600
|
-
:param payload: (required)
|
|
601
|
-
:type payload: PaymentInitiatePayload
|
|
602
627
|
:param _request_timeout: timeout setting for this request. If one
|
|
603
628
|
number provided, it will be total request
|
|
604
629
|
timeout. It can also be a pair (tuple) of
|
|
@@ -621,8 +646,7 @@ class PaymentApi:
|
|
|
621
646
|
:return: Returns the result object.
|
|
622
647
|
""" # noqa: E501
|
|
623
648
|
|
|
624
|
-
_param = self.
|
|
625
|
-
payload=payload,
|
|
649
|
+
_param = self._list_payment_details_serialize(
|
|
626
650
|
_request_auth=_request_auth,
|
|
627
651
|
_content_type=_content_type,
|
|
628
652
|
_headers=_headers,
|
|
@@ -630,7 +654,7 @@ class PaymentApi:
|
|
|
630
654
|
)
|
|
631
655
|
|
|
632
656
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
633
|
-
'200': "
|
|
657
|
+
'200': "PaymentDetailsResponse",
|
|
634
658
|
'400': "ErrorResponseModel",
|
|
635
659
|
'401': "ErrorResponseModel",
|
|
636
660
|
'403': "ErrorResponseModel",
|
|
@@ -649,9 +673,8 @@ class PaymentApi:
|
|
|
649
673
|
|
|
650
674
|
|
|
651
675
|
@validate_call
|
|
652
|
-
def
|
|
676
|
+
def list_payment_details_with_http_info(
|
|
653
677
|
self,
|
|
654
|
-
payload: PaymentInitiatePayload,
|
|
655
678
|
_request_timeout: Union[
|
|
656
679
|
None,
|
|
657
680
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -664,13 +687,11 @@ class PaymentApi:
|
|
|
664
687
|
_content_type: Optional[StrictStr] = None,
|
|
665
688
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
666
689
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
667
|
-
) -> ApiResponse[
|
|
668
|
-
"""
|
|
690
|
+
) -> ApiResponse[PaymentDetailsResponse]:
|
|
691
|
+
"""GET: View payment details
|
|
669
692
|
|
|
670
|
-
|
|
693
|
+
Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](None/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
671
694
|
|
|
672
|
-
:param payload: (required)
|
|
673
|
-
:type payload: PaymentInitiatePayload
|
|
674
695
|
:param _request_timeout: timeout setting for this request. If one
|
|
675
696
|
number provided, it will be total request
|
|
676
697
|
timeout. It can also be a pair (tuple) of
|
|
@@ -693,8 +714,7 @@ class PaymentApi:
|
|
|
693
714
|
:return: Returns the result object.
|
|
694
715
|
""" # noqa: E501
|
|
695
716
|
|
|
696
|
-
_param = self.
|
|
697
|
-
payload=payload,
|
|
717
|
+
_param = self._list_payment_details_serialize(
|
|
698
718
|
_request_auth=_request_auth,
|
|
699
719
|
_content_type=_content_type,
|
|
700
720
|
_headers=_headers,
|
|
@@ -702,7 +722,7 @@ class PaymentApi:
|
|
|
702
722
|
)
|
|
703
723
|
|
|
704
724
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
705
|
-
'200': "
|
|
725
|
+
'200': "PaymentDetailsResponse",
|
|
706
726
|
'400': "ErrorResponseModel",
|
|
707
727
|
'401': "ErrorResponseModel",
|
|
708
728
|
'403': "ErrorResponseModel",
|
|
@@ -721,9 +741,8 @@ class PaymentApi:
|
|
|
721
741
|
|
|
722
742
|
|
|
723
743
|
@validate_call
|
|
724
|
-
def
|
|
744
|
+
def list_payment_details_without_preload_content(
|
|
725
745
|
self,
|
|
726
|
-
payload: PaymentInitiatePayload,
|
|
727
746
|
_request_timeout: Union[
|
|
728
747
|
None,
|
|
729
748
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -737,12 +756,10 @@ class PaymentApi:
|
|
|
737
756
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
738
757
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
739
758
|
) -> RESTResponseType:
|
|
740
|
-
"""
|
|
759
|
+
"""GET: View payment details
|
|
741
760
|
|
|
742
|
-
|
|
761
|
+
Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](None/docs/api-reference/billing-resources/retrieve-payment-history/).
|
|
743
762
|
|
|
744
|
-
:param payload: (required)
|
|
745
|
-
:type payload: PaymentInitiatePayload
|
|
746
763
|
:param _request_timeout: timeout setting for this request. If one
|
|
747
764
|
number provided, it will be total request
|
|
748
765
|
timeout. It can also be a pair (tuple) of
|
|
@@ -765,8 +782,7 @@ class PaymentApi:
|
|
|
765
782
|
:return: Returns the result object.
|
|
766
783
|
""" # noqa: E501
|
|
767
784
|
|
|
768
|
-
_param = self.
|
|
769
|
-
payload=payload,
|
|
785
|
+
_param = self._list_payment_details_serialize(
|
|
770
786
|
_request_auth=_request_auth,
|
|
771
787
|
_content_type=_content_type,
|
|
772
788
|
_headers=_headers,
|
|
@@ -774,7 +790,7 @@ class PaymentApi:
|
|
|
774
790
|
)
|
|
775
791
|
|
|
776
792
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
777
|
-
'200': "
|
|
793
|
+
'200': "PaymentDetailsResponse",
|
|
778
794
|
'400': "ErrorResponseModel",
|
|
779
795
|
'401': "ErrorResponseModel",
|
|
780
796
|
'403': "ErrorResponseModel",
|
|
@@ -788,9 +804,8 @@ class PaymentApi:
|
|
|
788
804
|
return response_data.response
|
|
789
805
|
|
|
790
806
|
|
|
791
|
-
def
|
|
807
|
+
def _list_payment_details_serialize(
|
|
792
808
|
self,
|
|
793
|
-
payload,
|
|
794
809
|
_request_auth,
|
|
795
810
|
_content_type,
|
|
796
811
|
_headers,
|
|
@@ -816,8 +831,6 @@ class PaymentApi:
|
|
|
816
831
|
# process the header parameters
|
|
817
832
|
# process the form parameters
|
|
818
833
|
# process the body parameter
|
|
819
|
-
if payload is not None:
|
|
820
|
-
_body_params = payload
|
|
821
834
|
|
|
822
835
|
|
|
823
836
|
# set the HTTP header `Accept`
|
|
@@ -828,19 +841,6 @@ class PaymentApi:
|
|
|
828
841
|
]
|
|
829
842
|
)
|
|
830
843
|
|
|
831
|
-
# set the HTTP header `Content-Type`
|
|
832
|
-
if _content_type:
|
|
833
|
-
_header_params['Content-Type'] = _content_type
|
|
834
|
-
else:
|
|
835
|
-
_default_content_type = (
|
|
836
|
-
self.api_client.select_header_content_type(
|
|
837
|
-
[
|
|
838
|
-
'application/json'
|
|
839
|
-
]
|
|
840
|
-
)
|
|
841
|
-
)
|
|
842
|
-
if _default_content_type is not None:
|
|
843
|
-
_header_params['Content-Type'] = _default_content_type
|
|
844
844
|
|
|
845
845
|
# authentication setting
|
|
846
846
|
_auth_settings: List[str] = [
|
|
@@ -848,8 +848,8 @@ class PaymentApi:
|
|
|
848
848
|
]
|
|
849
849
|
|
|
850
850
|
return self.api_client.param_serialize(
|
|
851
|
-
method='
|
|
852
|
-
resource_path='/billing/payment/payment-
|
|
851
|
+
method='GET',
|
|
852
|
+
resource_path='/billing/payment/payment-details',
|
|
853
853
|
path_params=_path_params,
|
|
854
854
|
query_params=_query_params,
|
|
855
855
|
header_params=_header_params,
|