autumn-js 1.4.44 → 1.4.45
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/backend/adapters/express.js +1726 -62
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +1726 -62
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +1726 -62
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +1726 -62
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +1726 -62
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-RINSHGWS.mjs → chunk-447MJ3TK.mjs} +7 -7
- package/dist/backend/{chunk-DXYCQL66.mjs → chunk-6LQFPGW7.mjs} +690 -6
- package/dist/{better-auth/chunk-3HI4ZAER.mjs → backend/chunk-BGOMNBZE.mjs} +1249 -492
- package/dist/backend/{chunk-MSBZSEDI.mjs → chunk-LFBCP4DR.mjs} +1 -1
- package/dist/backend/{chunk-3XZ6JQ4W.mjs → chunk-OASMKH3X.mjs} +1 -1
- package/dist/backend/{chunk-NYJDKWDN.mjs → chunk-OWXVAKKE.mjs} +5 -5
- package/dist/backend/{chunk-2QPEPWS7.mjs → chunk-RNNEDWGS.mjs} +1 -1
- package/dist/backend/{chunk-M5WRVTI7.mjs → chunk-WAHR3PR5.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +1726 -62
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +3 -3
- package/dist/backend/core/handlers/handleRouteByName.js +1726 -62
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +1726 -62
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +1726 -62
- package/dist/backend/core/index.mjs +7 -7
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +690 -6
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +690 -6
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +1726 -62
- package/dist/backend/index.mjs +7 -7
- package/dist/backend/{routeTypes-Bl42Xsbn.d.ts → routeTypes-B60eQkAD.d.ts} +1204 -24
- package/dist/backend/{routeTypes-UbqWJ7S1.d.mts → routeTypes-Be-qPNaS.d.mts} +1204 -24
- package/dist/better-auth/{chunk-5Y6DNCKY.mjs → chunk-7UPP5FN5.mjs} +690 -6
- package/dist/{backend/chunk-P2YY7A4Q.mjs → better-auth/chunk-LKRWMSLD.mjs} +1472 -269
- package/dist/better-auth/{chunk-KC4ERJCL.mjs → chunk-XMGJ2JOK.mjs} +1 -1
- package/dist/better-auth/index.js +1726 -62
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +690 -6
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +1726 -62
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +1726 -62
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/client/AutumnClient.d.mts +1 -1
- package/dist/react/client/AutumnClient.d.ts +1 -1
- package/dist/react/client/IAutumnClient.d.mts +1 -1
- package/dist/react/client/IAutumnClient.d.ts +1 -1
- package/dist/react/client/index.d.mts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/hooks/index.d.mts +1 -1
- package/dist/react/hooks/index.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/{params-BVHR29Jw.d.ts → params-C2jAUY_b.d.ts} +1284 -128
- package/dist/react/{params-B8Yl2uMz.d.mts → params-DwaKLWLR.d.mts} +1284 -128
- package/dist/sdk/index.d.mts +1789 -83
- package/dist/sdk/index.d.ts +1789 -83
- package/dist/sdk/index.js +1502 -69
- package/dist/sdk/index.mjs +1319 -60
- package/package.json +2 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -1620,7 +1620,7 @@ var AttachOnEnd = {
|
|
|
1620
1620
|
Bill: "bill",
|
|
1621
1621
|
Revert: "revert"
|
|
1622
1622
|
};
|
|
1623
|
-
var
|
|
1623
|
+
var AttachPriceCustomizeInterval = {
|
|
1624
1624
|
OneOff: "one_off",
|
|
1625
1625
|
Week: "week",
|
|
1626
1626
|
Month: "month",
|
|
@@ -1892,7 +1892,7 @@ var AttachFreeTrialParams$outboundSchema = z13.pipe(
|
|
|
1892
1892
|
});
|
|
1893
1893
|
})
|
|
1894
1894
|
);
|
|
1895
|
-
var
|
|
1895
|
+
var AttachPriceCustomizeInterval$outboundSchema = z13.enum(AttachPriceCustomizeInterval);
|
|
1896
1896
|
var AttachAdditionalCurrency$outboundSchema = z13.object({
|
|
1897
1897
|
currency: z13.string(),
|
|
1898
1898
|
amount: z13.number()
|
|
@@ -1900,7 +1900,7 @@ var AttachAdditionalCurrency$outboundSchema = z13.object({
|
|
|
1900
1900
|
var AttachBasePrice$outboundSchema = z13.pipe(
|
|
1901
1901
|
z13.object({
|
|
1902
1902
|
amount: z13.number(),
|
|
1903
|
-
interval:
|
|
1903
|
+
interval: AttachPriceCustomizeInterval$outboundSchema,
|
|
1904
1904
|
intervalCount: z13._default(z13.number(), 1),
|
|
1905
1905
|
additionalCurrencies: z13.optional(
|
|
1906
1906
|
z13.array(z13.lazy(() => AttachAdditionalCurrency$outboundSchema))
|
|
@@ -3037,6 +3037,11 @@ var AttachIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
3037
3037
|
SemiAnnual: "semi_annual",
|
|
3038
3038
|
Year: "year"
|
|
3039
3039
|
};
|
|
3040
|
+
var AttachIssueMethod = {
|
|
3041
|
+
Draft: "draft",
|
|
3042
|
+
Finalize: "finalize",
|
|
3043
|
+
Send: "send"
|
|
3044
|
+
};
|
|
3040
3045
|
var AttachPaymentMethodType = {
|
|
3041
3046
|
Card: "card",
|
|
3042
3047
|
CustomerBalance: "customer_balance",
|
|
@@ -3060,6 +3065,50 @@ var AttachPlanSchedule = {
|
|
|
3060
3065
|
Immediate: "immediate",
|
|
3061
3066
|
EndOfCycle: "end_of_cycle"
|
|
3062
3067
|
};
|
|
3068
|
+
var AttachDirection = {
|
|
3069
|
+
Charge: "charge",
|
|
3070
|
+
Refund: "refund"
|
|
3071
|
+
};
|
|
3072
|
+
var AttachPriceRemoveLineInterval = {
|
|
3073
|
+
OneOff: "one_off",
|
|
3074
|
+
Week: "week",
|
|
3075
|
+
Month: "month",
|
|
3076
|
+
Quarter: "quarter",
|
|
3077
|
+
SemiAnnual: "semi_annual",
|
|
3078
|
+
Year: "year"
|
|
3079
|
+
};
|
|
3080
|
+
var AttachBillingBehavior = {
|
|
3081
|
+
Prepaid: "prepaid",
|
|
3082
|
+
UsageBased: "usage_based"
|
|
3083
|
+
};
|
|
3084
|
+
var AttachFeatureQuantityInterval = {
|
|
3085
|
+
OneOff: "one_off",
|
|
3086
|
+
Week: "week",
|
|
3087
|
+
Month: "month",
|
|
3088
|
+
Quarter: "quarter",
|
|
3089
|
+
SemiAnnual: "semi_annual",
|
|
3090
|
+
Year: "year"
|
|
3091
|
+
};
|
|
3092
|
+
var AttachPriceLicenseQuantityInterval = {
|
|
3093
|
+
OneOff: "one_off",
|
|
3094
|
+
Week: "week",
|
|
3095
|
+
Month: "month",
|
|
3096
|
+
Quarter: "quarter",
|
|
3097
|
+
SemiAnnual: "semi_annual",
|
|
3098
|
+
Year: "year"
|
|
3099
|
+
};
|
|
3100
|
+
var AttachLicenseQuantityBillingBehavior = {
|
|
3101
|
+
Prepaid: "prepaid",
|
|
3102
|
+
UsageBased: "usage_based"
|
|
3103
|
+
};
|
|
3104
|
+
var AttachLicenseQuantityFeatureQuantityInterval = {
|
|
3105
|
+
OneOff: "one_off",
|
|
3106
|
+
Week: "week",
|
|
3107
|
+
Month: "month",
|
|
3108
|
+
Quarter: "quarter",
|
|
3109
|
+
SemiAnnual: "semi_annual",
|
|
3110
|
+
Year: "year"
|
|
3111
|
+
};
|
|
3063
3112
|
var AttachTaxExempt = {
|
|
3064
3113
|
None: "none",
|
|
3065
3114
|
Exempt: "exempt",
|
|
@@ -3470,12 +3519,14 @@ var AttachCustomize$outboundSchema = z14.pipe(
|
|
|
3470
3519
|
});
|
|
3471
3520
|
})
|
|
3472
3521
|
);
|
|
3522
|
+
var AttachIssueMethod$outboundSchema = z14.enum(AttachIssueMethod);
|
|
3473
3523
|
var AttachPaymentMethodType$outboundSchema = z14.enum(AttachPaymentMethodType);
|
|
3474
3524
|
var AttachInvoiceMode$outboundSchema = z14.pipe(
|
|
3475
3525
|
z14.object({
|
|
3476
3526
|
enabled: z14.boolean(),
|
|
3477
3527
|
enablePlanImmediately: z14._default(z14.boolean(), false),
|
|
3478
|
-
finalize: z14.
|
|
3528
|
+
finalize: z14.optional(z14.boolean()),
|
|
3529
|
+
issueMethod: z14.optional(AttachIssueMethod$outboundSchema),
|
|
3479
3530
|
invoiceTemplateId: z14.optional(z14.string()),
|
|
3480
3531
|
netTermsDays: z14.optional(z14.int()),
|
|
3481
3532
|
paymentMethodTypes: z14.optional(
|
|
@@ -3485,6 +3536,7 @@ var AttachInvoiceMode$outboundSchema = z14.pipe(
|
|
|
3485
3536
|
z14.transform((v) => {
|
|
3486
3537
|
return remap(v, {
|
|
3487
3538
|
enablePlanImmediately: "enable_plan_immediately",
|
|
3539
|
+
issueMethod: "issue_method",
|
|
3488
3540
|
invoiceTemplateId: "invoice_template_id",
|
|
3489
3541
|
netTermsDays: "net_terms_days",
|
|
3490
3542
|
paymentMethodTypes: "payment_method_types"
|
|
@@ -3511,6 +3563,134 @@ var AttachCustomLineItem$outboundSchema = z14.object({
|
|
|
3511
3563
|
amount: z14.number(),
|
|
3512
3564
|
description: z14.string()
|
|
3513
3565
|
});
|
|
3566
|
+
var AttachDirection$outboundSchema = z14.enum(AttachDirection);
|
|
3567
|
+
var AttachPriceRemoveLineInterval$outboundSchema = z14.enum(AttachPriceRemoveLineInterval);
|
|
3568
|
+
var AttachPriceRemoveLine$outboundSchema = z14.pipe(
|
|
3569
|
+
z14.object({
|
|
3570
|
+
interval: z14.optional(AttachPriceRemoveLineInterval$outboundSchema),
|
|
3571
|
+
intervalCount: z14.optional(z14.int())
|
|
3572
|
+
}),
|
|
3573
|
+
z14.transform((v) => {
|
|
3574
|
+
return remap(v, {
|
|
3575
|
+
intervalCount: "interval_count"
|
|
3576
|
+
});
|
|
3577
|
+
})
|
|
3578
|
+
);
|
|
3579
|
+
var AttachPriceUnion$outboundSchema = smartUnion([
|
|
3580
|
+
z14.boolean(),
|
|
3581
|
+
z14.lazy(() => AttachPriceRemoveLine$outboundSchema)
|
|
3582
|
+
]);
|
|
3583
|
+
var AttachBillingBehavior$outboundSchema = z14.enum(AttachBillingBehavior);
|
|
3584
|
+
var AttachFeatureQuantityInterval$outboundSchema = z14.enum(AttachFeatureQuantityInterval);
|
|
3585
|
+
var AttachRemoveLineFeatureQuantity$outboundSchema = z14.pipe(
|
|
3586
|
+
z14.object({
|
|
3587
|
+
featureId: z14.string(),
|
|
3588
|
+
billingBehavior: AttachBillingBehavior$outboundSchema,
|
|
3589
|
+
interval: z14.optional(AttachFeatureQuantityInterval$outboundSchema),
|
|
3590
|
+
intervalCount: z14.optional(z14.int())
|
|
3591
|
+
}),
|
|
3592
|
+
z14.transform((v) => {
|
|
3593
|
+
return remap(v, {
|
|
3594
|
+
featureId: "feature_id",
|
|
3595
|
+
billingBehavior: "billing_behavior",
|
|
3596
|
+
intervalCount: "interval_count"
|
|
3597
|
+
});
|
|
3598
|
+
})
|
|
3599
|
+
);
|
|
3600
|
+
var AttachPriceLicenseQuantityInterval$outboundSchema = z14.enum(AttachPriceLicenseQuantityInterval);
|
|
3601
|
+
var AttachPriceLicenseQuantity$outboundSchema = z14.pipe(
|
|
3602
|
+
z14.object({
|
|
3603
|
+
interval: z14.optional(AttachPriceLicenseQuantityInterval$outboundSchema),
|
|
3604
|
+
intervalCount: z14.optional(z14.int())
|
|
3605
|
+
}),
|
|
3606
|
+
z14.transform((v) => {
|
|
3607
|
+
return remap(v, {
|
|
3608
|
+
intervalCount: "interval_count"
|
|
3609
|
+
});
|
|
3610
|
+
})
|
|
3611
|
+
);
|
|
3612
|
+
var AttachLicenseQuantityPriceUnion$outboundSchema = smartUnion([
|
|
3613
|
+
z14.boolean(),
|
|
3614
|
+
z14.lazy(() => AttachPriceLicenseQuantity$outboundSchema)
|
|
3615
|
+
]);
|
|
3616
|
+
var AttachLicenseQuantityBillingBehavior$outboundSchema = z14.enum(AttachLicenseQuantityBillingBehavior);
|
|
3617
|
+
var AttachLicenseQuantityFeatureQuantityInterval$outboundSchema = z14.enum(
|
|
3618
|
+
AttachLicenseQuantityFeatureQuantityInterval
|
|
3619
|
+
);
|
|
3620
|
+
var AttachLicenseQuantityFeatureQuantity$outboundSchema = z14.pipe(
|
|
3621
|
+
z14.object({
|
|
3622
|
+
featureId: z14.string(),
|
|
3623
|
+
billingBehavior: AttachLicenseQuantityBillingBehavior$outboundSchema,
|
|
3624
|
+
interval: z14.optional(
|
|
3625
|
+
AttachLicenseQuantityFeatureQuantityInterval$outboundSchema
|
|
3626
|
+
),
|
|
3627
|
+
intervalCount: z14.optional(z14.int())
|
|
3628
|
+
}),
|
|
3629
|
+
z14.transform((v) => {
|
|
3630
|
+
return remap(v, {
|
|
3631
|
+
featureId: "feature_id",
|
|
3632
|
+
billingBehavior: "billing_behavior",
|
|
3633
|
+
intervalCount: "interval_count"
|
|
3634
|
+
});
|
|
3635
|
+
})
|
|
3636
|
+
);
|
|
3637
|
+
var AttachRemoveLineLicenseQuantity$outboundSchema = z14.pipe(
|
|
3638
|
+
z14.object({
|
|
3639
|
+
licensePlanId: z14.string(),
|
|
3640
|
+
price: z14.optional(smartUnion([
|
|
3641
|
+
z14.boolean(),
|
|
3642
|
+
z14.lazy(() => AttachPriceLicenseQuantity$outboundSchema)
|
|
3643
|
+
])),
|
|
3644
|
+
featureQuantities: z14.optional(z14.array(z14.lazy(
|
|
3645
|
+
() => AttachLicenseQuantityFeatureQuantity$outboundSchema
|
|
3646
|
+
)))
|
|
3647
|
+
}),
|
|
3648
|
+
z14.transform((v) => {
|
|
3649
|
+
return remap(v, {
|
|
3650
|
+
licensePlanId: "license_plan_id",
|
|
3651
|
+
featureQuantities: "feature_quantities"
|
|
3652
|
+
});
|
|
3653
|
+
})
|
|
3654
|
+
);
|
|
3655
|
+
var AttachRemoveLine$outboundSchema = z14.pipe(
|
|
3656
|
+
z14.object({
|
|
3657
|
+
planId: z14.string(),
|
|
3658
|
+
entityId: z14.optional(z14.nullable(z14.string())),
|
|
3659
|
+
direction: z14.optional(AttachDirection$outboundSchema),
|
|
3660
|
+
price: z14.optional(smartUnion([
|
|
3661
|
+
z14.boolean(),
|
|
3662
|
+
z14.lazy(() => AttachPriceRemoveLine$outboundSchema)
|
|
3663
|
+
])),
|
|
3664
|
+
featureQuantities: z14.optional(z14.array(z14.lazy(
|
|
3665
|
+
() => AttachRemoveLineFeatureQuantity$outboundSchema
|
|
3666
|
+
))),
|
|
3667
|
+
licenseQuantities: z14.optional(z14.array(z14.lazy(
|
|
3668
|
+
() => AttachRemoveLineLicenseQuantity$outboundSchema
|
|
3669
|
+
)))
|
|
3670
|
+
}),
|
|
3671
|
+
z14.transform((v) => {
|
|
3672
|
+
return remap(v, {
|
|
3673
|
+
planId: "plan_id",
|
|
3674
|
+
entityId: "entity_id",
|
|
3675
|
+
featureQuantities: "feature_quantities",
|
|
3676
|
+
licenseQuantities: "license_quantities"
|
|
3677
|
+
});
|
|
3678
|
+
})
|
|
3679
|
+
);
|
|
3680
|
+
var AttachAddLine$outboundSchema = z14.pipe(
|
|
3681
|
+
z14.object({
|
|
3682
|
+
amount: z14.number(),
|
|
3683
|
+
description: z14.string(),
|
|
3684
|
+
periodStart: z14.optional(z14.int()),
|
|
3685
|
+
periodEnd: z14.optional(z14.int())
|
|
3686
|
+
}),
|
|
3687
|
+
z14.transform((v) => {
|
|
3688
|
+
return remap(v, {
|
|
3689
|
+
periodStart: "period_start",
|
|
3690
|
+
periodEnd: "period_end"
|
|
3691
|
+
});
|
|
3692
|
+
})
|
|
3693
|
+
);
|
|
3514
3694
|
var AttachCarryOverBalances$outboundSchema = z14.pipe(
|
|
3515
3695
|
z14.object({
|
|
3516
3696
|
enabled: z14.boolean(),
|
|
@@ -3633,6 +3813,10 @@ var AttachParams$outboundSchema = z14.pipe(
|
|
|
3633
3813
|
customLineItems: z14.optional(
|
|
3634
3814
|
z14.array(z14.lazy(() => AttachCustomLineItem$outboundSchema))
|
|
3635
3815
|
),
|
|
3816
|
+
removeLines: z14.optional(
|
|
3817
|
+
z14.array(z14.lazy(() => AttachRemoveLine$outboundSchema))
|
|
3818
|
+
),
|
|
3819
|
+
addLines: z14.optional(z14.array(z14.lazy(() => AttachAddLine$outboundSchema))),
|
|
3636
3820
|
processorSubscriptionId: z14.optional(z14.string()),
|
|
3637
3821
|
carryOverBalances: z14.optional(
|
|
3638
3822
|
z14.lazy(() => AttachCarryOverBalances$outboundSchema)
|
|
@@ -3677,6 +3861,8 @@ var AttachParams$outboundSchema = z14.pipe(
|
|
|
3677
3861
|
checkoutSessionParams: "checkout_session_params",
|
|
3678
3862
|
longLivedCheckout: "long_lived_checkout",
|
|
3679
3863
|
customLineItems: "custom_line_items",
|
|
3864
|
+
removeLines: "remove_lines",
|
|
3865
|
+
addLines: "add_lines",
|
|
3680
3866
|
processorSubscriptionId: "processor_subscription_id",
|
|
3681
3867
|
carryOverBalances: "carry_over_balances",
|
|
3682
3868
|
carryOverUsages: "carry_over_usages",
|
|
@@ -4258,7 +4444,7 @@ var BillingUpdateOnEnd = {
|
|
|
4258
4444
|
Bill: "bill",
|
|
4259
4445
|
Revert: "revert"
|
|
4260
4446
|
};
|
|
4261
|
-
var
|
|
4447
|
+
var BillingUpdatePriceCustomizeInterval = {
|
|
4262
4448
|
OneOff: "one_off",
|
|
4263
4449
|
Week: "week",
|
|
4264
4450
|
Month: "month",
|
|
@@ -4530,7 +4716,7 @@ var BillingUpdateFreeTrialParams$outboundSchema = z17.pipe(
|
|
|
4530
4716
|
});
|
|
4531
4717
|
})
|
|
4532
4718
|
);
|
|
4533
|
-
var
|
|
4719
|
+
var BillingUpdatePriceCustomizeInterval$outboundSchema = z17.enum(BillingUpdatePriceCustomizeInterval);
|
|
4534
4720
|
var BillingUpdateAdditionalCurrency$outboundSchema = z17.object({
|
|
4535
4721
|
currency: z17.string(),
|
|
4536
4722
|
amount: z17.number()
|
|
@@ -4538,7 +4724,7 @@ var BillingUpdateAdditionalCurrency$outboundSchema = z17.object({
|
|
|
4538
4724
|
var BillingUpdateBasePrice$outboundSchema = z17.pipe(
|
|
4539
4725
|
z17.object({
|
|
4540
4726
|
amount: z17.number(),
|
|
4541
|
-
interval:
|
|
4727
|
+
interval: BillingUpdatePriceCustomizeInterval$outboundSchema,
|
|
4542
4728
|
intervalCount: z17._default(z17.number(), 1),
|
|
4543
4729
|
additionalCurrencies: z17.optional(
|
|
4544
4730
|
z17.array(z17.lazy(() => BillingUpdateAdditionalCurrency$outboundSchema))
|
|
@@ -5735,6 +5921,11 @@ var BillingUpdateIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
5735
5921
|
SemiAnnual: "semi_annual",
|
|
5736
5922
|
Year: "year"
|
|
5737
5923
|
};
|
|
5924
|
+
var BillingUpdateIssueMethod = {
|
|
5925
|
+
Draft: "draft",
|
|
5926
|
+
Finalize: "finalize",
|
|
5927
|
+
Send: "send"
|
|
5928
|
+
};
|
|
5738
5929
|
var BillingUpdatePaymentMethodType = {
|
|
5739
5930
|
Card: "card",
|
|
5740
5931
|
CustomerBalance: "customer_balance",
|
|
@@ -5754,6 +5945,50 @@ var BillingUpdateRedirectMode = {
|
|
|
5754
5945
|
IfRequired: "if_required",
|
|
5755
5946
|
Never: "never"
|
|
5756
5947
|
};
|
|
5948
|
+
var BillingUpdateDirection = {
|
|
5949
|
+
Charge: "charge",
|
|
5950
|
+
Refund: "refund"
|
|
5951
|
+
};
|
|
5952
|
+
var BillingUpdatePriceRemoveLineInterval = {
|
|
5953
|
+
OneOff: "one_off",
|
|
5954
|
+
Week: "week",
|
|
5955
|
+
Month: "month",
|
|
5956
|
+
Quarter: "quarter",
|
|
5957
|
+
SemiAnnual: "semi_annual",
|
|
5958
|
+
Year: "year"
|
|
5959
|
+
};
|
|
5960
|
+
var BillingUpdateBillingBehavior = {
|
|
5961
|
+
Prepaid: "prepaid",
|
|
5962
|
+
UsageBased: "usage_based"
|
|
5963
|
+
};
|
|
5964
|
+
var BillingUpdateFeatureQuantityInterval = {
|
|
5965
|
+
OneOff: "one_off",
|
|
5966
|
+
Week: "week",
|
|
5967
|
+
Month: "month",
|
|
5968
|
+
Quarter: "quarter",
|
|
5969
|
+
SemiAnnual: "semi_annual",
|
|
5970
|
+
Year: "year"
|
|
5971
|
+
};
|
|
5972
|
+
var BillingUpdatePriceLicenseQuantityInterval = {
|
|
5973
|
+
OneOff: "one_off",
|
|
5974
|
+
Week: "week",
|
|
5975
|
+
Month: "month",
|
|
5976
|
+
Quarter: "quarter",
|
|
5977
|
+
SemiAnnual: "semi_annual",
|
|
5978
|
+
Year: "year"
|
|
5979
|
+
};
|
|
5980
|
+
var BillingUpdateLicenseQuantityBillingBehavior = {
|
|
5981
|
+
Prepaid: "prepaid",
|
|
5982
|
+
UsageBased: "usage_based"
|
|
5983
|
+
};
|
|
5984
|
+
var BillingUpdateLicenseQuantityFeatureQuantityInterval = {
|
|
5985
|
+
OneOff: "one_off",
|
|
5986
|
+
Week: "week",
|
|
5987
|
+
Month: "month",
|
|
5988
|
+
Quarter: "quarter",
|
|
5989
|
+
SemiAnnual: "semi_annual",
|
|
5990
|
+
Year: "year"
|
|
5991
|
+
};
|
|
5757
5992
|
var BillingUpdateCancelAction = {
|
|
5758
5993
|
CancelImmediately: "cancel_immediately",
|
|
5759
5994
|
CancelEndOfCycle: "cancel_end_of_cycle",
|
|
@@ -6175,12 +6410,14 @@ var BillingUpdateCustomize$outboundSchema = z18.pipe(
|
|
|
6175
6410
|
});
|
|
6176
6411
|
})
|
|
6177
6412
|
);
|
|
6413
|
+
var BillingUpdateIssueMethod$outboundSchema = z18.enum(BillingUpdateIssueMethod);
|
|
6178
6414
|
var BillingUpdatePaymentMethodType$outboundSchema = z18.enum(BillingUpdatePaymentMethodType);
|
|
6179
6415
|
var BillingUpdateInvoiceMode$outboundSchema = z18.pipe(
|
|
6180
6416
|
z18.object({
|
|
6181
6417
|
enabled: z18.boolean(),
|
|
6182
6418
|
enablePlanImmediately: z18._default(z18.boolean(), false),
|
|
6183
|
-
finalize: z18.
|
|
6419
|
+
finalize: z18.optional(z18.boolean()),
|
|
6420
|
+
issueMethod: z18.optional(BillingUpdateIssueMethod$outboundSchema),
|
|
6184
6421
|
invoiceTemplateId: z18.optional(z18.string()),
|
|
6185
6422
|
netTermsDays: z18.optional(z18.int()),
|
|
6186
6423
|
paymentMethodTypes: z18.optional(
|
|
@@ -6190,6 +6427,7 @@ var BillingUpdateInvoiceMode$outboundSchema = z18.pipe(
|
|
|
6190
6427
|
z18.transform((v) => {
|
|
6191
6428
|
return remap(v, {
|
|
6192
6429
|
enablePlanImmediately: "enable_plan_immediately",
|
|
6430
|
+
issueMethod: "issue_method",
|
|
6193
6431
|
invoiceTemplateId: "invoice_template_id",
|
|
6194
6432
|
netTermsDays: "net_terms_days",
|
|
6195
6433
|
paymentMethodTypes: "payment_method_types"
|
|
@@ -6224,6 +6462,138 @@ var BillingUpdateCustomLineItem$outboundSchema = z18.object({
|
|
|
6224
6462
|
amount: z18.number(),
|
|
6225
6463
|
description: z18.string()
|
|
6226
6464
|
});
|
|
6465
|
+
var BillingUpdateDirection$outboundSchema = z18.enum(BillingUpdateDirection);
|
|
6466
|
+
var BillingUpdatePriceRemoveLineInterval$outboundSchema = z18.enum(BillingUpdatePriceRemoveLineInterval);
|
|
6467
|
+
var BillingUpdatePriceRemoveLine$outboundSchema = z18.pipe(
|
|
6468
|
+
z18.object({
|
|
6469
|
+
interval: z18.optional(BillingUpdatePriceRemoveLineInterval$outboundSchema),
|
|
6470
|
+
intervalCount: z18.optional(z18.int())
|
|
6471
|
+
}),
|
|
6472
|
+
z18.transform((v) => {
|
|
6473
|
+
return remap(v, {
|
|
6474
|
+
intervalCount: "interval_count"
|
|
6475
|
+
});
|
|
6476
|
+
})
|
|
6477
|
+
);
|
|
6478
|
+
var BillingUpdatePriceUnion$outboundSchema = smartUnion([
|
|
6479
|
+
z18.boolean(),
|
|
6480
|
+
z18.lazy(() => BillingUpdatePriceRemoveLine$outboundSchema)
|
|
6481
|
+
]);
|
|
6482
|
+
var BillingUpdateBillingBehavior$outboundSchema = z18.enum(BillingUpdateBillingBehavior);
|
|
6483
|
+
var BillingUpdateFeatureQuantityInterval$outboundSchema = z18.enum(BillingUpdateFeatureQuantityInterval);
|
|
6484
|
+
var BillingUpdateRemoveLineFeatureQuantity$outboundSchema = z18.pipe(
|
|
6485
|
+
z18.object({
|
|
6486
|
+
featureId: z18.string(),
|
|
6487
|
+
billingBehavior: BillingUpdateBillingBehavior$outboundSchema,
|
|
6488
|
+
interval: z18.optional(BillingUpdateFeatureQuantityInterval$outboundSchema),
|
|
6489
|
+
intervalCount: z18.optional(z18.int())
|
|
6490
|
+
}),
|
|
6491
|
+
z18.transform((v) => {
|
|
6492
|
+
return remap(v, {
|
|
6493
|
+
featureId: "feature_id",
|
|
6494
|
+
billingBehavior: "billing_behavior",
|
|
6495
|
+
intervalCount: "interval_count"
|
|
6496
|
+
});
|
|
6497
|
+
})
|
|
6498
|
+
);
|
|
6499
|
+
var BillingUpdatePriceLicenseQuantityInterval$outboundSchema = z18.enum(
|
|
6500
|
+
BillingUpdatePriceLicenseQuantityInterval
|
|
6501
|
+
);
|
|
6502
|
+
var BillingUpdatePriceLicenseQuantity$outboundSchema = z18.pipe(
|
|
6503
|
+
z18.object({
|
|
6504
|
+
interval: z18.optional(
|
|
6505
|
+
BillingUpdatePriceLicenseQuantityInterval$outboundSchema
|
|
6506
|
+
),
|
|
6507
|
+
intervalCount: z18.optional(z18.int())
|
|
6508
|
+
}),
|
|
6509
|
+
z18.transform((v) => {
|
|
6510
|
+
return remap(v, {
|
|
6511
|
+
intervalCount: "interval_count"
|
|
6512
|
+
});
|
|
6513
|
+
})
|
|
6514
|
+
);
|
|
6515
|
+
var BillingUpdateLicenseQuantityPriceUnion$outboundSchema = smartUnion([
|
|
6516
|
+
z18.boolean(),
|
|
6517
|
+
z18.lazy(() => BillingUpdatePriceLicenseQuantity$outboundSchema)
|
|
6518
|
+
]);
|
|
6519
|
+
var BillingUpdateLicenseQuantityBillingBehavior$outboundSchema = z18.enum(
|
|
6520
|
+
BillingUpdateLicenseQuantityBillingBehavior
|
|
6521
|
+
);
|
|
6522
|
+
var BillingUpdateLicenseQuantityFeatureQuantityInterval$outboundSchema = z18.enum(BillingUpdateLicenseQuantityFeatureQuantityInterval);
|
|
6523
|
+
var BillingUpdateLicenseQuantityFeatureQuantity$outboundSchema = z18.pipe(
|
|
6524
|
+
z18.object({
|
|
6525
|
+
featureId: z18.string(),
|
|
6526
|
+
billingBehavior: BillingUpdateLicenseQuantityBillingBehavior$outboundSchema,
|
|
6527
|
+
interval: z18.optional(
|
|
6528
|
+
BillingUpdateLicenseQuantityFeatureQuantityInterval$outboundSchema
|
|
6529
|
+
),
|
|
6530
|
+
intervalCount: z18.optional(z18.int())
|
|
6531
|
+
}),
|
|
6532
|
+
z18.transform((v) => {
|
|
6533
|
+
return remap(v, {
|
|
6534
|
+
featureId: "feature_id",
|
|
6535
|
+
billingBehavior: "billing_behavior",
|
|
6536
|
+
intervalCount: "interval_count"
|
|
6537
|
+
});
|
|
6538
|
+
})
|
|
6539
|
+
);
|
|
6540
|
+
var BillingUpdateRemoveLineLicenseQuantity$outboundSchema = z18.pipe(
|
|
6541
|
+
z18.object({
|
|
6542
|
+
licensePlanId: z18.string(),
|
|
6543
|
+
price: z18.optional(smartUnion([
|
|
6544
|
+
z18.boolean(),
|
|
6545
|
+
z18.lazy(() => BillingUpdatePriceLicenseQuantity$outboundSchema)
|
|
6546
|
+
])),
|
|
6547
|
+
featureQuantities: z18.optional(z18.array(z18.lazy(
|
|
6548
|
+
() => BillingUpdateLicenseQuantityFeatureQuantity$outboundSchema
|
|
6549
|
+
)))
|
|
6550
|
+
}),
|
|
6551
|
+
z18.transform((v) => {
|
|
6552
|
+
return remap(v, {
|
|
6553
|
+
licensePlanId: "license_plan_id",
|
|
6554
|
+
featureQuantities: "feature_quantities"
|
|
6555
|
+
});
|
|
6556
|
+
})
|
|
6557
|
+
);
|
|
6558
|
+
var BillingUpdateRemoveLine$outboundSchema = z18.pipe(
|
|
6559
|
+
z18.object({
|
|
6560
|
+
planId: z18.string(),
|
|
6561
|
+
entityId: z18.optional(z18.nullable(z18.string())),
|
|
6562
|
+
direction: z18.optional(BillingUpdateDirection$outboundSchema),
|
|
6563
|
+
price: z18.optional(smartUnion([
|
|
6564
|
+
z18.boolean(),
|
|
6565
|
+
z18.lazy(() => BillingUpdatePriceRemoveLine$outboundSchema)
|
|
6566
|
+
])),
|
|
6567
|
+
featureQuantities: z18.optional(z18.array(z18.lazy(
|
|
6568
|
+
() => BillingUpdateRemoveLineFeatureQuantity$outboundSchema
|
|
6569
|
+
))),
|
|
6570
|
+
licenseQuantities: z18.optional(z18.array(z18.lazy(
|
|
6571
|
+
() => BillingUpdateRemoveLineLicenseQuantity$outboundSchema
|
|
6572
|
+
)))
|
|
6573
|
+
}),
|
|
6574
|
+
z18.transform((v) => {
|
|
6575
|
+
return remap(v, {
|
|
6576
|
+
planId: "plan_id",
|
|
6577
|
+
entityId: "entity_id",
|
|
6578
|
+
featureQuantities: "feature_quantities",
|
|
6579
|
+
licenseQuantities: "license_quantities"
|
|
6580
|
+
});
|
|
6581
|
+
})
|
|
6582
|
+
);
|
|
6583
|
+
var BillingUpdateAddLine$outboundSchema = z18.pipe(
|
|
6584
|
+
z18.object({
|
|
6585
|
+
amount: z18.number(),
|
|
6586
|
+
description: z18.string(),
|
|
6587
|
+
periodStart: z18.optional(z18.int()),
|
|
6588
|
+
periodEnd: z18.optional(z18.int())
|
|
6589
|
+
}),
|
|
6590
|
+
z18.transform((v) => {
|
|
6591
|
+
return remap(v, {
|
|
6592
|
+
periodStart: "period_start",
|
|
6593
|
+
periodEnd: "period_end"
|
|
6594
|
+
});
|
|
6595
|
+
})
|
|
6596
|
+
);
|
|
6227
6597
|
var BillingUpdateCancelAction$outboundSchema = z18.enum(BillingUpdateCancelAction);
|
|
6228
6598
|
var BillingUpdateBillingCycleAnchor$outboundSchema = smartUnion([z18.string(), z18.int()]);
|
|
6229
6599
|
var BillingUpdateRefundLastPayment$outboundSchema = z18.enum(BillingUpdateRefundLastPayment);
|
|
@@ -6285,6 +6655,12 @@ var UpdateSubscriptionParams$outboundSchema = z18.pipe(
|
|
|
6285
6655
|
customLineItems: z18.optional(
|
|
6286
6656
|
z18.array(z18.lazy(() => BillingUpdateCustomLineItem$outboundSchema))
|
|
6287
6657
|
),
|
|
6658
|
+
removeLines: z18.optional(
|
|
6659
|
+
z18.array(z18.lazy(() => BillingUpdateRemoveLine$outboundSchema))
|
|
6660
|
+
),
|
|
6661
|
+
addLines: z18.optional(
|
|
6662
|
+
z18.array(z18.lazy(() => BillingUpdateAddLine$outboundSchema))
|
|
6663
|
+
),
|
|
6288
6664
|
cancelAction: z18.optional(BillingUpdateCancelAction$outboundSchema),
|
|
6289
6665
|
billingCycleAnchor: z18.optional(smartUnion([z18.string(), z18.int()])),
|
|
6290
6666
|
noBillingChanges: z18.optional(z18.boolean()),
|
|
@@ -6315,6 +6691,8 @@ var UpdateSubscriptionParams$outboundSchema = z18.pipe(
|
|
|
6315
6691
|
subscriptionId: "subscription_id",
|
|
6316
6692
|
removeDiscounts: "remove_discounts",
|
|
6317
6693
|
customLineItems: "custom_line_items",
|
|
6694
|
+
removeLines: "remove_lines",
|
|
6695
|
+
addLines: "add_lines",
|
|
6318
6696
|
cancelAction: "cancel_action",
|
|
6319
6697
|
billingCycleAnchor: "billing_cycle_anchor",
|
|
6320
6698
|
noBillingChanges: "no_billing_changes",
|
|
@@ -17642,10 +18020,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
17642
18020
|
// ../sdk/src/models/create-schedule-response.ts
|
|
17643
18021
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
17644
18022
|
|
|
17645
|
-
// ../sdk/src/models/phase-add-item-markups-2.ts
|
|
18023
|
+
// ../sdk/src/models/phase-add-item-model-markups-2.ts
|
|
17646
18024
|
var z35 = __toESM(require("zod/v4-mini"), 1);
|
|
17647
18025
|
|
|
17648
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-on-
|
|
18026
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-on-increase.ts
|
|
17649
18027
|
var z34 = __toESM(require("zod/v4-mini"), 1);
|
|
17650
18028
|
var CreateScheduleFreeTrialDurationType = {
|
|
17651
18029
|
Day: "day",
|
|
@@ -17656,6 +18034,11 @@ var CreateScheduleOnEnd = {
|
|
|
17656
18034
|
Bill: "bill",
|
|
17657
18035
|
Revert: "revert"
|
|
17658
18036
|
};
|
|
18037
|
+
var CreateScheduleIssueMethod = {
|
|
18038
|
+
Draft: "draft",
|
|
18039
|
+
Finalize: "finalize",
|
|
18040
|
+
Send: "send"
|
|
18041
|
+
};
|
|
17659
18042
|
var CreateSchedulePaymentMethodType = {
|
|
17660
18043
|
Card: "card",
|
|
17661
18044
|
CustomerBalance: "customer_balance",
|
|
@@ -17897,13 +18280,6 @@ var UnscheduledPlanUpsertLicenseOnIncrease = {
|
|
|
17897
18280
|
ProrateNextCycle: "prorate_next_cycle",
|
|
17898
18281
|
BillNextCycle: "bill_next_cycle"
|
|
17899
18282
|
};
|
|
17900
|
-
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
17901
|
-
Prorate: "prorate",
|
|
17902
|
-
ProrateImmediately: "prorate_immediately",
|
|
17903
|
-
ProrateNextCycle: "prorate_next_cycle",
|
|
17904
|
-
None: "none",
|
|
17905
|
-
NoProrations: "no_prorations"
|
|
17906
|
-
};
|
|
17907
18283
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
17908
18284
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
17909
18285
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -17925,12 +18301,14 @@ var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
|
17925
18301
|
});
|
|
17926
18302
|
})
|
|
17927
18303
|
);
|
|
18304
|
+
var CreateScheduleIssueMethod$outboundSchema = z34.enum(CreateScheduleIssueMethod);
|
|
17928
18305
|
var CreateSchedulePaymentMethodType$outboundSchema = z34.enum(CreateSchedulePaymentMethodType);
|
|
17929
18306
|
var CreateScheduleInvoiceMode$outboundSchema = z34.pipe(
|
|
17930
18307
|
z34.object({
|
|
17931
18308
|
enabled: z34.boolean(),
|
|
17932
18309
|
enablePlanImmediately: z34._default(z34.boolean(), false),
|
|
17933
|
-
finalize: z34.
|
|
18310
|
+
finalize: z34.optional(z34.boolean()),
|
|
18311
|
+
issueMethod: z34.optional(CreateScheduleIssueMethod$outboundSchema),
|
|
17934
18312
|
invoiceTemplateId: z34.optional(z34.string()),
|
|
17935
18313
|
netTermsDays: z34.optional(z34.int()),
|
|
17936
18314
|
paymentMethodTypes: z34.optional(
|
|
@@ -17940,6 +18318,7 @@ var CreateScheduleInvoiceMode$outboundSchema = z34.pipe(
|
|
|
17940
18318
|
z34.transform((v) => {
|
|
17941
18319
|
return remap(v, {
|
|
17942
18320
|
enablePlanImmediately: "enable_plan_immediately",
|
|
18321
|
+
issueMethod: "issue_method",
|
|
17943
18322
|
invoiceTemplateId: "invoice_template_id",
|
|
17944
18323
|
netTermsDays: "net_terms_days",
|
|
17945
18324
|
paymentMethodTypes: "payment_method_types"
|
|
@@ -19112,11 +19491,15 @@ var UnscheduledPlanUpsertLicensePrice$outboundSchema = z34.pipe(
|
|
|
19112
19491
|
var UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema = z34.enum(
|
|
19113
19492
|
UnscheduledPlanUpsertLicenseOnIncrease
|
|
19114
19493
|
);
|
|
19115
|
-
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z34.enum(
|
|
19116
|
-
UnscheduledPlanUpsertLicenseOnDecrease
|
|
19117
|
-
);
|
|
19118
19494
|
|
|
19119
|
-
// ../sdk/src/models/phase-add-item-markups-2.ts
|
|
19495
|
+
// ../sdk/src/models/phase-add-item-model-markups-2.ts
|
|
19496
|
+
var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
19497
|
+
Prorate: "prorate",
|
|
19498
|
+
ProrateImmediately: "prorate_immediately",
|
|
19499
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
19500
|
+
None: "none",
|
|
19501
|
+
NoProrations: "no_prorations"
|
|
19502
|
+
};
|
|
19120
19503
|
var UnscheduledPlanUpsertLicenseExpiryDurationType = {
|
|
19121
19504
|
Month: "month",
|
|
19122
19505
|
Forever: "forever"
|
|
@@ -19289,6 +19672,9 @@ var PhaseDimensionsToAddItemEnum1 = {
|
|
|
19289
19672
|
var PhaseToAddItemEnum = {
|
|
19290
19673
|
Inf: "inf"
|
|
19291
19674
|
};
|
|
19675
|
+
var UnscheduledPlanUpsertLicenseOnDecrease$outboundSchema = z35.enum(
|
|
19676
|
+
UnscheduledPlanUpsertLicenseOnDecrease
|
|
19677
|
+
);
|
|
19292
19678
|
var UnscheduledPlanUpsertLicenseProration$outboundSchema = z35.pipe(
|
|
19293
19679
|
z35.object({
|
|
19294
19680
|
onIncrease: UnscheduledPlanUpsertLicenseOnIncrease$outboundSchema,
|
|
@@ -20514,26 +20900,6 @@ var PhaseAddItemModelMarkups2$outboundSchema = z35.pipe(
|
|
|
20514
20900
|
});
|
|
20515
20901
|
})
|
|
20516
20902
|
);
|
|
20517
|
-
var PhaseAddItemMarkups2$outboundSchema = z35.pipe(
|
|
20518
|
-
z35.object({
|
|
20519
|
-
defaultMarkup: z35.optional(z35.number()),
|
|
20520
|
-
providerMarkups: z35.optional(z35.nullable(z35.record(
|
|
20521
|
-
z35.string(),
|
|
20522
|
-
z35.lazy(() => PhaseAddItemProviderMarkups2$outboundSchema)
|
|
20523
|
-
))),
|
|
20524
|
-
modelMarkups: z35.optional(z35.nullable(z35.record(
|
|
20525
|
-
z35.string(),
|
|
20526
|
-
z35.lazy(() => PhaseAddItemModelMarkups2$outboundSchema)
|
|
20527
|
-
)))
|
|
20528
|
-
}),
|
|
20529
|
-
z35.transform((v) => {
|
|
20530
|
-
return remap(v, {
|
|
20531
|
-
defaultMarkup: "default_markup",
|
|
20532
|
-
providerMarkups: "provider_markups",
|
|
20533
|
-
modelMarkups: "model_markups"
|
|
20534
|
-
});
|
|
20535
|
-
})
|
|
20536
|
-
);
|
|
20537
20903
|
|
|
20538
20904
|
// ../sdk/src/models/create-schedule-response.ts
|
|
20539
20905
|
var PhaseRemoveItemBillingMethod2 = {
|
|
@@ -20690,12 +21056,34 @@ var CreateScheduleCode = {
|
|
|
20690
21056
|
PaymentFailed: "payment_failed",
|
|
20691
21057
|
PaymentProcessing: "payment_processing"
|
|
20692
21058
|
};
|
|
21059
|
+
var PhaseAddItemMarkups2$outboundSchema = z36.pipe(
|
|
21060
|
+
z36.object({
|
|
21061
|
+
defaultMarkup: z36.optional(z36.number()),
|
|
21062
|
+
providerMarkups: z36.optional(
|
|
21063
|
+
z36.nullable(
|
|
21064
|
+
z36.record(z36.string(), PhaseAddItemProviderMarkups2$outboundSchema)
|
|
21065
|
+
)
|
|
21066
|
+
),
|
|
21067
|
+
modelMarkups: z36.optional(
|
|
21068
|
+
z36.nullable(
|
|
21069
|
+
z36.record(z36.string(), PhaseAddItemModelMarkups2$outboundSchema)
|
|
21070
|
+
)
|
|
21071
|
+
)
|
|
21072
|
+
}),
|
|
21073
|
+
z36.transform((v) => {
|
|
21074
|
+
return remap(v, {
|
|
21075
|
+
defaultMarkup: "default_markup",
|
|
21076
|
+
providerMarkups: "provider_markups",
|
|
21077
|
+
modelMarkups: "model_markups"
|
|
21078
|
+
});
|
|
21079
|
+
})
|
|
21080
|
+
);
|
|
20693
21081
|
var PhaseAddItemFeatureOverride2$outboundSchema = z36.pipe(
|
|
20694
21082
|
z36.object({
|
|
20695
21083
|
creditSchema: z36.optional(
|
|
20696
21084
|
z36.array(PhaseAddItemCreditSchemaUnion2$outboundSchema)
|
|
20697
21085
|
),
|
|
20698
|
-
markups: z36.optional(PhaseAddItemMarkups2$outboundSchema)
|
|
21086
|
+
markups: z36.optional(z36.lazy(() => PhaseAddItemMarkups2$outboundSchema))
|
|
20699
21087
|
}),
|
|
20700
21088
|
z36.transform((v) => {
|
|
20701
21089
|
return remap(v, {
|
|
@@ -36675,6 +37063,11 @@ var MultiAttachOnEnd = {
|
|
|
36675
37063
|
Bill: "bill",
|
|
36676
37064
|
Revert: "revert"
|
|
36677
37065
|
};
|
|
37066
|
+
var MultiAttachIssueMethod = {
|
|
37067
|
+
Draft: "draft",
|
|
37068
|
+
Finalize: "finalize",
|
|
37069
|
+
Send: "send"
|
|
37070
|
+
};
|
|
36678
37071
|
var MultiAttachPaymentMethodType = {
|
|
36679
37072
|
Card: "card",
|
|
36680
37073
|
CustomerBalance: "customer_balance",
|
|
@@ -37182,12 +37575,14 @@ var MultiAttachFreeTrialParams$outboundSchema = z85.pipe(
|
|
|
37182
37575
|
});
|
|
37183
37576
|
})
|
|
37184
37577
|
);
|
|
37578
|
+
var MultiAttachIssueMethod$outboundSchema = z85.enum(MultiAttachIssueMethod);
|
|
37185
37579
|
var MultiAttachPaymentMethodType$outboundSchema = z85.enum(MultiAttachPaymentMethodType);
|
|
37186
37580
|
var MultiAttachInvoiceMode$outboundSchema = z85.pipe(
|
|
37187
37581
|
z85.object({
|
|
37188
37582
|
enabled: z85.boolean(),
|
|
37189
37583
|
enablePlanImmediately: z85._default(z85.boolean(), false),
|
|
37190
|
-
finalize: z85.
|
|
37584
|
+
finalize: z85.optional(z85.boolean()),
|
|
37585
|
+
issueMethod: z85.optional(MultiAttachIssueMethod$outboundSchema),
|
|
37191
37586
|
invoiceTemplateId: z85.optional(z85.string()),
|
|
37192
37587
|
netTermsDays: z85.optional(z85.int()),
|
|
37193
37588
|
paymentMethodTypes: z85.optional(
|
|
@@ -37197,6 +37592,7 @@ var MultiAttachInvoiceMode$outboundSchema = z85.pipe(
|
|
|
37197
37592
|
z85.transform((v) => {
|
|
37198
37593
|
return remap(v, {
|
|
37199
37594
|
enablePlanImmediately: "enable_plan_immediately",
|
|
37595
|
+
issueMethod: "issue_method",
|
|
37200
37596
|
invoiceTemplateId: "invoice_template_id",
|
|
37201
37597
|
netTermsDays: "net_terms_days",
|
|
37202
37598
|
paymentMethodTypes: "payment_method_types"
|
|
@@ -37656,7 +38052,7 @@ var PreviewAttachOnEnd = {
|
|
|
37656
38052
|
Bill: "bill",
|
|
37657
38053
|
Revert: "revert"
|
|
37658
38054
|
};
|
|
37659
|
-
var
|
|
38055
|
+
var PreviewAttachPriceCustomizeInterval = {
|
|
37660
38056
|
OneOff: "one_off",
|
|
37661
38057
|
Week: "week",
|
|
37662
38058
|
Month: "month",
|
|
@@ -37928,7 +38324,7 @@ var PreviewAttachFreeTrialParams$outboundSchema = z89.pipe(
|
|
|
37928
38324
|
});
|
|
37929
38325
|
})
|
|
37930
38326
|
);
|
|
37931
|
-
var
|
|
38327
|
+
var PreviewAttachPriceCustomizeInterval$outboundSchema = z89.enum(PreviewAttachPriceCustomizeInterval);
|
|
37932
38328
|
var PreviewAttachAdditionalCurrency$outboundSchema = z89.object({
|
|
37933
38329
|
currency: z89.string(),
|
|
37934
38330
|
amount: z89.number()
|
|
@@ -37936,7 +38332,7 @@ var PreviewAttachAdditionalCurrency$outboundSchema = z89.object({
|
|
|
37936
38332
|
var PreviewAttachBasePrice$outboundSchema = z89.pipe(
|
|
37937
38333
|
z89.object({
|
|
37938
38334
|
amount: z89.number(),
|
|
37939
|
-
interval:
|
|
38335
|
+
interval: PreviewAttachPriceCustomizeInterval$outboundSchema,
|
|
37940
38336
|
intervalCount: z89._default(z89.number(), 1),
|
|
37941
38337
|
additionalCurrencies: z89.optional(
|
|
37942
38338
|
z89.array(z89.lazy(() => PreviewAttachAdditionalCurrency$outboundSchema))
|
|
@@ -39133,6 +39529,11 @@ var PreviewAttachIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
39133
39529
|
SemiAnnual: "semi_annual",
|
|
39134
39530
|
Year: "year"
|
|
39135
39531
|
};
|
|
39532
|
+
var PreviewAttachIssueMethod = {
|
|
39533
|
+
Draft: "draft",
|
|
39534
|
+
Finalize: "finalize",
|
|
39535
|
+
Send: "send"
|
|
39536
|
+
};
|
|
39136
39537
|
var PreviewAttachPaymentMethodType = {
|
|
39137
39538
|
Card: "card",
|
|
39138
39539
|
CustomerBalance: "customer_balance",
|
|
@@ -39156,6 +39557,50 @@ var PreviewAttachPlanSchedule = {
|
|
|
39156
39557
|
Immediate: "immediate",
|
|
39157
39558
|
EndOfCycle: "end_of_cycle"
|
|
39158
39559
|
};
|
|
39560
|
+
var PreviewAttachDirection = {
|
|
39561
|
+
Charge: "charge",
|
|
39562
|
+
Refund: "refund"
|
|
39563
|
+
};
|
|
39564
|
+
var PreviewAttachPriceRemoveLineInterval = {
|
|
39565
|
+
OneOff: "one_off",
|
|
39566
|
+
Week: "week",
|
|
39567
|
+
Month: "month",
|
|
39568
|
+
Quarter: "quarter",
|
|
39569
|
+
SemiAnnual: "semi_annual",
|
|
39570
|
+
Year: "year"
|
|
39571
|
+
};
|
|
39572
|
+
var PreviewAttachBillingBehavior = {
|
|
39573
|
+
Prepaid: "prepaid",
|
|
39574
|
+
UsageBased: "usage_based"
|
|
39575
|
+
};
|
|
39576
|
+
var PreviewAttachFeatureQuantityInterval = {
|
|
39577
|
+
OneOff: "one_off",
|
|
39578
|
+
Week: "week",
|
|
39579
|
+
Month: "month",
|
|
39580
|
+
Quarter: "quarter",
|
|
39581
|
+
SemiAnnual: "semi_annual",
|
|
39582
|
+
Year: "year"
|
|
39583
|
+
};
|
|
39584
|
+
var PreviewAttachPriceLicenseQuantityInterval = {
|
|
39585
|
+
OneOff: "one_off",
|
|
39586
|
+
Week: "week",
|
|
39587
|
+
Month: "month",
|
|
39588
|
+
Quarter: "quarter",
|
|
39589
|
+
SemiAnnual: "semi_annual",
|
|
39590
|
+
Year: "year"
|
|
39591
|
+
};
|
|
39592
|
+
var PreviewAttachLicenseQuantityBillingBehavior = {
|
|
39593
|
+
Prepaid: "prepaid",
|
|
39594
|
+
UsageBased: "usage_based"
|
|
39595
|
+
};
|
|
39596
|
+
var PreviewAttachLicenseQuantityFeatureQuantityInterval = {
|
|
39597
|
+
OneOff: "one_off",
|
|
39598
|
+
Week: "week",
|
|
39599
|
+
Month: "month",
|
|
39600
|
+
Quarter: "quarter",
|
|
39601
|
+
SemiAnnual: "semi_annual",
|
|
39602
|
+
Year: "year"
|
|
39603
|
+
};
|
|
39159
39604
|
var PreviewAttachTaxExempt = {
|
|
39160
39605
|
None: "none",
|
|
39161
39606
|
Exempt: "exempt",
|
|
@@ -39576,12 +40021,14 @@ var PreviewAttachCustomize$outboundSchema = z90.pipe(
|
|
|
39576
40021
|
});
|
|
39577
40022
|
})
|
|
39578
40023
|
);
|
|
40024
|
+
var PreviewAttachIssueMethod$outboundSchema = z90.enum(PreviewAttachIssueMethod);
|
|
39579
40025
|
var PreviewAttachPaymentMethodType$outboundSchema = z90.enum(PreviewAttachPaymentMethodType);
|
|
39580
40026
|
var PreviewAttachInvoiceMode$outboundSchema = z90.pipe(
|
|
39581
40027
|
z90.object({
|
|
39582
40028
|
enabled: z90.boolean(),
|
|
39583
40029
|
enablePlanImmediately: z90._default(z90.boolean(), false),
|
|
39584
|
-
finalize: z90.
|
|
40030
|
+
finalize: z90.optional(z90.boolean()),
|
|
40031
|
+
issueMethod: z90.optional(PreviewAttachIssueMethod$outboundSchema),
|
|
39585
40032
|
invoiceTemplateId: z90.optional(z90.string()),
|
|
39586
40033
|
netTermsDays: z90.optional(z90.int()),
|
|
39587
40034
|
paymentMethodTypes: z90.optional(
|
|
@@ -39591,6 +40038,7 @@ var PreviewAttachInvoiceMode$outboundSchema = z90.pipe(
|
|
|
39591
40038
|
z90.transform((v) => {
|
|
39592
40039
|
return remap(v, {
|
|
39593
40040
|
enablePlanImmediately: "enable_plan_immediately",
|
|
40041
|
+
issueMethod: "issue_method",
|
|
39594
40042
|
invoiceTemplateId: "invoice_template_id",
|
|
39595
40043
|
netTermsDays: "net_terms_days",
|
|
39596
40044
|
paymentMethodTypes: "payment_method_types"
|
|
@@ -39617,6 +40065,138 @@ var PreviewAttachCustomLineItem$outboundSchema = z90.object({
|
|
|
39617
40065
|
amount: z90.number(),
|
|
39618
40066
|
description: z90.string()
|
|
39619
40067
|
});
|
|
40068
|
+
var PreviewAttachDirection$outboundSchema = z90.enum(PreviewAttachDirection);
|
|
40069
|
+
var PreviewAttachPriceRemoveLineInterval$outboundSchema = z90.enum(PreviewAttachPriceRemoveLineInterval);
|
|
40070
|
+
var PreviewAttachPriceRemoveLine$outboundSchema = z90.pipe(
|
|
40071
|
+
z90.object({
|
|
40072
|
+
interval: z90.optional(PreviewAttachPriceRemoveLineInterval$outboundSchema),
|
|
40073
|
+
intervalCount: z90.optional(z90.int())
|
|
40074
|
+
}),
|
|
40075
|
+
z90.transform((v) => {
|
|
40076
|
+
return remap(v, {
|
|
40077
|
+
intervalCount: "interval_count"
|
|
40078
|
+
});
|
|
40079
|
+
})
|
|
40080
|
+
);
|
|
40081
|
+
var PreviewAttachPriceUnion$outboundSchema = smartUnion([
|
|
40082
|
+
z90.boolean(),
|
|
40083
|
+
z90.lazy(() => PreviewAttachPriceRemoveLine$outboundSchema)
|
|
40084
|
+
]);
|
|
40085
|
+
var PreviewAttachBillingBehavior$outboundSchema = z90.enum(PreviewAttachBillingBehavior);
|
|
40086
|
+
var PreviewAttachFeatureQuantityInterval$outboundSchema = z90.enum(PreviewAttachFeatureQuantityInterval);
|
|
40087
|
+
var PreviewAttachRemoveLineFeatureQuantity$outboundSchema = z90.pipe(
|
|
40088
|
+
z90.object({
|
|
40089
|
+
featureId: z90.string(),
|
|
40090
|
+
billingBehavior: PreviewAttachBillingBehavior$outboundSchema,
|
|
40091
|
+
interval: z90.optional(PreviewAttachFeatureQuantityInterval$outboundSchema),
|
|
40092
|
+
intervalCount: z90.optional(z90.int())
|
|
40093
|
+
}),
|
|
40094
|
+
z90.transform((v) => {
|
|
40095
|
+
return remap(v, {
|
|
40096
|
+
featureId: "feature_id",
|
|
40097
|
+
billingBehavior: "billing_behavior",
|
|
40098
|
+
intervalCount: "interval_count"
|
|
40099
|
+
});
|
|
40100
|
+
})
|
|
40101
|
+
);
|
|
40102
|
+
var PreviewAttachPriceLicenseQuantityInterval$outboundSchema = z90.enum(
|
|
40103
|
+
PreviewAttachPriceLicenseQuantityInterval
|
|
40104
|
+
);
|
|
40105
|
+
var PreviewAttachPriceLicenseQuantity$outboundSchema = z90.pipe(
|
|
40106
|
+
z90.object({
|
|
40107
|
+
interval: z90.optional(
|
|
40108
|
+
PreviewAttachPriceLicenseQuantityInterval$outboundSchema
|
|
40109
|
+
),
|
|
40110
|
+
intervalCount: z90.optional(z90.int())
|
|
40111
|
+
}),
|
|
40112
|
+
z90.transform((v) => {
|
|
40113
|
+
return remap(v, {
|
|
40114
|
+
intervalCount: "interval_count"
|
|
40115
|
+
});
|
|
40116
|
+
})
|
|
40117
|
+
);
|
|
40118
|
+
var PreviewAttachLicenseQuantityPriceUnion$outboundSchema = smartUnion([
|
|
40119
|
+
z90.boolean(),
|
|
40120
|
+
z90.lazy(() => PreviewAttachPriceLicenseQuantity$outboundSchema)
|
|
40121
|
+
]);
|
|
40122
|
+
var PreviewAttachLicenseQuantityBillingBehavior$outboundSchema = z90.enum(
|
|
40123
|
+
PreviewAttachLicenseQuantityBillingBehavior
|
|
40124
|
+
);
|
|
40125
|
+
var PreviewAttachLicenseQuantityFeatureQuantityInterval$outboundSchema = z90.enum(PreviewAttachLicenseQuantityFeatureQuantityInterval);
|
|
40126
|
+
var PreviewAttachLicenseQuantityFeatureQuantity$outboundSchema = z90.pipe(
|
|
40127
|
+
z90.object({
|
|
40128
|
+
featureId: z90.string(),
|
|
40129
|
+
billingBehavior: PreviewAttachLicenseQuantityBillingBehavior$outboundSchema,
|
|
40130
|
+
interval: z90.optional(
|
|
40131
|
+
PreviewAttachLicenseQuantityFeatureQuantityInterval$outboundSchema
|
|
40132
|
+
),
|
|
40133
|
+
intervalCount: z90.optional(z90.int())
|
|
40134
|
+
}),
|
|
40135
|
+
z90.transform((v) => {
|
|
40136
|
+
return remap(v, {
|
|
40137
|
+
featureId: "feature_id",
|
|
40138
|
+
billingBehavior: "billing_behavior",
|
|
40139
|
+
intervalCount: "interval_count"
|
|
40140
|
+
});
|
|
40141
|
+
})
|
|
40142
|
+
);
|
|
40143
|
+
var PreviewAttachRemoveLineLicenseQuantity$outboundSchema = z90.pipe(
|
|
40144
|
+
z90.object({
|
|
40145
|
+
licensePlanId: z90.string(),
|
|
40146
|
+
price: z90.optional(smartUnion([
|
|
40147
|
+
z90.boolean(),
|
|
40148
|
+
z90.lazy(() => PreviewAttachPriceLicenseQuantity$outboundSchema)
|
|
40149
|
+
])),
|
|
40150
|
+
featureQuantities: z90.optional(z90.array(z90.lazy(
|
|
40151
|
+
() => PreviewAttachLicenseQuantityFeatureQuantity$outboundSchema
|
|
40152
|
+
)))
|
|
40153
|
+
}),
|
|
40154
|
+
z90.transform((v) => {
|
|
40155
|
+
return remap(v, {
|
|
40156
|
+
licensePlanId: "license_plan_id",
|
|
40157
|
+
featureQuantities: "feature_quantities"
|
|
40158
|
+
});
|
|
40159
|
+
})
|
|
40160
|
+
);
|
|
40161
|
+
var PreviewAttachRemoveLine$outboundSchema = z90.pipe(
|
|
40162
|
+
z90.object({
|
|
40163
|
+
planId: z90.string(),
|
|
40164
|
+
entityId: z90.optional(z90.nullable(z90.string())),
|
|
40165
|
+
direction: z90.optional(PreviewAttachDirection$outboundSchema),
|
|
40166
|
+
price: z90.optional(smartUnion([
|
|
40167
|
+
z90.boolean(),
|
|
40168
|
+
z90.lazy(() => PreviewAttachPriceRemoveLine$outboundSchema)
|
|
40169
|
+
])),
|
|
40170
|
+
featureQuantities: z90.optional(z90.array(z90.lazy(
|
|
40171
|
+
() => PreviewAttachRemoveLineFeatureQuantity$outboundSchema
|
|
40172
|
+
))),
|
|
40173
|
+
licenseQuantities: z90.optional(z90.array(z90.lazy(
|
|
40174
|
+
() => PreviewAttachRemoveLineLicenseQuantity$outboundSchema
|
|
40175
|
+
)))
|
|
40176
|
+
}),
|
|
40177
|
+
z90.transform((v) => {
|
|
40178
|
+
return remap(v, {
|
|
40179
|
+
planId: "plan_id",
|
|
40180
|
+
entityId: "entity_id",
|
|
40181
|
+
featureQuantities: "feature_quantities",
|
|
40182
|
+
licenseQuantities: "license_quantities"
|
|
40183
|
+
});
|
|
40184
|
+
})
|
|
40185
|
+
);
|
|
40186
|
+
var PreviewAttachAddLine$outboundSchema = z90.pipe(
|
|
40187
|
+
z90.object({
|
|
40188
|
+
amount: z90.number(),
|
|
40189
|
+
description: z90.string(),
|
|
40190
|
+
periodStart: z90.optional(z90.int()),
|
|
40191
|
+
periodEnd: z90.optional(z90.int())
|
|
40192
|
+
}),
|
|
40193
|
+
z90.transform((v) => {
|
|
40194
|
+
return remap(v, {
|
|
40195
|
+
periodStart: "period_start",
|
|
40196
|
+
periodEnd: "period_end"
|
|
40197
|
+
});
|
|
40198
|
+
})
|
|
40199
|
+
);
|
|
39620
40200
|
var PreviewAttachCarryOverBalances$outboundSchema = z90.pipe(
|
|
39621
40201
|
z90.object({
|
|
39622
40202
|
enabled: z90.boolean(),
|
|
@@ -39750,6 +40330,12 @@ var PreviewAttachParams$outboundSchema = z90.pipe(
|
|
|
39750
40330
|
customLineItems: z90.optional(
|
|
39751
40331
|
z90.array(z90.lazy(() => PreviewAttachCustomLineItem$outboundSchema))
|
|
39752
40332
|
),
|
|
40333
|
+
removeLines: z90.optional(
|
|
40334
|
+
z90.array(z90.lazy(() => PreviewAttachRemoveLine$outboundSchema))
|
|
40335
|
+
),
|
|
40336
|
+
addLines: z90.optional(
|
|
40337
|
+
z90.array(z90.lazy(() => PreviewAttachAddLine$outboundSchema))
|
|
40338
|
+
),
|
|
39753
40339
|
processorSubscriptionId: z90.optional(z90.string()),
|
|
39754
40340
|
carryOverBalances: z90.optional(
|
|
39755
40341
|
z90.lazy(() => PreviewAttachCarryOverBalances$outboundSchema)
|
|
@@ -39794,6 +40380,8 @@ var PreviewAttachParams$outboundSchema = z90.pipe(
|
|
|
39794
40380
|
checkoutSessionParams: "checkout_session_params",
|
|
39795
40381
|
longLivedCheckout: "long_lived_checkout",
|
|
39796
40382
|
customLineItems: "custom_line_items",
|
|
40383
|
+
removeLines: "remove_lines",
|
|
40384
|
+
addLines: "add_lines",
|
|
39797
40385
|
processorSubscriptionId: "processor_subscription_id",
|
|
39798
40386
|
carryOverBalances: "carry_over_balances",
|
|
39799
40387
|
carryOverUsages: "carry_over_usages",
|
|
@@ -40134,6 +40722,11 @@ var PreviewMultiAttachOnEnd = {
|
|
|
40134
40722
|
Bill: "bill",
|
|
40135
40723
|
Revert: "revert"
|
|
40136
40724
|
};
|
|
40725
|
+
var PreviewMultiAttachIssueMethod = {
|
|
40726
|
+
Draft: "draft",
|
|
40727
|
+
Finalize: "finalize",
|
|
40728
|
+
Send: "send"
|
|
40729
|
+
};
|
|
40137
40730
|
var PreviewMultiAttachPaymentMethodType = {
|
|
40138
40731
|
Card: "card",
|
|
40139
40732
|
CustomerBalance: "customer_balance",
|
|
@@ -40679,12 +41272,14 @@ var PreviewMultiAttachFreeTrialParams$outboundSchema = z91.pipe(
|
|
|
40679
41272
|
});
|
|
40680
41273
|
})
|
|
40681
41274
|
);
|
|
41275
|
+
var PreviewMultiAttachIssueMethod$outboundSchema = z91.enum(PreviewMultiAttachIssueMethod);
|
|
40682
41276
|
var PreviewMultiAttachPaymentMethodType$outboundSchema = z91.enum(PreviewMultiAttachPaymentMethodType);
|
|
40683
41277
|
var PreviewMultiAttachInvoiceMode$outboundSchema = z91.pipe(
|
|
40684
41278
|
z91.object({
|
|
40685
41279
|
enabled: z91.boolean(),
|
|
40686
41280
|
enablePlanImmediately: z91._default(z91.boolean(), false),
|
|
40687
|
-
finalize: z91.
|
|
41281
|
+
finalize: z91.optional(z91.boolean()),
|
|
41282
|
+
issueMethod: z91.optional(PreviewMultiAttachIssueMethod$outboundSchema),
|
|
40688
41283
|
invoiceTemplateId: z91.optional(z91.string()),
|
|
40689
41284
|
netTermsDays: z91.optional(z91.int()),
|
|
40690
41285
|
paymentMethodTypes: z91.optional(
|
|
@@ -40694,6 +41289,7 @@ var PreviewMultiAttachInvoiceMode$outboundSchema = z91.pipe(
|
|
|
40694
41289
|
z91.transform((v) => {
|
|
40695
41290
|
return remap(v, {
|
|
40696
41291
|
enablePlanImmediately: "enable_plan_immediately",
|
|
41292
|
+
issueMethod: "issue_method",
|
|
40697
41293
|
invoiceTemplateId: "invoice_template_id",
|
|
40698
41294
|
netTermsDays: "net_terms_days",
|
|
40699
41295
|
paymentMethodTypes: "payment_method_types"
|
|
@@ -41651,7 +42247,7 @@ var PreviewUpdateOnEnd = {
|
|
|
41651
42247
|
Bill: "bill",
|
|
41652
42248
|
Revert: "revert"
|
|
41653
42249
|
};
|
|
41654
|
-
var
|
|
42250
|
+
var PreviewUpdatePriceCustomizeInterval = {
|
|
41655
42251
|
OneOff: "one_off",
|
|
41656
42252
|
Week: "week",
|
|
41657
42253
|
Month: "month",
|
|
@@ -41923,7 +42519,7 @@ var PreviewUpdateFreeTrialParams$outboundSchema = z94.pipe(
|
|
|
41923
42519
|
});
|
|
41924
42520
|
})
|
|
41925
42521
|
);
|
|
41926
|
-
var
|
|
42522
|
+
var PreviewUpdatePriceCustomizeInterval$outboundSchema = z94.enum(PreviewUpdatePriceCustomizeInterval);
|
|
41927
42523
|
var PreviewUpdateAdditionalCurrency$outboundSchema = z94.object({
|
|
41928
42524
|
currency: z94.string(),
|
|
41929
42525
|
amount: z94.number()
|
|
@@ -41931,7 +42527,7 @@ var PreviewUpdateAdditionalCurrency$outboundSchema = z94.object({
|
|
|
41931
42527
|
var PreviewUpdateBasePrice$outboundSchema = z94.pipe(
|
|
41932
42528
|
z94.object({
|
|
41933
42529
|
amount: z94.number(),
|
|
41934
|
-
interval:
|
|
42530
|
+
interval: PreviewUpdatePriceCustomizeInterval$outboundSchema,
|
|
41935
42531
|
intervalCount: z94._default(z94.number(), 1),
|
|
41936
42532
|
additionalCurrencies: z94.optional(
|
|
41937
42533
|
z94.array(z94.lazy(() => PreviewUpdateAdditionalCurrency$outboundSchema))
|
|
@@ -43128,6 +43724,11 @@ var PreviewUpdateIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
43128
43724
|
SemiAnnual: "semi_annual",
|
|
43129
43725
|
Year: "year"
|
|
43130
43726
|
};
|
|
43727
|
+
var PreviewUpdateIssueMethod = {
|
|
43728
|
+
Draft: "draft",
|
|
43729
|
+
Finalize: "finalize",
|
|
43730
|
+
Send: "send"
|
|
43731
|
+
};
|
|
43131
43732
|
var PreviewUpdatePaymentMethodType = {
|
|
43132
43733
|
Card: "card",
|
|
43133
43734
|
CustomerBalance: "customer_balance",
|
|
@@ -43147,6 +43748,50 @@ var PreviewUpdateRedirectMode = {
|
|
|
43147
43748
|
IfRequired: "if_required",
|
|
43148
43749
|
Never: "never"
|
|
43149
43750
|
};
|
|
43751
|
+
var PreviewUpdateDirection = {
|
|
43752
|
+
Charge: "charge",
|
|
43753
|
+
Refund: "refund"
|
|
43754
|
+
};
|
|
43755
|
+
var PreviewUpdatePriceRemoveLineInterval = {
|
|
43756
|
+
OneOff: "one_off",
|
|
43757
|
+
Week: "week",
|
|
43758
|
+
Month: "month",
|
|
43759
|
+
Quarter: "quarter",
|
|
43760
|
+
SemiAnnual: "semi_annual",
|
|
43761
|
+
Year: "year"
|
|
43762
|
+
};
|
|
43763
|
+
var PreviewUpdateBillingBehavior = {
|
|
43764
|
+
Prepaid: "prepaid",
|
|
43765
|
+
UsageBased: "usage_based"
|
|
43766
|
+
};
|
|
43767
|
+
var PreviewUpdateFeatureQuantityInterval = {
|
|
43768
|
+
OneOff: "one_off",
|
|
43769
|
+
Week: "week",
|
|
43770
|
+
Month: "month",
|
|
43771
|
+
Quarter: "quarter",
|
|
43772
|
+
SemiAnnual: "semi_annual",
|
|
43773
|
+
Year: "year"
|
|
43774
|
+
};
|
|
43775
|
+
var PreviewUpdatePriceLicenseQuantityInterval = {
|
|
43776
|
+
OneOff: "one_off",
|
|
43777
|
+
Week: "week",
|
|
43778
|
+
Month: "month",
|
|
43779
|
+
Quarter: "quarter",
|
|
43780
|
+
SemiAnnual: "semi_annual",
|
|
43781
|
+
Year: "year"
|
|
43782
|
+
};
|
|
43783
|
+
var PreviewUpdateLicenseQuantityBillingBehavior = {
|
|
43784
|
+
Prepaid: "prepaid",
|
|
43785
|
+
UsageBased: "usage_based"
|
|
43786
|
+
};
|
|
43787
|
+
var PreviewUpdateLicenseQuantityFeatureQuantityInterval = {
|
|
43788
|
+
OneOff: "one_off",
|
|
43789
|
+
Week: "week",
|
|
43790
|
+
Month: "month",
|
|
43791
|
+
Quarter: "quarter",
|
|
43792
|
+
SemiAnnual: "semi_annual",
|
|
43793
|
+
Year: "year"
|
|
43794
|
+
};
|
|
43150
43795
|
var PreviewUpdateCancelAction = {
|
|
43151
43796
|
CancelImmediately: "cancel_immediately",
|
|
43152
43797
|
CancelEndOfCycle: "cancel_end_of_cycle",
|
|
@@ -43575,12 +44220,14 @@ var PreviewUpdateCustomize$outboundSchema = z95.pipe(
|
|
|
43575
44220
|
});
|
|
43576
44221
|
})
|
|
43577
44222
|
);
|
|
44223
|
+
var PreviewUpdateIssueMethod$outboundSchema = z95.enum(PreviewUpdateIssueMethod);
|
|
43578
44224
|
var PreviewUpdatePaymentMethodType$outboundSchema = z95.enum(PreviewUpdatePaymentMethodType);
|
|
43579
44225
|
var PreviewUpdateInvoiceMode$outboundSchema = z95.pipe(
|
|
43580
44226
|
z95.object({
|
|
43581
44227
|
enabled: z95.boolean(),
|
|
43582
44228
|
enablePlanImmediately: z95._default(z95.boolean(), false),
|
|
43583
|
-
finalize: z95.
|
|
44229
|
+
finalize: z95.optional(z95.boolean()),
|
|
44230
|
+
issueMethod: z95.optional(PreviewUpdateIssueMethod$outboundSchema),
|
|
43584
44231
|
invoiceTemplateId: z95.optional(z95.string()),
|
|
43585
44232
|
netTermsDays: z95.optional(z95.int()),
|
|
43586
44233
|
paymentMethodTypes: z95.optional(
|
|
@@ -43590,6 +44237,7 @@ var PreviewUpdateInvoiceMode$outboundSchema = z95.pipe(
|
|
|
43590
44237
|
z95.transform((v) => {
|
|
43591
44238
|
return remap(v, {
|
|
43592
44239
|
enablePlanImmediately: "enable_plan_immediately",
|
|
44240
|
+
issueMethod: "issue_method",
|
|
43593
44241
|
invoiceTemplateId: "invoice_template_id",
|
|
43594
44242
|
netTermsDays: "net_terms_days",
|
|
43595
44243
|
paymentMethodTypes: "payment_method_types"
|
|
@@ -43624,6 +44272,138 @@ var PreviewUpdateCustomLineItem$outboundSchema = z95.object({
|
|
|
43624
44272
|
amount: z95.number(),
|
|
43625
44273
|
description: z95.string()
|
|
43626
44274
|
});
|
|
44275
|
+
var PreviewUpdateDirection$outboundSchema = z95.enum(PreviewUpdateDirection);
|
|
44276
|
+
var PreviewUpdatePriceRemoveLineInterval$outboundSchema = z95.enum(PreviewUpdatePriceRemoveLineInterval);
|
|
44277
|
+
var PreviewUpdatePriceRemoveLine$outboundSchema = z95.pipe(
|
|
44278
|
+
z95.object({
|
|
44279
|
+
interval: z95.optional(PreviewUpdatePriceRemoveLineInterval$outboundSchema),
|
|
44280
|
+
intervalCount: z95.optional(z95.int())
|
|
44281
|
+
}),
|
|
44282
|
+
z95.transform((v) => {
|
|
44283
|
+
return remap(v, {
|
|
44284
|
+
intervalCount: "interval_count"
|
|
44285
|
+
});
|
|
44286
|
+
})
|
|
44287
|
+
);
|
|
44288
|
+
var PreviewUpdatePriceUnion$outboundSchema = smartUnion([
|
|
44289
|
+
z95.boolean(),
|
|
44290
|
+
z95.lazy(() => PreviewUpdatePriceRemoveLine$outboundSchema)
|
|
44291
|
+
]);
|
|
44292
|
+
var PreviewUpdateBillingBehavior$outboundSchema = z95.enum(PreviewUpdateBillingBehavior);
|
|
44293
|
+
var PreviewUpdateFeatureQuantityInterval$outboundSchema = z95.enum(PreviewUpdateFeatureQuantityInterval);
|
|
44294
|
+
var PreviewUpdateRemoveLineFeatureQuantity$outboundSchema = z95.pipe(
|
|
44295
|
+
z95.object({
|
|
44296
|
+
featureId: z95.string(),
|
|
44297
|
+
billingBehavior: PreviewUpdateBillingBehavior$outboundSchema,
|
|
44298
|
+
interval: z95.optional(PreviewUpdateFeatureQuantityInterval$outboundSchema),
|
|
44299
|
+
intervalCount: z95.optional(z95.int())
|
|
44300
|
+
}),
|
|
44301
|
+
z95.transform((v) => {
|
|
44302
|
+
return remap(v, {
|
|
44303
|
+
featureId: "feature_id",
|
|
44304
|
+
billingBehavior: "billing_behavior",
|
|
44305
|
+
intervalCount: "interval_count"
|
|
44306
|
+
});
|
|
44307
|
+
})
|
|
44308
|
+
);
|
|
44309
|
+
var PreviewUpdatePriceLicenseQuantityInterval$outboundSchema = z95.enum(
|
|
44310
|
+
PreviewUpdatePriceLicenseQuantityInterval
|
|
44311
|
+
);
|
|
44312
|
+
var PreviewUpdatePriceLicenseQuantity$outboundSchema = z95.pipe(
|
|
44313
|
+
z95.object({
|
|
44314
|
+
interval: z95.optional(
|
|
44315
|
+
PreviewUpdatePriceLicenseQuantityInterval$outboundSchema
|
|
44316
|
+
),
|
|
44317
|
+
intervalCount: z95.optional(z95.int())
|
|
44318
|
+
}),
|
|
44319
|
+
z95.transform((v) => {
|
|
44320
|
+
return remap(v, {
|
|
44321
|
+
intervalCount: "interval_count"
|
|
44322
|
+
});
|
|
44323
|
+
})
|
|
44324
|
+
);
|
|
44325
|
+
var PreviewUpdateLicenseQuantityPriceUnion$outboundSchema = smartUnion([
|
|
44326
|
+
z95.boolean(),
|
|
44327
|
+
z95.lazy(() => PreviewUpdatePriceLicenseQuantity$outboundSchema)
|
|
44328
|
+
]);
|
|
44329
|
+
var PreviewUpdateLicenseQuantityBillingBehavior$outboundSchema = z95.enum(
|
|
44330
|
+
PreviewUpdateLicenseQuantityBillingBehavior
|
|
44331
|
+
);
|
|
44332
|
+
var PreviewUpdateLicenseQuantityFeatureQuantityInterval$outboundSchema = z95.enum(PreviewUpdateLicenseQuantityFeatureQuantityInterval);
|
|
44333
|
+
var PreviewUpdateLicenseQuantityFeatureQuantity$outboundSchema = z95.pipe(
|
|
44334
|
+
z95.object({
|
|
44335
|
+
featureId: z95.string(),
|
|
44336
|
+
billingBehavior: PreviewUpdateLicenseQuantityBillingBehavior$outboundSchema,
|
|
44337
|
+
interval: z95.optional(
|
|
44338
|
+
PreviewUpdateLicenseQuantityFeatureQuantityInterval$outboundSchema
|
|
44339
|
+
),
|
|
44340
|
+
intervalCount: z95.optional(z95.int())
|
|
44341
|
+
}),
|
|
44342
|
+
z95.transform((v) => {
|
|
44343
|
+
return remap(v, {
|
|
44344
|
+
featureId: "feature_id",
|
|
44345
|
+
billingBehavior: "billing_behavior",
|
|
44346
|
+
intervalCount: "interval_count"
|
|
44347
|
+
});
|
|
44348
|
+
})
|
|
44349
|
+
);
|
|
44350
|
+
var PreviewUpdateRemoveLineLicenseQuantity$outboundSchema = z95.pipe(
|
|
44351
|
+
z95.object({
|
|
44352
|
+
licensePlanId: z95.string(),
|
|
44353
|
+
price: z95.optional(smartUnion([
|
|
44354
|
+
z95.boolean(),
|
|
44355
|
+
z95.lazy(() => PreviewUpdatePriceLicenseQuantity$outboundSchema)
|
|
44356
|
+
])),
|
|
44357
|
+
featureQuantities: z95.optional(z95.array(z95.lazy(
|
|
44358
|
+
() => PreviewUpdateLicenseQuantityFeatureQuantity$outboundSchema
|
|
44359
|
+
)))
|
|
44360
|
+
}),
|
|
44361
|
+
z95.transform((v) => {
|
|
44362
|
+
return remap(v, {
|
|
44363
|
+
licensePlanId: "license_plan_id",
|
|
44364
|
+
featureQuantities: "feature_quantities"
|
|
44365
|
+
});
|
|
44366
|
+
})
|
|
44367
|
+
);
|
|
44368
|
+
var PreviewUpdateRemoveLine$outboundSchema = z95.pipe(
|
|
44369
|
+
z95.object({
|
|
44370
|
+
planId: z95.string(),
|
|
44371
|
+
entityId: z95.optional(z95.nullable(z95.string())),
|
|
44372
|
+
direction: z95.optional(PreviewUpdateDirection$outboundSchema),
|
|
44373
|
+
price: z95.optional(smartUnion([
|
|
44374
|
+
z95.boolean(),
|
|
44375
|
+
z95.lazy(() => PreviewUpdatePriceRemoveLine$outboundSchema)
|
|
44376
|
+
])),
|
|
44377
|
+
featureQuantities: z95.optional(z95.array(z95.lazy(
|
|
44378
|
+
() => PreviewUpdateRemoveLineFeatureQuantity$outboundSchema
|
|
44379
|
+
))),
|
|
44380
|
+
licenseQuantities: z95.optional(z95.array(z95.lazy(
|
|
44381
|
+
() => PreviewUpdateRemoveLineLicenseQuantity$outboundSchema
|
|
44382
|
+
)))
|
|
44383
|
+
}),
|
|
44384
|
+
z95.transform((v) => {
|
|
44385
|
+
return remap(v, {
|
|
44386
|
+
planId: "plan_id",
|
|
44387
|
+
entityId: "entity_id",
|
|
44388
|
+
featureQuantities: "feature_quantities",
|
|
44389
|
+
licenseQuantities: "license_quantities"
|
|
44390
|
+
});
|
|
44391
|
+
})
|
|
44392
|
+
);
|
|
44393
|
+
var PreviewUpdateAddLine$outboundSchema = z95.pipe(
|
|
44394
|
+
z95.object({
|
|
44395
|
+
amount: z95.number(),
|
|
44396
|
+
description: z95.string(),
|
|
44397
|
+
periodStart: z95.optional(z95.int()),
|
|
44398
|
+
periodEnd: z95.optional(z95.int())
|
|
44399
|
+
}),
|
|
44400
|
+
z95.transform((v) => {
|
|
44401
|
+
return remap(v, {
|
|
44402
|
+
periodStart: "period_start",
|
|
44403
|
+
periodEnd: "period_end"
|
|
44404
|
+
});
|
|
44405
|
+
})
|
|
44406
|
+
);
|
|
43627
44407
|
var PreviewUpdateCancelAction$outboundSchema = z95.enum(PreviewUpdateCancelAction);
|
|
43628
44408
|
var PreviewUpdateBillingCycleAnchor$outboundSchema = smartUnion([z95.string(), z95.int()]);
|
|
43629
44409
|
var PreviewUpdateRefundLastPayment$outboundSchema = z95.enum(PreviewUpdateRefundLastPayment);
|
|
@@ -43685,6 +44465,12 @@ var PreviewUpdateParams$outboundSchema = z95.pipe(
|
|
|
43685
44465
|
customLineItems: z95.optional(
|
|
43686
44466
|
z95.array(z95.lazy(() => PreviewUpdateCustomLineItem$outboundSchema))
|
|
43687
44467
|
),
|
|
44468
|
+
removeLines: z95.optional(
|
|
44469
|
+
z95.array(z95.lazy(() => PreviewUpdateRemoveLine$outboundSchema))
|
|
44470
|
+
),
|
|
44471
|
+
addLines: z95.optional(
|
|
44472
|
+
z95.array(z95.lazy(() => PreviewUpdateAddLine$outboundSchema))
|
|
44473
|
+
),
|
|
43688
44474
|
cancelAction: z95.optional(PreviewUpdateCancelAction$outboundSchema),
|
|
43689
44475
|
billingCycleAnchor: z95.optional(smartUnion([z95.string(), z95.int()])),
|
|
43690
44476
|
noBillingChanges: z95.optional(z95.boolean()),
|
|
@@ -43715,6 +44501,8 @@ var PreviewUpdateParams$outboundSchema = z95.pipe(
|
|
|
43715
44501
|
subscriptionId: "subscription_id",
|
|
43716
44502
|
removeDiscounts: "remove_discounts",
|
|
43717
44503
|
customLineItems: "custom_line_items",
|
|
44504
|
+
removeLines: "remove_lines",
|
|
44505
|
+
addLines: "add_lines",
|
|
43718
44506
|
cancelAction: "cancel_action",
|
|
43719
44507
|
billingCycleAnchor: "billing_cycle_anchor",
|
|
43720
44508
|
noBillingChanges: "no_billing_changes",
|
|
@@ -45422,7 +46210,7 @@ var SetupPaymentOnEnd = {
|
|
|
45422
46210
|
Bill: "bill",
|
|
45423
46211
|
Revert: "revert"
|
|
45424
46212
|
};
|
|
45425
|
-
var
|
|
46213
|
+
var SetupPaymentPriceCustomizeInterval = {
|
|
45426
46214
|
OneOff: "one_off",
|
|
45427
46215
|
Week: "week",
|
|
45428
46216
|
Month: "month",
|
|
@@ -45694,7 +46482,7 @@ var SetupPaymentFreeTrialParams$outboundSchema = z104.pipe(
|
|
|
45694
46482
|
});
|
|
45695
46483
|
})
|
|
45696
46484
|
);
|
|
45697
|
-
var
|
|
46485
|
+
var SetupPaymentPriceCustomizeInterval$outboundSchema = z104.enum(SetupPaymentPriceCustomizeInterval);
|
|
45698
46486
|
var SetupPaymentAdditionalCurrency$outboundSchema = z104.object({
|
|
45699
46487
|
currency: z104.string(),
|
|
45700
46488
|
amount: z104.number()
|
|
@@ -45702,7 +46490,7 @@ var SetupPaymentAdditionalCurrency$outboundSchema = z104.object({
|
|
|
45702
46490
|
var SetupPaymentBasePrice$outboundSchema = z104.pipe(
|
|
45703
46491
|
z104.object({
|
|
45704
46492
|
amount: z104.number(),
|
|
45705
|
-
interval:
|
|
46493
|
+
interval: SetupPaymentPriceCustomizeInterval$outboundSchema,
|
|
45706
46494
|
intervalCount: z104._default(z104.number(), 1),
|
|
45707
46495
|
additionalCurrencies: z104.optional(
|
|
45708
46496
|
z104.array(z104.lazy(() => SetupPaymentAdditionalCurrency$outboundSchema))
|
|
@@ -46898,6 +47686,50 @@ var SetupPaymentProrationBehavior = {
|
|
|
46898
47686
|
None: "none",
|
|
46899
47687
|
BillDifference: "bill_difference"
|
|
46900
47688
|
};
|
|
47689
|
+
var SetupPaymentDirection = {
|
|
47690
|
+
Charge: "charge",
|
|
47691
|
+
Refund: "refund"
|
|
47692
|
+
};
|
|
47693
|
+
var SetupPaymentPriceRemoveLineInterval = {
|
|
47694
|
+
OneOff: "one_off",
|
|
47695
|
+
Week: "week",
|
|
47696
|
+
Month: "month",
|
|
47697
|
+
Quarter: "quarter",
|
|
47698
|
+
SemiAnnual: "semi_annual",
|
|
47699
|
+
Year: "year"
|
|
47700
|
+
};
|
|
47701
|
+
var SetupPaymentBillingBehavior = {
|
|
47702
|
+
Prepaid: "prepaid",
|
|
47703
|
+
UsageBased: "usage_based"
|
|
47704
|
+
};
|
|
47705
|
+
var SetupPaymentFeatureQuantityInterval = {
|
|
47706
|
+
OneOff: "one_off",
|
|
47707
|
+
Week: "week",
|
|
47708
|
+
Month: "month",
|
|
47709
|
+
Quarter: "quarter",
|
|
47710
|
+
SemiAnnual: "semi_annual",
|
|
47711
|
+
Year: "year"
|
|
47712
|
+
};
|
|
47713
|
+
var SetupPaymentPriceLicenseQuantityInterval = {
|
|
47714
|
+
OneOff: "one_off",
|
|
47715
|
+
Week: "week",
|
|
47716
|
+
Month: "month",
|
|
47717
|
+
Quarter: "quarter",
|
|
47718
|
+
SemiAnnual: "semi_annual",
|
|
47719
|
+
Year: "year"
|
|
47720
|
+
};
|
|
47721
|
+
var SetupPaymentLicenseQuantityBillingBehavior = {
|
|
47722
|
+
Prepaid: "prepaid",
|
|
47723
|
+
UsageBased: "usage_based"
|
|
47724
|
+
};
|
|
47725
|
+
var SetupPaymentLicenseQuantityFeatureQuantityInterval = {
|
|
47726
|
+
OneOff: "one_off",
|
|
47727
|
+
Week: "week",
|
|
47728
|
+
Month: "month",
|
|
47729
|
+
Quarter: "quarter",
|
|
47730
|
+
SemiAnnual: "semi_annual",
|
|
47731
|
+
Year: "year"
|
|
47732
|
+
};
|
|
46901
47733
|
var SetupPaymentTaxExempt = {
|
|
46902
47734
|
None: "none",
|
|
46903
47735
|
Exempt: "exempt",
|
|
@@ -47327,6 +48159,138 @@ var SetupPaymentCustomLineItem$outboundSchema = z105.object({
|
|
|
47327
48159
|
amount: z105.number(),
|
|
47328
48160
|
description: z105.string()
|
|
47329
48161
|
});
|
|
48162
|
+
var SetupPaymentDirection$outboundSchema = z105.enum(SetupPaymentDirection);
|
|
48163
|
+
var SetupPaymentPriceRemoveLineInterval$outboundSchema = z105.enum(SetupPaymentPriceRemoveLineInterval);
|
|
48164
|
+
var SetupPaymentPriceRemoveLine$outboundSchema = z105.pipe(
|
|
48165
|
+
z105.object({
|
|
48166
|
+
interval: z105.optional(SetupPaymentPriceRemoveLineInterval$outboundSchema),
|
|
48167
|
+
intervalCount: z105.optional(z105.int())
|
|
48168
|
+
}),
|
|
48169
|
+
z105.transform((v) => {
|
|
48170
|
+
return remap(v, {
|
|
48171
|
+
intervalCount: "interval_count"
|
|
48172
|
+
});
|
|
48173
|
+
})
|
|
48174
|
+
);
|
|
48175
|
+
var SetupPaymentPriceUnion$outboundSchema = smartUnion([
|
|
48176
|
+
z105.boolean(),
|
|
48177
|
+
z105.lazy(() => SetupPaymentPriceRemoveLine$outboundSchema)
|
|
48178
|
+
]);
|
|
48179
|
+
var SetupPaymentBillingBehavior$outboundSchema = z105.enum(SetupPaymentBillingBehavior);
|
|
48180
|
+
var SetupPaymentFeatureQuantityInterval$outboundSchema = z105.enum(SetupPaymentFeatureQuantityInterval);
|
|
48181
|
+
var SetupPaymentRemoveLineFeatureQuantity$outboundSchema = z105.pipe(
|
|
48182
|
+
z105.object({
|
|
48183
|
+
featureId: z105.string(),
|
|
48184
|
+
billingBehavior: SetupPaymentBillingBehavior$outboundSchema,
|
|
48185
|
+
interval: z105.optional(SetupPaymentFeatureQuantityInterval$outboundSchema),
|
|
48186
|
+
intervalCount: z105.optional(z105.int())
|
|
48187
|
+
}),
|
|
48188
|
+
z105.transform((v) => {
|
|
48189
|
+
return remap(v, {
|
|
48190
|
+
featureId: "feature_id",
|
|
48191
|
+
billingBehavior: "billing_behavior",
|
|
48192
|
+
intervalCount: "interval_count"
|
|
48193
|
+
});
|
|
48194
|
+
})
|
|
48195
|
+
);
|
|
48196
|
+
var SetupPaymentPriceLicenseQuantityInterval$outboundSchema = z105.enum(
|
|
48197
|
+
SetupPaymentPriceLicenseQuantityInterval
|
|
48198
|
+
);
|
|
48199
|
+
var SetupPaymentPriceLicenseQuantity$outboundSchema = z105.pipe(
|
|
48200
|
+
z105.object({
|
|
48201
|
+
interval: z105.optional(
|
|
48202
|
+
SetupPaymentPriceLicenseQuantityInterval$outboundSchema
|
|
48203
|
+
),
|
|
48204
|
+
intervalCount: z105.optional(z105.int())
|
|
48205
|
+
}),
|
|
48206
|
+
z105.transform((v) => {
|
|
48207
|
+
return remap(v, {
|
|
48208
|
+
intervalCount: "interval_count"
|
|
48209
|
+
});
|
|
48210
|
+
})
|
|
48211
|
+
);
|
|
48212
|
+
var SetupPaymentLicenseQuantityPriceUnion$outboundSchema = smartUnion([
|
|
48213
|
+
z105.boolean(),
|
|
48214
|
+
z105.lazy(() => SetupPaymentPriceLicenseQuantity$outboundSchema)
|
|
48215
|
+
]);
|
|
48216
|
+
var SetupPaymentLicenseQuantityBillingBehavior$outboundSchema = z105.enum(
|
|
48217
|
+
SetupPaymentLicenseQuantityBillingBehavior
|
|
48218
|
+
);
|
|
48219
|
+
var SetupPaymentLicenseQuantityFeatureQuantityInterval$outboundSchema = z105.enum(SetupPaymentLicenseQuantityFeatureQuantityInterval);
|
|
48220
|
+
var SetupPaymentLicenseQuantityFeatureQuantity$outboundSchema = z105.pipe(
|
|
48221
|
+
z105.object({
|
|
48222
|
+
featureId: z105.string(),
|
|
48223
|
+
billingBehavior: SetupPaymentLicenseQuantityBillingBehavior$outboundSchema,
|
|
48224
|
+
interval: z105.optional(
|
|
48225
|
+
SetupPaymentLicenseQuantityFeatureQuantityInterval$outboundSchema
|
|
48226
|
+
),
|
|
48227
|
+
intervalCount: z105.optional(z105.int())
|
|
48228
|
+
}),
|
|
48229
|
+
z105.transform((v) => {
|
|
48230
|
+
return remap(v, {
|
|
48231
|
+
featureId: "feature_id",
|
|
48232
|
+
billingBehavior: "billing_behavior",
|
|
48233
|
+
intervalCount: "interval_count"
|
|
48234
|
+
});
|
|
48235
|
+
})
|
|
48236
|
+
);
|
|
48237
|
+
var SetupPaymentRemoveLineLicenseQuantity$outboundSchema = z105.pipe(
|
|
48238
|
+
z105.object({
|
|
48239
|
+
licensePlanId: z105.string(),
|
|
48240
|
+
price: z105.optional(smartUnion([
|
|
48241
|
+
z105.boolean(),
|
|
48242
|
+
z105.lazy(() => SetupPaymentPriceLicenseQuantity$outboundSchema)
|
|
48243
|
+
])),
|
|
48244
|
+
featureQuantities: z105.optional(z105.array(z105.lazy(
|
|
48245
|
+
() => SetupPaymentLicenseQuantityFeatureQuantity$outboundSchema
|
|
48246
|
+
)))
|
|
48247
|
+
}),
|
|
48248
|
+
z105.transform((v) => {
|
|
48249
|
+
return remap(v, {
|
|
48250
|
+
licensePlanId: "license_plan_id",
|
|
48251
|
+
featureQuantities: "feature_quantities"
|
|
48252
|
+
});
|
|
48253
|
+
})
|
|
48254
|
+
);
|
|
48255
|
+
var SetupPaymentRemoveLine$outboundSchema = z105.pipe(
|
|
48256
|
+
z105.object({
|
|
48257
|
+
planId: z105.string(),
|
|
48258
|
+
entityId: z105.optional(z105.nullable(z105.string())),
|
|
48259
|
+
direction: z105.optional(SetupPaymentDirection$outboundSchema),
|
|
48260
|
+
price: z105.optional(smartUnion([
|
|
48261
|
+
z105.boolean(),
|
|
48262
|
+
z105.lazy(() => SetupPaymentPriceRemoveLine$outboundSchema)
|
|
48263
|
+
])),
|
|
48264
|
+
featureQuantities: z105.optional(z105.array(z105.lazy(
|
|
48265
|
+
() => SetupPaymentRemoveLineFeatureQuantity$outboundSchema
|
|
48266
|
+
))),
|
|
48267
|
+
licenseQuantities: z105.optional(z105.array(z105.lazy(
|
|
48268
|
+
() => SetupPaymentRemoveLineLicenseQuantity$outboundSchema
|
|
48269
|
+
)))
|
|
48270
|
+
}),
|
|
48271
|
+
z105.transform((v) => {
|
|
48272
|
+
return remap(v, {
|
|
48273
|
+
planId: "plan_id",
|
|
48274
|
+
entityId: "entity_id",
|
|
48275
|
+
featureQuantities: "feature_quantities",
|
|
48276
|
+
licenseQuantities: "license_quantities"
|
|
48277
|
+
});
|
|
48278
|
+
})
|
|
48279
|
+
);
|
|
48280
|
+
var SetupPaymentAddLine$outboundSchema = z105.pipe(
|
|
48281
|
+
z105.object({
|
|
48282
|
+
amount: z105.number(),
|
|
48283
|
+
description: z105.string(),
|
|
48284
|
+
periodStart: z105.optional(z105.int()),
|
|
48285
|
+
periodEnd: z105.optional(z105.int())
|
|
48286
|
+
}),
|
|
48287
|
+
z105.transform((v) => {
|
|
48288
|
+
return remap(v, {
|
|
48289
|
+
periodStart: "period_start",
|
|
48290
|
+
periodEnd: "period_end"
|
|
48291
|
+
});
|
|
48292
|
+
})
|
|
48293
|
+
);
|
|
47330
48294
|
var SetupPaymentCarryOverBalances$outboundSchema = z105.pipe(
|
|
47331
48295
|
z105.object({
|
|
47332
48296
|
enabled: z105.boolean(),
|
|
@@ -47448,6 +48412,12 @@ var SetupPaymentParams$outboundSchema = z105.pipe(
|
|
|
47448
48412
|
customLineItems: z105.optional(
|
|
47449
48413
|
z105.array(z105.lazy(() => SetupPaymentCustomLineItem$outboundSchema))
|
|
47450
48414
|
),
|
|
48415
|
+
removeLines: z105.optional(
|
|
48416
|
+
z105.array(z105.lazy(() => SetupPaymentRemoveLine$outboundSchema))
|
|
48417
|
+
),
|
|
48418
|
+
addLines: z105.optional(
|
|
48419
|
+
z105.array(z105.lazy(() => SetupPaymentAddLine$outboundSchema))
|
|
48420
|
+
),
|
|
47451
48421
|
processorSubscriptionId: z105.optional(z105.string()),
|
|
47452
48422
|
carryOverBalances: z105.optional(
|
|
47453
48423
|
z105.lazy(() => SetupPaymentCarryOverBalances$outboundSchema)
|
|
@@ -47487,6 +48457,8 @@ var SetupPaymentParams$outboundSchema = z105.pipe(
|
|
|
47487
48457
|
endsAt: "ends_at",
|
|
47488
48458
|
checkoutSessionParams: "checkout_session_params",
|
|
47489
48459
|
customLineItems: "custom_line_items",
|
|
48460
|
+
removeLines: "remove_lines",
|
|
48461
|
+
addLines: "add_lines",
|
|
47490
48462
|
processorSubscriptionId: "processor_subscription_id",
|
|
47491
48463
|
carryOverBalances: "carry_over_balances",
|
|
47492
48464
|
carryOverUsages: "carry_over_usages",
|
|
@@ -60312,6 +61284,8 @@ var Billing = class extends ClientSDK {
|
|
|
60312
61284
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
60313
61285
|
* @param longLivedCheckout - If true, returns an Autumn-hosted checkout link that can create a fresh Stripe checkout session when opened. (optional)
|
|
60314
61286
|
* @param customLineItems - Custom line items that override the auto-generated proration invoice. Only valid for immediate plan changes (eg. upgrades or one off plans). (optional)
|
|
61287
|
+
* @param removeLines - Lines to remove from the invoice this request creates. Never changes the subscription or later invoices. (optional)
|
|
61288
|
+
* @param addLines - Lines to add to the invoice this request creates. Never changes the subscription or later invoices. (optional)
|
|
60315
61289
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
60316
61290
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
60317
61291
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
@@ -60452,6 +61426,8 @@ var Billing = class extends ClientSDK {
|
|
|
60452
61426
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
60453
61427
|
* @param longLivedCheckout - If true, returns an Autumn-hosted checkout link that can create a fresh Stripe checkout session when opened. (optional)
|
|
60454
61428
|
* @param customLineItems - Custom line items that override the auto-generated proration invoice. Only valid for immediate plan changes (eg. upgrades or one off plans). (optional)
|
|
61429
|
+
* @param removeLines - Lines to remove from the invoice this request creates. Never changes the subscription or later invoices. (optional)
|
|
61430
|
+
* @param addLines - Lines to add to the invoice this request creates. Never changes the subscription or later invoices. (optional)
|
|
60455
61431
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
60456
61432
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
60457
61433
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
@@ -60548,6 +61524,8 @@ var Billing = class extends ClientSDK {
|
|
|
60548
61524
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
60549
61525
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
60550
61526
|
* @param customLineItems - Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription. (optional)
|
|
61527
|
+
* @param removeLines - Lines to remove from the invoice this request creates. Never changes the subscription or later invoices. (optional)
|
|
61528
|
+
* @param addLines - Lines to add to the invoice this request creates. Never changes the subscription or later invoices. (optional)
|
|
60551
61529
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
60552
61530
|
* @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
|
|
60553
61531
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
@@ -60591,6 +61569,8 @@ var Billing = class extends ClientSDK {
|
|
|
60591
61569
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
60592
61570
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
60593
61571
|
* @param customLineItems - Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription. (optional)
|
|
61572
|
+
* @param removeLines - Lines to remove from the invoice this request creates. Never changes the subscription or later invoices. (optional)
|
|
61573
|
+
* @param addLines - Lines to add to the invoice this request creates. Never changes the subscription or later invoices. (optional)
|
|
60594
61574
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
60595
61575
|
* @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
|
|
60596
61576
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
@@ -67688,6 +68668,12 @@ var attachCustomLineItemSchema = import_v42.z.object({
|
|
|
67688
68668
|
amount: import_v42.z.number(),
|
|
67689
68669
|
description: import_v42.z.string()
|
|
67690
68670
|
});
|
|
68671
|
+
var attachAddLineSchema = import_v42.z.object({
|
|
68672
|
+
amount: import_v42.z.number(),
|
|
68673
|
+
description: import_v42.z.string(),
|
|
68674
|
+
periodStart: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
68675
|
+
periodEnd: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
68676
|
+
});
|
|
67691
68677
|
var attachCarryOverBalancesSchema = import_v42.z.object({
|
|
67692
68678
|
enabled: import_v42.z.boolean(),
|
|
67693
68679
|
featureIds: import_v42.z.union([import_v42.z.array(import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
@@ -67918,7 +68904,8 @@ var attachRemoveLicenseOutboundSchema = import_v42.z.object({
|
|
|
67918
68904
|
var attachInvoiceModeOutboundSchema = import_v42.z.object({
|
|
67919
68905
|
enabled: import_v42.z.boolean(),
|
|
67920
68906
|
enable_plan_immediately: import_v42.z.boolean(),
|
|
67921
|
-
finalize: import_v42.z.boolean(),
|
|
68907
|
+
finalize: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
68908
|
+
issue_method: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
67922
68909
|
invoice_template_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
67923
68910
|
net_terms_days: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
67924
68911
|
payment_method_types: import_v42.z.union([import_v42.z.array(import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
@@ -67935,6 +68922,66 @@ var attachCustomLineItemOutboundSchema = import_v42.z.object({
|
|
|
67935
68922
|
amount: import_v42.z.number(),
|
|
67936
68923
|
description: import_v42.z.string()
|
|
67937
68924
|
});
|
|
68925
|
+
var attachPriceRemoveLineOutboundSchema = import_v42.z.object({
|
|
68926
|
+
interval: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
68927
|
+
interval_count: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
68928
|
+
});
|
|
68929
|
+
var attachPriceUnionOutboundSchema = import_v42.z.union([
|
|
68930
|
+
import_v42.z.boolean(),
|
|
68931
|
+
attachPriceRemoveLineOutboundSchema
|
|
68932
|
+
]);
|
|
68933
|
+
var attachRemoveLineFeatureQuantityOutboundSchema = import_v42.z.object({
|
|
68934
|
+
feature_id: import_v42.z.string(),
|
|
68935
|
+
billing_behavior: import_v42.z.string(),
|
|
68936
|
+
interval: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
68937
|
+
interval_count: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
68938
|
+
});
|
|
68939
|
+
var attachPriceLicenseQuantityOutboundSchema = import_v42.z.object({
|
|
68940
|
+
interval: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
68941
|
+
interval_count: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
68942
|
+
});
|
|
68943
|
+
var attachLicenseQuantityPriceUnionOutboundSchema = import_v42.z.union([
|
|
68944
|
+
import_v42.z.boolean(),
|
|
68945
|
+
attachPriceLicenseQuantityOutboundSchema
|
|
68946
|
+
]);
|
|
68947
|
+
var attachLicenseQuantityFeatureQuantityOutboundSchema = import_v42.z.object({
|
|
68948
|
+
feature_id: import_v42.z.string(),
|
|
68949
|
+
billing_behavior: import_v42.z.string(),
|
|
68950
|
+
interval: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
68951
|
+
interval_count: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
68952
|
+
});
|
|
68953
|
+
var attachRemoveLineLicenseQuantityOutboundSchema = import_v42.z.object({
|
|
68954
|
+
license_plan_id: import_v42.z.string(),
|
|
68955
|
+
price: import_v42.z.union([
|
|
68956
|
+
import_v42.z.boolean(),
|
|
68957
|
+
attachPriceLicenseQuantityOutboundSchema,
|
|
68958
|
+
import_v42.z.undefined()
|
|
68959
|
+
]).optional(),
|
|
68960
|
+
feature_quantities: import_v42.z.union([
|
|
68961
|
+
import_v42.z.array(attachLicenseQuantityFeatureQuantityOutboundSchema),
|
|
68962
|
+
import_v42.z.undefined()
|
|
68963
|
+
]).optional()
|
|
68964
|
+
});
|
|
68965
|
+
var attachRemoveLineOutboundSchema = import_v42.z.object({
|
|
68966
|
+
plan_id: import_v42.z.string(),
|
|
68967
|
+
entity_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional().nullable(),
|
|
68968
|
+
direction: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
68969
|
+
price: import_v42.z.union([import_v42.z.boolean(), attachPriceRemoveLineOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
68970
|
+
feature_quantities: import_v42.z.union([
|
|
68971
|
+
import_v42.z.array(attachRemoveLineFeatureQuantityOutboundSchema),
|
|
68972
|
+
import_v42.z.undefined()
|
|
68973
|
+
]).optional(),
|
|
68974
|
+
license_quantities: import_v42.z.union([
|
|
68975
|
+
import_v42.z.array(attachRemoveLineLicenseQuantityOutboundSchema),
|
|
68976
|
+
import_v42.z.undefined()
|
|
68977
|
+
]).optional()
|
|
68978
|
+
});
|
|
68979
|
+
var attachAddLineOutboundSchema = import_v42.z.object({
|
|
68980
|
+
amount: import_v42.z.number(),
|
|
68981
|
+
description: import_v42.z.string(),
|
|
68982
|
+
period_start: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
68983
|
+
period_end: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
68984
|
+
});
|
|
67938
68985
|
var attachCarryOverBalancesOutboundSchema = import_v42.z.object({
|
|
67939
68986
|
enabled: import_v42.z.boolean(),
|
|
67940
68987
|
feature_ids: import_v42.z.union([import_v42.z.array(import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
@@ -68165,11 +69212,13 @@ var attachCustomizeSchema = import_v42.z.object({
|
|
|
68165
69212
|
upsertLicenses: import_v42.z.union([import_v42.z.array(attachUpsertLicenseSchema), import_v42.z.undefined()]).optional(),
|
|
68166
69213
|
removeLicenses: import_v42.z.union([import_v42.z.array(attachRemoveLicenseSchema), import_v42.z.undefined()]).optional()
|
|
68167
69214
|
});
|
|
69215
|
+
var attachIssueMethodSchema = closedEnumSchema2;
|
|
68168
69216
|
var attachPaymentMethodTypeSchema = closedEnumSchema2;
|
|
68169
69217
|
var attachInvoiceModeSchema = import_v42.z.object({
|
|
68170
69218
|
enabled: import_v42.z.boolean(),
|
|
68171
69219
|
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
68172
69220
|
finalize: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
69221
|
+
issueMethod: import_v42.z.union([attachIssueMethodSchema, import_v42.z.undefined()]).optional(),
|
|
68173
69222
|
invoiceTemplateId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
68174
69223
|
netTermsDays: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
68175
69224
|
paymentMethodTypes: import_v42.z.union([import_v42.z.array(attachPaymentMethodTypeSchema), import_v42.z.undefined()]).optional()
|
|
@@ -68177,6 +69226,54 @@ var attachInvoiceModeSchema = import_v42.z.object({
|
|
|
68177
69226
|
var attachProrationBehaviorSchema = closedEnumSchema2;
|
|
68178
69227
|
var attachRedirectModeSchema = closedEnumSchema2;
|
|
68179
69228
|
var attachPlanScheduleSchema = closedEnumSchema2;
|
|
69229
|
+
var attachDirectionSchema = closedEnumSchema2;
|
|
69230
|
+
var attachPriceRemoveLineIntervalSchema = closedEnumSchema2;
|
|
69231
|
+
var attachPriceRemoveLineSchema = import_v42.z.object({
|
|
69232
|
+
interval: import_v42.z.union([attachPriceRemoveLineIntervalSchema, import_v42.z.undefined()]).optional(),
|
|
69233
|
+
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69234
|
+
});
|
|
69235
|
+
var attachPriceUnionSchema = import_v42.z.union([
|
|
69236
|
+
import_v42.z.boolean(),
|
|
69237
|
+
attachPriceRemoveLineSchema
|
|
69238
|
+
]);
|
|
69239
|
+
var attachBillingBehaviorSchema = closedEnumSchema2;
|
|
69240
|
+
var attachFeatureQuantityIntervalSchema = closedEnumSchema2;
|
|
69241
|
+
var attachRemoveLineFeatureQuantitySchema = import_v42.z.object({
|
|
69242
|
+
featureId: import_v42.z.string(),
|
|
69243
|
+
billingBehavior: attachBillingBehaviorSchema,
|
|
69244
|
+
interval: import_v42.z.union([attachFeatureQuantityIntervalSchema, import_v42.z.undefined()]).optional(),
|
|
69245
|
+
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69246
|
+
});
|
|
69247
|
+
var attachPriceLicenseQuantityIntervalSchema = closedEnumSchema2;
|
|
69248
|
+
var attachPriceLicenseQuantitySchema = import_v42.z.object({
|
|
69249
|
+
interval: import_v42.z.union([attachPriceLicenseQuantityIntervalSchema, import_v42.z.undefined()]).optional(),
|
|
69250
|
+
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69251
|
+
});
|
|
69252
|
+
var attachLicenseQuantityPriceUnionSchema = import_v42.z.union([
|
|
69253
|
+
import_v42.z.boolean(),
|
|
69254
|
+
attachPriceLicenseQuantitySchema
|
|
69255
|
+
]);
|
|
69256
|
+
var attachLicenseQuantityBillingBehaviorSchema = closedEnumSchema2;
|
|
69257
|
+
var attachLicenseQuantityFeatureQuantityIntervalSchema = closedEnumSchema2;
|
|
69258
|
+
var attachLicenseQuantityFeatureQuantitySchema = import_v42.z.object({
|
|
69259
|
+
featureId: import_v42.z.string(),
|
|
69260
|
+
billingBehavior: attachLicenseQuantityBillingBehaviorSchema,
|
|
69261
|
+
interval: import_v42.z.union([attachLicenseQuantityFeatureQuantityIntervalSchema, import_v42.z.undefined()]).optional(),
|
|
69262
|
+
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
69263
|
+
});
|
|
69264
|
+
var attachRemoveLineLicenseQuantitySchema = import_v42.z.object({
|
|
69265
|
+
licensePlanId: import_v42.z.string(),
|
|
69266
|
+
price: import_v42.z.union([import_v42.z.boolean(), attachPriceLicenseQuantitySchema, import_v42.z.undefined()]).optional(),
|
|
69267
|
+
featureQuantities: import_v42.z.union([import_v42.z.array(attachLicenseQuantityFeatureQuantitySchema), import_v42.z.undefined()]).optional()
|
|
69268
|
+
});
|
|
69269
|
+
var attachRemoveLineSchema = import_v42.z.object({
|
|
69270
|
+
planId: import_v42.z.string(),
|
|
69271
|
+
entityId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional().nullable(),
|
|
69272
|
+
direction: import_v42.z.union([attachDirectionSchema, import_v42.z.undefined()]).optional(),
|
|
69273
|
+
price: import_v42.z.union([import_v42.z.boolean(), attachPriceRemoveLineSchema, import_v42.z.undefined()]).optional(),
|
|
69274
|
+
featureQuantities: import_v42.z.union([import_v42.z.array(attachRemoveLineFeatureQuantitySchema), import_v42.z.undefined()]).optional(),
|
|
69275
|
+
licenseQuantities: import_v42.z.union([import_v42.z.array(attachRemoveLineLicenseQuantitySchema), import_v42.z.undefined()]).optional()
|
|
69276
|
+
});
|
|
68180
69277
|
var attachTaxExemptSchema = closedEnumSchema2;
|
|
68181
69278
|
var attachBillingDetailsSchema = import_v42.z.object({
|
|
68182
69279
|
address: import_v42.z.union([attachAddressSchema, import_v42.z.undefined()]).optional(),
|
|
@@ -68205,6 +69302,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
68205
69302
|
checkoutSessionParams: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.any()), import_v42.z.undefined()]).optional(),
|
|
68206
69303
|
longLivedCheckout: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
68207
69304
|
customLineItems: import_v42.z.union([import_v42.z.array(attachCustomLineItemSchema), import_v42.z.undefined()]).optional(),
|
|
69305
|
+
removeLines: import_v42.z.union([import_v42.z.array(attachRemoveLineSchema), import_v42.z.undefined()]).optional(),
|
|
69306
|
+
addLines: import_v42.z.union([import_v42.z.array(attachAddLineSchema), import_v42.z.undefined()]).optional(),
|
|
68208
69307
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
68209
69308
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
68210
69309
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
@@ -68292,6 +69391,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
68292
69391
|
checkout_session_params: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.any()), import_v42.z.undefined()]).optional(),
|
|
68293
69392
|
long_lived_checkout: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
68294
69393
|
custom_line_items: import_v42.z.union([import_v42.z.array(attachCustomLineItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
69394
|
+
remove_lines: import_v42.z.union([import_v42.z.array(attachRemoveLineOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
69395
|
+
add_lines: import_v42.z.union([import_v42.z.array(attachAddLineOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
68295
69396
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
68296
69397
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
68297
69398
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
@@ -70111,7 +71212,8 @@ var multiAttachFreeTrialParamsOutboundSchema = import_v410.z.object({
|
|
|
70111
71212
|
var multiAttachInvoiceModeOutboundSchema = import_v410.z.object({
|
|
70112
71213
|
enabled: import_v410.z.boolean(),
|
|
70113
71214
|
enable_plan_immediately: import_v410.z.boolean(),
|
|
70114
|
-
finalize: import_v410.z.boolean(),
|
|
71215
|
+
finalize: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
71216
|
+
issue_method: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
70115
71217
|
invoice_template_id: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
70116
71218
|
net_terms_days: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
70117
71219
|
payment_method_types: import_v410.z.union([import_v410.z.array(import_v410.z.string()), import_v410.z.undefined()]).optional()
|
|
@@ -70352,11 +71454,13 @@ var multiAttachFreeTrialParamsSchema = import_v410.z.object({
|
|
|
70352
71454
|
cardRequired: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
70353
71455
|
onEnd: import_v410.z.union([multiAttachOnEndSchema, import_v410.z.undefined()]).optional()
|
|
70354
71456
|
});
|
|
71457
|
+
var multiAttachIssueMethodSchema = closedEnumSchema8;
|
|
70355
71458
|
var multiAttachPaymentMethodTypeSchema = closedEnumSchema8;
|
|
70356
71459
|
var multiAttachInvoiceModeSchema = import_v410.z.object({
|
|
70357
71460
|
enabled: import_v410.z.boolean(),
|
|
70358
71461
|
enablePlanImmediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
70359
71462
|
finalize: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
71463
|
+
issueMethod: import_v410.z.union([multiAttachIssueMethodSchema, import_v410.z.undefined()]).optional(),
|
|
70360
71464
|
invoiceTemplateId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
70361
71465
|
netTermsDays: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
70362
71466
|
paymentMethodTypes: import_v410.z.union([import_v410.z.array(multiAttachPaymentMethodTypeSchema), import_v410.z.undefined()]).optional()
|
|
@@ -70560,6 +71664,12 @@ var previewAttachCustomLineItemSchema = import_v412.z.object({
|
|
|
70560
71664
|
amount: import_v412.z.number(),
|
|
70561
71665
|
description: import_v412.z.string()
|
|
70562
71666
|
});
|
|
71667
|
+
var previewAttachAddLineSchema = import_v412.z.object({
|
|
71668
|
+
amount: import_v412.z.number(),
|
|
71669
|
+
description: import_v412.z.string(),
|
|
71670
|
+
periodStart: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
71671
|
+
periodEnd: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
71672
|
+
});
|
|
70563
71673
|
var previewAttachCarryOverBalancesSchema = import_v412.z.object({
|
|
70564
71674
|
enabled: import_v412.z.boolean(),
|
|
70565
71675
|
featureIds: import_v412.z.union([import_v412.z.array(import_v412.z.string()), import_v412.z.undefined()]).optional()
|
|
@@ -70854,7 +71964,8 @@ var previewAttachRemoveLicenseOutboundSchema = import_v412.z.object({
|
|
|
70854
71964
|
var previewAttachInvoiceModeOutboundSchema = import_v412.z.object({
|
|
70855
71965
|
enabled: import_v412.z.boolean(),
|
|
70856
71966
|
enable_plan_immediately: import_v412.z.boolean(),
|
|
70857
|
-
finalize: import_v412.z.boolean(),
|
|
71967
|
+
finalize: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
|
|
71968
|
+
issue_method: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
70858
71969
|
invoice_template_id: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
70859
71970
|
net_terms_days: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
70860
71971
|
payment_method_types: import_v412.z.union([import_v412.z.array(import_v412.z.string()), import_v412.z.undefined()]).optional()
|
|
@@ -70871,6 +71982,70 @@ var previewAttachCustomLineItemOutboundSchema = import_v412.z.object({
|
|
|
70871
71982
|
amount: import_v412.z.number(),
|
|
70872
71983
|
description: import_v412.z.string()
|
|
70873
71984
|
});
|
|
71985
|
+
var previewAttachPriceRemoveLineOutboundSchema = import_v412.z.object({
|
|
71986
|
+
interval: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
71987
|
+
interval_count: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
71988
|
+
});
|
|
71989
|
+
var previewAttachPriceUnionOutboundSchema = import_v412.z.union([
|
|
71990
|
+
import_v412.z.boolean(),
|
|
71991
|
+
previewAttachPriceRemoveLineOutboundSchema
|
|
71992
|
+
]);
|
|
71993
|
+
var previewAttachRemoveLineFeatureQuantityOutboundSchema = import_v412.z.object({
|
|
71994
|
+
feature_id: import_v412.z.string(),
|
|
71995
|
+
billing_behavior: import_v412.z.string(),
|
|
71996
|
+
interval: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
71997
|
+
interval_count: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
71998
|
+
});
|
|
71999
|
+
var previewAttachPriceLicenseQuantityOutboundSchema = import_v412.z.object({
|
|
72000
|
+
interval: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
72001
|
+
interval_count: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72002
|
+
});
|
|
72003
|
+
var previewAttachLicenseQuantityPriceUnionOutboundSchema = import_v412.z.union([
|
|
72004
|
+
import_v412.z.boolean(),
|
|
72005
|
+
previewAttachPriceLicenseQuantityOutboundSchema
|
|
72006
|
+
]);
|
|
72007
|
+
var previewAttachLicenseQuantityFeatureQuantityOutboundSchema = import_v412.z.object({
|
|
72008
|
+
feature_id: import_v412.z.string(),
|
|
72009
|
+
billing_behavior: import_v412.z.string(),
|
|
72010
|
+
interval: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
72011
|
+
interval_count: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72012
|
+
});
|
|
72013
|
+
var previewAttachRemoveLineLicenseQuantityOutboundSchema = import_v412.z.object({
|
|
72014
|
+
license_plan_id: import_v412.z.string(),
|
|
72015
|
+
price: import_v412.z.union([
|
|
72016
|
+
import_v412.z.boolean(),
|
|
72017
|
+
previewAttachPriceLicenseQuantityOutboundSchema,
|
|
72018
|
+
import_v412.z.undefined()
|
|
72019
|
+
]).optional(),
|
|
72020
|
+
feature_quantities: import_v412.z.union([
|
|
72021
|
+
import_v412.z.array(previewAttachLicenseQuantityFeatureQuantityOutboundSchema),
|
|
72022
|
+
import_v412.z.undefined()
|
|
72023
|
+
]).optional()
|
|
72024
|
+
});
|
|
72025
|
+
var previewAttachRemoveLineOutboundSchema = import_v412.z.object({
|
|
72026
|
+
plan_id: import_v412.z.string(),
|
|
72027
|
+
entity_id: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional().nullable(),
|
|
72028
|
+
direction: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
72029
|
+
price: import_v412.z.union([
|
|
72030
|
+
import_v412.z.boolean(),
|
|
72031
|
+
previewAttachPriceRemoveLineOutboundSchema,
|
|
72032
|
+
import_v412.z.undefined()
|
|
72033
|
+
]).optional(),
|
|
72034
|
+
feature_quantities: import_v412.z.union([
|
|
72035
|
+
import_v412.z.array(previewAttachRemoveLineFeatureQuantityOutboundSchema),
|
|
72036
|
+
import_v412.z.undefined()
|
|
72037
|
+
]).optional(),
|
|
72038
|
+
license_quantities: import_v412.z.union([
|
|
72039
|
+
import_v412.z.array(previewAttachRemoveLineLicenseQuantityOutboundSchema),
|
|
72040
|
+
import_v412.z.undefined()
|
|
72041
|
+
]).optional()
|
|
72042
|
+
});
|
|
72043
|
+
var previewAttachAddLineOutboundSchema = import_v412.z.object({
|
|
72044
|
+
amount: import_v412.z.number(),
|
|
72045
|
+
description: import_v412.z.string(),
|
|
72046
|
+
period_start: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
72047
|
+
period_end: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72048
|
+
});
|
|
70874
72049
|
var previewAttachCarryOverBalancesOutboundSchema = import_v412.z.object({
|
|
70875
72050
|
enabled: import_v412.z.boolean(),
|
|
70876
72051
|
feature_ids: import_v412.z.union([import_v412.z.array(import_v412.z.string()), import_v412.z.undefined()]).optional()
|
|
@@ -71111,11 +72286,13 @@ var previewAttachCustomizeSchema = import_v412.z.object({
|
|
|
71111
72286
|
upsertLicenses: import_v412.z.union([import_v412.z.array(previewAttachUpsertLicenseSchema), import_v412.z.undefined()]).optional(),
|
|
71112
72287
|
removeLicenses: import_v412.z.union([import_v412.z.array(previewAttachRemoveLicenseSchema), import_v412.z.undefined()]).optional()
|
|
71113
72288
|
});
|
|
72289
|
+
var previewAttachIssueMethodSchema = closedEnumSchema9;
|
|
71114
72290
|
var previewAttachPaymentMethodTypeSchema = closedEnumSchema9;
|
|
71115
72291
|
var previewAttachInvoiceModeSchema = import_v412.z.object({
|
|
71116
72292
|
enabled: import_v412.z.boolean(),
|
|
71117
72293
|
enablePlanImmediately: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
|
|
71118
72294
|
finalize: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
|
|
72295
|
+
issueMethod: import_v412.z.union([previewAttachIssueMethodSchema, import_v412.z.undefined()]).optional(),
|
|
71119
72296
|
invoiceTemplateId: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
71120
72297
|
netTermsDays: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
71121
72298
|
paymentMethodTypes: import_v412.z.union([import_v412.z.array(previewAttachPaymentMethodTypeSchema), import_v412.z.undefined()]).optional()
|
|
@@ -71123,6 +72300,70 @@ var previewAttachInvoiceModeSchema = import_v412.z.object({
|
|
|
71123
72300
|
var previewAttachProrationBehaviorSchema = closedEnumSchema9;
|
|
71124
72301
|
var previewAttachRedirectModeSchema = closedEnumSchema9;
|
|
71125
72302
|
var previewAttachPlanScheduleSchema = closedEnumSchema9;
|
|
72303
|
+
var previewAttachDirectionSchema = closedEnumSchema9;
|
|
72304
|
+
var previewAttachPriceRemoveLineIntervalSchema = closedEnumSchema9;
|
|
72305
|
+
var previewAttachPriceRemoveLineSchema = import_v412.z.object({
|
|
72306
|
+
interval: import_v412.z.union([previewAttachPriceRemoveLineIntervalSchema, import_v412.z.undefined()]).optional(),
|
|
72307
|
+
intervalCount: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72308
|
+
});
|
|
72309
|
+
var previewAttachPriceUnionSchema = import_v412.z.union([
|
|
72310
|
+
import_v412.z.boolean(),
|
|
72311
|
+
previewAttachPriceRemoveLineSchema
|
|
72312
|
+
]);
|
|
72313
|
+
var previewAttachBillingBehaviorSchema = closedEnumSchema9;
|
|
72314
|
+
var previewAttachFeatureQuantityIntervalSchema = closedEnumSchema9;
|
|
72315
|
+
var previewAttachRemoveLineFeatureQuantitySchema = import_v412.z.object({
|
|
72316
|
+
featureId: import_v412.z.string(),
|
|
72317
|
+
billingBehavior: previewAttachBillingBehaviorSchema,
|
|
72318
|
+
interval: import_v412.z.union([previewAttachFeatureQuantityIntervalSchema, import_v412.z.undefined()]).optional(),
|
|
72319
|
+
intervalCount: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72320
|
+
});
|
|
72321
|
+
var previewAttachPriceLicenseQuantityIntervalSchema = closedEnumSchema9;
|
|
72322
|
+
var previewAttachPriceLicenseQuantitySchema = import_v412.z.object({
|
|
72323
|
+
interval: import_v412.z.union([previewAttachPriceLicenseQuantityIntervalSchema, import_v412.z.undefined()]).optional(),
|
|
72324
|
+
intervalCount: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72325
|
+
});
|
|
72326
|
+
var previewAttachLicenseQuantityPriceUnionSchema = import_v412.z.union([
|
|
72327
|
+
import_v412.z.boolean(),
|
|
72328
|
+
previewAttachPriceLicenseQuantitySchema
|
|
72329
|
+
]);
|
|
72330
|
+
var previewAttachLicenseQuantityBillingBehaviorSchema = closedEnumSchema9;
|
|
72331
|
+
var previewAttachLicenseQuantityFeatureQuantityIntervalSchema = closedEnumSchema9;
|
|
72332
|
+
var previewAttachLicenseQuantityFeatureQuantitySchema = import_v412.z.object({
|
|
72333
|
+
featureId: import_v412.z.string(),
|
|
72334
|
+
billingBehavior: previewAttachLicenseQuantityBillingBehaviorSchema,
|
|
72335
|
+
interval: import_v412.z.union([
|
|
72336
|
+
previewAttachLicenseQuantityFeatureQuantityIntervalSchema,
|
|
72337
|
+
import_v412.z.undefined()
|
|
72338
|
+
]).optional(),
|
|
72339
|
+
intervalCount: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional()
|
|
72340
|
+
});
|
|
72341
|
+
var previewAttachRemoveLineLicenseQuantitySchema = import_v412.z.object({
|
|
72342
|
+
licensePlanId: import_v412.z.string(),
|
|
72343
|
+
price: import_v412.z.union([
|
|
72344
|
+
import_v412.z.boolean(),
|
|
72345
|
+
previewAttachPriceLicenseQuantitySchema,
|
|
72346
|
+
import_v412.z.undefined()
|
|
72347
|
+
]).optional(),
|
|
72348
|
+
featureQuantities: import_v412.z.union([
|
|
72349
|
+
import_v412.z.array(previewAttachLicenseQuantityFeatureQuantitySchema),
|
|
72350
|
+
import_v412.z.undefined()
|
|
72351
|
+
]).optional()
|
|
72352
|
+
});
|
|
72353
|
+
var previewAttachRemoveLineSchema = import_v412.z.object({
|
|
72354
|
+
planId: import_v412.z.string(),
|
|
72355
|
+
entityId: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional().nullable(),
|
|
72356
|
+
direction: import_v412.z.union([previewAttachDirectionSchema, import_v412.z.undefined()]).optional(),
|
|
72357
|
+
price: import_v412.z.union([import_v412.z.boolean(), previewAttachPriceRemoveLineSchema, import_v412.z.undefined()]).optional(),
|
|
72358
|
+
featureQuantities: import_v412.z.union([
|
|
72359
|
+
import_v412.z.array(previewAttachRemoveLineFeatureQuantitySchema),
|
|
72360
|
+
import_v412.z.undefined()
|
|
72361
|
+
]).optional(),
|
|
72362
|
+
licenseQuantities: import_v412.z.union([
|
|
72363
|
+
import_v412.z.array(previewAttachRemoveLineLicenseQuantitySchema),
|
|
72364
|
+
import_v412.z.undefined()
|
|
72365
|
+
]).optional()
|
|
72366
|
+
});
|
|
71126
72367
|
var previewAttachTaxExemptSchema = closedEnumSchema9;
|
|
71127
72368
|
var previewAttachBillingDetailsSchema = import_v412.z.object({
|
|
71128
72369
|
address: import_v412.z.union([previewAttachAddressSchema, import_v412.z.undefined()]).optional(),
|
|
@@ -71154,6 +72395,8 @@ var previewAttachParamsSchema = import_v412.z.object({
|
|
|
71154
72395
|
checkoutSessionParams: import_v412.z.union([import_v412.z.record(import_v412.z.string(), import_v412.z.any()), import_v412.z.undefined()]).optional(),
|
|
71155
72396
|
longLivedCheckout: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
|
|
71156
72397
|
customLineItems: import_v412.z.union([import_v412.z.array(previewAttachCustomLineItemSchema), import_v412.z.undefined()]).optional(),
|
|
72398
|
+
removeLines: import_v412.z.union([import_v412.z.array(previewAttachRemoveLineSchema), import_v412.z.undefined()]).optional(),
|
|
72399
|
+
addLines: import_v412.z.union([import_v412.z.array(previewAttachAddLineSchema), import_v412.z.undefined()]).optional(),
|
|
71157
72400
|
processorSubscriptionId: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
71158
72401
|
carryOverBalances: import_v412.z.union([previewAttachCarryOverBalancesSchema, import_v412.z.undefined()]).optional(),
|
|
71159
72402
|
carryOverUsages: import_v412.z.union([previewAttachCarryOverUsagesSchema, import_v412.z.undefined()]).optional(),
|
|
@@ -71282,6 +72525,8 @@ var previewAttachParamsOutboundSchema = import_v412.z.object({
|
|
|
71282
72525
|
checkout_session_params: import_v412.z.union([import_v412.z.record(import_v412.z.string(), import_v412.z.any()), import_v412.z.undefined()]).optional(),
|
|
71283
72526
|
long_lived_checkout: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
|
|
71284
72527
|
custom_line_items: import_v412.z.union([import_v412.z.array(previewAttachCustomLineItemOutboundSchema), import_v412.z.undefined()]).optional(),
|
|
72528
|
+
remove_lines: import_v412.z.union([import_v412.z.array(previewAttachRemoveLineOutboundSchema), import_v412.z.undefined()]).optional(),
|
|
72529
|
+
add_lines: import_v412.z.union([import_v412.z.array(previewAttachAddLineOutboundSchema), import_v412.z.undefined()]).optional(),
|
|
71285
72530
|
processor_subscription_id: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
71286
72531
|
carry_over_balances: import_v412.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v412.z.undefined()]).optional(),
|
|
71287
72532
|
carry_over_usages: import_v412.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v412.z.undefined()]).optional(),
|
|
@@ -71787,7 +73032,8 @@ var previewMultiAttachFreeTrialParamsOutboundSchema = import_v413.z.object({
|
|
|
71787
73032
|
var previewMultiAttachInvoiceModeOutboundSchema = import_v413.z.object({
|
|
71788
73033
|
enabled: import_v413.z.boolean(),
|
|
71789
73034
|
enable_plan_immediately: import_v413.z.boolean(),
|
|
71790
|
-
finalize: import_v413.z.boolean(),
|
|
73035
|
+
finalize: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
73036
|
+
issue_method: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
71791
73037
|
invoice_template_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
71792
73038
|
net_terms_days: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
71793
73039
|
payment_method_types: import_v413.z.union([import_v413.z.array(import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
@@ -72050,11 +73296,13 @@ var previewMultiAttachFreeTrialParamsSchema = import_v413.z.object({
|
|
|
72050
73296
|
cardRequired: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
72051
73297
|
onEnd: import_v413.z.union([previewMultiAttachOnEndSchema, import_v413.z.undefined()]).optional()
|
|
72052
73298
|
});
|
|
73299
|
+
var previewMultiAttachIssueMethodSchema = closedEnumSchema10;
|
|
72053
73300
|
var previewMultiAttachPaymentMethodTypeSchema = closedEnumSchema10;
|
|
72054
73301
|
var previewMultiAttachInvoiceModeSchema = import_v413.z.object({
|
|
72055
73302
|
enabled: import_v413.z.boolean(),
|
|
72056
73303
|
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
72057
73304
|
finalize: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
73305
|
+
issueMethod: import_v413.z.union([previewMultiAttachIssueMethodSchema, import_v413.z.undefined()]).optional(),
|
|
72058
73306
|
invoiceTemplateId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
72059
73307
|
netTermsDays: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
72060
73308
|
paymentMethodTypes: import_v413.z.union([import_v413.z.array(previewMultiAttachPaymentMethodTypeSchema), import_v413.z.undefined()]).optional()
|
|
@@ -72269,6 +73517,12 @@ var previewUpdateCustomLineItemSchema = import_v414.z.object({
|
|
|
72269
73517
|
amount: import_v414.z.number(),
|
|
72270
73518
|
description: import_v414.z.string()
|
|
72271
73519
|
});
|
|
73520
|
+
var previewUpdateAddLineSchema = import_v414.z.object({
|
|
73521
|
+
amount: import_v414.z.number(),
|
|
73522
|
+
description: import_v414.z.string(),
|
|
73523
|
+
periodStart: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
73524
|
+
periodEnd: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
73525
|
+
});
|
|
72272
73526
|
var previewUpdateBillingCycleAnchorSchema = import_v414.z.union([
|
|
72273
73527
|
import_v414.z.string(),
|
|
72274
73528
|
import_v414.z.number()
|
|
@@ -72544,7 +73798,8 @@ var previewUpdateRemoveLicenseOutboundSchema = import_v414.z.object({
|
|
|
72544
73798
|
var previewUpdateInvoiceModeOutboundSchema = import_v414.z.object({
|
|
72545
73799
|
enabled: import_v414.z.boolean(),
|
|
72546
73800
|
enable_plan_immediately: import_v414.z.boolean(),
|
|
72547
|
-
finalize: import_v414.z.boolean(),
|
|
73801
|
+
finalize: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
73802
|
+
issue_method: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
72548
73803
|
invoice_template_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
72549
73804
|
net_terms_days: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
72550
73805
|
payment_method_types: import_v414.z.union([import_v414.z.array(import_v414.z.string()), import_v414.z.undefined()]).optional()
|
|
@@ -72560,6 +73815,70 @@ var previewUpdateCustomLineItemOutboundSchema = import_v414.z.object({
|
|
|
72560
73815
|
amount: import_v414.z.number(),
|
|
72561
73816
|
description: import_v414.z.string()
|
|
72562
73817
|
});
|
|
73818
|
+
var previewUpdatePriceRemoveLineOutboundSchema = import_v414.z.object({
|
|
73819
|
+
interval: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
73820
|
+
interval_count: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
73821
|
+
});
|
|
73822
|
+
var previewUpdatePriceUnionOutboundSchema = import_v414.z.union([
|
|
73823
|
+
import_v414.z.boolean(),
|
|
73824
|
+
previewUpdatePriceRemoveLineOutboundSchema
|
|
73825
|
+
]);
|
|
73826
|
+
var previewUpdateRemoveLineFeatureQuantityOutboundSchema = import_v414.z.object({
|
|
73827
|
+
feature_id: import_v414.z.string(),
|
|
73828
|
+
billing_behavior: import_v414.z.string(),
|
|
73829
|
+
interval: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
73830
|
+
interval_count: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
73831
|
+
});
|
|
73832
|
+
var previewUpdatePriceLicenseQuantityOutboundSchema = import_v414.z.object({
|
|
73833
|
+
interval: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
73834
|
+
interval_count: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
73835
|
+
});
|
|
73836
|
+
var previewUpdateLicenseQuantityPriceUnionOutboundSchema = import_v414.z.union([
|
|
73837
|
+
import_v414.z.boolean(),
|
|
73838
|
+
previewUpdatePriceLicenseQuantityOutboundSchema
|
|
73839
|
+
]);
|
|
73840
|
+
var previewUpdateLicenseQuantityFeatureQuantityOutboundSchema = import_v414.z.object({
|
|
73841
|
+
feature_id: import_v414.z.string(),
|
|
73842
|
+
billing_behavior: import_v414.z.string(),
|
|
73843
|
+
interval: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
73844
|
+
interval_count: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
73845
|
+
});
|
|
73846
|
+
var previewUpdateRemoveLineLicenseQuantityOutboundSchema = import_v414.z.object({
|
|
73847
|
+
license_plan_id: import_v414.z.string(),
|
|
73848
|
+
price: import_v414.z.union([
|
|
73849
|
+
import_v414.z.boolean(),
|
|
73850
|
+
previewUpdatePriceLicenseQuantityOutboundSchema,
|
|
73851
|
+
import_v414.z.undefined()
|
|
73852
|
+
]).optional(),
|
|
73853
|
+
feature_quantities: import_v414.z.union([
|
|
73854
|
+
import_v414.z.array(previewUpdateLicenseQuantityFeatureQuantityOutboundSchema),
|
|
73855
|
+
import_v414.z.undefined()
|
|
73856
|
+
]).optional()
|
|
73857
|
+
});
|
|
73858
|
+
var previewUpdateRemoveLineOutboundSchema = import_v414.z.object({
|
|
73859
|
+
plan_id: import_v414.z.string(),
|
|
73860
|
+
entity_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional().nullable(),
|
|
73861
|
+
direction: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
73862
|
+
price: import_v414.z.union([
|
|
73863
|
+
import_v414.z.boolean(),
|
|
73864
|
+
previewUpdatePriceRemoveLineOutboundSchema,
|
|
73865
|
+
import_v414.z.undefined()
|
|
73866
|
+
]).optional(),
|
|
73867
|
+
feature_quantities: import_v414.z.union([
|
|
73868
|
+
import_v414.z.array(previewUpdateRemoveLineFeatureQuantityOutboundSchema),
|
|
73869
|
+
import_v414.z.undefined()
|
|
73870
|
+
]).optional(),
|
|
73871
|
+
license_quantities: import_v414.z.union([
|
|
73872
|
+
import_v414.z.array(previewUpdateRemoveLineLicenseQuantityOutboundSchema),
|
|
73873
|
+
import_v414.z.undefined()
|
|
73874
|
+
]).optional()
|
|
73875
|
+
});
|
|
73876
|
+
var previewUpdateAddLineOutboundSchema = import_v414.z.object({
|
|
73877
|
+
amount: import_v414.z.number(),
|
|
73878
|
+
description: import_v414.z.string(),
|
|
73879
|
+
period_start: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
73880
|
+
period_end: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
73881
|
+
});
|
|
72563
73882
|
var previewUpdateBillingCycleAnchorOutboundSchema = import_v414.z.union([
|
|
72564
73883
|
import_v414.z.string(),
|
|
72565
73884
|
import_v414.z.number()
|
|
@@ -72773,17 +74092,83 @@ var previewUpdateCustomizeSchema = import_v414.z.object({
|
|
|
72773
74092
|
upsertLicenses: import_v414.z.union([import_v414.z.array(previewUpdateUpsertLicenseSchema), import_v414.z.undefined()]).optional(),
|
|
72774
74093
|
removeLicenses: import_v414.z.union([import_v414.z.array(previewUpdateRemoveLicenseSchema), import_v414.z.undefined()]).optional()
|
|
72775
74094
|
});
|
|
74095
|
+
var previewUpdateIssueMethodSchema = closedEnumSchema11;
|
|
72776
74096
|
var previewUpdatePaymentMethodTypeSchema = closedEnumSchema11;
|
|
72777
74097
|
var previewUpdateInvoiceModeSchema = import_v414.z.object({
|
|
72778
74098
|
enabled: import_v414.z.boolean(),
|
|
72779
74099
|
enablePlanImmediately: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
72780
74100
|
finalize: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
74101
|
+
issueMethod: import_v414.z.union([previewUpdateIssueMethodSchema, import_v414.z.undefined()]).optional(),
|
|
72781
74102
|
invoiceTemplateId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
72782
74103
|
netTermsDays: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
72783
74104
|
paymentMethodTypes: import_v414.z.union([import_v414.z.array(previewUpdatePaymentMethodTypeSchema), import_v414.z.undefined()]).optional()
|
|
72784
74105
|
});
|
|
72785
74106
|
var previewUpdateProrationBehaviorSchema = closedEnumSchema11;
|
|
72786
74107
|
var previewUpdateRedirectModeSchema = closedEnumSchema11;
|
|
74108
|
+
var previewUpdateDirectionSchema = closedEnumSchema11;
|
|
74109
|
+
var previewUpdatePriceRemoveLineIntervalSchema = closedEnumSchema11;
|
|
74110
|
+
var previewUpdatePriceRemoveLineSchema = import_v414.z.object({
|
|
74111
|
+
interval: import_v414.z.union([previewUpdatePriceRemoveLineIntervalSchema, import_v414.z.undefined()]).optional(),
|
|
74112
|
+
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74113
|
+
});
|
|
74114
|
+
var previewUpdatePriceUnionSchema = import_v414.z.union([
|
|
74115
|
+
import_v414.z.boolean(),
|
|
74116
|
+
previewUpdatePriceRemoveLineSchema
|
|
74117
|
+
]);
|
|
74118
|
+
var previewUpdateBillingBehaviorSchema = closedEnumSchema11;
|
|
74119
|
+
var previewUpdateFeatureQuantityIntervalSchema = closedEnumSchema11;
|
|
74120
|
+
var previewUpdateRemoveLineFeatureQuantitySchema = import_v414.z.object({
|
|
74121
|
+
featureId: import_v414.z.string(),
|
|
74122
|
+
billingBehavior: previewUpdateBillingBehaviorSchema,
|
|
74123
|
+
interval: import_v414.z.union([previewUpdateFeatureQuantityIntervalSchema, import_v414.z.undefined()]).optional(),
|
|
74124
|
+
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74125
|
+
});
|
|
74126
|
+
var previewUpdatePriceLicenseQuantityIntervalSchema = closedEnumSchema11;
|
|
74127
|
+
var previewUpdatePriceLicenseQuantitySchema = import_v414.z.object({
|
|
74128
|
+
interval: import_v414.z.union([previewUpdatePriceLicenseQuantityIntervalSchema, import_v414.z.undefined()]).optional(),
|
|
74129
|
+
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74130
|
+
});
|
|
74131
|
+
var previewUpdateLicenseQuantityPriceUnionSchema = import_v414.z.union([
|
|
74132
|
+
import_v414.z.boolean(),
|
|
74133
|
+
previewUpdatePriceLicenseQuantitySchema
|
|
74134
|
+
]);
|
|
74135
|
+
var previewUpdateLicenseQuantityBillingBehaviorSchema = closedEnumSchema11;
|
|
74136
|
+
var previewUpdateLicenseQuantityFeatureQuantityIntervalSchema = closedEnumSchema11;
|
|
74137
|
+
var previewUpdateLicenseQuantityFeatureQuantitySchema = import_v414.z.object({
|
|
74138
|
+
featureId: import_v414.z.string(),
|
|
74139
|
+
billingBehavior: previewUpdateLicenseQuantityBillingBehaviorSchema,
|
|
74140
|
+
interval: import_v414.z.union([
|
|
74141
|
+
previewUpdateLicenseQuantityFeatureQuantityIntervalSchema,
|
|
74142
|
+
import_v414.z.undefined()
|
|
74143
|
+
]).optional(),
|
|
74144
|
+
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
74145
|
+
});
|
|
74146
|
+
var previewUpdateRemoveLineLicenseQuantitySchema = import_v414.z.object({
|
|
74147
|
+
licensePlanId: import_v414.z.string(),
|
|
74148
|
+
price: import_v414.z.union([
|
|
74149
|
+
import_v414.z.boolean(),
|
|
74150
|
+
previewUpdatePriceLicenseQuantitySchema,
|
|
74151
|
+
import_v414.z.undefined()
|
|
74152
|
+
]).optional(),
|
|
74153
|
+
featureQuantities: import_v414.z.union([
|
|
74154
|
+
import_v414.z.array(previewUpdateLicenseQuantityFeatureQuantitySchema),
|
|
74155
|
+
import_v414.z.undefined()
|
|
74156
|
+
]).optional()
|
|
74157
|
+
});
|
|
74158
|
+
var previewUpdateRemoveLineSchema = import_v414.z.object({
|
|
74159
|
+
planId: import_v414.z.string(),
|
|
74160
|
+
entityId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional().nullable(),
|
|
74161
|
+
direction: import_v414.z.union([previewUpdateDirectionSchema, import_v414.z.undefined()]).optional(),
|
|
74162
|
+
price: import_v414.z.union([import_v414.z.boolean(), previewUpdatePriceRemoveLineSchema, import_v414.z.undefined()]).optional(),
|
|
74163
|
+
featureQuantities: import_v414.z.union([
|
|
74164
|
+
import_v414.z.array(previewUpdateRemoveLineFeatureQuantitySchema),
|
|
74165
|
+
import_v414.z.undefined()
|
|
74166
|
+
]).optional(),
|
|
74167
|
+
licenseQuantities: import_v414.z.union([
|
|
74168
|
+
import_v414.z.array(previewUpdateRemoveLineLicenseQuantitySchema),
|
|
74169
|
+
import_v414.z.undefined()
|
|
74170
|
+
]).optional()
|
|
74171
|
+
});
|
|
72787
74172
|
var previewUpdateCancelActionSchema = closedEnumSchema11;
|
|
72788
74173
|
var previewUpdateRefundLastPaymentSchema = closedEnumSchema11;
|
|
72789
74174
|
var previewUpdateParamsSchema = import_v414.z.object({
|
|
@@ -72804,6 +74189,8 @@ var previewUpdateParamsSchema = import_v414.z.object({
|
|
|
72804
74189
|
discounts: import_v414.z.union([import_v414.z.array(previewUpdateAttachDiscountSchema), import_v414.z.undefined()]).optional(),
|
|
72805
74190
|
removeDiscounts: import_v414.z.union([import_v414.z.array(previewUpdateRemoveDiscountSchema), import_v414.z.undefined()]).optional(),
|
|
72806
74191
|
customLineItems: import_v414.z.union([import_v414.z.array(previewUpdateCustomLineItemSchema), import_v414.z.undefined()]).optional(),
|
|
74192
|
+
removeLines: import_v414.z.union([import_v414.z.array(previewUpdateRemoveLineSchema), import_v414.z.undefined()]).optional(),
|
|
74193
|
+
addLines: import_v414.z.union([import_v414.z.array(previewUpdateAddLineSchema), import_v414.z.undefined()]).optional(),
|
|
72807
74194
|
cancelAction: import_v414.z.union([previewUpdateCancelActionSchema, import_v414.z.undefined()]).optional(),
|
|
72808
74195
|
billingCycleAnchor: import_v414.z.union([import_v414.z.string(), import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
72809
74196
|
noBillingChanges: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -72919,6 +74306,8 @@ var previewUpdateParamsOutboundSchema = import_v414.z.object({
|
|
|
72919
74306
|
discounts: import_v414.z.union([import_v414.z.array(previewUpdateAttachDiscountOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
72920
74307
|
remove_discounts: import_v414.z.union([import_v414.z.array(previewUpdateRemoveDiscountOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
72921
74308
|
custom_line_items: import_v414.z.union([import_v414.z.array(previewUpdateCustomLineItemOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
74309
|
+
remove_lines: import_v414.z.union([import_v414.z.array(previewUpdateRemoveLineOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
74310
|
+
add_lines: import_v414.z.union([import_v414.z.array(previewUpdateAddLineOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
72922
74311
|
cancel_action: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
72923
74312
|
billing_cycle_anchor: import_v414.z.union([import_v414.z.string(), import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
72924
74313
|
no_billing_changes: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -73034,6 +74423,12 @@ var setupPaymentCustomLineItemSchema = import_v416.z.object({
|
|
|
73034
74423
|
amount: import_v416.z.number(),
|
|
73035
74424
|
description: import_v416.z.string()
|
|
73036
74425
|
});
|
|
74426
|
+
var setupPaymentAddLineSchema = import_v416.z.object({
|
|
74427
|
+
amount: import_v416.z.number(),
|
|
74428
|
+
description: import_v416.z.string(),
|
|
74429
|
+
periodStart: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
74430
|
+
periodEnd: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
74431
|
+
});
|
|
73037
74432
|
var setupPaymentCarryOverBalancesSchema = import_v416.z.object({
|
|
73038
74433
|
enabled: import_v416.z.boolean(),
|
|
73039
74434
|
featureIds: import_v416.z.union([import_v416.z.array(import_v416.z.string()), import_v416.z.undefined()]).optional()
|
|
@@ -73263,6 +74658,70 @@ var setupPaymentCustomLineItemOutboundSchema = import_v416.z.object({
|
|
|
73263
74658
|
amount: import_v416.z.number(),
|
|
73264
74659
|
description: import_v416.z.string()
|
|
73265
74660
|
});
|
|
74661
|
+
var setupPaymentPriceRemoveLineOutboundSchema = import_v416.z.object({
|
|
74662
|
+
interval: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
74663
|
+
interval_count: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
74664
|
+
});
|
|
74665
|
+
var setupPaymentPriceUnionOutboundSchema = import_v416.z.union([
|
|
74666
|
+
import_v416.z.boolean(),
|
|
74667
|
+
setupPaymentPriceRemoveLineOutboundSchema
|
|
74668
|
+
]);
|
|
74669
|
+
var setupPaymentRemoveLineFeatureQuantityOutboundSchema = import_v416.z.object({
|
|
74670
|
+
feature_id: import_v416.z.string(),
|
|
74671
|
+
billing_behavior: import_v416.z.string(),
|
|
74672
|
+
interval: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
74673
|
+
interval_count: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
74674
|
+
});
|
|
74675
|
+
var setupPaymentPriceLicenseQuantityOutboundSchema = import_v416.z.object({
|
|
74676
|
+
interval: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
74677
|
+
interval_count: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
74678
|
+
});
|
|
74679
|
+
var setupPaymentLicenseQuantityPriceUnionOutboundSchema = import_v416.z.union([
|
|
74680
|
+
import_v416.z.boolean(),
|
|
74681
|
+
setupPaymentPriceLicenseQuantityOutboundSchema
|
|
74682
|
+
]);
|
|
74683
|
+
var setupPaymentLicenseQuantityFeatureQuantityOutboundSchema = import_v416.z.object({
|
|
74684
|
+
feature_id: import_v416.z.string(),
|
|
74685
|
+
billing_behavior: import_v416.z.string(),
|
|
74686
|
+
interval: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
74687
|
+
interval_count: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
74688
|
+
});
|
|
74689
|
+
var setupPaymentRemoveLineLicenseQuantityOutboundSchema = import_v416.z.object({
|
|
74690
|
+
license_plan_id: import_v416.z.string(),
|
|
74691
|
+
price: import_v416.z.union([
|
|
74692
|
+
import_v416.z.boolean(),
|
|
74693
|
+
setupPaymentPriceLicenseQuantityOutboundSchema,
|
|
74694
|
+
import_v416.z.undefined()
|
|
74695
|
+
]).optional(),
|
|
74696
|
+
feature_quantities: import_v416.z.union([
|
|
74697
|
+
import_v416.z.array(setupPaymentLicenseQuantityFeatureQuantityOutboundSchema),
|
|
74698
|
+
import_v416.z.undefined()
|
|
74699
|
+
]).optional()
|
|
74700
|
+
});
|
|
74701
|
+
var setupPaymentRemoveLineOutboundSchema = import_v416.z.object({
|
|
74702
|
+
plan_id: import_v416.z.string(),
|
|
74703
|
+
entity_id: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional().nullable(),
|
|
74704
|
+
direction: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
74705
|
+
price: import_v416.z.union([
|
|
74706
|
+
import_v416.z.boolean(),
|
|
74707
|
+
setupPaymentPriceRemoveLineOutboundSchema,
|
|
74708
|
+
import_v416.z.undefined()
|
|
74709
|
+
]).optional(),
|
|
74710
|
+
feature_quantities: import_v416.z.union([
|
|
74711
|
+
import_v416.z.array(setupPaymentRemoveLineFeatureQuantityOutboundSchema),
|
|
74712
|
+
import_v416.z.undefined()
|
|
74713
|
+
]).optional(),
|
|
74714
|
+
license_quantities: import_v416.z.union([
|
|
74715
|
+
import_v416.z.array(setupPaymentRemoveLineLicenseQuantityOutboundSchema),
|
|
74716
|
+
import_v416.z.undefined()
|
|
74717
|
+
]).optional()
|
|
74718
|
+
});
|
|
74719
|
+
var setupPaymentAddLineOutboundSchema = import_v416.z.object({
|
|
74720
|
+
amount: import_v416.z.number(),
|
|
74721
|
+
description: import_v416.z.string(),
|
|
74722
|
+
period_start: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
74723
|
+
period_end: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
74724
|
+
});
|
|
73266
74725
|
var setupPaymentCarryOverBalancesOutboundSchema = import_v416.z.object({
|
|
73267
74726
|
enabled: import_v416.z.boolean(),
|
|
73268
74727
|
feature_ids: import_v416.z.union([import_v416.z.array(import_v416.z.string()), import_v416.z.undefined()]).optional()
|
|
@@ -73502,6 +74961,66 @@ var setupPaymentCustomizeSchema = import_v416.z.object({
|
|
|
73502
74961
|
removeLicenses: import_v416.z.union([import_v416.z.array(setupPaymentRemoveLicenseSchema), import_v416.z.undefined()]).optional()
|
|
73503
74962
|
});
|
|
73504
74963
|
var setupPaymentProrationBehaviorSchema = closedEnumSchema12;
|
|
74964
|
+
var setupPaymentDirectionSchema = closedEnumSchema12;
|
|
74965
|
+
var setupPaymentPriceRemoveLineIntervalSchema = closedEnumSchema12;
|
|
74966
|
+
var setupPaymentPriceRemoveLineSchema = import_v416.z.object({
|
|
74967
|
+
interval: import_v416.z.union([setupPaymentPriceRemoveLineIntervalSchema, import_v416.z.undefined()]).optional(),
|
|
74968
|
+
intervalCount: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
74969
|
+
});
|
|
74970
|
+
var setupPaymentPriceUnionSchema = import_v416.z.union([
|
|
74971
|
+
import_v416.z.boolean(),
|
|
74972
|
+
setupPaymentPriceRemoveLineSchema
|
|
74973
|
+
]);
|
|
74974
|
+
var setupPaymentBillingBehaviorSchema = closedEnumSchema12;
|
|
74975
|
+
var setupPaymentFeatureQuantityIntervalSchema = closedEnumSchema12;
|
|
74976
|
+
var setupPaymentRemoveLineFeatureQuantitySchema = import_v416.z.object({
|
|
74977
|
+
featureId: import_v416.z.string(),
|
|
74978
|
+
billingBehavior: setupPaymentBillingBehaviorSchema,
|
|
74979
|
+
interval: import_v416.z.union([setupPaymentFeatureQuantityIntervalSchema, import_v416.z.undefined()]).optional(),
|
|
74980
|
+
intervalCount: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
74981
|
+
});
|
|
74982
|
+
var setupPaymentPriceLicenseQuantityIntervalSchema = closedEnumSchema12;
|
|
74983
|
+
var setupPaymentPriceLicenseQuantitySchema = import_v416.z.object({
|
|
74984
|
+
interval: import_v416.z.union([setupPaymentPriceLicenseQuantityIntervalSchema, import_v416.z.undefined()]).optional(),
|
|
74985
|
+
intervalCount: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
74986
|
+
});
|
|
74987
|
+
var setupPaymentLicenseQuantityPriceUnionSchema = import_v416.z.union([
|
|
74988
|
+
import_v416.z.boolean(),
|
|
74989
|
+
setupPaymentPriceLicenseQuantitySchema
|
|
74990
|
+
]);
|
|
74991
|
+
var setupPaymentLicenseQuantityBillingBehaviorSchema = closedEnumSchema12;
|
|
74992
|
+
var setupPaymentLicenseQuantityFeatureQuantityIntervalSchema = closedEnumSchema12;
|
|
74993
|
+
var setupPaymentLicenseQuantityFeatureQuantitySchema = import_v416.z.object({
|
|
74994
|
+
featureId: import_v416.z.string(),
|
|
74995
|
+
billingBehavior: setupPaymentLicenseQuantityBillingBehaviorSchema,
|
|
74996
|
+
interval: import_v416.z.union([
|
|
74997
|
+
setupPaymentLicenseQuantityFeatureQuantityIntervalSchema,
|
|
74998
|
+
import_v416.z.undefined()
|
|
74999
|
+
]).optional(),
|
|
75000
|
+
intervalCount: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional()
|
|
75001
|
+
});
|
|
75002
|
+
var setupPaymentRemoveLineLicenseQuantitySchema = import_v416.z.object({
|
|
75003
|
+
licensePlanId: import_v416.z.string(),
|
|
75004
|
+
price: import_v416.z.union([import_v416.z.boolean(), setupPaymentPriceLicenseQuantitySchema, import_v416.z.undefined()]).optional(),
|
|
75005
|
+
featureQuantities: import_v416.z.union([
|
|
75006
|
+
import_v416.z.array(setupPaymentLicenseQuantityFeatureQuantitySchema),
|
|
75007
|
+
import_v416.z.undefined()
|
|
75008
|
+
]).optional()
|
|
75009
|
+
});
|
|
75010
|
+
var setupPaymentRemoveLineSchema = import_v416.z.object({
|
|
75011
|
+
planId: import_v416.z.string(),
|
|
75012
|
+
entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional().nullable(),
|
|
75013
|
+
direction: import_v416.z.union([setupPaymentDirectionSchema, import_v416.z.undefined()]).optional(),
|
|
75014
|
+
price: import_v416.z.union([import_v416.z.boolean(), setupPaymentPriceRemoveLineSchema, import_v416.z.undefined()]).optional(),
|
|
75015
|
+
featureQuantities: import_v416.z.union([
|
|
75016
|
+
import_v416.z.array(setupPaymentRemoveLineFeatureQuantitySchema),
|
|
75017
|
+
import_v416.z.undefined()
|
|
75018
|
+
]).optional(),
|
|
75019
|
+
licenseQuantities: import_v416.z.union([
|
|
75020
|
+
import_v416.z.array(setupPaymentRemoveLineLicenseQuantitySchema),
|
|
75021
|
+
import_v416.z.undefined()
|
|
75022
|
+
]).optional()
|
|
75023
|
+
});
|
|
73505
75024
|
var setupPaymentTaxExemptSchema = closedEnumSchema12;
|
|
73506
75025
|
var setupPaymentBillingDetailsSchema = import_v416.z.object({
|
|
73507
75026
|
address: import_v416.z.union([setupPaymentAddressSchema, import_v416.z.undefined()]).optional(),
|
|
@@ -73525,6 +75044,8 @@ var setupPaymentParamsSchema = import_v416.z.object({
|
|
|
73525
75044
|
endsAt: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
73526
75045
|
checkoutSessionParams: import_v416.z.union([import_v416.z.record(import_v416.z.string(), import_v416.z.any()), import_v416.z.undefined()]).optional(),
|
|
73527
75046
|
customLineItems: import_v416.z.union([import_v416.z.array(setupPaymentCustomLineItemSchema), import_v416.z.undefined()]).optional(),
|
|
75047
|
+
removeLines: import_v416.z.union([import_v416.z.array(setupPaymentRemoveLineSchema), import_v416.z.undefined()]).optional(),
|
|
75048
|
+
addLines: import_v416.z.union([import_v416.z.array(setupPaymentAddLineSchema), import_v416.z.undefined()]).optional(),
|
|
73528
75049
|
processorSubscriptionId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
73529
75050
|
carryOverBalances: import_v416.z.union([setupPaymentCarryOverBalancesSchema, import_v416.z.undefined()]).optional(),
|
|
73530
75051
|
carryOverUsages: import_v416.z.union([setupPaymentCarryOverUsagesSchema, import_v416.z.undefined()]).optional(),
|
|
@@ -73604,6 +75125,8 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
|
|
|
73604
75125
|
ends_at: import_v416.z.union([import_v416.z.number(), import_v416.z.undefined()]).optional(),
|
|
73605
75126
|
checkout_session_params: import_v416.z.union([import_v416.z.record(import_v416.z.string(), import_v416.z.any()), import_v416.z.undefined()]).optional(),
|
|
73606
75127
|
custom_line_items: import_v416.z.union([import_v416.z.array(setupPaymentCustomLineItemOutboundSchema), import_v416.z.undefined()]).optional(),
|
|
75128
|
+
remove_lines: import_v416.z.union([import_v416.z.array(setupPaymentRemoveLineOutboundSchema), import_v416.z.undefined()]).optional(),
|
|
75129
|
+
add_lines: import_v416.z.union([import_v416.z.array(setupPaymentAddLineOutboundSchema), import_v416.z.undefined()]).optional(),
|
|
73607
75130
|
processor_subscription_id: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
73608
75131
|
carry_over_balances: import_v416.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v416.z.undefined()]).optional(),
|
|
73609
75132
|
carry_over_usages: import_v416.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v416.z.undefined()]).optional(),
|
|
@@ -73704,6 +75227,12 @@ var billingUpdateCustomLineItemSchema = import_v417.z.object({
|
|
|
73704
75227
|
amount: import_v417.z.number(),
|
|
73705
75228
|
description: import_v417.z.string()
|
|
73706
75229
|
});
|
|
75230
|
+
var billingUpdateAddLineSchema = import_v417.z.object({
|
|
75231
|
+
amount: import_v417.z.number(),
|
|
75232
|
+
description: import_v417.z.string(),
|
|
75233
|
+
periodStart: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
75234
|
+
periodEnd: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75235
|
+
});
|
|
73707
75236
|
var billingUpdateBillingCycleAnchorSchema = import_v417.z.union([
|
|
73708
75237
|
import_v417.z.string(),
|
|
73709
75238
|
import_v417.z.number()
|
|
@@ -73914,7 +75443,8 @@ var billingUpdateRemoveLicenseOutboundSchema = import_v417.z.object({
|
|
|
73914
75443
|
var billingUpdateInvoiceModeOutboundSchema = import_v417.z.object({
|
|
73915
75444
|
enabled: import_v417.z.boolean(),
|
|
73916
75445
|
enable_plan_immediately: import_v417.z.boolean(),
|
|
73917
|
-
finalize: import_v417.z.boolean(),
|
|
75446
|
+
finalize: import_v417.z.union([import_v417.z.boolean(), import_v417.z.undefined()]).optional(),
|
|
75447
|
+
issue_method: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
73918
75448
|
invoice_template_id: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
73919
75449
|
net_terms_days: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
73920
75450
|
payment_method_types: import_v417.z.union([import_v417.z.array(import_v417.z.string()), import_v417.z.undefined()]).optional()
|
|
@@ -73930,6 +75460,70 @@ var billingUpdateCustomLineItemOutboundSchema = import_v417.z.object({
|
|
|
73930
75460
|
amount: import_v417.z.number(),
|
|
73931
75461
|
description: import_v417.z.string()
|
|
73932
75462
|
});
|
|
75463
|
+
var billingUpdatePriceRemoveLineOutboundSchema = import_v417.z.object({
|
|
75464
|
+
interval: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
75465
|
+
interval_count: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75466
|
+
});
|
|
75467
|
+
var billingUpdatePriceUnionOutboundSchema = import_v417.z.union([
|
|
75468
|
+
import_v417.z.boolean(),
|
|
75469
|
+
billingUpdatePriceRemoveLineOutboundSchema
|
|
75470
|
+
]);
|
|
75471
|
+
var billingUpdateRemoveLineFeatureQuantityOutboundSchema = import_v417.z.object({
|
|
75472
|
+
feature_id: import_v417.z.string(),
|
|
75473
|
+
billing_behavior: import_v417.z.string(),
|
|
75474
|
+
interval: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
75475
|
+
interval_count: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75476
|
+
});
|
|
75477
|
+
var billingUpdatePriceLicenseQuantityOutboundSchema = import_v417.z.object({
|
|
75478
|
+
interval: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
75479
|
+
interval_count: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75480
|
+
});
|
|
75481
|
+
var billingUpdateLicenseQuantityPriceUnionOutboundSchema = import_v417.z.union([
|
|
75482
|
+
import_v417.z.boolean(),
|
|
75483
|
+
billingUpdatePriceLicenseQuantityOutboundSchema
|
|
75484
|
+
]);
|
|
75485
|
+
var billingUpdateLicenseQuantityFeatureQuantityOutboundSchema = import_v417.z.object({
|
|
75486
|
+
feature_id: import_v417.z.string(),
|
|
75487
|
+
billing_behavior: import_v417.z.string(),
|
|
75488
|
+
interval: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
75489
|
+
interval_count: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75490
|
+
});
|
|
75491
|
+
var billingUpdateRemoveLineLicenseQuantityOutboundSchema = import_v417.z.object({
|
|
75492
|
+
license_plan_id: import_v417.z.string(),
|
|
75493
|
+
price: import_v417.z.union([
|
|
75494
|
+
import_v417.z.boolean(),
|
|
75495
|
+
billingUpdatePriceLicenseQuantityOutboundSchema,
|
|
75496
|
+
import_v417.z.undefined()
|
|
75497
|
+
]).optional(),
|
|
75498
|
+
feature_quantities: import_v417.z.union([
|
|
75499
|
+
import_v417.z.array(billingUpdateLicenseQuantityFeatureQuantityOutboundSchema),
|
|
75500
|
+
import_v417.z.undefined()
|
|
75501
|
+
]).optional()
|
|
75502
|
+
});
|
|
75503
|
+
var billingUpdateRemoveLineOutboundSchema = import_v417.z.object({
|
|
75504
|
+
plan_id: import_v417.z.string(),
|
|
75505
|
+
entity_id: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional().nullable(),
|
|
75506
|
+
direction: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
75507
|
+
price: import_v417.z.union([
|
|
75508
|
+
import_v417.z.boolean(),
|
|
75509
|
+
billingUpdatePriceRemoveLineOutboundSchema,
|
|
75510
|
+
import_v417.z.undefined()
|
|
75511
|
+
]).optional(),
|
|
75512
|
+
feature_quantities: import_v417.z.union([
|
|
75513
|
+
import_v417.z.array(billingUpdateRemoveLineFeatureQuantityOutboundSchema),
|
|
75514
|
+
import_v417.z.undefined()
|
|
75515
|
+
]).optional(),
|
|
75516
|
+
license_quantities: import_v417.z.union([
|
|
75517
|
+
import_v417.z.array(billingUpdateRemoveLineLicenseQuantityOutboundSchema),
|
|
75518
|
+
import_v417.z.undefined()
|
|
75519
|
+
]).optional()
|
|
75520
|
+
});
|
|
75521
|
+
var billingUpdateAddLineOutboundSchema = import_v417.z.object({
|
|
75522
|
+
amount: import_v417.z.number(),
|
|
75523
|
+
description: import_v417.z.string(),
|
|
75524
|
+
period_start: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
75525
|
+
period_end: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75526
|
+
});
|
|
73933
75527
|
var billingUpdateBillingCycleAnchorOutboundSchema = import_v417.z.union([
|
|
73934
75528
|
import_v417.z.string(),
|
|
73935
75529
|
import_v417.z.number()
|
|
@@ -74142,17 +75736,83 @@ var billingUpdateCustomizeSchema = import_v417.z.object({
|
|
|
74142
75736
|
upsertLicenses: import_v417.z.union([import_v417.z.array(billingUpdateUpsertLicenseSchema), import_v417.z.undefined()]).optional(),
|
|
74143
75737
|
removeLicenses: import_v417.z.union([import_v417.z.array(billingUpdateRemoveLicenseSchema), import_v417.z.undefined()]).optional()
|
|
74144
75738
|
});
|
|
75739
|
+
var billingUpdateIssueMethodSchema = closedEnumSchema13;
|
|
74145
75740
|
var billingUpdatePaymentMethodTypeSchema = closedEnumSchema13;
|
|
74146
75741
|
var billingUpdateInvoiceModeSchema = import_v417.z.object({
|
|
74147
75742
|
enabled: import_v417.z.boolean(),
|
|
74148
75743
|
enablePlanImmediately: import_v417.z.union([import_v417.z.boolean(), import_v417.z.undefined()]).optional(),
|
|
74149
75744
|
finalize: import_v417.z.union([import_v417.z.boolean(), import_v417.z.undefined()]).optional(),
|
|
75745
|
+
issueMethod: import_v417.z.union([billingUpdateIssueMethodSchema, import_v417.z.undefined()]).optional(),
|
|
74150
75746
|
invoiceTemplateId: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
74151
75747
|
netTermsDays: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
74152
75748
|
paymentMethodTypes: import_v417.z.union([import_v417.z.array(billingUpdatePaymentMethodTypeSchema), import_v417.z.undefined()]).optional()
|
|
74153
75749
|
});
|
|
74154
75750
|
var billingUpdateProrationBehaviorSchema = closedEnumSchema13;
|
|
74155
75751
|
var billingUpdateRedirectModeSchema = closedEnumSchema13;
|
|
75752
|
+
var billingUpdateDirectionSchema = closedEnumSchema13;
|
|
75753
|
+
var billingUpdatePriceRemoveLineIntervalSchema = closedEnumSchema13;
|
|
75754
|
+
var billingUpdatePriceRemoveLineSchema = import_v417.z.object({
|
|
75755
|
+
interval: import_v417.z.union([billingUpdatePriceRemoveLineIntervalSchema, import_v417.z.undefined()]).optional(),
|
|
75756
|
+
intervalCount: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75757
|
+
});
|
|
75758
|
+
var billingUpdatePriceUnionSchema = import_v417.z.union([
|
|
75759
|
+
import_v417.z.boolean(),
|
|
75760
|
+
billingUpdatePriceRemoveLineSchema
|
|
75761
|
+
]);
|
|
75762
|
+
var billingUpdateBillingBehaviorSchema = closedEnumSchema13;
|
|
75763
|
+
var billingUpdateFeatureQuantityIntervalSchema = closedEnumSchema13;
|
|
75764
|
+
var billingUpdateRemoveLineFeatureQuantitySchema = import_v417.z.object({
|
|
75765
|
+
featureId: import_v417.z.string(),
|
|
75766
|
+
billingBehavior: billingUpdateBillingBehaviorSchema,
|
|
75767
|
+
interval: import_v417.z.union([billingUpdateFeatureQuantityIntervalSchema, import_v417.z.undefined()]).optional(),
|
|
75768
|
+
intervalCount: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75769
|
+
});
|
|
75770
|
+
var billingUpdatePriceLicenseQuantityIntervalSchema = closedEnumSchema13;
|
|
75771
|
+
var billingUpdatePriceLicenseQuantitySchema = import_v417.z.object({
|
|
75772
|
+
interval: import_v417.z.union([billingUpdatePriceLicenseQuantityIntervalSchema, import_v417.z.undefined()]).optional(),
|
|
75773
|
+
intervalCount: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75774
|
+
});
|
|
75775
|
+
var billingUpdateLicenseQuantityPriceUnionSchema = import_v417.z.union([
|
|
75776
|
+
import_v417.z.boolean(),
|
|
75777
|
+
billingUpdatePriceLicenseQuantitySchema
|
|
75778
|
+
]);
|
|
75779
|
+
var billingUpdateLicenseQuantityBillingBehaviorSchema = closedEnumSchema13;
|
|
75780
|
+
var billingUpdateLicenseQuantityFeatureQuantityIntervalSchema = closedEnumSchema13;
|
|
75781
|
+
var billingUpdateLicenseQuantityFeatureQuantitySchema = import_v417.z.object({
|
|
75782
|
+
featureId: import_v417.z.string(),
|
|
75783
|
+
billingBehavior: billingUpdateLicenseQuantityBillingBehaviorSchema,
|
|
75784
|
+
interval: import_v417.z.union([
|
|
75785
|
+
billingUpdateLicenseQuantityFeatureQuantityIntervalSchema,
|
|
75786
|
+
import_v417.z.undefined()
|
|
75787
|
+
]).optional(),
|
|
75788
|
+
intervalCount: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional()
|
|
75789
|
+
});
|
|
75790
|
+
var billingUpdateRemoveLineLicenseQuantitySchema = import_v417.z.object({
|
|
75791
|
+
licensePlanId: import_v417.z.string(),
|
|
75792
|
+
price: import_v417.z.union([
|
|
75793
|
+
import_v417.z.boolean(),
|
|
75794
|
+
billingUpdatePriceLicenseQuantitySchema,
|
|
75795
|
+
import_v417.z.undefined()
|
|
75796
|
+
]).optional(),
|
|
75797
|
+
featureQuantities: import_v417.z.union([
|
|
75798
|
+
import_v417.z.array(billingUpdateLicenseQuantityFeatureQuantitySchema),
|
|
75799
|
+
import_v417.z.undefined()
|
|
75800
|
+
]).optional()
|
|
75801
|
+
});
|
|
75802
|
+
var billingUpdateRemoveLineSchema = import_v417.z.object({
|
|
75803
|
+
planId: import_v417.z.string(),
|
|
75804
|
+
entityId: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional().nullable(),
|
|
75805
|
+
direction: import_v417.z.union([billingUpdateDirectionSchema, import_v417.z.undefined()]).optional(),
|
|
75806
|
+
price: import_v417.z.union([import_v417.z.boolean(), billingUpdatePriceRemoveLineSchema, import_v417.z.undefined()]).optional(),
|
|
75807
|
+
featureQuantities: import_v417.z.union([
|
|
75808
|
+
import_v417.z.array(billingUpdateRemoveLineFeatureQuantitySchema),
|
|
75809
|
+
import_v417.z.undefined()
|
|
75810
|
+
]).optional(),
|
|
75811
|
+
licenseQuantities: import_v417.z.union([
|
|
75812
|
+
import_v417.z.array(billingUpdateRemoveLineLicenseQuantitySchema),
|
|
75813
|
+
import_v417.z.undefined()
|
|
75814
|
+
]).optional()
|
|
75815
|
+
});
|
|
74156
75816
|
var billingUpdateCancelActionSchema = closedEnumSchema13;
|
|
74157
75817
|
var billingUpdateRefundLastPaymentSchema = closedEnumSchema13;
|
|
74158
75818
|
var updateSubscriptionParamsSchema = import_v417.z.object({
|
|
@@ -74170,6 +75830,8 @@ var updateSubscriptionParamsSchema = import_v417.z.object({
|
|
|
74170
75830
|
discounts: import_v417.z.union([import_v417.z.array(billingUpdateAttachDiscountSchema), import_v417.z.undefined()]).optional(),
|
|
74171
75831
|
removeDiscounts: import_v417.z.union([import_v417.z.array(billingUpdateRemoveDiscountSchema), import_v417.z.undefined()]).optional(),
|
|
74172
75832
|
customLineItems: import_v417.z.union([import_v417.z.array(billingUpdateCustomLineItemSchema), import_v417.z.undefined()]).optional(),
|
|
75833
|
+
removeLines: import_v417.z.union([import_v417.z.array(billingUpdateRemoveLineSchema), import_v417.z.undefined()]).optional(),
|
|
75834
|
+
addLines: import_v417.z.union([import_v417.z.array(billingUpdateAddLineSchema), import_v417.z.undefined()]).optional(),
|
|
74173
75835
|
cancelAction: import_v417.z.union([billingUpdateCancelActionSchema, import_v417.z.undefined()]).optional(),
|
|
74174
75836
|
billingCycleAnchor: import_v417.z.union([import_v417.z.string(), import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
74175
75837
|
noBillingChanges: import_v417.z.union([import_v417.z.boolean(), import_v417.z.undefined()]).optional(),
|
|
@@ -74254,6 +75916,8 @@ var updateSubscriptionParamsOutboundSchema = import_v417.z.object({
|
|
|
74254
75916
|
discounts: import_v417.z.union([import_v417.z.array(billingUpdateAttachDiscountOutboundSchema), import_v417.z.undefined()]).optional(),
|
|
74255
75917
|
remove_discounts: import_v417.z.union([import_v417.z.array(billingUpdateRemoveDiscountOutboundSchema), import_v417.z.undefined()]).optional(),
|
|
74256
75918
|
custom_line_items: import_v417.z.union([import_v417.z.array(billingUpdateCustomLineItemOutboundSchema), import_v417.z.undefined()]).optional(),
|
|
75919
|
+
remove_lines: import_v417.z.union([import_v417.z.array(billingUpdateRemoveLineOutboundSchema), import_v417.z.undefined()]).optional(),
|
|
75920
|
+
add_lines: import_v417.z.union([import_v417.z.array(billingUpdateAddLineOutboundSchema), import_v417.z.undefined()]).optional(),
|
|
74257
75921
|
cancel_action: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
74258
75922
|
billing_cycle_anchor: import_v417.z.union([import_v417.z.string(), import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
74259
75923
|
no_billing_changes: import_v417.z.union([import_v417.z.boolean(), import_v417.z.undefined()]).optional(),
|