diff --git a/README.md b/README.md index b567e9cb..4b7b97f7 100644 --- a/README.md +++ b/README.md @@ -624,12 +624,12 @@ Result: } ``` -#### Fetch customer +#### Get customer Example: ```python -result = voucherify.customer.fetch("cust_gVYAaioitMz3GO6HSKFLf7Or") +result = voucherify.customer.get("cust_gVYAaioitMz3GO6HSKFLf7Or") ``` Result: @@ -731,6 +731,7 @@ new_price = utils.calculate_price(base_price, voucher, unit_price) ### Changelog +- **2016-06-16** - `1.2.0` - Unified naming convention - **2016-06-16** - `1.1.0` - Added customer methods - **2016-06-08** - `1.0.0` - Release version - **2016-05-31** - `0.1.0` - First version: diff --git a/examples/customer_test.py b/examples/customer_test.py index 4aff9add..a25621eb 100644 --- a/examples/customer_test.py +++ b/examples/customer_test.py @@ -27,9 +27,9 @@ pprint.pprint(result) """ -Fetch Customer +Get Customer """ -result = voucherify.customer.fetch(result.get("id")) +result = voucherify.customer.get(result.get("id")) pprint.pprint("--- Fetch ---") pprint.pprint(result) diff --git a/setup.py b/setup.py index 3031599e..93957041 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'voucherify')) -__version__ = '1.1.0' +__version__ = '1.2.0' __pypi_username__ = 'voucherify' __pypi_packagename__ = 'voucherify' __github_username__ = 'voucherifyio' diff --git a/voucherify/client.py b/voucherify/client.py index 8b869593..6d33c2a4 100644 --- a/voucherify/client.py +++ b/voucherify/client.py @@ -61,7 +61,7 @@ def create(self, customer): method='POST' ) - def fetch(self, customer_id): + def get(self, customer_id): path = '/customers/' + quote(customer_id) return self.request(