@paygentic/sdk 0.8.3 → 0.8.5
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/README.md +3 -3
- package/dist/commonjs/funcs/{feesGetPrice.d.ts → plansListPlanVersions.d.ts} +4 -5
- package/dist/commonjs/funcs/plansListPlanVersions.d.ts.map +1 -0
- package/dist/commonjs/funcs/{feesGetPrice.js → plansListPlanVersions.js} +15 -15
- package/dist/commonjs/funcs/plansListPlanVersions.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/createprice.d.ts +3 -4
- package/dist/commonjs/models/operations/createprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createprice.js +1 -2
- package/dist/commonjs/models/operations/createprice.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listplanversions.d.ts +46 -0
- package/dist/commonjs/models/operations/listplanversions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{getfeeprice.js → listplanversions.js} +25 -7
- package/dist/commonjs/models/operations/listplanversions.js.map +1 -0
- package/dist/commonjs/models/operations/updateprice.d.ts +3 -4
- package/dist/commonjs/models/operations/updateprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateprice.js +1 -2
- package/dist/commonjs/models/operations/updateprice.js.map +1 -1
- package/dist/commonjs/models/plan.d.ts +5 -1
- package/dist/commonjs/models/plan.d.ts.map +1 -1
- package/dist/commonjs/models/plan.js +3 -1
- package/dist/commonjs/models/plan.js.map +1 -1
- package/dist/commonjs/models/planversionsummary.d.ts +55 -0
- package/dist/commonjs/models/planversionsummary.d.ts.map +1 -0
- package/dist/commonjs/models/{feeprice.js → planversionsummary.js} +22 -32
- package/dist/commonjs/models/planversionsummary.js.map +1 -0
- package/dist/commonjs/models/price.d.ts +4 -5
- package/dist/commonjs/models/price.d.ts.map +1 -1
- package/dist/commonjs/models/price.js +4 -6
- package/dist/commonjs/models/price.js.map +1 -1
- package/dist/commonjs/models/reconciledfeatureadded.d.ts +1 -1
- package/dist/commonjs/models/schemasprice.d.ts +0 -1
- package/dist/commonjs/models/schemasprice.d.ts.map +1 -1
- package/dist/commonjs/models/schemasprice.js +0 -1
- package/dist/commonjs/models/schemasprice.js.map +1 -1
- package/dist/commonjs/models/subscription.d.ts +8 -0
- package/dist/commonjs/models/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/subscription.js +2 -0
- package/dist/commonjs/models/subscription.js.map +1 -1
- package/dist/commonjs/sdk/fees.d.ts +0 -7
- package/dist/commonjs/sdk/fees.d.ts.map +1 -1
- package/dist/commonjs/sdk/fees.js +0 -10
- package/dist/commonjs/sdk/fees.js.map +1 -1
- package/dist/commonjs/sdk/plans.d.ts +7 -0
- package/dist/commonjs/sdk/plans.d.ts.map +1 -1
- package/dist/commonjs/sdk/plans.js +10 -0
- package/dist/commonjs/sdk/plans.js.map +1 -1
- package/dist/esm/funcs/{feesGetPrice.d.ts → plansListPlanVersions.d.ts} +4 -5
- package/dist/esm/funcs/plansListPlanVersions.d.ts.map +1 -0
- package/dist/esm/funcs/{feesGetPrice.js → plansListPlanVersions.js} +15 -15
- package/dist/esm/funcs/plansListPlanVersions.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/createprice.d.ts +3 -4
- package/dist/esm/models/operations/createprice.d.ts.map +1 -1
- package/dist/esm/models/operations/createprice.js +1 -2
- package/dist/esm/models/operations/createprice.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listplanversions.d.ts +46 -0
- package/dist/esm/models/operations/listplanversions.d.ts.map +1 -0
- package/dist/esm/models/operations/listplanversions.js +30 -0
- package/dist/esm/models/operations/listplanversions.js.map +1 -0
- package/dist/esm/models/operations/updateprice.d.ts +3 -4
- package/dist/esm/models/operations/updateprice.d.ts.map +1 -1
- package/dist/esm/models/operations/updateprice.js +1 -2
- package/dist/esm/models/operations/updateprice.js.map +1 -1
- package/dist/esm/models/plan.d.ts +5 -1
- package/dist/esm/models/plan.d.ts.map +1 -1
- package/dist/esm/models/plan.js +3 -1
- package/dist/esm/models/plan.js.map +1 -1
- package/dist/esm/models/planversionsummary.d.ts +55 -0
- package/dist/esm/models/planversionsummary.d.ts.map +1 -0
- package/dist/esm/models/planversionsummary.js +35 -0
- package/dist/esm/models/planversionsummary.js.map +1 -0
- package/dist/esm/models/price.d.ts +4 -5
- package/dist/esm/models/price.d.ts.map +1 -1
- package/dist/esm/models/price.js +3 -5
- package/dist/esm/models/price.js.map +1 -1
- package/dist/esm/models/reconciledfeatureadded.d.ts +1 -1
- package/dist/esm/models/schemasprice.d.ts +0 -1
- package/dist/esm/models/schemasprice.d.ts.map +1 -1
- package/dist/esm/models/schemasprice.js +0 -1
- package/dist/esm/models/schemasprice.js.map +1 -1
- package/dist/esm/models/subscription.d.ts +8 -0
- package/dist/esm/models/subscription.d.ts.map +1 -1
- package/dist/esm/models/subscription.js +2 -0
- package/dist/esm/models/subscription.js.map +1 -1
- package/dist/esm/sdk/fees.d.ts +0 -7
- package/dist/esm/sdk/fees.d.ts.map +1 -1
- package/dist/esm/sdk/fees.js +0 -10
- package/dist/esm/sdk/fees.js.map +1 -1
- package/dist/esm/sdk/plans.d.ts +7 -0
- package/dist/esm/sdk/plans.d.ts.map +1 -1
- package/dist/esm/sdk/plans.js +10 -0
- package/dist/esm/sdk/plans.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{feesGetPrice.ts → plansListPlanVersions.ts} +25 -20
- package/src/lib/config.ts +2 -2
- package/src/models/index.ts +1 -1
- package/src/models/operations/createprice.ts +3 -4
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/listplanversions.ts +91 -0
- package/src/models/operations/updateprice.ts +3 -4
- package/src/models/plan.ts +8 -2
- package/src/models/planversionsummary.ts +95 -0
- package/src/models/price.ts +7 -7
- package/src/models/reconciledfeatureadded.ts +1 -1
- package/src/models/schemasprice.ts +0 -1
- package/src/models/subscription.ts +10 -0
- package/src/sdk/fees.ts +0 -18
- package/src/sdk/plans.ts +18 -0
- package/dist/commonjs/funcs/feesGetPrice.d.ts.map +0 -1
- package/dist/commonjs/funcs/feesGetPrice.js.map +0 -1
- package/dist/commonjs/models/feeprice.d.ts +0 -76
- package/dist/commonjs/models/feeprice.d.ts.map +0 -1
- package/dist/commonjs/models/feeprice.js.map +0 -1
- package/dist/commonjs/models/operations/getfeeprice.d.ts +0 -20
- package/dist/commonjs/models/operations/getfeeprice.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getfeeprice.js.map +0 -1
- package/dist/esm/funcs/feesGetPrice.d.ts.map +0 -1
- package/dist/esm/funcs/feesGetPrice.js.map +0 -1
- package/dist/esm/models/feeprice.d.ts +0 -76
- package/dist/esm/models/feeprice.d.ts.map +0 -1
- package/dist/esm/models/feeprice.js +0 -44
- package/dist/esm/models/feeprice.js.map +0 -1
- package/dist/esm/models/operations/getfeeprice.d.ts +0 -20
- package/dist/esm/models/operations/getfeeprice.d.ts.map +0 -1
- package/dist/esm/models/operations/getfeeprice.js +0 -13
- package/dist/esm/models/operations/getfeeprice.js.map +0 -1
- package/src/models/feeprice.ts +0 -129
- package/src/models/operations/getfeeprice.ts +0 -40
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { safeParse } from "../lib/schemas.js";
|
|
6
|
-
/**
|
|
7
|
-
* The pricing model. Fees only support standard pricing.
|
|
8
|
-
*/
|
|
9
|
-
export const FeePriceModel = {
|
|
10
|
-
Standard: "standard",
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* When the fee is charged relative to the billing period.
|
|
14
|
-
*/
|
|
15
|
-
export const FeePricePaymentTerm = {
|
|
16
|
-
InAdvance: "in_advance",
|
|
17
|
-
InArrears: "in_arrears",
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const FeePriceModel$inboundSchema = z.nativeEnum(FeePriceModel);
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const FeePricePaymentTerm$inboundSchema = z.nativeEnum(FeePricePaymentTerm);
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const Properties$inboundSchema = z.object({
|
|
25
|
-
unitPrice: z.string(),
|
|
26
|
-
});
|
|
27
|
-
export function propertiesFromJSON(jsonString) {
|
|
28
|
-
return safeParse(jsonString, (x) => Properties$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Properties' from JSON`);
|
|
29
|
-
}
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const FeePrice$inboundSchema = z.object({
|
|
32
|
-
id: z.string(),
|
|
33
|
-
feeId: z.string(),
|
|
34
|
-
model: FeePriceModel$inboundSchema,
|
|
35
|
-
paymentTerm: FeePricePaymentTerm$inboundSchema,
|
|
36
|
-
invoiceDisplayName: z.string(),
|
|
37
|
-
properties: z.lazy(() => Properties$inboundSchema),
|
|
38
|
-
quantity: z.number().int(),
|
|
39
|
-
taxRate: z.number().optional(),
|
|
40
|
-
});
|
|
41
|
-
export function feePriceFromJSON(jsonString) {
|
|
42
|
-
return safeParse(jsonString, (x) => FeePrice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeePrice' from JSON`);
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=feeprice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feeprice.js","sourceRoot":"","sources":["../../../src/models/feeprice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAK9C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;CACf,CAAC;AAgDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAEpC,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAEhC,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAEtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,kBAAkB,CAChC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,2BAA2B;IAClC,WAAW,EAAE,iCAAiC;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type GetFeePriceRequest = {
|
|
3
|
-
/**
|
|
4
|
-
* The unique identifier of the fee.
|
|
5
|
-
*/
|
|
6
|
-
id: string;
|
|
7
|
-
/**
|
|
8
|
-
* The unique identifier of the subscription.
|
|
9
|
-
*/
|
|
10
|
-
subscriptionId: string;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type GetFeePriceRequest$Outbound = {
|
|
14
|
-
id: string;
|
|
15
|
-
subscriptionId: string;
|
|
16
|
-
};
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const GetFeePriceRequest$outboundSchema: z.ZodType<GetFeePriceRequest$Outbound, z.ZodTypeDef, GetFeePriceRequest>;
|
|
19
|
-
export declare function getFeePriceRequestToJSON(getFeePriceRequest: GetFeePriceRequest): string;
|
|
20
|
-
//# sourceMappingURL=getfeeprice.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getfeeprice.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getfeeprice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAIlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
/** @internal */
|
|
6
|
-
export const GetFeePriceRequest$outboundSchema = z.object({
|
|
7
|
-
id: z.string(),
|
|
8
|
-
subscriptionId: z.string(),
|
|
9
|
-
});
|
|
10
|
-
export function getFeePriceRequestToJSON(getFeePriceRequest) {
|
|
11
|
-
return JSON.stringify(GetFeePriceRequest$outboundSchema.parse(getFeePriceRequest));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=getfeeprice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getfeeprice.js","sourceRoot":"","sources":["../../../../src/models/operations/getfeeprice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAmB5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
package/src/models/feeprice.ts
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The pricing model. Fees only support standard pricing.
|
|
13
|
-
*/
|
|
14
|
-
export const FeePriceModel = {
|
|
15
|
-
Standard: "standard",
|
|
16
|
-
} as const;
|
|
17
|
-
/**
|
|
18
|
-
* The pricing model. Fees only support standard pricing.
|
|
19
|
-
*/
|
|
20
|
-
export type FeePriceModel = ClosedEnum<typeof FeePriceModel>;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* When the fee is charged relative to the billing period.
|
|
24
|
-
*/
|
|
25
|
-
export const FeePricePaymentTerm = {
|
|
26
|
-
InAdvance: "in_advance",
|
|
27
|
-
InArrears: "in_arrears",
|
|
28
|
-
} as const;
|
|
29
|
-
/**
|
|
30
|
-
* When the fee is charged relative to the billing period.
|
|
31
|
-
*/
|
|
32
|
-
export type FeePricePaymentTerm = ClosedEnum<typeof FeePricePaymentTerm>;
|
|
33
|
-
|
|
34
|
-
export type Properties = {
|
|
35
|
-
/**
|
|
36
|
-
* The unit price in dollars (e.g., '10.00'). Per unit. Total per period = quantity × unitPrice; see the `quantity` field.
|
|
37
|
-
*/
|
|
38
|
-
unitPrice: string;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The price configuration for a fee within a subscription context.
|
|
43
|
-
*/
|
|
44
|
-
export type FeePrice = {
|
|
45
|
-
/**
|
|
46
|
-
* The unique identifier of the price.
|
|
47
|
-
*/
|
|
48
|
-
id: string;
|
|
49
|
-
/**
|
|
50
|
-
* The unique identifier of the fee.
|
|
51
|
-
*/
|
|
52
|
-
feeId: string;
|
|
53
|
-
/**
|
|
54
|
-
* The pricing model. Fees only support standard pricing.
|
|
55
|
-
*/
|
|
56
|
-
model: FeePriceModel;
|
|
57
|
-
/**
|
|
58
|
-
* When the fee is charged relative to the billing period.
|
|
59
|
-
*/
|
|
60
|
-
paymentTerm: FeePricePaymentTerm;
|
|
61
|
-
/**
|
|
62
|
-
* The name to display on invoices for this fee.
|
|
63
|
-
*/
|
|
64
|
-
invoiceDisplayName: string;
|
|
65
|
-
properties: Properties;
|
|
66
|
-
/**
|
|
67
|
-
* Quantity for invoice line items. Total per period = quantity × unitPrice. Only supported for fee prices; metered prices derive quantity from usage. Defaults to 1.
|
|
68
|
-
*/
|
|
69
|
-
quantity: number;
|
|
70
|
-
/**
|
|
71
|
-
* The tax rate as a percentage (e.g., 10 for 10%).
|
|
72
|
-
*/
|
|
73
|
-
taxRate?: number | undefined;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
/** @internal */
|
|
77
|
-
export const FeePriceModel$inboundSchema: z.ZodNativeEnum<
|
|
78
|
-
typeof FeePriceModel
|
|
79
|
-
> = z.nativeEnum(FeePriceModel);
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const FeePricePaymentTerm$inboundSchema: z.ZodNativeEnum<
|
|
83
|
-
typeof FeePricePaymentTerm
|
|
84
|
-
> = z.nativeEnum(FeePricePaymentTerm);
|
|
85
|
-
|
|
86
|
-
/** @internal */
|
|
87
|
-
export const Properties$inboundSchema: z.ZodType<
|
|
88
|
-
Properties,
|
|
89
|
-
z.ZodTypeDef,
|
|
90
|
-
unknown
|
|
91
|
-
> = z.object({
|
|
92
|
-
unitPrice: z.string(),
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
export function propertiesFromJSON(
|
|
96
|
-
jsonString: string,
|
|
97
|
-
): SafeParseResult<Properties, SDKValidationError> {
|
|
98
|
-
return safeParse(
|
|
99
|
-
jsonString,
|
|
100
|
-
(x) => Properties$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
-
`Failed to parse 'Properties' from JSON`,
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export const FeePrice$inboundSchema: z.ZodType<
|
|
107
|
-
FeePrice,
|
|
108
|
-
z.ZodTypeDef,
|
|
109
|
-
unknown
|
|
110
|
-
> = z.object({
|
|
111
|
-
id: z.string(),
|
|
112
|
-
feeId: z.string(),
|
|
113
|
-
model: FeePriceModel$inboundSchema,
|
|
114
|
-
paymentTerm: FeePricePaymentTerm$inboundSchema,
|
|
115
|
-
invoiceDisplayName: z.string(),
|
|
116
|
-
properties: z.lazy(() => Properties$inboundSchema),
|
|
117
|
-
quantity: z.number().int(),
|
|
118
|
-
taxRate: z.number().optional(),
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
export function feePriceFromJSON(
|
|
122
|
-
jsonString: string,
|
|
123
|
-
): SafeParseResult<FeePrice, SDKValidationError> {
|
|
124
|
-
return safeParse(
|
|
125
|
-
jsonString,
|
|
126
|
-
(x) => FeePrice$inboundSchema.parse(JSON.parse(x)),
|
|
127
|
-
`Failed to parse 'FeePrice' from JSON`,
|
|
128
|
-
);
|
|
129
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
|
|
7
|
-
export type GetFeePriceRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* The unique identifier of the fee.
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
/**
|
|
13
|
-
* The unique identifier of the subscription.
|
|
14
|
-
*/
|
|
15
|
-
subscriptionId: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/** @internal */
|
|
19
|
-
export type GetFeePriceRequest$Outbound = {
|
|
20
|
-
id: string;
|
|
21
|
-
subscriptionId: string;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const GetFeePriceRequest$outboundSchema: z.ZodType<
|
|
26
|
-
GetFeePriceRequest$Outbound,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
GetFeePriceRequest
|
|
29
|
-
> = z.object({
|
|
30
|
-
id: z.string(),
|
|
31
|
-
subscriptionId: z.string(),
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export function getFeePriceRequestToJSON(
|
|
35
|
-
getFeePriceRequest: GetFeePriceRequest,
|
|
36
|
-
): string {
|
|
37
|
-
return JSON.stringify(
|
|
38
|
-
GetFeePriceRequest$outboundSchema.parse(getFeePriceRequest),
|
|
39
|
-
);
|
|
40
|
-
}
|