@moovio/sdk 0.19.1 → 0.19.2
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/bin/mcp-server.js +12 -8
- package/bin/mcp-server.js.map +7 -7
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/imagemetadata.d.ts +5 -0
- package/models/components/imagemetadata.d.ts.map +1 -1
- package/models/components/imagemetadata.js +2 -0
- package/models/components/imagemetadata.js.map +1 -1
- package/models/components/incurredfee.d.ts +2 -0
- package/models/components/incurredfee.d.ts.map +1 -1
- package/models/components/incurredfee.js +2 -0
- package/models/components/incurredfee.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/imagemetadata.ts +7 -0
- package/src/models/components/incurredfee.ts +4 -0
- package/test/tests/accounts.test.ts +2 -2
- package/test/tests/bankAccounts.test.ts +2 -8
- package/test/tests/capabilities.test.ts +3 -3
- package/test/tests/cards.test.ts +4 -4
- package/test/tests/paymentMethods.test.ts +3 -3
- package/test/tests/representatives.test.ts +3 -3
- package/test/tests/transfers.test.ts +6 -6
- package/test/tests/wallets.test.ts +1 -1
- package/test/utils/utils.ts +5 -2
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
39
39
|
export declare const SDK_METADATA: {
|
|
40
40
|
readonly language: "typescript";
|
|
41
41
|
readonly openapiDocVersion: "latest";
|
|
42
|
-
readonly sdkVersion: "0.19.
|
|
43
|
-
readonly genVersion: "2.
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.19.
|
|
42
|
+
readonly sdkVersion: "0.19.2";
|
|
43
|
+
readonly genVersion: "2.731.6";
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.19.2 2.731.6 latest @moovio/sdk";
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "latest",
|
|
34
|
-
sdkVersion: "0.19.
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.19.
|
|
34
|
+
sdkVersion: "0.19.2",
|
|
35
|
+
genVersion: "2.731.6",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.19.2 2.731.6 latest @moovio/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.19.
|
|
25
|
+
currentVersion: "0.19.2",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -171,7 +171,7 @@ const walletTransactionsList_js_1 = require("./tools/walletTransactionsList.js")
|
|
|
171
171
|
function createMCPServer(deps) {
|
|
172
172
|
const server = new mcp_js_1.McpServer({
|
|
173
173
|
name: "Moov",
|
|
174
|
-
version: "0.19.
|
|
174
|
+
version: "0.19.2",
|
|
175
175
|
});
|
|
176
176
|
const client = new core_js_1.MoovCore({
|
|
177
177
|
security: deps.security,
|
|
@@ -6,6 +6,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export type ImageMetadata = {
|
|
8
8
|
imageID: string;
|
|
9
|
+
/**
|
|
10
|
+
* The ID used to get an image with the public endpoint.
|
|
11
|
+
*/
|
|
12
|
+
publicID: string;
|
|
9
13
|
/**
|
|
10
14
|
* Alternative text for the image.
|
|
11
15
|
*/
|
|
@@ -25,6 +29,7 @@ export declare const ImageMetadata$inboundSchema: z.ZodType<ImageMetadata, z.Zod
|
|
|
25
29
|
/** @internal */
|
|
26
30
|
export type ImageMetadata$Outbound = {
|
|
27
31
|
imageID: string;
|
|
32
|
+
publicID: string;
|
|
28
33
|
altText?: string | undefined;
|
|
29
34
|
link: string;
|
|
30
35
|
createdOn: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imagemetadata.d.ts","sourceRoot":"","sources":["../../src/models/components/imagemetadata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"imagemetadata.d.ts","sourceRoot":"","sources":["../../src/models/components/imagemetadata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAA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,CAMpD"}
|
|
@@ -44,6 +44,7 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
44
44
|
/** @internal */
|
|
45
45
|
exports.ImageMetadata$inboundSchema = z.object({
|
|
46
46
|
imageID: z.string(),
|
|
47
|
+
publicID: z.string(),
|
|
47
48
|
altText: z.string().optional(),
|
|
48
49
|
link: z.string(),
|
|
49
50
|
createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -52,6 +53,7 @@ exports.ImageMetadata$inboundSchema = z.object({
|
|
|
52
53
|
/** @internal */
|
|
53
54
|
exports.ImageMetadata$outboundSchema = z.object({
|
|
54
55
|
imageID: z.string(),
|
|
56
|
+
publicID: z.string(),
|
|
55
57
|
altText: z.string().optional(),
|
|
56
58
|
link: z.string(),
|
|
57
59
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imagemetadata.js","sourceRoot":"","sources":["../../src/models/components/imagemetadata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"imagemetadata.js","sourceRoot":"","sources":["../../src/models/components/imagemetadata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFH,kDAEC;AAED,sDAQC;AA5FD,0CAA4B;AAC5B,qDAAiD;AA4BjD,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,E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A2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -17,6 +17,7 @@ export type IncurredFee = {
|
|
|
17
17
|
* The entity that generated the fee.
|
|
18
18
|
*/
|
|
19
19
|
generatedBy?: GeneratedBy | undefined;
|
|
20
|
+
feeGroup?: string | undefined;
|
|
20
21
|
};
|
|
21
22
|
/** @internal */
|
|
22
23
|
export declare const IncurredFee$inboundSchema: z.ZodType<IncurredFee, z.ZodTypeDef, unknown>;
|
|
@@ -29,6 +30,7 @@ export type IncurredFee$Outbound = {
|
|
|
29
30
|
feeName?: string | undefined;
|
|
30
31
|
amount?: AmountDecimal$Outbound | undefined;
|
|
31
32
|
generatedBy?: GeneratedBy$Outbound | undefined;
|
|
33
|
+
feeGroup?: string | undefined;
|
|
32
34
|
};
|
|
33
35
|
/** @internal */
|
|
34
36
|
export declare const IncurredFee$outboundSchema: z.ZodType<IncurredFee$Outbound, z.ZodTypeDef, IncurredFee>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incurredfee.d.ts","sourceRoot":"","sources":["../../src/models/components/incurredfee.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,G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,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC5C,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAUX,CAAC;AAEH;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IAC5B,2DAA2D;IACpD,MAAM,aAAa,+CAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc,4DAA6B,CAAC;IACzD,sDAAsD;IACtD,KAAY,QAAQ,GAAG,oBAAoB,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -53,6 +53,7 @@ exports.IncurredFee$inboundSchema = z.object({
|
|
|
53
53
|
feeName: z.string().optional(),
|
|
54
54
|
amount: amountdecimal_js_1.AmountDecimal$inboundSchema.optional(),
|
|
55
55
|
generatedBy: generatedby_js_1.GeneratedBy$inboundSchema.optional(),
|
|
56
|
+
feeGroup: z.string().optional(),
|
|
56
57
|
});
|
|
57
58
|
/** @internal */
|
|
58
59
|
exports.IncurredFee$outboundSchema = z.object({
|
|
@@ -63,6 +64,7 @@ exports.IncurredFee$outboundSchema = z.object({
|
|
|
63
64
|
feeName: z.string().optional(),
|
|
64
65
|
amount: amountdecimal_js_1.AmountDecimal$outboundSchema.optional(),
|
|
65
66
|
generatedBy: generatedby_js_1.GeneratedBy$outboundSchema.optional(),
|
|
67
|
+
feeGroup: z.string().optional(),
|
|
66
68
|
});
|
|
67
69
|
/**
|
|
68
70
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incurredfee.js","sourceRoot":"","sources":["../../src/models/components/incurredfee.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"incurredfee.js","sourceRoot":"","sources":["../../src/models/components/incurredfee.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FH,8CAEC;AAED,kDAQC;AAxGD,0CAA4B;AAC5B,qDAAiD;AAGjD,yDAK4B;AAC5B,qDAK0B;AAmB1B,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACzE,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,8CAA2B,CAAC,QAAQ,EAAE;IAC9C,WAAW,EAAE,0CAAyB,CAAC,QAAQ,EAAE;IACjD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AAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "latest",
|
|
76
|
-
sdkVersion: "0.19.
|
|
77
|
-
genVersion: "2.
|
|
78
|
-
userAgent: "speakeasy-sdk/typescript 0.19.
|
|
76
|
+
sdkVersion: "0.19.2",
|
|
77
|
+
genVersion: "2.731.6",
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 0.19.2 2.731.6 latest @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -12,6 +12,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export type ImageMetadata = {
|
|
14
14
|
imageID: string;
|
|
15
|
+
/**
|
|
16
|
+
* The ID used to get an image with the public endpoint.
|
|
17
|
+
*/
|
|
18
|
+
publicID: string;
|
|
15
19
|
/**
|
|
16
20
|
* Alternative text for the image.
|
|
17
21
|
*/
|
|
@@ -34,6 +38,7 @@ export const ImageMetadata$inboundSchema: z.ZodType<
|
|
|
34
38
|
unknown
|
|
35
39
|
> = z.object({
|
|
36
40
|
imageID: z.string(),
|
|
41
|
+
publicID: z.string(),
|
|
37
42
|
altText: z.string().optional(),
|
|
38
43
|
link: z.string(),
|
|
39
44
|
createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -43,6 +48,7 @@ export const ImageMetadata$inboundSchema: z.ZodType<
|
|
|
43
48
|
/** @internal */
|
|
44
49
|
export type ImageMetadata$Outbound = {
|
|
45
50
|
imageID: string;
|
|
51
|
+
publicID: string;
|
|
46
52
|
altText?: string | undefined;
|
|
47
53
|
link: string;
|
|
48
54
|
createdOn: string;
|
|
@@ -56,6 +62,7 @@ export const ImageMetadata$outboundSchema: z.ZodType<
|
|
|
56
62
|
ImageMetadata
|
|
57
63
|
> = z.object({
|
|
58
64
|
imageID: z.string(),
|
|
65
|
+
publicID: z.string(),
|
|
59
66
|
altText: z.string().optional(),
|
|
60
67
|
link: z.string(),
|
|
61
68
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
@@ -33,6 +33,7 @@ export type IncurredFee = {
|
|
|
33
33
|
* The entity that generated the fee.
|
|
34
34
|
*/
|
|
35
35
|
generatedBy?: GeneratedBy | undefined;
|
|
36
|
+
feeGroup?: string | undefined;
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
/** @internal */
|
|
@@ -49,6 +50,7 @@ export const IncurredFee$inboundSchema: z.ZodType<
|
|
|
49
50
|
feeName: z.string().optional(),
|
|
50
51
|
amount: AmountDecimal$inboundSchema.optional(),
|
|
51
52
|
generatedBy: GeneratedBy$inboundSchema.optional(),
|
|
53
|
+
feeGroup: z.string().optional(),
|
|
52
54
|
});
|
|
53
55
|
|
|
54
56
|
/** @internal */
|
|
@@ -60,6 +62,7 @@ export type IncurredFee$Outbound = {
|
|
|
60
62
|
feeName?: string | undefined;
|
|
61
63
|
amount?: AmountDecimal$Outbound | undefined;
|
|
62
64
|
generatedBy?: GeneratedBy$Outbound | undefined;
|
|
65
|
+
feeGroup?: string | undefined;
|
|
63
66
|
};
|
|
64
67
|
|
|
65
68
|
/** @internal */
|
|
@@ -75,6 +78,7 @@ export const IncurredFee$outboundSchema: z.ZodType<
|
|
|
75
78
|
feeName: z.string().optional(),
|
|
76
79
|
amount: AmountDecimal$outboundSchema.optional(),
|
|
77
80
|
generatedBy: GeneratedBy$outboundSchema.optional(),
|
|
81
|
+
feeGroup: z.string().optional(),
|
|
78
82
|
});
|
|
79
83
|
|
|
80
84
|
/**
|
|
@@ -28,7 +28,7 @@ describe("Accounts", () => {
|
|
|
28
28
|
test("should fail if the account type is not supported", async () => {
|
|
29
29
|
await expect(() =>
|
|
30
30
|
createAccount({
|
|
31
|
-
accountType: "not-a-valid-account-type" as
|
|
31
|
+
accountType: "not-a-valid-account-type" as "business" | "individual",
|
|
32
32
|
}),
|
|
33
33
|
).toThrowError();
|
|
34
34
|
});
|
|
@@ -102,7 +102,7 @@ describe("Accounts", () => {
|
|
|
102
102
|
const legalBusinessName = chance.company();
|
|
103
103
|
const { result } = await moov.accounts.update({
|
|
104
104
|
accountID: account.accountID,
|
|
105
|
-
|
|
105
|
+
patchAccount: { profile: { business: { legalBusinessName } } },
|
|
106
106
|
});
|
|
107
107
|
expect(result).toBeDefined();
|
|
108
108
|
expect(result.accountID).toEqual(account.accountID);
|
|
@@ -102,9 +102,7 @@ describe("Bank Accounts", () => {
|
|
|
102
102
|
accountID,
|
|
103
103
|
bankAccountID: bankAccount.bankAccountID!,
|
|
104
104
|
}),
|
|
105
|
-
).toThrowError(
|
|
106
|
-
expect.objectContaining({ error: "unacceptable bank account status verified for verification" }),
|
|
107
|
-
);
|
|
105
|
+
).toThrowError(/found existing active verification/i);
|
|
108
106
|
});
|
|
109
107
|
test("should be able to get the bank account verification status", async () => {
|
|
110
108
|
const { result } = await moov.bankAccounts.initiateVerification({
|
|
@@ -151,11 +149,7 @@ describe("Bank Accounts", () => {
|
|
|
151
149
|
accountID,
|
|
152
150
|
bankAccountID: bankAccount.bankAccountID!,
|
|
153
151
|
}),
|
|
154
|
-
).toThrowError(
|
|
155
|
-
expect.objectContaining({
|
|
156
|
-
error: "unexpected account status: expected 'new' or 'verificationFailed', found 'verified'",
|
|
157
|
-
}),
|
|
158
|
-
);
|
|
152
|
+
).toThrowError(/unexpected account status: expected 'new' or 'verificationFailed'/i);
|
|
159
153
|
});
|
|
160
154
|
});
|
|
161
155
|
});
|
|
@@ -27,7 +27,7 @@ describe("Capabilities", () => {
|
|
|
27
27
|
moov.capabilities.list({
|
|
28
28
|
accountID: "not-a-valid-account-id",
|
|
29
29
|
}),
|
|
30
|
-
).toThrowError(
|
|
30
|
+
).toThrowError(/API error occurred: Status 403/);
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
|
|
@@ -79,7 +79,7 @@ describe("Capabilities", () => {
|
|
|
79
79
|
accountID: "not-a-valid-account-id",
|
|
80
80
|
capabilityID: "transfers",
|
|
81
81
|
}),
|
|
82
|
-
).toThrowError(
|
|
82
|
+
).toThrowError(/API error occurred: Status 403/i);
|
|
83
83
|
});
|
|
84
84
|
|
|
85
85
|
test("getting a capability should fail if the capability does not exist", async () => {
|
|
@@ -113,7 +113,7 @@ describe("Capabilities", () => {
|
|
|
113
113
|
capabilities: ["transfers"],
|
|
114
114
|
},
|
|
115
115
|
}),
|
|
116
|
-
).toThrowError(
|
|
116
|
+
).toThrowError(/API error occurred: Status 403/i);
|
|
117
117
|
});
|
|
118
118
|
|
|
119
119
|
test("requesting capabilities should fail if the capability is invalid", async () => {
|
package/test/tests/cards.test.ts
CHANGED
|
@@ -90,7 +90,7 @@ describe("Cards", () => {
|
|
|
90
90
|
|
|
91
91
|
test("Getting a card should fail when I pass incorrect params", async () => {
|
|
92
92
|
expect(async () => await moov.cards.get({ accountID, cardID: "invalid-card-id" })).toThrowError(
|
|
93
|
-
|
|
93
|
+
/API error occurred: Status 404/,
|
|
94
94
|
);
|
|
95
95
|
});
|
|
96
96
|
|
|
@@ -109,7 +109,7 @@ describe("Cards", () => {
|
|
|
109
109
|
|
|
110
110
|
test("listing should fail when I pass incorrect params", async () => {
|
|
111
111
|
expect(async () => await moov.cards.list({ accountID: "invalid-account-id" })).toThrowError(
|
|
112
|
-
|
|
112
|
+
/API error occurred: Status 403/,
|
|
113
113
|
);
|
|
114
114
|
});
|
|
115
115
|
});
|
|
@@ -145,7 +145,7 @@ describe("Cards", () => {
|
|
|
145
145
|
},
|
|
146
146
|
},
|
|
147
147
|
}),
|
|
148
|
-
).toThrowError(
|
|
148
|
+
).toThrowError(/API error occurred:.*\"expiration\":\"year: the length must be exactly 2.\"/i);
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
151
|
|
|
@@ -160,7 +160,7 @@ describe("Cards", () => {
|
|
|
160
160
|
|
|
161
161
|
test("disabling should fail when I pass incorrect params", async () => {
|
|
162
162
|
expect(async () => await moov.cards.disable({ accountID, cardID: "invalid-card-id" })).toThrowError(
|
|
163
|
-
|
|
163
|
+
/API error occurred: Status 404/i,
|
|
164
164
|
);
|
|
165
165
|
});
|
|
166
166
|
});
|
|
@@ -26,7 +26,7 @@ describe("PaymentMethods", () => {
|
|
|
26
26
|
});
|
|
27
27
|
test("listing should fail if accountID is not provided", async () => {
|
|
28
28
|
expect(() => moov.paymentMethods.list({ accountID: "" })).toThrowError(
|
|
29
|
-
|
|
29
|
+
/API error occurred: Status 403/i,
|
|
30
30
|
);
|
|
31
31
|
});
|
|
32
32
|
});
|
|
@@ -43,12 +43,12 @@ describe("PaymentMethods", () => {
|
|
|
43
43
|
});
|
|
44
44
|
test("getting should fail if accountID and paymentMethodID are not correct", async () => {
|
|
45
45
|
expect(() => moov.paymentMethods.get({ accountID: "@#$@#$@$", paymentMethodID: "@#$@#$@#$@" })).toThrowError(
|
|
46
|
-
|
|
46
|
+
/API error occurred: Status 403/i,
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
test("getting should fail if paymentMethodID is not provided", async () => {
|
|
50
50
|
expect(() => moov.paymentMethods.get({ accountID: accountID, paymentMethodID: "" })).toThrowError(
|
|
51
|
-
|
|
51
|
+
/API error occurred: Status 403/i,
|
|
52
52
|
);
|
|
53
53
|
});
|
|
54
54
|
});
|
|
@@ -40,7 +40,7 @@ describe("Representative", () => {
|
|
|
40
40
|
});
|
|
41
41
|
test("listing representatives should fail if the account is not found", async () => {
|
|
42
42
|
expect(() => moov.representatives.list({ accountID: "not-a-valid-account-id" })).toThrowError(
|
|
43
|
-
|
|
43
|
+
/API error occurred: Status 403/i,
|
|
44
44
|
);
|
|
45
45
|
});
|
|
46
46
|
test("getting a representative should fail if the account is not found", async () => {
|
|
@@ -49,7 +49,7 @@ describe("Representative", () => {
|
|
|
49
49
|
accountID: "not-a-valid-account-id",
|
|
50
50
|
representativeID: representative.representativeID,
|
|
51
51
|
}),
|
|
52
|
-
).toThrowError(
|
|
52
|
+
).toThrowError(/API error occurred: Status 403/i);
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
describe("Updating a representative", () => {
|
|
@@ -76,7 +76,7 @@ describe("Representative", () => {
|
|
|
76
76
|
email: "mia.wallece@bigkahunaburger.com",
|
|
77
77
|
},
|
|
78
78
|
}),
|
|
79
|
-
).toThrowError(
|
|
79
|
+
).toThrowError(/API error occurred: Status 403/i);
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { beforeAll, beforeEach, describe, expect, test } from "bun:test";
|
|
2
2
|
import { ids, moov } from "../setup";
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
createAccountAndGetTransferOptions,
|
|
5
5
|
createAccount,
|
|
6
6
|
createAccountWithWallet,
|
|
7
7
|
createBankAccount,
|
|
@@ -10,20 +10,20 @@ import {
|
|
|
10
10
|
UUID_REGEX,
|
|
11
11
|
waitFor,
|
|
12
12
|
} from "../utils/utils";
|
|
13
|
-
import type { CreateTransferOptions, PaymentMethod,
|
|
13
|
+
import type { CreateTransferOptions, PaymentMethod, Transfer, CreatedTransfer, AsyncTransfer } from "../../models/components";
|
|
14
14
|
import { sleep } from "bun";
|
|
15
15
|
import type { CreateTransferRequest } from "../../models/operations";
|
|
16
16
|
|
|
17
17
|
let destinationAccountID: string;
|
|
18
18
|
let sourcePaymentMethodID: string;
|
|
19
19
|
let destinationPaymentMethodID: string;
|
|
20
|
-
let transfer:
|
|
20
|
+
let transfer: Transfer | CreatedTransfer | AsyncTransfer;
|
|
21
21
|
describe("Transfers", () => {
|
|
22
|
-
// Setup accounts and payment methods
|
|
23
22
|
|
|
24
23
|
describe("Transfer Creation", () => {
|
|
25
24
|
beforeAll(async () => {
|
|
26
|
-
|
|
25
|
+
// Setup accounts and payment methods
|
|
26
|
+
const availablePaymentMethods = await createAccountAndGetTransferOptions();
|
|
27
27
|
sourcePaymentMethodID = availablePaymentMethods.sourceOptions![0].paymentMethodID!;
|
|
28
28
|
destinationPaymentMethodID = availablePaymentMethods.destinationOptions![0].paymentMethodID!;
|
|
29
29
|
});
|
|
@@ -99,7 +99,7 @@ describe("Transfers", () => {
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
await expect(() => moov.transfers.create(transferRequest)).toThrowError(
|
|
102
|
-
|
|
102
|
+
/API error occurred: {"amount":"amount value must be greater than or equal to 0.01"}/i,
|
|
103
103
|
);
|
|
104
104
|
});
|
|
105
105
|
});
|
|
@@ -22,7 +22,7 @@ describe("Wallets", () => {
|
|
|
22
22
|
});
|
|
23
23
|
test("listing should fail if accountID is not provided", async () => {
|
|
24
24
|
expect(() => moov.wallets.list({ accountID: "" })).toThrowError(
|
|
25
|
-
|
|
25
|
+
/API error occurred: Status 403/i
|
|
26
26
|
);
|
|
27
27
|
});
|
|
28
28
|
});
|
package/test/utils/utils.ts
CHANGED
|
@@ -217,7 +217,7 @@ export const createCard = async (accountID: string, card: DeepPartial<LinkCard>
|
|
|
217
217
|
return { card: result, cardNumber: mergedCard.cardNumber };
|
|
218
218
|
};
|
|
219
219
|
|
|
220
|
-
export const
|
|
220
|
+
export const createAccountAndGetTransferOptions = async () => {
|
|
221
221
|
const doneCheck = (data: { result: PaymentMethod[] }) => data.result.length > 0;
|
|
222
222
|
|
|
223
223
|
// Create destination account with card and bank account
|
|
@@ -239,7 +239,10 @@ export const crateAccountAndGetTransferOptions = async () => {
|
|
|
239
239
|
destination: { accountID: destinationAccountID },
|
|
240
240
|
amount: { currency: "USD", value: 1 },
|
|
241
241
|
};
|
|
242
|
-
const { result: availablePaymentMethods } = await moov.transfers.generateOptions(
|
|
242
|
+
const { result: availablePaymentMethods } = await moov.transfers.generateOptions({
|
|
243
|
+
accountID: SOURCE_ACCOUNT_ID,
|
|
244
|
+
createTransferOptions: generateOptionsRequest,
|
|
245
|
+
});
|
|
243
246
|
expect(availablePaymentMethods).toBeDefined();
|
|
244
247
|
expect(availablePaymentMethods.sourceOptions).toBeArray();
|
|
245
248
|
expect(availablePaymentMethods.sourceOptions!.length).toBeGreaterThan(0);
|