@flexprice/sdk 2.1.49-dev.28 → 2.1.49-dev.29
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/docs/sdk/models/create-customer-request.md +1 -0
- package/docs/sdk/models/create-subscription-request.md +1 -0
- package/docs/sdk/models/customer-response.md +1 -0
- package/docs/sdk/models/customer.md +1 -0
- package/docs/sdk/models/settings-override.md +15 -0
- package/docs/sdk/models/subscription-config-override.md +16 -0
- package/docs/sdk/models/subscription-response-v2.md +1 -0
- package/docs/sdk/models/subscription-response.md +1 -0
- package/docs/sdk/models/update-customer-request.md +1 -0
- package/docs/sdk/models/update-subscription-request.md +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/sdk/models/create-customer-request.d.ts +3 -0
- package/esm/sdk/models/create-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/create-customer-request.js +2 -0
- package/esm/sdk/models/create-customer-request.js.map +1 -1
- package/esm/sdk/models/create-subscription-request.d.ts +3 -0
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +2 -0
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- package/esm/sdk/models/customer-response.d.ts +2 -0
- package/esm/sdk/models/customer-response.d.ts.map +1 -1
- package/esm/sdk/models/customer-response.js +2 -0
- package/esm/sdk/models/customer-response.js.map +1 -1
- package/esm/sdk/models/customer.d.ts +2 -0
- package/esm/sdk/models/customer.d.ts.map +1 -1
- package/esm/sdk/models/customer.js +2 -0
- package/esm/sdk/models/customer.js.map +1 -1
- package/esm/sdk/models/index.d.ts +2 -0
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +2 -0
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/settings-override.d.ts +18 -0
- package/esm/sdk/models/settings-override.d.ts.map +1 -0
- package/esm/sdk/models/settings-override.js +31 -0
- package/esm/sdk/models/settings-override.js.map +1 -0
- package/esm/sdk/models/subscription-config-override.d.ts +19 -0
- package/esm/sdk/models/subscription-config-override.d.ts.map +1 -0
- package/esm/sdk/models/subscription-config-override.js +34 -0
- package/esm/sdk/models/subscription-config-override.js.map +1 -0
- package/esm/sdk/models/subscription-response-v2.d.ts +2 -0
- package/esm/sdk/models/subscription-response-v2.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response-v2.js +2 -0
- package/esm/sdk/models/subscription-response-v2.js.map +1 -1
- package/esm/sdk/models/subscription-response.d.ts +2 -0
- package/esm/sdk/models/subscription-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response.js +2 -0
- package/esm/sdk/models/subscription-response.js.map +1 -1
- package/esm/sdk/models/update-customer-request.d.ts +3 -0
- package/esm/sdk/models/update-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/update-customer-request.js +2 -0
- package/esm/sdk/models/update-customer-request.js.map +1 -1
- package/esm/sdk/models/update-subscription-request.d.ts +3 -0
- package/esm/sdk/models/update-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/update-subscription-request.js +2 -0
- package/esm/sdk/models/update-subscription-request.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/create-customer-request.ts +8 -0
- package/src/sdk/models/create-subscription-request.ts +8 -0
- package/src/sdk/models/customer-response.ts +6 -0
- package/src/sdk/models/customer.ts +6 -0
- package/src/sdk/models/index.ts +2 -0
- package/src/sdk/models/settings-override.ts +73 -0
- package/src/sdk/models/subscription-config-override.ts +71 -0
- package/src/sdk/models/subscription-response-v2.ts +6 -0
- package/src/sdk/models/subscription-response.ts +6 -0
- package/src/sdk/models/update-customer-request.ts +8 -0
- package/src/sdk/models/update-subscription-request.ts +8 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-customer-request.js","sourceRoot":"","sources":["../../../src/sdk/models/update-customer-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAGL,oDAAoD,GACrD,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAGL,oCAAoC,GACrC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAgB,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"update-customer-request.js","sourceRoot":"","sources":["../../../src/sdk/models/update-customer-request.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
import { ProrationBehavior } from "./proration-behavior.js";
|
|
3
|
+
import { SettingsOverride, SettingsOverride$Outbound } from "./settings-override.js";
|
|
3
4
|
import { SubscriptionStatus } from "./subscription-status.js";
|
|
4
5
|
export type UpdateSubscriptionRequest = {
|
|
5
6
|
cancelAt?: Date | undefined;
|
|
@@ -12,6 +13,7 @@ export type UpdateSubscriptionRequest = {
|
|
|
12
13
|
*/
|
|
13
14
|
parentSubscriptionId?: string | undefined;
|
|
14
15
|
prorationBehavior?: ProrationBehavior | undefined;
|
|
16
|
+
settings?: SettingsOverride | undefined;
|
|
15
17
|
status?: SubscriptionStatus | undefined;
|
|
16
18
|
};
|
|
17
19
|
/** @internal */
|
|
@@ -20,6 +22,7 @@ export type UpdateSubscriptionRequest$Outbound = {
|
|
|
20
22
|
cancel_at_period_end?: boolean | undefined;
|
|
21
23
|
parent_subscription_id?: string | undefined;
|
|
22
24
|
proration_behavior?: string | undefined;
|
|
25
|
+
settings?: SettingsOverride$Outbound | undefined;
|
|
23
26
|
status?: string | undefined;
|
|
24
27
|
};
|
|
25
28
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription-request.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/update-subscription-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClD,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C,sBAAsB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,kCAAkC,EAClC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"update-subscription-request.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/update-subscription-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAE1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C,sBAAsB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,kCAAkC,EAClC,yBAAyB,CAkB1B,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as z from "zod/v4-mini";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { ProrationBehavior$outboundSchema, } from "./proration-behavior.js";
|
|
7
|
+
import { SettingsOverride$outboundSchema, } from "./settings-override.js";
|
|
7
8
|
import { SubscriptionStatus$outboundSchema, } from "./subscription-status.js";
|
|
8
9
|
/** @internal */
|
|
9
10
|
export const UpdateSubscriptionRequest$outboundSchema = z.pipe(z.object({
|
|
@@ -11,6 +12,7 @@ export const UpdateSubscriptionRequest$outboundSchema = z.pipe(z.object({
|
|
|
11
12
|
cancelAtPeriodEnd: z.optional(z.boolean()),
|
|
12
13
|
parentSubscriptionId: z.optional(z.string()),
|
|
13
14
|
prorationBehavior: z.optional(ProrationBehavior$outboundSchema),
|
|
15
|
+
settings: z.optional(SettingsOverride$outboundSchema),
|
|
14
16
|
status: z.optional(SubscriptionStatus$outboundSchema),
|
|
15
17
|
}), z.transform((v) => {
|
|
16
18
|
return remap$(v, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription-request.js","sourceRoot":"","sources":["../../../src/sdk/models/update-subscription-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAEL,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"update-subscription-request.js","sourceRoot":"","sources":["../../../src/sdk/models/update-subscription-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAEL,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AA2BlC,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAGjD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IACzE,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC1C,oBAAoB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5C,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAC/D,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC;CACtD,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,iBAAiB,EAAE,sBAAsB;QACzC,oBAAoB,EAAE,wBAAwB;QAC9C,iBAAiB,EAAE,oBAAoB;KACxC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD,EAC5C;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AAAA,CACH"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flexprice/sdk",
|
|
3
|
-
"version": "2.1.49-dev.
|
|
3
|
+
"version": "2.1.49-dev.29",
|
|
4
4
|
"author": "FlexPrice",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"zod": "^3.25.65 || ^4.0.0"
|
|
51
51
|
},
|
|
52
|
-
"flexpriceCommit": "
|
|
52
|
+
"flexpriceCommit": "1821b6101a565018c3f3ae7baa3f3c4b5fe52693"
|
|
53
53
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -77,8 +77,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
77
77
|
export const SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "1.0",
|
|
80
|
-
sdkVersion: "2.1.49-dev.
|
|
80
|
+
sdkVersion: "2.1.49-dev.29",
|
|
81
81
|
genVersion: "2.948.4",
|
|
82
82
|
userAgent:
|
|
83
|
-
"speakeasy-sdk/typescript 2.1.49-dev.
|
|
83
|
+
"speakeasy-sdk/typescript 2.1.49-dev.29 2.948.4 1.0 @flexprice/sdk",
|
|
84
84
|
} as const;
|
|
@@ -14,6 +14,11 @@ import {
|
|
|
14
14
|
CustomerContactPerson$Outbound,
|
|
15
15
|
CustomerContactPerson$outboundSchema,
|
|
16
16
|
} from "./customer-contact-person.js";
|
|
17
|
+
import {
|
|
18
|
+
SettingsOverride,
|
|
19
|
+
SettingsOverride$Outbound,
|
|
20
|
+
SettingsOverride$outboundSchema,
|
|
21
|
+
} from "./settings-override.js";
|
|
17
22
|
import {
|
|
18
23
|
TaxRateOverride,
|
|
19
24
|
TaxRateOverride$Outbound,
|
|
@@ -94,6 +99,7 @@ export type CreateCustomerRequest = {
|
|
|
94
99
|
* onboarding_workflow_name is given if a custom onboarding workflow is to be triggered for this customer
|
|
95
100
|
*/
|
|
96
101
|
onboardingWorkflowName?: string | undefined;
|
|
102
|
+
settings?: SettingsOverride | undefined;
|
|
97
103
|
/**
|
|
98
104
|
* skip_onboarding_workflow when true, prevents the customer onboarding workflow from being triggered
|
|
99
105
|
*
|
|
@@ -136,6 +142,7 @@ export type CreateCustomerRequest$Outbound = {
|
|
|
136
142
|
metadata?: { [k: string]: string } | undefined;
|
|
137
143
|
name: string;
|
|
138
144
|
onboarding_workflow_name?: string | undefined;
|
|
145
|
+
settings?: SettingsOverride$Outbound | undefined;
|
|
139
146
|
skip_onboarding_workflow?: boolean | undefined;
|
|
140
147
|
tax_rate_overrides?: Array<TaxRateOverride$Outbound> | undefined;
|
|
141
148
|
tax_treatment?: string | undefined;
|
|
@@ -166,6 +173,7 @@ export const CreateCustomerRequest$outboundSchema: z.ZodMiniType<
|
|
|
166
173
|
metadata: z.optional(z.record(z.string(), z.string())),
|
|
167
174
|
name: z.string(),
|
|
168
175
|
onboardingWorkflowName: z.optional(z.string()),
|
|
176
|
+
settings: z.optional(SettingsOverride$outboundSchema),
|
|
169
177
|
skipOnboardingWorkflow: z.optional(z.boolean()),
|
|
170
178
|
taxRateOverrides: z.optional(z.array(TaxRateOverride$outboundSchema)),
|
|
171
179
|
taxTreatment: z.optional(TaxTreatment$outboundSchema),
|
|
@@ -76,6 +76,11 @@ import {
|
|
|
76
76
|
ProrationBehavior,
|
|
77
77
|
ProrationBehavior$outboundSchema,
|
|
78
78
|
} from "./proration-behavior.js";
|
|
79
|
+
import {
|
|
80
|
+
SettingsOverride,
|
|
81
|
+
SettingsOverride$Outbound,
|
|
82
|
+
SettingsOverride$outboundSchema,
|
|
83
|
+
} from "./settings-override.js";
|
|
79
84
|
import {
|
|
80
85
|
SubscriptionCouponInput,
|
|
81
86
|
SubscriptionCouponInput$Outbound,
|
|
@@ -202,6 +207,7 @@ export type CreateSubscriptionRequest = {
|
|
|
202
207
|
phases?: Array<SubscriptionPhaseCreateRequest> | undefined;
|
|
203
208
|
planId: string;
|
|
204
209
|
prorationBehavior?: ProrationBehavior | undefined;
|
|
210
|
+
settings?: SettingsOverride | undefined;
|
|
205
211
|
startDate?: Date | undefined;
|
|
206
212
|
/**
|
|
207
213
|
* SubscriptionCoupons is the preferred way to attach coupons at creation.
|
|
@@ -267,6 +273,7 @@ export type CreateSubscriptionRequest$Outbound = {
|
|
|
267
273
|
phases?: Array<SubscriptionPhaseCreateRequest$Outbound> | undefined;
|
|
268
274
|
plan_id: string;
|
|
269
275
|
proration_behavior?: string | undefined;
|
|
276
|
+
settings?: SettingsOverride$Outbound | undefined;
|
|
270
277
|
start_date?: string | undefined;
|
|
271
278
|
subscription_coupons?: Array<SubscriptionCouponInput$Outbound> | undefined;
|
|
272
279
|
subscription_entitlement_grants?:
|
|
@@ -330,6 +337,7 @@ export const CreateSubscriptionRequest$outboundSchema: z.ZodMiniType<
|
|
|
330
337
|
phases: z.optional(z.array(SubscriptionPhaseCreateRequest$outboundSchema)),
|
|
331
338
|
planId: z.string(),
|
|
332
339
|
prorationBehavior: z.optional(ProrationBehavior$outboundSchema),
|
|
340
|
+
settings: z.optional(SettingsOverride$outboundSchema),
|
|
333
341
|
startDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
334
342
|
subscriptionCoupons: z.optional(
|
|
335
343
|
z.array(SubscriptionCouponInput$outboundSchema),
|
|
@@ -16,6 +16,10 @@ import {
|
|
|
16
16
|
EntityIntegrationMappingResponse$inboundSchema,
|
|
17
17
|
} from "./entity-integration-mapping-response.js";
|
|
18
18
|
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
19
|
+
import {
|
|
20
|
+
SettingsOverride,
|
|
21
|
+
SettingsOverride$inboundSchema,
|
|
22
|
+
} from "./settings-override.js";
|
|
19
23
|
import { Status, Status$inboundSchema } from "./status.js";
|
|
20
24
|
import { TaxTreatment, TaxTreatment$inboundSchema } from "./tax-treatment.js";
|
|
21
25
|
|
|
@@ -87,6 +91,7 @@ export type CustomerResponse = {
|
|
|
87
91
|
* Name is the name of the customer
|
|
88
92
|
*/
|
|
89
93
|
name?: string | undefined;
|
|
94
|
+
settings?: SettingsOverride | undefined;
|
|
90
95
|
status?: Status | undefined;
|
|
91
96
|
taxTreatment?: TaxTreatment | undefined;
|
|
92
97
|
tenantId?: string | undefined;
|
|
@@ -130,6 +135,7 @@ export const CustomerResponse$inboundSchema: z.ZodMiniType<
|
|
|
130
135
|
),
|
|
131
136
|
metadata: types.optional(z.record(z.string(), types.string())),
|
|
132
137
|
name: types.optional(types.string()),
|
|
138
|
+
settings: types.optional(SettingsOverride$inboundSchema),
|
|
133
139
|
status: types.optional(Status$inboundSchema),
|
|
134
140
|
tax_treatment: types.optional(TaxTreatment$inboundSchema),
|
|
135
141
|
tenant_id: types.optional(types.string()),
|
|
@@ -12,6 +12,10 @@ import {
|
|
|
12
12
|
CustomerContactPerson$inboundSchema,
|
|
13
13
|
} from "./customer-contact-person.js";
|
|
14
14
|
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
15
|
+
import {
|
|
16
|
+
SettingsOverride,
|
|
17
|
+
SettingsOverride$inboundSchema,
|
|
18
|
+
} from "./settings-override.js";
|
|
15
19
|
import { Status, Status$inboundSchema } from "./status.js";
|
|
16
20
|
import { TaxTreatment, TaxTreatment$inboundSchema } from "./tax-treatment.js";
|
|
17
21
|
|
|
@@ -79,6 +83,7 @@ export type Customer = {
|
|
|
79
83
|
* Name is the name of the customer
|
|
80
84
|
*/
|
|
81
85
|
name?: string | undefined;
|
|
86
|
+
settings?: SettingsOverride | undefined;
|
|
82
87
|
status?: Status | undefined;
|
|
83
88
|
taxTreatment?: TaxTreatment | undefined;
|
|
84
89
|
tenantId?: string | undefined;
|
|
@@ -116,6 +121,7 @@ export const Customer$inboundSchema: z.ZodMiniType<Customer, unknown> = z.pipe(
|
|
|
116
121
|
id: types.optional(types.string()),
|
|
117
122
|
metadata: types.optional(z.record(z.string(), types.string())),
|
|
118
123
|
name: types.optional(types.string()),
|
|
124
|
+
settings: types.optional(SettingsOverride$inboundSchema),
|
|
119
125
|
status: types.optional(Status$inboundSchema),
|
|
120
126
|
tax_treatment: types.optional(TaxTreatment$inboundSchema),
|
|
121
127
|
tenant_id: types.optional(types.string()),
|
package/src/sdk/models/index.ts
CHANGED
|
@@ -678,6 +678,7 @@ export * from "./self-billing-portal-response.js";
|
|
|
678
678
|
export * from "./self-billing-status-response.js";
|
|
679
679
|
export * from "./self-billing-summary-response.js";
|
|
680
680
|
export * from "./service-period-custom-fields.js";
|
|
681
|
+
export * from "./settings-override.js";
|
|
681
682
|
export * from "./shape.js";
|
|
682
683
|
export * from "./sort-condition.js";
|
|
683
684
|
export * from "./sort-direction.js";
|
|
@@ -706,6 +707,7 @@ export * from "./subscription-change-request.js";
|
|
|
706
707
|
export * from "./subscription-change-type.js";
|
|
707
708
|
export * from "./subscription-change-v2-request.js";
|
|
708
709
|
export * from "./subscription-change-v2-response.js";
|
|
710
|
+
export * from "./subscription-config-override.js";
|
|
709
711
|
export * from "./subscription-coupon-input.js";
|
|
710
712
|
export * from "./subscription-entitlement-grants-response.js";
|
|
711
713
|
export * from "./subscription-entitlements-response.js";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
11
|
+
import {
|
|
12
|
+
SubscriptionConfigOverride,
|
|
13
|
+
SubscriptionConfigOverride$inboundSchema,
|
|
14
|
+
SubscriptionConfigOverride$Outbound,
|
|
15
|
+
SubscriptionConfigOverride$outboundSchema,
|
|
16
|
+
} from "./subscription-config-override.js";
|
|
17
|
+
|
|
18
|
+
export type SettingsOverride = {
|
|
19
|
+
subscriptionConfig?: SubscriptionConfigOverride | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const SettingsOverride$inboundSchema: z.ZodMiniType<
|
|
24
|
+
SettingsOverride,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.pipe(
|
|
27
|
+
z.object({
|
|
28
|
+
subscription_config: types.optional(
|
|
29
|
+
SubscriptionConfigOverride$inboundSchema,
|
|
30
|
+
),
|
|
31
|
+
}),
|
|
32
|
+
z.transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"subscription_config": "subscriptionConfig",
|
|
35
|
+
});
|
|
36
|
+
}),
|
|
37
|
+
);
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type SettingsOverride$Outbound = {
|
|
40
|
+
subscription_config?: SubscriptionConfigOverride$Outbound | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const SettingsOverride$outboundSchema: z.ZodMiniType<
|
|
45
|
+
SettingsOverride$Outbound,
|
|
46
|
+
SettingsOverride
|
|
47
|
+
> = z.pipe(
|
|
48
|
+
z.object({
|
|
49
|
+
subscriptionConfig: z.optional(SubscriptionConfigOverride$outboundSchema),
|
|
50
|
+
}),
|
|
51
|
+
z.transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
subscriptionConfig: "subscription_config",
|
|
54
|
+
});
|
|
55
|
+
}),
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
export function settingsOverrideToJSON(
|
|
59
|
+
settingsOverride: SettingsOverride,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
SettingsOverride$outboundSchema.parse(settingsOverride),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function settingsOverrideFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<SettingsOverride, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => SettingsOverride$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'SettingsOverride' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
11
|
+
|
|
12
|
+
export type SubscriptionConfigOverride = {
|
|
13
|
+
autoCancellationEnabled?: boolean | undefined;
|
|
14
|
+
gracePeriodDays?: number | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const SubscriptionConfigOverride$inboundSchema: z.ZodMiniType<
|
|
19
|
+
SubscriptionConfigOverride,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.pipe(
|
|
22
|
+
z.object({
|
|
23
|
+
auto_cancellation_enabled: types.optional(types.boolean()),
|
|
24
|
+
grace_period_days: types.optional(types.number()),
|
|
25
|
+
}),
|
|
26
|
+
z.transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"auto_cancellation_enabled": "autoCancellationEnabled",
|
|
29
|
+
"grace_period_days": "gracePeriodDays",
|
|
30
|
+
});
|
|
31
|
+
}),
|
|
32
|
+
);
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type SubscriptionConfigOverride$Outbound = {
|
|
35
|
+
auto_cancellation_enabled?: boolean | undefined;
|
|
36
|
+
grace_period_days?: number | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const SubscriptionConfigOverride$outboundSchema: z.ZodMiniType<
|
|
41
|
+
SubscriptionConfigOverride$Outbound,
|
|
42
|
+
SubscriptionConfigOverride
|
|
43
|
+
> = z.pipe(
|
|
44
|
+
z.object({
|
|
45
|
+
autoCancellationEnabled: z.optional(z.boolean()),
|
|
46
|
+
gracePeriodDays: z.optional(z.int()),
|
|
47
|
+
}),
|
|
48
|
+
z.transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
autoCancellationEnabled: "auto_cancellation_enabled",
|
|
51
|
+
gracePeriodDays: "grace_period_days",
|
|
52
|
+
});
|
|
53
|
+
}),
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
export function subscriptionConfigOverrideToJSON(
|
|
57
|
+
subscriptionConfigOverride: SubscriptionConfigOverride,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
SubscriptionConfigOverride$outboundSchema.parse(subscriptionConfigOverride),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
export function subscriptionConfigOverrideFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<SubscriptionConfigOverride, SDKValidationError> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) => SubscriptionConfigOverride$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
+
`Failed to parse 'SubscriptionConfigOverride' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -44,6 +44,10 @@ import {
|
|
|
44
44
|
ProrationBehavior$inboundSchema,
|
|
45
45
|
} from "./proration-behavior.js";
|
|
46
46
|
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
47
|
+
import {
|
|
48
|
+
SettingsOverride,
|
|
49
|
+
SettingsOverride$inboundSchema,
|
|
50
|
+
} from "./settings-override.js";
|
|
47
51
|
import { Status, Status$inboundSchema } from "./status.js";
|
|
48
52
|
import {
|
|
49
53
|
SubscriptionLineItemResponse,
|
|
@@ -231,6 +235,7 @@ export type SubscriptionResponseV2 = {
|
|
|
231
235
|
*/
|
|
232
236
|
planPricesOutOfSync?: boolean | undefined;
|
|
233
237
|
prorationBehavior?: ProrationBehavior | undefined;
|
|
238
|
+
settings?: SettingsOverride | undefined;
|
|
234
239
|
/**
|
|
235
240
|
* StartDate is the start date of the subscription
|
|
236
241
|
*/
|
|
@@ -320,6 +325,7 @@ export const SubscriptionResponseV2$inboundSchema: z.ZodMiniType<
|
|
|
320
325
|
plan_id: types.optional(types.string()),
|
|
321
326
|
plan_prices_out_of_sync: types.optional(types.boolean()),
|
|
322
327
|
proration_behavior: types.optional(ProrationBehavior$inboundSchema),
|
|
328
|
+
settings: types.optional(SettingsOverride$inboundSchema),
|
|
323
329
|
start_date: types.optional(types.date()),
|
|
324
330
|
status: types.optional(Status$inboundSchema),
|
|
325
331
|
subscription_status: types.optional(SubscriptionStatus$inboundSchema),
|
|
@@ -56,6 +56,10 @@ import {
|
|
|
56
56
|
ProrationBehavior$inboundSchema,
|
|
57
57
|
} from "./proration-behavior.js";
|
|
58
58
|
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
59
|
+
import {
|
|
60
|
+
SettingsOverride,
|
|
61
|
+
SettingsOverride$inboundSchema,
|
|
62
|
+
} from "./settings-override.js";
|
|
59
63
|
import { Status, Status$inboundSchema } from "./status.js";
|
|
60
64
|
import {
|
|
61
65
|
SubscriptionPhaseResponse,
|
|
@@ -236,6 +240,7 @@ export type SubscriptionResponse = {
|
|
|
236
240
|
*/
|
|
237
241
|
planId?: string | undefined;
|
|
238
242
|
prorationBehavior?: ProrationBehavior | undefined;
|
|
243
|
+
settings?: SettingsOverride | undefined;
|
|
239
244
|
/**
|
|
240
245
|
* StartDate is the start date of the subscription
|
|
241
246
|
*/
|
|
@@ -327,6 +332,7 @@ export const SubscriptionResponse$inboundSchema: z.ZodMiniType<
|
|
|
327
332
|
plan: types.optional(PlanResponse$inboundSchema),
|
|
328
333
|
plan_id: types.optional(types.string()),
|
|
329
334
|
proration_behavior: types.optional(ProrationBehavior$inboundSchema),
|
|
335
|
+
settings: types.optional(SettingsOverride$inboundSchema),
|
|
330
336
|
start_date: types.optional(types.date()),
|
|
331
337
|
status: types.optional(Status$inboundSchema),
|
|
332
338
|
subscription_status: types.optional(SubscriptionStatus$inboundSchema),
|
|
@@ -14,6 +14,11 @@ import {
|
|
|
14
14
|
CustomerContactPerson$Outbound,
|
|
15
15
|
CustomerContactPerson$outboundSchema,
|
|
16
16
|
} from "./customer-contact-person.js";
|
|
17
|
+
import {
|
|
18
|
+
SettingsOverride,
|
|
19
|
+
SettingsOverride$Outbound,
|
|
20
|
+
SettingsOverride$outboundSchema,
|
|
21
|
+
} from "./settings-override.js";
|
|
17
22
|
import { TaxTreatment, TaxTreatment$outboundSchema } from "./tax-treatment.js";
|
|
18
23
|
|
|
19
24
|
/**
|
|
@@ -82,6 +87,7 @@ export type UpdateCustomerRequest = {
|
|
|
82
87
|
* name is the updated name or company name for the customer
|
|
83
88
|
*/
|
|
84
89
|
name?: string | undefined;
|
|
90
|
+
settings?: SettingsOverride | undefined;
|
|
85
91
|
taxTreatment?: TaxTreatment | undefined;
|
|
86
92
|
/**
|
|
87
93
|
* timezone is the updated IANA timezone name for the customer (e.g. "Asia/Kolkata", "America/New_York")
|
|
@@ -108,6 +114,7 @@ export type UpdateCustomerRequest$Outbound = {
|
|
|
108
114
|
| undefined;
|
|
109
115
|
metadata?: { [k: string]: string } | undefined;
|
|
110
116
|
name?: string | undefined;
|
|
117
|
+
settings?: SettingsOverride$Outbound | undefined;
|
|
111
118
|
tax_treatment?: string | undefined;
|
|
112
119
|
timezone?: string | undefined;
|
|
113
120
|
};
|
|
@@ -135,6 +142,7 @@ export const UpdateCustomerRequest$outboundSchema: z.ZodMiniType<
|
|
|
135
142
|
),
|
|
136
143
|
metadata: z.optional(z.record(z.string(), z.string())),
|
|
137
144
|
name: z.optional(z.string()),
|
|
145
|
+
settings: z.optional(SettingsOverride$outboundSchema),
|
|
138
146
|
taxTreatment: z.optional(TaxTreatment$outboundSchema),
|
|
139
147
|
timezone: z.optional(z.string()),
|
|
140
148
|
}),
|
|
@@ -8,6 +8,11 @@ import {
|
|
|
8
8
|
ProrationBehavior,
|
|
9
9
|
ProrationBehavior$outboundSchema,
|
|
10
10
|
} from "./proration-behavior.js";
|
|
11
|
+
import {
|
|
12
|
+
SettingsOverride,
|
|
13
|
+
SettingsOverride$Outbound,
|
|
14
|
+
SettingsOverride$outboundSchema,
|
|
15
|
+
} from "./settings-override.js";
|
|
11
16
|
import {
|
|
12
17
|
SubscriptionStatus,
|
|
13
18
|
SubscriptionStatus$outboundSchema,
|
|
@@ -24,6 +29,7 @@ export type UpdateSubscriptionRequest = {
|
|
|
24
29
|
*/
|
|
25
30
|
parentSubscriptionId?: string | undefined;
|
|
26
31
|
prorationBehavior?: ProrationBehavior | undefined;
|
|
32
|
+
settings?: SettingsOverride | undefined;
|
|
27
33
|
status?: SubscriptionStatus | undefined;
|
|
28
34
|
};
|
|
29
35
|
|
|
@@ -33,6 +39,7 @@ export type UpdateSubscriptionRequest$Outbound = {
|
|
|
33
39
|
cancel_at_period_end?: boolean | undefined;
|
|
34
40
|
parent_subscription_id?: string | undefined;
|
|
35
41
|
proration_behavior?: string | undefined;
|
|
42
|
+
settings?: SettingsOverride$Outbound | undefined;
|
|
36
43
|
status?: string | undefined;
|
|
37
44
|
};
|
|
38
45
|
|
|
@@ -46,6 +53,7 @@ export const UpdateSubscriptionRequest$outboundSchema: z.ZodMiniType<
|
|
|
46
53
|
cancelAtPeriodEnd: z.optional(z.boolean()),
|
|
47
54
|
parentSubscriptionId: z.optional(z.string()),
|
|
48
55
|
prorationBehavior: z.optional(ProrationBehavior$outboundSchema),
|
|
56
|
+
settings: z.optional(SettingsOverride$outboundSchema),
|
|
49
57
|
status: z.optional(SubscriptionStatus$outboundSchema),
|
|
50
58
|
}),
|
|
51
59
|
z.transform((v) => {
|