Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ const webhook = await method.webhooks.create({
type: 'payment.update',
url: 'https://api.example.app/webhook',
auth_token: 'md7UqcTSmvXCBzPORDwOkE',
hmac_secret: 'bd7UscLSmvEXazTOQDwOKW',
});
```

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "method-node",
"version": "1.2.4",
"version": "1.2.5",
"description": "Node.js library for the Method API",
"main": "dist/index.ts",
"module": "dist/index.mjs",
Expand Down
6 changes: 4 additions & 2 deletions src/resources/Entity/Connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ export const AccountExpandableFields = {
latest_verification_session: 'latest_verification_session',
} as const;

type AccountExpandableField = typeof AccountExpandableFields[keyof typeof AccountExpandableFields];
type AccountFieldKey = typeof AccountExpandableFields[keyof typeof AccountExpandableFields];

export type ExpandField = 'accounts' | `accounts.${AccountFieldKey}`;

export interface IExpandableOpts {
expand?: AccountExpandableField[];
expand?: ExpandField[];
}

export interface IConnectListOpts extends IResourceListOpts, IExpandableOpts {}
Expand Down
1 change: 1 addition & 0 deletions src/resources/Webhook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export interface IWebhookCreateOpts {
type: TWebhookTypes;
url: string;
auth_token?: string;
hmac_secret?: string;
metadata?: {};
expand_event?: boolean;
};
Expand Down
Loading