Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,568 changes: 1,299 additions & 1,269 deletions api/api.gen.go

Large diffs are not rendered by default.

2,221 changes: 1,125 additions & 1,096 deletions api/client/go/client.gen.go

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions api/client/javascript/src/client/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3395,6 +3395,11 @@ export interface components {
* @default true
*/
progressiveBilling?: boolean
/**
* @description Controls how subscription-ending shortened service periods are billed.
* @default bill_actual_period
*/
subscriptionEndProrationMode?: components['schemas']['BillingWorkflowInvoicingSubscriptionEndProrationMode']
/**
* @description Default tax configuration to apply to the invoices.
*
Expand All @@ -3405,6 +3410,13 @@ export interface components {
*/
defaultTaxConfig?: components['schemas']['TaxConfig']
}
/**
* @description Billing workflow subscription end proration mode.
* @enum {string}
*/
BillingWorkflowInvoicingSubscriptionEndProrationMode:
| 'bill_full_period'
| 'bill_actual_period'
/**
* Workflow payment settings
* @description BillingWorkflowPaymentSettings represents the payment settings for a billing workflow
Expand Down Expand Up @@ -7738,6 +7750,11 @@ export interface components {
* @example P30D
*/
dueAfter?: string
/**
* @description Controls how subscription-ending shortened service periods are billed.
* @default bill_actual_period
*/
subscriptionEndProrationMode?: components['schemas']['BillingWorkflowInvoicingSubscriptionEndProrationMode']
/**
* @description Default tax configuration to apply to the invoices.
*
Expand Down Expand Up @@ -12499,6 +12516,8 @@ export type BillingWorkflowCreate =
components['schemas']['BillingWorkflowCreate']
export type BillingWorkflowInvoicingSettings =
components['schemas']['BillingWorkflowInvoicingSettings']
export type BillingWorkflowInvoicingSubscriptionEndProrationMode =
components['schemas']['BillingWorkflowInvoicingSubscriptionEndProrationMode']
export type BillingWorkflowPaymentSettings =
components['schemas']['BillingWorkflowPaymentSettings']
export type BillingWorkflowTaxSettings =
Expand Down
33 changes: 33 additions & 0 deletions api/client/javascript/src/zod/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4851,6 +4851,8 @@ export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDraftPeriodDefau
'P0D'
export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDueAfterDefault =
'P30D'
export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneSubscriptionEndProrationModeDefault =
'bill_actual_period'
export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp =
/^txcd_\d{8}$/
export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp =
Expand Down Expand Up @@ -5890,6 +5892,15 @@ export const UpdateInvoiceBody = zod
.describe(
"The period after which the invoice is due.\nWith some payment solutions it's only applicable for manual collection method.",
),
subscriptionEndProrationMode: zod
.enum(['bill_full_period', 'bill_actual_period'])
.describe('Billing workflow subscription end proration mode.')
.default(
updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneSubscriptionEndProrationModeDefault,
)
.describe(
'Controls how subscription-ending shortened service periods are billed.',
),
})
.describe(
'InvoiceWorkflowInvoicingSettingsReplaceUpdate represents the update model for the invoicing settings of an invoice workflow.',
Expand Down Expand Up @@ -6218,6 +6229,8 @@ export const createBillingProfileBodyWorkflowOneInvoicingOneDraftPeriodDefault =
export const createBillingProfileBodyWorkflowOneInvoicingOneDueAfterDefault =
'P30D'
export const createBillingProfileBodyWorkflowOneInvoicingOneProgressiveBillingDefault = true
export const createBillingProfileBodyWorkflowOneInvoicingOneSubscriptionEndProrationModeDefault =
'bill_actual_period'
export const createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp =
/^txcd_\d{8}$/
export const createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp =
Expand Down Expand Up @@ -6531,6 +6544,15 @@ export const CreateBillingProfileBody = zod
.describe(
'Should progressive billing be allowed for this workflow?',
),
subscriptionEndProrationMode: zod
.enum(['bill_full_period', 'bill_actual_period'])
.describe('Billing workflow subscription end proration mode.')
.default(
createBillingProfileBodyWorkflowOneInvoicingOneSubscriptionEndProrationModeDefault,
)
.describe(
'Controls how subscription-ending shortened service periods are billed.',
),
})
.describe(
'BillingWorkflowInvoicingSettings represents the invoice settings for a billing workflow',
Expand Down Expand Up @@ -6664,6 +6686,8 @@ export const updateBillingProfileBodyWorkflowOneInvoicingOneDraftPeriodDefault =
export const updateBillingProfileBodyWorkflowOneInvoicingOneDueAfterDefault =
'P30D'
export const updateBillingProfileBodyWorkflowOneInvoicingOneProgressiveBillingDefault = true
export const updateBillingProfileBodyWorkflowOneInvoicingOneSubscriptionEndProrationModeDefault =
'bill_actual_period'
export const updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp =
/^txcd_\d{8}$/
export const updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp =
Expand Down Expand Up @@ -6952,6 +6976,15 @@ export const UpdateBillingProfileBody = zod
.describe(
'Should progressive billing be allowed for this workflow?',
),
subscriptionEndProrationMode: zod
.enum(['bill_full_period', 'bill_actual_period'])
.describe('Billing workflow subscription end proration mode.')
.default(
updateBillingProfileBodyWorkflowOneInvoicingOneSubscriptionEndProrationModeDefault,
)
.describe(
'Controls how subscription-ending shortened service periods are billed.',
),
})
.describe(
'BillingWorkflowInvoicingSettings represents the invoice settings for a billing workflow',
Expand Down
2 changes: 2 additions & 0 deletions api/client/python/openmeter/_generated/models/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions api/client/python/openmeter/_generated/models/_enums.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions api/client/python/openmeter/_generated/models/_models.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions api/openapi.cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14167,6 +14167,11 @@ components:
type: boolean
description: Should progressive billing be allowed for this workflow?
default: true
subscriptionEndProrationMode:
allOf:
- $ref: '#/components/schemas/BillingWorkflowInvoicingSubscriptionEndProrationMode'
description: Controls how subscription-ending shortened service periods are billed.
default: bill_actual_period
defaultTaxConfig:
allOf:
- $ref: '#/components/schemas/TaxConfig'
Expand All @@ -14179,6 +14184,12 @@ components:
fully supported.
description: BillingWorkflowInvoicingSettings represents the invoice settings for a billing workflow
title: Workflow invoice settings
BillingWorkflowInvoicingSubscriptionEndProrationMode:
type: string
enum:
- bill_full_period
- bill_actual_period
description: Billing workflow subscription end proration mode.
BillingWorkflowPaymentSettings:
type: object
properties:
Expand Down Expand Up @@ -19784,6 +19795,11 @@ components:
With some payment solutions it's only applicable for manual collection method.
example: P30D
default: P30D
subscriptionEndProrationMode:
allOf:
- $ref: '#/components/schemas/BillingWorkflowInvoicingSubscriptionEndProrationMode'
description: Controls how subscription-ending shortened service periods are billed.
default: bill_actual_period
defaultTaxConfig:
allOf:
- $ref: '#/components/schemas/TaxConfig'
Expand Down
16 changes: 16 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14318,6 +14318,11 @@ components:
type: boolean
description: Should progressive billing be allowed for this workflow?
default: true
subscriptionEndProrationMode:
allOf:
- $ref: '#/components/schemas/BillingWorkflowInvoicingSubscriptionEndProrationMode'
description: Controls how subscription-ending shortened service periods are billed.
default: bill_actual_period
defaultTaxConfig:
allOf:
- $ref: '#/components/schemas/TaxConfig'
Expand All @@ -14330,6 +14335,12 @@ components:
fully supported.
description: BillingWorkflowInvoicingSettings represents the invoice settings for a billing workflow
title: Workflow invoice settings
BillingWorkflowInvoicingSubscriptionEndProrationMode:
type: string
enum:
- bill_full_period
- bill_actual_period
description: Billing workflow subscription end proration mode.
BillingWorkflowLineResolution:
type: string
enum:
Expand Down Expand Up @@ -20482,6 +20493,11 @@ components:
With some payment solutions it's only applicable for manual collection method.
example: P30D
default: P30D
subscriptionEndProrationMode:
allOf:
- $ref: '#/components/schemas/BillingWorkflowInvoicingSubscriptionEndProrationMode'
description: Controls how subscription-ending shortened service periods are billed.
default: bill_actual_period
defaultTaxConfig:
allOf:
- $ref: '#/components/schemas/TaxConfig'
Expand Down
4 changes: 2 additions & 2 deletions api/spec/packages/aip-client-javascript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export type {
FlatFeeDiscounts,
PriceFree,
WorkflowCollectionAlignmentSubscription,
WorkflowInvoicingSettings,
WorkflowPaymentChargeAutomaticallySettings,
WorkflowPaymentSendInvoiceSettings,
LlmCostProvider,
Expand Down Expand Up @@ -173,6 +172,7 @@ export type {
AppCatalogItem,
TaxCodeAppMapping,
PartyTaxIdentity,
WorkflowInvoicingSettings,
ListCurrenciesParamsFilter,
CurrencyCustom,
CreateCurrencyCustomRequest,
Expand Down Expand Up @@ -289,7 +289,6 @@ export type {
PlanPagePaginatedResponse,
SortQueryInput,
BaseErrorInput,
WorkflowInvoicingSettingsInput,
WorkflowPaymentSendInvoiceSettingsInput,
EventInput,
UnauthorizedInput,
Expand All @@ -309,6 +308,7 @@ export type {
CreateCreditGrantPurchaseInput,
RateCardMeteredEntitlementInput,
CreditGrantPurchaseInput,
WorkflowInvoicingSettingsInput,
UnitConfigInput,
GovernanceQueryRequestInput,
IngestedEventInput,
Expand Down
Loading
Loading