Skip to content

Commit

Permalink
feat: rename payment pointer files
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Sep 20, 2023
1 parent a67cd80 commit 3a9607b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/open-payments/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import {
createWalletAddressRoutes,
WalletAddressRoutes
} from './payment-pointer'
} from './wallet-address'
import { createAxiosInstance } from './requests'
import { AxiosInstance } from 'axios'
import { createGrantRoutes, GrantRoutes } from './grant'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createWalletAddressRoutes } from './payment-pointer'
import { createWalletAddressRoutes } from './wallet-address'
import { OpenAPI, HttpMethod, createOpenAPI } from '@interledger/openapi'
import path from 'path'
import {
Expand All @@ -17,7 +17,7 @@ jest.mock('./requests', () => {
}
})

describe('payment-pointer', (): void => {
describe('wallet-address', (): void => {
let openApi: OpenAPI

beforeAll(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export interface paths {
*
* The content should be slow changing and cacheable for long periods. Servers SHOULD use cache control headers.
*/
get: operations["get-payment-pointer"];
get: operations["get-wallet-address"];
};
"/jwks.json": {
/** Retrieve the public keys of the Wallet Address. */
get: operations["get-payment-pointer-keys"];
get: operations["get-wallet-address-keys"];
};
"/connections/{id}": {
/**
Expand Down Expand Up @@ -122,7 +122,7 @@ export interface components {
* Wallet Address
* @description A **wallet address** resource is the root of the API and contains the public details of the financial account represented by the Wallet Address that is also the service endpoint URL.
*/
"payment-pointer": {
"wallet-address": {
/**
* Format: uri
* @description The URL identifying the wallet address.
Expand Down Expand Up @@ -346,20 +346,20 @@ export interface operations {
*
* The content should be slow changing and cacheable for long periods. Servers SHOULD use cache control headers.
*/
"get-payment-pointer": {
"get-wallet-address": {
responses: {
/** Wallet Address Found */
200: {
content: {
"application/json": components["schemas"]["payment-pointer"];
"application/json": components["schemas"]["wallet-address"];
};
};
/** Wallet Address Not Found */
404: unknown;
};
};
/** Retrieve the public keys of the Wallet Address. */
"get-payment-pointer-keys": {
"get-wallet-address-keys": {
responses: {
/** JWKS Document Found */
200: {
Expand Down
2 changes: 1 addition & 1 deletion packages/open-payments/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type BackwardPagination = Omit<
first?: never
}
export type PaginationArgs = ForwardPagination | BackwardPagination
export type WalletAddress = RSComponents['schemas']['payment-pointer']
export type WalletAddress = RSComponents['schemas']['wallet-address']
export type JWK = RSComponents['schemas']['json-web-key']
export type JWKS = RSComponents['schemas']['json-web-key-set']
export type Quote = RSComponents['schemas']['quote']
Expand Down

0 comments on commit 3a9607b

Please sign in to comment.