@moovio/sdk 26.4.3 → 26.4.5

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 (55) hide show
  1. package/bin/mcp-server.js +56 -33
  2. package/bin/mcp-server.js.map +22 -21
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/components/createdtransfer.d.ts +1 -1
  9. package/models/components/createpaymentlink.d.ts +1 -1
  10. package/models/components/createpaymentlinklineitems.d.ts +1 -1
  11. package/models/components/createpaymentlinklineitemsupdate.d.ts +1 -1
  12. package/models/components/createtransfer.d.ts +1 -1
  13. package/models/components/createtransferlineitems.d.ts +1 -1
  14. package/models/components/googlepayresponse.d.ts +45 -3
  15. package/models/components/googlepayresponse.d.ts.map +1 -1
  16. package/models/components/googlepayresponse.js +24 -3
  17. package/models/components/googlepayresponse.js.map +1 -1
  18. package/models/components/index.d.ts +1 -0
  19. package/models/components/index.d.ts.map +1 -1
  20. package/models/components/index.js +1 -0
  21. package/models/components/index.js.map +1 -1
  22. package/models/components/paymentlink.d.ts +1 -1
  23. package/models/components/paymentlinklineitems.d.ts +1 -1
  24. package/models/components/rtptransactiondetails.d.ts +45 -0
  25. package/models/components/rtptransactiondetails.d.ts.map +1 -0
  26. package/models/components/rtptransactiondetails.js +75 -0
  27. package/models/components/rtptransactiondetails.js.map +1 -0
  28. package/models/components/transfer.d.ts +1 -1
  29. package/models/components/transferdestination.d.ts +5 -43
  30. package/models/components/transferdestination.d.ts.map +1 -1
  31. package/models/components/transferdestination.js +4 -36
  32. package/models/components/transferdestination.js.map +1 -1
  33. package/models/components/transferlineitems.d.ts +1 -1
  34. package/models/components/updatepaymentlink.d.ts +1 -1
  35. package/models/errors/transfer.d.ts +2 -2
  36. package/package.json +1 -1
  37. package/src/lib/config.ts +2 -2
  38. package/src/mcp-server/mcp-server.ts +1 -1
  39. package/src/mcp-server/server.ts +1 -1
  40. package/src/models/components/createdtransfer.ts +1 -1
  41. package/src/models/components/createpaymentlink.ts +1 -1
  42. package/src/models/components/createpaymentlinklineitems.ts +1 -1
  43. package/src/models/components/createpaymentlinklineitemsupdate.ts +1 -1
  44. package/src/models/components/createtransfer.ts +1 -1
  45. package/src/models/components/createtransferlineitems.ts +1 -1
  46. package/src/models/components/googlepayresponse.ts +63 -5
  47. package/src/models/components/index.ts +1 -0
  48. package/src/models/components/paymentlink.ts +1 -1
  49. package/src/models/components/paymentlinklineitems.ts +1 -1
  50. package/src/models/components/rtptransactiondetails.ts +104 -0
  51. package/src/models/components/transfer.ts +1 -1
  52. package/src/models/components/transferdestination.ts +11 -95
  53. package/src/models/components/transferlineitems.ts +1 -1
  54. package/src/models/components/updatepaymentlink.ts +1 -1
  55. package/src/models/errors/transfer.ts +2 -2
@@ -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
 
@@ -17,7 +17,7 @@ import {
17
17
  * An optional collection of line items for a transfer.
18
18
  *
19
19
  * @remarks
20
- * When line items are provided, their total plus sales tax must equal the transfer amount.
20
+ * When line items are provided, their total plus tax must equal the transfer amount.
21
21
  */
22
22
  export type TransferLineItems = {
23
23
  /**
@@ -61,7 +61,7 @@ export type UpdatePaymentLink = {
61
61
  * An optional collection of line items for a payment link.
62
62
  *
63
63
  * @remarks
64
- * When line items are provided, their total plus sales tax must equal the payment link amount.
64
+ * When line items are provided, their total plus tax must equal the payment link amount.
65
65
  */
66
66
  lineItems?: CreatePaymentLinkLineItemsUpdate | undefined;
67
67
  };
@@ -74,7 +74,7 @@ export type TransferData = {
74
74
  * An optional collection of line items for a transfer.
75
75
  *
76
76
  * @remarks
77
- * When line items are provided, their total plus sales tax must equal the transfer amount.
77
+ * When line items are provided, their total plus tax must equal the transfer amount.
78
78
  */
79
79
  lineItems?: components.TransferLineItems | undefined;
80
80
  /**
@@ -152,7 +152,7 @@ export class Transfer extends MoovError {
152
152
  * An optional collection of line items for a transfer.
153
153
  *
154
154
  * @remarks
155
- * When line items are provided, their total plus sales tax must equal the transfer amount.
155
+ * When line items are provided, their total plus tax must equal the transfer amount.
156
156
  */
157
157
  lineItems?: components.TransferLineItems | undefined;
158
158
  /**