@moovio/sdk 0.16.3 → 0.16.4
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 +38 -11
- package/bin/mcp-server.js.map +11 -10
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/feeproperties.d.ts +6 -0
- package/models/components/feeproperties.d.ts.map +1 -1
- package/models/components/feeproperties.js +3 -0
- package/models/components/feeproperties.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/partnerpricing.d.ts +8 -4
- package/models/components/partnerpricing.d.ts.map +1 -1
- package/models/components/partnerpricing.js +2 -2
- package/models/components/partnerpricing.js.map +1 -1
- package/models/components/partnerpricingagreement.d.ts +7 -3
- package/models/components/partnerpricingagreement.d.ts.map +1 -1
- package/models/components/partnerpricingagreement.js +2 -2
- package/models/components/partnerpricingagreement.js.map +1 -1
- package/models/components/volumerange.d.ts +51 -0
- package/models/components/volumerange.d.ts.map +1 -0
- package/models/components/volumerange.js +76 -0
- package/models/components/volumerange.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/feeproperties.ts +13 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/partnerpricing.ts +10 -6
- package/src/models/components/partnerpricingagreement.ts +9 -5
- package/src/models/components/volumerange.ts +95 -0
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
export type PartnerPricing = {
|
|
34
34
|
planID: string;
|
|
35
35
|
/**
|
|
36
|
-
* The name of the
|
|
36
|
+
* The name of the partner pricing plan.
|
|
37
37
|
*/
|
|
38
38
|
name: string;
|
|
39
39
|
/**
|
|
@@ -41,9 +41,13 @@ export type PartnerPricing = {
|
|
|
41
41
|
*/
|
|
42
42
|
description?: string | undefined;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* The decimal-formatted numerical string of the revenue split for partner.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
*
|
|
48
|
+
* For example, 2.25% is '2.25'.
|
|
45
49
|
*/
|
|
46
|
-
revenueShare:
|
|
50
|
+
revenueShare: string;
|
|
47
51
|
/**
|
|
48
52
|
* Specifies the card processing pricing model
|
|
49
53
|
*/
|
|
@@ -69,7 +73,7 @@ export const PartnerPricing$inboundSchema: z.ZodType<
|
|
|
69
73
|
planID: z.string(),
|
|
70
74
|
name: z.string(),
|
|
71
75
|
description: z.string().optional(),
|
|
72
|
-
revenueShare: z.
|
|
76
|
+
revenueShare: z.string(),
|
|
73
77
|
cardAcquiringModel: CardAcquiringModel$inboundSchema,
|
|
74
78
|
billableFees: z.array(BillableFee$inboundSchema),
|
|
75
79
|
minimumCommitment: MinimumCommitment$inboundSchema,
|
|
@@ -82,7 +86,7 @@ export type PartnerPricing$Outbound = {
|
|
|
82
86
|
planID: string;
|
|
83
87
|
name: string;
|
|
84
88
|
description?: string | undefined;
|
|
85
|
-
revenueShare:
|
|
89
|
+
revenueShare: string;
|
|
86
90
|
cardAcquiringModel: string;
|
|
87
91
|
billableFees: Array<BillableFee$Outbound>;
|
|
88
92
|
minimumCommitment: MinimumCommitment$Outbound;
|
|
@@ -99,7 +103,7 @@ export const PartnerPricing$outboundSchema: z.ZodType<
|
|
|
99
103
|
planID: z.string(),
|
|
100
104
|
name: z.string(),
|
|
101
105
|
description: z.string().optional(),
|
|
102
|
-
revenueShare: z.
|
|
106
|
+
revenueShare: z.string(),
|
|
103
107
|
cardAcquiringModel: CardAcquiringModel$outboundSchema,
|
|
104
108
|
billableFees: z.array(BillableFee$outboundSchema),
|
|
105
109
|
minimumCommitment: MinimumCommitment$outboundSchema,
|
|
@@ -63,9 +63,13 @@ export type PartnerPricingAgreement = {
|
|
|
63
63
|
*/
|
|
64
64
|
monthlyPlatformFee: MonthlyPlatformFee;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* The decimal-formatted numerical string of the revenue split for partner.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
*
|
|
70
|
+
* For example, 2.25% is '2.25'.
|
|
67
71
|
*/
|
|
68
|
-
revenueShare:
|
|
72
|
+
revenueShare: string;
|
|
69
73
|
};
|
|
70
74
|
|
|
71
75
|
/** @internal */
|
|
@@ -85,7 +89,7 @@ export const PartnerPricingAgreement$inboundSchema: z.ZodType<
|
|
|
85
89
|
billableFees: z.array(BillableFee$inboundSchema),
|
|
86
90
|
minimumCommitment: MinimumCommitment$inboundSchema,
|
|
87
91
|
monthlyPlatformFee: MonthlyPlatformFee$inboundSchema,
|
|
88
|
-
revenueShare: z.
|
|
92
|
+
revenueShare: z.string(),
|
|
89
93
|
});
|
|
90
94
|
|
|
91
95
|
/** @internal */
|
|
@@ -101,7 +105,7 @@ export type PartnerPricingAgreement$Outbound = {
|
|
|
101
105
|
billableFees: Array<BillableFee$Outbound>;
|
|
102
106
|
minimumCommitment: MinimumCommitment$Outbound;
|
|
103
107
|
monthlyPlatformFee: MonthlyPlatformFee$Outbound;
|
|
104
|
-
revenueShare:
|
|
108
|
+
revenueShare: string;
|
|
105
109
|
};
|
|
106
110
|
|
|
107
111
|
/** @internal */
|
|
@@ -121,7 +125,7 @@ export const PartnerPricingAgreement$outboundSchema: z.ZodType<
|
|
|
121
125
|
billableFees: z.array(BillableFee$outboundSchema),
|
|
122
126
|
minimumCommitment: MinimumCommitment$outboundSchema,
|
|
123
127
|
monthlyPlatformFee: MonthlyPlatformFee$outboundSchema,
|
|
124
|
-
revenueShare: z.
|
|
128
|
+
revenueShare: z.string(),
|
|
125
129
|
});
|
|
126
130
|
|
|
127
131
|
/**
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AmountDecimal,
|
|
11
|
+
AmountDecimal$inboundSchema,
|
|
12
|
+
AmountDecimal$Outbound,
|
|
13
|
+
AmountDecimal$outboundSchema,
|
|
14
|
+
} from "./amountdecimal.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Defines the volume ranges for tiered pricing models.
|
|
18
|
+
*/
|
|
19
|
+
export type VolumeRange = {
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the lower value of a tier for the fee.
|
|
22
|
+
*/
|
|
23
|
+
fromValue: number;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the upper value of a tier for the fee.
|
|
26
|
+
*/
|
|
27
|
+
toValue?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The flat amount for a whole tier of the fee.
|
|
30
|
+
*/
|
|
31
|
+
flatAmount: AmountDecimal;
|
|
32
|
+
/**
|
|
33
|
+
* The unit price for a specific tier of the fee.
|
|
34
|
+
*/
|
|
35
|
+
perUnitAmount: AmountDecimal;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const VolumeRange$inboundSchema: z.ZodType<
|
|
40
|
+
VolumeRange,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
fromValue: z.number().int(),
|
|
45
|
+
toValue: z.number().int().optional(),
|
|
46
|
+
flatAmount: AmountDecimal$inboundSchema,
|
|
47
|
+
perUnitAmount: AmountDecimal$inboundSchema,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type VolumeRange$Outbound = {
|
|
52
|
+
fromValue: number;
|
|
53
|
+
toValue?: number | undefined;
|
|
54
|
+
flatAmount: AmountDecimal$Outbound;
|
|
55
|
+
perUnitAmount: AmountDecimal$Outbound;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const VolumeRange$outboundSchema: z.ZodType<
|
|
60
|
+
VolumeRange$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
VolumeRange
|
|
63
|
+
> = z.object({
|
|
64
|
+
fromValue: z.number().int(),
|
|
65
|
+
toValue: z.number().int().optional(),
|
|
66
|
+
flatAmount: AmountDecimal$outboundSchema,
|
|
67
|
+
perUnitAmount: AmountDecimal$outboundSchema,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace VolumeRange$ {
|
|
75
|
+
/** @deprecated use `VolumeRange$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = VolumeRange$inboundSchema;
|
|
77
|
+
/** @deprecated use `VolumeRange$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = VolumeRange$outboundSchema;
|
|
79
|
+
/** @deprecated use `VolumeRange$Outbound` instead. */
|
|
80
|
+
export type Outbound = VolumeRange$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function volumeRangeToJSON(volumeRange: VolumeRange): string {
|
|
84
|
+
return JSON.stringify(VolumeRange$outboundSchema.parse(volumeRange));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function volumeRangeFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<VolumeRange, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => VolumeRange$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'VolumeRange' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|