Skip to content

Commit

Permalink
Updated naming convention for customer methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Reczko committed Jun 16, 2016
1 parent a85030a commit f1ef37c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,12 @@ Result:
}
```

#### Fetch customer
#### Get customer

Example:

```python
result = voucherify.customer.fetch("cust_gVYAaioitMz3GO6HSKFLf7Or")
result = voucherify.customer.get("cust_gVYAaioitMz3GO6HSKFLf7Or")
```

Result:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/customer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"""
Fetch Customer
"""
result = voucherify.customer.fetch(result.get("id"))
result = voucherify.customer.get(result.get("id"))
pprint.pprint("--- Fetch ---")
pprint.pprint(result)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion voucherify/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f1ef37c

Please sign in to comment.