pluggy-sdk 1.0.0.post14__py3-none-any.whl → 1.0.0.post16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pluggy_sdk/__init__.py +4 -1
- pluggy_sdk/api/__init__.py +3 -0
- pluggy_sdk/api/account_api.py +12 -10
- pluggy_sdk/api/acquirer_anticipation_api.py +12 -10
- pluggy_sdk/api/acquirer_receivable_api.py +12 -10
- pluggy_sdk/api/acquirer_sale_api.py +12 -10
- pluggy_sdk/api/auth_api.py +12 -10
- pluggy_sdk/api/benefit_api.py +12 -10
- pluggy_sdk/api/bill_api.py +12 -10
- pluggy_sdk/api/bulk_payment_api.py +18 -15
- pluggy_sdk/api/category_api.py +24 -20
- pluggy_sdk/api/connector_api.py +18 -15
- pluggy_sdk/api/consent_api.py +12 -10
- pluggy_sdk/api/identity_api.py +12 -10
- pluggy_sdk/api/income_report_api.py +6 -5
- pluggy_sdk/api/investment_api.py +18 -15
- pluggy_sdk/api/items_api.py +30 -25
- pluggy_sdk/api/loan_api.py +12 -10
- pluggy_sdk/api/payment_customer_api.py +30 -25
- pluggy_sdk/api/payment_intent_api.py +18 -15
- pluggy_sdk/api/payment_receipts_api.py +842 -0
- pluggy_sdk/api/payment_recipient_api.py +42 -35
- pluggy_sdk/api/payment_request_api.py +134 -1187
- pluggy_sdk/api/payment_schedule_api.py +817 -0
- pluggy_sdk/api/portfolio_yield_api.py +12 -10
- pluggy_sdk/api/smart_account_api.py +24 -590
- pluggy_sdk/api/smart_account_transfer_api.py +610 -0
- pluggy_sdk/api/transaction_api.py +18 -15
- pluggy_sdk/api/webhook_api.py +30 -25
- pluggy_sdk/api_client.py +2 -2
- pluggy_sdk/configuration.py +17 -3
- pluggy_sdk/models/benefit_loan.py +6 -6
- pluggy_sdk/models/benefit_loan_client.py +3 -3
- pluggy_sdk/models/connector.py +6 -2
- pluggy_sdk/models/item.py +3 -1
- {pluggy_sdk-1.0.0.post14.dist-info → pluggy_sdk-1.0.0.post16.dist-info}/METADATA +11 -9
- {pluggy_sdk-1.0.0.post14.dist-info → pluggy_sdk-1.0.0.post16.dist-info}/RECORD +39 -36
- {pluggy_sdk-1.0.0.post14.dist-info → pluggy_sdk-1.0.0.post16.dist-info}/WHEEL +1 -1
- {pluggy_sdk-1.0.0.post14.dist-info → pluggy_sdk-1.0.0.post16.dist-info}/top_level.txt +0 -0
@@ -22,11 +22,8 @@ from typing_extensions import Annotated
|
|
22
22
|
from pluggy_sdk.models.create_boleto_payment_request import CreateBoletoPaymentRequest
|
23
23
|
from pluggy_sdk.models.create_payment_request import CreatePaymentRequest
|
24
24
|
from pluggy_sdk.models.create_pix_qr_payment_request import CreatePixQrPaymentRequest
|
25
|
-
from pluggy_sdk.models.payment_receipt import PaymentReceipt
|
26
25
|
from pluggy_sdk.models.payment_request import PaymentRequest
|
27
|
-
from pluggy_sdk.models.payment_request_receipt_list200_response import PaymentRequestReceiptList200Response
|
28
26
|
from pluggy_sdk.models.payment_requests_list200_response import PaymentRequestsList200Response
|
29
|
-
from pluggy_sdk.models.payment_schedules_list200_response import PaymentSchedulesList200Response
|
30
27
|
from pluggy_sdk.models.update_payment_request import UpdatePaymentRequest
|
31
28
|
|
32
29
|
from pluggy_sdk.api_client import ApiClient, RequestSerialized
|
@@ -275,11 +272,12 @@ class PaymentRequestApi:
|
|
275
272
|
|
276
273
|
|
277
274
|
# set the HTTP header `Accept`
|
278
|
-
|
279
|
-
[
|
280
|
-
|
281
|
-
|
282
|
-
|
275
|
+
if 'Accept' not in _header_params:
|
276
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
277
|
+
[
|
278
|
+
'application/json'
|
279
|
+
]
|
280
|
+
)
|
283
281
|
|
284
282
|
# set the HTTP header `Content-Type`
|
285
283
|
if _content_type:
|
@@ -546,11 +544,12 @@ class PaymentRequestApi:
|
|
546
544
|
|
547
545
|
|
548
546
|
# set the HTTP header `Accept`
|
549
|
-
|
550
|
-
[
|
551
|
-
|
552
|
-
|
553
|
-
|
547
|
+
if 'Accept' not in _header_params:
|
548
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
549
|
+
[
|
550
|
+
'application/json'
|
551
|
+
]
|
552
|
+
)
|
554
553
|
|
555
554
|
# set the HTTP header `Content-Type`
|
556
555
|
if _content_type:
|
@@ -817,11 +816,12 @@ class PaymentRequestApi:
|
|
817
816
|
|
818
817
|
|
819
818
|
# set the HTTP header `Accept`
|
820
|
-
|
821
|
-
[
|
822
|
-
|
823
|
-
|
824
|
-
|
819
|
+
if 'Accept' not in _header_params:
|
820
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
821
|
+
[
|
822
|
+
'application/json'
|
823
|
+
]
|
824
|
+
)
|
825
825
|
|
826
826
|
# set the HTTP header `Content-Type`
|
827
827
|
if _content_type:
|
@@ -1091,11 +1091,12 @@ class PaymentRequestApi:
|
|
1091
1091
|
|
1092
1092
|
|
1093
1093
|
# set the HTTP header `Accept`
|
1094
|
-
|
1095
|
-
[
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1094
|
+
if 'Accept' not in _header_params:
|
1095
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1096
|
+
[
|
1097
|
+
'application/json'
|
1098
|
+
]
|
1099
|
+
)
|
1099
1100
|
|
1100
1101
|
|
1101
1102
|
# authentication setting
|
@@ -1122,7 +1123,7 @@ class PaymentRequestApi:
|
|
1122
1123
|
|
1123
1124
|
|
1124
1125
|
@validate_call
|
1125
|
-
def
|
1126
|
+
def payment_request_retrieve(
|
1126
1127
|
self,
|
1127
1128
|
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1128
1129
|
_request_timeout: Union[
|
@@ -1137,10 +1138,10 @@ class PaymentRequestApi:
|
|
1137
1138
|
_content_type: Optional[StrictStr] = None,
|
1138
1139
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1139
1140
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1140
|
-
) ->
|
1141
|
-
"""
|
1141
|
+
) -> PaymentRequest:
|
1142
|
+
"""Retrieve
|
1142
1143
|
|
1143
|
-
|
1144
|
+
Recovers the payment request resource by its id
|
1144
1145
|
|
1145
1146
|
:param id: Payment request primary identifier (required)
|
1146
1147
|
:type id: str
|
@@ -1166,7 +1167,7 @@ class PaymentRequestApi:
|
|
1166
1167
|
:return: Returns the result object.
|
1167
1168
|
""" # noqa: E501
|
1168
1169
|
|
1169
|
-
_param = self.
|
1170
|
+
_param = self._payment_request_retrieve_serialize(
|
1170
1171
|
id=id,
|
1171
1172
|
_request_auth=_request_auth,
|
1172
1173
|
_content_type=_content_type,
|
@@ -1175,7 +1176,8 @@ class PaymentRequestApi:
|
|
1175
1176
|
)
|
1176
1177
|
|
1177
1178
|
_response_types_map: Dict[str, Optional[str]] = {
|
1178
|
-
'200': "
|
1179
|
+
'200': "PaymentRequest",
|
1180
|
+
'404': "GlobalErrorResponse",
|
1179
1181
|
}
|
1180
1182
|
response_data = self.api_client.call_api(
|
1181
1183
|
*_param,
|
@@ -1189,7 +1191,7 @@ class PaymentRequestApi:
|
|
1189
1191
|
|
1190
1192
|
|
1191
1193
|
@validate_call
|
1192
|
-
def
|
1194
|
+
def payment_request_retrieve_with_http_info(
|
1193
1195
|
self,
|
1194
1196
|
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1195
1197
|
_request_timeout: Union[
|
@@ -1204,10 +1206,10 @@ class PaymentRequestApi:
|
|
1204
1206
|
_content_type: Optional[StrictStr] = None,
|
1205
1207
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1206
1208
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1207
|
-
) -> ApiResponse[
|
1208
|
-
"""
|
1209
|
+
) -> ApiResponse[PaymentRequest]:
|
1210
|
+
"""Retrieve
|
1209
1211
|
|
1210
|
-
|
1212
|
+
Recovers the payment request resource by its id
|
1211
1213
|
|
1212
1214
|
:param id: Payment request primary identifier (required)
|
1213
1215
|
:type id: str
|
@@ -1233,7 +1235,7 @@ class PaymentRequestApi:
|
|
1233
1235
|
:return: Returns the result object.
|
1234
1236
|
""" # noqa: E501
|
1235
1237
|
|
1236
|
-
_param = self.
|
1238
|
+
_param = self._payment_request_retrieve_serialize(
|
1237
1239
|
id=id,
|
1238
1240
|
_request_auth=_request_auth,
|
1239
1241
|
_content_type=_content_type,
|
@@ -1242,7 +1244,8 @@ class PaymentRequestApi:
|
|
1242
1244
|
)
|
1243
1245
|
|
1244
1246
|
_response_types_map: Dict[str, Optional[str]] = {
|
1245
|
-
'200': "
|
1247
|
+
'200': "PaymentRequest",
|
1248
|
+
'404': "GlobalErrorResponse",
|
1246
1249
|
}
|
1247
1250
|
response_data = self.api_client.call_api(
|
1248
1251
|
*_param,
|
@@ -1256,7 +1259,7 @@ class PaymentRequestApi:
|
|
1256
1259
|
|
1257
1260
|
|
1258
1261
|
@validate_call
|
1259
|
-
def
|
1262
|
+
def payment_request_retrieve_without_preload_content(
|
1260
1263
|
self,
|
1261
1264
|
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1262
1265
|
_request_timeout: Union[
|
@@ -1272,9 +1275,9 @@ class PaymentRequestApi:
|
|
1272
1275
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1273
1276
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1274
1277
|
) -> RESTResponseType:
|
1275
|
-
"""
|
1278
|
+
"""Retrieve
|
1276
1279
|
|
1277
|
-
|
1280
|
+
Recovers the payment request resource by its id
|
1278
1281
|
|
1279
1282
|
:param id: Payment request primary identifier (required)
|
1280
1283
|
:type id: str
|
@@ -1300,7 +1303,7 @@ class PaymentRequestApi:
|
|
1300
1303
|
:return: Returns the result object.
|
1301
1304
|
""" # noqa: E501
|
1302
1305
|
|
1303
|
-
_param = self.
|
1306
|
+
_param = self._payment_request_retrieve_serialize(
|
1304
1307
|
id=id,
|
1305
1308
|
_request_auth=_request_auth,
|
1306
1309
|
_content_type=_content_type,
|
@@ -1309,7 +1312,8 @@ class PaymentRequestApi:
|
|
1309
1312
|
)
|
1310
1313
|
|
1311
1314
|
_response_types_map: Dict[str, Optional[str]] = {
|
1312
|
-
'200': "
|
1315
|
+
'200': "PaymentRequest",
|
1316
|
+
'404': "GlobalErrorResponse",
|
1313
1317
|
}
|
1314
1318
|
response_data = self.api_client.call_api(
|
1315
1319
|
*_param,
|
@@ -1318,7 +1322,7 @@ class PaymentRequestApi:
|
|
1318
1322
|
return response_data.response
|
1319
1323
|
|
1320
1324
|
|
1321
|
-
def
|
1325
|
+
def _payment_request_retrieve_serialize(
|
1322
1326
|
self,
|
1323
1327
|
id,
|
1324
1328
|
_request_auth,
|
@@ -1349,33 +1353,22 @@ class PaymentRequestApi:
|
|
1349
1353
|
|
1350
1354
|
|
1351
1355
|
# set the HTTP header `Accept`
|
1352
|
-
|
1353
|
-
[
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
# set the HTTP header `Content-Type`
|
1359
|
-
if _content_type:
|
1360
|
-
_header_params['Content-Type'] = _content_type
|
1361
|
-
else:
|
1362
|
-
_default_content_type = (
|
1363
|
-
self.api_client.select_header_content_type(
|
1364
|
-
[
|
1365
|
-
'application/json'
|
1366
|
-
]
|
1367
|
-
)
|
1356
|
+
if 'Accept' not in _header_params:
|
1357
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1358
|
+
[
|
1359
|
+
'application/json'
|
1360
|
+
]
|
1368
1361
|
)
|
1369
|
-
|
1370
|
-
_header_params['Content-Type'] = _default_content_type
|
1362
|
+
|
1371
1363
|
|
1372
1364
|
# authentication setting
|
1373
1365
|
_auth_settings: List[str] = [
|
1366
|
+
'default'
|
1374
1367
|
]
|
1375
1368
|
|
1376
1369
|
return self.api_client.param_serialize(
|
1377
|
-
method='
|
1378
|
-
resource_path='/payments/requests/{id}
|
1370
|
+
method='GET',
|
1371
|
+
resource_path='/payments/requests/{id}',
|
1379
1372
|
path_params=_path_params,
|
1380
1373
|
query_params=_query_params,
|
1381
1374
|
header_params=_header_params,
|
@@ -1392,9 +1385,10 @@ class PaymentRequestApi:
|
|
1392
1385
|
|
1393
1386
|
|
1394
1387
|
@validate_call
|
1395
|
-
def
|
1388
|
+
def payment_request_update(
|
1396
1389
|
self,
|
1397
1390
|
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1391
|
+
update_payment_request: UpdatePaymentRequest,
|
1398
1392
|
_request_timeout: Union[
|
1399
1393
|
None,
|
1400
1394
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1407,13 +1401,15 @@ class PaymentRequestApi:
|
|
1407
1401
|
_content_type: Optional[StrictStr] = None,
|
1408
1402
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1409
1403
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1410
|
-
) ->
|
1411
|
-
"""
|
1404
|
+
) -> CreatePaymentRequest:
|
1405
|
+
"""Update
|
1412
1406
|
|
1413
|
-
|
1407
|
+
Updates the payment request resource
|
1414
1408
|
|
1415
1409
|
:param id: Payment request primary identifier (required)
|
1416
1410
|
:type id: str
|
1411
|
+
:param update_payment_request: (required)
|
1412
|
+
:type update_payment_request: UpdatePaymentRequest
|
1417
1413
|
:param _request_timeout: timeout setting for this request. If one
|
1418
1414
|
number provided, it will be total request
|
1419
1415
|
timeout. It can also be a pair (tuple) of
|
@@ -1436,8 +1432,9 @@ class PaymentRequestApi:
|
|
1436
1432
|
:return: Returns the result object.
|
1437
1433
|
""" # noqa: E501
|
1438
1434
|
|
1439
|
-
_param = self.
|
1435
|
+
_param = self._payment_request_update_serialize(
|
1440
1436
|
id=id,
|
1437
|
+
update_payment_request=update_payment_request,
|
1441
1438
|
_request_auth=_request_auth,
|
1442
1439
|
_content_type=_content_type,
|
1443
1440
|
_headers=_headers,
|
@@ -1445,7 +1442,7 @@ class PaymentRequestApi:
|
|
1445
1442
|
)
|
1446
1443
|
|
1447
1444
|
_response_types_map: Dict[str, Optional[str]] = {
|
1448
|
-
'200': "
|
1445
|
+
'200': "CreatePaymentRequest",
|
1449
1446
|
}
|
1450
1447
|
response_data = self.api_client.call_api(
|
1451
1448
|
*_param,
|
@@ -1459,9 +1456,10 @@ class PaymentRequestApi:
|
|
1459
1456
|
|
1460
1457
|
|
1461
1458
|
@validate_call
|
1462
|
-
def
|
1459
|
+
def payment_request_update_with_http_info(
|
1463
1460
|
self,
|
1464
1461
|
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1462
|
+
update_payment_request: UpdatePaymentRequest,
|
1465
1463
|
_request_timeout: Union[
|
1466
1464
|
None,
|
1467
1465
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1474,13 +1472,15 @@ class PaymentRequestApi:
|
|
1474
1472
|
_content_type: Optional[StrictStr] = None,
|
1475
1473
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1476
1474
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1477
|
-
) -> ApiResponse[
|
1478
|
-
"""
|
1475
|
+
) -> ApiResponse[CreatePaymentRequest]:
|
1476
|
+
"""Update
|
1479
1477
|
|
1480
|
-
|
1478
|
+
Updates the payment request resource
|
1481
1479
|
|
1482
1480
|
:param id: Payment request primary identifier (required)
|
1483
1481
|
:type id: str
|
1482
|
+
:param update_payment_request: (required)
|
1483
|
+
:type update_payment_request: UpdatePaymentRequest
|
1484
1484
|
:param _request_timeout: timeout setting for this request. If one
|
1485
1485
|
number provided, it will be total request
|
1486
1486
|
timeout. It can also be a pair (tuple) of
|
@@ -1503,8 +1503,9 @@ class PaymentRequestApi:
|
|
1503
1503
|
:return: Returns the result object.
|
1504
1504
|
""" # noqa: E501
|
1505
1505
|
|
1506
|
-
_param = self.
|
1506
|
+
_param = self._payment_request_update_serialize(
|
1507
1507
|
id=id,
|
1508
|
+
update_payment_request=update_payment_request,
|
1508
1509
|
_request_auth=_request_auth,
|
1509
1510
|
_content_type=_content_type,
|
1510
1511
|
_headers=_headers,
|
@@ -1512,7 +1513,7 @@ class PaymentRequestApi:
|
|
1512
1513
|
)
|
1513
1514
|
|
1514
1515
|
_response_types_map: Dict[str, Optional[str]] = {
|
1515
|
-
'200': "
|
1516
|
+
'200': "CreatePaymentRequest",
|
1516
1517
|
}
|
1517
1518
|
response_data = self.api_client.call_api(
|
1518
1519
|
*_param,
|
@@ -1526,9 +1527,10 @@ class PaymentRequestApi:
|
|
1526
1527
|
|
1527
1528
|
|
1528
1529
|
@validate_call
|
1529
|
-
def
|
1530
|
+
def payment_request_update_without_preload_content(
|
1530
1531
|
self,
|
1531
1532
|
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1533
|
+
update_payment_request: UpdatePaymentRequest,
|
1532
1534
|
_request_timeout: Union[
|
1533
1535
|
None,
|
1534
1536
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1542,12 +1544,14 @@ class PaymentRequestApi:
|
|
1542
1544
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1543
1545
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1544
1546
|
) -> RESTResponseType:
|
1545
|
-
"""
|
1547
|
+
"""Update
|
1546
1548
|
|
1547
|
-
|
1549
|
+
Updates the payment request resource
|
1548
1550
|
|
1549
1551
|
:param id: Payment request primary identifier (required)
|
1550
1552
|
:type id: str
|
1553
|
+
:param update_payment_request: (required)
|
1554
|
+
:type update_payment_request: UpdatePaymentRequest
|
1551
1555
|
:param _request_timeout: timeout setting for this request. If one
|
1552
1556
|
number provided, it will be total request
|
1553
1557
|
timeout. It can also be a pair (tuple) of
|
@@ -1570,8 +1574,9 @@ class PaymentRequestApi:
|
|
1570
1574
|
:return: Returns the result object.
|
1571
1575
|
""" # noqa: E501
|
1572
1576
|
|
1573
|
-
_param = self.
|
1577
|
+
_param = self._payment_request_update_serialize(
|
1574
1578
|
id=id,
|
1579
|
+
update_payment_request=update_payment_request,
|
1575
1580
|
_request_auth=_request_auth,
|
1576
1581
|
_content_type=_content_type,
|
1577
1582
|
_headers=_headers,
|
@@ -1579,7 +1584,7 @@ class PaymentRequestApi:
|
|
1579
1584
|
)
|
1580
1585
|
|
1581
1586
|
_response_types_map: Dict[str, Optional[str]] = {
|
1582
|
-
'200': "
|
1587
|
+
'200': "CreatePaymentRequest",
|
1583
1588
|
}
|
1584
1589
|
response_data = self.api_client.call_api(
|
1585
1590
|
*_param,
|
@@ -1588,9 +1593,10 @@ class PaymentRequestApi:
|
|
1588
1593
|
return response_data.response
|
1589
1594
|
|
1590
1595
|
|
1591
|
-
def
|
1596
|
+
def _payment_request_update_serialize(
|
1592
1597
|
self,
|
1593
1598
|
id,
|
1599
|
+
update_payment_request,
|
1594
1600
|
_request_auth,
|
1595
1601
|
_content_type,
|
1596
1602
|
_headers,
|
@@ -1616,23 +1622,40 @@ class PaymentRequestApi:
|
|
1616
1622
|
# process the header parameters
|
1617
1623
|
# process the form parameters
|
1618
1624
|
# process the body parameter
|
1625
|
+
if update_payment_request is not None:
|
1626
|
+
_body_params = update_payment_request
|
1619
1627
|
|
1620
1628
|
|
1621
1629
|
# set the HTTP header `Accept`
|
1622
|
-
|
1623
|
-
[
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1630
|
+
if 'Accept' not in _header_params:
|
1631
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1632
|
+
[
|
1633
|
+
'application/json'
|
1634
|
+
]
|
1635
|
+
)
|
1627
1636
|
|
1637
|
+
# set the HTTP header `Content-Type`
|
1638
|
+
if _content_type:
|
1639
|
+
_header_params['Content-Type'] = _content_type
|
1640
|
+
else:
|
1641
|
+
_default_content_type = (
|
1642
|
+
self.api_client.select_header_content_type(
|
1643
|
+
[
|
1644
|
+
'application/json'
|
1645
|
+
]
|
1646
|
+
)
|
1647
|
+
)
|
1648
|
+
if _default_content_type is not None:
|
1649
|
+
_header_params['Content-Type'] = _default_content_type
|
1628
1650
|
|
1629
1651
|
# authentication setting
|
1630
1652
|
_auth_settings: List[str] = [
|
1653
|
+
'default'
|
1631
1654
|
]
|
1632
1655
|
|
1633
1656
|
return self.api_client.param_serialize(
|
1634
|
-
method='
|
1635
|
-
resource_path='/payments/requests/{id}
|
1657
|
+
method='PATCH',
|
1658
|
+
resource_path='/payments/requests/{id}',
|
1636
1659
|
path_params=_path_params,
|
1637
1660
|
query_params=_query_params,
|
1638
1661
|
header_params=_header_params,
|
@@ -1649,10 +1672,8 @@ class PaymentRequestApi:
|
|
1649
1672
|
|
1650
1673
|
|
1651
1674
|
@validate_call
|
1652
|
-
def
|
1675
|
+
def payment_requests_list(
|
1653
1676
|
self,
|
1654
|
-
payment_request_id: StrictStr,
|
1655
|
-
payment_receipt_id: StrictStr,
|
1656
1677
|
_request_timeout: Union[
|
1657
1678
|
None,
|
1658
1679
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1665,15 +1686,11 @@ class PaymentRequestApi:
|
|
1665
1686
|
_content_type: Optional[StrictStr] = None,
|
1666
1687
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1667
1688
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1668
|
-
) ->
|
1669
|
-
"""
|
1689
|
+
) -> PaymentRequestsList200Response:
|
1690
|
+
"""List
|
1670
1691
|
|
1671
|
-
Recovers
|
1692
|
+
Recovers all created payment requests
|
1672
1693
|
|
1673
|
-
:param payment_request_id: (required)
|
1674
|
-
:type payment_request_id: str
|
1675
|
-
:param payment_receipt_id: (required)
|
1676
|
-
:type payment_receipt_id: str
|
1677
1694
|
:param _request_timeout: timeout setting for this request. If one
|
1678
1695
|
number provided, it will be total request
|
1679
1696
|
timeout. It can also be a pair (tuple) of
|
@@ -1696,9 +1713,7 @@ class PaymentRequestApi:
|
|
1696
1713
|
:return: Returns the result object.
|
1697
1714
|
""" # noqa: E501
|
1698
1715
|
|
1699
|
-
_param = self.
|
1700
|
-
payment_request_id=payment_request_id,
|
1701
|
-
payment_receipt_id=payment_receipt_id,
|
1716
|
+
_param = self._payment_requests_list_serialize(
|
1702
1717
|
_request_auth=_request_auth,
|
1703
1718
|
_content_type=_content_type,
|
1704
1719
|
_headers=_headers,
|
@@ -1706,7 +1721,7 @@ class PaymentRequestApi:
|
|
1706
1721
|
)
|
1707
1722
|
|
1708
1723
|
_response_types_map: Dict[str, Optional[str]] = {
|
1709
|
-
'200': "
|
1724
|
+
'200': "PaymentRequestsList200Response",
|
1710
1725
|
}
|
1711
1726
|
response_data = self.api_client.call_api(
|
1712
1727
|
*_param,
|
@@ -1720,10 +1735,8 @@ class PaymentRequestApi:
|
|
1720
1735
|
|
1721
1736
|
|
1722
1737
|
@validate_call
|
1723
|
-
def
|
1738
|
+
def payment_requests_list_with_http_info(
|
1724
1739
|
self,
|
1725
|
-
payment_request_id: StrictStr,
|
1726
|
-
payment_receipt_id: StrictStr,
|
1727
1740
|
_request_timeout: Union[
|
1728
1741
|
None,
|
1729
1742
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1736,15 +1749,11 @@ class PaymentRequestApi:
|
|
1736
1749
|
_content_type: Optional[StrictStr] = None,
|
1737
1750
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1738
1751
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1739
|
-
) -> ApiResponse[
|
1740
|
-
"""
|
1752
|
+
) -> ApiResponse[PaymentRequestsList200Response]:
|
1753
|
+
"""List
|
1741
1754
|
|
1742
|
-
Recovers
|
1755
|
+
Recovers all created payment requests
|
1743
1756
|
|
1744
|
-
:param payment_request_id: (required)
|
1745
|
-
:type payment_request_id: str
|
1746
|
-
:param payment_receipt_id: (required)
|
1747
|
-
:type payment_receipt_id: str
|
1748
1757
|
:param _request_timeout: timeout setting for this request. If one
|
1749
1758
|
number provided, it will be total request
|
1750
1759
|
timeout. It can also be a pair (tuple) of
|
@@ -1767,9 +1776,7 @@ class PaymentRequestApi:
|
|
1767
1776
|
:return: Returns the result object.
|
1768
1777
|
""" # noqa: E501
|
1769
1778
|
|
1770
|
-
_param = self.
|
1771
|
-
payment_request_id=payment_request_id,
|
1772
|
-
payment_receipt_id=payment_receipt_id,
|
1779
|
+
_param = self._payment_requests_list_serialize(
|
1773
1780
|
_request_auth=_request_auth,
|
1774
1781
|
_content_type=_content_type,
|
1775
1782
|
_headers=_headers,
|
@@ -1777,7 +1784,7 @@ class PaymentRequestApi:
|
|
1777
1784
|
)
|
1778
1785
|
|
1779
1786
|
_response_types_map: Dict[str, Optional[str]] = {
|
1780
|
-
'200': "
|
1787
|
+
'200': "PaymentRequestsList200Response",
|
1781
1788
|
}
|
1782
1789
|
response_data = self.api_client.call_api(
|
1783
1790
|
*_param,
|
@@ -1791,10 +1798,8 @@ class PaymentRequestApi:
|
|
1791
1798
|
|
1792
1799
|
|
1793
1800
|
@validate_call
|
1794
|
-
def
|
1801
|
+
def payment_requests_list_without_preload_content(
|
1795
1802
|
self,
|
1796
|
-
payment_request_id: StrictStr,
|
1797
|
-
payment_receipt_id: StrictStr,
|
1798
1803
|
_request_timeout: Union[
|
1799
1804
|
None,
|
1800
1805
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1808,14 +1813,10 @@ class PaymentRequestApi:
|
|
1808
1813
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1809
1814
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1810
1815
|
) -> RESTResponseType:
|
1811
|
-
"""
|
1816
|
+
"""List
|
1812
1817
|
|
1813
|
-
Recovers
|
1818
|
+
Recovers all created payment requests
|
1814
1819
|
|
1815
|
-
:param payment_request_id: (required)
|
1816
|
-
:type payment_request_id: str
|
1817
|
-
:param payment_receipt_id: (required)
|
1818
|
-
:type payment_receipt_id: str
|
1819
1820
|
:param _request_timeout: timeout setting for this request. If one
|
1820
1821
|
number provided, it will be total request
|
1821
1822
|
timeout. It can also be a pair (tuple) of
|
@@ -1838,9 +1839,7 @@ class PaymentRequestApi:
|
|
1838
1839
|
:return: Returns the result object.
|
1839
1840
|
""" # noqa: E501
|
1840
1841
|
|
1841
|
-
_param = self.
|
1842
|
-
payment_request_id=payment_request_id,
|
1843
|
-
payment_receipt_id=payment_receipt_id,
|
1842
|
+
_param = self._payment_requests_list_serialize(
|
1844
1843
|
_request_auth=_request_auth,
|
1845
1844
|
_content_type=_content_type,
|
1846
1845
|
_headers=_headers,
|
@@ -1848,7 +1847,7 @@ class PaymentRequestApi:
|
|
1848
1847
|
)
|
1849
1848
|
|
1850
1849
|
_response_types_map: Dict[str, Optional[str]] = {
|
1851
|
-
'200': "
|
1850
|
+
'200': "PaymentRequestsList200Response",
|
1852
1851
|
}
|
1853
1852
|
response_data = self.api_client.call_api(
|
1854
1853
|
*_param,
|
@@ -1857,10 +1856,8 @@ class PaymentRequestApi:
|
|
1857
1856
|
return response_data.response
|
1858
1857
|
|
1859
1858
|
|
1860
|
-
def
|
1859
|
+
def _payment_requests_list_serialize(
|
1861
1860
|
self,
|
1862
|
-
payment_request_id,
|
1863
|
-
payment_receipt_id,
|
1864
1861
|
_request_auth,
|
1865
1862
|
_content_type,
|
1866
1863
|
_headers,
|
@@ -1880,10 +1877,6 @@ class PaymentRequestApi:
|
|
1880
1877
|
_body_params: Optional[bytes] = None
|
1881
1878
|
|
1882
1879
|
# process the path parameters
|
1883
|
-
if payment_request_id is not None:
|
1884
|
-
_path_params['payment-request-id'] = payment_request_id
|
1885
|
-
if payment_receipt_id is not None:
|
1886
|
-
_path_params['payment-receipt-id'] = payment_receipt_id
|
1887
1880
|
# process the query parameters
|
1888
1881
|
# process the header parameters
|
1889
1882
|
# process the form parameters
|
@@ -1891,805 +1884,17 @@ class PaymentRequestApi:
|
|
1891
1884
|
|
1892
1885
|
|
1893
1886
|
# set the HTTP header `Accept`
|
1894
|
-
|
1895
|
-
[
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1887
|
+
if 'Accept' not in _header_params:
|
1888
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1889
|
+
[
|
1890
|
+
'application/json'
|
1891
|
+
]
|
1892
|
+
)
|
1899
1893
|
|
1900
1894
|
|
1901
1895
|
# authentication setting
|
1902
1896
|
_auth_settings: List[str] = [
|
1903
|
-
|
1904
|
-
|
1905
|
-
return self.api_client.param_serialize(
|
1906
|
-
method='GET',
|
1907
|
-
resource_path='/payments/requests/{payment-request-id}/receipts/{payment-receipt-id}',
|
1908
|
-
path_params=_path_params,
|
1909
|
-
query_params=_query_params,
|
1910
|
-
header_params=_header_params,
|
1911
|
-
body=_body_params,
|
1912
|
-
post_params=_form_params,
|
1913
|
-
files=_files,
|
1914
|
-
auth_settings=_auth_settings,
|
1915
|
-
collection_formats=_collection_formats,
|
1916
|
-
_host=_host,
|
1917
|
-
_request_auth=_request_auth
|
1918
|
-
)
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
@validate_call
|
1924
|
-
def payment_request_retrieve(
|
1925
|
-
self,
|
1926
|
-
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1927
|
-
_request_timeout: Union[
|
1928
|
-
None,
|
1929
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1930
|
-
Tuple[
|
1931
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1932
|
-
Annotated[StrictFloat, Field(gt=0)]
|
1933
|
-
]
|
1934
|
-
] = None,
|
1935
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1936
|
-
_content_type: Optional[StrictStr] = None,
|
1937
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1938
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1939
|
-
) -> PaymentRequest:
|
1940
|
-
"""Retrieve
|
1941
|
-
|
1942
|
-
Recovers the payment request resource by its id
|
1943
|
-
|
1944
|
-
:param id: Payment request primary identifier (required)
|
1945
|
-
:type id: str
|
1946
|
-
:param _request_timeout: timeout setting for this request. If one
|
1947
|
-
number provided, it will be total request
|
1948
|
-
timeout. It can also be a pair (tuple) of
|
1949
|
-
(connection, read) timeouts.
|
1950
|
-
:type _request_timeout: int, tuple(int, int), optional
|
1951
|
-
:param _request_auth: set to override the auth_settings for an a single
|
1952
|
-
request; this effectively ignores the
|
1953
|
-
authentication in the spec for a single request.
|
1954
|
-
:type _request_auth: dict, optional
|
1955
|
-
:param _content_type: force content-type for the request.
|
1956
|
-
:type _content_type: str, Optional
|
1957
|
-
:param _headers: set to override the headers for a single
|
1958
|
-
request; this effectively ignores the headers
|
1959
|
-
in the spec for a single request.
|
1960
|
-
:type _headers: dict, optional
|
1961
|
-
:param _host_index: set to override the host_index for a single
|
1962
|
-
request; this effectively ignores the host_index
|
1963
|
-
in the spec for a single request.
|
1964
|
-
:type _host_index: int, optional
|
1965
|
-
:return: Returns the result object.
|
1966
|
-
""" # noqa: E501
|
1967
|
-
|
1968
|
-
_param = self._payment_request_retrieve_serialize(
|
1969
|
-
id=id,
|
1970
|
-
_request_auth=_request_auth,
|
1971
|
-
_content_type=_content_type,
|
1972
|
-
_headers=_headers,
|
1973
|
-
_host_index=_host_index
|
1974
|
-
)
|
1975
|
-
|
1976
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
1977
|
-
'200': "PaymentRequest",
|
1978
|
-
'404': "GlobalErrorResponse",
|
1979
|
-
}
|
1980
|
-
response_data = self.api_client.call_api(
|
1981
|
-
*_param,
|
1982
|
-
_request_timeout=_request_timeout
|
1983
|
-
)
|
1984
|
-
response_data.read()
|
1985
|
-
return self.api_client.response_deserialize(
|
1986
|
-
response_data=response_data,
|
1987
|
-
response_types_map=_response_types_map,
|
1988
|
-
).data
|
1989
|
-
|
1990
|
-
|
1991
|
-
@validate_call
|
1992
|
-
def payment_request_retrieve_with_http_info(
|
1993
|
-
self,
|
1994
|
-
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
1995
|
-
_request_timeout: Union[
|
1996
|
-
None,
|
1997
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1998
|
-
Tuple[
|
1999
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2000
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2001
|
-
]
|
2002
|
-
] = None,
|
2003
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2004
|
-
_content_type: Optional[StrictStr] = None,
|
2005
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2006
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2007
|
-
) -> ApiResponse[PaymentRequest]:
|
2008
|
-
"""Retrieve
|
2009
|
-
|
2010
|
-
Recovers the payment request resource by its id
|
2011
|
-
|
2012
|
-
:param id: Payment request primary identifier (required)
|
2013
|
-
:type id: str
|
2014
|
-
:param _request_timeout: timeout setting for this request. If one
|
2015
|
-
number provided, it will be total request
|
2016
|
-
timeout. It can also be a pair (tuple) of
|
2017
|
-
(connection, read) timeouts.
|
2018
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2019
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2020
|
-
request; this effectively ignores the
|
2021
|
-
authentication in the spec for a single request.
|
2022
|
-
:type _request_auth: dict, optional
|
2023
|
-
:param _content_type: force content-type for the request.
|
2024
|
-
:type _content_type: str, Optional
|
2025
|
-
:param _headers: set to override the headers for a single
|
2026
|
-
request; this effectively ignores the headers
|
2027
|
-
in the spec for a single request.
|
2028
|
-
:type _headers: dict, optional
|
2029
|
-
:param _host_index: set to override the host_index for a single
|
2030
|
-
request; this effectively ignores the host_index
|
2031
|
-
in the spec for a single request.
|
2032
|
-
:type _host_index: int, optional
|
2033
|
-
:return: Returns the result object.
|
2034
|
-
""" # noqa: E501
|
2035
|
-
|
2036
|
-
_param = self._payment_request_retrieve_serialize(
|
2037
|
-
id=id,
|
2038
|
-
_request_auth=_request_auth,
|
2039
|
-
_content_type=_content_type,
|
2040
|
-
_headers=_headers,
|
2041
|
-
_host_index=_host_index
|
2042
|
-
)
|
2043
|
-
|
2044
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2045
|
-
'200': "PaymentRequest",
|
2046
|
-
'404': "GlobalErrorResponse",
|
2047
|
-
}
|
2048
|
-
response_data = self.api_client.call_api(
|
2049
|
-
*_param,
|
2050
|
-
_request_timeout=_request_timeout
|
2051
|
-
)
|
2052
|
-
response_data.read()
|
2053
|
-
return self.api_client.response_deserialize(
|
2054
|
-
response_data=response_data,
|
2055
|
-
response_types_map=_response_types_map,
|
2056
|
-
)
|
2057
|
-
|
2058
|
-
|
2059
|
-
@validate_call
|
2060
|
-
def payment_request_retrieve_without_preload_content(
|
2061
|
-
self,
|
2062
|
-
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
2063
|
-
_request_timeout: Union[
|
2064
|
-
None,
|
2065
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2066
|
-
Tuple[
|
2067
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2068
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2069
|
-
]
|
2070
|
-
] = None,
|
2071
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2072
|
-
_content_type: Optional[StrictStr] = None,
|
2073
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2074
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2075
|
-
) -> RESTResponseType:
|
2076
|
-
"""Retrieve
|
2077
|
-
|
2078
|
-
Recovers the payment request resource by its id
|
2079
|
-
|
2080
|
-
:param id: Payment request primary identifier (required)
|
2081
|
-
:type id: str
|
2082
|
-
:param _request_timeout: timeout setting for this request. If one
|
2083
|
-
number provided, it will be total request
|
2084
|
-
timeout. It can also be a pair (tuple) of
|
2085
|
-
(connection, read) timeouts.
|
2086
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2087
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2088
|
-
request; this effectively ignores the
|
2089
|
-
authentication in the spec for a single request.
|
2090
|
-
:type _request_auth: dict, optional
|
2091
|
-
:param _content_type: force content-type for the request.
|
2092
|
-
:type _content_type: str, Optional
|
2093
|
-
:param _headers: set to override the headers for a single
|
2094
|
-
request; this effectively ignores the headers
|
2095
|
-
in the spec for a single request.
|
2096
|
-
:type _headers: dict, optional
|
2097
|
-
:param _host_index: set to override the host_index for a single
|
2098
|
-
request; this effectively ignores the host_index
|
2099
|
-
in the spec for a single request.
|
2100
|
-
:type _host_index: int, optional
|
2101
|
-
:return: Returns the result object.
|
2102
|
-
""" # noqa: E501
|
2103
|
-
|
2104
|
-
_param = self._payment_request_retrieve_serialize(
|
2105
|
-
id=id,
|
2106
|
-
_request_auth=_request_auth,
|
2107
|
-
_content_type=_content_type,
|
2108
|
-
_headers=_headers,
|
2109
|
-
_host_index=_host_index
|
2110
|
-
)
|
2111
|
-
|
2112
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2113
|
-
'200': "PaymentRequest",
|
2114
|
-
'404': "GlobalErrorResponse",
|
2115
|
-
}
|
2116
|
-
response_data = self.api_client.call_api(
|
2117
|
-
*_param,
|
2118
|
-
_request_timeout=_request_timeout
|
2119
|
-
)
|
2120
|
-
return response_data.response
|
2121
|
-
|
2122
|
-
|
2123
|
-
def _payment_request_retrieve_serialize(
|
2124
|
-
self,
|
2125
|
-
id,
|
2126
|
-
_request_auth,
|
2127
|
-
_content_type,
|
2128
|
-
_headers,
|
2129
|
-
_host_index,
|
2130
|
-
) -> RequestSerialized:
|
2131
|
-
|
2132
|
-
_host = None
|
2133
|
-
|
2134
|
-
_collection_formats: Dict[str, str] = {
|
2135
|
-
}
|
2136
|
-
|
2137
|
-
_path_params: Dict[str, str] = {}
|
2138
|
-
_query_params: List[Tuple[str, str]] = []
|
2139
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2140
|
-
_form_params: List[Tuple[str, str]] = []
|
2141
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
2142
|
-
_body_params: Optional[bytes] = None
|
2143
|
-
|
2144
|
-
# process the path parameters
|
2145
|
-
if id is not None:
|
2146
|
-
_path_params['id'] = id
|
2147
|
-
# process the query parameters
|
2148
|
-
# process the header parameters
|
2149
|
-
# process the form parameters
|
2150
|
-
# process the body parameter
|
2151
|
-
|
2152
|
-
|
2153
|
-
# set the HTTP header `Accept`
|
2154
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
2155
|
-
[
|
2156
|
-
'application/json'
|
2157
|
-
]
|
2158
|
-
)
|
2159
|
-
|
2160
|
-
|
2161
|
-
# authentication setting
|
2162
|
-
_auth_settings: List[str] = [
|
2163
|
-
'default'
|
2164
|
-
]
|
2165
|
-
|
2166
|
-
return self.api_client.param_serialize(
|
2167
|
-
method='GET',
|
2168
|
-
resource_path='/payments/requests/{id}',
|
2169
|
-
path_params=_path_params,
|
2170
|
-
query_params=_query_params,
|
2171
|
-
header_params=_header_params,
|
2172
|
-
body=_body_params,
|
2173
|
-
post_params=_form_params,
|
2174
|
-
files=_files,
|
2175
|
-
auth_settings=_auth_settings,
|
2176
|
-
collection_formats=_collection_formats,
|
2177
|
-
_host=_host,
|
2178
|
-
_request_auth=_request_auth
|
2179
|
-
)
|
2180
|
-
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
@validate_call
|
2185
|
-
def payment_request_update(
|
2186
|
-
self,
|
2187
|
-
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
2188
|
-
update_payment_request: UpdatePaymentRequest,
|
2189
|
-
_request_timeout: Union[
|
2190
|
-
None,
|
2191
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2192
|
-
Tuple[
|
2193
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2194
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2195
|
-
]
|
2196
|
-
] = None,
|
2197
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2198
|
-
_content_type: Optional[StrictStr] = None,
|
2199
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2200
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2201
|
-
) -> CreatePaymentRequest:
|
2202
|
-
"""Update
|
2203
|
-
|
2204
|
-
Updates the payment request resource
|
2205
|
-
|
2206
|
-
:param id: Payment request primary identifier (required)
|
2207
|
-
:type id: str
|
2208
|
-
:param update_payment_request: (required)
|
2209
|
-
:type update_payment_request: UpdatePaymentRequest
|
2210
|
-
:param _request_timeout: timeout setting for this request. If one
|
2211
|
-
number provided, it will be total request
|
2212
|
-
timeout. It can also be a pair (tuple) of
|
2213
|
-
(connection, read) timeouts.
|
2214
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2215
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2216
|
-
request; this effectively ignores the
|
2217
|
-
authentication in the spec for a single request.
|
2218
|
-
:type _request_auth: dict, optional
|
2219
|
-
:param _content_type: force content-type for the request.
|
2220
|
-
:type _content_type: str, Optional
|
2221
|
-
:param _headers: set to override the headers for a single
|
2222
|
-
request; this effectively ignores the headers
|
2223
|
-
in the spec for a single request.
|
2224
|
-
:type _headers: dict, optional
|
2225
|
-
:param _host_index: set to override the host_index for a single
|
2226
|
-
request; this effectively ignores the host_index
|
2227
|
-
in the spec for a single request.
|
2228
|
-
:type _host_index: int, optional
|
2229
|
-
:return: Returns the result object.
|
2230
|
-
""" # noqa: E501
|
2231
|
-
|
2232
|
-
_param = self._payment_request_update_serialize(
|
2233
|
-
id=id,
|
2234
|
-
update_payment_request=update_payment_request,
|
2235
|
-
_request_auth=_request_auth,
|
2236
|
-
_content_type=_content_type,
|
2237
|
-
_headers=_headers,
|
2238
|
-
_host_index=_host_index
|
2239
|
-
)
|
2240
|
-
|
2241
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2242
|
-
'200': "CreatePaymentRequest",
|
2243
|
-
}
|
2244
|
-
response_data = self.api_client.call_api(
|
2245
|
-
*_param,
|
2246
|
-
_request_timeout=_request_timeout
|
2247
|
-
)
|
2248
|
-
response_data.read()
|
2249
|
-
return self.api_client.response_deserialize(
|
2250
|
-
response_data=response_data,
|
2251
|
-
response_types_map=_response_types_map,
|
2252
|
-
).data
|
2253
|
-
|
2254
|
-
|
2255
|
-
@validate_call
|
2256
|
-
def payment_request_update_with_http_info(
|
2257
|
-
self,
|
2258
|
-
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
2259
|
-
update_payment_request: UpdatePaymentRequest,
|
2260
|
-
_request_timeout: Union[
|
2261
|
-
None,
|
2262
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2263
|
-
Tuple[
|
2264
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2265
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2266
|
-
]
|
2267
|
-
] = None,
|
2268
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2269
|
-
_content_type: Optional[StrictStr] = None,
|
2270
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2271
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2272
|
-
) -> ApiResponse[CreatePaymentRequest]:
|
2273
|
-
"""Update
|
2274
|
-
|
2275
|
-
Updates the payment request resource
|
2276
|
-
|
2277
|
-
:param id: Payment request primary identifier (required)
|
2278
|
-
:type id: str
|
2279
|
-
:param update_payment_request: (required)
|
2280
|
-
:type update_payment_request: UpdatePaymentRequest
|
2281
|
-
:param _request_timeout: timeout setting for this request. If one
|
2282
|
-
number provided, it will be total request
|
2283
|
-
timeout. It can also be a pair (tuple) of
|
2284
|
-
(connection, read) timeouts.
|
2285
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2286
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2287
|
-
request; this effectively ignores the
|
2288
|
-
authentication in the spec for a single request.
|
2289
|
-
:type _request_auth: dict, optional
|
2290
|
-
:param _content_type: force content-type for the request.
|
2291
|
-
:type _content_type: str, Optional
|
2292
|
-
:param _headers: set to override the headers for a single
|
2293
|
-
request; this effectively ignores the headers
|
2294
|
-
in the spec for a single request.
|
2295
|
-
:type _headers: dict, optional
|
2296
|
-
:param _host_index: set to override the host_index for a single
|
2297
|
-
request; this effectively ignores the host_index
|
2298
|
-
in the spec for a single request.
|
2299
|
-
:type _host_index: int, optional
|
2300
|
-
:return: Returns the result object.
|
2301
|
-
""" # noqa: E501
|
2302
|
-
|
2303
|
-
_param = self._payment_request_update_serialize(
|
2304
|
-
id=id,
|
2305
|
-
update_payment_request=update_payment_request,
|
2306
|
-
_request_auth=_request_auth,
|
2307
|
-
_content_type=_content_type,
|
2308
|
-
_headers=_headers,
|
2309
|
-
_host_index=_host_index
|
2310
|
-
)
|
2311
|
-
|
2312
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2313
|
-
'200': "CreatePaymentRequest",
|
2314
|
-
}
|
2315
|
-
response_data = self.api_client.call_api(
|
2316
|
-
*_param,
|
2317
|
-
_request_timeout=_request_timeout
|
2318
|
-
)
|
2319
|
-
response_data.read()
|
2320
|
-
return self.api_client.response_deserialize(
|
2321
|
-
response_data=response_data,
|
2322
|
-
response_types_map=_response_types_map,
|
2323
|
-
)
|
2324
|
-
|
2325
|
-
|
2326
|
-
@validate_call
|
2327
|
-
def payment_request_update_without_preload_content(
|
2328
|
-
self,
|
2329
|
-
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
2330
|
-
update_payment_request: UpdatePaymentRequest,
|
2331
|
-
_request_timeout: Union[
|
2332
|
-
None,
|
2333
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2334
|
-
Tuple[
|
2335
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2336
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2337
|
-
]
|
2338
|
-
] = None,
|
2339
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2340
|
-
_content_type: Optional[StrictStr] = None,
|
2341
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2342
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2343
|
-
) -> RESTResponseType:
|
2344
|
-
"""Update
|
2345
|
-
|
2346
|
-
Updates the payment request resource
|
2347
|
-
|
2348
|
-
:param id: Payment request primary identifier (required)
|
2349
|
-
:type id: str
|
2350
|
-
:param update_payment_request: (required)
|
2351
|
-
:type update_payment_request: UpdatePaymentRequest
|
2352
|
-
:param _request_timeout: timeout setting for this request. If one
|
2353
|
-
number provided, it will be total request
|
2354
|
-
timeout. It can also be a pair (tuple) of
|
2355
|
-
(connection, read) timeouts.
|
2356
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2357
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2358
|
-
request; this effectively ignores the
|
2359
|
-
authentication in the spec for a single request.
|
2360
|
-
:type _request_auth: dict, optional
|
2361
|
-
:param _content_type: force content-type for the request.
|
2362
|
-
:type _content_type: str, Optional
|
2363
|
-
:param _headers: set to override the headers for a single
|
2364
|
-
request; this effectively ignores the headers
|
2365
|
-
in the spec for a single request.
|
2366
|
-
:type _headers: dict, optional
|
2367
|
-
:param _host_index: set to override the host_index for a single
|
2368
|
-
request; this effectively ignores the host_index
|
2369
|
-
in the spec for a single request.
|
2370
|
-
:type _host_index: int, optional
|
2371
|
-
:return: Returns the result object.
|
2372
|
-
""" # noqa: E501
|
2373
|
-
|
2374
|
-
_param = self._payment_request_update_serialize(
|
2375
|
-
id=id,
|
2376
|
-
update_payment_request=update_payment_request,
|
2377
|
-
_request_auth=_request_auth,
|
2378
|
-
_content_type=_content_type,
|
2379
|
-
_headers=_headers,
|
2380
|
-
_host_index=_host_index
|
2381
|
-
)
|
2382
|
-
|
2383
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2384
|
-
'200': "CreatePaymentRequest",
|
2385
|
-
}
|
2386
|
-
response_data = self.api_client.call_api(
|
2387
|
-
*_param,
|
2388
|
-
_request_timeout=_request_timeout
|
2389
|
-
)
|
2390
|
-
return response_data.response
|
2391
|
-
|
2392
|
-
|
2393
|
-
def _payment_request_update_serialize(
|
2394
|
-
self,
|
2395
|
-
id,
|
2396
|
-
update_payment_request,
|
2397
|
-
_request_auth,
|
2398
|
-
_content_type,
|
2399
|
-
_headers,
|
2400
|
-
_host_index,
|
2401
|
-
) -> RequestSerialized:
|
2402
|
-
|
2403
|
-
_host = None
|
2404
|
-
|
2405
|
-
_collection_formats: Dict[str, str] = {
|
2406
|
-
}
|
2407
|
-
|
2408
|
-
_path_params: Dict[str, str] = {}
|
2409
|
-
_query_params: List[Tuple[str, str]] = []
|
2410
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2411
|
-
_form_params: List[Tuple[str, str]] = []
|
2412
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
2413
|
-
_body_params: Optional[bytes] = None
|
2414
|
-
|
2415
|
-
# process the path parameters
|
2416
|
-
if id is not None:
|
2417
|
-
_path_params['id'] = id
|
2418
|
-
# process the query parameters
|
2419
|
-
# process the header parameters
|
2420
|
-
# process the form parameters
|
2421
|
-
# process the body parameter
|
2422
|
-
if update_payment_request is not None:
|
2423
|
-
_body_params = update_payment_request
|
2424
|
-
|
2425
|
-
|
2426
|
-
# set the HTTP header `Accept`
|
2427
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
2428
|
-
[
|
2429
|
-
'application/json'
|
2430
|
-
]
|
2431
|
-
)
|
2432
|
-
|
2433
|
-
# set the HTTP header `Content-Type`
|
2434
|
-
if _content_type:
|
2435
|
-
_header_params['Content-Type'] = _content_type
|
2436
|
-
else:
|
2437
|
-
_default_content_type = (
|
2438
|
-
self.api_client.select_header_content_type(
|
2439
|
-
[
|
2440
|
-
'application/json'
|
2441
|
-
]
|
2442
|
-
)
|
2443
|
-
)
|
2444
|
-
if _default_content_type is not None:
|
2445
|
-
_header_params['Content-Type'] = _default_content_type
|
2446
|
-
|
2447
|
-
# authentication setting
|
2448
|
-
_auth_settings: List[str] = [
|
2449
|
-
'default'
|
2450
|
-
]
|
2451
|
-
|
2452
|
-
return self.api_client.param_serialize(
|
2453
|
-
method='PATCH',
|
2454
|
-
resource_path='/payments/requests/{id}',
|
2455
|
-
path_params=_path_params,
|
2456
|
-
query_params=_query_params,
|
2457
|
-
header_params=_header_params,
|
2458
|
-
body=_body_params,
|
2459
|
-
post_params=_form_params,
|
2460
|
-
files=_files,
|
2461
|
-
auth_settings=_auth_settings,
|
2462
|
-
collection_formats=_collection_formats,
|
2463
|
-
_host=_host,
|
2464
|
-
_request_auth=_request_auth
|
2465
|
-
)
|
2466
|
-
|
2467
|
-
|
2468
|
-
|
2469
|
-
|
2470
|
-
@validate_call
|
2471
|
-
def payment_requests_list(
|
2472
|
-
self,
|
2473
|
-
_request_timeout: Union[
|
2474
|
-
None,
|
2475
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2476
|
-
Tuple[
|
2477
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2478
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2479
|
-
]
|
2480
|
-
] = None,
|
2481
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2482
|
-
_content_type: Optional[StrictStr] = None,
|
2483
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2484
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2485
|
-
) -> PaymentRequestsList200Response:
|
2486
|
-
"""List
|
2487
|
-
|
2488
|
-
Recovers all created payment requests
|
2489
|
-
|
2490
|
-
:param _request_timeout: timeout setting for this request. If one
|
2491
|
-
number provided, it will be total request
|
2492
|
-
timeout. It can also be a pair (tuple) of
|
2493
|
-
(connection, read) timeouts.
|
2494
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2495
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2496
|
-
request; this effectively ignores the
|
2497
|
-
authentication in the spec for a single request.
|
2498
|
-
:type _request_auth: dict, optional
|
2499
|
-
:param _content_type: force content-type for the request.
|
2500
|
-
:type _content_type: str, Optional
|
2501
|
-
:param _headers: set to override the headers for a single
|
2502
|
-
request; this effectively ignores the headers
|
2503
|
-
in the spec for a single request.
|
2504
|
-
:type _headers: dict, optional
|
2505
|
-
:param _host_index: set to override the host_index for a single
|
2506
|
-
request; this effectively ignores the host_index
|
2507
|
-
in the spec for a single request.
|
2508
|
-
:type _host_index: int, optional
|
2509
|
-
:return: Returns the result object.
|
2510
|
-
""" # noqa: E501
|
2511
|
-
|
2512
|
-
_param = self._payment_requests_list_serialize(
|
2513
|
-
_request_auth=_request_auth,
|
2514
|
-
_content_type=_content_type,
|
2515
|
-
_headers=_headers,
|
2516
|
-
_host_index=_host_index
|
2517
|
-
)
|
2518
|
-
|
2519
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2520
|
-
'200': "PaymentRequestsList200Response",
|
2521
|
-
}
|
2522
|
-
response_data = self.api_client.call_api(
|
2523
|
-
*_param,
|
2524
|
-
_request_timeout=_request_timeout
|
2525
|
-
)
|
2526
|
-
response_data.read()
|
2527
|
-
return self.api_client.response_deserialize(
|
2528
|
-
response_data=response_data,
|
2529
|
-
response_types_map=_response_types_map,
|
2530
|
-
).data
|
2531
|
-
|
2532
|
-
|
2533
|
-
@validate_call
|
2534
|
-
def payment_requests_list_with_http_info(
|
2535
|
-
self,
|
2536
|
-
_request_timeout: Union[
|
2537
|
-
None,
|
2538
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2539
|
-
Tuple[
|
2540
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2541
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2542
|
-
]
|
2543
|
-
] = None,
|
2544
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2545
|
-
_content_type: Optional[StrictStr] = None,
|
2546
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2547
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2548
|
-
) -> ApiResponse[PaymentRequestsList200Response]:
|
2549
|
-
"""List
|
2550
|
-
|
2551
|
-
Recovers all created payment requests
|
2552
|
-
|
2553
|
-
:param _request_timeout: timeout setting for this request. If one
|
2554
|
-
number provided, it will be total request
|
2555
|
-
timeout. It can also be a pair (tuple) of
|
2556
|
-
(connection, read) timeouts.
|
2557
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2558
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2559
|
-
request; this effectively ignores the
|
2560
|
-
authentication in the spec for a single request.
|
2561
|
-
:type _request_auth: dict, optional
|
2562
|
-
:param _content_type: force content-type for the request.
|
2563
|
-
:type _content_type: str, Optional
|
2564
|
-
:param _headers: set to override the headers for a single
|
2565
|
-
request; this effectively ignores the headers
|
2566
|
-
in the spec for a single request.
|
2567
|
-
:type _headers: dict, optional
|
2568
|
-
:param _host_index: set to override the host_index for a single
|
2569
|
-
request; this effectively ignores the host_index
|
2570
|
-
in the spec for a single request.
|
2571
|
-
:type _host_index: int, optional
|
2572
|
-
:return: Returns the result object.
|
2573
|
-
""" # noqa: E501
|
2574
|
-
|
2575
|
-
_param = self._payment_requests_list_serialize(
|
2576
|
-
_request_auth=_request_auth,
|
2577
|
-
_content_type=_content_type,
|
2578
|
-
_headers=_headers,
|
2579
|
-
_host_index=_host_index
|
2580
|
-
)
|
2581
|
-
|
2582
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2583
|
-
'200': "PaymentRequestsList200Response",
|
2584
|
-
}
|
2585
|
-
response_data = self.api_client.call_api(
|
2586
|
-
*_param,
|
2587
|
-
_request_timeout=_request_timeout
|
2588
|
-
)
|
2589
|
-
response_data.read()
|
2590
|
-
return self.api_client.response_deserialize(
|
2591
|
-
response_data=response_data,
|
2592
|
-
response_types_map=_response_types_map,
|
2593
|
-
)
|
2594
|
-
|
2595
|
-
|
2596
|
-
@validate_call
|
2597
|
-
def payment_requests_list_without_preload_content(
|
2598
|
-
self,
|
2599
|
-
_request_timeout: Union[
|
2600
|
-
None,
|
2601
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2602
|
-
Tuple[
|
2603
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2604
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2605
|
-
]
|
2606
|
-
] = None,
|
2607
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2608
|
-
_content_type: Optional[StrictStr] = None,
|
2609
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2610
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2611
|
-
) -> RESTResponseType:
|
2612
|
-
"""List
|
2613
|
-
|
2614
|
-
Recovers all created payment requests
|
2615
|
-
|
2616
|
-
:param _request_timeout: timeout setting for this request. If one
|
2617
|
-
number provided, it will be total request
|
2618
|
-
timeout. It can also be a pair (tuple) of
|
2619
|
-
(connection, read) timeouts.
|
2620
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2621
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2622
|
-
request; this effectively ignores the
|
2623
|
-
authentication in the spec for a single request.
|
2624
|
-
:type _request_auth: dict, optional
|
2625
|
-
:param _content_type: force content-type for the request.
|
2626
|
-
:type _content_type: str, Optional
|
2627
|
-
:param _headers: set to override the headers for a single
|
2628
|
-
request; this effectively ignores the headers
|
2629
|
-
in the spec for a single request.
|
2630
|
-
:type _headers: dict, optional
|
2631
|
-
:param _host_index: set to override the host_index for a single
|
2632
|
-
request; this effectively ignores the host_index
|
2633
|
-
in the spec for a single request.
|
2634
|
-
:type _host_index: int, optional
|
2635
|
-
:return: Returns the result object.
|
2636
|
-
""" # noqa: E501
|
2637
|
-
|
2638
|
-
_param = self._payment_requests_list_serialize(
|
2639
|
-
_request_auth=_request_auth,
|
2640
|
-
_content_type=_content_type,
|
2641
|
-
_headers=_headers,
|
2642
|
-
_host_index=_host_index
|
2643
|
-
)
|
2644
|
-
|
2645
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2646
|
-
'200': "PaymentRequestsList200Response",
|
2647
|
-
}
|
2648
|
-
response_data = self.api_client.call_api(
|
2649
|
-
*_param,
|
2650
|
-
_request_timeout=_request_timeout
|
2651
|
-
)
|
2652
|
-
return response_data.response
|
2653
|
-
|
2654
|
-
|
2655
|
-
def _payment_requests_list_serialize(
|
2656
|
-
self,
|
2657
|
-
_request_auth,
|
2658
|
-
_content_type,
|
2659
|
-
_headers,
|
2660
|
-
_host_index,
|
2661
|
-
) -> RequestSerialized:
|
2662
|
-
|
2663
|
-
_host = None
|
2664
|
-
|
2665
|
-
_collection_formats: Dict[str, str] = {
|
2666
|
-
}
|
2667
|
-
|
2668
|
-
_path_params: Dict[str, str] = {}
|
2669
|
-
_query_params: List[Tuple[str, str]] = []
|
2670
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2671
|
-
_form_params: List[Tuple[str, str]] = []
|
2672
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
2673
|
-
_body_params: Optional[bytes] = None
|
2674
|
-
|
2675
|
-
# process the path parameters
|
2676
|
-
# process the query parameters
|
2677
|
-
# process the header parameters
|
2678
|
-
# process the form parameters
|
2679
|
-
# process the body parameter
|
2680
|
-
|
2681
|
-
|
2682
|
-
# set the HTTP header `Accept`
|
2683
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
2684
|
-
[
|
2685
|
-
'application/json'
|
2686
|
-
]
|
2687
|
-
)
|
2688
|
-
|
2689
|
-
|
2690
|
-
# authentication setting
|
2691
|
-
_auth_settings: List[str] = [
|
2692
|
-
'default'
|
1897
|
+
'default'
|
2693
1898
|
]
|
2694
1899
|
|
2695
1900
|
return self.api_client.param_serialize(
|
@@ -2708,261 +1913,3 @@ class PaymentRequestApi:
|
|
2708
1913
|
)
|
2709
1914
|
|
2710
1915
|
|
2711
|
-
|
2712
|
-
|
2713
|
-
@validate_call
|
2714
|
-
def payment_schedules_list(
|
2715
|
-
self,
|
2716
|
-
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
2717
|
-
_request_timeout: Union[
|
2718
|
-
None,
|
2719
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2720
|
-
Tuple[
|
2721
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2722
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2723
|
-
]
|
2724
|
-
] = None,
|
2725
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2726
|
-
_content_type: Optional[StrictStr] = None,
|
2727
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2728
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2729
|
-
) -> PaymentSchedulesList200Response:
|
2730
|
-
"""Schedule List
|
2731
|
-
|
2732
|
-
Recovers all scheduled payments from a payment request
|
2733
|
-
|
2734
|
-
:param id: Payment request primary identifier (required)
|
2735
|
-
:type id: str
|
2736
|
-
:param _request_timeout: timeout setting for this request. If one
|
2737
|
-
number provided, it will be total request
|
2738
|
-
timeout. It can also be a pair (tuple) of
|
2739
|
-
(connection, read) timeouts.
|
2740
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2741
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2742
|
-
request; this effectively ignores the
|
2743
|
-
authentication in the spec for a single request.
|
2744
|
-
:type _request_auth: dict, optional
|
2745
|
-
:param _content_type: force content-type for the request.
|
2746
|
-
:type _content_type: str, Optional
|
2747
|
-
:param _headers: set to override the headers for a single
|
2748
|
-
request; this effectively ignores the headers
|
2749
|
-
in the spec for a single request.
|
2750
|
-
:type _headers: dict, optional
|
2751
|
-
:param _host_index: set to override the host_index for a single
|
2752
|
-
request; this effectively ignores the host_index
|
2753
|
-
in the spec for a single request.
|
2754
|
-
:type _host_index: int, optional
|
2755
|
-
:return: Returns the result object.
|
2756
|
-
""" # noqa: E501
|
2757
|
-
|
2758
|
-
_param = self._payment_schedules_list_serialize(
|
2759
|
-
id=id,
|
2760
|
-
_request_auth=_request_auth,
|
2761
|
-
_content_type=_content_type,
|
2762
|
-
_headers=_headers,
|
2763
|
-
_host_index=_host_index
|
2764
|
-
)
|
2765
|
-
|
2766
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2767
|
-
'200': "PaymentSchedulesList200Response",
|
2768
|
-
}
|
2769
|
-
response_data = self.api_client.call_api(
|
2770
|
-
*_param,
|
2771
|
-
_request_timeout=_request_timeout
|
2772
|
-
)
|
2773
|
-
response_data.read()
|
2774
|
-
return self.api_client.response_deserialize(
|
2775
|
-
response_data=response_data,
|
2776
|
-
response_types_map=_response_types_map,
|
2777
|
-
).data
|
2778
|
-
|
2779
|
-
|
2780
|
-
@validate_call
|
2781
|
-
def payment_schedules_list_with_http_info(
|
2782
|
-
self,
|
2783
|
-
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
2784
|
-
_request_timeout: Union[
|
2785
|
-
None,
|
2786
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2787
|
-
Tuple[
|
2788
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2789
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2790
|
-
]
|
2791
|
-
] = None,
|
2792
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2793
|
-
_content_type: Optional[StrictStr] = None,
|
2794
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2795
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2796
|
-
) -> ApiResponse[PaymentSchedulesList200Response]:
|
2797
|
-
"""Schedule List
|
2798
|
-
|
2799
|
-
Recovers all scheduled payments from a payment request
|
2800
|
-
|
2801
|
-
:param id: Payment request primary identifier (required)
|
2802
|
-
:type id: str
|
2803
|
-
:param _request_timeout: timeout setting for this request. If one
|
2804
|
-
number provided, it will be total request
|
2805
|
-
timeout. It can also be a pair (tuple) of
|
2806
|
-
(connection, read) timeouts.
|
2807
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2808
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2809
|
-
request; this effectively ignores the
|
2810
|
-
authentication in the spec for a single request.
|
2811
|
-
:type _request_auth: dict, optional
|
2812
|
-
:param _content_type: force content-type for the request.
|
2813
|
-
:type _content_type: str, Optional
|
2814
|
-
:param _headers: set to override the headers for a single
|
2815
|
-
request; this effectively ignores the headers
|
2816
|
-
in the spec for a single request.
|
2817
|
-
:type _headers: dict, optional
|
2818
|
-
:param _host_index: set to override the host_index for a single
|
2819
|
-
request; this effectively ignores the host_index
|
2820
|
-
in the spec for a single request.
|
2821
|
-
:type _host_index: int, optional
|
2822
|
-
:return: Returns the result object.
|
2823
|
-
""" # noqa: E501
|
2824
|
-
|
2825
|
-
_param = self._payment_schedules_list_serialize(
|
2826
|
-
id=id,
|
2827
|
-
_request_auth=_request_auth,
|
2828
|
-
_content_type=_content_type,
|
2829
|
-
_headers=_headers,
|
2830
|
-
_host_index=_host_index
|
2831
|
-
)
|
2832
|
-
|
2833
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2834
|
-
'200': "PaymentSchedulesList200Response",
|
2835
|
-
}
|
2836
|
-
response_data = self.api_client.call_api(
|
2837
|
-
*_param,
|
2838
|
-
_request_timeout=_request_timeout
|
2839
|
-
)
|
2840
|
-
response_data.read()
|
2841
|
-
return self.api_client.response_deserialize(
|
2842
|
-
response_data=response_data,
|
2843
|
-
response_types_map=_response_types_map,
|
2844
|
-
)
|
2845
|
-
|
2846
|
-
|
2847
|
-
@validate_call
|
2848
|
-
def payment_schedules_list_without_preload_content(
|
2849
|
-
self,
|
2850
|
-
id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
|
2851
|
-
_request_timeout: Union[
|
2852
|
-
None,
|
2853
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2854
|
-
Tuple[
|
2855
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2856
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2857
|
-
]
|
2858
|
-
] = None,
|
2859
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2860
|
-
_content_type: Optional[StrictStr] = None,
|
2861
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2862
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2863
|
-
) -> RESTResponseType:
|
2864
|
-
"""Schedule List
|
2865
|
-
|
2866
|
-
Recovers all scheduled payments from a payment request
|
2867
|
-
|
2868
|
-
:param id: Payment request primary identifier (required)
|
2869
|
-
:type id: str
|
2870
|
-
:param _request_timeout: timeout setting for this request. If one
|
2871
|
-
number provided, it will be total request
|
2872
|
-
timeout. It can also be a pair (tuple) of
|
2873
|
-
(connection, read) timeouts.
|
2874
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2875
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2876
|
-
request; this effectively ignores the
|
2877
|
-
authentication in the spec for a single request.
|
2878
|
-
:type _request_auth: dict, optional
|
2879
|
-
:param _content_type: force content-type for the request.
|
2880
|
-
:type _content_type: str, Optional
|
2881
|
-
:param _headers: set to override the headers for a single
|
2882
|
-
request; this effectively ignores the headers
|
2883
|
-
in the spec for a single request.
|
2884
|
-
:type _headers: dict, optional
|
2885
|
-
:param _host_index: set to override the host_index for a single
|
2886
|
-
request; this effectively ignores the host_index
|
2887
|
-
in the spec for a single request.
|
2888
|
-
:type _host_index: int, optional
|
2889
|
-
:return: Returns the result object.
|
2890
|
-
""" # noqa: E501
|
2891
|
-
|
2892
|
-
_param = self._payment_schedules_list_serialize(
|
2893
|
-
id=id,
|
2894
|
-
_request_auth=_request_auth,
|
2895
|
-
_content_type=_content_type,
|
2896
|
-
_headers=_headers,
|
2897
|
-
_host_index=_host_index
|
2898
|
-
)
|
2899
|
-
|
2900
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2901
|
-
'200': "PaymentSchedulesList200Response",
|
2902
|
-
}
|
2903
|
-
response_data = self.api_client.call_api(
|
2904
|
-
*_param,
|
2905
|
-
_request_timeout=_request_timeout
|
2906
|
-
)
|
2907
|
-
return response_data.response
|
2908
|
-
|
2909
|
-
|
2910
|
-
def _payment_schedules_list_serialize(
|
2911
|
-
self,
|
2912
|
-
id,
|
2913
|
-
_request_auth,
|
2914
|
-
_content_type,
|
2915
|
-
_headers,
|
2916
|
-
_host_index,
|
2917
|
-
) -> RequestSerialized:
|
2918
|
-
|
2919
|
-
_host = None
|
2920
|
-
|
2921
|
-
_collection_formats: Dict[str, str] = {
|
2922
|
-
}
|
2923
|
-
|
2924
|
-
_path_params: Dict[str, str] = {}
|
2925
|
-
_query_params: List[Tuple[str, str]] = []
|
2926
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2927
|
-
_form_params: List[Tuple[str, str]] = []
|
2928
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
2929
|
-
_body_params: Optional[bytes] = None
|
2930
|
-
|
2931
|
-
# process the path parameters
|
2932
|
-
if id is not None:
|
2933
|
-
_path_params['id'] = id
|
2934
|
-
# process the query parameters
|
2935
|
-
# process the header parameters
|
2936
|
-
# process the form parameters
|
2937
|
-
# process the body parameter
|
2938
|
-
|
2939
|
-
|
2940
|
-
# set the HTTP header `Accept`
|
2941
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
2942
|
-
[
|
2943
|
-
'application/json'
|
2944
|
-
]
|
2945
|
-
)
|
2946
|
-
|
2947
|
-
|
2948
|
-
# authentication setting
|
2949
|
-
_auth_settings: List[str] = [
|
2950
|
-
'default'
|
2951
|
-
]
|
2952
|
-
|
2953
|
-
return self.api_client.param_serialize(
|
2954
|
-
method='GET',
|
2955
|
-
resource_path='/payments/requests/{id}/schedules',
|
2956
|
-
path_params=_path_params,
|
2957
|
-
query_params=_query_params,
|
2958
|
-
header_params=_header_params,
|
2959
|
-
body=_body_params,
|
2960
|
-
post_params=_form_params,
|
2961
|
-
files=_files,
|
2962
|
-
auth_settings=_auth_settings,
|
2963
|
-
collection_formats=_collection_formats,
|
2964
|
-
_host=_host,
|
2965
|
-
_request_auth=_request_auth
|
2966
|
-
)
|
2967
|
-
|
2968
|
-
|