@moovio/sdk 25.12.9 → 25.12.11

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.
Files changed (53) hide show
  1. package/bin/mcp-server.js +70 -16
  2. package/bin/mcp-server.js.map +14 -12
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.d.ts.map +1 -1
  6. package/lib/config.js +3 -3
  7. package/lib/config.js.map +1 -1
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/mcp-server.js.map +1 -1
  10. package/mcp-server/server.js +1 -1
  11. package/mcp-server/server.js.map +1 -1
  12. package/models/components/authtokenrequest.d.ts +6 -0
  13. package/models/components/authtokenrequest.d.ts.map +1 -1
  14. package/models/components/authtokenrequest.js +5 -0
  15. package/models/components/authtokenrequest.js.map +1 -1
  16. package/models/components/cardtransactionstatus.d.ts +1 -1
  17. package/models/components/cardtransactionstatus.js +1 -1
  18. package/models/components/cardtransactionstatus.js.map +1 -1
  19. package/models/components/index.d.ts +2 -0
  20. package/models/components/index.d.ts.map +1 -1
  21. package/models/components/index.js +2 -0
  22. package/models/components/index.js.map +1 -1
  23. package/models/components/issuedcardauthorization.d.ts +9 -0
  24. package/models/components/issuedcardauthorization.d.ts.map +1 -1
  25. package/models/components/issuedcardauthorization.js +3 -0
  26. package/models/components/issuedcardauthorization.js.map +1 -1
  27. package/models/components/issuedcardauthorizationevent.d.ts +9 -0
  28. package/models/components/issuedcardauthorizationevent.d.ts.map +1 -1
  29. package/models/components/issuedcardauthorizationevent.js +3 -0
  30. package/models/components/issuedcardauthorizationevent.js.map +1 -1
  31. package/models/components/issuingdeclinereason.d.ts +37 -0
  32. package/models/components/issuingdeclinereason.d.ts.map +1 -0
  33. package/models/components/issuingdeclinereason.js +68 -0
  34. package/models/components/issuingdeclinereason.js.map +1 -0
  35. package/models/components/oauth2clienttype.d.ts +22 -0
  36. package/models/components/oauth2clienttype.d.ts.map +1 -0
  37. package/models/components/oauth2clienttype.js +56 -0
  38. package/models/components/oauth2clienttype.js.map +1 -0
  39. package/models/components/refundcardstatus.d.ts +1 -1
  40. package/models/components/refundcardstatus.js +1 -1
  41. package/models/components/refundcardstatus.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/lib/config.ts +4 -3
  44. package/src/mcp-server/mcp-server.ts +1 -1
  45. package/src/mcp-server/server.ts +1 -1
  46. package/src/models/components/authtokenrequest.ts +14 -0
  47. package/src/models/components/cardtransactionstatus.ts +1 -1
  48. package/src/models/components/index.ts +2 -0
  49. package/src/models/components/issuedcardauthorization.ts +15 -0
  50. package/src/models/components/issuedcardauthorizationevent.ts +15 -0
  51. package/src/models/components/issuingdeclinereason.ts +46 -0
  52. package/src/models/components/oauth2clienttype.ts +31 -0
  53. package/src/models/components/refundcardstatus.ts +1 -1
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.IssuingDeclineReason$outboundSchema = exports.IssuingDeclineReason$inboundSchema = exports.IssuingDeclineReason = void 0;
40
+ const z = __importStar(require("zod/v3"));
41
+ /**
42
+ * The reason an authorization or authorization event was declined. Only present if the
43
+ *
44
+ * @remarks
45
+ * authorization or event has been declined.
46
+ */
47
+ exports.IssuingDeclineReason = {
48
+ InsufficientFunds: "insufficient-funds",
49
+ CardNotActive: "card-not-active",
50
+ CardExpiration: "card-expiration",
51
+ SpendCutoffReached: "spend-cutoff-reached",
52
+ OutsideAllowedSchedule: "outside-allowed-schedule",
53
+ SpendLimitExceeded: "spend-limit-exceeded",
54
+ MerchantCategoryNotSupported: "merchant-category-not-supported",
55
+ MerchantCategoryRestricted: "merchant-category-restricted",
56
+ MerchantRestricted: "merchant-restricted",
57
+ MerchantCountryNotSupported: "merchant-country-not-supported",
58
+ UnsupportedTransaction: "unsupported-transaction",
59
+ NetworkStandIn: "network-stand-in",
60
+ DeclinedByIssuer: "declined-by-issuer",
61
+ InvalidRequest: "invalid-request",
62
+ SystemError: "system-error",
63
+ };
64
+ /** @internal */
65
+ exports.IssuingDeclineReason$inboundSchema = z.nativeEnum(exports.IssuingDeclineReason);
66
+ /** @internal */
67
+ exports.IssuingDeclineReason$outboundSchema = exports.IssuingDeclineReason$inboundSchema;
68
+ //# sourceMappingURL=issuingdeclinereason.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issuingdeclinereason.js","sourceRoot":"","sources":["../../src/models/components/issuingdeclinereason.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;;;;GAKG;AACU,QAAA,oBAAoB,GAAG;IAClC,iBAAiB,EAAE,oBAAoB;IACvC,aAAa,EAAE,iBAAiB;IAChC,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,sBAAsB;IAC1C,sBAAsB,EAAE,0BAA0B;IAClD,kBAAkB,EAAE,sBAAsB;IAC1C,4BAA4B,EAAE,iCAAiC;IAC/D,0BAA0B,EAAE,8BAA8B;IAC1D,kBAAkB,EAAE,qBAAqB;IACzC,2BAA2B,EAAE,gCAAgC;IAC7D,sBAAsB,EAAE,yBAAyB;IACjD,cAAc,EAAE,kBAAkB;IAClC,gBAAgB,EAAE,oBAAoB;IACtC,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;CACnB,CAAC;AASX,gBAAgB;AACH,QAAA,kCAAkC,GAE3C,CAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AACvC,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,0CAAkC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ /**
4
+ * The type of client requesting an OAuth2 token. Short codes are accepted as aliases for the corresponding client types.
5
+ */
6
+ export declare const OAuth2ClientType: {
7
+ readonly Web: "web";
8
+ readonly Device: "device";
9
+ readonly Service: "service";
10
+ readonly W: "w";
11
+ readonly D: "d";
12
+ readonly S: "s";
13
+ };
14
+ /**
15
+ * The type of client requesting an OAuth2 token. Short codes are accepted as aliases for the corresponding client types.
16
+ */
17
+ export type OAuth2ClientType = ClosedEnum<typeof OAuth2ClientType>;
18
+ /** @internal */
19
+ export declare const OAuth2ClientType$inboundSchema: z.ZodNativeEnum<typeof OAuth2ClientType>;
20
+ /** @internal */
21
+ export declare const OAuth2ClientType$outboundSchema: z.ZodNativeEnum<typeof OAuth2ClientType>;
22
+ //# sourceMappingURL=oauth2clienttype.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth2clienttype.d.ts","sourceRoot":"","sources":["../../src/models/components/oauth2clienttype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;CAOnB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AACnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.OAuth2ClientType$outboundSchema = exports.OAuth2ClientType$inboundSchema = exports.OAuth2ClientType = void 0;
40
+ const z = __importStar(require("zod/v3"));
41
+ /**
42
+ * The type of client requesting an OAuth2 token. Short codes are accepted as aliases for the corresponding client types.
43
+ */
44
+ exports.OAuth2ClientType = {
45
+ Web: "web",
46
+ Device: "device",
47
+ Service: "service",
48
+ W: "w",
49
+ D: "d",
50
+ S: "s",
51
+ };
52
+ /** @internal */
53
+ exports.OAuth2ClientType$inboundSchema = z.nativeEnum(exports.OAuth2ClientType);
54
+ /** @internal */
55
+ exports.OAuth2ClientType$outboundSchema = exports.OAuth2ClientType$inboundSchema;
56
+ //# sourceMappingURL=oauth2clienttype.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth2clienttype.js","sourceRoot":"","sources":["../../src/models/components/oauth2clienttype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;CACE,CAAC;AAMX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AACnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC"}
@@ -6,7 +6,7 @@ export declare const RefundCardStatus: {
6
6
  readonly Settled: "settled";
7
7
  readonly Failed: "failed";
8
8
  readonly Completed: "completed";
9
- readonly ClearedExternal: "cleared-external";
9
+ readonly ClearedExternally: "cleared-externally";
10
10
  };
11
11
  export type RefundCardStatus = ClosedEnum<typeof RefundCardStatus>;
12
12
  /** @internal */
@@ -44,7 +44,7 @@ exports.RefundCardStatus = {
44
44
  Settled: "settled",
45
45
  Failed: "failed",
46
46
  Completed: "completed",
47
- ClearedExternal: "cleared-external",
47
+ ClearedExternally: "cleared-externally",
48
48
  };
49
49
  /** @internal */
50
50
  exports.RefundCardStatus$inboundSchema = z.nativeEnum(exports.RefundCardStatus);
@@ -1 +1 @@
1
- {"version":3,"file":"refundcardstatus.js","sourceRoot":"","sources":["../../src/models/components/refundcardstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAGX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AACnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC"}
1
+ {"version":3,"file":"refundcardstatus.js","sourceRoot":"","sources":["../../src/models/components/refundcardstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,iBAAiB,EAAE,oBAAoB;CAC/B,CAAC;AAGX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AACnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moovio/sdk",
3
- "version": "25.12.9",
3
+ "version": "25.12.11",
4
4
  "author": "Moov",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
package/src/lib/config.ts CHANGED
@@ -73,7 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "v2025.10.00",
76
- sdkVersion: "25.12.9",
77
- genVersion: "2.935.1",
78
- userAgent: "speakeasy-sdk/typescript 25.12.9 2.935.1 v2025.10.00 @moovio/sdk",
76
+ sdkVersion: "25.12.11",
77
+ genVersion: "2.938.0",
78
+ userAgent:
79
+ "speakeasy-sdk/typescript 25.12.11 2.938.0 v2025.10.00 @moovio/sdk",
79
80
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "25.12.9",
22
+ currentVersion: "25.12.11",
23
23
  },
24
24
  });
25
25
 
@@ -198,7 +198,7 @@ export function createMCPServer(deps: {
198
198
  }) {
199
199
  const server = new McpServer({
200
200
  name: "Moov",
201
- version: "25.12.9",
201
+ version: "25.12.11",
202
202
  });
203
203
 
204
204
  const client = new MoovCore({
@@ -12,6 +12,11 @@ import {
12
12
  GrantType$inboundSchema,
13
13
  GrantType$outboundSchema,
14
14
  } from "./granttype.js";
15
+ import {
16
+ OAuth2ClientType,
17
+ OAuth2ClientType$inboundSchema,
18
+ OAuth2ClientType$outboundSchema,
19
+ } from "./oauth2clienttype.js";
15
20
 
16
21
  export type AuthTokenRequest = {
17
22
  /**
@@ -39,6 +44,10 @@ export type AuthTokenRequest = {
39
44
  * The refresh_token returned alongside the access token being refreshed. Required when `grant_type` is `refresh_token`.
40
45
  */
41
46
  refreshToken?: string | undefined;
47
+ /**
48
+ * The client type requesting a token. `device` and `service` clients do not require browser origin binding. Defaults to `web` when omitted. This field applies to the `client_credentials` grant; refreshed tokens keep the original client type.
49
+ */
50
+ clientType?: OAuth2ClientType | undefined;
42
51
  };
43
52
 
44
53
  /** @internal */
@@ -52,12 +61,14 @@ export const AuthTokenRequest$inboundSchema: z.ZodType<
52
61
  client_secret: z.string().optional(),
53
62
  scope: z.string().optional(),
54
63
  refresh_token: z.string().optional(),
64
+ client_type: OAuth2ClientType$inboundSchema.optional(),
55
65
  }).transform((v) => {
56
66
  return remap$(v, {
57
67
  "grant_type": "grantType",
58
68
  "client_id": "clientId",
59
69
  "client_secret": "clientSecret",
60
70
  "refresh_token": "refreshToken",
71
+ "client_type": "clientType",
61
72
  });
62
73
  });
63
74
  /** @internal */
@@ -67,6 +78,7 @@ export type AuthTokenRequest$Outbound = {
67
78
  client_secret?: string | undefined;
68
79
  scope?: string | undefined;
69
80
  refresh_token?: string | undefined;
81
+ client_type?: string | undefined;
70
82
  };
71
83
 
72
84
  /** @internal */
@@ -80,12 +92,14 @@ export const AuthTokenRequest$outboundSchema: z.ZodType<
80
92
  clientSecret: z.string().optional(),
81
93
  scope: z.string().optional(),
82
94
  refreshToken: z.string().optional(),
95
+ clientType: OAuth2ClientType$outboundSchema.optional(),
83
96
  }).transform((v) => {
84
97
  return remap$(v, {
85
98
  grantType: "grant_type",
86
99
  clientId: "client_id",
87
100
  clientSecret: "client_secret",
88
101
  refreshToken: "refresh_token",
102
+ clientType: "client_type",
89
103
  });
90
104
  });
91
105
 
@@ -15,7 +15,7 @@ export const CardTransactionStatus = {
15
15
  Settled: "settled",
16
16
  Failed: "failed",
17
17
  Completed: "completed",
18
- ClearedExternal: "cleared-external",
18
+ ClearedExternally: "cleared-externally",
19
19
  } as const;
20
20
  /**
21
21
  * Status of a transaction within the card payment lifecycle.
@@ -275,6 +275,7 @@ export * from "./issuedcardtransaction.js";
275
275
  export * from "./issuingauthorizationstatus.js";
276
276
  export * from "./issuingcontrols.js";
277
277
  export * from "./issuingcontrolserror.js";
278
+ export * from "./issuingdeclinereason.js";
278
279
  export * from "./issuingintervallimit.js";
279
280
  export * from "./issuingmerchantdata.js";
280
281
  export * from "./issuingvelocitylimit.js";
@@ -310,6 +311,7 @@ export * from "./moovwalletpaymentmethod.js";
310
311
  export * from "./moovwallettransferpaymentmethod.js";
311
312
  export * from "./mxauthorizationcode.js";
312
313
  export * from "./mxpayload.js";
314
+ export * from "./oauth2clienttype.js";
313
315
  export * from "./occurrence.js";
314
316
  export * from "./occurrencesresponse.js";
315
317
  export * from "./occurrencestatus.js";
@@ -16,6 +16,11 @@ import {
16
16
  IssuingAuthorizationStatus$inboundSchema,
17
17
  IssuingAuthorizationStatus$outboundSchema,
18
18
  } from "./issuingauthorizationstatus.js";
19
+ import {
20
+ IssuingDeclineReason,
21
+ IssuingDeclineReason$inboundSchema,
22
+ IssuingDeclineReason$outboundSchema,
23
+ } from "./issuingdeclinereason.js";
19
24
  import {
20
25
  IssuingMerchantData,
21
26
  IssuingMerchantData$inboundSchema,
@@ -49,6 +54,13 @@ export type IssuedCardAuthorization = {
49
54
  * List of card transaction IDs associated with this authorization.
50
55
  */
51
56
  cardTransactions?: Array<string> | undefined;
57
+ /**
58
+ * The reason an authorization or authorization event was declined. Only present if the
59
+ *
60
+ * @remarks
61
+ * authorization or event has been declined.
62
+ */
63
+ declineReason?: IssuingDeclineReason | undefined;
52
64
  };
53
65
 
54
66
  /** @internal */
@@ -67,6 +79,7 @@ export const IssuedCardAuthorization$inboundSchema: z.ZodType<
67
79
  merchantData: IssuingMerchantData$inboundSchema,
68
80
  createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
69
81
  cardTransactions: z.array(z.string()).optional(),
82
+ declineReason: IssuingDeclineReason$inboundSchema.optional(),
70
83
  });
71
84
  /** @internal */
72
85
  export type IssuedCardAuthorization$Outbound = {
@@ -80,6 +93,7 @@ export type IssuedCardAuthorization$Outbound = {
80
93
  merchantData: IssuingMerchantData$Outbound;
81
94
  createdOn: string;
82
95
  cardTransactions?: Array<string> | undefined;
96
+ declineReason?: string | undefined;
83
97
  };
84
98
 
85
99
  /** @internal */
@@ -98,6 +112,7 @@ export const IssuedCardAuthorization$outboundSchema: z.ZodType<
98
112
  merchantData: IssuingMerchantData$outboundSchema,
99
113
  createdOn: z.date().transform(v => v.toISOString()),
100
114
  cardTransactions: z.array(z.string()).optional(),
115
+ declineReason: IssuingDeclineReason$outboundSchema.optional(),
101
116
  });
102
117
 
103
118
  export function issuedCardAuthorizationToJSON(
@@ -16,6 +16,11 @@ import {
16
16
  IssuedCardEventType$inboundSchema,
17
17
  IssuedCardEventType$outboundSchema,
18
18
  } from "./issuedcardeventtype.js";
19
+ import {
20
+ IssuingDeclineReason,
21
+ IssuingDeclineReason$inboundSchema,
22
+ IssuingDeclineReason$outboundSchema,
23
+ } from "./issuingdeclinereason.js";
19
24
 
20
25
  export type IssuedCardAuthorizationEvent = {
21
26
  /**
@@ -35,6 +40,13 @@ export type IssuedCardAuthorizationEvent = {
35
40
  */
36
41
  result: IssuedCardAuthorizationEventResult;
37
42
  createdOn: Date;
43
+ /**
44
+ * The reason an authorization or authorization event was declined. Only present if the
45
+ *
46
+ * @remarks
47
+ * authorization or event has been declined.
48
+ */
49
+ declineReason?: IssuingDeclineReason | undefined;
38
50
  };
39
51
 
40
52
  /** @internal */
@@ -48,6 +60,7 @@ export const IssuedCardAuthorizationEvent$inboundSchema: z.ZodType<
48
60
  amount: z.string(),
49
61
  result: IssuedCardAuthorizationEventResult$inboundSchema,
50
62
  createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
63
+ declineReason: IssuingDeclineReason$inboundSchema.optional(),
51
64
  });
52
65
  /** @internal */
53
66
  export type IssuedCardAuthorizationEvent$Outbound = {
@@ -56,6 +69,7 @@ export type IssuedCardAuthorizationEvent$Outbound = {
56
69
  amount: string;
57
70
  result: string;
58
71
  createdOn: string;
72
+ declineReason?: string | undefined;
59
73
  };
60
74
 
61
75
  /** @internal */
@@ -69,6 +83,7 @@ export const IssuedCardAuthorizationEvent$outboundSchema: z.ZodType<
69
83
  amount: z.string(),
70
84
  result: IssuedCardAuthorizationEventResult$outboundSchema,
71
85
  createdOn: z.date().transform(v => v.toISOString()),
86
+ declineReason: IssuingDeclineReason$outboundSchema.optional(),
72
87
  });
73
88
 
74
89
  export function issuedCardAuthorizationEventToJSON(
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * The reason an authorization or authorization event was declined. Only present if the
10
+ *
11
+ * @remarks
12
+ * authorization or event has been declined.
13
+ */
14
+ export const IssuingDeclineReason = {
15
+ InsufficientFunds: "insufficient-funds",
16
+ CardNotActive: "card-not-active",
17
+ CardExpiration: "card-expiration",
18
+ SpendCutoffReached: "spend-cutoff-reached",
19
+ OutsideAllowedSchedule: "outside-allowed-schedule",
20
+ SpendLimitExceeded: "spend-limit-exceeded",
21
+ MerchantCategoryNotSupported: "merchant-category-not-supported",
22
+ MerchantCategoryRestricted: "merchant-category-restricted",
23
+ MerchantRestricted: "merchant-restricted",
24
+ MerchantCountryNotSupported: "merchant-country-not-supported",
25
+ UnsupportedTransaction: "unsupported-transaction",
26
+ NetworkStandIn: "network-stand-in",
27
+ DeclinedByIssuer: "declined-by-issuer",
28
+ InvalidRequest: "invalid-request",
29
+ SystemError: "system-error",
30
+ } as const;
31
+ /**
32
+ * The reason an authorization or authorization event was declined. Only present if the
33
+ *
34
+ * @remarks
35
+ * authorization or event has been declined.
36
+ */
37
+ export type IssuingDeclineReason = ClosedEnum<typeof IssuingDeclineReason>;
38
+
39
+ /** @internal */
40
+ export const IssuingDeclineReason$inboundSchema: z.ZodNativeEnum<
41
+ typeof IssuingDeclineReason
42
+ > = z.nativeEnum(IssuingDeclineReason);
43
+ /** @internal */
44
+ export const IssuingDeclineReason$outboundSchema: z.ZodNativeEnum<
45
+ typeof IssuingDeclineReason
46
+ > = IssuingDeclineReason$inboundSchema;
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * The type of client requesting an OAuth2 token. Short codes are accepted as aliases for the corresponding client types.
10
+ */
11
+ export const OAuth2ClientType = {
12
+ Web: "web",
13
+ Device: "device",
14
+ Service: "service",
15
+ W: "w",
16
+ D: "d",
17
+ S: "s",
18
+ } as const;
19
+ /**
20
+ * The type of client requesting an OAuth2 token. Short codes are accepted as aliases for the corresponding client types.
21
+ */
22
+ export type OAuth2ClientType = ClosedEnum<typeof OAuth2ClientType>;
23
+
24
+ /** @internal */
25
+ export const OAuth2ClientType$inboundSchema: z.ZodNativeEnum<
26
+ typeof OAuth2ClientType
27
+ > = z.nativeEnum(OAuth2ClientType);
28
+ /** @internal */
29
+ export const OAuth2ClientType$outboundSchema: z.ZodNativeEnum<
30
+ typeof OAuth2ClientType
31
+ > = OAuth2ClientType$inboundSchema;
@@ -11,7 +11,7 @@ export const RefundCardStatus = {
11
11
  Settled: "settled",
12
12
  Failed: "failed",
13
13
  Completed: "completed",
14
- ClearedExternal: "cleared-external",
14
+ ClearedExternally: "cleared-externally",
15
15
  } as const;
16
16
  export type RefundCardStatus = ClosedEnum<typeof RefundCardStatus>;
17
17