Skip to content

Commit

Permalink
feat(open-payments): address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurapov committed Nov 17, 2022
1 parent d9d7f7d commit d2c0295
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/open-payments/src/client/grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface RequestGrantArgs {
}

export interface GrantRoutes {
requestGrant(
request(
args: RequestGrantArgs
): Promise<InteractiveGrant | NonInteractiveGrant>
}
Expand All @@ -27,7 +27,7 @@ export const createGrantRoutes = (deps: RouteDeps): GrantRoutes => {
method: HttpMethod.POST
})
return {
requestGrant: (args: RequestGrantArgs) =>
request: (args: RequestGrantArgs) =>
post(deps, { url: args.url, body: args.request }, requestGrantValidator)
}
}
2 changes: 1 addition & 1 deletion packages/open-payments/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type NonInteractiveGrant = {
export type GrantRequest = {
access_token: ASOperations['post-request']['requestBody']['content']['application/json']['access_token']
client: ASOperations['post-request']['requestBody']['content']['application/json']['client']
interact?: ASOperations['post-request']['requestBody']['content']['application/json']['interact']
interact: ASOperations['post-request']['requestBody']['content']['application/json']['interact']
}
export type InteractiveGrant = {
interact: ASComponents['schemas']['interact-response']
Expand Down

0 comments on commit d2c0295

Please sign in to comment.