Skip to content

Commit

Permalink
Merge branch 'master' into feat/decode-invoice-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz authored Nov 17, 2023
2 parents 0cb5917 + ddd7df4 commit 128146c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Please have a look a the Alby OAuth2 Wallet API:
- keysend
- sendPayment
- sendBoostagram
- sendToAlbyAccount
- sendBoostagramToAlbyAccount
- createWebhookEndpoint
- deleteWebhookEndpoint
Expand Down
14 changes: 12 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
SendBoostagramRequestParams,
SendPaymentRequestParams,
SendPaymentResponse,
SendToAlbyRequestParams,
SendBoostagramToAlbyRequestParams,
SwapInfoResponse,
} from "./types";

Expand Down Expand Up @@ -239,8 +239,18 @@ export class Client {
});
}

/**
* @deprecated please use sendBoostagramToAlbyAccount
*/
sendToAlbyAccount(
args: SendToAlbyRequestParams,
args: SendBoostagramToAlbyRequestParams,
request_options?: Partial<RequestOptions>,
) {
return this.sendBoostagramToAlbyAccount(args, request_options);
}

sendBoostagramToAlbyAccount(
args: SendBoostagramToAlbyRequestParams,
request_options?: Partial<RequestOptions>,
) {
const params = {
Expand Down
10 changes: 9 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,20 @@ export type SendBoostagramRequestParams = {
amount: number;
};

export type SendToAlbyRequestParams = {
export type SendBoostagramToAlbyRequestParams = {
/**
* the keysend custom value found at https://getalby.com/node
*/
account: string;
amount: number;
memo?: string;
};

/**
* @deprecated please use SendBoostagramToAlbyRequestParams
*/
export type SendToAlbyRequestParams = SendBoostagramToAlbyRequestParams;

export type CreateWebhookEndpointParams = {
url: string;
description?: string;
Expand Down

0 comments on commit 128146c

Please sign in to comment.