pluggy-sdk 1.0.0.post15__py3-none-any.whl → 1.0.0.post17__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.
@@ -26,7 +26,6 @@ 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
30
29
  from pluggy_sdk.models.update_payment_request import UpdatePaymentRequest
31
30
 
32
31
  from pluggy_sdk.api_client import ApiClient, RequestSerialized
@@ -2718,262 +2717,3 @@ class PaymentRequestApi:
2718
2717
  )
2719
2718
 
2720
2719
 
2721
-
2722
-
2723
- @validate_call
2724
- def payment_schedules_list(
2725
- self,
2726
- id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
2727
- _request_timeout: Union[
2728
- None,
2729
- Annotated[StrictFloat, Field(gt=0)],
2730
- Tuple[
2731
- Annotated[StrictFloat, Field(gt=0)],
2732
- Annotated[StrictFloat, Field(gt=0)]
2733
- ]
2734
- ] = None,
2735
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2736
- _content_type: Optional[StrictStr] = None,
2737
- _headers: Optional[Dict[StrictStr, Any]] = None,
2738
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2739
- ) -> PaymentSchedulesList200Response:
2740
- """Schedule List
2741
-
2742
- Recovers all scheduled payments from a payment request
2743
-
2744
- :param id: Payment request primary identifier (required)
2745
- :type id: str
2746
- :param _request_timeout: timeout setting for this request. If one
2747
- number provided, it will be total request
2748
- timeout. It can also be a pair (tuple) of
2749
- (connection, read) timeouts.
2750
- :type _request_timeout: int, tuple(int, int), optional
2751
- :param _request_auth: set to override the auth_settings for an a single
2752
- request; this effectively ignores the
2753
- authentication in the spec for a single request.
2754
- :type _request_auth: dict, optional
2755
- :param _content_type: force content-type for the request.
2756
- :type _content_type: str, Optional
2757
- :param _headers: set to override the headers for a single
2758
- request; this effectively ignores the headers
2759
- in the spec for a single request.
2760
- :type _headers: dict, optional
2761
- :param _host_index: set to override the host_index for a single
2762
- request; this effectively ignores the host_index
2763
- in the spec for a single request.
2764
- :type _host_index: int, optional
2765
- :return: Returns the result object.
2766
- """ # noqa: E501
2767
-
2768
- _param = self._payment_schedules_list_serialize(
2769
- id=id,
2770
- _request_auth=_request_auth,
2771
- _content_type=_content_type,
2772
- _headers=_headers,
2773
- _host_index=_host_index
2774
- )
2775
-
2776
- _response_types_map: Dict[str, Optional[str]] = {
2777
- '200': "PaymentSchedulesList200Response",
2778
- }
2779
- response_data = self.api_client.call_api(
2780
- *_param,
2781
- _request_timeout=_request_timeout
2782
- )
2783
- response_data.read()
2784
- return self.api_client.response_deserialize(
2785
- response_data=response_data,
2786
- response_types_map=_response_types_map,
2787
- ).data
2788
-
2789
-
2790
- @validate_call
2791
- def payment_schedules_list_with_http_info(
2792
- self,
2793
- id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
2794
- _request_timeout: Union[
2795
- None,
2796
- Annotated[StrictFloat, Field(gt=0)],
2797
- Tuple[
2798
- Annotated[StrictFloat, Field(gt=0)],
2799
- Annotated[StrictFloat, Field(gt=0)]
2800
- ]
2801
- ] = None,
2802
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2803
- _content_type: Optional[StrictStr] = None,
2804
- _headers: Optional[Dict[StrictStr, Any]] = None,
2805
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2806
- ) -> ApiResponse[PaymentSchedulesList200Response]:
2807
- """Schedule List
2808
-
2809
- Recovers all scheduled payments from a payment request
2810
-
2811
- :param id: Payment request primary identifier (required)
2812
- :type id: str
2813
- :param _request_timeout: timeout setting for this request. If one
2814
- number provided, it will be total request
2815
- timeout. It can also be a pair (tuple) of
2816
- (connection, read) timeouts.
2817
- :type _request_timeout: int, tuple(int, int), optional
2818
- :param _request_auth: set to override the auth_settings for an a single
2819
- request; this effectively ignores the
2820
- authentication in the spec for a single request.
2821
- :type _request_auth: dict, optional
2822
- :param _content_type: force content-type for the request.
2823
- :type _content_type: str, Optional
2824
- :param _headers: set to override the headers for a single
2825
- request; this effectively ignores the headers
2826
- in the spec for a single request.
2827
- :type _headers: dict, optional
2828
- :param _host_index: set to override the host_index for a single
2829
- request; this effectively ignores the host_index
2830
- in the spec for a single request.
2831
- :type _host_index: int, optional
2832
- :return: Returns the result object.
2833
- """ # noqa: E501
2834
-
2835
- _param = self._payment_schedules_list_serialize(
2836
- id=id,
2837
- _request_auth=_request_auth,
2838
- _content_type=_content_type,
2839
- _headers=_headers,
2840
- _host_index=_host_index
2841
- )
2842
-
2843
- _response_types_map: Dict[str, Optional[str]] = {
2844
- '200': "PaymentSchedulesList200Response",
2845
- }
2846
- response_data = self.api_client.call_api(
2847
- *_param,
2848
- _request_timeout=_request_timeout
2849
- )
2850
- response_data.read()
2851
- return self.api_client.response_deserialize(
2852
- response_data=response_data,
2853
- response_types_map=_response_types_map,
2854
- )
2855
-
2856
-
2857
- @validate_call
2858
- def payment_schedules_list_without_preload_content(
2859
- self,
2860
- id: Annotated[StrictStr, Field(description="Payment request primary identifier")],
2861
- _request_timeout: Union[
2862
- None,
2863
- Annotated[StrictFloat, Field(gt=0)],
2864
- Tuple[
2865
- Annotated[StrictFloat, Field(gt=0)],
2866
- Annotated[StrictFloat, Field(gt=0)]
2867
- ]
2868
- ] = None,
2869
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2870
- _content_type: Optional[StrictStr] = None,
2871
- _headers: Optional[Dict[StrictStr, Any]] = None,
2872
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2873
- ) -> RESTResponseType:
2874
- """Schedule List
2875
-
2876
- Recovers all scheduled payments from a payment request
2877
-
2878
- :param id: Payment request primary identifier (required)
2879
- :type id: str
2880
- :param _request_timeout: timeout setting for this request. If one
2881
- number provided, it will be total request
2882
- timeout. It can also be a pair (tuple) of
2883
- (connection, read) timeouts.
2884
- :type _request_timeout: int, tuple(int, int), optional
2885
- :param _request_auth: set to override the auth_settings for an a single
2886
- request; this effectively ignores the
2887
- authentication in the spec for a single request.
2888
- :type _request_auth: dict, optional
2889
- :param _content_type: force content-type for the request.
2890
- :type _content_type: str, Optional
2891
- :param _headers: set to override the headers for a single
2892
- request; this effectively ignores the headers
2893
- in the spec for a single request.
2894
- :type _headers: dict, optional
2895
- :param _host_index: set to override the host_index for a single
2896
- request; this effectively ignores the host_index
2897
- in the spec for a single request.
2898
- :type _host_index: int, optional
2899
- :return: Returns the result object.
2900
- """ # noqa: E501
2901
-
2902
- _param = self._payment_schedules_list_serialize(
2903
- id=id,
2904
- _request_auth=_request_auth,
2905
- _content_type=_content_type,
2906
- _headers=_headers,
2907
- _host_index=_host_index
2908
- )
2909
-
2910
- _response_types_map: Dict[str, Optional[str]] = {
2911
- '200': "PaymentSchedulesList200Response",
2912
- }
2913
- response_data = self.api_client.call_api(
2914
- *_param,
2915
- _request_timeout=_request_timeout
2916
- )
2917
- return response_data.response
2918
-
2919
-
2920
- def _payment_schedules_list_serialize(
2921
- self,
2922
- id,
2923
- _request_auth,
2924
- _content_type,
2925
- _headers,
2926
- _host_index,
2927
- ) -> RequestSerialized:
2928
-
2929
- _host = None
2930
-
2931
- _collection_formats: Dict[str, str] = {
2932
- }
2933
-
2934
- _path_params: Dict[str, str] = {}
2935
- _query_params: List[Tuple[str, str]] = []
2936
- _header_params: Dict[str, Optional[str]] = _headers or {}
2937
- _form_params: List[Tuple[str, str]] = []
2938
- _files: Dict[str, Union[str, bytes]] = {}
2939
- _body_params: Optional[bytes] = None
2940
-
2941
- # process the path parameters
2942
- if id is not None:
2943
- _path_params['id'] = id
2944
- # process the query parameters
2945
- # process the header parameters
2946
- # process the form parameters
2947
- # process the body parameter
2948
-
2949
-
2950
- # set the HTTP header `Accept`
2951
- if 'Accept' not in _header_params:
2952
- _header_params['Accept'] = self.api_client.select_header_accept(
2953
- [
2954
- 'application/json'
2955
- ]
2956
- )
2957
-
2958
-
2959
- # authentication setting
2960
- _auth_settings: List[str] = [
2961
- 'default'
2962
- ]
2963
-
2964
- return self.api_client.param_serialize(
2965
- method='GET',
2966
- resource_path='/payments/requests/{id}/schedules',
2967
- path_params=_path_params,
2968
- query_params=_query_params,
2969
- header_params=_header_params,
2970
- body=_body_params,
2971
- post_params=_form_params,
2972
- files=_files,
2973
- auth_settings=_auth_settings,
2974
- collection_formats=_collection_formats,
2975
- _host=_host,
2976
- _request_auth=_request_auth
2977
- )
2978
-
2979
-