pluggy-sdk 1.0.0.post11__py3-none-any.whl → 1.0.0.post13__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 (38) hide show
  1. pluggy_sdk/__init__.py +18 -1
  2. pluggy_sdk/api/__init__.py +2 -0
  3. pluggy_sdk/api/benefit_api.py +561 -0
  4. pluggy_sdk/api/consent_api.py +570 -0
  5. pluggy_sdk/api/payment_request_api.py +259 -0
  6. pluggy_sdk/api/payroll_loan_api.py +561 -0
  7. pluggy_sdk/api_client.py +1 -1
  8. pluggy_sdk/configuration.py +1 -1
  9. pluggy_sdk/models/__init__.py +15 -0
  10. pluggy_sdk/models/benefit_response.py +118 -0
  11. pluggy_sdk/models/benefit_response_paying_institution.py +94 -0
  12. pluggy_sdk/models/benefits_list200_response.py +102 -0
  13. pluggy_sdk/models/connector.py +2 -2
  14. pluggy_sdk/models/consent.py +120 -0
  15. pluggy_sdk/models/create_item.py +2 -2
  16. pluggy_sdk/models/create_payment_request.py +8 -2
  17. pluggy_sdk/models/item.py +2 -2
  18. pluggy_sdk/models/page_response_consents.py +102 -0
  19. pluggy_sdk/models/payment_recipient_account.py +2 -9
  20. pluggy_sdk/models/payment_request.py +10 -4
  21. pluggy_sdk/models/payment_request_schedule.py +183 -0
  22. pluggy_sdk/models/payment_schedules_list200_response.py +102 -0
  23. pluggy_sdk/models/payroll_loan.py +121 -0
  24. pluggy_sdk/models/payroll_loan_client.py +102 -0
  25. pluggy_sdk/models/payroll_loan_response.py +125 -0
  26. pluggy_sdk/models/payroll_loan_response_client.py +102 -0
  27. pluggy_sdk/models/payroll_loans_list200_response.py +102 -0
  28. pluggy_sdk/models/schedule_payment.py +102 -0
  29. pluggy_sdk/models/schedule_type_custom.py +100 -0
  30. pluggy_sdk/models/schedule_type_daily.py +101 -0
  31. pluggy_sdk/models/schedule_type_monthly.py +103 -0
  32. pluggy_sdk/models/schedule_type_single.py +98 -0
  33. pluggy_sdk/models/schedule_type_weekly.py +110 -0
  34. pluggy_sdk/models/update_item.py +2 -2
  35. {pluggy_sdk-1.0.0.post11.dist-info → pluggy_sdk-1.0.0.post13.dist-info}/METADATA +22 -2
  36. {pluggy_sdk-1.0.0.post11.dist-info → pluggy_sdk-1.0.0.post13.dist-info}/RECORD +38 -17
  37. {pluggy_sdk-1.0.0.post11.dist-info → pluggy_sdk-1.0.0.post13.dist-info}/WHEEL +1 -1
  38. {pluggy_sdk-1.0.0.post11.dist-info → pluggy_sdk-1.0.0.post13.dist-info}/top_level.txt +0 -0
@@ -26,6 +26,7 @@ from pluggy_sdk.models.payment_receipt import PaymentReceipt
26
26
  from pluggy_sdk.models.payment_request import PaymentRequest
27
27
  from pluggy_sdk.models.payment_request_receipt_list200_response import PaymentRequestReceiptList200Response
28
28
  from pluggy_sdk.models.payment_requests_list200_response import PaymentRequestsList200Response
29
+ from pluggy_sdk.models.payment_schedules_list200_response import PaymentSchedulesList200Response
29
30
  from pluggy_sdk.models.update_payment_request import UpdatePaymentRequest
30
31
 
31
32
  from pluggy_sdk.api_client import ApiClient, RequestSerialized
@@ -2707,3 +2708,261 @@ class PaymentRequestApi:
2707
2708
  )
2708
2709
 
2709
2710
 
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
+