Skip to content

Commit

Permalink
Add name to decrement_int_value_to_key
Browse files Browse the repository at this point in the history
  • Loading branch information
artemlos committed Jul 11, 2024
1 parent ed79aeb commit 2b13988
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion licensing/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,14 +1058,16 @@ def increment_int_value_to_key(token, product_id, key, object_id=0, name = "",\
return (jobj, "")

@staticmethod
def decrement_int_value_to_key(token, product_id, key, object_id,\
def decrement_int_value_to_key(token, product_id, key, object_id=0, name="",\
int_value=0, enable_bound=False, bound=0):

"""
This method will decrement the int value of a data object associated with a license key.
When creating an access token to this method, remember to include "DecrementIntValue" permission and
set the "Lock to key" value to -1.
Please note that you can identify a data object either by its Name or the Id (object_id).
More docs: https://app.cryptolens.io/docs/api/v3/DecrementIntValue (see parameters under Method 2)
"""
Expand All @@ -1076,6 +1078,7 @@ def decrement_int_value_to_key(token, product_id, key, object_id,\
"ProductId" : product_id,\
"Key" : key,\
"Id" : object_id,\
"Name" : name,\
"IntValue": int_value ,\
"EnableBound": str(enable_bound),\
"Bound" : bound
Expand Down

0 comments on commit 2b13988

Please sign in to comment.