Skip to content

Commit 8ba1b28

Browse files
committed
Add deprecation warnings
1 parent 48c2b8f commit 8ba1b28

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ The following methods are currently available on the client instance. You can fi
7777
| List all forms | `client.listForms(callback)` |
7878
| Fetch a form | `client.fetchForm(formId, callback)` |
7979

80+
**Note:** The beta purchases endpoint has been deprecated and its methods have been removed from the package except `createPurchase`, which now sends requests to the Order creation endpoint [here](https://developer.drip.com/#orders).
81+
8082
### Orders
8183
| Action | Method |
8284
|--------------------------------------|------------------------------------------------------------------------------|

lib/purchases.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module.exports = {
22
/**
33
* Record purchases for a subscriber
4+
*
5+
* @deprecated Deprecated since version 2.0.0. Will be deleted in version 3.0.0.
6+
* The beta Purchase endpoint has been deprecated and this method now sends requests
7+
* to the Order creation endpoint. Please use `createUpdateOrder` instead
48
*
59
* @param {string} idOrEmail - The subscriber's email or id
610
* @param {object} payload - An object with purchase details

0 commit comments

Comments
 (0)