pluggy-sdk 1.0.0.post16__py3-none-any.whl → 1.0.0.post18__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.
Files changed (63) hide show
  1. pluggy_sdk/__init__.py +9 -3
  2. pluggy_sdk/api/__init__.py +1 -2
  3. pluggy_sdk/api/payment_request_api.py +804 -0
  4. pluggy_sdk/api/payment_schedule_api.py +3 -3
  5. pluggy_sdk/api/smart_account_api.py +572 -0
  6. pluggy_sdk/api/smart_transfer_api.py +1396 -0
  7. pluggy_sdk/api_client.py +8 -1
  8. pluggy_sdk/configuration.py +1 -1
  9. pluggy_sdk/models/__init__.py +7 -0
  10. pluggy_sdk/models/accounts_list200_response.py +3 -3
  11. pluggy_sdk/models/acquirer_receivable.py +3 -3
  12. pluggy_sdk/models/acquirer_sale.py +3 -3
  13. pluggy_sdk/models/acquirer_sale_data.py +3 -3
  14. pluggy_sdk/models/aggregated_portfolio_response.py +3 -3
  15. pluggy_sdk/models/benefit_response.py +3 -3
  16. pluggy_sdk/models/benefits_list200_response.py +3 -3
  17. pluggy_sdk/models/bill.py +3 -3
  18. pluggy_sdk/models/bills_list200_response.py +3 -3
  19. pluggy_sdk/models/bulk_payment.py +3 -3
  20. pluggy_sdk/models/bulk_payments_list200_response.py +3 -3
  21. pluggy_sdk/models/connector.py +3 -3
  22. pluggy_sdk/models/connector_credential.py +3 -3
  23. pluggy_sdk/models/connector_list_response.py +3 -3
  24. pluggy_sdk/models/create_smart_transfer_payment.py +96 -0
  25. pluggy_sdk/models/create_smart_transfer_preauthorization.py +104 -0
  26. pluggy_sdk/models/identity_response.py +12 -12
  27. pluggy_sdk/models/income_reports_response.py +3 -3
  28. pluggy_sdk/models/investment.py +3 -3
  29. pluggy_sdk/models/investments_list200_response.py +3 -3
  30. pluggy_sdk/models/item_creation_error_response.py +3 -3
  31. pluggy_sdk/models/loan.py +12 -12
  32. pluggy_sdk/models/loan_installments.py +3 -3
  33. pluggy_sdk/models/loan_payment_release_over_parcel.py +6 -6
  34. pluggy_sdk/models/loan_payments.py +3 -3
  35. pluggy_sdk/models/loans_list200_response.py +3 -3
  36. pluggy_sdk/models/monthly_portfolio_response.py +3 -3
  37. pluggy_sdk/models/page_response_acquirer_anticipations.py +3 -3
  38. pluggy_sdk/models/page_response_acquirer_receivables.py +3 -3
  39. pluggy_sdk/models/page_response_acquirer_sales.py +3 -3
  40. pluggy_sdk/models/page_response_category_rules.py +3 -3
  41. pluggy_sdk/models/page_response_consents.py +3 -3
  42. pluggy_sdk/models/page_response_investment_transactions.py +3 -3
  43. pluggy_sdk/models/page_response_transactions.py +3 -3
  44. pluggy_sdk/models/parameter_validation_response.py +3 -3
  45. pluggy_sdk/models/payment_customers_list200_response.py +3 -3
  46. pluggy_sdk/models/payment_intents_list200_response.py +3 -3
  47. pluggy_sdk/models/payment_recipients_institution_list200_response.py +3 -3
  48. pluggy_sdk/models/payment_recipients_list200_response.py +3 -3
  49. pluggy_sdk/models/payment_request_receipt_list200_response.py +3 -3
  50. pluggy_sdk/models/payment_requests_list200_response.py +3 -3
  51. pluggy_sdk/models/payment_schedules_list200_response.py +3 -3
  52. pluggy_sdk/models/smart_accounts_list200_response.py +3 -3
  53. pluggy_sdk/models/smart_tranfers_preauthorizations_list200_response.py +102 -0
  54. pluggy_sdk/models/smart_transfer_callback_urls.py +90 -0
  55. pluggy_sdk/models/smart_transfer_payment.py +116 -0
  56. pluggy_sdk/models/smart_transfer_preauthorization.py +128 -0
  57. pluggy_sdk/models/smart_transfer_preauthorization_parameter.py +90 -0
  58. pluggy_sdk/models/status_detail_product.py +3 -3
  59. pluggy_sdk/models/webhooks_list200_response.py +3 -3
  60. {pluggy_sdk-1.0.0.post16.dist-info → pluggy_sdk-1.0.0.post18.dist-info}/METADATA +20 -8
  61. {pluggy_sdk-1.0.0.post16.dist-info → pluggy_sdk-1.0.0.post18.dist-info}/RECORD +63 -55
  62. {pluggy_sdk-1.0.0.post16.dist-info → pluggy_sdk-1.0.0.post18.dist-info}/WHEEL +1 -1
  63. {pluggy_sdk-1.0.0.post16.dist-info → pluggy_sdk-1.0.0.post18.dist-info}/top_level.txt +0 -0
@@ -22,7 +22,9 @@ 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
25
26
  from pluggy_sdk.models.payment_request import PaymentRequest
27
+ from pluggy_sdk.models.payment_request_receipt_list200_response import PaymentRequestReceiptList200Response
26
28
  from pluggy_sdk.models.payment_requests_list200_response import PaymentRequestsList200Response
27
29
  from pluggy_sdk.models.update_payment_request import UpdatePaymentRequest
28
30
 
@@ -1122,6 +1124,808 @@ class PaymentRequestApi:
1122
1124
 
1123
1125
 
1124
1126
 
1127
+ @validate_call
1128
+ def payment_request_receipt_create(
1129
+ self,
1130
+ id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
1131
+ _request_timeout: Union[
1132
+ None,
1133
+ Annotated[StrictFloat, Field(gt=0)],
1134
+ Tuple[
1135
+ Annotated[StrictFloat, Field(gt=0)],
1136
+ Annotated[StrictFloat, Field(gt=0)]
1137
+ ]
1138
+ ] = None,
1139
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1140
+ _content_type: Optional[StrictStr] = None,
1141
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1142
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1143
+ ) -> PaymentReceipt:
1144
+ """Create Payment Receipt
1145
+
1146
+ Creates the payment receipt resource
1147
+
1148
+ :param id: Payment request primary identifier (required)
1149
+ :type id: str
1150
+ :param _request_timeout: timeout setting for this request. If one
1151
+ number provided, it will be total request
1152
+ timeout. It can also be a pair (tuple) of
1153
+ (connection, read) timeouts.
1154
+ :type _request_timeout: int, tuple(int, int), optional
1155
+ :param _request_auth: set to override the auth_settings for an a single
1156
+ request; this effectively ignores the
1157
+ authentication in the spec for a single request.
1158
+ :type _request_auth: dict, optional
1159
+ :param _content_type: force content-type for the request.
1160
+ :type _content_type: str, Optional
1161
+ :param _headers: set to override the headers for a single
1162
+ request; this effectively ignores the headers
1163
+ in the spec for a single request.
1164
+ :type _headers: dict, optional
1165
+ :param _host_index: set to override the host_index for a single
1166
+ request; this effectively ignores the host_index
1167
+ in the spec for a single request.
1168
+ :type _host_index: int, optional
1169
+ :return: Returns the result object.
1170
+ """ # noqa: E501
1171
+
1172
+ _param = self._payment_request_receipt_create_serialize(
1173
+ id=id,
1174
+ _request_auth=_request_auth,
1175
+ _content_type=_content_type,
1176
+ _headers=_headers,
1177
+ _host_index=_host_index
1178
+ )
1179
+
1180
+ _response_types_map: Dict[str, Optional[str]] = {
1181
+ '200': "PaymentReceipt",
1182
+ }
1183
+ response_data = self.api_client.call_api(
1184
+ *_param,
1185
+ _request_timeout=_request_timeout
1186
+ )
1187
+ response_data.read()
1188
+ return self.api_client.response_deserialize(
1189
+ response_data=response_data,
1190
+ response_types_map=_response_types_map,
1191
+ ).data
1192
+
1193
+
1194
+ @validate_call
1195
+ def payment_request_receipt_create_with_http_info(
1196
+ self,
1197
+ id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
1198
+ _request_timeout: Union[
1199
+ None,
1200
+ Annotated[StrictFloat, Field(gt=0)],
1201
+ Tuple[
1202
+ Annotated[StrictFloat, Field(gt=0)],
1203
+ Annotated[StrictFloat, Field(gt=0)]
1204
+ ]
1205
+ ] = None,
1206
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1207
+ _content_type: Optional[StrictStr] = None,
1208
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1209
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1210
+ ) -> ApiResponse[PaymentReceipt]:
1211
+ """Create Payment Receipt
1212
+
1213
+ Creates the payment receipt resource
1214
+
1215
+ :param id: Payment request primary identifier (required)
1216
+ :type id: str
1217
+ :param _request_timeout: timeout setting for this request. If one
1218
+ number provided, it will be total request
1219
+ timeout. It can also be a pair (tuple) of
1220
+ (connection, read) timeouts.
1221
+ :type _request_timeout: int, tuple(int, int), optional
1222
+ :param _request_auth: set to override the auth_settings for an a single
1223
+ request; this effectively ignores the
1224
+ authentication in the spec for a single request.
1225
+ :type _request_auth: dict, optional
1226
+ :param _content_type: force content-type for the request.
1227
+ :type _content_type: str, Optional
1228
+ :param _headers: set to override the headers for a single
1229
+ request; this effectively ignores the headers
1230
+ in the spec for a single request.
1231
+ :type _headers: dict, optional
1232
+ :param _host_index: set to override the host_index for a single
1233
+ request; this effectively ignores the host_index
1234
+ in the spec for a single request.
1235
+ :type _host_index: int, optional
1236
+ :return: Returns the result object.
1237
+ """ # noqa: E501
1238
+
1239
+ _param = self._payment_request_receipt_create_serialize(
1240
+ id=id,
1241
+ _request_auth=_request_auth,
1242
+ _content_type=_content_type,
1243
+ _headers=_headers,
1244
+ _host_index=_host_index
1245
+ )
1246
+
1247
+ _response_types_map: Dict[str, Optional[str]] = {
1248
+ '200': "PaymentReceipt",
1249
+ }
1250
+ response_data = self.api_client.call_api(
1251
+ *_param,
1252
+ _request_timeout=_request_timeout
1253
+ )
1254
+ response_data.read()
1255
+ return self.api_client.response_deserialize(
1256
+ response_data=response_data,
1257
+ response_types_map=_response_types_map,
1258
+ )
1259
+
1260
+
1261
+ @validate_call
1262
+ def payment_request_receipt_create_without_preload_content(
1263
+ self,
1264
+ id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
1265
+ _request_timeout: Union[
1266
+ None,
1267
+ Annotated[StrictFloat, Field(gt=0)],
1268
+ Tuple[
1269
+ Annotated[StrictFloat, Field(gt=0)],
1270
+ Annotated[StrictFloat, Field(gt=0)]
1271
+ ]
1272
+ ] = None,
1273
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1274
+ _content_type: Optional[StrictStr] = None,
1275
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1276
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1277
+ ) -> RESTResponseType:
1278
+ """Create Payment Receipt
1279
+
1280
+ Creates the payment receipt resource
1281
+
1282
+ :param id: Payment request primary identifier (required)
1283
+ :type id: str
1284
+ :param _request_timeout: timeout setting for this request. If one
1285
+ number provided, it will be total request
1286
+ timeout. It can also be a pair (tuple) of
1287
+ (connection, read) timeouts.
1288
+ :type _request_timeout: int, tuple(int, int), optional
1289
+ :param _request_auth: set to override the auth_settings for an a single
1290
+ request; this effectively ignores the
1291
+ authentication in the spec for a single request.
1292
+ :type _request_auth: dict, optional
1293
+ :param _content_type: force content-type for the request.
1294
+ :type _content_type: str, Optional
1295
+ :param _headers: set to override the headers for a single
1296
+ request; this effectively ignores the headers
1297
+ in the spec for a single request.
1298
+ :type _headers: dict, optional
1299
+ :param _host_index: set to override the host_index for a single
1300
+ request; this effectively ignores the host_index
1301
+ in the spec for a single request.
1302
+ :type _host_index: int, optional
1303
+ :return: Returns the result object.
1304
+ """ # noqa: E501
1305
+
1306
+ _param = self._payment_request_receipt_create_serialize(
1307
+ id=id,
1308
+ _request_auth=_request_auth,
1309
+ _content_type=_content_type,
1310
+ _headers=_headers,
1311
+ _host_index=_host_index
1312
+ )
1313
+
1314
+ _response_types_map: Dict[str, Optional[str]] = {
1315
+ '200': "PaymentReceipt",
1316
+ }
1317
+ response_data = self.api_client.call_api(
1318
+ *_param,
1319
+ _request_timeout=_request_timeout
1320
+ )
1321
+ return response_data.response
1322
+
1323
+
1324
+ def _payment_request_receipt_create_serialize(
1325
+ self,
1326
+ id,
1327
+ _request_auth,
1328
+ _content_type,
1329
+ _headers,
1330
+ _host_index,
1331
+ ) -> RequestSerialized:
1332
+
1333
+ _host = None
1334
+
1335
+ _collection_formats: Dict[str, str] = {
1336
+ }
1337
+
1338
+ _path_params: Dict[str, str] = {}
1339
+ _query_params: List[Tuple[str, str]] = []
1340
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1341
+ _form_params: List[Tuple[str, str]] = []
1342
+ _files: Dict[str, Union[str, bytes]] = {}
1343
+ _body_params: Optional[bytes] = None
1344
+
1345
+ # process the path parameters
1346
+ if id is not None:
1347
+ _path_params['id'] = id
1348
+ # process the query parameters
1349
+ # process the header parameters
1350
+ # process the form parameters
1351
+ # process the body parameter
1352
+
1353
+
1354
+ # set the HTTP header `Accept`
1355
+ if 'Accept' not in _header_params:
1356
+ _header_params['Accept'] = self.api_client.select_header_accept(
1357
+ [
1358
+ 'application/json'
1359
+ ]
1360
+ )
1361
+
1362
+ # set the HTTP header `Content-Type`
1363
+ if _content_type:
1364
+ _header_params['Content-Type'] = _content_type
1365
+ else:
1366
+ _default_content_type = (
1367
+ self.api_client.select_header_content_type(
1368
+ [
1369
+ 'application/json'
1370
+ ]
1371
+ )
1372
+ )
1373
+ if _default_content_type is not None:
1374
+ _header_params['Content-Type'] = _default_content_type
1375
+
1376
+ # authentication setting
1377
+ _auth_settings: List[str] = [
1378
+ ]
1379
+
1380
+ return self.api_client.param_serialize(
1381
+ method='POST',
1382
+ resource_path='/payments/requests/{id}/receipts',
1383
+ path_params=_path_params,
1384
+ query_params=_query_params,
1385
+ header_params=_header_params,
1386
+ body=_body_params,
1387
+ post_params=_form_params,
1388
+ files=_files,
1389
+ auth_settings=_auth_settings,
1390
+ collection_formats=_collection_formats,
1391
+ _host=_host,
1392
+ _request_auth=_request_auth
1393
+ )
1394
+
1395
+
1396
+
1397
+
1398
+ @validate_call
1399
+ def payment_request_receipt_list(
1400
+ self,
1401
+ id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
1402
+ _request_timeout: Union[
1403
+ None,
1404
+ Annotated[StrictFloat, Field(gt=0)],
1405
+ Tuple[
1406
+ Annotated[StrictFloat, Field(gt=0)],
1407
+ Annotated[StrictFloat, Field(gt=0)]
1408
+ ]
1409
+ ] = None,
1410
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1411
+ _content_type: Optional[StrictStr] = None,
1412
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1413
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1414
+ ) -> PaymentRequestReceiptList200Response:
1415
+ """List Payment Receipts
1416
+
1417
+ Recovers all created payment receipts for the payment request provided
1418
+
1419
+ :param id: Payment request primary identifier (required)
1420
+ :type id: str
1421
+ :param _request_timeout: timeout setting for this request. If one
1422
+ number provided, it will be total request
1423
+ timeout. It can also be a pair (tuple) of
1424
+ (connection, read) timeouts.
1425
+ :type _request_timeout: int, tuple(int, int), optional
1426
+ :param _request_auth: set to override the auth_settings for an a single
1427
+ request; this effectively ignores the
1428
+ authentication in the spec for a single request.
1429
+ :type _request_auth: dict, optional
1430
+ :param _content_type: force content-type for the request.
1431
+ :type _content_type: str, Optional
1432
+ :param _headers: set to override the headers for a single
1433
+ request; this effectively ignores the headers
1434
+ in the spec for a single request.
1435
+ :type _headers: dict, optional
1436
+ :param _host_index: set to override the host_index for a single
1437
+ request; this effectively ignores the host_index
1438
+ in the spec for a single request.
1439
+ :type _host_index: int, optional
1440
+ :return: Returns the result object.
1441
+ """ # noqa: E501
1442
+
1443
+ _param = self._payment_request_receipt_list_serialize(
1444
+ id=id,
1445
+ _request_auth=_request_auth,
1446
+ _content_type=_content_type,
1447
+ _headers=_headers,
1448
+ _host_index=_host_index
1449
+ )
1450
+
1451
+ _response_types_map: Dict[str, Optional[str]] = {
1452
+ '200': "PaymentRequestReceiptList200Response",
1453
+ }
1454
+ response_data = self.api_client.call_api(
1455
+ *_param,
1456
+ _request_timeout=_request_timeout
1457
+ )
1458
+ response_data.read()
1459
+ return self.api_client.response_deserialize(
1460
+ response_data=response_data,
1461
+ response_types_map=_response_types_map,
1462
+ ).data
1463
+
1464
+
1465
+ @validate_call
1466
+ def payment_request_receipt_list_with_http_info(
1467
+ self,
1468
+ id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
1469
+ _request_timeout: Union[
1470
+ None,
1471
+ Annotated[StrictFloat, Field(gt=0)],
1472
+ Tuple[
1473
+ Annotated[StrictFloat, Field(gt=0)],
1474
+ Annotated[StrictFloat, Field(gt=0)]
1475
+ ]
1476
+ ] = None,
1477
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1478
+ _content_type: Optional[StrictStr] = None,
1479
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1480
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1481
+ ) -> ApiResponse[PaymentRequestReceiptList200Response]:
1482
+ """List Payment Receipts
1483
+
1484
+ Recovers all created payment receipts for the payment request provided
1485
+
1486
+ :param id: Payment request primary identifier (required)
1487
+ :type id: str
1488
+ :param _request_timeout: timeout setting for this request. If one
1489
+ number provided, it will be total request
1490
+ timeout. It can also be a pair (tuple) of
1491
+ (connection, read) timeouts.
1492
+ :type _request_timeout: int, tuple(int, int), optional
1493
+ :param _request_auth: set to override the auth_settings for an a single
1494
+ request; this effectively ignores the
1495
+ authentication in the spec for a single request.
1496
+ :type _request_auth: dict, optional
1497
+ :param _content_type: force content-type for the request.
1498
+ :type _content_type: str, Optional
1499
+ :param _headers: set to override the headers for a single
1500
+ request; this effectively ignores the headers
1501
+ in the spec for a single request.
1502
+ :type _headers: dict, optional
1503
+ :param _host_index: set to override the host_index for a single
1504
+ request; this effectively ignores the host_index
1505
+ in the spec for a single request.
1506
+ :type _host_index: int, optional
1507
+ :return: Returns the result object.
1508
+ """ # noqa: E501
1509
+
1510
+ _param = self._payment_request_receipt_list_serialize(
1511
+ id=id,
1512
+ _request_auth=_request_auth,
1513
+ _content_type=_content_type,
1514
+ _headers=_headers,
1515
+ _host_index=_host_index
1516
+ )
1517
+
1518
+ _response_types_map: Dict[str, Optional[str]] = {
1519
+ '200': "PaymentRequestReceiptList200Response",
1520
+ }
1521
+ response_data = self.api_client.call_api(
1522
+ *_param,
1523
+ _request_timeout=_request_timeout
1524
+ )
1525
+ response_data.read()
1526
+ return self.api_client.response_deserialize(
1527
+ response_data=response_data,
1528
+ response_types_map=_response_types_map,
1529
+ )
1530
+
1531
+
1532
+ @validate_call
1533
+ def payment_request_receipt_list_without_preload_content(
1534
+ self,
1535
+ id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
1536
+ _request_timeout: Union[
1537
+ None,
1538
+ Annotated[StrictFloat, Field(gt=0)],
1539
+ Tuple[
1540
+ Annotated[StrictFloat, Field(gt=0)],
1541
+ Annotated[StrictFloat, Field(gt=0)]
1542
+ ]
1543
+ ] = None,
1544
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1545
+ _content_type: Optional[StrictStr] = None,
1546
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1547
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1548
+ ) -> RESTResponseType:
1549
+ """List Payment Receipts
1550
+
1551
+ Recovers all created payment receipts for the payment request provided
1552
+
1553
+ :param id: Payment request primary identifier (required)
1554
+ :type id: str
1555
+ :param _request_timeout: timeout setting for this request. If one
1556
+ number provided, it will be total request
1557
+ timeout. It can also be a pair (tuple) of
1558
+ (connection, read) timeouts.
1559
+ :type _request_timeout: int, tuple(int, int), optional
1560
+ :param _request_auth: set to override the auth_settings for an a single
1561
+ request; this effectively ignores the
1562
+ authentication in the spec for a single request.
1563
+ :type _request_auth: dict, optional
1564
+ :param _content_type: force content-type for the request.
1565
+ :type _content_type: str, Optional
1566
+ :param _headers: set to override the headers for a single
1567
+ request; this effectively ignores the headers
1568
+ in the spec for a single request.
1569
+ :type _headers: dict, optional
1570
+ :param _host_index: set to override the host_index for a single
1571
+ request; this effectively ignores the host_index
1572
+ in the spec for a single request.
1573
+ :type _host_index: int, optional
1574
+ :return: Returns the result object.
1575
+ """ # noqa: E501
1576
+
1577
+ _param = self._payment_request_receipt_list_serialize(
1578
+ id=id,
1579
+ _request_auth=_request_auth,
1580
+ _content_type=_content_type,
1581
+ _headers=_headers,
1582
+ _host_index=_host_index
1583
+ )
1584
+
1585
+ _response_types_map: Dict[str, Optional[str]] = {
1586
+ '200': "PaymentRequestReceiptList200Response",
1587
+ }
1588
+ response_data = self.api_client.call_api(
1589
+ *_param,
1590
+ _request_timeout=_request_timeout
1591
+ )
1592
+ return response_data.response
1593
+
1594
+
1595
+ def _payment_request_receipt_list_serialize(
1596
+ self,
1597
+ id,
1598
+ _request_auth,
1599
+ _content_type,
1600
+ _headers,
1601
+ _host_index,
1602
+ ) -> RequestSerialized:
1603
+
1604
+ _host = None
1605
+
1606
+ _collection_formats: Dict[str, str] = {
1607
+ }
1608
+
1609
+ _path_params: Dict[str, str] = {}
1610
+ _query_params: List[Tuple[str, str]] = []
1611
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1612
+ _form_params: List[Tuple[str, str]] = []
1613
+ _files: Dict[str, Union[str, bytes]] = {}
1614
+ _body_params: Optional[bytes] = None
1615
+
1616
+ # process the path parameters
1617
+ if id is not None:
1618
+ _path_params['id'] = id
1619
+ # process the query parameters
1620
+ # process the header parameters
1621
+ # process the form parameters
1622
+ # process the body parameter
1623
+
1624
+
1625
+ # set the HTTP header `Accept`
1626
+ if 'Accept' not in _header_params:
1627
+ _header_params['Accept'] = self.api_client.select_header_accept(
1628
+ [
1629
+ 'application/json'
1630
+ ]
1631
+ )
1632
+
1633
+
1634
+ # authentication setting
1635
+ _auth_settings: List[str] = [
1636
+ ]
1637
+
1638
+ return self.api_client.param_serialize(
1639
+ method='GET',
1640
+ resource_path='/payments/requests/{id}/receipts',
1641
+ path_params=_path_params,
1642
+ query_params=_query_params,
1643
+ header_params=_header_params,
1644
+ body=_body_params,
1645
+ post_params=_form_params,
1646
+ files=_files,
1647
+ auth_settings=_auth_settings,
1648
+ collection_formats=_collection_formats,
1649
+ _host=_host,
1650
+ _request_auth=_request_auth
1651
+ )
1652
+
1653
+
1654
+
1655
+
1656
+ @validate_call
1657
+ def payment_request_receipt_retrieve(
1658
+ self,
1659
+ payment_request_id: StrictStr,
1660
+ payment_receipt_id: StrictStr,
1661
+ _request_timeout: Union[
1662
+ None,
1663
+ Annotated[StrictFloat, Field(gt=0)],
1664
+ Tuple[
1665
+ Annotated[StrictFloat, Field(gt=0)],
1666
+ Annotated[StrictFloat, Field(gt=0)]
1667
+ ]
1668
+ ] = None,
1669
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1670
+ _content_type: Optional[StrictStr] = None,
1671
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1672
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1673
+ ) -> PaymentReceipt:
1674
+ """Retrieve Payment Receipt
1675
+
1676
+ Recovers the payment receipt resource by its id
1677
+
1678
+ :param payment_request_id: (required)
1679
+ :type payment_request_id: str
1680
+ :param payment_receipt_id: (required)
1681
+ :type payment_receipt_id: str
1682
+ :param _request_timeout: timeout setting for this request. If one
1683
+ number provided, it will be total request
1684
+ timeout. It can also be a pair (tuple) of
1685
+ (connection, read) timeouts.
1686
+ :type _request_timeout: int, tuple(int, int), optional
1687
+ :param _request_auth: set to override the auth_settings for an a single
1688
+ request; this effectively ignores the
1689
+ authentication in the spec for a single request.
1690
+ :type _request_auth: dict, optional
1691
+ :param _content_type: force content-type for the request.
1692
+ :type _content_type: str, Optional
1693
+ :param _headers: set to override the headers for a single
1694
+ request; this effectively ignores the headers
1695
+ in the spec for a single request.
1696
+ :type _headers: dict, optional
1697
+ :param _host_index: set to override the host_index for a single
1698
+ request; this effectively ignores the host_index
1699
+ in the spec for a single request.
1700
+ :type _host_index: int, optional
1701
+ :return: Returns the result object.
1702
+ """ # noqa: E501
1703
+
1704
+ _param = self._payment_request_receipt_retrieve_serialize(
1705
+ payment_request_id=payment_request_id,
1706
+ payment_receipt_id=payment_receipt_id,
1707
+ _request_auth=_request_auth,
1708
+ _content_type=_content_type,
1709
+ _headers=_headers,
1710
+ _host_index=_host_index
1711
+ )
1712
+
1713
+ _response_types_map: Dict[str, Optional[str]] = {
1714
+ '200': "PaymentReceipt",
1715
+ }
1716
+ response_data = self.api_client.call_api(
1717
+ *_param,
1718
+ _request_timeout=_request_timeout
1719
+ )
1720
+ response_data.read()
1721
+ return self.api_client.response_deserialize(
1722
+ response_data=response_data,
1723
+ response_types_map=_response_types_map,
1724
+ ).data
1725
+
1726
+
1727
+ @validate_call
1728
+ def payment_request_receipt_retrieve_with_http_info(
1729
+ self,
1730
+ payment_request_id: StrictStr,
1731
+ payment_receipt_id: StrictStr,
1732
+ _request_timeout: Union[
1733
+ None,
1734
+ Annotated[StrictFloat, Field(gt=0)],
1735
+ Tuple[
1736
+ Annotated[StrictFloat, Field(gt=0)],
1737
+ Annotated[StrictFloat, Field(gt=0)]
1738
+ ]
1739
+ ] = None,
1740
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1741
+ _content_type: Optional[StrictStr] = None,
1742
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1743
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1744
+ ) -> ApiResponse[PaymentReceipt]:
1745
+ """Retrieve Payment Receipt
1746
+
1747
+ Recovers the payment receipt resource by its id
1748
+
1749
+ :param payment_request_id: (required)
1750
+ :type payment_request_id: str
1751
+ :param payment_receipt_id: (required)
1752
+ :type payment_receipt_id: str
1753
+ :param _request_timeout: timeout setting for this request. If one
1754
+ number provided, it will be total request
1755
+ timeout. It can also be a pair (tuple) of
1756
+ (connection, read) timeouts.
1757
+ :type _request_timeout: int, tuple(int, int), optional
1758
+ :param _request_auth: set to override the auth_settings for an a single
1759
+ request; this effectively ignores the
1760
+ authentication in the spec for a single request.
1761
+ :type _request_auth: dict, optional
1762
+ :param _content_type: force content-type for the request.
1763
+ :type _content_type: str, Optional
1764
+ :param _headers: set to override the headers for a single
1765
+ request; this effectively ignores the headers
1766
+ in the spec for a single request.
1767
+ :type _headers: dict, optional
1768
+ :param _host_index: set to override the host_index for a single
1769
+ request; this effectively ignores the host_index
1770
+ in the spec for a single request.
1771
+ :type _host_index: int, optional
1772
+ :return: Returns the result object.
1773
+ """ # noqa: E501
1774
+
1775
+ _param = self._payment_request_receipt_retrieve_serialize(
1776
+ payment_request_id=payment_request_id,
1777
+ payment_receipt_id=payment_receipt_id,
1778
+ _request_auth=_request_auth,
1779
+ _content_type=_content_type,
1780
+ _headers=_headers,
1781
+ _host_index=_host_index
1782
+ )
1783
+
1784
+ _response_types_map: Dict[str, Optional[str]] = {
1785
+ '200': "PaymentReceipt",
1786
+ }
1787
+ response_data = self.api_client.call_api(
1788
+ *_param,
1789
+ _request_timeout=_request_timeout
1790
+ )
1791
+ response_data.read()
1792
+ return self.api_client.response_deserialize(
1793
+ response_data=response_data,
1794
+ response_types_map=_response_types_map,
1795
+ )
1796
+
1797
+
1798
+ @validate_call
1799
+ def payment_request_receipt_retrieve_without_preload_content(
1800
+ self,
1801
+ payment_request_id: StrictStr,
1802
+ payment_receipt_id: StrictStr,
1803
+ _request_timeout: Union[
1804
+ None,
1805
+ Annotated[StrictFloat, Field(gt=0)],
1806
+ Tuple[
1807
+ Annotated[StrictFloat, Field(gt=0)],
1808
+ Annotated[StrictFloat, Field(gt=0)]
1809
+ ]
1810
+ ] = None,
1811
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1812
+ _content_type: Optional[StrictStr] = None,
1813
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1814
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1815
+ ) -> RESTResponseType:
1816
+ """Retrieve Payment Receipt
1817
+
1818
+ Recovers the payment receipt resource by its id
1819
+
1820
+ :param payment_request_id: (required)
1821
+ :type payment_request_id: str
1822
+ :param payment_receipt_id: (required)
1823
+ :type payment_receipt_id: str
1824
+ :param _request_timeout: timeout setting for this request. If one
1825
+ number provided, it will be total request
1826
+ timeout. It can also be a pair (tuple) of
1827
+ (connection, read) timeouts.
1828
+ :type _request_timeout: int, tuple(int, int), optional
1829
+ :param _request_auth: set to override the auth_settings for an a single
1830
+ request; this effectively ignores the
1831
+ authentication in the spec for a single request.
1832
+ :type _request_auth: dict, optional
1833
+ :param _content_type: force content-type for the request.
1834
+ :type _content_type: str, Optional
1835
+ :param _headers: set to override the headers for a single
1836
+ request; this effectively ignores the headers
1837
+ in the spec for a single request.
1838
+ :type _headers: dict, optional
1839
+ :param _host_index: set to override the host_index for a single
1840
+ request; this effectively ignores the host_index
1841
+ in the spec for a single request.
1842
+ :type _host_index: int, optional
1843
+ :return: Returns the result object.
1844
+ """ # noqa: E501
1845
+
1846
+ _param = self._payment_request_receipt_retrieve_serialize(
1847
+ payment_request_id=payment_request_id,
1848
+ payment_receipt_id=payment_receipt_id,
1849
+ _request_auth=_request_auth,
1850
+ _content_type=_content_type,
1851
+ _headers=_headers,
1852
+ _host_index=_host_index
1853
+ )
1854
+
1855
+ _response_types_map: Dict[str, Optional[str]] = {
1856
+ '200': "PaymentReceipt",
1857
+ }
1858
+ response_data = self.api_client.call_api(
1859
+ *_param,
1860
+ _request_timeout=_request_timeout
1861
+ )
1862
+ return response_data.response
1863
+
1864
+
1865
+ def _payment_request_receipt_retrieve_serialize(
1866
+ self,
1867
+ payment_request_id,
1868
+ payment_receipt_id,
1869
+ _request_auth,
1870
+ _content_type,
1871
+ _headers,
1872
+ _host_index,
1873
+ ) -> RequestSerialized:
1874
+
1875
+ _host = None
1876
+
1877
+ _collection_formats: Dict[str, str] = {
1878
+ }
1879
+
1880
+ _path_params: Dict[str, str] = {}
1881
+ _query_params: List[Tuple[str, str]] = []
1882
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1883
+ _form_params: List[Tuple[str, str]] = []
1884
+ _files: Dict[str, Union[str, bytes]] = {}
1885
+ _body_params: Optional[bytes] = None
1886
+
1887
+ # process the path parameters
1888
+ if payment_request_id is not None:
1889
+ _path_params['payment-request-id'] = payment_request_id
1890
+ if payment_receipt_id is not None:
1891
+ _path_params['payment-receipt-id'] = payment_receipt_id
1892
+ # process the query parameters
1893
+ # process the header parameters
1894
+ # process the form parameters
1895
+ # process the body parameter
1896
+
1897
+
1898
+ # set the HTTP header `Accept`
1899
+ if 'Accept' not in _header_params:
1900
+ _header_params['Accept'] = self.api_client.select_header_accept(
1901
+ [
1902
+ 'application/json'
1903
+ ]
1904
+ )
1905
+
1906
+
1907
+ # authentication setting
1908
+ _auth_settings: List[str] = [
1909
+ ]
1910
+
1911
+ return self.api_client.param_serialize(
1912
+ method='GET',
1913
+ resource_path='/payments/requests/{payment-request-id}/receipts/{payment-receipt-id}',
1914
+ path_params=_path_params,
1915
+ query_params=_query_params,
1916
+ header_params=_header_params,
1917
+ body=_body_params,
1918
+ post_params=_form_params,
1919
+ files=_files,
1920
+ auth_settings=_auth_settings,
1921
+ collection_formats=_collection_formats,
1922
+ _host=_host,
1923
+ _request_auth=_request_auth
1924
+ )
1925
+
1926
+
1927
+
1928
+
1125
1929
  @validate_call
1126
1930
  def payment_request_retrieve(
1127
1931
  self,