@moovio/sdk 0.22.21 → 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 (133) hide show
  1. package/README.md +53 -61
  2. package/bin/mcp-server.js +1503 -1185
  3. package/bin/mcp-server.js.map +43 -41
  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/incurredfee.d.ts +22 -1
  51. package/models/components/incurredfee.d.ts.map +1 -1
  52. package/models/components/incurredfee.js.map +1 -1
  53. package/models/components/index.d.ts +3 -1
  54. package/models/components/index.d.ts.map +1 -1
  55. package/models/components/index.js +3 -1
  56. package/models/components/index.js.map +1 -1
  57. package/models/components/invoicelineitem.d.ts +4 -1
  58. package/models/components/invoicelineitem.d.ts.map +1 -1
  59. package/models/components/invoicelineitem.js.map +1 -1
  60. package/models/components/invoicelineitemimagevalidationerror.d.ts +17 -0
  61. package/models/components/invoicelineitemimagevalidationerror.d.ts.map +1 -0
  62. package/{mcp-server/tools/feePlansListPartnerPricing.js → models/components/invoicelineitemimagevalidationerror.js} +20 -27
  63. package/models/components/invoicelineitemimagevalidationerror.js.map +1 -0
  64. package/models/components/invoicelineitemoptionvalidationerror.d.ts +7 -0
  65. package/models/components/invoicelineitemoptionvalidationerror.d.ts.map +1 -1
  66. package/models/components/invoicelineitemoptionvalidationerror.js +5 -0
  67. package/models/components/invoicelineitemoptionvalidationerror.js.map +1 -1
  68. package/models/components/invoicelineitemvalidationerror.d.ts +7 -0
  69. package/models/components/invoicelineitemvalidationerror.d.ts.map +1 -1
  70. package/models/components/invoicelineitemvalidationerror.js +5 -0
  71. package/models/components/invoicelineitemvalidationerror.js.map +1 -1
  72. package/models/components/residual.d.ts +31 -7
  73. package/models/components/residual.d.ts.map +1 -1
  74. package/models/components/residual.js +0 -2
  75. package/models/components/residual.js.map +1 -1
  76. package/models/operations/getresidual.d.ts +3 -0
  77. package/models/operations/getresidual.d.ts.map +1 -1
  78. package/models/operations/getresidual.js.map +1 -1
  79. package/models/operations/index.d.ts +0 -1
  80. package/models/operations/index.d.ts.map +1 -1
  81. package/models/operations/index.js +0 -1
  82. package/models/operations/index.js.map +1 -1
  83. package/models/operations/listresidualfees.d.ts +3 -0
  84. package/models/operations/listresidualfees.d.ts.map +1 -1
  85. package/models/operations/listresidualfees.js.map +1 -1
  86. package/package.json +4 -4
  87. package/sdk/feeplans.d.ts +0 -7
  88. package/sdk/feeplans.d.ts.map +1 -1
  89. package/sdk/feeplans.js +0 -10
  90. package/sdk/feeplans.js.map +1 -1
  91. package/src/lib/config.ts +3 -3
  92. package/src/mcp-server/mcp-server.ts +1 -1
  93. package/src/mcp-server/server.ts +1 -3
  94. package/src/models/components/createinvoicelineitem.ts +14 -5
  95. package/src/models/components/createinvoicelineitemimage.ts +57 -0
  96. package/src/models/components/createinvoicelineitemimagevalidationerror.ts +61 -0
  97. package/src/models/components/createinvoicelineitemoption.ts +11 -5
  98. package/src/models/components/createinvoicelineitemoptionvalidationerror.ts +16 -0
  99. package/src/models/components/createinvoicelineitemvalidationerror.ts +16 -0
  100. package/src/models/components/createpaymentlinklineitem.ts +10 -2
  101. package/src/models/components/createpaymentlinklineitemoption.ts +6 -1
  102. package/src/models/components/createscheduledtransferlineitem.ts +4 -1
  103. package/src/models/components/createtransferlineitem.ts +4 -1
  104. package/src/models/components/incurredfee.ts +22 -1
  105. package/src/models/components/index.ts +3 -1
  106. package/src/models/components/invoicelineitem.ts +4 -1
  107. package/src/models/components/invoicelineitemimagevalidationerror.ts +54 -0
  108. package/src/models/components/invoicelineitemoptionvalidationerror.ts +14 -0
  109. package/src/models/components/invoicelineitemvalidationerror.ts +14 -0
  110. package/src/models/components/residual.ts +31 -9
  111. package/src/models/operations/getresidual.ts +3 -0
  112. package/src/models/operations/index.ts +0 -1
  113. package/src/models/operations/listresidualfees.ts +3 -0
  114. package/src/sdk/feeplans.ts +0 -18
  115. package/funcs/feePlansListPartnerPricing.d.ts +0 -17
  116. package/funcs/feePlansListPartnerPricing.d.ts.map +0 -1
  117. package/funcs/feePlansListPartnerPricing.js +0 -129
  118. package/funcs/feePlansListPartnerPricing.js.map +0 -1
  119. package/mcp-server/tools/feePlansListPartnerPricing.d.ts +0 -8
  120. package/mcp-server/tools/feePlansListPartnerPricing.d.ts.map +0 -1
  121. package/mcp-server/tools/feePlansListPartnerPricing.js.map +0 -1
  122. package/models/components/partnerpricing.d.ts +0 -59
  123. package/models/components/partnerpricing.d.ts.map +0 -1
  124. package/models/components/partnerpricing.js +0 -78
  125. package/models/components/partnerpricing.js.map +0 -1
  126. package/models/operations/listpartnerpricing.d.ts +0 -69
  127. package/models/operations/listpartnerpricing.d.ts.map +0 -1
  128. package/models/operations/listpartnerpricing.js +0 -114
  129. package/models/operations/listpartnerpricing.js.map +0 -1
  130. package/src/funcs/feePlansListPartnerPricing.ts +0 -184
  131. package/src/mcp-server/tools/feePlansListPartnerPricing.ts +0 -38
  132. package/src/models/components/partnerpricing.ts +0 -124
  133. package/src/models/operations/listpartnerpricing.ts +0 -182
@@ -0,0 +1,61 @@
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 CreateInvoiceLineItemImageValidationError = {
11
+ imageID?: string | undefined;
12
+ };
13
+
14
+ /** @internal */
15
+ export const CreateInvoiceLineItemImageValidationError$inboundSchema: z.ZodType<
16
+ CreateInvoiceLineItemImageValidationError,
17
+ z.ZodTypeDef,
18
+ unknown
19
+ > = z.object({
20
+ imageID: z.string().optional(),
21
+ });
22
+ /** @internal */
23
+ export type CreateInvoiceLineItemImageValidationError$Outbound = {
24
+ imageID?: string | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export const CreateInvoiceLineItemImageValidationError$outboundSchema:
29
+ z.ZodType<
30
+ CreateInvoiceLineItemImageValidationError$Outbound,
31
+ z.ZodTypeDef,
32
+ CreateInvoiceLineItemImageValidationError
33
+ > = z.object({
34
+ imageID: z.string().optional(),
35
+ });
36
+
37
+ export function createInvoiceLineItemImageValidationErrorToJSON(
38
+ createInvoiceLineItemImageValidationError:
39
+ CreateInvoiceLineItemImageValidationError,
40
+ ): string {
41
+ return JSON.stringify(
42
+ CreateInvoiceLineItemImageValidationError$outboundSchema.parse(
43
+ createInvoiceLineItemImageValidationError,
44
+ ),
45
+ );
46
+ }
47
+ export function createInvoiceLineItemImageValidationErrorFromJSON(
48
+ jsonString: string,
49
+ ): SafeParseResult<
50
+ CreateInvoiceLineItemImageValidationError,
51
+ SDKValidationError
52
+ > {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) =>
56
+ CreateInvoiceLineItemImageValidationError$inboundSchema.parse(
57
+ JSON.parse(x),
58
+ ),
59
+ `Failed to parse 'CreateInvoiceLineItemImageValidationError' from JSON`,
60
+ );
61
+ }
@@ -12,6 +12,12 @@ import {
12
12
  AmountDecimal$Outbound,
13
13
  AmountDecimal$outboundSchema,
14
14
  } from "./amountdecimal.js";
15
+ import {
16
+ CreateInvoiceLineItemImage,
17
+ CreateInvoiceLineItemImage$inboundSchema,
18
+ CreateInvoiceLineItemImage$Outbound,
19
+ CreateInvoiceLineItemImage$outboundSchema,
20
+ } from "./createinvoicelineitemimage.js";
15
21
 
16
22
  /**
17
23
  * Represents a modifier or option applied to a line item.
@@ -34,9 +40,9 @@ export type CreateInvoiceLineItemOption = {
34
40
  */
35
41
  group?: string | undefined;
36
42
  /**
37
- * Optional list of images associated with this line item.
43
+ * Optional list of images associated with this line item option.
38
44
  */
39
- imageIDs?: Array<string> | undefined;
45
+ images?: Array<CreateInvoiceLineItemImage> | undefined;
40
46
  };
41
47
 
42
48
  /** @internal */
@@ -49,7 +55,7 @@ export const CreateInvoiceLineItemOption$inboundSchema: z.ZodType<
49
55
  quantity: z.number().int(),
50
56
  priceModifier: AmountDecimal$inboundSchema.optional(),
51
57
  group: z.string().optional(),
52
- imageIDs: z.array(z.string()).optional(),
58
+ images: z.array(CreateInvoiceLineItemImage$inboundSchema).optional(),
53
59
  });
54
60
  /** @internal */
55
61
  export type CreateInvoiceLineItemOption$Outbound = {
@@ -57,7 +63,7 @@ export type CreateInvoiceLineItemOption$Outbound = {
57
63
  quantity: number;
58
64
  priceModifier?: AmountDecimal$Outbound | undefined;
59
65
  group?: string | undefined;
60
- imageIDs?: Array<string> | undefined;
66
+ images?: Array<CreateInvoiceLineItemImage$Outbound> | undefined;
61
67
  };
62
68
 
63
69
  /** @internal */
@@ -70,7 +76,7 @@ export const CreateInvoiceLineItemOption$outboundSchema: z.ZodType<
70
76
  quantity: z.number().int(),
71
77
  priceModifier: AmountDecimal$outboundSchema.optional(),
72
78
  group: z.string().optional(),
73
- imageIDs: z.array(z.string()).optional(),
79
+ images: z.array(CreateInvoiceLineItemImage$outboundSchema).optional(),
74
80
  });
75
81
 
76
82
  export function createInvoiceLineItemOptionToJSON(
@@ -12,12 +12,21 @@ import {
12
12
  AmountDecimalValidationError$Outbound,
13
13
  AmountDecimalValidationError$outboundSchema,
14
14
  } from "./amountdecimalvalidationerror.js";
15
+ import {
16
+ CreateInvoiceLineItemImageValidationError,
17
+ CreateInvoiceLineItemImageValidationError$inboundSchema,
18
+ CreateInvoiceLineItemImageValidationError$Outbound,
19
+ CreateInvoiceLineItemImageValidationError$outboundSchema,
20
+ } from "./createinvoicelineitemimagevalidationerror.js";
15
21
 
16
22
  export type CreateInvoiceLineItemOptionValidationError = {
17
23
  name?: string | undefined;
18
24
  group?: string | undefined;
19
25
  priceModifier?: AmountDecimalValidationError | undefined;
20
26
  quantity?: string | undefined;
27
+ images?:
28
+ | { [k: string]: CreateInvoiceLineItemImageValidationError }
29
+ | undefined;
21
30
  };
22
31
 
23
32
  /** @internal */
@@ -28,6 +37,8 @@ export const CreateInvoiceLineItemOptionValidationError$inboundSchema:
28
37
  group: z.string().optional(),
29
38
  priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
30
39
  quantity: z.string().optional(),
40
+ images: z.record(CreateInvoiceLineItemImageValidationError$inboundSchema)
41
+ .optional(),
31
42
  });
32
43
  /** @internal */
33
44
  export type CreateInvoiceLineItemOptionValidationError$Outbound = {
@@ -35,6 +46,9 @@ export type CreateInvoiceLineItemOptionValidationError$Outbound = {
35
46
  group?: string | undefined;
36
47
  priceModifier?: AmountDecimalValidationError$Outbound | undefined;
37
48
  quantity?: string | undefined;
49
+ images?:
50
+ | { [k: string]: CreateInvoiceLineItemImageValidationError$Outbound }
51
+ | undefined;
38
52
  };
39
53
 
40
54
  /** @internal */
@@ -48,6 +62,8 @@ export const CreateInvoiceLineItemOptionValidationError$outboundSchema:
48
62
  group: z.string().optional(),
49
63
  priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
50
64
  quantity: z.string().optional(),
65
+ images: z.record(CreateInvoiceLineItemImageValidationError$outboundSchema)
66
+ .optional(),
51
67
  });
52
68
 
53
69
  export function createInvoiceLineItemOptionValidationErrorToJSON(
@@ -12,6 +12,12 @@ import {
12
12
  AmountDecimalValidationError$Outbound,
13
13
  AmountDecimalValidationError$outboundSchema,
14
14
  } from "./amountdecimalvalidationerror.js";
15
+ import {
16
+ CreateInvoiceLineItemImageValidationError,
17
+ CreateInvoiceLineItemImageValidationError$inboundSchema,
18
+ CreateInvoiceLineItemImageValidationError$Outbound,
19
+ CreateInvoiceLineItemImageValidationError$outboundSchema,
20
+ } from "./createinvoicelineitemimagevalidationerror.js";
15
21
  import {
16
22
  CreateInvoiceLineItemOptionValidationError,
17
23
  CreateInvoiceLineItemOptionValidationError$inboundSchema,
@@ -27,6 +33,9 @@ export type CreateInvoiceLineItemValidationError = {
27
33
  | { [k: string]: CreateInvoiceLineItemOptionValidationError }
28
34
  | undefined;
29
35
  quantity?: string | undefined;
36
+ images?:
37
+ | { [k: string]: CreateInvoiceLineItemImageValidationError }
38
+ | undefined;
30
39
  };
31
40
 
32
41
  /** @internal */
@@ -41,6 +50,8 @@ export const CreateInvoiceLineItemValidationError$inboundSchema: z.ZodType<
41
50
  options: z.record(CreateInvoiceLineItemOptionValidationError$inboundSchema)
42
51
  .optional(),
43
52
  quantity: z.string().optional(),
53
+ images: z.record(CreateInvoiceLineItemImageValidationError$inboundSchema)
54
+ .optional(),
44
55
  });
45
56
  /** @internal */
46
57
  export type CreateInvoiceLineItemValidationError$Outbound = {
@@ -51,6 +62,9 @@ export type CreateInvoiceLineItemValidationError$Outbound = {
51
62
  | { [k: string]: CreateInvoiceLineItemOptionValidationError$Outbound }
52
63
  | undefined;
53
64
  quantity?: string | undefined;
65
+ images?:
66
+ | { [k: string]: CreateInvoiceLineItemImageValidationError$Outbound }
67
+ | undefined;
54
68
  };
55
69
 
56
70
  /** @internal */
@@ -65,6 +79,8 @@ export const CreateInvoiceLineItemValidationError$outboundSchema: z.ZodType<
65
79
  options: z.record(CreateInvoiceLineItemOptionValidationError$outboundSchema)
66
80
  .optional(),
67
81
  quantity: z.string().optional(),
82
+ images: z.record(CreateInvoiceLineItemImageValidationError$outboundSchema)
83
+ .optional(),
68
84
  });
69
85
 
70
86
  export function createInvoiceLineItemValidationErrorToJSON(
@@ -40,11 +40,19 @@ export type CreatePaymentLinkLineItem = {
40
40
  */
41
41
  options?: Array<CreatePaymentLinkLineItemOption> | undefined;
42
42
  /**
43
- * Optional list of images associated with this line item.
43
+ * Optional list of images associated with this line item.
44
+ *
45
+ * @remarks
46
+ * This field is deprecated and will be ignored. A future release will populate images associated with the given productID.
47
+ *
48
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
44
49
  */
45
50
  imageIDs?: Array<string> | undefined;
46
51
  /**
47
- * Optional unique identifier associating the line item with a product.
52
+ * Optional unique identifier associating the line item with a product.
53
+ *
54
+ * @remarks
55
+ * This is for reporting or tracking purposes, and does not populate other details of the line item.
48
56
  */
49
57
  productID?: string | undefined;
50
58
  };
@@ -30,7 +30,12 @@ export type CreatePaymentLinkLineItemOption = {
30
30
  */
31
31
  priceModifier?: AmountDecimal | undefined;
32
32
  /**
33
- * Optional list of images associated with this line item option.
33
+ * Optional list of images associated with this line item option.
34
+ *
35
+ * @remarks
36
+ * This field is deprecated and will be ignored. A future release will populate images associated with the given productID.
37
+ *
38
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
34
39
  */
35
40
  imageIDs?: Array<string> | undefined;
36
41
  /**
@@ -40,7 +40,10 @@ export type CreateScheduledTransferLineItem = {
40
40
  */
41
41
  options?: Array<CreateScheduledTransferLineItemOption> | undefined;
42
42
  /**
43
- * Optional unique identifier associating the line item with a product.
43
+ * Optional unique identifier associating the line item with a product.
44
+ *
45
+ * @remarks
46
+ * This is for reporting or tracking purposes, and does not populate other details of the line item.
44
47
  */
45
48
  productID?: string | undefined;
46
49
  /**
@@ -44,7 +44,10 @@ export type CreateTransferLineItem = {
44
44
  */
45
45
  imageIDs?: Array<string> | undefined;
46
46
  /**
47
- * Optional unique identifier associating the line item with a product.
47
+ * Optional unique identifier associating the line item with a product.
48
+ *
49
+ * @remarks
50
+ * This is for reporting or tracking purposes, and does not populate other details of the line item.
48
51
  */
49
52
  productID?: string | undefined;
50
53
  };
@@ -24,16 +24,37 @@ import {
24
24
  */
25
25
  export type IncurredFee = {
26
26
  feeID?: string | undefined;
27
+ /**
28
+ * Account ID the fee belongs to.
29
+ */
27
30
  accountID?: string | undefined;
31
+ /**
32
+ * Wallet ID associated with the fee.
33
+ */
28
34
  walletID?: string | undefined;
35
+ /**
36
+ * Timestamp when the fee was created.
37
+ */
29
38
  createdOn?: Date | undefined;
39
+ /**
40
+ * Name of the fee.
41
+ */
30
42
  feeName?: string | undefined;
43
+ /**
44
+ * The fee amount.
45
+ */
31
46
  amount?: AmountDecimal | undefined;
32
47
  /**
33
- * The entity that generated the fee.
48
+ * Object indicating what generated the fee (TransferID, CardID, DisputeID, AccountID, or BankAccountID).
34
49
  */
35
50
  generatedBy?: GeneratedBy | undefined;
51
+ /**
52
+ * Describes the source of the fee, such as a Moov-set processing fee, a network pass-through fee, or an interchange or discount fee.
53
+ */
36
54
  feeGroup?: string | undefined;
55
+ /**
56
+ * Unique identifier for this residual payment calculation.
57
+ */
37
58
  residualID?: string | undefined;
38
59
  };
39
60
 
@@ -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(
@@ -14,24 +14,49 @@ import {
14
14
  } from "./amountdecimal.js";
15
15
 
16
16
  export type Residual = {
17
+ /**
18
+ * Unique identifier for this residual payment calculation.
19
+ */
17
20
  residualID: string;
21
+ /**
22
+ * The partner account ID this residual belongs to.
23
+ */
18
24
  partnerAccountID: string;
25
+ /**
26
+ * Start date and time of the residual calculation period.
27
+ */
19
28
  periodStart: Date;
29
+ /**
30
+ * End date and time of the residual calculation period.
31
+ */
20
32
  periodEnd: Date;
33
+ /**
34
+ * Total amount of merchant fees collected during the period. This represents the partner's revenue from merchant fees.
35
+ */
21
36
  merchantFees: AmountDecimal;
37
+ /**
38
+ * Partner's total cost (buy rate) during the period.
39
+ */
22
40
  partnerCost: AmountDecimal;
41
+ /**
42
+ * Net income calculated as merchant fee revenue minus partner costs.
43
+ */
23
44
  netIncome: AmountDecimal;
24
45
  /**
25
- * The decimal-formatted numerical string of the revenue split for partner.
26
- *
27
- * @remarks
28
- *
29
- * For example, 2.25% is '2.25'.
46
+ * The revenue share percentage the partner receives, expressed as a decimal string (e.g., "25.00" for 25%).
30
47
  */
31
48
  revenueShare: string;
49
+ /**
50
+ * The amount the partner receives as their share of the net income (netIncome × revenueShare).
51
+ */
32
52
  residualAmount: AmountDecimal;
33
- moovShare: AmountDecimal;
53
+ /**
54
+ * Timestamp when the residual was created.
55
+ */
34
56
  createdOn: Date;
57
+ /**
58
+ * Timestamp when the residual was last updated.
59
+ */
35
60
  updatedOn: Date;
36
61
  };
37
62
 
@@ -52,7 +77,6 @@ export const Residual$inboundSchema: z.ZodType<
52
77
  netIncome: AmountDecimal$inboundSchema,
53
78
  revenueShare: z.string(),
54
79
  residualAmount: AmountDecimal$inboundSchema,
55
- moovShare: AmountDecimal$inboundSchema,
56
80
  createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
57
81
  updatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
58
82
  });
@@ -67,7 +91,6 @@ export type Residual$Outbound = {
67
91
  netIncome: AmountDecimal$Outbound;
68
92
  revenueShare: string;
69
93
  residualAmount: AmountDecimal$Outbound;
70
- moovShare: AmountDecimal$Outbound;
71
94
  createdOn: string;
72
95
  updatedOn: string;
73
96
  };
@@ -87,7 +110,6 @@ export const Residual$outboundSchema: z.ZodType<
87
110
  netIncome: AmountDecimal$outboundSchema,
88
111
  revenueShare: z.string(),
89
112
  residualAmount: AmountDecimal$outboundSchema,
90
- moovShare: AmountDecimal$outboundSchema,
91
113
  createdOn: z.date().transform(v => v.toISOString()),
92
114
  updatedOn: z.date().transform(v => v.toISOString()),
93
115
  });
@@ -29,6 +29,9 @@ export type GetResidualGlobals = {
29
29
 
30
30
  export type GetResidualRequest = {
31
31
  accountID: string;
32
+ /**
33
+ * Unique identifier for this residual payment calculation.
34
+ */
32
35
  residualID: string;
33
36
  };
34
37
 
@@ -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";
@@ -31,6 +31,9 @@ export type ListResidualFeesRequest = {
31
31
  skip?: number | undefined;
32
32
  count?: number | undefined;
33
33
  accountID: string;
34
+ /**
35
+ * Unique identifier for this residual payment calculation.
36
+ */
34
37
  residualID: string;
35
38
  /**
36
39
  * Optional date-time to inclusively filter all fees created after this date-time.
@@ -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"}