@@ -45,7 +45,7 @@ def __init__(self, merchant_config, api_client=None):
4545
4646
4747
48- def create_webhook (self , ** kwargs ):
48+ def create_webhook_subscription (self , ** kwargs ):
4949 """
5050 Create a Webhook
5151 Create a new webhook subscription. Before creating a webhook, ensure that a security key has been created at the top of this developer center section. You will not need to pass us back the key during the creation of the webhook, but you will receive an error if you did not already create a key or store one on file.
@@ -55,11 +55,11 @@ def create_webhook(self, **kwargs):
5555 >>> def callback_function(response):
5656 >>> pprint(response)
5757 >>>
58- >>> thread = api.create_webhook (callback=callback_function)
58+ >>> thread = api.create_webhook_subscription (callback=callback_function)
5959
6060 :param callback function: The callback function
6161 for asynchronous request. (optional)
62- :param CreateWebhook create_webhook : The webhook payload
62+ :param CreateWebhookRequest create_webhook_request : The webhook payload
6363 :return: InlineResponse2013
6464 If the method is called asynchronously,
6565 returns the request thread.
@@ -69,16 +69,16 @@ def create_webhook(self, **kwargs):
6969 """
7070
7171 if self .api_client .mconfig .log_config .enable_log :
72- self .logger .info ("CALL TO METHOD `create_webhook ` STARTED" )
72+ self .logger .info ("CALL TO METHOD `create_webhook_subscription ` STARTED" )
7373
7474 kwargs ['_return_http_data_only' ] = True
7575 if kwargs .get ('callback' ):
76- return self .create_webhook_with_http_info (** kwargs )
76+ return self .create_webhook_subscription_with_http_info (** kwargs )
7777 else :
78- (data ) = self .create_webhook_with_http_info (** kwargs )
78+ (data ) = self .create_webhook_subscription_with_http_info (** kwargs )
7979 return data
8080
81- def create_webhook_with_http_info (self , ** kwargs ):
81+ def create_webhook_subscription_with_http_info (self , ** kwargs ):
8282 """
8383 Create a Webhook
8484 Create a new webhook subscription. Before creating a webhook, ensure that a security key has been created at the top of this developer center section. You will not need to pass us back the key during the creation of the webhook, but you will receive an error if you did not already create a key or store one on file.
@@ -88,17 +88,17 @@ def create_webhook_with_http_info(self, **kwargs):
8888 >>> def callback_function(response):
8989 >>> pprint(response)
9090 >>>
91- >>> thread = api.create_webhook_with_http_info (callback=callback_function)
91+ >>> thread = api.create_webhook_subscription_with_http_info (callback=callback_function)
9292
9393 :param callback function: The callback function
9494 for asynchronous request. (optional)
95- :param CreateWebhook create_webhook : The webhook payload
95+ :param CreateWebhookRequest create_webhook_request : The webhook payload
9696 :return: InlineResponse2013
9797 If the method is called asynchronously,
9898 returns the request thread.
9999 """
100100
101- all_params = ['create_webhook ' ]
101+ all_params = ['create_webhook_request ' ]
102102 all_params .append ('callback' )
103103 all_params .append ('_return_http_data_only' )
104104 all_params .append ('_preload_content' )
@@ -109,7 +109,7 @@ def create_webhook_with_http_info(self, **kwargs):
109109 if key not in all_params :
110110 raise TypeError (
111111 "Got an unexpected keyword argument '%s'"
112- " to method create_webhook " % key
112+ " to method create_webhook_subscription " % key
113113 )
114114 params [key ] = val
115115 del params ['kwargs' ]
@@ -127,13 +127,13 @@ def create_webhook_with_http_info(self, **kwargs):
127127 local_var_files = {}
128128
129129 body_params = None
130- if 'create_webhook ' in params :
131- body_params = params ['create_webhook ' ]
130+ if 'create_webhook_request ' in params :
131+ body_params = params ['create_webhook_request ' ]
132132
133133 sdkTracker = SdkTracker ()
134- body_params = sdkTracker .insert_developer_id_tracker (body_params , 'create_webhook ' , self .api_client .mconfig .run_environment )
134+ body_params = sdkTracker .insert_developer_id_tracker (body_params , 'create_webhook_request ' , self .api_client .mconfig .run_environment )
135135 # HTTP header `Accept`
136- header_params ['Accept' ] = self .api_client .select_header_accept (['application/hal+ json;charset=utf-8' ])
136+ header_params ['Accept' ] = self .api_client .select_header_accept (['application/json;charset=utf-8' ])
137137
138138 # HTTP header `Content-Type`
139139 header_params ['Content-Type' ] = self .api_client .select_header_content_type (['application/json;charset=utf-8' ])
@@ -156,7 +156,7 @@ def create_webhook_with_http_info(self, **kwargs):
156156 _request_timeout = params .get ('_request_timeout' ),
157157 collection_formats = collection_formats )
158158
159- def find_product_to_subscribe (self , organization_id , ** kwargs ):
159+ def find_products_to_subscribe (self , organization_id , ** kwargs ):
160160 """
161161 Find Products You Can Subscribe To
162162 Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
@@ -166,7 +166,7 @@ def find_product_to_subscribe(self, organization_id, **kwargs):
166166 >>> def callback_function(response):
167167 >>> pprint(response)
168168 >>>
169- >>> thread = api.find_product_to_subscribe (organization_id, callback=callback_function)
169+ >>> thread = api.find_products_to_subscribe (organization_id, callback=callback_function)
170170
171171 :param callback function: The callback function
172172 for asynchronous request. (optional)
@@ -180,16 +180,16 @@ def find_product_to_subscribe(self, organization_id, **kwargs):
180180 """
181181
182182 if self .api_client .mconfig .log_config .enable_log :
183- self .logger .info ("CALL TO METHOD `find_product_to_subscribe ` STARTED" )
183+ self .logger .info ("CALL TO METHOD `find_products_to_subscribe ` STARTED" )
184184
185185 kwargs ['_return_http_data_only' ] = True
186186 if kwargs .get ('callback' ):
187- return self .find_product_to_subscribe_with_http_info (organization_id , ** kwargs )
187+ return self .find_products_to_subscribe_with_http_info (organization_id , ** kwargs )
188188 else :
189- (data ) = self .find_product_to_subscribe_with_http_info (organization_id , ** kwargs )
189+ (data ) = self .find_products_to_subscribe_with_http_info (organization_id , ** kwargs )
190190 return data
191191
192- def find_product_to_subscribe_with_http_info (self , organization_id , ** kwargs ):
192+ def find_products_to_subscribe_with_http_info (self , organization_id , ** kwargs ):
193193 """
194194 Find Products You Can Subscribe To
195195 Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
@@ -199,7 +199,7 @@ def find_product_to_subscribe_with_http_info(self, organization_id, **kwargs):
199199 >>> def callback_function(response):
200200 >>> pprint(response)
201201 >>>
202- >>> thread = api.find_product_to_subscribe_with_http_info (organization_id, callback=callback_function)
202+ >>> thread = api.find_products_to_subscribe_with_http_info (organization_id, callback=callback_function)
203203
204204 :param callback function: The callback function
205205 for asynchronous request. (optional)
@@ -220,15 +220,15 @@ def find_product_to_subscribe_with_http_info(self, organization_id, **kwargs):
220220 if key not in all_params :
221221 raise TypeError (
222222 "Got an unexpected keyword argument '%s'"
223- " to method find_product_to_subscribe " % key
223+ " to method find_products_to_subscribe " % key
224224 )
225225 params [key ] = val
226226 del params ['kwargs' ]
227227 # verify the required parameter 'organization_id' is set
228228 if ('organization_id' not in params ) or (params ['organization_id' ] is None ):
229229 if self .api_client .mconfig .log_config .enable_log :
230- self .logger .error ("InvalidArgumentException : Missing the required parameter `organization_id` when calling `find_product_to_subscribe `" )
231- raise ValueError ("Missing the required parameter `organization_id` when calling `find_product_to_subscribe `" )
230+ self .logger .error ("InvalidArgumentException : Missing the required parameter `organization_id` when calling `find_products_to_subscribe `" )
231+ raise ValueError ("Missing the required parameter `organization_id` when calling `find_products_to_subscribe `" )
232232
233233
234234 collection_formats = {}
@@ -249,7 +249,7 @@ def find_product_to_subscribe_with_http_info(self, organization_id, **kwargs):
249249 if 'GET' in ('POST' ):
250250 body_params = '{}'
251251 # HTTP header `Accept`
252- header_params ['Accept' ] = self .api_client .select_header_accept (['application/hal+ json;charset=utf-8' ])
252+ header_params ['Accept' ] = self .api_client .select_header_accept (['application/json;charset=utf-8' ])
253253
254254 # HTTP header `Content-Type`
255255 header_params ['Content-Type' ] = self .api_client .select_header_content_type (['application/json;charset=utf-8' ])
@@ -390,7 +390,7 @@ def save_sym_egress_key_with_http_info(self, v_c_sender_organization_id, v_c_per
390390 sdkTracker = SdkTracker ()
391391 body_params = sdkTracker .insert_developer_id_tracker (body_params , 'save_sym_egress_key' , self .api_client .mconfig .run_environment )
392392 # HTTP header `Accept`
393- header_params ['Accept' ] = self .api_client .select_header_accept (['application/hal+ json;charset=utf-8' ])
393+ header_params ['Accept' ] = self .api_client .select_header_accept (['application/json;charset=utf-8' ])
394394
395395 # HTTP header `Content-Type`
396396 header_params ['Content-Type' ] = self .api_client .select_header_content_type (['application/json;charset=utf-8' ])
0 commit comments