@moovio/sdk 0.22.22 → 0.23.2

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 (116) hide show
  1. package/README.md +53 -61
  2. package/bin/mcp-server.js +1503 -1183
  3. package/bin/mcp-server.js.map +39 -37
  4. package/examples/package-lock.json +4 -4
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/config.js.map +1 -1
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/mcp-server.js.map +1 -1
  11. package/mcp-server/server.d.ts.map +1 -1
  12. package/mcp-server/server.js +1 -3
  13. package/mcp-server/server.js.map +1 -1
  14. package/models/components/createinvoicelineitem.d.ts +7 -3
  15. package/models/components/createinvoicelineitem.d.ts.map +1 -1
  16. package/models/components/createinvoicelineitem.js +3 -2
  17. package/models/components/createinvoicelineitem.js.map +1 -1
  18. package/models/components/createinvoicelineitemimage.d.ts +23 -0
  19. package/models/components/createinvoicelineitemimage.d.ts.map +1 -0
  20. package/models/components/createinvoicelineitemimage.js +58 -0
  21. package/models/components/createinvoicelineitemimage.js.map +1 -0
  22. package/models/components/createinvoicelineitemimagevalidationerror.d.ts +17 -0
  23. package/models/components/createinvoicelineitemimagevalidationerror.d.ts.map +1 -0
  24. package/models/components/createinvoicelineitemimagevalidationerror.js +58 -0
  25. package/models/components/createinvoicelineitemimagevalidationerror.js.map +1 -0
  26. package/models/components/createinvoicelineitemoption.d.ts +4 -3
  27. package/models/components/createinvoicelineitemoption.d.ts.map +1 -1
  28. package/models/components/createinvoicelineitemoption.js +3 -2
  29. package/models/components/createinvoicelineitemoption.js.map +1 -1
  30. package/models/components/createinvoicelineitemoptionvalidationerror.d.ts +7 -0
  31. package/models/components/createinvoicelineitemoptionvalidationerror.d.ts.map +1 -1
  32. package/models/components/createinvoicelineitemoptionvalidationerror.js +5 -0
  33. package/models/components/createinvoicelineitemoptionvalidationerror.js.map +1 -1
  34. package/models/components/createinvoicelineitemvalidationerror.d.ts +7 -0
  35. package/models/components/createinvoicelineitemvalidationerror.d.ts.map +1 -1
  36. package/models/components/createinvoicelineitemvalidationerror.js +5 -0
  37. package/models/components/createinvoicelineitemvalidationerror.js.map +1 -1
  38. package/models/components/createpaymentlinklineitem.d.ts +10 -2
  39. package/models/components/createpaymentlinklineitem.d.ts.map +1 -1
  40. package/models/components/createpaymentlinklineitem.js.map +1 -1
  41. package/models/components/createpaymentlinklineitemoption.d.ts +6 -1
  42. package/models/components/createpaymentlinklineitemoption.d.ts.map +1 -1
  43. package/models/components/createpaymentlinklineitemoption.js.map +1 -1
  44. package/models/components/createscheduledtransferlineitem.d.ts +4 -1
  45. package/models/components/createscheduledtransferlineitem.d.ts.map +1 -1
  46. package/models/components/createscheduledtransferlineitem.js.map +1 -1
  47. package/models/components/createtransferlineitem.d.ts +4 -1
  48. package/models/components/createtransferlineitem.d.ts.map +1 -1
  49. package/models/components/createtransferlineitem.js.map +1 -1
  50. package/models/components/index.d.ts +3 -1
  51. package/models/components/index.d.ts.map +1 -1
  52. package/models/components/index.js +3 -1
  53. package/models/components/index.js.map +1 -1
  54. package/models/components/invoicelineitem.d.ts +4 -1
  55. package/models/components/invoicelineitem.d.ts.map +1 -1
  56. package/models/components/invoicelineitem.js.map +1 -1
  57. package/models/components/invoicelineitemimagevalidationerror.d.ts +17 -0
  58. package/models/components/invoicelineitemimagevalidationerror.d.ts.map +1 -0
  59. package/{mcp-server/tools/feePlansListPartnerPricing.js → models/components/invoicelineitemimagevalidationerror.js} +20 -27
  60. package/models/components/invoicelineitemimagevalidationerror.js.map +1 -0
  61. package/models/components/invoicelineitemoptionvalidationerror.d.ts +7 -0
  62. package/models/components/invoicelineitemoptionvalidationerror.d.ts.map +1 -1
  63. package/models/components/invoicelineitemoptionvalidationerror.js +5 -0
  64. package/models/components/invoicelineitemoptionvalidationerror.js.map +1 -1
  65. package/models/components/invoicelineitemvalidationerror.d.ts +7 -0
  66. package/models/components/invoicelineitemvalidationerror.d.ts.map +1 -1
  67. package/models/components/invoicelineitemvalidationerror.js +5 -0
  68. package/models/components/invoicelineitemvalidationerror.js.map +1 -1
  69. package/models/operations/index.d.ts +0 -1
  70. package/models/operations/index.d.ts.map +1 -1
  71. package/models/operations/index.js +0 -1
  72. package/models/operations/index.js.map +1 -1
  73. package/package.json +4 -4
  74. package/sdk/feeplans.d.ts +0 -7
  75. package/sdk/feeplans.d.ts.map +1 -1
  76. package/sdk/feeplans.js +0 -10
  77. package/sdk/feeplans.js.map +1 -1
  78. package/src/lib/config.ts +3 -3
  79. package/src/mcp-server/mcp-server.ts +1 -1
  80. package/src/mcp-server/server.ts +1 -3
  81. package/src/models/components/createinvoicelineitem.ts +14 -5
  82. package/src/models/components/createinvoicelineitemimage.ts +57 -0
  83. package/src/models/components/createinvoicelineitemimagevalidationerror.ts +61 -0
  84. package/src/models/components/createinvoicelineitemoption.ts +11 -5
  85. package/src/models/components/createinvoicelineitemoptionvalidationerror.ts +16 -0
  86. package/src/models/components/createinvoicelineitemvalidationerror.ts +16 -0
  87. package/src/models/components/createpaymentlinklineitem.ts +10 -2
  88. package/src/models/components/createpaymentlinklineitemoption.ts +6 -1
  89. package/src/models/components/createscheduledtransferlineitem.ts +4 -1
  90. package/src/models/components/createtransferlineitem.ts +4 -1
  91. package/src/models/components/index.ts +3 -1
  92. package/src/models/components/invoicelineitem.ts +4 -1
  93. package/src/models/components/invoicelineitemimagevalidationerror.ts +54 -0
  94. package/src/models/components/invoicelineitemoptionvalidationerror.ts +14 -0
  95. package/src/models/components/invoicelineitemvalidationerror.ts +14 -0
  96. package/src/models/operations/index.ts +0 -1
  97. package/src/sdk/feeplans.ts +0 -18
  98. package/funcs/feePlansListPartnerPricing.d.ts +0 -17
  99. package/funcs/feePlansListPartnerPricing.d.ts.map +0 -1
  100. package/funcs/feePlansListPartnerPricing.js +0 -129
  101. package/funcs/feePlansListPartnerPricing.js.map +0 -1
  102. package/mcp-server/tools/feePlansListPartnerPricing.d.ts +0 -8
  103. package/mcp-server/tools/feePlansListPartnerPricing.d.ts.map +0 -1
  104. package/mcp-server/tools/feePlansListPartnerPricing.js.map +0 -1
  105. package/models/components/partnerpricing.d.ts +0 -59
  106. package/models/components/partnerpricing.d.ts.map +0 -1
  107. package/models/components/partnerpricing.js +0 -78
  108. package/models/components/partnerpricing.js.map +0 -1
  109. package/models/operations/listpartnerpricing.d.ts +0 -69
  110. package/models/operations/listpartnerpricing.d.ts.map +0 -1
  111. package/models/operations/listpartnerpricing.js +0 -114
  112. package/models/operations/listpartnerpricing.js.map +0 -1
  113. package/src/funcs/feePlansListPartnerPricing.ts +0 -184
  114. package/src/mcp-server/tools/feePlansListPartnerPricing.ts +0 -38
  115. package/src/models/components/partnerpricing.ts +0 -124
  116. package/src/models/operations/listpartnerpricing.ts +0 -182
@@ -145,6 +145,8 @@ export * from "./createindividualerror.js";
145
145
  export * from "./createindividualprofile.js";
146
146
  export * from "./createinvoice.js";
147
147
  export * from "./createinvoicelineitem.js";
148
+ export * from "./createinvoicelineitemimage.js";
149
+ export * from "./createinvoicelineitemimagevalidationerror.js";
148
150
  export * from "./createinvoicelineitemoption.js";
149
151
  export * from "./createinvoicelineitemoptionvalidationerror.js";
150
152
  export * from "./createinvoicelineitems.js";
@@ -267,6 +269,7 @@ export * from "./invoice.js";
267
269
  export * from "./invoiceexternalpayment.js";
268
270
  export * from "./invoicelineitem.js";
269
271
  export * from "./invoicelineitemimagemetadata.js";
272
+ export * from "./invoicelineitemimagevalidationerror.js";
270
273
  export * from "./invoicelineitemoption.js";
271
274
  export * from "./invoicelineitemoptionvalidationerror.js";
272
275
  export * from "./invoicelineitems.js";
@@ -330,7 +333,6 @@ export * from "./onboardingpartneraccount.js";
330
333
  export * from "./othercardfees.js";
331
334
  export * from "./partialscheduleaccount.js";
332
335
  export * from "./partnerfees.js";
333
- export * from "./partnerpricing.js";
334
336
  export * from "./partnerpricingagreement.js";
335
337
  export * from "./patchaccount.js";
336
338
  export * from "./patchbusiness.js";
@@ -42,7 +42,10 @@ export type InvoiceLineItem = {
42
42
  */
43
43
  quantity: number;
44
44
  /**
45
- * Optional unique identifier associating the line item with a product.
45
+ * Optional unique identifier associating the line item with a product.
46
+ *
47
+ * @remarks
48
+ * This is for reporting or tracking purposes, and does not populate other details of the line item.
46
49
  */
47
50
  productID?: string | undefined;
48
51
  /**
@@ -0,0 +1,54 @@
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
+
10
+ export type InvoiceLineItemImageValidationError = {
11
+ imageID?: string | undefined;
12
+ };
13
+
14
+ /** @internal */
15
+ export const InvoiceLineItemImageValidationError$inboundSchema: z.ZodType<
16
+ InvoiceLineItemImageValidationError,
17
+ z.ZodTypeDef,
18
+ unknown
19
+ > = z.object({
20
+ imageID: z.string().optional(),
21
+ });
22
+ /** @internal */
23
+ export type InvoiceLineItemImageValidationError$Outbound = {
24
+ imageID?: string | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export const InvoiceLineItemImageValidationError$outboundSchema: z.ZodType<
29
+ InvoiceLineItemImageValidationError$Outbound,
30
+ z.ZodTypeDef,
31
+ InvoiceLineItemImageValidationError
32
+ > = z.object({
33
+ imageID: z.string().optional(),
34
+ });
35
+
36
+ export function invoiceLineItemImageValidationErrorToJSON(
37
+ invoiceLineItemImageValidationError: InvoiceLineItemImageValidationError,
38
+ ): string {
39
+ return JSON.stringify(
40
+ InvoiceLineItemImageValidationError$outboundSchema.parse(
41
+ invoiceLineItemImageValidationError,
42
+ ),
43
+ );
44
+ }
45
+ export function invoiceLineItemImageValidationErrorFromJSON(
46
+ jsonString: string,
47
+ ): SafeParseResult<InvoiceLineItemImageValidationError, SDKValidationError> {
48
+ return safeParse(
49
+ jsonString,
50
+ (x) =>
51
+ InvoiceLineItemImageValidationError$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'InvoiceLineItemImageValidationError' from JSON`,
53
+ );
54
+ }
@@ -12,12 +12,19 @@ import {
12
12
  AmountDecimalValidationError$Outbound,
13
13
  AmountDecimalValidationError$outboundSchema,
14
14
  } from "./amountdecimalvalidationerror.js";
15
+ import {
16
+ InvoiceLineItemImageValidationError,
17
+ InvoiceLineItemImageValidationError$inboundSchema,
18
+ InvoiceLineItemImageValidationError$Outbound,
19
+ InvoiceLineItemImageValidationError$outboundSchema,
20
+ } from "./invoicelineitemimagevalidationerror.js";
15
21
 
16
22
  export type InvoiceLineItemOptionValidationError = {
17
23
  name?: string | undefined;
18
24
  group?: string | undefined;
19
25
  priceModifier?: AmountDecimalValidationError | undefined;
20
26
  quantity?: string | undefined;
27
+ images?: { [k: string]: InvoiceLineItemImageValidationError } | undefined;
21
28
  };
22
29
 
23
30
  /** @internal */
@@ -30,6 +37,8 @@ export const InvoiceLineItemOptionValidationError$inboundSchema: z.ZodType<
30
37
  group: z.string().optional(),
31
38
  priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
32
39
  quantity: z.string().optional(),
40
+ images: z.record(InvoiceLineItemImageValidationError$inboundSchema)
41
+ .optional(),
33
42
  });
34
43
  /** @internal */
35
44
  export type InvoiceLineItemOptionValidationError$Outbound = {
@@ -37,6 +46,9 @@ export type InvoiceLineItemOptionValidationError$Outbound = {
37
46
  group?: string | undefined;
38
47
  priceModifier?: AmountDecimalValidationError$Outbound | undefined;
39
48
  quantity?: string | undefined;
49
+ images?:
50
+ | { [k: string]: InvoiceLineItemImageValidationError$Outbound }
51
+ | undefined;
40
52
  };
41
53
 
42
54
  /** @internal */
@@ -49,6 +61,8 @@ export const InvoiceLineItemOptionValidationError$outboundSchema: z.ZodType<
49
61
  group: z.string().optional(),
50
62
  priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
51
63
  quantity: z.string().optional(),
64
+ images: z.record(InvoiceLineItemImageValidationError$outboundSchema)
65
+ .optional(),
52
66
  });
53
67
 
54
68
  export function invoiceLineItemOptionValidationErrorToJSON(
@@ -12,6 +12,12 @@ import {
12
12
  AmountDecimalValidationError$Outbound,
13
13
  AmountDecimalValidationError$outboundSchema,
14
14
  } from "./amountdecimalvalidationerror.js";
15
+ import {
16
+ InvoiceLineItemImageValidationError,
17
+ InvoiceLineItemImageValidationError$inboundSchema,
18
+ InvoiceLineItemImageValidationError$Outbound,
19
+ InvoiceLineItemImageValidationError$outboundSchema,
20
+ } from "./invoicelineitemimagevalidationerror.js";
15
21
  import {
16
22
  InvoiceLineItemOptionValidationError,
17
23
  InvoiceLineItemOptionValidationError$inboundSchema,
@@ -25,6 +31,7 @@ export type InvoiceLineItemValidationError = {
25
31
  basePrice?: AmountDecimalValidationError | undefined;
26
32
  options?: { [k: string]: InvoiceLineItemOptionValidationError } | undefined;
27
33
  quantity?: string | undefined;
34
+ images?: { [k: string]: InvoiceLineItemImageValidationError } | undefined;
28
35
  };
29
36
 
30
37
  /** @internal */
@@ -39,6 +46,8 @@ export const InvoiceLineItemValidationError$inboundSchema: z.ZodType<
39
46
  options: z.record(InvoiceLineItemOptionValidationError$inboundSchema)
40
47
  .optional(),
41
48
  quantity: z.string().optional(),
49
+ images: z.record(InvoiceLineItemImageValidationError$inboundSchema)
50
+ .optional(),
42
51
  });
43
52
  /** @internal */
44
53
  export type InvoiceLineItemValidationError$Outbound = {
@@ -49,6 +58,9 @@ export type InvoiceLineItemValidationError$Outbound = {
49
58
  | { [k: string]: InvoiceLineItemOptionValidationError$Outbound }
50
59
  | undefined;
51
60
  quantity?: string | undefined;
61
+ images?:
62
+ | { [k: string]: InvoiceLineItemImageValidationError$Outbound }
63
+ | undefined;
52
64
  };
53
65
 
54
66
  /** @internal */
@@ -63,6 +75,8 @@ export const InvoiceLineItemValidationError$outboundSchema: z.ZodType<
63
75
  options: z.record(InvoiceLineItemOptionValidationError$outboundSchema)
64
76
  .optional(),
65
77
  quantity: z.string().optional(),
78
+ images: z.record(InvoiceLineItemImageValidationError$outboundSchema)
79
+ .optional(),
66
80
  });
67
81
 
68
82
  export function invoiceLineItemValidationErrorToJSON(
@@ -124,7 +124,6 @@ export * from "./listissuedcardauthorizations.js";
124
124
  export * from "./listissuedcards.js";
125
125
  export * from "./listissuedcardtransactions.js";
126
126
  export * from "./listonboardinginvites.js";
127
- export * from "./listpartnerpricing.js";
128
127
  export * from "./listpartnerpricingagreements.js";
129
128
  export * from "./listpaymentlinks.js";
130
129
  export * from "./listpaymentmethods.js";
@@ -8,7 +8,6 @@ import { feePlansListFeePlanAgreements } from "../funcs/feePlansListFeePlanAgree
8
8
  import { feePlansListFeePlans } from "../funcs/feePlansListFeePlans.js";
9
9
  import { feePlansListFeeRevenue } from "../funcs/feePlansListFeeRevenue.js";
10
10
  import { feePlansListFeesFetch } from "../funcs/feePlansListFeesFetch.js";
11
- import { feePlansListPartnerPricing } from "../funcs/feePlansListPartnerPricing.js";
12
11
  import { feePlansListPartnerPricingAgreements } from "../funcs/feePlansListPartnerPricingAgreements.js";
13
12
  import { feePlansListResidualFees } from "../funcs/feePlansListResidualFees.js";
14
13
  import { feePlansListResiduals } from "../funcs/feePlansListResiduals.js";
@@ -121,23 +120,6 @@ export class FeePlans extends ClientSDK {
121
120
  ));
122
121
  }
123
122
 
124
- /**
125
- * List all partner pricing plans available for use by an account.
126
- *
127
- * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
128
- * you'll need to specify the `/accounts/{accountID}/profile.read` scope.
129
- */
130
- async listPartnerPricing(
131
- request: operations.ListPartnerPricingRequest,
132
- options?: RequestOptions,
133
- ): Promise<operations.ListPartnerPricingResponse> {
134
- return unwrapAsync(feePlansListPartnerPricing(
135
- this,
136
- request,
137
- options,
138
- ));
139
- }
140
-
141
123
  /**
142
124
  * List all partner pricing agreements associated with an account.
143
125
  *
@@ -1,17 +0,0 @@
1
- import { MoovCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
- import { MoovError } from "../models/errors/mooverror.js";
5
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
6
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
- import * as operations from "../models/operations/index.js";
8
- import { APIPromise } from "../types/async.js";
9
- import { Result } from "../types/fp.js";
10
- /**
11
- * List all partner pricing plans available for use by an account.
12
- *
13
- * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
14
- * you'll need to specify the `/accounts/{accountID}/profile.read` scope.
15
- */
16
- export declare function feePlansListPartnerPricing(client: MoovCore, request: operations.ListPartnerPricingRequest, options?: RequestOptions): APIPromise<Result<operations.ListPartnerPricingResponse, MoovError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
- //# sourceMappingURL=feePlansListPartnerPricing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feePlansListPartnerPricing.d.ts","sourceRoot":"","sources":["../src/funcs/feePlansListPartnerPricing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,SAAS,GACT,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -1,129 +0,0 @@
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.feePlansListPartnerPricing = feePlansListPartnerPricing;
40
- const encodings_js_1 = require("../lib/encodings.js");
41
- const M = __importStar(require("../lib/matchers.js"));
42
- const primitives_js_1 = require("../lib/primitives.js");
43
- const schemas_js_1 = require("../lib/schemas.js");
44
- const security_js_1 = require("../lib/security.js");
45
- const url_js_1 = require("../lib/url.js");
46
- const operations = __importStar(require("../models/operations/index.js"));
47
- const async_js_1 = require("../types/async.js");
48
- /**
49
- * List all partner pricing plans available for use by an account.
50
- *
51
- * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
52
- * you'll need to specify the `/accounts/{accountID}/profile.read` scope.
53
- */
54
- function feePlansListPartnerPricing(client, request, options) {
55
- return new async_js_1.APIPromise($do(client, request, options));
56
- }
57
- async function $do(client, request, options) {
58
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ListPartnerPricingRequest$outboundSchema.parse(value), "Input validation failed");
59
- if (!parsed.ok) {
60
- return [parsed, { status: "invalid" }];
61
- }
62
- const payload = parsed.value;
63
- const body = null;
64
- const pathParams = {
65
- accountID: (0, encodings_js_1.encodeSimple)("accountID", payload.accountID, {
66
- explode: false,
67
- charEncoding: "percent",
68
- }),
69
- };
70
- const path = (0, url_js_1.pathToFunc)("/accounts/{accountID}/partner-pricing")(pathParams);
71
- const query = (0, encodings_js_1.encodeFormQuery)({
72
- "planIDs": payload.planIDs,
73
- }, { explode: false });
74
- const headers = new Headers((0, primitives_js_1.compactMap)({
75
- Accept: "application/json",
76
- "X-Moov-Version": (0, encodings_js_1.encodeSimple)("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" }),
77
- }));
78
- const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
79
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
80
- const context = {
81
- options: client._options,
82
- baseURL: options?.serverURL ?? client._baseURL ?? "",
83
- operationID: "listPartnerPricing",
84
- oAuth2Scopes: null,
85
- resolvedSecurity: requestSecurity,
86
- securitySource: client._options.security,
87
- retryConfig: options?.retries
88
- || client._options.retryConfig
89
- || { strategy: "none" },
90
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
91
- };
92
- const requestRes = client._createRequest(context, {
93
- security: requestSecurity,
94
- method: "GET",
95
- baseURL: options?.serverURL,
96
- path: path,
97
- headers: headers,
98
- query: query,
99
- body: body,
100
- userAgent: client._options.userAgent,
101
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
102
- }, options);
103
- if (!requestRes.ok) {
104
- return [requestRes, { status: "invalid" }];
105
- }
106
- const req = requestRes.value;
107
- const doResult = await client._do(req, {
108
- context,
109
- errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
110
- retryConfig: context.retryConfig,
111
- retryCodes: context.retryCodes,
112
- });
113
- if (!doResult.ok) {
114
- return [doResult, { status: "request-error", request: req }];
115
- }
116
- const response = doResult.value;
117
- const responseFields = {
118
- HttpMeta: { Response: response, Request: req },
119
- };
120
- const [result] = await M.match(M.json(200, operations.ListPartnerPricingResponse$inboundSchema, {
121
- hdrs: true,
122
- key: "Result",
123
- }), M.fail([401, 403, 429]), M.fail([500, 504]), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
124
- if (!result.ok) {
125
- return [result, { status: "complete", request: req, response }];
126
- }
127
- return [result, { status: "complete", request: req, response }];
128
- }
129
- //# sourceMappingURL=feePlansListPartnerPricing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feePlansListPartnerPricing.js","sourceRoot":"","sources":["../src/funcs/feePlansListPartnerPricing.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,gEAsBC;AAjDD,sDAAoE;AACpE,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAA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E,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -1,8 +0,0 @@
1
- import * as operations from "../../models/operations/index.js";
2
- import { ToolDefinition } from "../tools.js";
3
- declare const args: {
4
- request: import("zod").ZodType<operations.ListPartnerPricingRequest, import("zod").ZodTypeDef, unknown>;
5
- };
6
- export declare const tool$feePlansListPartnerPricing: ToolDefinition<typeof args>;
7
- export {};
8
- //# sourceMappingURL=feePlansListPartnerPricing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feePlansListPartnerPricing.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/feePlansListPartnerPricing.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,cAAc,CAAC,OAAO,IAAI,CAyBvE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"feePlansListPartnerPricing.js","sourceRoot":"","sources":["../../src/mcp-server/tools/feePlansListPartnerPricing.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6FAAuF;AACvF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,uCAAuC;CAC5D,CAAC;AAEW,QAAA,+BAA+B,GAAgC;IAC1E,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE;;;yEAG0D;IACvE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,0DAA0B,EACxD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;QAElC,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -1,59 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { BillableFee, BillableFee$Outbound } from "./billablefee.js";
5
- import { CardAcquiringModel } from "./cardacquiringmodel.js";
6
- import { MinimumCommitment, MinimumCommitment$Outbound } from "./minimumcommitment.js";
7
- import { MonthlyPlatformFee, MonthlyPlatformFee$Outbound } from "./monthlyplatformfee.js";
8
- export type PartnerPricing = {
9
- planID: string;
10
- /**
11
- * The name of the partner pricing plan.
12
- */
13
- name: string;
14
- /**
15
- * A description of the fee plan.
16
- */
17
- description?: string | undefined;
18
- /**
19
- * The decimal-formatted numerical string of the revenue split for partner.
20
- *
21
- * @remarks
22
- *
23
- * For example, 2.25% is '2.25'.
24
- */
25
- revenueShare: string;
26
- /**
27
- * Specifies the card processing pricing model
28
- */
29
- cardAcquiringModel: CardAcquiringModel;
30
- billableFees: Array<BillableFee>;
31
- /**
32
- * The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference.
33
- */
34
- minimumCommitment: MinimumCommitment;
35
- /**
36
- * Fixed recurring amount paid in the billing period regardless of usage.
37
- */
38
- monthlyPlatformFee: MonthlyPlatformFee;
39
- createdAt: Date;
40
- };
41
- /** @internal */
42
- export declare const PartnerPricing$inboundSchema: z.ZodType<PartnerPricing, z.ZodTypeDef, unknown>;
43
- /** @internal */
44
- export type PartnerPricing$Outbound = {
45
- planID: string;
46
- name: string;
47
- description?: string | undefined;
48
- revenueShare: string;
49
- cardAcquiringModel: string;
50
- billableFees: Array<BillableFee$Outbound>;
51
- minimumCommitment: MinimumCommitment$Outbound;
52
- monthlyPlatformFee: MonthlyPlatformFee$Outbound;
53
- createdAt: string;
54
- };
55
- /** @internal */
56
- export declare const PartnerPricing$outboundSchema: z.ZodType<PartnerPricing$Outbound, z.ZodTypeDef, PartnerPricing>;
57
- export declare function partnerPricingToJSON(partnerPricing: PartnerPricing): string;
58
- export declare function partnerPricingFromJSON(jsonString: string): SafeParseResult<PartnerPricing, SDKValidationError>;
59
- //# sourceMappingURL=partnerpricing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"partnerpricing.d.ts","sourceRoot":"","sources":["../../src/models/components/partnerpricing.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;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf;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easy.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.PartnerPricing$outboundSchema = exports.PartnerPricing$inboundSchema = void 0;
40
- exports.partnerPricingToJSON = partnerPricingToJSON;
41
- exports.partnerPricingFromJSON = partnerPricingFromJSON;
42
- const z = __importStar(require("zod/v3"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const billablefee_js_1 = require("./billablefee.js");
45
- const cardacquiringmodel_js_1 = require("./cardacquiringmodel.js");
46
- const minimumcommitment_js_1 = require("./minimumcommitment.js");
47
- const monthlyplatformfee_js_1 = require("./monthlyplatformfee.js");
48
- /** @internal */
49
- exports.PartnerPricing$inboundSchema = z.object({
50
- planID: z.string(),
51
- name: z.string(),
52
- description: z.string().optional(),
53
- revenueShare: z.string(),
54
- cardAcquiringModel: cardacquiringmodel_js_1.CardAcquiringModel$inboundSchema,
55
- billableFees: z.array(billablefee_js_1.BillableFee$inboundSchema),
56
- minimumCommitment: minimumcommitment_js_1.MinimumCommitment$inboundSchema,
57
- monthlyPlatformFee: monthlyplatformfee_js_1.MonthlyPlatformFee$inboundSchema,
58
- createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
59
- });
60
- /** @internal */
61
- exports.PartnerPricing$outboundSchema = z.object({
62
- planID: z.string(),
63
- name: z.string(),
64
- description: z.string().optional(),
65
- revenueShare: z.string(),
66
- cardAcquiringModel: cardacquiringmodel_js_1.CardAcquiringModel$outboundSchema,
67
- billableFees: z.array(billablefee_js_1.BillableFee$outboundSchema),
68
- minimumCommitment: minimumcommitment_js_1.MinimumCommitment$outboundSchema,
69
- monthlyPlatformFee: monthlyplatformfee_js_1.MonthlyPlatformFee$outboundSchema,
70
- createdAt: z.date().transform(v => v.toISOString()),
71
- });
72
- function partnerPricingToJSON(partnerPricing) {
73
- return JSON.stringify(exports.PartnerPricing$outboundSchema.parse(partnerPricing));
74
- }
75
- function partnerPricingFromJSON(jsonString) {
76
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PartnerPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PartnerPricing' from JSON`);
77
- }
78
- //# sourceMappingURL=partnerpricing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"partnerpricing.js","sourceRoot":"","sources":["../../src/models/components/partnerpricing.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GH,oDAEC;AACD,wDAQC;AAvHD,0CAA4B;AAC5B,qDAAiD;AAGjD,qDAK0B;AAC1B,mEAIiC;AACjC,iEAKgC;AAChC,mEAKiC;AAoCjC,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,C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AO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -1,69 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import * as components from "../components/index.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export type ListPartnerPricingGlobals = {
6
- /**
7
- * Specify an API version.
8
- *
9
- * @remarks
10
- *
11
- * API versioning follows the format `vYYYY.QQ.BB`, where
12
- * - `YYYY` is the year
13
- * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
14
- * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
15
- * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
16
- *
17
- * The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
18
- * When no version is specified, the API defaults to `v2024.01.00`.
19
- */
20
- xMoovVersion?: string | undefined;
21
- };
22
- export type ListPartnerPricingRequest = {
23
- accountID: string;
24
- /**
25
- * A comma-separated list of plan IDs to filter the results by.
26
- */
27
- planIDs?: Array<string> | undefined;
28
- };
29
- export type ListPartnerPricingResponse = {
30
- headers: {
31
- [k: string]: Array<string>;
32
- };
33
- result: Array<components.PartnerPricing>;
34
- };
35
- /** @internal */
36
- export declare const ListPartnerPricingGlobals$inboundSchema: z.ZodType<ListPartnerPricingGlobals, z.ZodTypeDef, unknown>;
37
- /** @internal */
38
- export type ListPartnerPricingGlobals$Outbound = {
39
- "X-Moov-Version"?: string | undefined;
40
- };
41
- /** @internal */
42
- export declare const ListPartnerPricingGlobals$outboundSchema: z.ZodType<ListPartnerPricingGlobals$Outbound, z.ZodTypeDef, ListPartnerPricingGlobals>;
43
- export declare function listPartnerPricingGlobalsToJSON(listPartnerPricingGlobals: ListPartnerPricingGlobals): string;
44
- export declare function listPartnerPricingGlobalsFromJSON(jsonString: string): SafeParseResult<ListPartnerPricingGlobals, SDKValidationError>;
45
- /** @internal */
46
- export declare const ListPartnerPricingRequest$inboundSchema: z.ZodType<ListPartnerPricingRequest, z.ZodTypeDef, unknown>;
47
- /** @internal */
48
- export type ListPartnerPricingRequest$Outbound = {
49
- accountID: string;
50
- planIDs?: Array<string> | undefined;
51
- };
52
- /** @internal */
53
- export declare const ListPartnerPricingRequest$outboundSchema: z.ZodType<ListPartnerPricingRequest$Outbound, z.ZodTypeDef, ListPartnerPricingRequest>;
54
- export declare function listPartnerPricingRequestToJSON(listPartnerPricingRequest: ListPartnerPricingRequest): string;
55
- export declare function listPartnerPricingRequestFromJSON(jsonString: string): SafeParseResult<ListPartnerPricingRequest, SDKValidationError>;
56
- /** @internal */
57
- export declare const ListPartnerPricingResponse$inboundSchema: z.ZodType<ListPartnerPricingResponse, z.ZodTypeDef, unknown>;
58
- /** @internal */
59
- export type ListPartnerPricingResponse$Outbound = {
60
- Headers: {
61
- [k: string]: Array<string>;
62
- };
63
- Result: Array<components.PartnerPricing$Outbound>;
64
- };
65
- /** @internal */
66
- export declare const ListPartnerPricingResponse$outboundSchema: z.ZodType<ListPartnerPricingResponse$Outbound, z.ZodTypeDef, ListPartnerPricingResponse>;
67
- export declare function listPartnerPricingResponseToJSON(listPartnerPricingResponse: ListPartnerPricingResponse): string;
68
- export declare function listPartnerPricingResponseFromJSON(jsonString: string): SafeParseResult<ListPartnerPricingResponse, SDKValidationError>;
69
- //# sourceMappingURL=listpartnerpricing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listpartnerpricing.d.ts","sourceRoot":"","sources":["../../src/models/operations/listpartnerpricing.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAC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