@moovio/sdk 0.22.20 → 0.22.22
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.
- package/bin/mcp-server.js +10 -8
- package/bin/mcp-server.js.map +11 -11
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/incurredfee.d.ts +22 -1
- package/models/components/incurredfee.d.ts.map +1 -1
- package/models/components/incurredfee.js.map +1 -1
- package/models/components/onboardinginvite.d.ts +8 -0
- package/models/components/onboardinginvite.d.ts.map +1 -1
- package/models/components/onboardinginvite.js +2 -0
- package/models/components/onboardinginvite.js.map +1 -1
- package/models/components/onboardinginviterequest.d.ts +8 -0
- package/models/components/onboardinginviterequest.d.ts.map +1 -1
- package/models/components/onboardinginviterequest.js +2 -0
- package/models/components/onboardinginviterequest.js.map +1 -1
- package/models/components/residual.d.ts +31 -7
- package/models/components/residual.d.ts.map +1 -1
- package/models/components/residual.js +0 -2
- package/models/components/residual.js.map +1 -1
- package/models/operations/getresidual.d.ts +3 -0
- package/models/operations/getresidual.d.ts.map +1 -1
- package/models/operations/getresidual.js.map +1 -1
- package/models/operations/listresidualfees.d.ts +3 -0
- package/models/operations/listresidualfees.d.ts.map +1 -1
- package/models/operations/listresidualfees.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/incurredfee.ts +22 -1
- package/src/models/components/onboardinginvite.ts +10 -0
- package/src/models/components/onboardinginviterequest.ts +10 -0
- package/src/models/components/residual.ts +31 -9
- package/src/models/operations/getresidual.ts +3 -0
- package/src/models/operations/listresidualfees.ts +3 -0
|
@@ -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
|
-
*
|
|
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
|
-
|
|
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
|
});
|
|
@@ -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.
|