@@ -363,7 +363,7 @@ def tempo_account_get_accounts(self, skip_archived=None, expand=None):
363
363
url = 'rest/tempo-accounts/1/account'
364
364
return self .get (url , params = params )
365
365
366
- def tempo_account_get_customers (self , query = None , count_accounts = None ):
366
+ def tempo_account_get_all_customers (self , query = None , count_accounts = None ):
367
367
"""
368
368
Gets all or some Attribute whose key or name contain a specific substring. Attributes can be a Category or Customer.
369
369
:param query: OPTIONAL: query for search
@@ -377,3 +377,38 @@ def tempo_account_get_customers(self, query=None, count_accounts=None):
377
377
params ['countAccounts' ] = count_accounts
378
378
url = 'rest/tempo-accounts/1/customer'
379
379
return self .get (url , params = params )
380
+
381
+ def tempo_account_get_customer_by_id (self , customer_id = 1 ):
382
+ """
383
+ Get Account Attribute whose key or name contain a specific substring. Attribute can be a Category or Customer.
384
+ :param customer_id: id of Customer record
385
+ :return: Customer info
386
+ """
387
+ url = 'rest/tempo-accounts/1/customer/{id}' .format (id = customer_id )
388
+ return self .get (url )
389
+
390
+ def tempo_account_update_customer_by_id (self , customer_id = 1 , body = None ):
391
+ """
392
+ Updates an Attribute. Caller must have Manage Account Permission. Attribute can be a Category or Customer.
393
+ :param customer_id: id of Customer record
394
+ :param body: format is
395
+ {
396
+ isNew:boolean
397
+ name:string
398
+ key:string
399
+ id:number
400
+ }
401
+ :return: json with parameters name, key and id.
402
+ """
403
+
404
+ url = 'rest/tempo-accounts/1/customer/{id}' .format (id = customer_id )
405
+ return self .put (url , data = body )
406
+
407
+ def tempo_account_delete_customer_by_id (self , customer_id = 1 ):
408
+ """
409
+ Delete an Attribute. Caller must have Manage Account Permission. Attribute can be a Category or Customer.
410
+ :param customer_id: id of Customer record
411
+ :return: Customer info
412
+ """
413
+ url = 'rest/tempo-accounts/1/customer/{id}' .format (id = customer_id )
414
+ return self .delete (url )
0 commit comments