@@ -33,7 +33,7 @@ def detect_courier_with_http_info(opts: {})
3333
3434
3535 # resource path
36- local_var_path = "/tracking/2025-01 /couriers/detect"
36+ local_var_path = "/tracking/2025-04 /couriers/detect"
3737 method = :'POST'
3838
3939 # query parameters
@@ -64,39 +64,43 @@ def detect_courier_with_http_info(opts: {})
6464 return data , status_code , headers
6565 end
6666
67- # get_all_couriers
68- # Return a list of all couriers.
67+ # get_couriers
68+ # Return a list of couriers.
6969 # @param [Hash] opts the optional parameters
70- # @return [Model::GetAllCouriersResponse]
71- def get_all_couriers ( opts : { } )
72- data , _status_code , _headers = get_all_couriers_with_http_info ( opts : opts )
70+ # @option opts [Boolean] :active get user activated couriers
71+ # @option opts [String] :slug Unique courier code Use comma for multiple values. (Example: dhl,ups,usps)
72+ # @return [Model::GetCouriersResponse]
73+ def get_couriers ( opts : { } )
74+ data , _status_code , _headers = get_couriers_with_http_info ( opts : opts )
7375 data
7476 end
7577
76- def get_all_couriers_with_http_info ( opts : { } )
78+ def get_couriers_with_http_info ( opts : { } )
7779 if @api_client . config . debugging
78- @api_client . config . logger . debug 'Calling API: CourierApi.get_all_couriers ...'
80+ @api_client . config . logger . debug 'Calling API: CourierApi.get_couriers ...'
7981 end
8082
8183
8284
8385 # resource path
84- local_var_path = "/tracking/2025-01 /couriers/all "
86+ local_var_path = "/tracking/2025-04 /couriers"
8587 method = :'GET'
8688
8789 # query parameters
8890 query_params = opts [ :query_params ] || { }
91+ query_params [ :'active' ] = opts [ :'active' ] if !opts [ :'active' ] . nil?
92+ query_params [ :'slug' ] = opts [ :'slug' ] if !opts [ :'slug' ] . nil?
8993 # header parameters
9094 header_params = opts [ :header_params ] || { }
9195
9296 # http body (model)
9397 post_body = opts [ :body ]
9498
9599 # return_type
96- return_type = 'GetAllCouriersResponse '
100+ return_type = 'GetCouriersResponse '
97101
98102 new_options = opts . merge (
99- :operation => :"CourierApi.get_all_couriers " ,
103+ :operation => :"CourierApi.get_couriers " ,
100104 :header_params => header_params ,
101105 :query_params => query_params ,
102106 :body => post_body ,
@@ -107,55 +111,7 @@ def get_all_couriers_with_http_info(opts: {})
107111
108112 data , status_code , headers = @api_client . call_api ( method , local_var_path , new_options )
109113 if @api_client . config . debugging
110- @api_client . config . logger . debug "API called: CourierApi#get_all_couriers\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
111- end
112- return data , status_code , headers
113- end
114-
115- # get_user_couriers
116- # Return a list of .
117- # @param [Hash] opts the optional parameters
118- # @return [Model::GetUserCouriersResponse]
119- def get_user_couriers ( opts : { } )
120- data , _status_code , _headers = get_user_couriers_with_http_info ( opts : opts )
121- data
122- end
123-
124- def get_user_couriers_with_http_info ( opts : { } )
125- if @api_client . config . debugging
126- @api_client . config . logger . debug 'Calling API: CourierApi.get_user_couriers ...'
127- end
128-
129-
130-
131- # resource path
132- local_var_path = "/tracking/2025-01/couriers"
133- method = :'GET'
134-
135- # query parameters
136- query_params = opts [ :query_params ] || { }
137- # header parameters
138- header_params = opts [ :header_params ] || { }
139-
140- # http body (model)
141- post_body = opts [ :body ]
142-
143- # return_type
144- return_type = 'GetUserCouriersResponse'
145-
146- new_options = opts . merge (
147- :operation => :"CourierApi.get_user_couriers" ,
148- :header_params => header_params ,
149- :query_params => query_params ,
150- :body => post_body ,
151- :return_type => return_type ,
152- :response_legacy_tag => "" ,
153- :is_paging => false
154- )
155-
156- data , status_code , headers = @api_client . call_api ( method , local_var_path , new_options )
157- if @api_client . config . debugging
158- @api_client . config . logger . debug "API called: CourierApi#get_user_couriers\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
114+ @api_client . config . logger . debug "API called: CourierApi#get_couriers\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
159115 end
160116 return data , status_code , headers
161117 end
0 commit comments