Skip to content

Commit 2b13988

Browse files
committed
Add name to decrement_int_value_to_key
1 parent ed79aeb commit 2b13988

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

licensing/methods.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,14 +1058,16 @@ def increment_int_value_to_key(token, product_id, key, object_id=0, name = "",\
10581058
return (jobj, "")
10591059

10601060
@staticmethod
1061-
def decrement_int_value_to_key(token, product_id, key, object_id,\
1061+
def decrement_int_value_to_key(token, product_id, key, object_id=0, name="",\
10621062
int_value=0, enable_bound=False, bound=0):
10631063

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

0 commit comments

Comments
 (0)