@spritz-finance/service-client 0.17.0 → 0.19.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/lib/features/types.d.ts +1 -0
- package/lib/features/types.js +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +4 -1
- package/lib/notifications/notificationsServiceClient.d.ts +9 -0
- package/lib/notifications/notificationsServiceClient.js +53 -0
- package/lib/notifications/types.d.ts +16 -0
- package/lib/notifications/types.js +2 -0
- package/lib/payableAccounts/payableAccountsServiceClient.d.ts +8 -1
- package/lib/payableAccounts/payableAccountsServiceClient.js +12 -0
- package/lib/payableAccounts/types.d.ts +23 -0
- package/lib/platform/platformServiceClient.d.ts +9 -1
- package/lib/platform/platformServiceClient.js +13 -0
- package/lib/platform/types.d.ts +44 -0
- package/package.json +1 -1
package/lib/features/types.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare enum FeatureFlag {
|
|
|
47
47
|
ModernTreasuryInstantPayments = "modernTreasury.instantPayments",
|
|
48
48
|
ModernTreasuryMercuryFunding = "modernTreasury.mercuryFunding",
|
|
49
49
|
ModernTreasuryNextDayAch = "modernTreasury.nextDayAch",
|
|
50
|
+
ModernTreasuryDebitCardPayouts = "modernTreasury.debitCardPayouts",
|
|
50
51
|
InternalMercuryAutoTransfers = "mercury.internalAutoTransfers",
|
|
51
52
|
BinanceBridgeEnabled = "binanceBridge.enabled",
|
|
52
53
|
CheckbookAutomatedWires = "checkbook.automatedWires",
|
package/lib/features/types.js
CHANGED
|
@@ -48,6 +48,7 @@ var FeatureFlag;
|
|
|
48
48
|
FeatureFlag["ModernTreasuryInstantPayments"] = "modernTreasury.instantPayments";
|
|
49
49
|
FeatureFlag["ModernTreasuryMercuryFunding"] = "modernTreasury.mercuryFunding";
|
|
50
50
|
FeatureFlag["ModernTreasuryNextDayAch"] = "modernTreasury.nextDayAch";
|
|
51
|
+
FeatureFlag["ModernTreasuryDebitCardPayouts"] = "modernTreasury.debitCardPayouts";
|
|
51
52
|
// Mercury
|
|
52
53
|
FeatureFlag["InternalMercuryAutoTransfers"] = "mercury.internalAutoTransfers";
|
|
53
54
|
// Operations
|
package/lib/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export { GrowthClient } from "./growth/growthServiceClient";
|
|
|
12
12
|
export * from "./growth/types";
|
|
13
13
|
export { LiabilitiesClient } from "./liabilities/liabilitiesServiceClient";
|
|
14
14
|
export * from "./liabilities/types";
|
|
15
|
+
export { NotificationsClient } from "./notifications/notificationsServiceClient";
|
|
16
|
+
export * from "./notifications/types";
|
|
15
17
|
export { OnrampClient } from "./onramp/onrampServiceClient";
|
|
16
18
|
export * from "./onramp/types";
|
|
17
19
|
export { PayableAccountsClient } from "./payableAccounts/payableAccountsServiceClient";
|
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Web3Client = exports.VerificationClient = exports.UsersClient = exports.UnblockClient = exports.TransactionsClient = exports.RainClient = exports.PayoutsClient = exports.PaymentsClient = exports.PlatformClient = exports.PaymentAddressClient = exports.PayableAccountsClient = exports.OnrampClient = exports.LiabilitiesClient = exports.GrowthClient = exports.FeaturesClient = exports.ExchangeRatesClient = exports.CheckbookClient = exports.BridgeClient = void 0;
|
|
17
|
+
exports.Web3Client = exports.VerificationClient = exports.UsersClient = exports.UnblockClient = exports.TransactionsClient = exports.RainClient = exports.PayoutsClient = exports.PaymentsClient = exports.PlatformClient = exports.PaymentAddressClient = exports.PayableAccountsClient = exports.OnrampClient = exports.NotificationsClient = exports.LiabilitiesClient = exports.GrowthClient = exports.FeaturesClient = exports.ExchangeRatesClient = exports.CheckbookClient = exports.BridgeClient = void 0;
|
|
18
18
|
var bridgeServiceClient_1 = require("./bridge/bridgeServiceClient");
|
|
19
19
|
Object.defineProperty(exports, "BridgeClient", { enumerable: true, get: function () { return bridgeServiceClient_1.BridgeClient; } });
|
|
20
20
|
__exportStar(require("./bridge/types"), exports);
|
|
@@ -35,6 +35,9 @@ __exportStar(require("./growth/types"), exports);
|
|
|
35
35
|
var liabilitiesServiceClient_1 = require("./liabilities/liabilitiesServiceClient");
|
|
36
36
|
Object.defineProperty(exports, "LiabilitiesClient", { enumerable: true, get: function () { return liabilitiesServiceClient_1.LiabilitiesClient; } });
|
|
37
37
|
__exportStar(require("./liabilities/types"), exports);
|
|
38
|
+
var notificationsServiceClient_1 = require("./notifications/notificationsServiceClient");
|
|
39
|
+
Object.defineProperty(exports, "NotificationsClient", { enumerable: true, get: function () { return notificationsServiceClient_1.NotificationsClient; } });
|
|
40
|
+
__exportStar(require("./notifications/types"), exports);
|
|
38
41
|
var onrampServiceClient_1 = require("./onramp/onrampServiceClient");
|
|
39
42
|
Object.defineProperty(exports, "OnrampClient", { enumerable: true, get: function () { return onrampServiceClient_1.OnrampClient; } });
|
|
40
43
|
__exportStar(require("./onramp/types"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * as NotificationsClient from "./notificationsServiceClient";
|
|
2
|
+
import { EmailVerification } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Verifies deliverability through the notifications service's reputation
|
|
5
|
+
* cache (domain lists, cached verdicts, then a NeverBounce probe). An
|
|
6
|
+
* uncached probe can take several seconds; callers on a hot path should
|
|
7
|
+
* treat an ApiFailure as accept rather than block on retries.
|
|
8
|
+
*/
|
|
9
|
+
export declare function verifyEmail(email: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<EmailVerification>>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.NotificationsClient = void 0;
|
|
37
|
+
exports.verifyEmail = verifyEmail;
|
|
38
|
+
exports.NotificationsClient = __importStar(require("./notificationsServiceClient"));
|
|
39
|
+
const serviceClient_1 = require("../serviceClient");
|
|
40
|
+
const NOTIFICATIONS_ENDPOINT = "/v2/notifications/api";
|
|
41
|
+
/**
|
|
42
|
+
* Verifies deliverability through the notifications service's reputation
|
|
43
|
+
* cache (domain lists, cached verdicts, then a NeverBounce probe). An
|
|
44
|
+
* uncached probe can take several seconds; callers on a hot path should
|
|
45
|
+
* treat an ApiFailure as accept rather than block on retries.
|
|
46
|
+
*/
|
|
47
|
+
async function verifyEmail(email) {
|
|
48
|
+
return serviceClient_1.baseClient
|
|
49
|
+
.post(`${NOTIFICATIONS_ENDPOINT}/email-verification`, {
|
|
50
|
+
email,
|
|
51
|
+
})
|
|
52
|
+
.then((res) => res.data);
|
|
53
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mirrors VerificationResult in the notifications service, plus `unchecked`:
|
|
3
|
+
* no verdict exists and none could be obtained (verification disabled for the
|
|
4
|
+
* stage, an unverifiable domain, or a failed lookup).
|
|
5
|
+
*/
|
|
6
|
+
export type EmailVerificationResult = "valid" | "invalid" | "disposable" | "catchall" | "unknown" | "complained" | "unchecked";
|
|
7
|
+
export interface EmailVerification {
|
|
8
|
+
/** The normalized (trimmed, lowercased) address the verdict is about. */
|
|
9
|
+
email: string;
|
|
10
|
+
result: EmailVerificationResult;
|
|
11
|
+
/**
|
|
12
|
+
* False only on a positive `invalid` or `disposable`. Anything inconclusive
|
|
13
|
+
* accepts, so enforcing this never couples signup to NeverBounce uptime.
|
|
14
|
+
*/
|
|
15
|
+
accept: boolean;
|
|
16
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as PayableAccountsClient from "./payableAccountsServiceClient";
|
|
2
|
-
import { BankAccountPayoutRail, BankAccountUnpayableCode, ExternalBillInput, PayableAccount, PayableAccountInstitution, SimpleCardTransaction, UpsertVirtualCardInput } from "./types";
|
|
2
|
+
import { BankAccountPayoutRail, BankAccountUnpayableCode, DebitCardDetails, ExternalBillInput, PayableAccount, PayableAccountInstitution, SimpleCardTransaction, UpsertVirtualCardInput } from "./types";
|
|
3
3
|
export declare function getAccount(accountId: string): Promise<(Omit<import("../lib/graphClient/generated").Bill, "type" | "institution"> & {
|
|
4
4
|
__t: import("../lib/graphClient/generated").PayableAccountType;
|
|
5
5
|
externalId?: string | null;
|
|
@@ -112,6 +112,13 @@ export declare function getAccountById(accountId: string): Promise<import("../ty
|
|
|
112
112
|
export declare function createUSVirtualCardNoKyc(userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<PayableAccount>>;
|
|
113
113
|
export declare function upsertVirtualCard(input: UpsertVirtualCardInput): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<PayableAccount>>;
|
|
114
114
|
export declare function getRecentCardSpendTransactions(userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<SimpleCardTransaction[]>>;
|
|
115
|
+
/**
|
|
116
|
+
* Full debit-card document from the REST ServiceApi, including the Modern
|
|
117
|
+
* Treasury registration fields (`tokenizationId`, cardholder name, billing
|
|
118
|
+
* address) that the frozen federated graph — and therefore `getAccountById` —
|
|
119
|
+
* cannot expose.
|
|
120
|
+
*/
|
|
121
|
+
export declare function getDebitCardById(userId: string, cardId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<DebitCardDetails>>;
|
|
115
122
|
/**
|
|
116
123
|
* Permanently disable a payout rail for a bank account. Used when the account is
|
|
117
124
|
* fine but cannot use one rail (e.g. "Transaction type not supported or
|
|
@@ -44,6 +44,7 @@ exports.getAccountById = getAccountById;
|
|
|
44
44
|
exports.createUSVirtualCardNoKyc = createUSVirtualCardNoKyc;
|
|
45
45
|
exports.upsertVirtualCard = upsertVirtualCard;
|
|
46
46
|
exports.getRecentCardSpendTransactions = getRecentCardSpendTransactions;
|
|
47
|
+
exports.getDebitCardById = getDebitCardById;
|
|
47
48
|
exports.disablePayoutRail = disablePayoutRail;
|
|
48
49
|
exports.markUnpayable = markUnpayable;
|
|
49
50
|
exports.PayableAccountsClient = __importStar(require("./payableAccountsServiceClient"));
|
|
@@ -102,6 +103,17 @@ async function getRecentCardSpendTransactions(userId) {
|
|
|
102
103
|
.get(`${PAYABLE_ACCOUNTS_ENDPOINT}/virtual-card/recent-transactions/user/${userId}`)
|
|
103
104
|
.then((res) => res.data);
|
|
104
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Full debit-card document from the REST ServiceApi, including the Modern
|
|
108
|
+
* Treasury registration fields (`tokenizationId`, cardholder name, billing
|
|
109
|
+
* address) that the frozen federated graph — and therefore `getAccountById` —
|
|
110
|
+
* cannot expose.
|
|
111
|
+
*/
|
|
112
|
+
async function getDebitCardById(userId, cardId) {
|
|
113
|
+
return serviceClient_1.baseClient
|
|
114
|
+
.get(`${PAYABLE_ACCOUNTS_ROUTER_ENDPOINT}/debit-cards/${cardId}/user/${userId}`)
|
|
115
|
+
.then((res) => res.data);
|
|
116
|
+
}
|
|
105
117
|
/**
|
|
106
118
|
* Permanently disable a payout rail for a bank account. Used when the account is
|
|
107
119
|
* fine but cannot use one rail (e.g. "Transaction type not supported or
|
|
@@ -103,6 +103,29 @@ type DebitCardModel = Omit<DebitCard, "type" | "institution"> & PayableAccountMo
|
|
|
103
103
|
};
|
|
104
104
|
type DigitalAccountModel = Omit<DigitalAccount, "type" | "institution"> & PayableAccountModelExtension;
|
|
105
105
|
type OneTimePaymentModel = Omit<OneTimePayment, "type" | "institution"> & PayableAccountModelExtension;
|
|
106
|
+
export type DebitCardBillingAddress = {
|
|
107
|
+
line1: string;
|
|
108
|
+
line2?: string | null;
|
|
109
|
+
city: string;
|
|
110
|
+
state: string;
|
|
111
|
+
postalCode: string;
|
|
112
|
+
/** ISO 3166-1 alpha-2, e.g. "US". */
|
|
113
|
+
country: string;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Debit card as served by payable-accounts' REST ServiceApi
|
|
117
|
+
* (`GET /api/debit-cards/:cardId/user/:userId`). Unlike the frozen federated
|
|
118
|
+
* graph shape, this includes the Modern Treasury registration fields —
|
|
119
|
+
* `tokenizationId`, split cardholder name, billing address — decrypted from
|
|
120
|
+
* PPI storage. All of them must be present before a card can be paid via MT;
|
|
121
|
+
* legacy cards created before the Evervault flow may lack any of them.
|
|
122
|
+
*/
|
|
123
|
+
export type DebitCardDetails = DebitCardModel & {
|
|
124
|
+
tokenizationId?: string | null;
|
|
125
|
+
cardholderFirstName?: string | null;
|
|
126
|
+
cardholderLastName?: string | null;
|
|
127
|
+
billingAddress?: DebitCardBillingAddress | null;
|
|
128
|
+
};
|
|
106
129
|
export type PayableAccount = BankAcountModel | VirtualCardModel | BillModel | DebitCardModel | OneTimePaymentModel;
|
|
107
130
|
export type PayableAccountOneTimePayment = OneTimePaymentModel;
|
|
108
131
|
export type PayableAccountBankAccount = BankAcountModel;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
export * as PlatformClient from "./platformServiceClient";
|
|
2
|
-
import { CreateTokenizationData, CreateTokenizationRequest, IssuePayoutData, IssuePayoutRequest, MTBalancesData, PlaidTreasuryBalancesData, RelayCheckbookCardData, RelayCheckbookCardRequest, SendPaymentData, SendPaymentRequest, TabapayBalancesResponse, TabapayFundingRequirementResponse, ValidateBillData, ValidateBillRequest } from "./types";
|
|
2
|
+
import { CreateTokenizationData, CreateTokenizationRequest, IssueCardPayoutData, IssueCardPayoutRequest, IssuePayoutData, IssuePayoutRequest, MTBalancesData, PlaidTreasuryBalancesData, RelayCheckbookCardData, RelayCheckbookCardRequest, SendPaymentData, SendPaymentRequest, TabapayBalancesResponse, TabapayFundingRequirementResponse, ValidateBillData, ValidateBillRequest } from "./types";
|
|
3
3
|
export declare function validateBill(request: ValidateBillRequest): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<ValidateBillData>>;
|
|
4
4
|
export declare function tabapayBalances(): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<TabapayBalancesResponse>>;
|
|
5
5
|
export declare function tabapayFundingRequirement(currency?: string): Promise<TabapayFundingRequirementResponse>;
|
|
6
6
|
export declare function issuePayout(request: IssuePayoutRequest): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<IssuePayoutData>>;
|
|
7
|
+
/**
|
|
8
|
+
* Push-to-debit payout via Modern Treasury. Platform lazily materializes the
|
|
9
|
+
* MT external account + Card from the Evervault tokenization on first payout,
|
|
10
|
+
* then reserves the payment order through the same funding queue as
|
|
11
|
+
* `issuePayout` — so `payment_order_id` is absent while the payout is queued
|
|
12
|
+
* and arrives later via the status outbox.
|
|
13
|
+
*/
|
|
14
|
+
export declare function issueCardPayout(request: IssueCardPayoutRequest): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<IssueCardPayoutData>>;
|
|
7
15
|
export declare function sendPayment(request: SendPaymentRequest): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<SendPaymentData>>;
|
|
8
16
|
export declare function modernTreasuryBalances(): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<MTBalancesData>>;
|
|
9
17
|
/**
|
|
@@ -41,6 +41,7 @@ exports.validateBill = validateBill;
|
|
|
41
41
|
exports.tabapayBalances = tabapayBalances;
|
|
42
42
|
exports.tabapayFundingRequirement = tabapayFundingRequirement;
|
|
43
43
|
exports.issuePayout = issuePayout;
|
|
44
|
+
exports.issueCardPayout = issueCardPayout;
|
|
44
45
|
exports.sendPayment = sendPayment;
|
|
45
46
|
exports.modernTreasuryBalances = modernTreasuryBalances;
|
|
46
47
|
exports.plaidTreasuryBalances = plaidTreasuryBalances;
|
|
@@ -86,6 +87,18 @@ async function issuePayout(request) {
|
|
|
86
87
|
.post(`${MT_ENDPOINT}/issue-payout`, request)
|
|
87
88
|
.then((res) => res.data);
|
|
88
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Push-to-debit payout via Modern Treasury. Platform lazily materializes the
|
|
92
|
+
* MT external account + Card from the Evervault tokenization on first payout,
|
|
93
|
+
* then reserves the payment order through the same funding queue as
|
|
94
|
+
* `issuePayout` — so `payment_order_id` is absent while the payout is queued
|
|
95
|
+
* and arrives later via the status outbox.
|
|
96
|
+
*/
|
|
97
|
+
async function issueCardPayout(request) {
|
|
98
|
+
return platformClient
|
|
99
|
+
.post(`${MT_ENDPOINT}/issue-card-payout`, request)
|
|
100
|
+
.then((res) => res.data);
|
|
101
|
+
}
|
|
89
102
|
async function sendPayment(request) {
|
|
90
103
|
return platformClient
|
|
91
104
|
.post(`${MT_ENDPOINT}/send-payment`, request)
|
package/lib/platform/types.d.ts
CHANGED
|
@@ -71,6 +71,50 @@ export interface IssuePayoutData {
|
|
|
71
71
|
currency: "USD";
|
|
72
72
|
external_id: string;
|
|
73
73
|
}
|
|
74
|
+
export interface CardBillingAddress {
|
|
75
|
+
line1: string;
|
|
76
|
+
line2?: string;
|
|
77
|
+
city: string;
|
|
78
|
+
state: string;
|
|
79
|
+
postalCode: string;
|
|
80
|
+
/** ISO 3166-1 alpha-2, e.g. "US". */
|
|
81
|
+
country: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Mirrors platform's `IssueCardPayoutRequestSchema` (internal-api
|
|
85
|
+
* `services/modern-treasury/card-payout.ts`). Cardholder name and billing
|
|
86
|
+
* address must come from the caller: payable-accounts persists them
|
|
87
|
+
* PPI-encrypted and platform cannot reconstruct them. USD/US only — no
|
|
88
|
+
* currency field, by design. Takes no rail: the endpoint is push-to-card.
|
|
89
|
+
*/
|
|
90
|
+
export interface IssueCardPayoutRequest {
|
|
91
|
+
userId: string;
|
|
92
|
+
/** The liabilities payment id — the idempotency anchor for the whole flow. */
|
|
93
|
+
debitId: string;
|
|
94
|
+
/** The payable-accounts debit card id. */
|
|
95
|
+
cardId: string;
|
|
96
|
+
/** Holds the `ev:` PAN token the relay decrypts on the way to MT. */
|
|
97
|
+
tokenizationId: string;
|
|
98
|
+
cardholderFirstName: string;
|
|
99
|
+
cardholderLastName: string;
|
|
100
|
+
billingAddress: CardBillingAddress;
|
|
101
|
+
cardNetwork?: string;
|
|
102
|
+
cardLastFour?: string;
|
|
103
|
+
recipientEmail?: string;
|
|
104
|
+
amount: number;
|
|
105
|
+
metadata?: Record<string, string>;
|
|
106
|
+
statementDescriptor?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface IssueCardPayoutData {
|
|
109
|
+
/** Absent while the payout is queued for funding (`pending:*` internally). */
|
|
110
|
+
payment_order_id?: string;
|
|
111
|
+
status: string;
|
|
112
|
+
type: string;
|
|
113
|
+
direction: "credit";
|
|
114
|
+
amount: number;
|
|
115
|
+
currency: "USD";
|
|
116
|
+
external_id: string;
|
|
117
|
+
}
|
|
74
118
|
export interface SendPaymentRequest {
|
|
75
119
|
destination: "checkbook" | "mercury";
|
|
76
120
|
amount: number;
|