Skip to content

Commit

Permalink
Merge pull request #7 from voucherifyio/rspective/fix/naming-convention
Browse files Browse the repository at this point in the history
Naming convention
  • Loading branch information
pawelrychlik authored Jun 17, 2016
2 parents a85030a + 11ce623 commit 08b8841
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 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
4 changes: 2 additions & 2 deletions examples/customer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

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 08b8841

Please sign in to comment.