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
1,591 changes: 796 additions & 795 deletions api/api.gen.go

Large diffs are not rendered by default.

1,555 changes: 778 additions & 777 deletions api/client/go/client.gen.go

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions api/client/javascript/src/client/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6398,16 +6398,17 @@ export interface components {
*
* Billing always treats periods as start being inclusive and end being exclusive. */
period: components['schemas']['Period']
/** @description External IDs of the invoice in other apps such as Stripe. */
readonly externalIds?: components['schemas']['InvoiceLineAppExternalIds']
/** @description Subscription are the references to the subscritpions that this line is related to. */
readonly subscription?: components['schemas']['InvoiceLineSubscriptionReference']
/**
* Format: date-time
* @deprecated
* @description The time this line item should be invoiced.
* @example 2023-01-01T01:01:01.001Z
*/
invoiceAt: Date
/** @description External IDs of the invoice in other apps such as Stripe. */
readonly externalIds?: components['schemas']['InvoiceLineAppExternalIds']
/** @description Subscription are the references to the subscritpions that this line is related to. */
readonly subscription?: components['schemas']['InvoiceLineSubscriptionReference']
/**
* @deprecated
* @description Type of the line.
Expand Down Expand Up @@ -6739,7 +6740,7 @@ export interface components {
* @description Line status specifies the status of the line.
* @enum {string}
*/
InvoiceLineStatus: 'valid' | 'detail' | 'split'
InvoiceLineStatus: 'valid' | 'detailed' | 'split'
/** @description InvoiceLineSubscriptionReference contains the references to the subscription that this line is related to. */
InvoiceLineSubscriptionReference: {
/** @description The subscription. */
Expand Down
13 changes: 7 additions & 6 deletions api/openapi.cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18069,11 +18069,6 @@ components:
Period of the line item applies to for revenue recognition pruposes.

Billing always treats periods as start being inclusive and end being exclusive.
invoiceAt:
type: string
format: date-time
description: The time this line item should be invoiced.
example: '2023-01-01T01:01:01.001Z'
externalIds:
allOf:
- $ref: '#/components/schemas/InvoiceLineAppExternalIds'
Expand All @@ -18084,6 +18079,12 @@ components:
- $ref: '#/components/schemas/InvoiceLineSubscriptionReference'
description: Subscription are the references to the subscritpions that this line is related to.
readOnly: true
invoiceAt:
type: string
format: date-time
description: The time this line item should be invoiced.
example: '2023-01-01T01:01:01.001Z'
deprecated: true
type:
type: string
enum:
Expand Down Expand Up @@ -18566,7 +18567,7 @@ components:
type: string
enum:
- valid
- detail
- detailed
- split
description: Line status specifies the status of the line.
InvoiceLineSubscriptionReference:
Expand Down
13 changes: 7 additions & 6 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18552,11 +18552,6 @@ components:
Period of the line item applies to for revenue recognition pruposes.

Billing always treats periods as start being inclusive and end being exclusive.
invoiceAt:
type: string
format: date-time
description: The time this line item should be invoiced.
example: '2023-01-01T01:01:01.001Z'
externalIds:
allOf:
- $ref: '#/components/schemas/InvoiceLineAppExternalIds'
Expand All @@ -18567,6 +18562,12 @@ components:
- $ref: '#/components/schemas/InvoiceLineSubscriptionReference'
description: Subscription are the references to the subscritpions that this line is related to.
readOnly: true
invoiceAt:
type: string
format: date-time
description: The time this line item should be invoiced.
example: '2023-01-01T01:01:01.001Z'
deprecated: true
type:
type: string
enum:
Expand Down Expand Up @@ -19240,7 +19241,7 @@ components:
type: string
enum:
- valid
- detail
- detailed
- split
description: Line status specifies the status of the line.
InvoiceLineSubscriptionReference:
Expand Down
11 changes: 9 additions & 2 deletions api/spec/src/billing/invoices/invoice.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ enum InvoiceLineStatus {
* The line is a detail line which is used to detail the individual
* charges and discounts of a valid line.
*/
detail: "detail",
detailed: "detailed",

/**
* The line has been split into multiple valid lines due to progressive
Expand Down Expand Up @@ -762,7 +762,14 @@ model InvoiceDetailedLineRateCard {
*/
@friendlyName("InvoiceDetailedLine")
model InvoiceDetailedLine {
...OmitProperties<InvoiceLineBase, "type">;
...OmitProperties<InvoiceLineBase, "type" | "invoiceAt">;

/**
* The time this line item should be invoiced.
*/
#deprecated "Use invoiceAt from the parent line instead, this field will be removed in the future versions of the API"
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
invoiceAt: DateTime;

/**
* Type of the line.
Expand Down
Loading