Skip to content

Commit

Permalink
Merge pull request #301 from recurly/v3-v2018-08-09
Browse files Browse the repository at this point in the history
Latest v2018-08-09 Changes
  • Loading branch information
Aaron Suarez authored Jun 28, 2019
2 parents 18acda8 + 0f3fe7a commit 0aa232e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
36 changes: 35 additions & 1 deletion recurly/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ def reopen_invoice(self, invoice_id):
return self._make_request("PUT", path, None, None)

def list_invoice_line_items(self, invoice_id, **kwargs):
"""List a invoice's line items
"""List an invoice's line items
Parameters
----------
Expand Down Expand Up @@ -2528,3 +2528,37 @@ def reactivate_unique_coupon_code(self, unique_coupon_code_id):
unique_coupon_code_id,
)
return self._make_request("PUT", path, None, None)

def create_purchase(self, body):
"""Create a new purchase
Parameters
----------
body
The body of the request.
Returns
-------
InvoiceCollection
Returns the new invoices
"""
path = self._interpolate_path("/sites/%s/purchases", self._site_id)
return self._make_request("POST", path, body, None)

def preview_purchase(self, body):
"""Preview a new purchase
Parameters
----------
body
The body of the request.
Returns
-------
InvoiceCollection
Returns preview of the new invoices
"""
path = self._interpolate_path("/sites/%s/purchases/preview", self._site_id)
return self._make_request("POST", path, body, None)
1 change: 0 additions & 1 deletion recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,6 @@ class CustomFieldDefinition(Resource):
Last updated at
user_access : str
The access control applied inside Recurly's admin UI:
- `api_only` - No one will be able to view or edit this field's data via the admin UI.
- `read_only` - Users with the Customers role will be able to view this field's data via the admin UI, but
editing will only be available via the API.
Expand Down

0 comments on commit 0aa232e

Please sign in to comment.