Skip to content

Commit 2c10c47

Browse files
feat(billing): deprecate tax code setting on billing profile (#4504)
1 parent 1cc1c6d commit 2c10c47

19 files changed

Lines changed: 3343 additions & 2956 deletions

File tree

api/api.gen.go

Lines changed: 1279 additions & 1265 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/go/client.gen.go

Lines changed: 1110 additions & 1096 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/javascript/src/client/schemas.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3395,7 +3395,14 @@ export interface components {
33953395
* @default true
33963396
*/
33973397
progressiveBilling?: boolean
3398-
/** @description Default tax configuration to apply to the invoices. */
3398+
/**
3399+
* @description Default tax configuration to apply to the invoices.
3400+
*
3401+
* Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is
3402+
* deprecated and can no longer be added or changed: the organization default tax code is
3403+
* used instead. Existing tax-code values may still be removed, and `behavior` remains
3404+
* fully supported.
3405+
*/
33993406
defaultTaxConfig?: components['schemas']['TaxConfig']
34003407
}
34013408
/**
@@ -7731,7 +7738,14 @@ export interface components {
77317738
* @example P30D
77327739
*/
77337740
dueAfter?: string
7734-
/** @description Default tax configuration to apply to the invoices. */
7741+
/**
7742+
* @description Default tax configuration to apply to the invoices.
7743+
*
7744+
* Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is
7745+
* deprecated and can no longer be added or changed: the organization default tax code is
7746+
* used instead. Existing tax-code values may still be removed, and `behavior` remains
7747+
* fully supported.
7748+
*/
77357749
defaultTaxConfig?: components['schemas']['TaxConfig']
77367750
}
77377751
/**

api/client/javascript/src/zod/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5872,7 +5872,7 @@ export const UpdateInvoiceBody = zod
58725872
.describe('Set of provider specific tax configs.')
58735873
.optional()
58745874
.describe(
5875-
'Default tax configuration to apply to the invoices.',
5875+
"Default tax configuration to apply to the invoices.\n\nSetting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is\ndeprecated and can no longer be added or changed: the organization default tax code is\nused instead. Existing tax-code values may still be removed, and `behavior` remains\nfully supported.",
58765876
),
58775877
draftPeriod: zod.coerce
58785878
.string()
@@ -6504,7 +6504,9 @@ export const CreateBillingProfileBody = zod
65046504
})
65056505
.describe('Set of provider specific tax configs.')
65066506
.optional()
6507-
.describe('Default tax configuration to apply to the invoices.'),
6507+
.describe(
6508+
"Default tax configuration to apply to the invoices.\n\nSetting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is\ndeprecated and can no longer be added or changed: the organization default tax code is\nused instead. Existing tax-code values may still be removed, and `behavior` remains\nfully supported.",
6509+
),
65086510
draftPeriod: zod.coerce
65096511
.string()
65106512
.default(
@@ -6923,7 +6925,9 @@ export const UpdateBillingProfileBody = zod
69236925
})
69246926
.describe('Set of provider specific tax configs.')
69256927
.optional()
6926-
.describe('Default tax configuration to apply to the invoices.'),
6928+
.describe(
6929+
"Default tax configuration to apply to the invoices.\n\nSetting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is\ndeprecated and can no longer be added or changed: the organization default tax code is\nused instead. Existing tax-code values may still be removed, and `behavior` remains\nfully supported.",
6930+
),
69276931
draftPeriod: zod.coerce
69286932
.string()
69296933
.default(

api/client/python/openmeter/_generated/models/_models.py

Lines changed: 22 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/openapi.cloud.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14170,7 +14170,13 @@ components:
1417014170
defaultTaxConfig:
1417114171
allOf:
1417214172
- $ref: '#/components/schemas/TaxConfig'
14173-
description: Default tax configuration to apply to the invoices.
14173+
description: |-
14174+
Default tax configuration to apply to the invoices.
14175+
14176+
Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is
14177+
deprecated and can no longer be added or changed: the organization default tax code is
14178+
used instead. Existing tax-code values may still be removed, and `behavior` remains
14179+
fully supported.
1417414180
description: BillingWorkflowInvoicingSettings represents the invoice settings for a billing workflow
1417514181
title: Workflow invoice settings
1417614182
BillingWorkflowPaymentSettings:
@@ -19781,7 +19787,13 @@ components:
1978119787
defaultTaxConfig:
1978219788
allOf:
1978319789
- $ref: '#/components/schemas/TaxConfig'
19784-
description: Default tax configuration to apply to the invoices.
19790+
description: |-
19791+
Default tax configuration to apply to the invoices.
19792+
19793+
Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is
19794+
deprecated and can no longer be added or changed: the organization default tax code is
19795+
used instead. Existing tax-code values may still be removed, and `behavior` remains
19796+
fully supported.
1978519797
description: InvoiceWorkflowInvoicingSettingsReplaceUpdate represents the update model for the invoicing settings of an invoice workflow.
1978619798
InvoiceWorkflowReplaceUpdate:
1978719799
type: object

api/openapi.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14321,7 +14321,13 @@ components:
1432114321
defaultTaxConfig:
1432214322
allOf:
1432314323
- $ref: '#/components/schemas/TaxConfig'
14324-
description: Default tax configuration to apply to the invoices.
14324+
description: |-
14325+
Default tax configuration to apply to the invoices.
14326+
14327+
Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is
14328+
deprecated and can no longer be added or changed: the organization default tax code is
14329+
used instead. Existing tax-code values may still be removed, and `behavior` remains
14330+
fully supported.
1432514331
description: BillingWorkflowInvoicingSettings represents the invoice settings for a billing workflow
1432614332
title: Workflow invoice settings
1432714333
BillingWorkflowLineResolution:
@@ -20479,7 +20485,13 @@ components:
2047920485
defaultTaxConfig:
2048020486
allOf:
2048120487
- $ref: '#/components/schemas/TaxConfig'
20482-
description: Default tax configuration to apply to the invoices.
20488+
description: |-
20489+
Default tax configuration to apply to the invoices.
20490+
20491+
Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is
20492+
deprecated and can no longer be added or changed: the organization default tax code is
20493+
used instead. Existing tax-code values may still be removed, and `behavior` remains
20494+
fully supported.
2048320495
description: InvoiceWorkflowInvoicingSettingsReplaceUpdate represents the update model for the invoicing settings of an invoice workflow.
2048420496
InvoiceWorkflowReplaceUpdate:
2048520497
type: object

api/spec/packages/aip-client-javascript/src/models/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,7 @@ export interface WorkflowTaxSettings {
25402540
enabled: boolean
25412541
/** Enforce tax calculation when tax is supported by the app. When enabled, the billing system will not allow to create an invoice without tax calculation. Enforcement is different per apps, for example, Stripe app requires customer to have a tax location when starting a paid subscription. */
25422542
enforced: boolean
2543-
/** Default tax configuration to apply to the invoices for line items. */
2543+
/** Default tax configuration to apply to the invoices for line items. Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is deprecated and can no longer be added or changed: the organization default tax code is used instead. Existing tax-code values may still be removed, and `behavior` remains fully supported. */
25442544
default_tax_config?: TaxConfig
25452545
}
25462546

@@ -3438,7 +3438,7 @@ export interface WorkflowTaxSettingsInput {
34383438
enabled?: boolean
34393439
/** Enforce tax calculation when tax is supported by the app. When enabled, the billing system will not allow to create an invoice without tax calculation. Enforcement is different per apps, for example, Stripe app requires customer to have a tax location when starting a paid subscription. */
34403440
enforced?: boolean
3441-
/** Default tax configuration to apply to the invoices for line items. */
3441+
/** Default tax configuration to apply to the invoices for line items. Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is deprecated and can no longer be added or changed: the organization default tax code is used instead. Existing tax-code values may still be removed, and `behavior` remains fully supported. */
34423442
default_tax_config?: TaxConfig
34433443
}
34443444

api/spec/packages/aip/src/billing/profile.tsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ model BillingWorkflowTaxSettings {
225225

226226
/**
227227
* Default tax configuration to apply to the invoices for line items.
228+
*
229+
* Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax
230+
* config is deprecated and can no longer be added or changed: the organization
231+
* default tax code is used instead. Existing tax-code values may still be removed,
232+
* and `behavior` remains fully supported.
228233
*/
229234
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
230235
default_tax_config?: TaxConfig;

api/spec/packages/legacy/src/billing/profile.tsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,11 @@ model BillingWorkflowInvoicingSettings {
458458

459459
/**
460460
* Default tax configuration to apply to the invoices.
461+
*
462+
* Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is
463+
* deprecated and can no longer be added or changed: the organization default tax code is
464+
* used instead. Existing tax-code values may still be removed, and `behavior` remains
465+
* fully supported.
461466
*/
462467
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
463468
defaultTaxConfig?: TaxConfig;

0 commit comments

Comments
 (0)