@spritz-finance/service-client 0.3.47 → 0.3.49
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
CHANGED
|
@@ -26,10 +26,16 @@ export declare enum FeatureFlag {
|
|
|
26
26
|
BtcPayments = "payments.network.bitcoin",
|
|
27
27
|
DashPayments = "payments.network.dash",
|
|
28
28
|
SuiPayments = "payments.network.sui",
|
|
29
|
+
BillPayments = "payments.accountType.bill",
|
|
30
|
+
VirtualCardPayments = "payments.accountType.virtualCard",
|
|
31
|
+
DebitCardPayments = "payments.accountType.debitCard",
|
|
32
|
+
BankAccountPayments = "payments.accountType.bankAccount",
|
|
33
|
+
RtpPayments = "payments.accountType.rtp",
|
|
29
34
|
SuiMUSDPayments = "payments.token.sui.musd",
|
|
30
35
|
SpritzCardNoKycEnabled = "spritzCard.noKyc.enabled",
|
|
31
36
|
SpritzCardNoKycPayments = "spritzCard.noKyc.payments",
|
|
32
|
-
BinanceBridgeEnabled = "binanceBridge.enabled"
|
|
37
|
+
BinanceBridgeEnabled = "binanceBridge.enabled",
|
|
38
|
+
CheckbookAutomatedWires = "checkbook.automatedWires"
|
|
33
39
|
}
|
|
34
40
|
export type FeatureFlags = Record<FeatureFlag, FeatureFlagDetails>;
|
|
35
41
|
export {};
|
package/lib/features/types.js
CHANGED
|
@@ -22,6 +22,12 @@ var FeatureFlag;
|
|
|
22
22
|
FeatureFlag["BtcPayments"] = "payments.network.bitcoin";
|
|
23
23
|
FeatureFlag["DashPayments"] = "payments.network.dash";
|
|
24
24
|
FeatureFlag["SuiPayments"] = "payments.network.sui";
|
|
25
|
+
// Account type payments
|
|
26
|
+
FeatureFlag["BillPayments"] = "payments.accountType.bill";
|
|
27
|
+
FeatureFlag["VirtualCardPayments"] = "payments.accountType.virtualCard";
|
|
28
|
+
FeatureFlag["DebitCardPayments"] = "payments.accountType.debitCard";
|
|
29
|
+
FeatureFlag["BankAccountPayments"] = "payments.accountType.bankAccount";
|
|
30
|
+
FeatureFlag["RtpPayments"] = "payments.accountType.rtp";
|
|
25
31
|
// Token Specific
|
|
26
32
|
FeatureFlag["SuiMUSDPayments"] = "payments.token.sui.musd";
|
|
27
33
|
// Features
|
|
@@ -29,4 +35,5 @@ var FeatureFlag;
|
|
|
29
35
|
FeatureFlag["SpritzCardNoKycPayments"] = "spritzCard.noKyc.payments";
|
|
30
36
|
// Operations
|
|
31
37
|
FeatureFlag["BinanceBridgeEnabled"] = "binanceBridge.enabled";
|
|
38
|
+
FeatureFlag["CheckbookAutomatedWires"] = "checkbook.automatedWires";
|
|
32
39
|
})(FeatureFlag || (exports.FeatureFlag = FeatureFlag = {}));
|
|
@@ -4,3 +4,6 @@ import { BridgeUser, CreateBridgeUserParams, SyncOnrampTransferInput } from './t
|
|
|
4
4
|
export declare function syncTransfer(input: SyncOnrampTransferInput): Promise<OnRampPayment>;
|
|
5
5
|
export declare function getUserCompletedPayments(userId: string): Promise<OnRampPayment[]>;
|
|
6
6
|
export declare function upsertBridgeUser(input: CreateBridgeUserParams): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<BridgeUser>>;
|
|
7
|
+
export declare function createBusinessUser(userId: string, businessName: string): Promise<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
}>;
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.upsertBridgeUser = exports.getUserCompletedPayments = exports.syncTransfer = exports.OnrampClient = void 0;
|
|
26
|
+
exports.createBusinessUser = exports.upsertBridgeUser = exports.getUserCompletedPayments = exports.syncTransfer = exports.OnrampClient = void 0;
|
|
27
27
|
exports.OnrampClient = __importStar(require("./onrampServiceClient"));
|
|
28
28
|
const serviceClient_1 = require("../serviceClient");
|
|
29
29
|
const ONRAMP_ENDPOINT = '/bridge';
|
|
@@ -45,3 +45,12 @@ async function upsertBridgeUser(input) {
|
|
|
45
45
|
.then((res) => res.data);
|
|
46
46
|
}
|
|
47
47
|
exports.upsertBridgeUser = upsertBridgeUser;
|
|
48
|
+
async function createBusinessUser(userId, businessName) {
|
|
49
|
+
return serviceClient_1.baseClient
|
|
50
|
+
.post(`${ONRAMP_ENDPOINT}/business-user`, {
|
|
51
|
+
userId,
|
|
52
|
+
businessName,
|
|
53
|
+
})
|
|
54
|
+
.then((res) => res.data);
|
|
55
|
+
}
|
|
56
|
+
exports.createBusinessUser = createBusinessUser;
|