stablevoy 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +6 -3
- package/dist/errors/ApiError.d.ts +5 -0
- package/dist/errors/ApiError.d.ts.map +1 -1
- package/dist/errors/ApiError.js +5 -0
- package/dist/errors/ApiError.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/model/Platform.d.ts +25 -2
- package/dist/model/Platform.d.ts.map +1 -1
- package/dist/model/Platform.js +21 -3
- package/dist/model/Platform.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/webhook/WebhookEvent.d.ts +5 -3
- package/dist/webhook/WebhookEvent.d.ts.map +1 -1
- package/dist/webhook/WebhookEvent.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
- `Store` carries `evmPayoutStatus` (`plain`, `acknowledged`, `unacknowledged`, `unchecked`, or null without an EVM payout wallet, values in `EVM_PAYOUT_STATUS`) and `evmNetworksBlocked`: the enabled EVM networks new invoices leave out while the EVM payout wallet is not confirmed in the dashboard. `evmPayoutNeedsReview(store)` tells it.
|
|
6
|
+
- `canAcceptPayments(store)` also counts the blocked EVM networks, so it is false for a store whose only networks are blocked.
|
|
7
|
+
- `ApiError.PAYOUT_ADDRESS_UNACKNOWLEDGED` names the error code an invoice gets when the EVM payout wallet is not confirmed and the store has no other network.
|
|
8
|
+
- New webhook type `store.payout_attention`: the EVM payout wallet of the account became unconfirmed, or is fine again. It carries no invoice; the data has `store` and `payout` (status, blocked networks, dashboard link).
|
|
9
|
+
|
|
3
10
|
## 1.3.0
|
|
4
11
|
|
|
5
12
|
- New webhook type `invoice.payment_flagged`: a payment of an invoice that is already paid, overpaid or paid late was flagged by sanctions screening. The invoice keeps its status; the flagged payment is in the event data under `payment`.
|
package/README.md
CHANGED
|
@@ -54,10 +54,10 @@ for await (const invoice of stablevoy.invoices.all({ source: InvoiceSourceFilter
|
|
|
54
54
|
|
|
55
55
|
## Check the store before going live
|
|
56
56
|
|
|
57
|
-
Invoices need a payout wallet for at least one network the store accepts; without one every invoice is refused with `payout_address_not_set`. Read the store of the key to find out in advance, and tell the merchant about networks buyers will not be offered:
|
|
57
|
+
Invoices need a payout wallet for at least one network the store accepts; without one every invoice is refused with `payout_address_not_set`. An EVM payout wallet that is a smart contract wallet or an EIP-7702 delegation must be confirmed in the dashboard, and confirmed again when it changes; until then new invoices leave out the EVM networks, and a store with nothing else is refused with `payout_address_unacknowledged`. Read the store of the key to find out in advance, and tell the merchant about networks buyers will not be offered:
|
|
58
58
|
|
|
59
59
|
```ts
|
|
60
|
-
import { canAcceptPayments } from 'stablevoy';
|
|
60
|
+
import { canAcceptPayments, evmPayoutNeedsReview } from 'stablevoy';
|
|
61
61
|
|
|
62
62
|
const store = await stablevoy.stores.current();
|
|
63
63
|
if (!canAcceptPayments(store)) {
|
|
@@ -66,6 +66,9 @@ if (!canAcceptPayments(store)) {
|
|
|
66
66
|
if (store.networksWithoutPayout.length > 0) {
|
|
67
67
|
// These enabled networks have no payout wallet, so buyers do not see them.
|
|
68
68
|
}
|
|
69
|
+
if (evmPayoutNeedsReview(store)) {
|
|
70
|
+
// The EVM payout wallet is not confirmed: store.evmNetworksBlocked are not offered until the merchant reviews it in the dashboard.
|
|
71
|
+
}
|
|
69
72
|
```
|
|
70
73
|
|
|
71
74
|
## Connect a shop in one click
|
|
@@ -87,7 +90,7 @@ await stablevoy.stores.revokeCurrentKey();
|
|
|
87
90
|
|
|
88
91
|
## Verify webhooks
|
|
89
92
|
|
|
90
|
-
Stablevoy posts an event to your webhook URL when an invoice is paid, overpaid, underpaid, expired, paid late or put on hold. One more, `invoice.payment_flagged`, comes when a later transfer to an invoice that is already paid is flagged by sanctions screening: the invoice keeps its paid status, so this event is not a new payment; the flagged transfer is in `event.data.payment`. Check the signature before you trust it, using the signing secret shown when you set the webhook in the dashboard. Pass the raw body, exactly as received: a body parsed to JSON and serialised again no longer matches the signature.
|
|
93
|
+
Stablevoy posts an event to your webhook URL when an invoice is paid, overpaid, underpaid, expired, paid late or put on hold. One more, `invoice.payment_flagged`, comes when a later transfer to an invoice that is already paid is flagged by sanctions screening: the invoice keeps its paid status, so this event is not a new payment; the flagged transfer is in `event.data.payment`. Another, `store.payout_attention`, comes when the EVM payout wallet of the account becomes unconfirmed and again when it is fine: it carries no invoice, `event.data.payout` has the new `status`, the `blockedNetworks` and a `dashboardUrl`; read `stablevoy.stores.current()` again for the current state. Check the signature before you trust it, using the signing secret shown when you set the webhook in the dashboard. Pass the raw body, exactly as received: a body parsed to JSON and serialised again no longer matches the signature.
|
|
91
94
|
|
|
92
95
|
Express:
|
|
93
96
|
|
|
@@ -19,6 +19,11 @@ export interface ApiErrorDetails {
|
|
|
19
19
|
export declare class ApiError extends StablevoyError {
|
|
20
20
|
/** No enabled network of the store has a payout wallet; canAcceptPayments(store) tells it in advance. */
|
|
21
21
|
static readonly PAYOUT_ADDRESS_NOT_SET = "payout_address_not_set";
|
|
22
|
+
/**
|
|
23
|
+
* The EVM payout wallet is not confirmed in the dashboard (or changed since) and the store has no other network to offer;
|
|
24
|
+
* evmPayoutNeedsReview(store) and canAcceptPayments(store) tell it in advance.
|
|
25
|
+
*/
|
|
26
|
+
static readonly PAYOUT_ADDRESS_UNACKNOWLEDGED = "payout_address_unacknowledged";
|
|
22
27
|
readonly status: number;
|
|
23
28
|
readonly code: string;
|
|
24
29
|
readonly detail: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiError.d.ts","sourceRoot":"","sources":["../../src/errors/ApiError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAA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Aa,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC;AAED;;;GAGG;AACH,qBAAa,QAAS,SAAQ,cAAc;IAC1C,yGAAyG;IACzG,MAAM,CAAC,QAAQ,CAAC,sBAAsB,4BAA4B;IAClE;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,6BAA6B,mCAAmC;IAEhF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,2CAA2C;IAC3C,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,8DAA8D;IAC9D,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,sHAAsH;IACtH,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;gBAE1B,OAAO,EAAE,eAAe;CAUrC"}
|
package/dist/errors/ApiError.js
CHANGED
|
@@ -6,6 +6,11 @@ import { StablevoyError } from './StablevoyError.js';
|
|
|
6
6
|
export class ApiError extends StablevoyError {
|
|
7
7
|
/** No enabled network of the store has a payout wallet; canAcceptPayments(store) tells it in advance. */
|
|
8
8
|
static PAYOUT_ADDRESS_NOT_SET = 'payout_address_not_set';
|
|
9
|
+
/**
|
|
10
|
+
* The EVM payout wallet is not confirmed in the dashboard (or changed since) and the store has no other network to offer;
|
|
11
|
+
* evmPayoutNeedsReview(store) and canAcceptPayments(store) tell it in advance.
|
|
12
|
+
*/
|
|
13
|
+
static PAYOUT_ADDRESS_UNACKNOWLEDGED = 'payout_address_unacknowledged';
|
|
9
14
|
status;
|
|
10
15
|
code;
|
|
11
16
|
detail;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiError.js","sourceRoot":"","sources":["../../src/errors/ApiError.ts"],"names":[],"mappings":"AAA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iceStatus, isPaidStatus } from './model/InvoiceStatus.js';
|
|
|
13
13
|
export { InvoiceSourceFilter, InvoiceSourceKind, type InvoiceSource } from './model/InvoiceSource.js';
|
|
14
14
|
export type { CreateInvoiceInput, CreatedInvoice, DepositAddress, Invoice, InvoicePage, Payment } from './model/Invoice.js';
|
|
15
15
|
export type { Limits, Network, Pricing, Store, Token } from './model/Platform.js';
|
|
16
|
-
export { canAcceptPayments } from './model/Platform.js';
|
|
16
|
+
export { canAcceptPayments, evmPayoutNeedsReview, EVM_PAYOUT_STATUS } from './model/Platform.js';
|
|
17
17
|
export { WebhookVerifier, type WebhookVerifierOptions } from './webhook/WebhookVerifier.js';
|
|
18
18
|
export type { WebhookEvent } from './webhook/WebhookEvent.js';
|
|
19
19
|
export type { Clock } from './time/Clock.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC7E,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,YAAY,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,E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} from './resources/Stores.js';
|
|
|
7
7
|
export { Platform } from './resources/Platform.js';
|
|
8
8
|
export { InvoiceStatus, isPaidStatus } from './model/InvoiceStatus.js';
|
|
9
9
|
export { InvoiceSourceFilter, InvoiceSourceKind } from './model/InvoiceSource.js';
|
|
10
|
-
export { canAcceptPayments } from './model/Platform.js';
|
|
10
|
+
export { canAcceptPayments, evmPayoutNeedsReview, EVM_PAYOUT_STATUS } from './model/Platform.js';
|
|
11
11
|
export { WebhookVerifier } from './webhook/WebhookVerifier.js';
|
|
12
12
|
export { StablevoyError } from './errors/StablevoyError.js';
|
|
13
13
|
export { ApiError } from './errors/ApiError.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAsB,MAAM,uBAAuB,CAAC;AAG7E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAoD,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAsB,MAAM,0BAA0B,CAAC;AAGtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAsB,MAAM,uBAAuB,C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|
3
|
+
export declare const EVM_PAYOUT_STATUS: {
|
|
4
|
+
readonly PLAIN: "plain";
|
|
5
|
+
readonly ACKNOWLEDGED: "acknowledged";
|
|
6
|
+
readonly UNACKNOWLEDGED: "unacknowledged";
|
|
7
|
+
readonly UNCHECKED: "unchecked";
|
|
8
|
+
};
|
|
2
9
|
/** The store the API key belongs to. */
|
|
3
10
|
export interface Store {
|
|
4
11
|
readonly id: string;
|
|
@@ -16,13 +23,29 @@ export interface Store {
|
|
|
16
23
|
readonly createdAt: Date;
|
|
17
24
|
/** The plugin connected to the store in one click ('woocommerce', 'edd', 'whmcs'), or null. */
|
|
18
25
|
readonly connectedPlatform: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* The EVM payout wallet as last read on every EVM network: plain (a regular wallet), acknowledged (a smart contract wallet
|
|
28
|
+
* or EIP-7702 delegation the merchant confirmed), unacknowledged (not confirmed, or changed since: the EVM networks are
|
|
29
|
+
* left out of new invoices until the merchant reviews it in the dashboard), unchecked (not read yet), or null when the
|
|
30
|
+
* account has no EVM payout wallet.
|
|
31
|
+
*/
|
|
32
|
+
readonly evmPayoutStatus: string | null;
|
|
33
|
+
/** Enabled EVM networks new invoices leave out because evmPayoutStatus is unacknowledged; empty otherwise. */
|
|
34
|
+
readonly evmNetworksBlocked: readonly string[];
|
|
19
35
|
}
|
|
20
36
|
export declare function parseStore(f: Fields): Store;
|
|
21
37
|
/**
|
|
22
|
-
* False when no enabled network has a payout wallet
|
|
23
|
-
*
|
|
38
|
+
* False when no enabled network can be paid: none has a payout wallet (invoices are refused with payout_address_not_set),
|
|
39
|
+
* or the only ones left are EVM networks blocked by an unconfirmed EVM payout wallet (payout_address_unacknowledged). Check
|
|
40
|
+
* it before offering the payment method, and show the merchant networksWithoutPayout and evmNetworksBlocked when they are
|
|
41
|
+
* not empty.
|
|
24
42
|
*/
|
|
25
43
|
export declare function canAcceptPayments(store: Store): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* True while the EVM payout wallet is not confirmed in the Stablevoy dashboard: show the merchant evmNetworksBlocked and
|
|
46
|
+
* send them to the dashboard. A store.payout_attention webhook tells when this changes.
|
|
47
|
+
*/
|
|
48
|
+
export declare function evmPayoutNeedsReview(store: Store): boolean;
|
|
26
49
|
/** The smallest and largest invoice the platform accepts, in US cents. */
|
|
27
50
|
export interface Limits {
|
|
28
51
|
readonly minInvoiceUsdCents: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Platform.d.ts","sourceRoot":"","sources":["../../src/model/Platform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wCAAwC;AACxC,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,yHAAyH;IACzH,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,+FAA+F;IAC/F,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Platform.d.ts","sourceRoot":"","sources":["../../src/model/Platform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE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wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAe/C"}
|
package/dist/model/Platform.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/** Values of Store.evmPayoutStatus. */
|
|
2
|
+
export const EVM_PAYOUT_STATUS = {
|
|
3
|
+
PLAIN: 'plain',
|
|
4
|
+
ACKNOWLEDGED: 'acknowledged',
|
|
5
|
+
UNACKNOWLEDGED: 'unacknowledged',
|
|
6
|
+
UNCHECKED: 'unchecked',
|
|
7
|
+
};
|
|
1
8
|
export function parseStore(f) {
|
|
2
9
|
return {
|
|
3
10
|
id: f.string('id'),
|
|
@@ -12,14 +19,25 @@ export function parseStore(f) {
|
|
|
12
19
|
defaultReturnUrl: f.nullableString('defaultReturnUrl'),
|
|
13
20
|
createdAt: f.date('createdAt'),
|
|
14
21
|
connectedPlatform: f.nullableString('connectedPlatform'),
|
|
22
|
+
evmPayoutStatus: f.nullableString('evmPayoutStatus'),
|
|
23
|
+
evmNetworksBlocked: f.strings('evmNetworksBlocked'),
|
|
15
24
|
};
|
|
16
25
|
}
|
|
17
26
|
/**
|
|
18
|
-
* False when no enabled network has a payout wallet
|
|
19
|
-
*
|
|
27
|
+
* False when no enabled network can be paid: none has a payout wallet (invoices are refused with payout_address_not_set),
|
|
28
|
+
* or the only ones left are EVM networks blocked by an unconfirmed EVM payout wallet (payout_address_unacknowledged). Check
|
|
29
|
+
* it before offering the payment method, and show the merchant networksWithoutPayout and evmNetworksBlocked when they are
|
|
30
|
+
* not empty.
|
|
20
31
|
*/
|
|
21
32
|
export function canAcceptPayments(store) {
|
|
22
|
-
return store.enabledNetworks.some((key) => !store.networksWithoutPayout.includes(key));
|
|
33
|
+
return store.enabledNetworks.some((key) => !store.networksWithoutPayout.includes(key) && !store.evmNetworksBlocked.includes(key));
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* True while the EVM payout wallet is not confirmed in the Stablevoy dashboard: show the merchant evmNetworksBlocked and
|
|
37
|
+
* send them to the dashboard. A store.payout_attention webhook tells when this changes.
|
|
38
|
+
*/
|
|
39
|
+
export function evmPayoutNeedsReview(store) {
|
|
40
|
+
return store.evmPayoutStatus === EVM_PAYOUT_STATUS.UNACKNOWLEDGED;
|
|
23
41
|
}
|
|
24
42
|
export function parseLimits(f) {
|
|
25
43
|
return { minInvoiceUsdCents: f.int('minInvoiceUsdCents'), maxInvoiceUsdCents: f.int('maxInvoiceUsdCents') };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Platform.js","sourceRoot":"","sources":["../../src/model/Platform.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Platform.js","sourceRoot":"","sources":["../../src/model/Platform.ts"],"names":[],"mappings":"AAEA,uCAAuC;AACvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,SAAS,EAAE,WAAW;CACd,CAAC;AA8BX,MAAM,UAAU,UAAU,CAAC,CAAS;IAClC,OAAO;QACL,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;QAClB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;QACtB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAC1B,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;QAC7C,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;QACzD,kBAAkB,EAAE,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC;QACvD,kBAAkB,EAAE,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC;QACvD,UAAU,EAAE,CAAC,CAAC,cAAc,CAAC,YAAY,CAAC;QAC1C,UAAU,EAAE,CAAC,CAAC,cAAc,CAAC,YAAY,CAAC;QAC1C,gBAAgB,EAAE,CAAC,CAAC,cAAc,CAAC,kBAA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AAM,CAAC,aAAa,CAAC;QACpC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAC1B,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC;QACzB,aAAa,EAAE,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC;QACrC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;QAClC,cAAc,EAAE,CAAC,CAAC,cAAc,CAAC,gBAAgB,CAAC;QAClD,WAAW,EAAE,CAAC,CAAC,cAAc,CAAC,aAAa,CAAC;QAC5C,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAC/H,uBAAuB,EAAE,CAAC,CAAC,cAAc,CAAC,yBAAyB,CAAC;QACpE,kBAAkB,EAAE,CAAC,CAAC,cAAc,CAAC,oBAAoB,CAAC;QAC1D,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC;KACnC,CAAC;AACJ,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.4.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -2,9 +2,11 @@ import type { Fields } from '../model/Fields.js';
|
|
|
2
2
|
import { type Invoice } from '../model/Invoice.js';
|
|
3
3
|
/**
|
|
4
4
|
* A verified webhook. Types: invoice.paid, invoice.overpaid, invoice.underpaid, invoice.expired, invoice.paid_late,
|
|
5
|
-
* invoice.on_hold, invoice.payment_flagged and webhook.test. invoice.payment_flagged: a payment of a
|
|
6
|
-
* flagged by screening; the invoice keeps its status and `data.payment` holds the payment.
|
|
7
|
-
*
|
|
5
|
+
* invoice.on_hold, invoice.payment_flagged, store.payout_attention and webhook.test. invoice.payment_flagged: a payment of a
|
|
6
|
+
* settled invoice was flagged by screening; the invoice keeps its status and `data.payment` holds the payment.
|
|
7
|
+
* store.payout_attention: the EVM payout wallet of the account became unconfirmed or is fine again; `invoice` is null and
|
|
8
|
+
* `data.payout` holds status, blockedNetworks and dashboardUrl. Read stores.current() again for the current state.
|
|
9
|
+
* Deliveries can repeat: use `id` to process each event once.
|
|
8
10
|
*/
|
|
9
11
|
export interface WebhookEvent {
|
|
10
12
|
readonly id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebhookEvent.d.ts","sourceRoot":"","sources":["../../src/webhook/WebhookEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAgB,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEjE
|
|
1
|
+
{"version":3,"file":"WebhookEvent.d.ts","sourceRoot":"","sources":["../../src/webhook/WebhookEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAgB,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,8BAA8B;IAC9B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAClD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,YAAY,CAIzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebhookEvent.js","sourceRoot":"","sources":["../../src/webhook/WebhookEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAgB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"WebhookEvent.js","sourceRoot":"","sources":["../../src/webhook/WebhookEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAgB,MAAM,qBAAqB,CAAC;AAoBjE,MAAM,UAAU,iBAAiB,CAAC,CAAS;IACzC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9B,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;AAC5K,CAAC"}
|
package/package.json
CHANGED