@flexprice/mcp-server 2.1.30 → 2.1.32
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 +899 -563
- package/bin/mcp-server.js.map +64 -56
- package/bun.lock +20 -20
- package/esm/funcs/invoicesCreateInvoice.d.ts +1 -0
- package/esm/funcs/invoicesCreateInvoice.d.ts.map +1 -1
- package/esm/funcs/invoicesCreateInvoice.js +1 -0
- package/esm/funcs/invoicesCreateInvoice.js.map +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.js +1 -1
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts +1 -1
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -1
- package/esm/mcp-server/tools/invoicesCreateInvoice.js +2 -1
- package/esm/mcp-server/tools/invoicesCreateInvoice.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js +1 -1
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js.map +1 -1
- package/esm/models/addaddonrequest.d.ts +2 -0
- package/esm/models/addaddonrequest.d.ts.map +1 -1
- package/esm/models/addaddonrequest.js +2 -0
- package/esm/models/addaddonrequest.js.map +1 -1
- package/esm/models/addaddontosubscriptionrequest.d.ts +2 -0
- package/esm/models/addaddontosubscriptionrequest.d.ts.map +1 -1
- package/esm/models/addaddontosubscriptionrequest.js +2 -0
- package/esm/models/addaddontosubscriptionrequest.js.map +1 -1
- package/esm/models/checkoutaction.d.ts +2 -0
- package/esm/models/checkoutaction.d.ts.map +1 -1
- package/esm/models/checkoutaction.js +2 -0
- package/esm/models/checkoutaction.js.map +1 -1
- package/esm/models/checkoutparams.d.ts +2 -0
- package/esm/models/checkoutparams.d.ts.map +1 -1
- package/esm/models/checkoutparams.js +2 -0
- package/esm/models/checkoutparams.js.map +1 -1
- package/esm/models/checkoutsessionresponse.d.ts +2 -0
- package/esm/models/checkoutsessionresponse.d.ts.map +1 -1
- package/esm/models/checkoutsessionresponse.js +2 -0
- package/esm/models/checkoutsessionresponse.js.map +1 -1
- package/esm/models/createinvoicerequest.d.ts +2 -0
- package/esm/models/createinvoicerequest.d.ts.map +1 -1
- package/esm/models/createinvoicerequest.js +2 -0
- package/esm/models/createinvoicerequest.js.map +1 -1
- package/esm/models/createsubscriptionrequest.d.ts +2 -0
- package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
- package/esm/models/createsubscriptionrequest.js +2 -0
- package/esm/models/createsubscriptionrequest.js.map +1 -1
- package/esm/models/entitycreationconflictpolicies.d.ts +7 -0
- package/esm/models/entitycreationconflictpolicies.d.ts.map +1 -0
- package/esm/models/entitycreationconflictpolicies.js +9 -0
- package/esm/models/entitycreationconflictpolicies.js.map +1 -0
- package/esm/models/entitycreationoptions.d.ts +7 -0
- package/esm/models/entitycreationoptions.d.ts.map +1 -0
- package/esm/models/entitycreationoptions.js +10 -0
- package/esm/models/entitycreationoptions.js.map +1 -0
- package/esm/models/entitycreationresult.d.ts +8 -0
- package/esm/models/entitycreationresult.d.ts.map +1 -0
- package/esm/models/entitycreationresult.js +11 -0
- package/esm/models/entitycreationresult.js.map +1 -0
- package/esm/models/entitycreationstatus.d.ts +14 -0
- package/esm/models/entitycreationstatus.d.ts.map +1 -0
- package/esm/models/entitycreationstatus.js +15 -0
- package/esm/models/entitycreationstatus.js.map +1 -0
- package/esm/models/event.d.ts +1 -0
- package/esm/models/event.d.ts.map +1 -1
- package/esm/models/event.js +1 -0
- package/esm/models/event.js.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.d.ts +2 -0
- package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.js +2 -0
- package/esm/models/executesubscriptionmodifyrequest.js.map +1 -1
- package/esm/models/geteventbyidresponse.d.ts +1 -0
- package/esm/models/geteventbyidresponse.d.ts.map +1 -1
- package/esm/models/geteventbyidresponse.js +1 -0
- package/esm/models/geteventbyidresponse.js.map +1 -1
- package/esm/models/invoiceresponse.d.ts +4 -0
- package/esm/models/invoiceresponse.d.ts.map +1 -1
- package/esm/models/invoiceresponse.js +4 -0
- package/esm/models/invoiceresponse.js.map +1 -1
- package/esm/models/invoicesourcetype.d.ts +10 -0
- package/esm/models/invoicesourcetype.d.ts.map +1 -0
- package/esm/models/invoicesourcetype.js +11 -0
- package/esm/models/invoicesourcetype.js.map +1 -0
- package/esm/models/lineitemgrouping.d.ts +12 -0
- package/esm/models/lineitemgrouping.d.ts.map +1 -0
- package/esm/models/lineitemgrouping.js +13 -0
- package/esm/models/lineitemgrouping.js.map +1 -0
- package/esm/models/onexistingentitypolicy.d.ts +12 -0
- package/esm/models/onexistingentitypolicy.d.ts.map +1 -0
- package/esm/models/onexistingentitypolicy.js +13 -0
- package/esm/models/onexistingentitypolicy.js.map +1 -0
- package/esm/models/removeaddonrequest.d.ts +2 -0
- package/esm/models/removeaddonrequest.d.ts.map +1 -1
- package/esm/models/removeaddonrequest.js +2 -0
- package/esm/models/removeaddonrequest.js.map +1 -1
- package/esm/models/submodifybulkaddonparams.d.ts +9 -0
- package/esm/models/submodifybulkaddonparams.d.ts.map +1 -0
- package/esm/models/submodifybulkaddonparams.js +11 -0
- package/esm/models/submodifybulkaddonparams.js.map +1 -0
- package/esm/models/subscriptionchangeentitytype.d.ts +2 -2
- package/esm/models/subscriptionchangeentitytype.js +2 -2
- package/esm/models/subscriptionchangeentitytype.js.map +1 -1
- package/esm/models/subscriptionresponse.d.ts +2 -0
- package/esm/models/subscriptionresponse.d.ts.map +1 -1
- package/esm/models/subscriptionresponse.js +2 -0
- package/esm/models/subscriptionresponse.js.map +1 -1
- package/esm/models/subscriptionresponsev2.d.ts +2 -0
- package/esm/models/subscriptionresponsev2.d.ts.map +1 -1
- package/esm/models/subscriptionresponsev2.js +2 -0
- package/esm/models/subscriptionresponsev2.js.map +1 -1
- package/esm/models/subscriptionscheduleresponse.d.ts +6 -12
- package/esm/models/subscriptionscheduleresponse.d.ts.map +1 -1
- package/esm/models/subscriptionscheduleresponse.js +2 -5
- package/esm/models/subscriptionscheduleresponse.js.map +1 -1
- package/esm/models/usageanalyticitem.d.ts +1 -0
- package/esm/models/usageanalyticitem.d.ts.map +1 -1
- package/esm/models/usageanalyticitem.js +1 -0
- package/esm/models/usageanalyticitem.js.map +1 -1
- package/esm/tool-names.js +3 -3
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +4 -4
- package/package.json +1 -1
- package/src/funcs/invoicesCreateInvoice.ts +1 -0
- package/src/funcs/subscriptionsExecuteSubscriptionModify.ts +1 -1
- package/src/funcs/subscriptionsPreviewSubscriptionModify.ts +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/mcp-server/tools/invoicesCreateInvoice.ts +2 -1
- package/src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts +1 -1
- package/src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts +1 -1
- package/src/models/addaddonrequest.ts +3 -0
- package/src/models/addaddontosubscriptionrequest.ts +3 -0
- package/src/models/checkoutaction.ts +2 -0
- package/src/models/checkoutparams.ts +6 -0
- package/src/models/checkoutsessionresponse.ts +6 -0
- package/src/models/createinvoicerequest.ts +3 -0
- package/src/models/createsubscriptionrequest.ts +6 -0
- package/src/models/entitycreationconflictpolicies.ts +19 -0
- package/src/models/entitycreationoptions.ts +21 -0
- package/src/models/entitycreationresult.ts +20 -0
- package/src/models/entitycreationstatus.ts +19 -0
- package/src/models/event.ts +2 -0
- package/src/models/executesubscriptionmodifyrequest.ts +6 -0
- package/src/models/geteventbyidresponse.ts +2 -0
- package/src/models/invoiceresponse.ts +12 -0
- package/src/models/invoicesourcetype.ts +15 -0
- package/src/models/lineitemgrouping.ts +17 -0
- package/src/models/onexistingentitypolicy.ts +17 -0
- package/src/models/removeaddonrequest.ts +3 -0
- package/src/models/submodifybulkaddonparams.ts +25 -0
- package/src/models/subscriptionchangeentitytype.ts +2 -2
- package/src/models/subscriptionresponse.ts +6 -0
- package/src/models/subscriptionresponsev2.ts +6 -0
- package/src/models/subscriptionscheduleresponse.ts +4 -23
- package/src/models/usageanalyticitem.ts +4 -0
- package/src/tool-names.ts +3 -3
package/manifest.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"sensitive": true
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"version": "2.1.
|
|
51
|
+
"version": "2.1.32",
|
|
52
52
|
"tools": [
|
|
53
53
|
{
|
|
54
54
|
"name": "update-customer",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"name": "create-invoice",
|
|
103
|
-
"description": "Create one-off invoice\n\nUse when creating a manual or one-off invoice (e.g. custom charge or non-recurring billing). Invoice is created in draft; finalize when ready."
|
|
103
|
+
"description": "Create one-off invoice\n\nUse when creating a manual or one-off invoice (e.g. custom charge or non-recurring billing). Invoice is created in draft; finalize when ready.\nPass a `checkout` object to gate the invoice behind a hosted payment session: the invoice stays DRAFT with no invoice number, and the response carries `checkout_session.payment_action.url` for the customer to pay. It finalizes only when the payment webhook lands; if the session expires the invoice is voided and archived. Poll `GET /checkout/sessions/{id}` until `terminal` is true. One-off invoices only."
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"name": "get-invoice-preview",
|
|
@@ -336,11 +336,11 @@
|
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"name": "execute-subscription-modify",
|
|
339
|
-
"description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
339
|
+
"description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes settled as one netted document)."
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
"name": "preview-subscription-modify",
|
|
343
|
-
"description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
343
|
+
"description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes) without committing changes."
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
"name": "list-subscription-schedules",
|
package/package.json
CHANGED
|
@@ -30,6 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Use when creating a manual or one-off invoice (e.g. custom charge or non-recurring billing). Invoice is created in draft; finalize when ready.
|
|
33
|
+
* Pass a `checkout` object to gate the invoice behind a hosted payment session: the invoice stays DRAFT with no invoice number, and the response carries `checkout_session.payment_action.url` for the customer to pay. It finalizes only when the payment webhook lands; if the session expires the invoice is voided and archived. Poll `GET /checkout/sessions/{id}` until `terminal` is true. One-off invoices only.
|
|
33
34
|
*/
|
|
34
35
|
export function invoicesCreateInvoice(
|
|
35
36
|
client$: FlexpriceCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Execute subscription modification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
32
|
+
* Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes settled as one netted document).
|
|
33
33
|
*/
|
|
34
34
|
export function subscriptionsExecuteSubscriptionModify(
|
|
35
35
|
client$: FlexpriceCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Preview subscription modification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
32
|
+
* Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes) without committing changes.
|
|
33
33
|
*/
|
|
34
34
|
export function subscriptionsPreviewSubscriptionModify(
|
|
35
35
|
client$: FlexpriceCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "1.0",
|
|
72
|
-
sdkVersion: "2.1.
|
|
73
|
-
genVersion: "2.
|
|
72
|
+
sdkVersion: "2.1.32",
|
|
73
|
+
genVersion: "2.938.0",
|
|
74
74
|
userAgent:
|
|
75
|
-
"speakeasy-sdk/mcp-typescript 2.1.
|
|
75
|
+
"speakeasy-sdk/mcp-typescript 2.1.32 2.938.0 1.0 @flexprice/mcp-server",
|
|
76
76
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,7 +14,8 @@ export const tool$invoicesCreateInvoice: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "create-invoice",
|
|
15
15
|
description: `Create one-off invoice
|
|
16
16
|
|
|
17
|
-
Use when creating a manual or one-off invoice (e.g. custom charge or non-recurring billing). Invoice is created in draft; finalize when ready
|
|
17
|
+
Use when creating a manual or one-off invoice (e.g. custom charge or non-recurring billing). Invoice is created in draft; finalize when ready.
|
|
18
|
+
Pass a \`checkout\` object to gate the invoice behind a hosted payment session: the invoice stays DRAFT with no invoice number, and the response carries \`checkout_session.payment_action.url\` for the customer to pay. It finalizes only when the payment webhook lands; if the session expires the invoice is voided and archived. Poll \`GET /checkout/sessions/{id}\` until \`terminal\` is true. One-off invoices only.`,
|
|
18
19
|
scopes: ["write"],
|
|
19
20
|
annotations: {
|
|
20
21
|
"title": "",
|
|
@@ -16,7 +16,7 @@ export const tool$subscriptionsExecuteSubscriptionModify: ToolDefinition<
|
|
|
16
16
|
name: "execute-subscription-modify",
|
|
17
17
|
description: `Execute subscription modification
|
|
18
18
|
|
|
19
|
-
Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
19
|
+
Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes settled as one netted document).`,
|
|
20
20
|
scopes: ["write"],
|
|
21
21
|
annotations: {
|
|
22
22
|
"title": "",
|
|
@@ -16,7 +16,7 @@ export const tool$subscriptionsPreviewSubscriptionModify: ToolDefinition<
|
|
|
16
16
|
name: "preview-subscription-modify",
|
|
17
17
|
description: `Preview subscription modification
|
|
18
18
|
|
|
19
|
-
Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
19
|
+
Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes) without committing changes.`,
|
|
20
20
|
scopes: ["read"],
|
|
21
21
|
annotations: {
|
|
22
22
|
"title": "",
|
|
@@ -17,10 +17,12 @@ import {
|
|
|
17
17
|
ProrationBehavior,
|
|
18
18
|
ProrationBehavior$zodSchema,
|
|
19
19
|
} from "./prorationbehavior.js";
|
|
20
|
+
import { ScheduleType, ScheduleType$zodSchema } from "./scheduletype.js";
|
|
20
21
|
|
|
21
22
|
export type AddAddonRequest = {
|
|
22
23
|
addon_id: string;
|
|
23
24
|
cadence?: AddonCadence | undefined;
|
|
25
|
+
change_at?: ScheduleType | undefined;
|
|
24
26
|
checkout?: CheckoutParams | undefined;
|
|
25
27
|
line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
|
|
26
28
|
metadata?: { [k: string]: any } | undefined;
|
|
@@ -33,6 +35,7 @@ export type AddAddonRequest = {
|
|
|
33
35
|
export const AddAddonRequest$zodSchema: z.ZodType<AddAddonRequest> = z.object({
|
|
34
36
|
addon_id: z.string(),
|
|
35
37
|
cadence: AddonCadence$zodSchema.optional(),
|
|
38
|
+
change_at: ScheduleType$zodSchema.optional(),
|
|
36
39
|
checkout: CheckoutParams$zodSchema.optional(),
|
|
37
40
|
line_item_commitments: z.record(
|
|
38
41
|
z.string(),
|
|
@@ -16,10 +16,12 @@ import {
|
|
|
16
16
|
ProrationBehavior,
|
|
17
17
|
ProrationBehavior$zodSchema,
|
|
18
18
|
} from "./prorationbehavior.js";
|
|
19
|
+
import { ScheduleType, ScheduleType$zodSchema } from "./scheduletype.js";
|
|
19
20
|
|
|
20
21
|
export type AddAddonToSubscriptionRequest = {
|
|
21
22
|
addon_id: string;
|
|
22
23
|
cadence?: AddonCadence | undefined;
|
|
24
|
+
change_at?: ScheduleType | undefined;
|
|
23
25
|
line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
|
|
24
26
|
metadata?: { [k: string]: any } | undefined;
|
|
25
27
|
override_line_items?: Array<OverrideLineItemRequest> | undefined;
|
|
@@ -32,6 +34,7 @@ export const AddAddonToSubscriptionRequest$zodSchema: z.ZodType<
|
|
|
32
34
|
> = z.object({
|
|
33
35
|
addon_id: z.string(),
|
|
34
36
|
cadence: AddonCadence$zodSchema.optional(),
|
|
37
|
+
change_at: ScheduleType$zodSchema.optional(),
|
|
35
38
|
line_item_commitments: z.record(
|
|
36
39
|
z.string(),
|
|
37
40
|
LineItemCommitmentConfig$zodSchema,
|
|
@@ -10,6 +10,7 @@ export const CheckoutAction = {
|
|
|
10
10
|
ModifySubscription: "modify_subscription",
|
|
11
11
|
WalletTopup: "wallet_topup",
|
|
12
12
|
AddAddon: "add_addon",
|
|
13
|
+
PayInvoice: "pay_invoice",
|
|
13
14
|
} as const;
|
|
14
15
|
export type CheckoutAction = ClosedEnum<typeof CheckoutAction>;
|
|
15
16
|
|
|
@@ -18,4 +19,5 @@ export const CheckoutAction$zodSchema = z.enum([
|
|
|
18
19
|
"modify_subscription",
|
|
19
20
|
"wallet_topup",
|
|
20
21
|
"add_addon",
|
|
22
|
+
"pay_invoice",
|
|
21
23
|
]);
|
|
@@ -11,9 +11,14 @@ import {
|
|
|
11
11
|
CheckoutPaymentProviderConfig,
|
|
12
12
|
CheckoutPaymentProviderConfig$zodSchema,
|
|
13
13
|
} from "./checkoutpaymentproviderconfig.js";
|
|
14
|
+
import {
|
|
15
|
+
EntityCreationOptions,
|
|
16
|
+
EntityCreationOptions$zodSchema,
|
|
17
|
+
} from "./entitycreationoptions.js";
|
|
14
18
|
|
|
15
19
|
export type CheckoutParams = {
|
|
16
20
|
cancel_url?: string | undefined;
|
|
21
|
+
entity_creation_options?: EntityCreationOptions | undefined;
|
|
17
22
|
failure_url?: string | undefined;
|
|
18
23
|
idempotency_key?: string | undefined;
|
|
19
24
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -24,6 +29,7 @@ export type CheckoutParams = {
|
|
|
24
29
|
|
|
25
30
|
export const CheckoutParams$zodSchema: z.ZodType<CheckoutParams> = z.object({
|
|
26
31
|
cancel_url: z.string().optional(),
|
|
32
|
+
entity_creation_options: EntityCreationOptions$zodSchema.optional(),
|
|
27
33
|
failure_url: z.string().optional(),
|
|
28
34
|
idempotency_key: z.string().optional(),
|
|
29
35
|
metadata: z.record(z.string(), z.string()).optional(),
|
|
@@ -13,6 +13,10 @@ import {
|
|
|
13
13
|
CheckoutPaymentProvider$zodSchema,
|
|
14
14
|
} from "./checkoutpaymentprovider.js";
|
|
15
15
|
import { CheckoutStatus, CheckoutStatus$zodSchema } from "./checkoutstatus.js";
|
|
16
|
+
import {
|
|
17
|
+
EntityCreationResult,
|
|
18
|
+
EntityCreationResult$zodSchema,
|
|
19
|
+
} from "./entitycreationresult.js";
|
|
16
20
|
import { PaymentAction, PaymentAction$zodSchema } from "./paymentaction.js";
|
|
17
21
|
|
|
18
22
|
export type CheckoutSessionResponse = {
|
|
@@ -25,6 +29,7 @@ export type CheckoutSessionResponse = {
|
|
|
25
29
|
completed_at?: string | undefined;
|
|
26
30
|
created_at?: string | undefined;
|
|
27
31
|
customer_id?: string | undefined;
|
|
32
|
+
entity_creation_result?: EntityCreationResult | undefined;
|
|
28
33
|
expires_at?: string | undefined;
|
|
29
34
|
failure_reason?: string | undefined;
|
|
30
35
|
failure_url?: string | undefined;
|
|
@@ -53,6 +58,7 @@ export const CheckoutSessionResponse$zodSchema: z.ZodType<
|
|
|
53
58
|
completed_at: z.iso.datetime({ offset: true }).optional(),
|
|
54
59
|
created_at: z.iso.datetime({ offset: true }).optional(),
|
|
55
60
|
customer_id: z.string().optional(),
|
|
61
|
+
entity_creation_result: EntityCreationResult$zodSchema.optional(),
|
|
56
62
|
expires_at: z.iso.datetime({ offset: true }).optional(),
|
|
57
63
|
failure_reason: z.string().optional(),
|
|
58
64
|
failure_url: z.string().optional(),
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { CheckoutParams, CheckoutParams$zodSchema } from "./checkoutparams.js";
|
|
6
7
|
import {
|
|
7
8
|
CreateInvoiceLineItemRequest,
|
|
8
9
|
CreateInvoiceLineItemRequest$zodSchema,
|
|
@@ -29,6 +30,7 @@ export type CreateInvoiceRequest = {
|
|
|
29
30
|
amount_paid?: string | undefined;
|
|
30
31
|
billing_period?: string | undefined;
|
|
31
32
|
billing_reason?: InvoiceBillingReason | undefined;
|
|
33
|
+
checkout?: CheckoutParams | undefined;
|
|
32
34
|
coupons?: Array<string> | undefined;
|
|
33
35
|
currency: string;
|
|
34
36
|
customer_id: string;
|
|
@@ -68,6 +70,7 @@ export const CreateInvoiceRequest$zodSchema: z.ZodType<CreateInvoiceRequest> = z
|
|
|
68
70
|
"billing_period is the period this invoice covers (e.g., \"monthly\", \"yearly\")",
|
|
69
71
|
),
|
|
70
72
|
billing_reason: InvoiceBillingReason$zodSchema.optional(),
|
|
73
|
+
checkout: CheckoutParams$zodSchema.optional(),
|
|
71
74
|
coupons: z.array(z.string()).optional().describe("coupons"),
|
|
72
75
|
currency: z.string().describe(
|
|
73
76
|
"currency is the three-letter ISO currency code (e.g., USD, EUR) for the invoice",
|
|
@@ -26,6 +26,10 @@ import {
|
|
|
26
26
|
LineItemCommitmentConfig,
|
|
27
27
|
LineItemCommitmentConfig$zodSchema,
|
|
28
28
|
} from "./lineitemcommitmentconfig.js";
|
|
29
|
+
import {
|
|
30
|
+
LineItemGrouping,
|
|
31
|
+
LineItemGrouping$zodSchema,
|
|
32
|
+
} from "./lineitemgrouping.js";
|
|
29
33
|
import {
|
|
30
34
|
OverrideEntitlementRequest,
|
|
31
35
|
OverrideEntitlementRequest$zodSchema,
|
|
@@ -87,6 +91,7 @@ export type CreateSubscriptionRequest = {
|
|
|
87
91
|
inheritance?: SubscriptionInheritanceConfig | undefined;
|
|
88
92
|
line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
|
|
89
93
|
line_item_coupons?: { [k: string]: Array<string> } | undefined;
|
|
94
|
+
line_item_grouping?: LineItemGrouping | undefined;
|
|
90
95
|
line_items?: Array<CreateSubscriptionLineItemRequest> | undefined;
|
|
91
96
|
lookup_key?: string | undefined;
|
|
92
97
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -147,6 +152,7 @@ export const CreateSubscriptionRequest$zodSchema: z.ZodType<
|
|
|
147
152
|
),
|
|
148
153
|
line_item_coupons: z.record(z.string(), z.array(z.string())).optional()
|
|
149
154
|
.describe("Deprecated: use SubscriptionCoupons instead."),
|
|
155
|
+
line_item_grouping: LineItemGrouping$zodSchema.optional(),
|
|
150
156
|
line_items: z.array(CreateSubscriptionLineItemRequest$zodSchema).optional()
|
|
151
157
|
.describe("LineItems are extra (non-plan) line items added at creation."),
|
|
152
158
|
lookup_key: z.string().optional(),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
OnExistingEntityPolicy,
|
|
8
|
+
OnExistingEntityPolicy$zodSchema,
|
|
9
|
+
} from "./onexistingentitypolicy.js";
|
|
10
|
+
|
|
11
|
+
export type EntityCreationConflictPolicies = {
|
|
12
|
+
on_existing_entity?: OnExistingEntityPolicy | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const EntityCreationConflictPolicies$zodSchema: z.ZodType<
|
|
16
|
+
EntityCreationConflictPolicies
|
|
17
|
+
> = z.object({
|
|
18
|
+
on_existing_entity: OnExistingEntityPolicy$zodSchema.optional(),
|
|
19
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
EntityCreationConflictPolicies,
|
|
8
|
+
EntityCreationConflictPolicies$zodSchema,
|
|
9
|
+
} from "./entitycreationconflictpolicies.js";
|
|
10
|
+
|
|
11
|
+
export type EntityCreationOptions = {
|
|
12
|
+
entity_creation_conflict_policies?:
|
|
13
|
+
| EntityCreationConflictPolicies
|
|
14
|
+
| undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const EntityCreationOptions$zodSchema: z.ZodType<EntityCreationOptions> =
|
|
18
|
+
z.object({
|
|
19
|
+
entity_creation_conflict_policies: EntityCreationConflictPolicies$zodSchema
|
|
20
|
+
.optional(),
|
|
21
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
EntityCreationStatus,
|
|
8
|
+
EntityCreationStatus$zodSchema,
|
|
9
|
+
} from "./entitycreationstatus.js";
|
|
10
|
+
|
|
11
|
+
export type EntityCreationResult = {
|
|
12
|
+
entity_id?: string | undefined;
|
|
13
|
+
status?: EntityCreationStatus | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const EntityCreationResult$zodSchema: z.ZodType<EntityCreationResult> = z
|
|
17
|
+
.object({
|
|
18
|
+
entity_id: z.string().optional(),
|
|
19
|
+
status: EntityCreationStatus$zodSchema.optional(),
|
|
20
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const EntityCreationStatus = {
|
|
9
|
+
Created: "created",
|
|
10
|
+
Superseded: "superseded",
|
|
11
|
+
FailedAlreadyExists: "failed_already_exists",
|
|
12
|
+
} as const;
|
|
13
|
+
export type EntityCreationStatus = ClosedEnum<typeof EntityCreationStatus>;
|
|
14
|
+
|
|
15
|
+
export const EntityCreationStatus$zodSchema = z.enum([
|
|
16
|
+
"created",
|
|
17
|
+
"superseded",
|
|
18
|
+
"failed_already_exists",
|
|
19
|
+
]);
|
package/src/models/event.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type Event = {
|
|
|
10
10
|
event_name?: string | undefined;
|
|
11
11
|
external_customer_id?: string | undefined;
|
|
12
12
|
id?: string | undefined;
|
|
13
|
+
ingested_at?: string | undefined;
|
|
13
14
|
properties?: { [k: string]: any } | undefined;
|
|
14
15
|
source?: string | undefined;
|
|
15
16
|
timestamp?: string | undefined;
|
|
@@ -21,6 +22,7 @@ export const Event$zodSchema: z.ZodType<Event> = z.object({
|
|
|
21
22
|
event_name: z.string().optional(),
|
|
22
23
|
external_customer_id: z.string().optional(),
|
|
23
24
|
id: z.string().optional(),
|
|
25
|
+
ingested_at: z.iso.datetime({ offset: true }).optional(),
|
|
24
26
|
properties: z.record(z.string(), z.any()).optional(),
|
|
25
27
|
source: z.string().optional(),
|
|
26
28
|
timestamp: z.string().optional(),
|
|
@@ -8,6 +8,10 @@ import {
|
|
|
8
8
|
SubModifyAddonParams,
|
|
9
9
|
SubModifyAddonParams$zodSchema,
|
|
10
10
|
} from "./submodifyaddonparams.js";
|
|
11
|
+
import {
|
|
12
|
+
SubModifyBulkAddonParams,
|
|
13
|
+
SubModifyBulkAddonParams$zodSchema,
|
|
14
|
+
} from "./submodifybulkaddonparams.js";
|
|
11
15
|
import {
|
|
12
16
|
SubModifyCouponParams,
|
|
13
17
|
SubModifyCouponParams$zodSchema,
|
|
@@ -38,6 +42,7 @@ import {
|
|
|
38
42
|
} from "./subscriptionmodifytype.js";
|
|
39
43
|
|
|
40
44
|
export type ExecuteSubscriptionModifyRequest = {
|
|
45
|
+
addon_bulk_params?: SubModifyBulkAddonParams | undefined;
|
|
41
46
|
addon_params?: SubModifyAddonParams | undefined;
|
|
42
47
|
checkout?: CheckoutParams | undefined;
|
|
43
48
|
coupon_params?: SubModifyCouponParams | undefined;
|
|
@@ -52,6 +57,7 @@ export type ExecuteSubscriptionModifyRequest = {
|
|
|
52
57
|
export const ExecuteSubscriptionModifyRequest$zodSchema: z.ZodType<
|
|
53
58
|
ExecuteSubscriptionModifyRequest
|
|
54
59
|
> = z.object({
|
|
60
|
+
addon_bulk_params: SubModifyBulkAddonParams$zodSchema.optional(),
|
|
55
61
|
addon_params: SubModifyAddonParams$zodSchema.optional(),
|
|
56
62
|
checkout: CheckoutParams$zodSchema.optional(),
|
|
57
63
|
coupon_params: SubModifyCouponParams$zodSchema.optional(),
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
export type GetEventByIDResponse = {
|
|
18
18
|
debug_tracker?: DebugTracker | undefined;
|
|
19
19
|
event?: Event | undefined;
|
|
20
|
+
events?: Array<Event> | undefined;
|
|
20
21
|
processed_events?: Array<FeatureUsageInfo> | undefined;
|
|
21
22
|
status?: EventProcessingStatusType | undefined;
|
|
22
23
|
};
|
|
@@ -25,6 +26,7 @@ export const GetEventByIDResponse$zodSchema: z.ZodType<GetEventByIDResponse> = z
|
|
|
25
26
|
.object({
|
|
26
27
|
debug_tracker: DebugTracker$zodSchema.optional(),
|
|
27
28
|
event: Event$zodSchema.optional(),
|
|
29
|
+
events: z.array(Event$zodSchema).optional(),
|
|
28
30
|
processed_events: z.array(FeatureUsageInfo$zodSchema).optional(),
|
|
29
31
|
status: EventProcessingStatusType$zodSchema.optional(),
|
|
30
32
|
});
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
CheckoutSessionResponse,
|
|
8
|
+
CheckoutSessionResponse$zodSchema,
|
|
9
|
+
} from "./checkoutsessionresponse.js";
|
|
6
10
|
import {
|
|
7
11
|
CouponApplicationResponse,
|
|
8
12
|
CouponApplicationResponse$zodSchema,
|
|
@@ -16,6 +20,10 @@ import {
|
|
|
16
20
|
InvoiceLineItemResponse,
|
|
17
21
|
InvoiceLineItemResponse$zodSchema,
|
|
18
22
|
} from "./invoicelineitemresponse.js";
|
|
23
|
+
import {
|
|
24
|
+
InvoiceSourceType,
|
|
25
|
+
InvoiceSourceType$zodSchema,
|
|
26
|
+
} from "./invoicesourcetype.js";
|
|
19
27
|
import { InvoiceStatus, InvoiceStatus$zodSchema } from "./invoicestatus.js";
|
|
20
28
|
import { InvoiceType, InvoiceType$zodSchema } from "./invoicetype.js";
|
|
21
29
|
import { PaymentStatus, PaymentStatus$zodSchema } from "./paymentstatus.js";
|
|
@@ -42,6 +50,7 @@ export type InvoiceResponse = {
|
|
|
42
50
|
billing_period?: string | undefined;
|
|
43
51
|
billing_reason?: string | undefined;
|
|
44
52
|
billing_sequence?: number | undefined;
|
|
53
|
+
checkout_session?: CheckoutSessionResponse | undefined;
|
|
45
54
|
coupon_applications?: Array<CouponApplicationResponse> | undefined;
|
|
46
55
|
created_at?: string | undefined;
|
|
47
56
|
created_by?: string | undefined;
|
|
@@ -71,6 +80,7 @@ export type InvoiceResponse = {
|
|
|
71
80
|
period_start?: string | undefined;
|
|
72
81
|
recalculated_invoice_id?: string | undefined;
|
|
73
82
|
refunded_amount?: string | undefined;
|
|
83
|
+
source_type?: InvoiceSourceType | undefined;
|
|
74
84
|
status?: Status | undefined;
|
|
75
85
|
subscription?: SubscriptionResponse | undefined;
|
|
76
86
|
subscription_customer_id?: string | undefined;
|
|
@@ -112,6 +122,7 @@ export const InvoiceResponse$zodSchema: z.ZodType<InvoiceResponse> = z.object({
|
|
|
112
122
|
billing_sequence: z.int().optional().describe(
|
|
113
123
|
"billing_sequence is the sequential number indicating the billing cycle for subscription invoices",
|
|
114
124
|
),
|
|
125
|
+
checkout_session: CheckoutSessionResponse$zodSchema.optional(),
|
|
115
126
|
coupon_applications: z.array(CouponApplicationResponse$zodSchema).optional()
|
|
116
127
|
.describe(
|
|
117
128
|
"coupon_applications contains the coupon applications associated with this invoice (overrides embedded field)",
|
|
@@ -186,6 +197,7 @@ export const InvoiceResponse$zodSchema: z.ZodType<InvoiceResponse> = z.object({
|
|
|
186
197
|
refunded_amount: z.string().optional().describe(
|
|
187
198
|
"refunded_amount is the total sum of credit notes of type \"refund\".\nThese are actual refunds issued to the customer.",
|
|
188
199
|
),
|
|
200
|
+
source_type: InvoiceSourceType$zodSchema.optional(),
|
|
189
201
|
status: Status$zodSchema.optional(),
|
|
190
202
|
subscription: z.lazy(() => SubscriptionResponse$zodSchema).optional(),
|
|
191
203
|
subscription_customer_id: z.string().optional().describe(
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const InvoiceSourceType = {
|
|
9
|
+
Checkout: "checkout",
|
|
10
|
+
} as const;
|
|
11
|
+
export type InvoiceSourceType = ClosedEnum<typeof InvoiceSourceType>;
|
|
12
|
+
|
|
13
|
+
export const InvoiceSourceType$zodSchema = z.enum([
|
|
14
|
+
"checkout",
|
|
15
|
+
]);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const LineItemGrouping = {
|
|
9
|
+
PerChargePeriod: "per_charge_period",
|
|
10
|
+
PerBillingPeriod: "per_billing_period",
|
|
11
|
+
} as const;
|
|
12
|
+
export type LineItemGrouping = ClosedEnum<typeof LineItemGrouping>;
|
|
13
|
+
|
|
14
|
+
export const LineItemGrouping$zodSchema = z.enum([
|
|
15
|
+
"per_charge_period",
|
|
16
|
+
"per_billing_period",
|
|
17
|
+
]);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const OnExistingEntityPolicy = {
|
|
9
|
+
Reject: "reject",
|
|
10
|
+
Supersede: "supersede",
|
|
11
|
+
} as const;
|
|
12
|
+
export type OnExistingEntityPolicy = ClosedEnum<typeof OnExistingEntityPolicy>;
|
|
13
|
+
|
|
14
|
+
export const OnExistingEntityPolicy$zodSchema = z.enum([
|
|
15
|
+
"reject",
|
|
16
|
+
"supersede",
|
|
17
|
+
]);
|
|
@@ -7,9 +7,11 @@ import {
|
|
|
7
7
|
ProrationBehavior,
|
|
8
8
|
ProrationBehavior$zodSchema,
|
|
9
9
|
} from "./prorationbehavior.js";
|
|
10
|
+
import { ScheduleType, ScheduleType$zodSchema } from "./scheduletype.js";
|
|
10
11
|
|
|
11
12
|
export type RemoveAddonRequest = {
|
|
12
13
|
addon_association_id: string;
|
|
14
|
+
change_at?: ScheduleType | undefined;
|
|
13
15
|
effective_date?: string | undefined;
|
|
14
16
|
proration_behavior?: ProrationBehavior | undefined;
|
|
15
17
|
reason?: string | undefined;
|
|
@@ -18,6 +20,7 @@ export type RemoveAddonRequest = {
|
|
|
18
20
|
export const RemoveAddonRequest$zodSchema: z.ZodType<RemoveAddonRequest> = z
|
|
19
21
|
.object({
|
|
20
22
|
addon_association_id: z.string(),
|
|
23
|
+
change_at: ScheduleType$zodSchema.optional(),
|
|
21
24
|
effective_date: z.iso.datetime({ offset: true }).optional().describe(
|
|
22
25
|
"EffectiveDate defaults to period end when nil; mid-period with create_prorations issues a wallet credit.",
|
|
23
26
|
),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
AddAddonToSubscriptionRequest,
|
|
8
|
+
AddAddonToSubscriptionRequest$zodSchema,
|
|
9
|
+
} from "./addaddontosubscriptionrequest.js";
|
|
10
|
+
import {
|
|
11
|
+
RemoveAddonRequest,
|
|
12
|
+
RemoveAddonRequest$zodSchema,
|
|
13
|
+
} from "./removeaddonrequest.js";
|
|
14
|
+
|
|
15
|
+
export type SubModifyBulkAddonParams = {
|
|
16
|
+
adds?: Array<AddAddonToSubscriptionRequest> | undefined;
|
|
17
|
+
removes?: Array<RemoveAddonRequest> | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const SubModifyBulkAddonParams$zodSchema: z.ZodType<
|
|
21
|
+
SubModifyBulkAddonParams
|
|
22
|
+
> = z.object({
|
|
23
|
+
adds: z.array(AddAddonToSubscriptionRequest$zodSchema).optional(),
|
|
24
|
+
removes: z.array(RemoveAddonRequest$zodSchema).optional(),
|
|
25
|
+
});
|
|
@@ -7,7 +7,7 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
7
7
|
|
|
8
8
|
export const SubscriptionChangeEntityType = {
|
|
9
9
|
Plan: "plan",
|
|
10
|
-
|
|
10
|
+
AddonAssociation: "addon_association",
|
|
11
11
|
CreditGrant: "credit_grant",
|
|
12
12
|
Entitlement: "entitlement",
|
|
13
13
|
EntitlementGrant: "entitlement_grant",
|
|
@@ -18,7 +18,7 @@ export type SubscriptionChangeEntityType = ClosedEnum<
|
|
|
18
18
|
|
|
19
19
|
export const SubscriptionChangeEntityType$zodSchema = z.enum([
|
|
20
20
|
"plan",
|
|
21
|
-
"
|
|
21
|
+
"addon_association",
|
|
22
22
|
"credit_grant",
|
|
23
23
|
"entitlement",
|
|
24
24
|
"entitlement_grant",
|
|
@@ -30,6 +30,10 @@ import {
|
|
|
30
30
|
InvoiceResponse,
|
|
31
31
|
InvoiceResponse$zodSchema,
|
|
32
32
|
} from "./invoiceresponse.js";
|
|
33
|
+
import {
|
|
34
|
+
LineItemGrouping,
|
|
35
|
+
LineItemGrouping$zodSchema,
|
|
36
|
+
} from "./lineitemgrouping.js";
|
|
33
37
|
import { PauseStatus, PauseStatus$zodSchema } from "./pausestatus.js";
|
|
34
38
|
import { PaymentTerms, PaymentTerms$zodSchema } from "./paymentterms.js";
|
|
35
39
|
import { PlanResponse, PlanResponse$zodSchema } from "./planresponse.js";
|
|
@@ -91,6 +95,7 @@ export type SubscriptionResponse = {
|
|
|
91
95
|
id?: string | undefined;
|
|
92
96
|
invoicing_customer_id?: string | undefined;
|
|
93
97
|
latest_invoice?: InvoiceResponse | undefined;
|
|
98
|
+
line_item_grouping?: LineItemGrouping | undefined;
|
|
94
99
|
line_items?: Array<SubscriptionSubscriptionLineItem> | undefined;
|
|
95
100
|
lookup_key?: string | undefined;
|
|
96
101
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -196,6 +201,7 @@ export const SubscriptionResponse$zodSchema: z.ZodType<SubscriptionResponse> = z
|
|
|
196
201
|
"InvoicingCustomerID is the customer ID to use for invoicing\nThis can differ from the subscription customer (e.g., parent company invoicing for child company)",
|
|
197
202
|
),
|
|
198
203
|
latest_invoice: z.lazy(() => InvoiceResponse$zodSchema).optional(),
|
|
204
|
+
line_item_grouping: LineItemGrouping$zodSchema.optional(),
|
|
199
205
|
line_items: z.array(SubscriptionSubscriptionLineItem$zodSchema).optional(),
|
|
200
206
|
lookup_key: z.string().optional().describe(
|
|
201
207
|
"LookupKey is the key used to lookup the subscription in our system",
|