@moovio/sdk 26.4.0-dev.14 → 26.4.0-dev.15
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 +6 -6
- package/bin/mcp-server.js.map +18 -18
- 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/accountnameverification.d.ts +12 -0
- package/models/components/accountnameverification.d.ts.map +1 -1
- package/models/components/accountnameverification.js.map +1 -1
- package/models/components/card.d.ts +9 -0
- package/models/components/card.d.ts.map +1 -1
- package/models/components/card.js.map +1 -1
- package/models/components/cardaccountupdater.d.ts +3 -0
- package/models/components/cardaccountupdater.d.ts.map +1 -1
- package/models/components/cardaccountupdater.js.map +1 -1
- package/models/components/cardaddress.d.ts +18 -0
- package/models/components/cardaddress.d.ts.map +1 -1
- package/models/components/cardaddress.js.map +1 -1
- package/models/components/cardexpiration.d.ts +6 -0
- package/models/components/cardexpiration.d.ts.map +1 -1
- package/models/components/cardexpiration.js.map +1 -1
- package/models/components/cardverification.d.ts +16 -1
- package/models/components/cardverification.d.ts.map +1 -1
- package/models/components/cardverification.js.map +1 -1
- package/models/components/cardverificationresult.d.ts +6 -0
- package/models/components/cardverificationresult.d.ts.map +1 -1
- package/models/components/cardverificationresult.js +3 -0
- package/models/components/cardverificationresult.js.map +1 -1
- package/models/components/linkcard.d.ts +30 -0
- package/models/components/linkcard.d.ts.map +1 -1
- package/models/components/linkcard.js.map +1 -1
- package/models/components/paymentmethodscard.d.ts +9 -0
- package/models/components/paymentmethodscard.d.ts.map +1 -1
- package/models/components/paymentmethodscard.js.map +1 -1
- package/models/components/transferpaymentmethodscard.d.ts +9 -0
- package/models/components/transferpaymentmethodscard.d.ts.map +1 -1
- package/models/components/transferpaymentmethodscard.js.map +1 -1
- package/models/components/updatecard.d.ts +27 -0
- package/models/components/updatecard.d.ts.map +1 -1
- package/models/components/updatecard.js.map +1 -1
- package/models/components/updatecardaddress.d.ts +18 -0
- package/models/components/updatecardaddress.d.ts.map +1 -1
- package/models/components/updatecardaddress.js.map +1 -1
- package/models/components/updatecardexpiration.d.ts +6 -0
- package/models/components/updatecardexpiration.d.ts.map +1 -1
- package/models/components/updatecardexpiration.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/accountnameverification.ts +12 -0
- package/src/models/components/card.ts +9 -0
- package/src/models/components/cardaccountupdater.ts +3 -0
- package/src/models/components/cardaddress.ts +18 -0
- package/src/models/components/cardexpiration.ts +6 -0
- package/src/models/components/cardverification.ts +16 -1
- package/src/models/components/cardverificationresult.ts +6 -0
- package/src/models/components/linkcard.ts +30 -0
- package/src/models/components/paymentmethodscard.ts +9 -0
- package/src/models/components/transferpaymentmethodscard.ts +9 -0
- package/src/models/components/updatecard.ts +27 -0
- package/src/models/components/updatecardaddress.ts +18 -0
- package/src/models/components/updatecardexpiration.ts +6 -0
|
@@ -2,11 +2,29 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type UpdateCardAddress = {
|
|
5
|
+
/**
|
|
6
|
+
* Street address line 1.
|
|
7
|
+
*/
|
|
5
8
|
addressLine1?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Street address line 2 (e.g., apartment or suite number).
|
|
11
|
+
*/
|
|
6
12
|
addressLine2?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* City name.
|
|
15
|
+
*/
|
|
7
16
|
city?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Two-letter state or province code.
|
|
19
|
+
*/
|
|
8
20
|
stateOrProvince?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Postal or ZIP code.
|
|
23
|
+
*/
|
|
9
24
|
postalCode?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Two-letter ISO 3166-1 country code.
|
|
27
|
+
*/
|
|
10
28
|
country?: string | undefined;
|
|
11
29
|
};
|
|
12
30
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatecardaddress.d.ts","sourceRoot":"","sources":["../../src/models/components/updatecardaddress.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,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAQjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
1
|
+
{"version":3,"file":"updatecardaddress.d.ts","sourceRoot":"","sources":["../../src/models/components/updatecardaddress.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,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAQjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatecardaddress.js","sourceRoot":"","sources":["../../src/models/components/updatecardaddress.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"updatecardaddress.js","sourceRoot":"","sources":["../../src/models/components/updatecardaddress.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEH,0DAMC;AACD,8DAQC;AApFD,0CAA4B;AAC5B,qDAAiD;AA+BjD,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AACD,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,13 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type UpdateCardExpiration = {
|
|
5
|
+
/**
|
|
6
|
+
* Two-digit month the card expires.
|
|
7
|
+
*/
|
|
5
8
|
month?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Two-digit year the card expires.
|
|
11
|
+
*/
|
|
6
12
|
year?: string | undefined;
|
|
7
13
|
};
|
|
8
14
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatecardexpiration.d.ts","sourceRoot":"","sources":["../../src/models/components/updatecardexpiration.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,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAIpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
1
|
+
{"version":3,"file":"updatecardexpiration.d.ts","sourceRoot":"","sources":["../../src/models/components/updatecardexpiration.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,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAIpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatecardexpiration.js","sourceRoot":"","sources":["../../src/models/components/updatecardexpiration.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"updatecardexpiration.js","sourceRoot":"","sources":["../../src/models/components/updatecardexpiration.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CH,gEAMC;AACD,oEAQC;AAxDD,0CAA4B;AAC5B,qDAAiD;AAejD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AACD,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "v2026.04.00",
|
|
71
|
-
sdkVersion: "26.4.0-dev.
|
|
72
|
-
genVersion: "2.
|
|
71
|
+
sdkVersion: "26.4.0-dev.15",
|
|
72
|
+
genVersion: "2.866.0",
|
|
73
73
|
userAgent:
|
|
74
|
-
"speakeasy-sdk/typescript 26.4.0-dev.
|
|
74
|
+
"speakeasy-sdk/typescript 26.4.0-dev.15 2.866.0 v2026.04.00 @moovio/sdk",
|
|
75
75
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -16,9 +16,21 @@ import {
|
|
|
16
16
|
* The results of submitting cardholder name to a card network for verification.
|
|
17
17
|
*/
|
|
18
18
|
export type AccountNameVerification = {
|
|
19
|
+
/**
|
|
20
|
+
* Verification result of the cardholder's first name.
|
|
21
|
+
*/
|
|
19
22
|
firstName?: CardVerificationResult | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Verification result of the cardholder's last name.
|
|
25
|
+
*/
|
|
20
26
|
lastName?: CardVerificationResult | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Verification result of the cardholder's middle name.
|
|
29
|
+
*/
|
|
21
30
|
middleName?: CardVerificationResult | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Verification result of the cardholder's full name.
|
|
33
|
+
*/
|
|
22
34
|
fullName?: CardVerificationResult | undefined;
|
|
23
35
|
};
|
|
24
36
|
|
|
@@ -104,6 +104,9 @@ export type Card = {
|
|
|
104
104
|
* The name of the cardholder as it appears on the card.
|
|
105
105
|
*/
|
|
106
106
|
holderName?: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* The billing address associated with the card.
|
|
109
|
+
*/
|
|
107
110
|
billingAddress: CardAddress;
|
|
108
111
|
/**
|
|
109
112
|
* The results of submitting cardholder data to a card network for verification.
|
|
@@ -143,6 +146,12 @@ export type Card = {
|
|
|
143
146
|
* Indicates cardholder has authorized card to be stored for future payments.
|
|
144
147
|
*/
|
|
145
148
|
cardOnFile?: boolean | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Merchant account whose details (statement descriptor, address, etc.) are used for the card verification authorization.
|
|
151
|
+
*
|
|
152
|
+
* @remarks
|
|
153
|
+
* If omitted, the partner account's details are used instead.
|
|
154
|
+
*/
|
|
146
155
|
merchantAccountID?: string | undefined;
|
|
147
156
|
/**
|
|
148
157
|
* The results of the most recent card update request.
|
|
@@ -16,6 +16,9 @@ import {
|
|
|
16
16
|
* The results of the most recent card update request.
|
|
17
17
|
*/
|
|
18
18
|
export type CardAccountUpdater = {
|
|
19
|
+
/**
|
|
20
|
+
* Timestamp from the card network indicating when the card update was processed.
|
|
21
|
+
*/
|
|
19
22
|
updatedOn?: Date | undefined;
|
|
20
23
|
/**
|
|
21
24
|
* The results of the card update request.
|
|
@@ -8,11 +8,29 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type CardAddress = {
|
|
11
|
+
/**
|
|
12
|
+
* Street address line 1.
|
|
13
|
+
*/
|
|
11
14
|
addressLine1?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Street address line 2 (e.g., apartment or suite number).
|
|
17
|
+
*/
|
|
12
18
|
addressLine2?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* City name.
|
|
21
|
+
*/
|
|
13
22
|
city?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Two-letter state or province code.
|
|
25
|
+
*/
|
|
14
26
|
stateOrProvince?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Postal or ZIP code.
|
|
29
|
+
*/
|
|
15
30
|
postalCode: string;
|
|
31
|
+
/**
|
|
32
|
+
* Two-letter ISO 3166-1 country code.
|
|
33
|
+
*/
|
|
16
34
|
country?: string | undefined;
|
|
17
35
|
};
|
|
18
36
|
|
|
@@ -11,7 +11,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
* The expiration date of the card or token.
|
|
12
12
|
*/
|
|
13
13
|
export type CardExpiration = {
|
|
14
|
+
/**
|
|
15
|
+
* Two-digit month the card expires.
|
|
16
|
+
*/
|
|
14
17
|
month: string;
|
|
18
|
+
/**
|
|
19
|
+
* Two-digit year the card expires.
|
|
20
|
+
*/
|
|
15
21
|
year: string;
|
|
16
22
|
};
|
|
17
23
|
|
|
@@ -22,11 +22,26 @@ import {
|
|
|
22
22
|
* The results of submitting cardholder data to a card network for verification.
|
|
23
23
|
*/
|
|
24
24
|
export type CardVerification = {
|
|
25
|
+
/**
|
|
26
|
+
* Verification result of the card's CVV.
|
|
27
|
+
*/
|
|
25
28
|
cvv: CardVerificationResult;
|
|
29
|
+
/**
|
|
30
|
+
* Verification result of the billing address line 1.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Derived from the same AVS code as `postalCode`; the card network returns a single code covering both address fields.
|
|
34
|
+
*/
|
|
26
35
|
addressLine1: CardVerificationResult;
|
|
36
|
+
/**
|
|
37
|
+
* Verification result of the billing address postal code.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Derived from the same AVS code as `addressLine1`; the card network returns a single code covering both address fields.
|
|
41
|
+
*/
|
|
27
42
|
postalCode: CardVerificationResult;
|
|
28
43
|
/**
|
|
29
|
-
*
|
|
44
|
+
* Verification results of the cardholder's name, broken down by name component.
|
|
30
45
|
*/
|
|
31
46
|
accountName?: AccountNameVerification | undefined;
|
|
32
47
|
};
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* The result of a card verification check.
|
|
10
|
+
*/
|
|
8
11
|
export const CardVerificationResult = {
|
|
9
12
|
NoMatch: "noMatch",
|
|
10
13
|
Match: "match",
|
|
@@ -12,6 +15,9 @@ export const CardVerificationResult = {
|
|
|
12
15
|
Unavailable: "unavailable",
|
|
13
16
|
PartialMatch: "partialMatch",
|
|
14
17
|
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* The result of a card verification check.
|
|
20
|
+
*/
|
|
15
21
|
export type CardVerificationResult = ClosedEnum<typeof CardVerificationResult>;
|
|
16
22
|
|
|
17
23
|
/** @internal */
|
|
@@ -34,16 +34,46 @@ export type LinkCard = {
|
|
|
34
34
|
* [GitHub repository](https://github.com/moovfinancial/moov-go/blob/main/examples/e2ee/e2ee_test.go).
|
|
35
35
|
*/
|
|
36
36
|
e2ee?: E2EEToken | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The full card number (PAN).
|
|
39
|
+
*/
|
|
37
40
|
cardNumber: string;
|
|
41
|
+
/**
|
|
42
|
+
* The card's 3- or 4-digit card verification value.
|
|
43
|
+
*/
|
|
38
44
|
cardCvv: string;
|
|
39
45
|
/**
|
|
40
46
|
* The expiration date of the card or token.
|
|
41
47
|
*/
|
|
42
48
|
expiration: CardExpiration;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the cardholder as it appears on the card.
|
|
51
|
+
*/
|
|
43
52
|
holderName?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The billing address associated with the card.
|
|
55
|
+
*/
|
|
44
56
|
billingAddress: CardAddress;
|
|
57
|
+
/**
|
|
58
|
+
* Indicates cardholder has authorized card to be stored for future payments. (e.g., recurring payments).
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* If true and no `merchantAccountID` is provided, the partner account's ID is used as the merchant account for verification.
|
|
62
|
+
*/
|
|
45
63
|
cardOnFile?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Merchant account whose details (statement descriptor, address, etc.) are used for the card verification authorization.
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
* If omitted, the partner account's details are used instead.
|
|
69
|
+
*/
|
|
46
70
|
merchantAccountID?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* If true, submits the cardholder's name to the card network for verification as part of the $0 authorization.
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* Only supported for Visa and Mastercard; requesting name verification for American Express or Discover will return an error.
|
|
76
|
+
*/
|
|
47
77
|
verifyName?: boolean | undefined;
|
|
48
78
|
};
|
|
49
79
|
|
|
@@ -91,6 +91,9 @@ export type PaymentMethodsCard = {
|
|
|
91
91
|
* The name of the cardholder as it appears on the card.
|
|
92
92
|
*/
|
|
93
93
|
holderName?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* The billing address associated with the card.
|
|
96
|
+
*/
|
|
94
97
|
billingAddress: CardAddress;
|
|
95
98
|
/**
|
|
96
99
|
* The results of submitting cardholder data to a card network for verification.
|
|
@@ -108,6 +111,12 @@ export type PaymentMethodsCard = {
|
|
|
108
111
|
* Indicates cardholder has authorized card to be stored for future payments.
|
|
109
112
|
*/
|
|
110
113
|
cardOnFile?: boolean | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Merchant account whose details (statement descriptor, address, etc.) are used for the card verification authorization.
|
|
116
|
+
*
|
|
117
|
+
* @remarks
|
|
118
|
+
* If omitted, the partner account's details are used instead.
|
|
119
|
+
*/
|
|
111
120
|
merchantAccountID?: string | undefined;
|
|
112
121
|
/**
|
|
113
122
|
* The results of the most recent card update request.
|
|
@@ -91,6 +91,9 @@ export type TransferPaymentMethodsCard = {
|
|
|
91
91
|
* The name of the cardholder as it appears on the card.
|
|
92
92
|
*/
|
|
93
93
|
holderName?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* The billing address associated with the card.
|
|
96
|
+
*/
|
|
94
97
|
billingAddress: CardAddress;
|
|
95
98
|
/**
|
|
96
99
|
* The results of submitting cardholder data to a card network for verification.
|
|
@@ -108,6 +111,12 @@ export type TransferPaymentMethodsCard = {
|
|
|
108
111
|
* Indicates cardholder has authorized card to be stored for future payments.
|
|
109
112
|
*/
|
|
110
113
|
cardOnFile?: boolean | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Merchant account whose details (statement descriptor, address, etc.) are used for the card verification authorization.
|
|
116
|
+
*
|
|
117
|
+
* @remarks
|
|
118
|
+
* If omitted, the partner account's details are used instead.
|
|
119
|
+
*/
|
|
111
120
|
merchantAccountID?: string | undefined;
|
|
112
121
|
/**
|
|
113
122
|
* The results of the most recent card update request.
|
|
@@ -34,12 +34,39 @@ export type UpdateCard = {
|
|
|
34
34
|
* [GitHub repository](https://github.com/moovfinancial/moov-go/blob/main/examples/e2ee/e2ee_test.go).
|
|
35
35
|
*/
|
|
36
36
|
e2ee?: E2EETokenUpdate | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Updated billing address to store on file for the card.
|
|
39
|
+
*/
|
|
37
40
|
billingAddress?: UpdateCardAddress | undefined;
|
|
38
41
|
expiration?: UpdateCardExpiration | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The card's 3- or 4-digit card verification value. Providing this triggers a new $0 verification authorization, which performs both CVV and address verification.
|
|
44
|
+
*/
|
|
39
45
|
cardCvv?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Indicates cardholder has authorized card to be stored for future payments (e.g., recurring payments).
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* If true and no `merchantAccountID` is provided, the partner account's ID is automatically used as the merchant account for verification.
|
|
51
|
+
*/
|
|
40
52
|
cardOnFile?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Merchant account whose details (statement descriptor, address, etc.) are used for the card verification authorization.
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* If omitted, the partner account's details are used instead.
|
|
58
|
+
*/
|
|
41
59
|
merchantAccountID?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* If true, submits the cardholder's name to the card network for verification as part of the $0 authorization.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* Only supported for Visa and Mastercard; requesting name verification for American Express or Discover will return an error.
|
|
65
|
+
*/
|
|
42
66
|
verifyName?: boolean | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Updated name of the cardholder as it appears on the card.
|
|
69
|
+
*/
|
|
43
70
|
holderName?: string | undefined;
|
|
44
71
|
};
|
|
45
72
|
|
|
@@ -8,11 +8,29 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type UpdateCardAddress = {
|
|
11
|
+
/**
|
|
12
|
+
* Street address line 1.
|
|
13
|
+
*/
|
|
11
14
|
addressLine1?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Street address line 2 (e.g., apartment or suite number).
|
|
17
|
+
*/
|
|
12
18
|
addressLine2?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* City name.
|
|
21
|
+
*/
|
|
13
22
|
city?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Two-letter state or province code.
|
|
25
|
+
*/
|
|
14
26
|
stateOrProvince?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Postal or ZIP code.
|
|
29
|
+
*/
|
|
15
30
|
postalCode?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Two-letter ISO 3166-1 country code.
|
|
33
|
+
*/
|
|
16
34
|
country?: string | undefined;
|
|
17
35
|
};
|
|
18
36
|
|
|
@@ -8,7 +8,13 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type UpdateCardExpiration = {
|
|
11
|
+
/**
|
|
12
|
+
* Two-digit month the card expires.
|
|
13
|
+
*/
|
|
11
14
|
month?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Two-digit year the card expires.
|
|
17
|
+
*/
|
|
12
18
|
year?: string | undefined;
|
|
13
19
|
};
|
|
14
20
|
|