@@ -3741,6 +3741,215 @@ def get_brand_resources_by_content_type_with_http_info(self, account_id, brand_i
37413741 _request_timeout = params .get ('_request_timeout' ),
37423742 collection_formats = collection_formats )
37433743
3744+ def get_completion_rate_for_template (self , account_id , template_id , ** kwargs ):
3745+ """
3746+ Gets completion rate for the template
3747+ This method makes a synchronous HTTP request by default. To make an
3748+ asynchronous HTTP request, please define a `callback` function
3749+ to be invoked when receiving the response.
3750+ >>> def callback_function(response):
3751+ >>> pprint(response)
3752+ >>>
3753+ >>> thread = api.get_completion_rate_for_template(account_id, template_id, callback=callback_function)
3754+
3755+ :param callback function: The callback function
3756+ for asynchronous request. (optional)
3757+ :param str account_id: The external account number (int) or account ID Guid. (required)
3758+ :param str template_id: The ID of the template being accessed. (required)
3759+ :return: TemplateCompletionRateResponse
3760+ If the method is called asynchronously,
3761+ returns the request thread.
3762+ """
3763+ kwargs ['_return_http_data_only' ] = True
3764+ if kwargs .get ('callback' ):
3765+ return self .get_completion_rate_for_template_with_http_info (account_id , template_id , ** kwargs )
3766+ else :
3767+ (data ) = self .get_completion_rate_for_template_with_http_info (account_id , template_id , ** kwargs )
3768+ return data
3769+
3770+ def get_completion_rate_for_template_with_http_info (self , account_id , template_id , ** kwargs ):
3771+ """
3772+ Gets completion rate for the template
3773+ This method makes a synchronous HTTP request by default. To make an
3774+ asynchronous HTTP request, please define a `callback` function
3775+ to be invoked when receiving the response.
3776+ >>> def callback_function(response):
3777+ >>> pprint(response)
3778+ >>>
3779+ >>> thread = api.get_completion_rate_for_template_with_http_info(account_id, template_id, callback=callback_function)
3780+
3781+ :param callback function: The callback function
3782+ for asynchronous request. (optional)
3783+ :param str account_id: The external account number (int) or account ID Guid. (required)
3784+ :param str template_id: The ID of the template being accessed. (required)
3785+ :return: TemplateCompletionRateResponse
3786+ If the method is called asynchronously,
3787+ returns the request thread.
3788+ """
3789+
3790+ all_params = ['account_id' , 'template_id' ]
3791+ all_params .append ('callback' )
3792+ all_params .append ('_return_http_data_only' )
3793+ all_params .append ('_preload_content' )
3794+ all_params .append ('_request_timeout' )
3795+
3796+ params = locals ()
3797+ for key , val in iteritems (params ['kwargs' ]):
3798+ if key not in all_params :
3799+ raise TypeError (
3800+ "Got an unexpected keyword argument '%s'"
3801+ " to method get_completion_rate_for_template" % key
3802+ )
3803+ params [key ] = val
3804+ del params ['kwargs' ]
3805+ # verify the required parameter 'account_id' is set
3806+ if ('account_id' not in params ) or (params ['account_id' ] is None ):
3807+ raise ValueError ("Missing the required parameter `account_id` when calling `get_completion_rate_for_template`" )
3808+ # verify the required parameter 'template_id' is set
3809+ if ('template_id' not in params ) or (params ['template_id' ] is None ):
3810+ raise ValueError ("Missing the required parameter `template_id` when calling `get_completion_rate_for_template`" )
3811+
3812+
3813+ collection_formats = {}
3814+
3815+ resource_path = '/v2.1/accounts/{accountId}/templates/{templateId}/insights/completionRate' .replace ('{format}' , 'json' )
3816+ path_params = {}
3817+ if 'account_id' in params :
3818+ path_params ['accountId' ] = params ['account_id' ]
3819+ if 'template_id' in params :
3820+ path_params ['templateId' ] = params ['template_id' ]
3821+
3822+ query_params = {}
3823+
3824+ header_params = {}
3825+
3826+ form_params = []
3827+ local_var_files = {}
3828+
3829+ body_params = None
3830+ # HTTP header `Accept`
3831+ header_params ['Accept' ] = self .api_client .\
3832+ select_header_accept (['application/json' ])
3833+
3834+ # Authentication setting
3835+ auth_settings = []
3836+
3837+ return self .api_client .call_api (resource_path , 'GET' ,
3838+ path_params ,
3839+ query_params ,
3840+ header_params ,
3841+ body = body_params ,
3842+ post_params = form_params ,
3843+ files = local_var_files ,
3844+ response_type = 'TemplateCompletionRateResponse' ,
3845+ auth_settings = auth_settings ,
3846+ callback = params .get ('callback' ),
3847+ _return_http_data_only = params .get ('_return_http_data_only' ),
3848+ _preload_content = params .get ('_preload_content' , True ),
3849+ _request_timeout = params .get ('_request_timeout' ),
3850+ collection_formats = collection_formats )
3851+
3852+ def get_completion_rate_for_template_owner (self , account_id , ** kwargs ):
3853+ """
3854+ Gets completion rate for the user
3855+ This method makes a synchronous HTTP request by default. To make an
3856+ asynchronous HTTP request, please define a `callback` function
3857+ to be invoked when receiving the response.
3858+ >>> def callback_function(response):
3859+ >>> pprint(response)
3860+ >>>
3861+ >>> thread = api.get_completion_rate_for_template_owner(account_id, callback=callback_function)
3862+
3863+ :param callback function: The callback function
3864+ for asynchronous request. (optional)
3865+ :param str account_id: The external account number (int) or account ID Guid. (required)
3866+ :return: UserCompletionRateResponse
3867+ If the method is called asynchronously,
3868+ returns the request thread.
3869+ """
3870+ kwargs ['_return_http_data_only' ] = True
3871+ if kwargs .get ('callback' ):
3872+ return self .get_completion_rate_for_template_owner_with_http_info (account_id , ** kwargs )
3873+ else :
3874+ (data ) = self .get_completion_rate_for_template_owner_with_http_info (account_id , ** kwargs )
3875+ return data
3876+
3877+ def get_completion_rate_for_template_owner_with_http_info (self , account_id , ** kwargs ):
3878+ """
3879+ Gets completion rate for the user
3880+ This method makes a synchronous HTTP request by default. To make an
3881+ asynchronous HTTP request, please define a `callback` function
3882+ to be invoked when receiving the response.
3883+ >>> def callback_function(response):
3884+ >>> pprint(response)
3885+ >>>
3886+ >>> thread = api.get_completion_rate_for_template_owner_with_http_info(account_id, callback=callback_function)
3887+
3888+ :param callback function: The callback function
3889+ for asynchronous request. (optional)
3890+ :param str account_id: The external account number (int) or account ID Guid. (required)
3891+ :return: UserCompletionRateResponse
3892+ If the method is called asynchronously,
3893+ returns the request thread.
3894+ """
3895+
3896+ all_params = ['account_id' ]
3897+ all_params .append ('callback' )
3898+ all_params .append ('_return_http_data_only' )
3899+ all_params .append ('_preload_content' )
3900+ all_params .append ('_request_timeout' )
3901+
3902+ params = locals ()
3903+ for key , val in iteritems (params ['kwargs' ]):
3904+ if key not in all_params :
3905+ raise TypeError (
3906+ "Got an unexpected keyword argument '%s'"
3907+ " to method get_completion_rate_for_template_owner" % key
3908+ )
3909+ params [key ] = val
3910+ del params ['kwargs' ]
3911+ # verify the required parameter 'account_id' is set
3912+ if ('account_id' not in params ) or (params ['account_id' ] is None ):
3913+ raise ValueError ("Missing the required parameter `account_id` when calling `get_completion_rate_for_template_owner`" )
3914+
3915+
3916+ collection_formats = {}
3917+
3918+ resource_path = '/v2.1/accounts/{accountId}/templates/insights/completionRate' .replace ('{format}' , 'json' )
3919+ path_params = {}
3920+ if 'account_id' in params :
3921+ path_params ['accountId' ] = params ['account_id' ]
3922+
3923+ query_params = {}
3924+
3925+ header_params = {}
3926+
3927+ form_params = []
3928+ local_var_files = {}
3929+
3930+ body_params = None
3931+ # HTTP header `Accept`
3932+ header_params ['Accept' ] = self .api_client .\
3933+ select_header_accept (['application/json' ])
3934+
3935+ # Authentication setting
3936+ auth_settings = []
3937+
3938+ return self .api_client .call_api (resource_path , 'GET' ,
3939+ path_params ,
3940+ query_params ,
3941+ header_params ,
3942+ body = body_params ,
3943+ post_params = form_params ,
3944+ files = local_var_files ,
3945+ response_type = 'UserCompletionRateResponse' ,
3946+ auth_settings = auth_settings ,
3947+ callback = params .get ('callback' ),
3948+ _return_http_data_only = params .get ('_return_http_data_only' ),
3949+ _preload_content = params .get ('_preload_content' , True ),
3950+ _request_timeout = params .get ('_request_timeout' ),
3951+ collection_formats = collection_formats )
3952+
37443953 def get_consumer_disclosure (self , account_id , lang_code , ** kwargs ):
37453954 """
37463955 Gets the Electronic Record and Signature Disclosure.
@@ -5662,113 +5871,6 @@ def list_permissions_with_http_info(self, account_id, **kwargs):
56625871 _request_timeout = params .get ('_request_timeout' ),
56635872 collection_formats = collection_formats )
56645873
5665- def list_recipient_names_by_email (self , account_id , ** kwargs ):
5666- """
5667- Gets recipient names associated with an email address.
5668- Retrieves a list of recipients in the specified account that are associated with a email address supplied in the query string.
5669- This method makes a synchronous HTTP request by default. To make an
5670- asynchronous HTTP request, please define a `callback` function
5671- to be invoked when receiving the response.
5672- >>> def callback_function(response):
5673- >>> pprint(response)
5674- >>>
5675- >>> thread = api.list_recipient_names_by_email(account_id, callback=callback_function)
5676-
5677- :param callback function: The callback function
5678- for asynchronous request. (optional)
5679- :param str account_id: The external account number (int) or account ID Guid. (required)
5680- :param str email: The email address for the user
5681- :return: RecipientNamesResponse
5682- If the method is called asynchronously,
5683- returns the request thread.
5684- """
5685- kwargs ['_return_http_data_only' ] = True
5686- if kwargs .get ('callback' ):
5687- return self .list_recipient_names_by_email_with_http_info (account_id , ** kwargs )
5688- else :
5689- (data ) = self .list_recipient_names_by_email_with_http_info (account_id , ** kwargs )
5690- return data
5691-
5692- def list_recipient_names_by_email_with_http_info (self , account_id , ** kwargs ):
5693- """
5694- Gets recipient names associated with an email address.
5695- Retrieves a list of recipients in the specified account that are associated with a email address supplied in the query string.
5696- This method makes a synchronous HTTP request by default. To make an
5697- asynchronous HTTP request, please define a `callback` function
5698- to be invoked when receiving the response.
5699- >>> def callback_function(response):
5700- >>> pprint(response)
5701- >>>
5702- >>> thread = api.list_recipient_names_by_email_with_http_info(account_id, callback=callback_function)
5703-
5704- :param callback function: The callback function
5705- for asynchronous request. (optional)
5706- :param str account_id: The external account number (int) or account ID Guid. (required)
5707- :param str email: The email address for the user
5708- :return: RecipientNamesResponse
5709- If the method is called asynchronously,
5710- returns the request thread.
5711- """
5712-
5713- all_params = ['account_id' , 'email' ]
5714- all_params .append ('callback' )
5715- all_params .append ('_return_http_data_only' )
5716- all_params .append ('_preload_content' )
5717- all_params .append ('_request_timeout' )
5718-
5719- params = locals ()
5720- for key , val in iteritems (params ['kwargs' ]):
5721- if key not in all_params :
5722- raise TypeError (
5723- "Got an unexpected keyword argument '%s'"
5724- " to method list_recipient_names_by_email" % key
5725- )
5726- params [key ] = val
5727- del params ['kwargs' ]
5728- # verify the required parameter 'account_id' is set
5729- if ('account_id' not in params ) or (params ['account_id' ] is None ):
5730- raise ValueError ("Missing the required parameter `account_id` when calling `list_recipient_names_by_email`" )
5731-
5732-
5733- collection_formats = {}
5734-
5735- resource_path = '/v2.1/accounts/{accountId}/recipient_names' .replace ('{format}' , 'json' )
5736- path_params = {}
5737- if 'account_id' in params :
5738- path_params ['accountId' ] = params ['account_id' ]
5739-
5740- query_params = {}
5741- if 'email' in params :
5742- query_params ['email' ] = params ['email' ]
5743-
5744- header_params = {}
5745-
5746- form_params = []
5747- local_var_files = {}
5748-
5749- body_params = None
5750- # HTTP header `Accept`
5751- header_params ['Accept' ] = self .api_client .\
5752- select_header_accept (['application/json' ])
5753-
5754- # Authentication setting
5755- auth_settings = []
5756-
5757- return self .api_client .call_api (resource_path , 'GET' ,
5758- path_params ,
5759- query_params ,
5760- header_params ,
5761- body = body_params ,
5762- post_params = form_params ,
5763- files = local_var_files ,
5764- response_type = 'RecipientNamesResponse' ,
5765- auth_settings = auth_settings ,
5766- callback = params .get ('callback' ),
5767- _return_http_data_only = params .get ('_return_http_data_only' ),
5768- _preload_content = params .get ('_preload_content' , True ),
5769- _request_timeout = params .get ('_request_timeout' ),
5770- collection_formats = collection_formats )
5771-
57725874 def list_settings (self , account_id , ** kwargs ):
57735875 """
57745876 Gets account settings information.
0 commit comments