chore: markAsAuthorized and payment collection tests (#2620)

* chore: markAsAuthorized and payment collection tests
This commit is contained in:
Carlos R. L. Rodrigues
2022-11-18 11:23:35 -03:00
committed by GitHub
parent a77780671a
commit 01a879ac94
8 changed files with 802 additions and 0 deletions
@@ -40,6 +40,14 @@ class AdminPaymentCollectionsResource extends BaseResource {
const path = `/admin/payment-collections/${id}`
return this.client.request("DELETE", path, undefined, {}, customHeaders)
}
markAsAuthorized(
id: string,
customHeaders: Record<string, any> = {}
): ResponsePromise<AdminPaymentCollectionRes> {
const path = `/admin/payment-collections/${id}/authorize`
return this.client.request("POST", path, undefined, {}, customHeaders)
}
}
export default AdminPaymentCollectionsResource