pluggy-sdk 1.0.0.post37__py3-none-any.whl → 1.0.0.post39__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 (29) hide show
  1. pluggy_sdk/__init__.py +7 -1
  2. pluggy_sdk/api/boleto_management_api.py +530 -0
  3. pluggy_sdk/api/payment_recipient_api.py +1 -18
  4. pluggy_sdk/api_client.py +1 -1
  5. pluggy_sdk/configuration.py +10 -3
  6. pluggy_sdk/models/__init__.py +6 -0
  7. pluggy_sdk/models/create_boleto_boleto.py +15 -3
  8. pluggy_sdk/models/create_boleto_boleto_fine.py +98 -0
  9. pluggy_sdk/models/create_boleto_boleto_interest.py +98 -0
  10. pluggy_sdk/models/create_boleto_connection_from_item.py +88 -0
  11. pluggy_sdk/models/create_or_update_payment_customer.py +1 -1
  12. pluggy_sdk/models/create_payment_customer_request_body.py +1 -1
  13. pluggy_sdk/models/create_payment_recipient.py +2 -4
  14. pluggy_sdk/models/create_webhook.py +2 -2
  15. pluggy_sdk/models/investment.py +1 -11
  16. pluggy_sdk/models/investment_transaction.py +3 -1
  17. pluggy_sdk/models/issued_boleto.py +48 -3
  18. pluggy_sdk/models/issued_boleto_fine.py +101 -0
  19. pluggy_sdk/models/issued_boleto_interest.py +101 -0
  20. pluggy_sdk/models/issued_boleto_payer.py +18 -4
  21. pluggy_sdk/models/schedule_payment.py +9 -3
  22. pluggy_sdk/models/schedule_payment_error_detail.py +92 -0
  23. pluggy_sdk/models/smart_account.py +4 -2
  24. pluggy_sdk/models/update_payment_recipient.py +2 -4
  25. pluggy_sdk/rest.py +1 -0
  26. {pluggy_sdk-1.0.0.post37.dist-info → pluggy_sdk-1.0.0.post39.dist-info}/METADATA +11 -3
  27. {pluggy_sdk-1.0.0.post37.dist-info → pluggy_sdk-1.0.0.post39.dist-info}/RECORD +29 -23
  28. {pluggy_sdk-1.0.0.post37.dist-info → pluggy_sdk-1.0.0.post39.dist-info}/WHEEL +1 -1
  29. {pluggy_sdk-1.0.0.post37.dist-info → pluggy_sdk-1.0.0.post39.dist-info}/top_level.txt +0 -0
pluggy_sdk/__init__.py CHANGED
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "1.0.0.post37"
18
+ __version__ = "1.0.0.post39"
19
19
 
20
20
  # import apis into sdk package
21
21
  from pluggy_sdk.api.account_api import AccountApi
@@ -88,8 +88,11 @@ from pluggy_sdk.models.connector_user_action import ConnectorUserAction
88
88
  from pluggy_sdk.models.consent import Consent
89
89
  from pluggy_sdk.models.create_boleto import CreateBoleto
90
90
  from pluggy_sdk.models.create_boleto_boleto import CreateBoletoBoleto
91
+ from pluggy_sdk.models.create_boleto_boleto_fine import CreateBoletoBoletoFine
92
+ from pluggy_sdk.models.create_boleto_boleto_interest import CreateBoletoBoletoInterest
91
93
  from pluggy_sdk.models.create_boleto_boleto_payer import CreateBoletoBoletoPayer
92
94
  from pluggy_sdk.models.create_boleto_connection import CreateBoletoConnection
95
+ from pluggy_sdk.models.create_boleto_connection_from_item import CreateBoletoConnectionFromItem
93
96
  from pluggy_sdk.models.create_boleto_payment_request import CreateBoletoPaymentRequest
94
97
  from pluggy_sdk.models.create_bulk_payment import CreateBulkPayment
95
98
  from pluggy_sdk.models.create_client_category_rule import CreateClientCategoryRule
@@ -129,6 +132,8 @@ from pluggy_sdk.models.investment_metadata import InvestmentMetadata
129
132
  from pluggy_sdk.models.investment_transaction import InvestmentTransaction
130
133
  from pluggy_sdk.models.investments_list200_response import InvestmentsList200Response
131
134
  from pluggy_sdk.models.issued_boleto import IssuedBoleto
135
+ from pluggy_sdk.models.issued_boleto_fine import IssuedBoletoFine
136
+ from pluggy_sdk.models.issued_boleto_interest import IssuedBoletoInterest
132
137
  from pluggy_sdk.models.issued_boleto_payer import IssuedBoletoPayer
133
138
  from pluggy_sdk.models.item import Item
134
139
  from pluggy_sdk.models.item_creation_error_response import ItemCreationErrorResponse
@@ -185,6 +190,7 @@ from pluggy_sdk.models.phone_number import PhoneNumber
185
190
  from pluggy_sdk.models.pix_data import PixData
186
191
  from pluggy_sdk.models.single import SINGLE
187
192
  from pluggy_sdk.models.schedule_payment import SchedulePayment
193
+ from pluggy_sdk.models.schedule_payment_error_detail import SchedulePaymentErrorDetail
188
194
  from pluggy_sdk.models.smart_account import SmartAccount
189
195
  from pluggy_sdk.models.smart_account_address import SmartAccountAddress
190
196
  from pluggy_sdk.models.smart_account_balance import SmartAccountBalance
@@ -22,6 +22,7 @@ from typing_extensions import Annotated
22
22
  from pluggy_sdk.models.boleto_connection import BoletoConnection
23
23
  from pluggy_sdk.models.create_boleto import CreateBoleto
24
24
  from pluggy_sdk.models.create_boleto_connection import CreateBoletoConnection
25
+ from pluggy_sdk.models.create_boleto_connection_from_item import CreateBoletoConnectionFromItem
25
26
  from pluggy_sdk.models.issued_boleto import IssuedBoleto
26
27
 
27
28
  from pluggy_sdk.api_client import ApiClient, RequestSerialized
@@ -574,6 +575,277 @@ class BoletoManagementApi:
574
575
 
575
576
 
576
577
 
578
+ @validate_call
579
+ def boleto_connection_create_from_item(
580
+ self,
581
+ create_boleto_connection_from_item: CreateBoletoConnectionFromItem,
582
+ _request_timeout: Union[
583
+ None,
584
+ Annotated[StrictFloat, Field(gt=0)],
585
+ Tuple[
586
+ Annotated[StrictFloat, Field(gt=0)],
587
+ Annotated[StrictFloat, Field(gt=0)]
588
+ ]
589
+ ] = None,
590
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
591
+ _content_type: Optional[StrictStr] = None,
592
+ _headers: Optional[Dict[StrictStr, Any]] = None,
593
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
594
+ ) -> BoletoConnection:
595
+ """Create boleto connection from Item
596
+
597
+
598
+ :param create_boleto_connection_from_item: (required)
599
+ :type create_boleto_connection_from_item: CreateBoletoConnectionFromItem
600
+ :param _request_timeout: timeout setting for this request. If one
601
+ number provided, it will be total request
602
+ timeout. It can also be a pair (tuple) of
603
+ (connection, read) timeouts.
604
+ :type _request_timeout: int, tuple(int, int), optional
605
+ :param _request_auth: set to override the auth_settings for an a single
606
+ request; this effectively ignores the
607
+ authentication in the spec for a single request.
608
+ :type _request_auth: dict, optional
609
+ :param _content_type: force content-type for the request.
610
+ :type _content_type: str, Optional
611
+ :param _headers: set to override the headers for a single
612
+ request; this effectively ignores the headers
613
+ in the spec for a single request.
614
+ :type _headers: dict, optional
615
+ :param _host_index: set to override the host_index for a single
616
+ request; this effectively ignores the host_index
617
+ in the spec for a single request.
618
+ :type _host_index: int, optional
619
+ :return: Returns the result object.
620
+ """ # noqa: E501
621
+
622
+ _param = self._boleto_connection_create_from_item_serialize(
623
+ create_boleto_connection_from_item=create_boleto_connection_from_item,
624
+ _request_auth=_request_auth,
625
+ _content_type=_content_type,
626
+ _headers=_headers,
627
+ _host_index=_host_index
628
+ )
629
+
630
+ _response_types_map: Dict[str, Optional[str]] = {
631
+ '200': "BoletoConnection",
632
+ }
633
+ response_data = self.api_client.call_api(
634
+ *_param,
635
+ _request_timeout=_request_timeout
636
+ )
637
+ response_data.read()
638
+ return self.api_client.response_deserialize(
639
+ response_data=response_data,
640
+ response_types_map=_response_types_map,
641
+ ).data
642
+
643
+
644
+ @validate_call
645
+ def boleto_connection_create_from_item_with_http_info(
646
+ self,
647
+ create_boleto_connection_from_item: CreateBoletoConnectionFromItem,
648
+ _request_timeout: Union[
649
+ None,
650
+ Annotated[StrictFloat, Field(gt=0)],
651
+ Tuple[
652
+ Annotated[StrictFloat, Field(gt=0)],
653
+ Annotated[StrictFloat, Field(gt=0)]
654
+ ]
655
+ ] = None,
656
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
657
+ _content_type: Optional[StrictStr] = None,
658
+ _headers: Optional[Dict[StrictStr, Any]] = None,
659
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
660
+ ) -> ApiResponse[BoletoConnection]:
661
+ """Create boleto connection from Item
662
+
663
+
664
+ :param create_boleto_connection_from_item: (required)
665
+ :type create_boleto_connection_from_item: CreateBoletoConnectionFromItem
666
+ :param _request_timeout: timeout setting for this request. If one
667
+ number provided, it will be total request
668
+ timeout. It can also be a pair (tuple) of
669
+ (connection, read) timeouts.
670
+ :type _request_timeout: int, tuple(int, int), optional
671
+ :param _request_auth: set to override the auth_settings for an a single
672
+ request; this effectively ignores the
673
+ authentication in the spec for a single request.
674
+ :type _request_auth: dict, optional
675
+ :param _content_type: force content-type for the request.
676
+ :type _content_type: str, Optional
677
+ :param _headers: set to override the headers for a single
678
+ request; this effectively ignores the headers
679
+ in the spec for a single request.
680
+ :type _headers: dict, optional
681
+ :param _host_index: set to override the host_index for a single
682
+ request; this effectively ignores the host_index
683
+ in the spec for a single request.
684
+ :type _host_index: int, optional
685
+ :return: Returns the result object.
686
+ """ # noqa: E501
687
+
688
+ _param = self._boleto_connection_create_from_item_serialize(
689
+ create_boleto_connection_from_item=create_boleto_connection_from_item,
690
+ _request_auth=_request_auth,
691
+ _content_type=_content_type,
692
+ _headers=_headers,
693
+ _host_index=_host_index
694
+ )
695
+
696
+ _response_types_map: Dict[str, Optional[str]] = {
697
+ '200': "BoletoConnection",
698
+ }
699
+ response_data = self.api_client.call_api(
700
+ *_param,
701
+ _request_timeout=_request_timeout
702
+ )
703
+ response_data.read()
704
+ return self.api_client.response_deserialize(
705
+ response_data=response_data,
706
+ response_types_map=_response_types_map,
707
+ )
708
+
709
+
710
+ @validate_call
711
+ def boleto_connection_create_from_item_without_preload_content(
712
+ self,
713
+ create_boleto_connection_from_item: CreateBoletoConnectionFromItem,
714
+ _request_timeout: Union[
715
+ None,
716
+ Annotated[StrictFloat, Field(gt=0)],
717
+ Tuple[
718
+ Annotated[StrictFloat, Field(gt=0)],
719
+ Annotated[StrictFloat, Field(gt=0)]
720
+ ]
721
+ ] = None,
722
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
723
+ _content_type: Optional[StrictStr] = None,
724
+ _headers: Optional[Dict[StrictStr, Any]] = None,
725
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
726
+ ) -> RESTResponseType:
727
+ """Create boleto connection from Item
728
+
729
+
730
+ :param create_boleto_connection_from_item: (required)
731
+ :type create_boleto_connection_from_item: CreateBoletoConnectionFromItem
732
+ :param _request_timeout: timeout setting for this request. If one
733
+ number provided, it will be total request
734
+ timeout. It can also be a pair (tuple) of
735
+ (connection, read) timeouts.
736
+ :type _request_timeout: int, tuple(int, int), optional
737
+ :param _request_auth: set to override the auth_settings for an a single
738
+ request; this effectively ignores the
739
+ authentication in the spec for a single request.
740
+ :type _request_auth: dict, optional
741
+ :param _content_type: force content-type for the request.
742
+ :type _content_type: str, Optional
743
+ :param _headers: set to override the headers for a single
744
+ request; this effectively ignores the headers
745
+ in the spec for a single request.
746
+ :type _headers: dict, optional
747
+ :param _host_index: set to override the host_index for a single
748
+ request; this effectively ignores the host_index
749
+ in the spec for a single request.
750
+ :type _host_index: int, optional
751
+ :return: Returns the result object.
752
+ """ # noqa: E501
753
+
754
+ _param = self._boleto_connection_create_from_item_serialize(
755
+ create_boleto_connection_from_item=create_boleto_connection_from_item,
756
+ _request_auth=_request_auth,
757
+ _content_type=_content_type,
758
+ _headers=_headers,
759
+ _host_index=_host_index
760
+ )
761
+
762
+ _response_types_map: Dict[str, Optional[str]] = {
763
+ '200': "BoletoConnection",
764
+ }
765
+ response_data = self.api_client.call_api(
766
+ *_param,
767
+ _request_timeout=_request_timeout
768
+ )
769
+ return response_data.response
770
+
771
+
772
+ def _boleto_connection_create_from_item_serialize(
773
+ self,
774
+ create_boleto_connection_from_item,
775
+ _request_auth,
776
+ _content_type,
777
+ _headers,
778
+ _host_index,
779
+ ) -> RequestSerialized:
780
+
781
+ _host = None
782
+
783
+ _collection_formats: Dict[str, str] = {
784
+ }
785
+
786
+ _path_params: Dict[str, str] = {}
787
+ _query_params: List[Tuple[str, str]] = []
788
+ _header_params: Dict[str, Optional[str]] = _headers or {}
789
+ _form_params: List[Tuple[str, str]] = []
790
+ _files: Dict[
791
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
792
+ ] = {}
793
+ _body_params: Optional[bytes] = None
794
+
795
+ # process the path parameters
796
+ # process the query parameters
797
+ # process the header parameters
798
+ # process the form parameters
799
+ # process the body parameter
800
+ if create_boleto_connection_from_item is not None:
801
+ _body_params = create_boleto_connection_from_item
802
+
803
+
804
+ # set the HTTP header `Accept`
805
+ if 'Accept' not in _header_params:
806
+ _header_params['Accept'] = self.api_client.select_header_accept(
807
+ [
808
+ 'application/json'
809
+ ]
810
+ )
811
+
812
+ # set the HTTP header `Content-Type`
813
+ if _content_type:
814
+ _header_params['Content-Type'] = _content_type
815
+ else:
816
+ _default_content_type = (
817
+ self.api_client.select_header_content_type(
818
+ [
819
+ 'application/json'
820
+ ]
821
+ )
822
+ )
823
+ if _default_content_type is not None:
824
+ _header_params['Content-Type'] = _default_content_type
825
+
826
+ # authentication setting
827
+ _auth_settings: List[str] = [
828
+ 'default'
829
+ ]
830
+
831
+ return self.api_client.param_serialize(
832
+ method='POST',
833
+ resource_path='/boleto-connections/from-item',
834
+ path_params=_path_params,
835
+ query_params=_query_params,
836
+ header_params=_header_params,
837
+ body=_body_params,
838
+ post_params=_form_params,
839
+ files=_files,
840
+ auth_settings=_auth_settings,
841
+ collection_formats=_collection_formats,
842
+ _host=_host,
843
+ _request_auth=_request_auth
844
+ )
845
+
846
+
847
+
848
+
577
849
  @validate_call
578
850
  def boleto_create(
579
851
  self,
@@ -843,3 +1115,261 @@ class BoletoManagementApi:
843
1115
  )
844
1116
 
845
1117
 
1118
+
1119
+
1120
+ @validate_call
1121
+ def boleto_get(
1122
+ self,
1123
+ id: Annotated[StrictStr, Field(description="Boleto primary identifier")],
1124
+ _request_timeout: Union[
1125
+ None,
1126
+ Annotated[StrictFloat, Field(gt=0)],
1127
+ Tuple[
1128
+ Annotated[StrictFloat, Field(gt=0)],
1129
+ Annotated[StrictFloat, Field(gt=0)]
1130
+ ]
1131
+ ] = None,
1132
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1133
+ _content_type: Optional[StrictStr] = None,
1134
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1135
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1136
+ ) -> IssuedBoleto:
1137
+ """Get Boleto
1138
+
1139
+
1140
+ :param id: Boleto primary identifier (required)
1141
+ :type id: str
1142
+ :param _request_timeout: timeout setting for this request. If one
1143
+ number provided, it will be total request
1144
+ timeout. It can also be a pair (tuple) of
1145
+ (connection, read) timeouts.
1146
+ :type _request_timeout: int, tuple(int, int), optional
1147
+ :param _request_auth: set to override the auth_settings for an a single
1148
+ request; this effectively ignores the
1149
+ authentication in the spec for a single request.
1150
+ :type _request_auth: dict, optional
1151
+ :param _content_type: force content-type for the request.
1152
+ :type _content_type: str, Optional
1153
+ :param _headers: set to override the headers for a single
1154
+ request; this effectively ignores the headers
1155
+ in the spec for a single request.
1156
+ :type _headers: dict, optional
1157
+ :param _host_index: set to override the host_index for a single
1158
+ request; this effectively ignores the host_index
1159
+ in the spec for a single request.
1160
+ :type _host_index: int, optional
1161
+ :return: Returns the result object.
1162
+ """ # noqa: E501
1163
+
1164
+ _param = self._boleto_get_serialize(
1165
+ id=id,
1166
+ _request_auth=_request_auth,
1167
+ _content_type=_content_type,
1168
+ _headers=_headers,
1169
+ _host_index=_host_index
1170
+ )
1171
+
1172
+ _response_types_map: Dict[str, Optional[str]] = {
1173
+ '200': "IssuedBoleto",
1174
+ }
1175
+ response_data = self.api_client.call_api(
1176
+ *_param,
1177
+ _request_timeout=_request_timeout
1178
+ )
1179
+ response_data.read()
1180
+ return self.api_client.response_deserialize(
1181
+ response_data=response_data,
1182
+ response_types_map=_response_types_map,
1183
+ ).data
1184
+
1185
+
1186
+ @validate_call
1187
+ def boleto_get_with_http_info(
1188
+ self,
1189
+ id: Annotated[StrictStr, Field(description="Boleto primary identifier")],
1190
+ _request_timeout: Union[
1191
+ None,
1192
+ Annotated[StrictFloat, Field(gt=0)],
1193
+ Tuple[
1194
+ Annotated[StrictFloat, Field(gt=0)],
1195
+ Annotated[StrictFloat, Field(gt=0)]
1196
+ ]
1197
+ ] = None,
1198
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1199
+ _content_type: Optional[StrictStr] = None,
1200
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1201
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1202
+ ) -> ApiResponse[IssuedBoleto]:
1203
+ """Get Boleto
1204
+
1205
+
1206
+ :param id: Boleto primary identifier (required)
1207
+ :type id: str
1208
+ :param _request_timeout: timeout setting for this request. If one
1209
+ number provided, it will be total request
1210
+ timeout. It can also be a pair (tuple) of
1211
+ (connection, read) timeouts.
1212
+ :type _request_timeout: int, tuple(int, int), optional
1213
+ :param _request_auth: set to override the auth_settings for an a single
1214
+ request; this effectively ignores the
1215
+ authentication in the spec for a single request.
1216
+ :type _request_auth: dict, optional
1217
+ :param _content_type: force content-type for the request.
1218
+ :type _content_type: str, Optional
1219
+ :param _headers: set to override the headers for a single
1220
+ request; this effectively ignores the headers
1221
+ in the spec for a single request.
1222
+ :type _headers: dict, optional
1223
+ :param _host_index: set to override the host_index for a single
1224
+ request; this effectively ignores the host_index
1225
+ in the spec for a single request.
1226
+ :type _host_index: int, optional
1227
+ :return: Returns the result object.
1228
+ """ # noqa: E501
1229
+
1230
+ _param = self._boleto_get_serialize(
1231
+ id=id,
1232
+ _request_auth=_request_auth,
1233
+ _content_type=_content_type,
1234
+ _headers=_headers,
1235
+ _host_index=_host_index
1236
+ )
1237
+
1238
+ _response_types_map: Dict[str, Optional[str]] = {
1239
+ '200': "IssuedBoleto",
1240
+ }
1241
+ response_data = self.api_client.call_api(
1242
+ *_param,
1243
+ _request_timeout=_request_timeout
1244
+ )
1245
+ response_data.read()
1246
+ return self.api_client.response_deserialize(
1247
+ response_data=response_data,
1248
+ response_types_map=_response_types_map,
1249
+ )
1250
+
1251
+
1252
+ @validate_call
1253
+ def boleto_get_without_preload_content(
1254
+ self,
1255
+ id: Annotated[StrictStr, Field(description="Boleto primary identifier")],
1256
+ _request_timeout: Union[
1257
+ None,
1258
+ Annotated[StrictFloat, Field(gt=0)],
1259
+ Tuple[
1260
+ Annotated[StrictFloat, Field(gt=0)],
1261
+ Annotated[StrictFloat, Field(gt=0)]
1262
+ ]
1263
+ ] = None,
1264
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1265
+ _content_type: Optional[StrictStr] = None,
1266
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1267
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1268
+ ) -> RESTResponseType:
1269
+ """Get Boleto
1270
+
1271
+
1272
+ :param id: Boleto primary identifier (required)
1273
+ :type id: str
1274
+ :param _request_timeout: timeout setting for this request. If one
1275
+ number provided, it will be total request
1276
+ timeout. It can also be a pair (tuple) of
1277
+ (connection, read) timeouts.
1278
+ :type _request_timeout: int, tuple(int, int), optional
1279
+ :param _request_auth: set to override the auth_settings for an a single
1280
+ request; this effectively ignores the
1281
+ authentication in the spec for a single request.
1282
+ :type _request_auth: dict, optional
1283
+ :param _content_type: force content-type for the request.
1284
+ :type _content_type: str, Optional
1285
+ :param _headers: set to override the headers for a single
1286
+ request; this effectively ignores the headers
1287
+ in the spec for a single request.
1288
+ :type _headers: dict, optional
1289
+ :param _host_index: set to override the host_index for a single
1290
+ request; this effectively ignores the host_index
1291
+ in the spec for a single request.
1292
+ :type _host_index: int, optional
1293
+ :return: Returns the result object.
1294
+ """ # noqa: E501
1295
+
1296
+ _param = self._boleto_get_serialize(
1297
+ id=id,
1298
+ _request_auth=_request_auth,
1299
+ _content_type=_content_type,
1300
+ _headers=_headers,
1301
+ _host_index=_host_index
1302
+ )
1303
+
1304
+ _response_types_map: Dict[str, Optional[str]] = {
1305
+ '200': "IssuedBoleto",
1306
+ }
1307
+ response_data = self.api_client.call_api(
1308
+ *_param,
1309
+ _request_timeout=_request_timeout
1310
+ )
1311
+ return response_data.response
1312
+
1313
+
1314
+ def _boleto_get_serialize(
1315
+ self,
1316
+ id,
1317
+ _request_auth,
1318
+ _content_type,
1319
+ _headers,
1320
+ _host_index,
1321
+ ) -> RequestSerialized:
1322
+
1323
+ _host = None
1324
+
1325
+ _collection_formats: Dict[str, str] = {
1326
+ }
1327
+
1328
+ _path_params: Dict[str, str] = {}
1329
+ _query_params: List[Tuple[str, str]] = []
1330
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1331
+ _form_params: List[Tuple[str, str]] = []
1332
+ _files: Dict[
1333
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1334
+ ] = {}
1335
+ _body_params: Optional[bytes] = None
1336
+
1337
+ # process the path parameters
1338
+ if id is not None:
1339
+ _path_params['id'] = id
1340
+ # process the query parameters
1341
+ # process the header parameters
1342
+ # process the form parameters
1343
+ # process the body parameter
1344
+
1345
+
1346
+ # set the HTTP header `Accept`
1347
+ if 'Accept' not in _header_params:
1348
+ _header_params['Accept'] = self.api_client.select_header_accept(
1349
+ [
1350
+ 'application/json'
1351
+ ]
1352
+ )
1353
+
1354
+
1355
+ # authentication setting
1356
+ _auth_settings: List[str] = [
1357
+ 'default'
1358
+ ]
1359
+
1360
+ return self.api_client.param_serialize(
1361
+ method='GET',
1362
+ resource_path='/boletos/{id}',
1363
+ path_params=_path_params,
1364
+ query_params=_query_params,
1365
+ header_params=_header_params,
1366
+ body=_body_params,
1367
+ post_params=_form_params,
1368
+ files=_files,
1369
+ auth_settings=_auth_settings,
1370
+ collection_formats=_collection_formats,
1371
+ _host=_host,
1372
+ _request_auth=_request_auth
1373
+ )
1374
+
1375
+
@@ -17,7 +17,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
- from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
20
+ from pydantic import Field, StrictFloat, StrictInt, StrictStr
21
21
  from typing import Optional, Union
22
22
  from typing_extensions import Annotated
23
23
  from pluggy_sdk.models.create_payment_recipient import CreatePaymentRecipient
@@ -1703,7 +1703,6 @@ class PaymentRecipientApi:
1703
1703
  @validate_call
1704
1704
  def payment_recipients_list(
1705
1705
  self,
1706
- is_default: Annotated[Optional[StrictBool], Field(description="Filter recipients only if its default or not")] = None,
1707
1706
  page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
1708
1707
  page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
1709
1708
  _request_timeout: Union[
@@ -1723,8 +1722,6 @@ class PaymentRecipientApi:
1723
1722
 
1724
1723
  Recovers all created payment recipients
1725
1724
 
1726
- :param is_default: Filter recipients only if its default or not
1727
- :type is_default: bool
1728
1725
  :param page_size: Page size for the paging request, default: 20
1729
1726
  :type page_size: float
1730
1727
  :param page: Page number for the paging request, default: 1
@@ -1752,7 +1749,6 @@ class PaymentRecipientApi:
1752
1749
  """ # noqa: E501
1753
1750
 
1754
1751
  _param = self._payment_recipients_list_serialize(
1755
- is_default=is_default,
1756
1752
  page_size=page_size,
1757
1753
  page=page,
1758
1754
  _request_auth=_request_auth,
@@ -1778,7 +1774,6 @@ class PaymentRecipientApi:
1778
1774
  @validate_call
1779
1775
  def payment_recipients_list_with_http_info(
1780
1776
  self,
1781
- is_default: Annotated[Optional[StrictBool], Field(description="Filter recipients only if its default or not")] = None,
1782
1777
  page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
1783
1778
  page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
1784
1779
  _request_timeout: Union[
@@ -1798,8 +1793,6 @@ class PaymentRecipientApi:
1798
1793
 
1799
1794
  Recovers all created payment recipients
1800
1795
 
1801
- :param is_default: Filter recipients only if its default or not
1802
- :type is_default: bool
1803
1796
  :param page_size: Page size for the paging request, default: 20
1804
1797
  :type page_size: float
1805
1798
  :param page: Page number for the paging request, default: 1
@@ -1827,7 +1820,6 @@ class PaymentRecipientApi:
1827
1820
  """ # noqa: E501
1828
1821
 
1829
1822
  _param = self._payment_recipients_list_serialize(
1830
- is_default=is_default,
1831
1823
  page_size=page_size,
1832
1824
  page=page,
1833
1825
  _request_auth=_request_auth,
@@ -1853,7 +1845,6 @@ class PaymentRecipientApi:
1853
1845
  @validate_call
1854
1846
  def payment_recipients_list_without_preload_content(
1855
1847
  self,
1856
- is_default: Annotated[Optional[StrictBool], Field(description="Filter recipients only if its default or not")] = None,
1857
1848
  page_size: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page size for the paging request, default: 20")] = None,
1858
1849
  page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number for the paging request, default: 1")] = None,
1859
1850
  _request_timeout: Union[
@@ -1873,8 +1864,6 @@ class PaymentRecipientApi:
1873
1864
 
1874
1865
  Recovers all created payment recipients
1875
1866
 
1876
- :param is_default: Filter recipients only if its default or not
1877
- :type is_default: bool
1878
1867
  :param page_size: Page size for the paging request, default: 20
1879
1868
  :type page_size: float
1880
1869
  :param page: Page number for the paging request, default: 1
@@ -1902,7 +1891,6 @@ class PaymentRecipientApi:
1902
1891
  """ # noqa: E501
1903
1892
 
1904
1893
  _param = self._payment_recipients_list_serialize(
1905
- is_default=is_default,
1906
1894
  page_size=page_size,
1907
1895
  page=page,
1908
1896
  _request_auth=_request_auth,
@@ -1923,7 +1911,6 @@ class PaymentRecipientApi:
1923
1911
 
1924
1912
  def _payment_recipients_list_serialize(
1925
1913
  self,
1926
- is_default,
1927
1914
  page_size,
1928
1915
  page,
1929
1916
  _request_auth,
@@ -1948,10 +1935,6 @@ class PaymentRecipientApi:
1948
1935
 
1949
1936
  # process the path parameters
1950
1937
  # process the query parameters
1951
- if is_default is not None:
1952
-
1953
- _query_params.append(('isDefault', is_default))
1954
-
1955
1938
  if page_size is not None:
1956
1939
 
1957
1940
  _query_params.append(('pageSize', page_size))
pluggy_sdk/api_client.py CHANGED
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/1.0.0.post37/python'
94
+ self.user_agent = 'OpenAPI-Generator/1.0.0.post39/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):