@moovio/sdk 0.22.15 → 0.22.17

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 (47) hide show
  1. package/bin/mcp-server.js +20 -15
  2. package/bin/mcp-server.js.map +12 -12
  3. package/examples/package-lock.json +2 -2
  4. package/funcs/productsList.js +1 -0
  5. package/funcs/productsList.js.map +1 -1
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +3 -3
  8. package/lib/config.js +3 -3
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/server.js +1 -1
  11. package/models/components/achfees.d.ts +5 -0
  12. package/models/components/achfees.d.ts.map +1 -1
  13. package/models/components/achfees.js +2 -0
  14. package/models/components/achfees.js.map +1 -1
  15. package/models/components/achtransactiondetails.d.ts +4 -4
  16. package/models/components/achtransactiondetails.d.ts.map +1 -1
  17. package/models/components/achtransactiondetails.js +4 -4
  18. package/models/components/achtransactiondetails.js.map +1 -1
  19. package/models/components/cardtransactiondetails.d.ts +2 -2
  20. package/models/components/cardtransactiondetails.d.ts.map +1 -1
  21. package/models/components/cardtransactiondetails.js +2 -2
  22. package/models/components/cardtransactiondetails.js.map +1 -1
  23. package/models/components/invoice.d.ts +3 -0
  24. package/models/components/invoice.d.ts.map +1 -1
  25. package/models/components/invoice.js.map +1 -1
  26. package/models/components/rtptransactiondetails.d.ts +2 -2
  27. package/models/components/rtptransactiondetails.d.ts.map +1 -1
  28. package/models/components/rtptransactiondetails.js +2 -2
  29. package/models/components/rtptransactiondetails.js.map +1 -1
  30. package/models/operations/listproducts.d.ts +5 -0
  31. package/models/operations/listproducts.d.ts.map +1 -1
  32. package/models/operations/listproducts.js +2 -0
  33. package/models/operations/listproducts.js.map +1 -1
  34. package/package.json +2 -2
  35. package/sdk/cards.d.ts +2 -2
  36. package/sdk/cards.js +2 -2
  37. package/src/funcs/productsList.ts +1 -0
  38. package/src/lib/config.ts +3 -3
  39. package/src/mcp-server/mcp-server.ts +1 -1
  40. package/src/mcp-server/server.ts +1 -1
  41. package/src/models/components/achfees.ts +7 -0
  42. package/src/models/components/achtransactiondetails.ts +8 -8
  43. package/src/models/components/cardtransactiondetails.ts +4 -4
  44. package/src/models/components/invoice.ts +3 -0
  45. package/src/models/components/rtptransactiondetails.ts +4 -4
  46. package/src/models/operations/listproducts.ts +7 -0
  47. package/src/sdk/cards.ts +2 -2
@@ -41,8 +41,8 @@ export type ACHTransactionDetails = {
41
41
  /**
42
42
  * Status of a transaction within the ACH lifecycle.
43
43
  */
44
- status: ACHTransactionStatus;
45
- traceNumber: string;
44
+ status?: ACHTransactionStatus | undefined;
45
+ traceNumber?: string | undefined;
46
46
  return?: ACHException | undefined;
47
47
  correction?: ACHException | undefined;
48
48
  /**
@@ -77,8 +77,8 @@ export const ACHTransactionDetails$inboundSchema: z.ZodType<
77
77
  z.ZodTypeDef,
78
78
  unknown
79
79
  > = z.object({
80
- status: ACHTransactionStatus$inboundSchema,
81
- traceNumber: z.string(),
80
+ status: ACHTransactionStatus$inboundSchema.optional(),
81
+ traceNumber: z.string().optional(),
82
82
  return: ACHException$inboundSchema.optional(),
83
83
  correction: ACHException$inboundSchema.optional(),
84
84
  companyEntryDescription: z.string().optional(),
@@ -104,8 +104,8 @@ export const ACHTransactionDetails$inboundSchema: z.ZodType<
104
104
  });
105
105
  /** @internal */
106
106
  export type ACHTransactionDetails$Outbound = {
107
- status: string;
108
- traceNumber: string;
107
+ status?: string | undefined;
108
+ traceNumber?: string | undefined;
109
109
  return?: ACHException$Outbound | undefined;
110
110
  correction?: ACHException$Outbound | undefined;
111
111
  companyEntryDescription?: string | undefined;
@@ -128,8 +128,8 @@ export const ACHTransactionDetails$outboundSchema: z.ZodType<
128
128
  z.ZodTypeDef,
129
129
  ACHTransactionDetails
130
130
  > = z.object({
131
- status: ACHTransactionStatus$outboundSchema,
132
- traceNumber: z.string(),
131
+ status: ACHTransactionStatus$outboundSchema.optional(),
132
+ traceNumber: z.string().optional(),
133
133
  return: ACHException$outboundSchema.optional(),
134
134
  correction: ACHException$outboundSchema.optional(),
135
135
  companyEntryDescription: z.string().optional(),
@@ -29,7 +29,7 @@ export type CardTransactionDetails = {
29
29
  /**
30
30
  * Status of a transaction within the card payment lifecycle.
31
31
  */
32
- status: CardTransactionStatus;
32
+ status?: CardTransactionStatus | undefined;
33
33
  failureCode?: CardTransactionFailureCode | undefined;
34
34
  /**
35
35
  * An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
@@ -72,7 +72,7 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
72
72
  z.ZodTypeDef,
73
73
  unknown
74
74
  > = z.object({
75
- status: CardTransactionStatus$inboundSchema,
75
+ status: CardTransactionStatus$inboundSchema.optional(),
76
76
  failureCode: CardTransactionFailureCode$inboundSchema.optional(),
77
77
  dynamicDescriptor: z.string().optional(),
78
78
  transactionSource: TransactionSource$inboundSchema.optional(),
@@ -94,7 +94,7 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
94
94
  });
95
95
  /** @internal */
96
96
  export type CardTransactionDetails$Outbound = {
97
- status: string;
97
+ status?: string | undefined;
98
98
  failureCode?: string | undefined;
99
99
  dynamicDescriptor?: string | undefined;
100
100
  transactionSource?: string | undefined;
@@ -115,7 +115,7 @@ export const CardTransactionDetails$outboundSchema: z.ZodType<
115
115
  z.ZodTypeDef,
116
116
  CardTransactionDetails
117
117
  > = z.object({
118
- status: CardTransactionStatus$outboundSchema,
118
+ status: CardTransactionStatus$outboundSchema.optional(),
119
119
  failureCode: CardTransactionFailureCode$outboundSchema.optional(),
120
120
  dynamicDescriptor: z.string().optional(),
121
121
  transactionSource: TransactionSource$outboundSchema.optional(),
@@ -64,6 +64,9 @@ export type Invoice = {
64
64
  */
65
65
  disputedAmount: AmountDecimal;
66
66
  paymentLinkCode?: string | undefined;
67
+ /**
68
+ * Payment made towards an invoice, will be either a transfer or an external payment.
69
+ */
67
70
  invoicePayments?: Array<InvoicePayment> | undefined;
68
71
  createdOn: Date;
69
72
  invoiceDate?: Date | undefined;
@@ -24,7 +24,7 @@ export type RTPTransactionDetails = {
24
24
  /**
25
25
  * Status of a transaction within the RTP lifecycle.
26
26
  */
27
- status: RTPTransactionStatus;
27
+ status?: RTPTransactionStatus | undefined;
28
28
  /**
29
29
  * Response code returned by network on failure.
30
30
  */
@@ -45,7 +45,7 @@ export const RTPTransactionDetails$inboundSchema: z.ZodType<
45
45
  z.ZodTypeDef,
46
46
  unknown
47
47
  > = z.object({
48
- status: RTPTransactionStatus$inboundSchema,
48
+ status: RTPTransactionStatus$inboundSchema.optional(),
49
49
  networkResponseCode: z.string().optional(),
50
50
  failureCode: RTPFailureCode$inboundSchema.optional(),
51
51
  initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
@@ -60,7 +60,7 @@ export const RTPTransactionDetails$inboundSchema: z.ZodType<
60
60
  });
61
61
  /** @internal */
62
62
  export type RTPTransactionDetails$Outbound = {
63
- status: string;
63
+ status?: string | undefined;
64
64
  networkResponseCode?: string | undefined;
65
65
  failureCode?: string | undefined;
66
66
  initiatedOn?: string | undefined;
@@ -75,7 +75,7 @@ export const RTPTransactionDetails$outboundSchema: z.ZodType<
75
75
  z.ZodTypeDef,
76
76
  RTPTransactionDetails
77
77
  > = z.object({
78
- status: RTPTransactionStatus$outboundSchema,
78
+ status: RTPTransactionStatus$outboundSchema.optional(),
79
79
  networkResponseCode: z.string().optional(),
80
80
  failureCode: RTPFailureCode$outboundSchema.optional(),
81
81
  initiatedOn: z.date().transform(v => v.toISOString()).optional(),
@@ -29,6 +29,10 @@ export type ListProductsGlobals = {
29
29
 
30
30
  export type ListProductsRequest = {
31
31
  accountID: string;
32
+ /**
33
+ * Allows filtering products by title. This supports partial matches and is case-insensitive
34
+ */
35
+ title?: string | undefined;
32
36
  skip?: number | undefined;
33
37
  count?: number | undefined;
34
38
  };
@@ -92,12 +96,14 @@ export const ListProductsRequest$inboundSchema: z.ZodType<
92
96
  unknown
93
97
  > = z.object({
94
98
  accountID: z.string(),
99
+ title: z.string().optional(),
95
100
  skip: z.number().int().optional(),
96
101
  count: z.number().int().optional(),
97
102
  });
98
103
  /** @internal */
99
104
  export type ListProductsRequest$Outbound = {
100
105
  accountID: string;
106
+ title?: string | undefined;
101
107
  skip?: number | undefined;
102
108
  count?: number | undefined;
103
109
  };
@@ -109,6 +115,7 @@ export const ListProductsRequest$outboundSchema: z.ZodType<
109
115
  ListProductsRequest
110
116
  > = z.object({
111
117
  accountID: z.string(),
118
+ title: z.string().optional(),
112
119
  skip: z.number().int().optional(),
113
120
  count: z.number().int().optional(),
114
121
  });
package/src/sdk/cards.ts CHANGED
@@ -108,10 +108,10 @@ export class Cards extends ClientSDK {
108
108
  }
109
109
 
110
110
  /**
111
- * Disables a card associated with a Moov account.
111
+ * Discontinue using a specified bank account linked to a Moov account.
112
112
  *
113
113
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
114
- * you'll need to specify the `/accounts/{accountID}/cards.write` scope.
114
+ * you'll need to specify the `/accounts/{accountID}/bank-accounts.write` scope.
115
115
  */
116
116
  async disable(
117
117
  request: operations.DisableCardRequest,