@paygentic/sdk 0.7.20 → 0.8.0
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/dist/commonjs/funcs/pricesCreate.js +2 -2
- package/dist/commonjs/funcs/pricesCreate.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/meteredentitlementdetail.d.ts +9 -5
- package/dist/commonjs/models/meteredentitlementdetail.d.ts.map +1 -1
- package/dist/commonjs/models/meteredentitlementdetail.js +1 -0
- package/dist/commonjs/models/meteredentitlementdetail.js.map +1 -1
- package/dist/commonjs/models/meteredentitlementlistitem.d.ts +9 -5
- package/dist/commonjs/models/meteredentitlementlistitem.d.ts.map +1 -1
- package/dist/commonjs/models/meteredentitlementlistitem.js +1 -0
- package/dist/commonjs/models/meteredentitlementlistitem.js.map +1 -1
- package/dist/commonjs/models/operations/createplan.d.ts +3 -3
- package/dist/commonjs/models/operations/createplan.js +2 -2
- package/dist/commonjs/models/operations/createprice.d.ts +7 -17
- package/dist/commonjs/models/operations/createprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createprice.js +3 -13
- package/dist/commonjs/models/operations/createprice.js.map +1 -1
- package/dist/commonjs/models/operations/updateprice.d.ts +7 -17
- package/dist/commonjs/models/operations/updateprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateprice.js +3 -13
- package/dist/commonjs/models/operations/updateprice.js.map +1 -1
- package/dist/commonjs/models/price.d.ts +4 -4
- package/dist/commonjs/models/price.d.ts.map +1 -1
- package/dist/commonjs/models/price.js +5 -5
- package/dist/commonjs/models/price.js.map +1 -1
- package/dist/commonjs/models/pricemodel.d.ts +18 -0
- package/dist/commonjs/models/pricemodel.d.ts.map +1 -0
- package/dist/commonjs/models/pricemodel.js +52 -0
- package/dist/commonjs/models/pricemodel.js.map +1 -0
- package/dist/commonjs/models/pricemodelinput.d.ts +15 -0
- package/dist/commonjs/models/pricemodelinput.d.ts.map +1 -0
- package/dist/commonjs/models/pricemodelinput.js +49 -0
- package/dist/commonjs/models/pricemodelinput.js.map +1 -0
- package/dist/commonjs/models/schemasprice.d.ts +9 -10
- package/dist/commonjs/models/schemasprice.d.ts.map +1 -1
- package/dist/commonjs/models/schemasprice.js +4 -10
- package/dist/commonjs/models/schemasprice.js.map +1 -1
- package/dist/esm/funcs/pricesCreate.js +2 -2
- package/dist/esm/funcs/pricesCreate.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/meteredentitlementdetail.d.ts +9 -5
- package/dist/esm/models/meteredentitlementdetail.d.ts.map +1 -1
- package/dist/esm/models/meteredentitlementdetail.js +1 -0
- package/dist/esm/models/meteredentitlementdetail.js.map +1 -1
- package/dist/esm/models/meteredentitlementlistitem.d.ts +9 -5
- package/dist/esm/models/meteredentitlementlistitem.d.ts.map +1 -1
- package/dist/esm/models/meteredentitlementlistitem.js +1 -0
- package/dist/esm/models/meteredentitlementlistitem.js.map +1 -1
- package/dist/esm/models/operations/createplan.d.ts +3 -3
- package/dist/esm/models/operations/createplan.js +2 -2
- package/dist/esm/models/operations/createprice.d.ts +7 -17
- package/dist/esm/models/operations/createprice.d.ts.map +1 -1
- package/dist/esm/models/operations/createprice.js +2 -12
- package/dist/esm/models/operations/createprice.js.map +1 -1
- package/dist/esm/models/operations/updateprice.d.ts +7 -17
- package/dist/esm/models/operations/updateprice.d.ts.map +1 -1
- package/dist/esm/models/operations/updateprice.js +2 -12
- package/dist/esm/models/operations/updateprice.js.map +1 -1
- package/dist/esm/models/price.d.ts +4 -4
- package/dist/esm/models/price.d.ts.map +1 -1
- package/dist/esm/models/price.js +4 -4
- package/dist/esm/models/price.js.map +1 -1
- package/dist/esm/models/pricemodel.d.ts +18 -0
- package/dist/esm/models/pricemodel.d.ts.map +1 -0
- package/dist/esm/models/pricemodel.js +16 -0
- package/dist/esm/models/pricemodel.js.map +1 -0
- package/dist/esm/models/pricemodelinput.d.ts +15 -0
- package/dist/esm/models/pricemodelinput.d.ts.map +1 -0
- package/dist/esm/models/pricemodelinput.js +13 -0
- package/dist/esm/models/pricemodelinput.js.map +1 -0
- package/dist/esm/models/schemasprice.d.ts +9 -10
- package/dist/esm/models/schemasprice.d.ts.map +1 -1
- package/dist/esm/models/schemasprice.js +3 -9
- package/dist/esm/models/schemasprice.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/pricesCreate.ts +2 -2
- package/src/lib/config.ts +2 -2
- package/src/models/index.ts +2 -0
- package/src/models/meteredentitlementdetail.ts +10 -5
- package/src/models/meteredentitlementlistitem.ts +10 -5
- package/src/models/operations/createplan.ts +4 -4
- package/src/models/operations/createprice.ts +9 -22
- package/src/models/operations/updateprice.ts +9 -22
- package/src/models/price.ts +6 -6
- package/src/models/pricemodel.ts +28 -0
- package/src/models/pricemodelinput.ts +22 -0
- package/src/models/schemasprice.ts +11 -15
|
@@ -37,14 +37,14 @@ export declare const CreatePlanTaxBehavior: {
|
|
|
37
37
|
*/
|
|
38
38
|
export type CreatePlanTaxBehavior = ClosedEnum<typeof CreatePlanTaxBehavior>;
|
|
39
39
|
/**
|
|
40
|
-
* Billing engine version.
|
|
40
|
+
* Billing engine version. Only 1 (Standard, line-item billing with metered usage support) is accepted for new plans; omitting the field defaults to 1. 0 (Legacy, fee-schedule billing) is rejected — it exists only on plans created before this restriction.
|
|
41
41
|
*/
|
|
42
42
|
export declare const BillingVersion: {
|
|
43
43
|
readonly Zero: 0;
|
|
44
44
|
readonly One: 1;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
|
-
* Billing engine version.
|
|
47
|
+
* Billing engine version. Only 1 (Standard, line-item billing with metered usage support) is accepted for new plans; omitting the field defaults to 1. 0 (Legacy, fee-schedule billing) is rejected — it exists only on plans created before this restriction.
|
|
48
48
|
*/
|
|
49
49
|
export type BillingVersion = ClosedEnum<typeof BillingVersion>;
|
|
50
50
|
export type CreatePlanRequest = {
|
|
@@ -105,7 +105,7 @@ export type CreatePlanRequest = {
|
|
|
105
105
|
*/
|
|
106
106
|
renewalReminderDays?: number | undefined;
|
|
107
107
|
/**
|
|
108
|
-
* Billing engine version.
|
|
108
|
+
* Billing engine version. Only 1 (Standard, line-item billing with metered usage support) is accepted for new plans; omitting the field defaults to 1. 0 (Legacy, fee-schedule billing) is rejected — it exists only on plans created before this restriction.
|
|
109
109
|
*/
|
|
110
110
|
billingVersion?: BillingVersion | undefined;
|
|
111
111
|
/**
|
|
@@ -27,7 +27,7 @@ export const CreatePlanTaxBehavior = {
|
|
|
27
27
|
Inclusive: "inclusive",
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Billing engine version.
|
|
30
|
+
* Billing engine version. Only 1 (Standard, line-item billing with metered usage support) is accepted for new plans; omitting the field defaults to 1. 0 (Legacy, fee-schedule billing) is rejected — it exists only on plans created before this restriction.
|
|
31
31
|
*/
|
|
32
32
|
export const BillingVersion = {
|
|
33
33
|
Zero: 0,
|
|
@@ -57,7 +57,7 @@ export const CreatePlanRequest$outboundSchema = z.object({
|
|
|
57
57
|
taxBehavior: CreatePlanTaxBehavior$outboundSchema.default("exclusive"),
|
|
58
58
|
renewalReminderEnabled: z.boolean().default(true),
|
|
59
59
|
renewalReminderDays: z.number().int().default(3),
|
|
60
|
-
billingVersion: BillingVersion$outboundSchema.default(
|
|
60
|
+
billingVersion: BillingVersion$outboundSchema.default(1),
|
|
61
61
|
billingAnchor: z.nullable(z.date().transform(v => v.toISOString()))
|
|
62
62
|
.optional(),
|
|
63
63
|
});
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import * as models from "../index.js";
|
|
4
|
-
/**
|
|
5
|
-
* Pricing calculation model. Required for billable metrics, optional for fees (defaults to 'standard').
|
|
6
|
-
*/
|
|
7
|
-
export declare const CreatePriceModel: {
|
|
8
|
-
readonly Standard: "standard";
|
|
9
|
-
readonly Dynamic: "dynamic";
|
|
10
|
-
readonly Volume: "volume";
|
|
11
|
-
readonly Percentage: "percentage";
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Pricing calculation model. Required for billable metrics, optional for fees (defaults to 'standard').
|
|
15
|
-
*/
|
|
16
|
-
export type CreatePriceModel = ClosedEnum<typeof CreatePriceModel>;
|
|
17
4
|
/**
|
|
18
5
|
* Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
|
|
19
6
|
*/
|
|
@@ -36,9 +23,13 @@ export type CreatePriceRequest = {
|
|
|
36
23
|
*/
|
|
37
24
|
feeId?: string | undefined;
|
|
38
25
|
/**
|
|
39
|
-
*
|
|
26
|
+
* Unique identifier for a pricing unit
|
|
27
|
+
*/
|
|
28
|
+
pricingUnitId?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Pricing calculation model. Required for billable metrics, optional for fees (defaults to 'standard'). Only 'standard' is accepted; for percentage/revenue-share use 'standard' with a unit-price multiplier. Legacy prices using 'dynamic'/'volume'/'percentage' stay readable and billable but cannot be created.
|
|
40
31
|
*/
|
|
41
|
-
model?:
|
|
32
|
+
model?: models.PriceModelInput | undefined;
|
|
42
33
|
/**
|
|
43
34
|
* Line item label shown on customer invoices. Sample values: 'Claude Token Consumption', 'Storage Usage (GB)', 'Inference API Calls', 'Image Generation Count', 'Training Compute Hours', 'Data Transfer (TB)'
|
|
44
35
|
*/
|
|
@@ -63,13 +54,12 @@ export type CreatePriceRequest = {
|
|
|
63
54
|
quantity?: number | undefined;
|
|
64
55
|
};
|
|
65
56
|
/** @internal */
|
|
66
|
-
export declare const CreatePriceModel$outboundSchema: z.ZodNativeEnum<typeof CreatePriceModel>;
|
|
67
|
-
/** @internal */
|
|
68
57
|
export declare const CreatePricePaymentTerm$outboundSchema: z.ZodNativeEnum<typeof CreatePricePaymentTerm>;
|
|
69
58
|
/** @internal */
|
|
70
59
|
export type CreatePriceRequest$Outbound = {
|
|
71
60
|
billableMetricId?: string | undefined;
|
|
72
61
|
feeId?: string | undefined;
|
|
62
|
+
pricingUnitId?: string | undefined;
|
|
73
63
|
model?: string | undefined;
|
|
74
64
|
invoiceDisplayName: string;
|
|
75
65
|
paymentTerm: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createprice.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/createprice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"createprice.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/createprice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MA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;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAalB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -3,15 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import * as models from "../index.js";
|
|
6
|
-
/**
|
|
7
|
-
* Pricing calculation model. Required for billable metrics, optional for fees (defaults to 'standard').
|
|
8
|
-
*/
|
|
9
|
-
export const CreatePriceModel = {
|
|
10
|
-
Standard: "standard",
|
|
11
|
-
Dynamic: "dynamic",
|
|
12
|
-
Volume: "volume",
|
|
13
|
-
Percentage: "percentage",
|
|
14
|
-
};
|
|
15
6
|
/**
|
|
16
7
|
* Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
|
|
17
8
|
*/
|
|
@@ -21,14 +12,13 @@ export const CreatePricePaymentTerm = {
|
|
|
21
12
|
InAdvance: "in_advance",
|
|
22
13
|
};
|
|
23
14
|
/** @internal */
|
|
24
|
-
export const CreatePriceModel$outboundSchema = z.nativeEnum(CreatePriceModel);
|
|
25
|
-
/** @internal */
|
|
26
15
|
export const CreatePricePaymentTerm$outboundSchema = z.nativeEnum(CreatePricePaymentTerm);
|
|
27
16
|
/** @internal */
|
|
28
17
|
export const CreatePriceRequest$outboundSchema = z.object({
|
|
29
18
|
billableMetricId: z.string().optional(),
|
|
30
19
|
feeId: z.string().optional(),
|
|
31
|
-
|
|
20
|
+
pricingUnitId: z.string().optional(),
|
|
21
|
+
model: models.PriceModelInput$outboundSchema.optional(),
|
|
32
22
|
invoiceDisplayName: z.string(),
|
|
33
23
|
paymentTerm: CreatePricePaymentTerm$outboundSchema,
|
|
34
24
|
billingCadence: z.nullable(z.string()).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createprice.js","sourceRoot":"","sources":["../../../../src/models/operations/createprice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"createprice.js","sourceRoot":"","sources":["../../../../src/models/operations/createprice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;CACf,CAAC;AA+CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAE9C,CAAC,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;AAiBzC,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,MAAM,CAAC,8BAA8B,CAAC,QAAQ,EAAE;IACvD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,WAAW,EAAE,qCAAqC;IAClD,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,MAAM,CAAC,mCAAmC;IACtD,OAAO,EAAE,MAAM,CAAC,gCAAgC,CAAC,QAAQ,EAAE;IAC3D,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import * as models from "../index.js";
|
|
4
|
-
/**
|
|
5
|
-
* The pricing model to be used, which can be standard, dynamic, volume-based, or percentage-based.
|
|
6
|
-
*/
|
|
7
|
-
export declare const UpdatePriceModel: {
|
|
8
|
-
readonly Standard: "standard";
|
|
9
|
-
readonly Dynamic: "dynamic";
|
|
10
|
-
readonly Volume: "volume";
|
|
11
|
-
readonly Percentage: "percentage";
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* The pricing model to be used, which can be standard, dynamic, volume-based, or percentage-based.
|
|
15
|
-
*/
|
|
16
|
-
export type UpdatePriceModel = ClosedEnum<typeof UpdatePriceModel>;
|
|
17
4
|
/**
|
|
18
5
|
* Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
|
|
19
6
|
*/
|
|
@@ -31,14 +18,18 @@ export type UpdatePriceRequestBody = {
|
|
|
31
18
|
* Unique identifier for a billable metric
|
|
32
19
|
*/
|
|
33
20
|
billableMetricId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Denominate this metered price in a pricing unit (credits). Set to a pricing unit ID to draw down a credit pool, null to revert to real currency, or omit to leave unchanged.
|
|
23
|
+
*/
|
|
24
|
+
pricingUnitId?: string | null | undefined;
|
|
34
25
|
/**
|
|
35
26
|
* Updated invoice line item label. Sample values: 'LLM Token Usage', 'Storage Charges', 'API Call Fees'
|
|
36
27
|
*/
|
|
37
28
|
invoiceDisplayName?: string | undefined;
|
|
38
29
|
/**
|
|
39
|
-
* The pricing model to
|
|
30
|
+
* The pricing model to set. Only 'standard' is accepted. Legacy 'dynamic'/'volume'/'percentage' prices can still be edited (other fields) but cannot be switched to those models. Percentage/revenue-share is expressed via 'standard' with a unit-price multiplier.
|
|
40
31
|
*/
|
|
41
|
-
model?:
|
|
32
|
+
model?: models.PriceModelInput | undefined;
|
|
42
33
|
properties?: models.PricePropertiesUnion | undefined;
|
|
43
34
|
/**
|
|
44
35
|
* Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
|
|
@@ -69,12 +60,11 @@ export type UpdatePriceRequest = {
|
|
|
69
60
|
requestBody: UpdatePriceRequestBody;
|
|
70
61
|
};
|
|
71
62
|
/** @internal */
|
|
72
|
-
export declare const UpdatePriceModel$outboundSchema: z.ZodNativeEnum<typeof UpdatePriceModel>;
|
|
73
|
-
/** @internal */
|
|
74
63
|
export declare const UpdatePricePaymentTerm$outboundSchema: z.ZodNativeEnum<typeof UpdatePricePaymentTerm>;
|
|
75
64
|
/** @internal */
|
|
76
65
|
export type UpdatePriceRequestBody$Outbound = {
|
|
77
66
|
billableMetricId?: string | undefined;
|
|
67
|
+
pricingUnitId?: string | null | undefined;
|
|
78
68
|
invoiceDisplayName?: string | undefined;
|
|
79
69
|
model?: string | undefined;
|
|
80
70
|
properties?: models.PricePropertiesUnion$Outbound | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateprice.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updateprice.ts"],"names":[],"mappings":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CAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAQlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -4,15 +4,6 @@
|
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import * as models from "../index.js";
|
|
7
|
-
/**
|
|
8
|
-
* The pricing model to be used, which can be standard, dynamic, volume-based, or percentage-based.
|
|
9
|
-
*/
|
|
10
|
-
export const UpdatePriceModel = {
|
|
11
|
-
Standard: "standard",
|
|
12
|
-
Dynamic: "dynamic",
|
|
13
|
-
Volume: "volume",
|
|
14
|
-
Percentage: "percentage",
|
|
15
|
-
};
|
|
16
7
|
/**
|
|
17
8
|
* Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
|
|
18
9
|
*/
|
|
@@ -22,14 +13,13 @@ export const UpdatePricePaymentTerm = {
|
|
|
22
13
|
InAdvance: "in_advance",
|
|
23
14
|
};
|
|
24
15
|
/** @internal */
|
|
25
|
-
export const UpdatePriceModel$outboundSchema = z.nativeEnum(UpdatePriceModel);
|
|
26
|
-
/** @internal */
|
|
27
16
|
export const UpdatePricePaymentTerm$outboundSchema = z.nativeEnum(UpdatePricePaymentTerm);
|
|
28
17
|
/** @internal */
|
|
29
18
|
export const UpdatePriceRequestBody$outboundSchema = z.object({
|
|
30
19
|
billableMetricId: z.string().optional(),
|
|
20
|
+
pricingUnitId: z.nullable(z.string()).optional(),
|
|
31
21
|
invoiceDisplayName: z.string().optional(),
|
|
32
|
-
model:
|
|
22
|
+
model: models.PriceModelInput$outboundSchema.optional(),
|
|
33
23
|
properties: models.PricePropertiesUnion$outboundSchema.optional(),
|
|
34
24
|
paymentTerm: UpdatePricePaymentTerm$outboundSchema.optional(),
|
|
35
25
|
billingCadence: z.nullable(z.string()).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateprice.js","sourceRoot":"","sources":["../../../../src/models/operations/updateprice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"updateprice.js","sourceRoot":"","sources":["../../../../src/models/operations/updateprice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;CACf,CAAC;AAsDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAE9C,CAAC,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;AAgBzC,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,KAAK,EAAE,MAAM,CAAC,8BAA8B,CAAC,QAAQ,EAAE;IACvD,UAAU,EAAE,MAAM,CAAC,mCAAmC,CAAC,QAAQ,EAAE;IACjE,WAAW,EAAE,qCAAqC,CAAC,QAAQ,EAAE;IAC7D,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC,QAAQ,EAAE;IACvE,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAQD,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;CACjE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -7,13 +7,13 @@ export declare const PriceObject: {
|
|
|
7
7
|
readonly Price: "price";
|
|
8
8
|
};
|
|
9
9
|
export type PriceObject = ClosedEnum<typeof PriceObject>;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const PriceModel1: {
|
|
11
11
|
readonly Standard: "standard";
|
|
12
12
|
readonly Dynamic: "dynamic";
|
|
13
13
|
readonly Volume: "volume";
|
|
14
14
|
readonly Percentage: "percentage";
|
|
15
15
|
};
|
|
16
|
-
export type
|
|
16
|
+
export type PriceModel1 = ClosedEnum<typeof PriceModel1>;
|
|
17
17
|
export declare const PricePaymentTerm: {
|
|
18
18
|
readonly Instant: "instant";
|
|
19
19
|
readonly InArrears: "in_arrears";
|
|
@@ -43,7 +43,7 @@ export type Price = {
|
|
|
43
43
|
currency?: string | undefined;
|
|
44
44
|
description?: string | undefined;
|
|
45
45
|
invoiceDisplayName: string;
|
|
46
|
-
model:
|
|
46
|
+
model: PriceModel1;
|
|
47
47
|
paymentTerm: PricePaymentTerm;
|
|
48
48
|
properties: {
|
|
49
49
|
[k: string]: any;
|
|
@@ -66,7 +66,7 @@ export type Price = {
|
|
|
66
66
|
/** @internal */
|
|
67
67
|
export declare const PriceObject$inboundSchema: z.ZodNativeEnum<typeof PriceObject>;
|
|
68
68
|
/** @internal */
|
|
69
|
-
export declare const
|
|
69
|
+
export declare const PriceModel1$inboundSchema: z.ZodNativeEnum<typeof PriceModel1>;
|
|
70
70
|
/** @internal */
|
|
71
71
|
export declare const PricePaymentTerm$inboundSchema: z.ZodNativeEnum<typeof PricePaymentTerm>;
|
|
72
72
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../../src/models/price.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E,eAAO,MAAM,WAAW;;CAEd,CAAC;AACX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CAAC;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,WAAW,CAChD,CAAC;AAE3B,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,WAAW,CAChD,CAAC;AAE3B,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAwBpE,CAAC;AAEL,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C"}
|
package/dist/esm/models/price.js
CHANGED
|
@@ -7,7 +7,7 @@ import { PriceFeature$inboundSchema } from "./pricefeature.js";
|
|
|
7
7
|
export const PriceObject = {
|
|
8
8
|
Price: "price",
|
|
9
9
|
};
|
|
10
|
-
export const
|
|
10
|
+
export const PriceModel1 = {
|
|
11
11
|
Standard: "standard",
|
|
12
12
|
Dynamic: "dynamic",
|
|
13
13
|
Volume: "volume",
|
|
@@ -22,8 +22,8 @@ export const PricePaymentTerm = {
|
|
|
22
22
|
export const PriceObject$inboundSchema = z
|
|
23
23
|
.nativeEnum(PriceObject);
|
|
24
24
|
/** @internal */
|
|
25
|
-
export const
|
|
26
|
-
.nativeEnum(
|
|
25
|
+
export const PriceModel1$inboundSchema = z
|
|
26
|
+
.nativeEnum(PriceModel1);
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const PricePaymentTerm$inboundSchema = z.nativeEnum(PricePaymentTerm);
|
|
29
29
|
/** @internal */
|
|
@@ -39,7 +39,7 @@ export const Price$inboundSchema = z
|
|
|
39
39
|
currency: z.string().optional(),
|
|
40
40
|
description: z.string().optional(),
|
|
41
41
|
invoiceDisplayName: z.string(),
|
|
42
|
-
model:
|
|
42
|
+
model: PriceModel1$inboundSchema,
|
|
43
43
|
paymentTerm: PricePaymentTerm$inboundSchema,
|
|
44
44
|
properties: z.record(z.any()),
|
|
45
45
|
unitAmount: z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price.js","sourceRoot":"","sources":["../../../src/models/price.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,OAAO,EAAgB,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE7E,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"price.js","sourceRoot":"","sources":["../../../src/models/price.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,OAAO,EAAgB,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE7E,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,MA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E;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,8BAA8B;IAC3C,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAC7D,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ;IACD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE;IACxD,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACtC,CAAC,CAAC;AAEL,MAAM,UAAU,aAAa,CAC3B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Pricing model of a price as returned by the API. Includes legacy models ('dynamic', 'volume', 'percentage') retained for existing prices; only 'standard' can be created (see PriceModelInput).
|
|
5
|
+
*/
|
|
6
|
+
export declare const PriceModel: {
|
|
7
|
+
readonly Standard: "standard";
|
|
8
|
+
readonly Dynamic: "dynamic";
|
|
9
|
+
readonly Volume: "volume";
|
|
10
|
+
readonly Percentage: "percentage";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Pricing model of a price as returned by the API. Includes legacy models ('dynamic', 'volume', 'percentage') retained for existing prices; only 'standard' can be created (see PriceModelInput).
|
|
14
|
+
*/
|
|
15
|
+
export type PriceModel = OpenEnum<typeof PriceModel>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const PriceModel$inboundSchema: z.ZodType<PriceModel, z.ZodTypeDef, unknown>;
|
|
18
|
+
//# sourceMappingURL=pricemodel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricemodel.d.ts","sourceRoot":"","sources":["../../../src/models/pricemodel.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,UAAU,EACV,CAAC,CAAC,UAAU,EACZ,OAAO,CAC8B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as openEnums from "../types/enums.js";
|
|
5
|
+
/**
|
|
6
|
+
* Pricing model of a price as returned by the API. Includes legacy models ('dynamic', 'volume', 'percentage') retained for existing prices; only 'standard' can be created (see PriceModelInput).
|
|
7
|
+
*/
|
|
8
|
+
export const PriceModel = {
|
|
9
|
+
Standard: "standard",
|
|
10
|
+
Dynamic: "dynamic",
|
|
11
|
+
Volume: "volume",
|
|
12
|
+
Percentage: "percentage",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const PriceModel$inboundSchema = openEnums.inboundSchema(PriceModel);
|
|
16
|
+
//# sourceMappingURL=pricemodel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricemodel.js","sourceRoot":"","sources":["../../../src/models/pricemodel.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;CAChB,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Pricing model accepted when creating or updating a price. Only 'standard' is creatable. Percentage-style and revenue-share pricing are expressed with 'standard' plus a unit-price multiplier (e.g. 10% ⇒ unitPrice '0.1'). The legacy 'dynamic', 'volume', and 'percentage' models remain billable and readable on existing prices but can no longer be created.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PriceModelInput: {
|
|
7
|
+
readonly Standard: "standard";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Pricing model accepted when creating or updating a price. Only 'standard' is creatable. Percentage-style and revenue-share pricing are expressed with 'standard' plus a unit-price multiplier (e.g. 10% ⇒ unitPrice '0.1'). The legacy 'dynamic', 'volume', and 'percentage' models remain billable and readable on existing prices but can no longer be created.
|
|
11
|
+
*/
|
|
12
|
+
export type PriceModelInput = ClosedEnum<typeof PriceModelInput>;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const PriceModelInput$outboundSchema: z.ZodNativeEnum<typeof PriceModelInput>;
|
|
15
|
+
//# sourceMappingURL=pricemodelinput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricemodelinput.d.ts","sourceRoot":"","sources":["../../../src/models/pricemodelinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,eAAe;;CAElB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,eAAe,CACS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
/**
|
|
6
|
+
* Pricing model accepted when creating or updating a price. Only 'standard' is creatable. Percentage-style and revenue-share pricing are expressed with 'standard' plus a unit-price multiplier (e.g. 10% ⇒ unitPrice '0.1'). The legacy 'dynamic', 'volume', and 'percentage' models remain billable and readable on existing prices but can no longer be created.
|
|
7
|
+
*/
|
|
8
|
+
export const PriceModelInput = {
|
|
9
|
+
Standard: "standard",
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const PriceModelInput$outboundSchema = z.nativeEnum(PriceModelInput);
|
|
13
|
+
//# sourceMappingURL=pricemodelinput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricemodelinput.js","sourceRoot":"","sources":["../../../src/models/pricemodelinput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -3,18 +3,12 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
import { PriceFeature } from "./pricefeature.js";
|
|
6
|
+
import { PriceModel } from "./pricemodel.js";
|
|
6
7
|
import { PricePropertiesUnion } from "./pricepropertiesunion.js";
|
|
7
8
|
export declare const SchemasPriceObject: {
|
|
8
9
|
readonly Price: "price";
|
|
9
10
|
};
|
|
10
11
|
export type SchemasPriceObject = ClosedEnum<typeof SchemasPriceObject>;
|
|
11
|
-
export declare const SchemasPriceModel: {
|
|
12
|
-
readonly Standard: "standard";
|
|
13
|
-
readonly Dynamic: "dynamic";
|
|
14
|
-
readonly Volume: "volume";
|
|
15
|
-
readonly Percentage: "percentage";
|
|
16
|
-
};
|
|
17
|
-
export type SchemasPriceModel = ClosedEnum<typeof SchemasPriceModel>;
|
|
18
12
|
export declare const SchemasPricePaymentTerm: {
|
|
19
13
|
readonly Instant: "instant";
|
|
20
14
|
readonly InArrears: "in_arrears";
|
|
@@ -35,6 +29,10 @@ export type SchemasPrice = {
|
|
|
35
29
|
* The unique identifier for the fee referred to by this price. Present when price is linked to a fee.
|
|
36
30
|
*/
|
|
37
31
|
feeId?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Unique identifier for a pricing unit
|
|
34
|
+
*/
|
|
35
|
+
pricingUnitId?: string | undefined;
|
|
38
36
|
/**
|
|
39
37
|
* Unique identifier for an organization
|
|
40
38
|
*/
|
|
@@ -45,7 +43,10 @@ export type SchemasPrice = {
|
|
|
45
43
|
billingCadence?: string | null | undefined;
|
|
46
44
|
createdAt: Date;
|
|
47
45
|
invoiceDisplayName: string;
|
|
48
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Pricing model of a price as returned by the API. Includes legacy models ('dynamic', 'volume', 'percentage') retained for existing prices; only 'standard' can be created (see PriceModelInput).
|
|
48
|
+
*/
|
|
49
|
+
model?: PriceModel | undefined;
|
|
49
50
|
paymentTerm: SchemasPricePaymentTerm;
|
|
50
51
|
properties: PricePropertiesUnion;
|
|
51
52
|
updatedAt: Date;
|
|
@@ -65,8 +66,6 @@ export type SchemasPrice = {
|
|
|
65
66
|
/** @internal */
|
|
66
67
|
export declare const SchemasPriceObject$inboundSchema: z.ZodNativeEnum<typeof SchemasPriceObject>;
|
|
67
68
|
/** @internal */
|
|
68
|
-
export declare const SchemasPriceModel$inboundSchema: z.ZodNativeEnum<typeof SchemasPriceModel>;
|
|
69
|
-
/** @internal */
|
|
70
69
|
export declare const SchemasPricePaymentTerm$inboundSchema: z.ZodNativeEnum<typeof SchemasPricePaymentTerm>;
|
|
71
70
|
/** @internal */
|
|
72
71
|
export declare const SchemasPrice$inboundSchema: z.ZodType<SchemasPrice, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemasprice.d.ts","sourceRoot":"","sources":["../../../src/models/schemasprice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,kBAAkB;;CAErB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CA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AS,CAAC;IAC/B,WAAW,EAAE,uBAAuB,CAAC;IACrC,UAAU,EAAE,oBAAoB,CAAC;IACjC,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,kBAAkB,CACS,CAAC;AAErC,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,aAAa,CACjE,OAAO,uBAAuB,CACS,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBP,CAAC;AAEH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
|
|
@@ -4,16 +4,11 @@
|
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
import { PriceFeature$inboundSchema } from "./pricefeature.js";
|
|
7
|
+
import { PriceModel$inboundSchema } from "./pricemodel.js";
|
|
7
8
|
import { PricePropertiesUnion$inboundSchema, } from "./pricepropertiesunion.js";
|
|
8
9
|
export const SchemasPriceObject = {
|
|
9
10
|
Price: "price",
|
|
10
11
|
};
|
|
11
|
-
export const SchemasPriceModel = {
|
|
12
|
-
Standard: "standard",
|
|
13
|
-
Dynamic: "dynamic",
|
|
14
|
-
Volume: "volume",
|
|
15
|
-
Percentage: "percentage",
|
|
16
|
-
};
|
|
17
12
|
export const SchemasPricePaymentTerm = {
|
|
18
13
|
Instant: "instant",
|
|
19
14
|
InArrears: "in_arrears",
|
|
@@ -22,8 +17,6 @@ export const SchemasPricePaymentTerm = {
|
|
|
22
17
|
/** @internal */
|
|
23
18
|
export const SchemasPriceObject$inboundSchema = z.nativeEnum(SchemasPriceObject);
|
|
24
19
|
/** @internal */
|
|
25
|
-
export const SchemasPriceModel$inboundSchema = z.nativeEnum(SchemasPriceModel);
|
|
26
|
-
/** @internal */
|
|
27
20
|
export const SchemasPricePaymentTerm$inboundSchema = z.nativeEnum(SchemasPricePaymentTerm);
|
|
28
21
|
/** @internal */
|
|
29
22
|
export const SchemasPrice$inboundSchema = z.object({
|
|
@@ -31,11 +24,12 @@ export const SchemasPrice$inboundSchema = z.object({
|
|
|
31
24
|
object: SchemasPriceObject$inboundSchema.default("price"),
|
|
32
25
|
billableMetricId: z.string().optional(),
|
|
33
26
|
feeId: z.string().optional(),
|
|
27
|
+
pricingUnitId: z.string().optional(),
|
|
34
28
|
merchantId: z.string(),
|
|
35
29
|
billingCadence: z.nullable(z.string()).optional(),
|
|
36
30
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
37
31
|
invoiceDisplayName: z.string(),
|
|
38
|
-
model:
|
|
32
|
+
model: PriceModel$inboundSchema.optional(),
|
|
39
33
|
paymentTerm: SchemasPricePaymentTerm$inboundSchema,
|
|
40
34
|
properties: PricePropertiesUnion$inboundSchema,
|
|
41
35
|
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemasprice.js","sourceRoot":"","sources":["../../../src/models/schemasprice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,OAAO,EAAgB,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAEL,kCAAkC,GACnC,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,k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cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5E,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,KAAK,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,qCAAqC;IAClD,UAAU,EAAE,kCAAkC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5E,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE;IACxD,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,UAAU,oBAAoB,CAClC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -131,7 +131,7 @@ async function $do(
|
|
|
131
131
|
|
|
132
132
|
const doResult = await client._do(req, {
|
|
133
133
|
context,
|
|
134
|
-
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
134
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
135
135
|
retryConfig: context.retryConfig,
|
|
136
136
|
retryCodes: context.retryCodes,
|
|
137
137
|
});
|
|
@@ -159,7 +159,7 @@ async function $do(
|
|
|
159
159
|
>(
|
|
160
160
|
M.json(201, models.SchemasPrice$inboundSchema),
|
|
161
161
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
162
|
-
M.jsonErr([401, 403], errors.ErrorT$inboundSchema),
|
|
162
|
+
M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema),
|
|
163
163
|
M.jsonErr(500, errors.ErrorT$inboundSchema),
|
|
164
164
|
M.fail("4XX"),
|
|
165
165
|
M.fail("5XX"),
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "0.1.0",
|
|
68
|
-
sdkVersion: "0.
|
|
68
|
+
sdkVersion: "0.8.0",
|
|
69
69
|
genVersion: "2.879.13",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.8.0 2.879.13 0.1.0 @paygentic/sdk",
|
|
71
71
|
} as const;
|
package/src/models/index.ts
CHANGED
|
@@ -68,6 +68,8 @@ export * from "./plan.js";
|
|
|
68
68
|
export * from "./price.js";
|
|
69
69
|
export * from "./pricefeature.js";
|
|
70
70
|
export * from "./pricefeatureinput.js";
|
|
71
|
+
export * from "./pricemodel.js";
|
|
72
|
+
export * from "./pricemodelinput.js";
|
|
71
73
|
export * from "./pricepropertiesunion.js";
|
|
72
74
|
export * from "./product.js";
|
|
73
75
|
export * from "./profitabilityrow.js";
|