Skip to content

Commit 6ecec6d

Browse files
committed
remove redundant methods
1 parent 7f748a7 commit 6ecec6d

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ let user = thepeer.indexUser("Thor Odin", "thor", "[email protected]");
6161
- lind_id (string)
6262
- amount (integer)
6363
- `returns`: object
64-
65-
* authorizeDirectCharge
66-
- `accepts`:
67-
- reference (string)
68-
- event (string)
69-
- `returns`: object
7064

7165
## Extra
7266

lib/Thepeer.js

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -157,39 +157,6 @@ class ThePeer {
157157
Helper.processError(e)
158158
}
159159
}
160-
161-
/**
162-
* @memberof ThePeer
163-
* @param {string} receipt - The reference returned to your receiptURL via the Chain SDK
164-
* @param {string} event - Event type (success, insufficient_funds)
165-
* @returns {JSON} A JSON response containing the details of the user
166-
*/
167-
async processSendReceipt (receipt, event) {
168-
try {
169-
const response = await this.request.post(`/send/${receipt}`, {
170-
event: event
171-
})
172-
173-
return response.data
174-
} catch (e) {
175-
Helper.processError(e)
176-
}
177-
}
178-
179-
/**
180-
* @memberof ThePeer
181-
* @param {string} receipt - The reference returned to your receiptURL via the Chain SDK
182-
* @returns {JSON} A JSON response containing the details of the user
183-
*/
184-
async getSendReceipt (receipt) {
185-
try {
186-
const response = await this.request.get(`/send/${receipt}`)
187-
188-
return response.data
189-
} catch (e) {
190-
Helper.processError(e)
191-
}
192-
}
193160
}
194161

195162
module.exports = ThePeer

0 commit comments

Comments
 (0)