-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34f1a08
commit 3c824d1
Showing
5 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Client } from '../client'; | ||
|
||
export default (client: Client) => ({ | ||
/** | ||
* @description Show request status for async payment using a given `:id`. | ||
* | ||
* @tags Request | ||
* @name showRequestStatus | ||
* @summary Show request status for async payment | ||
* @request GET:/request/${id}/status | ||
* @secure | ||
*/ | ||
showRequestStatus: (id: string) => | ||
client.request<any>({ | ||
url: `/request/${id}/status`, | ||
method: 'GET', | ||
secure: true, | ||
}), | ||
|
||
/** | ||
* @description Show callbacks registered for async payment using a given `:id`. | ||
* | ||
* @tags Request | ||
* @name showRequestCallbacks | ||
* @summary Show callbacks for async payment | ||
* @request GET:/request/${id}/callbacks | ||
* @secure | ||
*/ | ||
showRequestCallbacks: (id: string) => | ||
client.request<any>({ | ||
url: `/request/${id}/callbacks`, | ||
method: 'GET', | ||
secure: true, | ||
}), | ||
|
||
/** | ||
* @description Used for checking zai callbacks with the path they provided`. | ||
* | ||
* @tags Request | ||
* @name showRequestCallbacks | ||
* @summary GET using the path provided | ||
* @request GET:/${path} | ||
* @secure | ||
*/ | ||
getWithPath: (path: string) => | ||
client.request<any>({ | ||
url: path, | ||
method: 'GET', | ||
secure: true, | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters