@moovio/sdk 26.4.2 → 26.4.4

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 (37) hide show
  1. package/bin/mcp-server.js +59 -35
  2. package/bin/mcp-server.js.map +11 -10
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/config.js.map +1 -1
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/collectionpaymentmethodtype.d.ts +1 -0
  10. package/models/components/collectionpaymentmethodtype.d.ts.map +1 -1
  11. package/models/components/collectionpaymentmethodtype.js +1 -0
  12. package/models/components/collectionpaymentmethodtype.js.map +1 -1
  13. package/models/components/googlepayresponse.d.ts +45 -3
  14. package/models/components/googlepayresponse.d.ts.map +1 -1
  15. package/models/components/googlepayresponse.js +24 -3
  16. package/models/components/googlepayresponse.js.map +1 -1
  17. package/models/components/index.d.ts +1 -0
  18. package/models/components/index.d.ts.map +1 -1
  19. package/models/components/index.js +1 -0
  20. package/models/components/index.js.map +1 -1
  21. package/models/components/rtptransactiondetails.d.ts +45 -0
  22. package/models/components/rtptransactiondetails.d.ts.map +1 -0
  23. package/models/components/rtptransactiondetails.js +75 -0
  24. package/models/components/rtptransactiondetails.js.map +1 -0
  25. package/models/components/transferdestination.d.ts +5 -43
  26. package/models/components/transferdestination.d.ts.map +1 -1
  27. package/models/components/transferdestination.js +4 -36
  28. package/models/components/transferdestination.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/lib/config.ts +3 -3
  31. package/src/mcp-server/mcp-server.ts +1 -1
  32. package/src/mcp-server/server.ts +1 -1
  33. package/src/models/components/collectionpaymentmethodtype.ts +1 -0
  34. package/src/models/components/googlepayresponse.ts +63 -5
  35. package/src/models/components/index.ts +1 -0
  36. package/src/models/components/rtptransactiondetails.ts +104 -0
  37. package/src/models/components/transferdestination.ts +11 -95
@@ -36,9 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.TransferDestination$outboundSchema = exports.TransferDestination$inboundSchema = exports.RtpDetails$outboundSchema = exports.RtpDetails$inboundSchema = void 0;
40
- exports.rtpDetailsToJSON = rtpDetailsToJSON;
41
- exports.rtpDetailsFromJSON = rtpDetailsFromJSON;
39
+ exports.TransferDestination$outboundSchema = exports.TransferDestination$inboundSchema = void 0;
42
40
  exports.transferDestinationToJSON = transferDestinationToJSON;
43
41
  exports.transferDestinationFromJSON = transferDestinationFromJSON;
44
42
  const z = __importStar(require("zod/v3"));
@@ -48,43 +46,13 @@ const applepayresponse_js_1 = require("./applepayresponse.js");
48
46
  const cardtransactiondetails_js_1 = require("./cardtransactiondetails.js");
49
47
  const googlepayresponse_js_1 = require("./googlepayresponse.js");
50
48
  const instantbanktransactiondetails_js_1 = require("./instantbanktransactiondetails.js");
51
- const rtpfailurecode_js_1 = require("./rtpfailurecode.js");
52
- const rtptransactionstatus_js_1 = require("./rtptransactionstatus.js");
49
+ const rtptransactiondetails_js_1 = require("./rtptransactiondetails.js");
53
50
  const transferaccount_js_1 = require("./transferaccount.js");
54
51
  const transferpaymentmethodsbankaccount_js_1 = require("./transferpaymentmethodsbankaccount.js");
55
52
  const transferpaymentmethodscard_js_1 = require("./transferpaymentmethodscard.js");
56
53
  const transferpaymentmethodswallet_js_1 = require("./transferpaymentmethodswallet.js");
57
54
  const transferpaymentmethodtype_js_1 = require("./transferpaymentmethodtype.js");
58
55
  /** @internal */
59
- exports.RtpDetails$inboundSchema = z.object({
60
- status: rtptransactionstatus_js_1.RTPTransactionStatus$inboundSchema.optional(),
61
- networkResponseCode: z.string().optional(),
62
- failureCode: rtpfailurecode_js_1.RTPFailureCode$inboundSchema.optional(),
63
- initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
64
- .optional(),
65
- completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
66
- .optional(),
67
- failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
68
- .optional(),
69
- acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
70
- });
71
- /** @internal */
72
- exports.RtpDetails$outboundSchema = z.object({
73
- status: rtptransactionstatus_js_1.RTPTransactionStatus$outboundSchema.optional(),
74
- networkResponseCode: z.string().optional(),
75
- failureCode: rtpfailurecode_js_1.RTPFailureCode$outboundSchema.optional(),
76
- initiatedOn: z.date().transform(v => v.toISOString()).optional(),
77
- completedOn: z.date().transform(v => v.toISOString()).optional(),
78
- failedOn: z.date().transform(v => v.toISOString()).optional(),
79
- acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
80
- });
81
- function rtpDetailsToJSON(rtpDetails) {
82
- return JSON.stringify(exports.RtpDetails$outboundSchema.parse(rtpDetails));
83
- }
84
- function rtpDetailsFromJSON(jsonString) {
85
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RtpDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RtpDetails' from JSON`);
86
- }
87
- /** @internal */
88
56
  exports.TransferDestination$inboundSchema = z.object({
89
57
  paymentMethodID: z.string(),
90
58
  paymentMethodType: transferpaymentmethodtype_js_1.TransferPaymentMethodType$inboundSchema,
@@ -96,7 +64,7 @@ exports.TransferDestination$inboundSchema = z.object({
96
64
  applePay: applepayresponse_js_1.ApplePayResponse$inboundSchema.optional(),
97
65
  googlePay: googlepayresponse_js_1.GooglePayResponse$inboundSchema.optional(),
98
66
  cardDetails: cardtransactiondetails_js_1.CardTransactionDetails$inboundSchema.optional(),
99
- rtpDetails: z.lazy(() => exports.RtpDetails$inboundSchema).optional(),
67
+ rtpDetails: rtptransactiondetails_js_1.RTPTransactionDetails$inboundSchema.optional(),
100
68
  instantBankDetails: instantbanktransactiondetails_js_1.InstantBankTransactionDetails$inboundSchema.optional(),
101
69
  });
102
70
  /** @internal */
@@ -111,7 +79,7 @@ exports.TransferDestination$outboundSchema = z.object({
111
79
  applePay: applepayresponse_js_1.ApplePayResponse$outboundSchema.optional(),
112
80
  googlePay: googlepayresponse_js_1.GooglePayResponse$outboundSchema.optional(),
113
81
  cardDetails: cardtransactiondetails_js_1.CardTransactionDetails$outboundSchema.optional(),
114
- rtpDetails: z.lazy(() => exports.RtpDetails$outboundSchema).optional(),
82
+ rtpDetails: rtptransactiondetails_js_1.RTPTransactionDetails$outboundSchema.optional(),
115
83
  instantBankDetails: instantbanktransactiondetails_js_1.InstantBankTransactionDetails$outboundSchema.optional(),
116
84
  });
117
85
  function transferDestinationToJSON(transferDestination) {
@@ -1 +1 @@
1
- {"version":3,"file":"transferdestination.js","sourceRoot":"","sources":["../../src/models/components/transferdestination.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2LH,4CAEC;AACD,gDAQC;AAyDD,8DAMC;AACD,kEAQC;AA5QD,0CAA4B;AAC5B,qDAAiD;AAGjD,yEAKoC;AACpC,+DAK+B;AAC/B,2EAKqC;AACrC,iEAKgC;AAChC,yFAK4C;AAC5C,2DAI6B;AAC7B,uEAImC;AACnC,6DAK8B;AAC9B,iGAKgD;AAChD,mFAKyC;AACzC,uFAK2C;AAC3C,iFAIwC;AAoExC,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,4DAAkC,CAAC,QAAQ,EAAE;IACrD,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,gDAA4B,CAAC,QAAQ,EAAE;IACpD,WAAW,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;SAC3E,QAAQ,EAAE;IACb,WAAW,EAAE,CAAC,CAAC,MA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gB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AACD,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moovio/sdk",
3
- "version": "26.4.2",
3
+ "version": "26.4.4",
4
4
  "author": "Moov",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
package/src/lib/config.ts CHANGED
@@ -68,7 +68,7 @@ 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.2",
72
- genVersion: "2.881.17",
73
- userAgent: "speakeasy-sdk/typescript 26.4.2 2.881.17 v2026.04.00 @moovio/sdk",
71
+ sdkVersion: "26.4.4",
72
+ genVersion: "2.882.0",
73
+ userAgent: "speakeasy-sdk/typescript 26.4.4 2.882.0 v2026.04.00 @moovio/sdk",
74
74
  } 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: "26.4.2",
22
+ currentVersion: "26.4.4",
23
23
  },
24
24
  });
25
25
 
@@ -211,7 +211,7 @@ export function createMCPServer(deps: {
211
211
  }) {
212
212
  const server = new McpServer({
213
213
  name: "Moov",
214
- version: "26.4.2",
214
+ version: "26.4.4",
215
215
  });
216
216
 
217
217
  const client = new MoovCore({
@@ -12,6 +12,7 @@ export const CollectionPaymentMethodType = {
12
12
  ApplePay: "apple-pay",
13
13
  CardPayment: "card-payment",
14
14
  AchDebitCollect: "ach-debit-collect",
15
+ GooglePay: "google-pay",
15
16
  } as const;
16
17
  /**
17
18
  * Payment methods allowed for collecting a payment.
@@ -4,6 +4,7 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
7
8
  import { Result as SafeParseResult } from "../../types/fp.js";
8
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
10
  import {
@@ -17,19 +18,49 @@ import {
17
18
  CardExpiration$Outbound,
18
19
  CardExpiration$outboundSchema,
19
20
  } from "./cardexpiration.js";
21
+ import {
22
+ CardType,
23
+ CardType$inboundSchema,
24
+ CardType$outboundSchema,
25
+ } from "./cardtype.js";
26
+
27
+ /**
28
+ * The authentication method used for the Google Pay token.
29
+ */
30
+ export const AuthMethod = {
31
+ PanOnly: "PAN_ONLY",
32
+ Cryptogram3Ds: "CRYPTOGRAM_3DS",
33
+ } as const;
34
+ /**
35
+ * The authentication method used for the Google Pay token.
36
+ */
37
+ export type AuthMethod = ClosedEnum<typeof AuthMethod>;
20
38
 
21
39
  /**
22
40
  * Describes a Google Pay token on a Moov account.
23
41
  */
24
42
  export type GooglePayResponse = {
43
+ /**
44
+ * The unique identifier of the Google Pay token.
45
+ */
46
+ tokenID: string;
25
47
  /**
26
48
  * The card brand.
27
49
  */
28
50
  brand: CardBrand;
29
51
  /**
30
- * The last four digits of the underlying card number.
52
+ * The type of the card.
53
+ */
54
+ cardType: CardType;
55
+ /**
56
+ * User-friendly name of the tokenized card returned by Google Pay.
57
+ *
58
+ * @remarks
59
+ *
60
+ * It usually contains the last four digits of the underlying card.
61
+ * There is no standard format.
31
62
  */
32
- cardDetails: string;
63
+ cardDisplayName: string;
33
64
  /**
34
65
  * Uniquely identifies a linked payment card or token.
35
66
  *
@@ -42,31 +73,54 @@ export type GooglePayResponse = {
42
73
  * The expiration date of the card or token.
43
74
  */
44
75
  expiration: CardExpiration;
76
+ /**
77
+ * The last four digits of the Google Pay token, which may differ from the tokenized card's last four digits.
78
+ */
79
+ dynamicLastFour: string;
45
80
  /**
46
81
  * Country where the underlying card was issued.
47
82
  */
48
83
  issuerCountry?: string | undefined;
84
+ /**
85
+ * The authentication method used for the Google Pay token.
86
+ */
87
+ authMethod?: AuthMethod | undefined;
49
88
  };
50
89
 
90
+ /** @internal */
91
+ export const AuthMethod$inboundSchema: z.ZodNativeEnum<typeof AuthMethod> = z
92
+ .nativeEnum(AuthMethod);
93
+ /** @internal */
94
+ export const AuthMethod$outboundSchema: z.ZodNativeEnum<typeof AuthMethod> =
95
+ AuthMethod$inboundSchema;
96
+
51
97
  /** @internal */
52
98
  export const GooglePayResponse$inboundSchema: z.ZodType<
53
99
  GooglePayResponse,
54
100
  z.ZodTypeDef,
55
101
  unknown
56
102
  > = z.object({
103
+ tokenID: z.string(),
57
104
  brand: CardBrand$inboundSchema,
58
- cardDetails: z.string(),
105
+ cardType: CardType$inboundSchema,
106
+ cardDisplayName: z.string(),
59
107
  fingerprint: z.string(),
60
108
  expiration: CardExpiration$inboundSchema,
109
+ dynamicLastFour: z.string(),
61
110
  issuerCountry: z.string().optional(),
111
+ authMethod: AuthMethod$inboundSchema.optional(),
62
112
  });
63
113
  /** @internal */
64
114
  export type GooglePayResponse$Outbound = {
115
+ tokenID: string;
65
116
  brand: string;
66
- cardDetails: string;
117
+ cardType: string;
118
+ cardDisplayName: string;
67
119
  fingerprint: string;
68
120
  expiration: CardExpiration$Outbound;
121
+ dynamicLastFour: string;
69
122
  issuerCountry?: string | undefined;
123
+ authMethod?: string | undefined;
70
124
  };
71
125
 
72
126
  /** @internal */
@@ -75,11 +129,15 @@ export const GooglePayResponse$outboundSchema: z.ZodType<
75
129
  z.ZodTypeDef,
76
130
  GooglePayResponse
77
131
  > = z.object({
132
+ tokenID: z.string(),
78
133
  brand: CardBrand$outboundSchema,
79
- cardDetails: z.string(),
134
+ cardType: CardType$outboundSchema,
135
+ cardDisplayName: z.string(),
80
136
  fingerprint: z.string(),
81
137
  expiration: CardExpiration$outboundSchema,
138
+ dynamicLastFour: z.string(),
82
139
  issuerCountry: z.string().optional(),
140
+ authMethod: AuthMethod$outboundSchema.optional(),
83
141
  });
84
142
 
85
143
  export function googlePayResponseToJSON(
@@ -457,6 +457,7 @@ export * from "./rtpfailurecode.js";
457
457
  export * from "./rtpinstitution.js";
458
458
  export * from "./rtprejectioncode.js";
459
459
  export * from "./rtpservices.js";
460
+ export * from "./rtptransactiondetails.js";
460
461
  export * from "./rtptransactionstatus.js";
461
462
  export * from "./runtransfer.js";
462
463
  export * from "./scheduledtransferimagemetadata.js";
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ RTPFailureCode,
11
+ RTPFailureCode$inboundSchema,
12
+ RTPFailureCode$outboundSchema,
13
+ } from "./rtpfailurecode.js";
14
+ import {
15
+ RTPTransactionStatus,
16
+ RTPTransactionStatus$inboundSchema,
17
+ RTPTransactionStatus$outboundSchema,
18
+ } from "./rtptransactionstatus.js";
19
+
20
+ /**
21
+ * DEPRECATED: use `InstantBankTransactionDetails` instead (v2026.04.00 or later). RTP specific details about the transaction.
22
+ *
23
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
24
+ */
25
+ export type RTPTransactionDetails = {
26
+ /**
27
+ * Status of a transaction within the RTP lifecycle.
28
+ */
29
+ status?: RTPTransactionStatus | undefined;
30
+ /**
31
+ * Response code returned by network on failure.
32
+ */
33
+ networkResponseCode?: string | undefined;
34
+ /**
35
+ * Status codes for RTP failures.
36
+ */
37
+ failureCode?: RTPFailureCode | undefined;
38
+ initiatedOn?: Date | undefined;
39
+ completedOn?: Date | undefined;
40
+ failedOn?: Date | undefined;
41
+ acceptedWithoutPostingOn?: Date | undefined;
42
+ };
43
+
44
+ /** @internal */
45
+ export const RTPTransactionDetails$inboundSchema: z.ZodType<
46
+ RTPTransactionDetails,
47
+ z.ZodTypeDef,
48
+ unknown
49
+ > = z.object({
50
+ status: RTPTransactionStatus$inboundSchema.optional(),
51
+ networkResponseCode: z.string().optional(),
52
+ failureCode: RTPFailureCode$inboundSchema.optional(),
53
+ initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
54
+ .optional(),
55
+ completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
56
+ .optional(),
57
+ failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
58
+ .optional(),
59
+ acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v =>
60
+ new Date(v)
61
+ ).optional(),
62
+ });
63
+ /** @internal */
64
+ export type RTPTransactionDetails$Outbound = {
65
+ status?: string | undefined;
66
+ networkResponseCode?: string | undefined;
67
+ failureCode?: string | undefined;
68
+ initiatedOn?: string | undefined;
69
+ completedOn?: string | undefined;
70
+ failedOn?: string | undefined;
71
+ acceptedWithoutPostingOn?: string | undefined;
72
+ };
73
+
74
+ /** @internal */
75
+ export const RTPTransactionDetails$outboundSchema: z.ZodType<
76
+ RTPTransactionDetails$Outbound,
77
+ z.ZodTypeDef,
78
+ RTPTransactionDetails
79
+ > = z.object({
80
+ status: RTPTransactionStatus$outboundSchema.optional(),
81
+ networkResponseCode: z.string().optional(),
82
+ failureCode: RTPFailureCode$outboundSchema.optional(),
83
+ initiatedOn: z.date().transform(v => v.toISOString()).optional(),
84
+ completedOn: z.date().transform(v => v.toISOString()).optional(),
85
+ failedOn: z.date().transform(v => v.toISOString()).optional(),
86
+ acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
87
+ });
88
+
89
+ export function rtpTransactionDetailsToJSON(
90
+ rtpTransactionDetails: RTPTransactionDetails,
91
+ ): string {
92
+ return JSON.stringify(
93
+ RTPTransactionDetails$outboundSchema.parse(rtpTransactionDetails),
94
+ );
95
+ }
96
+ export function rtpTransactionDetailsFromJSON(
97
+ jsonString: string,
98
+ ): SafeParseResult<RTPTransactionDetails, SDKValidationError> {
99
+ return safeParse(
100
+ jsonString,
101
+ (x) => RTPTransactionDetails$inboundSchema.parse(JSON.parse(x)),
102
+ `Failed to parse 'RTPTransactionDetails' from JSON`,
103
+ );
104
+ }
@@ -37,15 +37,11 @@ import {
37
37
  InstantBankTransactionDetails$outboundSchema,
38
38
  } from "./instantbanktransactiondetails.js";
39
39
  import {
40
- RTPFailureCode,
41
- RTPFailureCode$inboundSchema,
42
- RTPFailureCode$outboundSchema,
43
- } from "./rtpfailurecode.js";
44
- import {
45
- RTPTransactionStatus,
46
- RTPTransactionStatus$inboundSchema,
47
- RTPTransactionStatus$outboundSchema,
48
- } from "./rtptransactionstatus.js";
40
+ RTPTransactionDetails,
41
+ RTPTransactionDetails$inboundSchema,
42
+ RTPTransactionDetails$Outbound,
43
+ RTPTransactionDetails$outboundSchema,
44
+ } from "./rtptransactiondetails.js";
49
45
  import {
50
46
  TransferAccount,
51
47
  TransferAccount$inboundSchema,
@@ -76,30 +72,6 @@ import {
76
72
  TransferPaymentMethodType$outboundSchema,
77
73
  } from "./transferpaymentmethodtype.js";
78
74
 
79
- /**
80
- * DEPRECATED: use `InstantBankTransactionDetails` instead (v2026.04.00 or later). RTP specific details about the transaction.
81
- *
82
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
83
- */
84
- export type RtpDetails = {
85
- /**
86
- * Status of a transaction within the RTP lifecycle.
87
- */
88
- status?: RTPTransactionStatus | undefined;
89
- /**
90
- * Response code returned by network on failure.
91
- */
92
- networkResponseCode?: string | undefined;
93
- /**
94
- * Status codes for RTP failures.
95
- */
96
- failureCode?: RTPFailureCode | undefined;
97
- initiatedOn?: Date | undefined;
98
- completedOn?: Date | undefined;
99
- failedOn?: Date | undefined;
100
- acceptedWithoutPostingOn?: Date | undefined;
101
- };
102
-
103
75
  export type TransferDestination = {
104
76
  paymentMethodID: string;
105
77
  /**
@@ -133,73 +105,17 @@ export type TransferDestination = {
133
105
  */
134
106
  cardDetails?: CardTransactionDetails | undefined;
135
107
  /**
108
+ * DEPRECATED: use `InstantBankTransactionDetails` instead (v2026.04.00 or later). RTP specific details about the transaction.
109
+ *
136
110
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
137
111
  */
138
- rtpDetails?: RtpDetails | undefined;
112
+ rtpDetails?: RTPTransactionDetails | undefined;
139
113
  /**
140
114
  * Instant-bank specific details about the transaction.
141
115
  */
142
116
  instantBankDetails?: InstantBankTransactionDetails | undefined;
143
117
  };
144
118
 
145
- /** @internal */
146
- export const RtpDetails$inboundSchema: z.ZodType<
147
- RtpDetails,
148
- z.ZodTypeDef,
149
- unknown
150
- > = z.object({
151
- status: RTPTransactionStatus$inboundSchema.optional(),
152
- networkResponseCode: z.string().optional(),
153
- failureCode: RTPFailureCode$inboundSchema.optional(),
154
- initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
155
- .optional(),
156
- completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
157
- .optional(),
158
- failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
159
- .optional(),
160
- acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v =>
161
- new Date(v)
162
- ).optional(),
163
- });
164
- /** @internal */
165
- export type RtpDetails$Outbound = {
166
- status?: string | undefined;
167
- networkResponseCode?: string | undefined;
168
- failureCode?: string | undefined;
169
- initiatedOn?: string | undefined;
170
- completedOn?: string | undefined;
171
- failedOn?: string | undefined;
172
- acceptedWithoutPostingOn?: string | undefined;
173
- };
174
-
175
- /** @internal */
176
- export const RtpDetails$outboundSchema: z.ZodType<
177
- RtpDetails$Outbound,
178
- z.ZodTypeDef,
179
- RtpDetails
180
- > = z.object({
181
- status: RTPTransactionStatus$outboundSchema.optional(),
182
- networkResponseCode: z.string().optional(),
183
- failureCode: RTPFailureCode$outboundSchema.optional(),
184
- initiatedOn: z.date().transform(v => v.toISOString()).optional(),
185
- completedOn: z.date().transform(v => v.toISOString()).optional(),
186
- failedOn: z.date().transform(v => v.toISOString()).optional(),
187
- acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
188
- });
189
-
190
- export function rtpDetailsToJSON(rtpDetails: RtpDetails): string {
191
- return JSON.stringify(RtpDetails$outboundSchema.parse(rtpDetails));
192
- }
193
- export function rtpDetailsFromJSON(
194
- jsonString: string,
195
- ): SafeParseResult<RtpDetails, SDKValidationError> {
196
- return safeParse(
197
- jsonString,
198
- (x) => RtpDetails$inboundSchema.parse(JSON.parse(x)),
199
- `Failed to parse 'RtpDetails' from JSON`,
200
- );
201
- }
202
-
203
119
  /** @internal */
204
120
  export const TransferDestination$inboundSchema: z.ZodType<
205
121
  TransferDestination,
@@ -216,7 +132,7 @@ export const TransferDestination$inboundSchema: z.ZodType<
216
132
  applePay: ApplePayResponse$inboundSchema.optional(),
217
133
  googlePay: GooglePayResponse$inboundSchema.optional(),
218
134
  cardDetails: CardTransactionDetails$inboundSchema.optional(),
219
- rtpDetails: z.lazy(() => RtpDetails$inboundSchema).optional(),
135
+ rtpDetails: RTPTransactionDetails$inboundSchema.optional(),
220
136
  instantBankDetails: InstantBankTransactionDetails$inboundSchema.optional(),
221
137
  });
222
138
  /** @internal */
@@ -231,7 +147,7 @@ export type TransferDestination$Outbound = {
231
147
  applePay?: ApplePayResponse$Outbound | undefined;
232
148
  googlePay?: GooglePayResponse$Outbound | undefined;
233
149
  cardDetails?: CardTransactionDetails$Outbound | undefined;
234
- rtpDetails?: RtpDetails$Outbound | undefined;
150
+ rtpDetails?: RTPTransactionDetails$Outbound | undefined;
235
151
  instantBankDetails?: InstantBankTransactionDetails$Outbound | undefined;
236
152
  };
237
153
 
@@ -251,7 +167,7 @@ export const TransferDestination$outboundSchema: z.ZodType<
251
167
  applePay: ApplePayResponse$outboundSchema.optional(),
252
168
  googlePay: GooglePayResponse$outboundSchema.optional(),
253
169
  cardDetails: CardTransactionDetails$outboundSchema.optional(),
254
- rtpDetails: z.lazy(() => RtpDetails$outboundSchema).optional(),
170
+ rtpDetails: RTPTransactionDetails$outboundSchema.optional(),
255
171
  instantBankDetails: InstantBankTransactionDetails$outboundSchema.optional(),
256
172
  });
257
173