Skip to content

Commit 51fc64d

Browse files
committed
Merge branch 'release/v0.29.0'
2 parents 9fb46bb + dd8fa70 commit 51fc64d

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Install is either via pip or cloning the repository.
99

1010
From pip:
1111
```sh
12-
python3 -m pip install thothlibrary==0.28.7
12+
python3 -m pip install thothlibrary==0.29.0
1313
```
1414

1515
Or from the repo:

thothlibrary/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
"""GraphQL client for Thoth"""
33

4-
__version__ = "0.28.7"
4+
__version__ = "0.29.0"
55
__author__ = "Javier Arias <[email protected]>"
66
__copyright__ = "Copyright (c) 2020 Open Book Publishers"
77
__license__ = "Apache 2.0"

thothlibrary/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ def update_location(self, location):
161161
"""Construct and trigger a mutation to update a location object"""
162162
return self.mutation("updateLocation", location)
163163

164+
def update_price(self, price):
165+
"""Construct and trigger a mutation to update a price object"""
166+
return self.mutation("updatePrice", price)
167+
164168
def delete_location(self, location):
165169
"""Construct and trigger a mutation to delete a location object"""
166170
return self.mutation("deleteLocation", location, nested=False)

thothlibrary/mutation.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@ class ThothMutation():
315315
],
316316
"return_value": "locationId"
317317
},
318+
"updatePrice": {
319+
"fields": [
320+
("priceId", True),
321+
("publicationId", True),
322+
("currencyCode", False),
323+
("unitPrice", False)
324+
],
325+
"return_value": "priceId"
326+
},
318327
"deleteLocation": {
319328
"fields": [
320329
("locationId", True),

0 commit comments

Comments
 (0)