Skip to content

Commit

Permalink
fix: remove workflow ID and timestamps (#2117)
Browse files Browse the repository at this point in the history
  • Loading branch information
turip authored Jan 21, 2025
1 parent e19abec commit 2a7562e
Show file tree
Hide file tree
Showing 19 changed files with 1,616 additions and 2,008 deletions.
1,547 changes: 755 additions & 792 deletions api/api.gen.go

Large diffs are not rendered by default.

1,568 changes: 765 additions & 803 deletions api/client/go/client.gen.go

Large diffs are not rendered by default.

65 changes: 2 additions & 63 deletions api/client/node/schemas/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2060,38 +2060,12 @@ export interface components {
}
/** @description Customer specific workflow overrides. */
BillingProfileCustomerWorkflowOverride: {
/**
* Creation Time
* Format: date-time
* @description Timestamp of when the resource was created.
* @example 2024-01-01T01:01:01.001Z
*/
readonly createdAt: string
/**
* Last Update Time
* Format: date-time
* @description Timestamp of when the resource was last updated.
* @example 2024-01-01T01:01:01.001Z
*/
readonly updatedAt: string
/**
* Deletion Time
* Format: date-time
* @description Timestamp of when the resource was permanently deleted.
* @example 2024-01-01T01:01:01.001Z
*/
readonly deletedAt?: string
/** @description The collection settings for this workflow */
collection?: components['schemas']['BillingWorkflowCollectionSettings']
/** @description The invoicing settings for this workflow */
invoicing?: components['schemas']['BillingWorkflowInvoicingSettings']
/** @description The payment settings for this workflow */
payment?: components['schemas']['BillingWorkflowPaymentSettings']
/**
* @description A unique identifier for the resource.
* @example 01G65Z755AFWAKHE12NY0CQ9FH
*/
readonly id: string
/** @description The tax app used for this workflow */
readonly taxApp: components['schemas']['App']
/** @description The invoicing app used for this workflow */
Expand Down Expand Up @@ -2167,40 +2141,14 @@ export interface components {
}
/** @description TaxIdentificationCode is a normalized tax code shown on the original identity document. */
BillingTaxIdentificationCode: string
/** @description BillingWorkflow represents a billing workflow */
/** @description BillingWorkflow represents the settings for a billing workflow. */
BillingWorkflow: {
/**
* Creation Time
* Format: date-time
* @description Timestamp of when the resource was created.
* @example 2024-01-01T01:01:01.001Z
*/
readonly createdAt: string
/**
* Last Update Time
* Format: date-time
* @description Timestamp of when the resource was last updated.
* @example 2024-01-01T01:01:01.001Z
*/
readonly updatedAt: string
/**
* Deletion Time
* Format: date-time
* @description Timestamp of when the resource was permanently deleted.
* @example 2024-01-01T01:01:01.001Z
*/
readonly deletedAt?: string
/** @description The collection settings for this workflow */
collection?: components['schemas']['BillingWorkflowCollectionSettings']
/** @description The invoicing settings for this workflow */
invoicing?: components['schemas']['BillingWorkflowInvoicingSettings']
/** @description The payment settings for this workflow */
payment?: components['schemas']['BillingWorkflowPaymentSettings']
/**
* @description A unique identifier for the resource.
* @example 01G65Z755AFWAKHE12NY0CQ9FH
*/
readonly id: string
}
/** @description The alignment for collecting the pending line items into an invoice.
*
Expand Down Expand Up @@ -2280,15 +2228,6 @@ export interface components {
*/
collectionMethod: components['schemas']['CollectionMethod']
}
/** @description BillingWorkflowSettings represents the settings for a billing workflow. */
BillingWorkflowSettings: {
/** @description The collection settings for this workflow */
collection?: components['schemas']['BillingWorkflowCollectionSettings']
/** @description The invoicing settings for this workflow */
invoicing?: components['schemas']['BillingWorkflowInvoicingSettings']
/** @description The payment settings for this workflow */
payment?: components['schemas']['BillingWorkflowPaymentSettings']
}
/** @description Stripe CheckoutSession.custom_text */
CheckoutSessionCustomTextAfterSubmitParams: {
afterSubmit?: {
Expand Down Expand Up @@ -4885,7 +4824,7 @@ export interface components {
*/
readonly sourceBillingProfileID: string
/** @description The workflow details used by this invoice. */
workflow: components['schemas']['BillingWorkflowSettings']
workflow: components['schemas']['BillingWorkflow']
}
/** @description Mutable workflow settings for an invoice.
*
Expand Down
65 changes: 2 additions & 63 deletions api/client/web/src/client/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2060,38 +2060,12 @@ export interface components {
}
/** @description Customer specific workflow overrides. */
BillingProfileCustomerWorkflowOverride: {
/**
* Creation Time
* Format: date-time
* @description Timestamp of when the resource was created.
* @example 2024-01-01T01:01:01.001Z
*/
readonly createdAt: string
/**
* Last Update Time
* Format: date-time
* @description Timestamp of when the resource was last updated.
* @example 2024-01-01T01:01:01.001Z
*/
readonly updatedAt: string
/**
* Deletion Time
* Format: date-time
* @description Timestamp of when the resource was permanently deleted.
* @example 2024-01-01T01:01:01.001Z
*/
readonly deletedAt?: string
/** @description The collection settings for this workflow */
collection?: components['schemas']['BillingWorkflowCollectionSettings']
/** @description The invoicing settings for this workflow */
invoicing?: components['schemas']['BillingWorkflowInvoicingSettings']
/** @description The payment settings for this workflow */
payment?: components['schemas']['BillingWorkflowPaymentSettings']
/**
* @description A unique identifier for the resource.
* @example 01G65Z755AFWAKHE12NY0CQ9FH
*/
readonly id: string
/** @description The tax app used for this workflow */
readonly taxApp: Omit<components['schemas']['App'], 'type'>
/** @description The invoicing app used for this workflow */
Expand Down Expand Up @@ -2167,40 +2141,14 @@ export interface components {
}
/** @description TaxIdentificationCode is a normalized tax code shown on the original identity document. */
BillingTaxIdentificationCode: string
/** @description BillingWorkflow represents a billing workflow */
/** @description BillingWorkflow represents the settings for a billing workflow. */
BillingWorkflow: {
/**
* Creation Time
* Format: date-time
* @description Timestamp of when the resource was created.
* @example 2024-01-01T01:01:01.001Z
*/
readonly createdAt: string
/**
* Last Update Time
* Format: date-time
* @description Timestamp of when the resource was last updated.
* @example 2024-01-01T01:01:01.001Z
*/
readonly updatedAt: string
/**
* Deletion Time
* Format: date-time
* @description Timestamp of when the resource was permanently deleted.
* @example 2024-01-01T01:01:01.001Z
*/
readonly deletedAt?: string
/** @description The collection settings for this workflow */
collection?: components['schemas']['BillingWorkflowCollectionSettings']
/** @description The invoicing settings for this workflow */
invoicing?: components['schemas']['BillingWorkflowInvoicingSettings']
/** @description The payment settings for this workflow */
payment?: components['schemas']['BillingWorkflowPaymentSettings']
/**
* @description A unique identifier for the resource.
* @example 01G65Z755AFWAKHE12NY0CQ9FH
*/
readonly id: string
}
/** @description The alignment for collecting the pending line items into an invoice.
*
Expand Down Expand Up @@ -2280,15 +2228,6 @@ export interface components {
*/
collectionMethod: components['schemas']['CollectionMethod']
}
/** @description BillingWorkflowSettings represents the settings for a billing workflow. */
BillingWorkflowSettings: {
/** @description The collection settings for this workflow */
collection?: components['schemas']['BillingWorkflowCollectionSettings']
/** @description The invoicing settings for this workflow */
invoicing?: components['schemas']['BillingWorkflowInvoicingSettings']
/** @description The payment settings for this workflow */
payment?: components['schemas']['BillingWorkflowPaymentSettings']
}
/** @description Stripe CheckoutSession.custom_text */
CheckoutSessionCustomTextAfterSubmitParams: {
afterSubmit?: {
Expand Down Expand Up @@ -4885,7 +4824,7 @@ export interface components {
*/
readonly sourceBillingProfileID: string
/** @description The workflow details used by this invoice. */
workflow: components['schemas']['BillingWorkflowSettings']
workflow: components['schemas']['BillingWorkflow']
}
/** @description Mutable workflow settings for an invoice.
*
Expand Down
81 changes: 2 additions & 79 deletions api/openapi.cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8564,34 +8564,10 @@ components:
BillingProfileCustomerWorkflowOverride:
type: object
required:
- createdAt
- updatedAt
- id
- taxApp
- invoicingApp
- paymentApp
properties:
createdAt:
type: string
format: date-time
description: Timestamp of when the resource was created.
example: '2024-01-01T01:01:01.001Z'
title: Creation Time
readOnly: true
updatedAt:
type: string
format: date-time
description: Timestamp of when the resource was last updated.
example: '2024-01-01T01:01:01.001Z'
title: Last Update Time
readOnly: true
deletedAt:
type: string
format: date-time
description: Timestamp of when the resource was permanently deleted.
example: '2024-01-01T01:01:01.001Z'
title: Deletion Time
readOnly: true
collection:
allOf:
- $ref: '#/components/schemas/BillingWorkflowCollectionSettings'
Expand All @@ -8604,12 +8580,6 @@ components:
allOf:
- $ref: '#/components/schemas/BillingWorkflowPaymentSettings'
description: The payment settings for this workflow
id:
type: string
pattern: ^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$
description: A unique identifier for the resource.
example: 01G65Z755AFWAKHE12NY0CQ9FH
readOnly: true
taxApp:
allOf:
- $ref: '#/components/schemas/App'
Expand Down Expand Up @@ -8735,32 +8705,7 @@ components:
description: TaxIdentificationCode is a normalized tax code shown on the original identity document.
BillingWorkflow:
type: object
required:
- createdAt
- updatedAt
- id
properties:
createdAt:
type: string
format: date-time
description: Timestamp of when the resource was created.
example: '2024-01-01T01:01:01.001Z'
title: Creation Time
readOnly: true
updatedAt:
type: string
format: date-time
description: Timestamp of when the resource was last updated.
example: '2024-01-01T01:01:01.001Z'
title: Last Update Time
readOnly: true
deletedAt:
type: string
format: date-time
description: Timestamp of when the resource was permanently deleted.
example: '2024-01-01T01:01:01.001Z'
title: Deletion Time
readOnly: true
collection:
allOf:
- $ref: '#/components/schemas/BillingWorkflowCollectionSettings'
Expand All @@ -8773,13 +8718,7 @@ components:
allOf:
- $ref: '#/components/schemas/BillingWorkflowPaymentSettings'
description: The payment settings for this workflow
id:
type: string
pattern: ^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$
description: A unique identifier for the resource.
example: 01G65Z755AFWAKHE12NY0CQ9FH
readOnly: true
description: BillingWorkflow represents a billing workflow
description: BillingWorkflow represents the settings for a billing workflow.
BillingWorkflowCollectionAlignment:
type: object
allOf:
Expand Down Expand Up @@ -8871,22 +8810,6 @@ components:
default: charge_automatically
description: BillingWorkflowPaymentSettings represents the payment settings for a billing workflow
title: Workflow payment settings
BillingWorkflowSettings:
type: object
properties:
collection:
allOf:
- $ref: '#/components/schemas/BillingWorkflowCollectionSettings'
description: The collection settings for this workflow
invoicing:
allOf:
- $ref: '#/components/schemas/BillingWorkflowInvoicingSettings'
description: The invoicing settings for this workflow
payment:
allOf:
- $ref: '#/components/schemas/BillingWorkflowPaymentSettings'
description: The payment settings for this workflow
description: BillingWorkflowSettings represents the settings for a billing workflow.
CheckoutSessionCustomTextAfterSubmitParams:
type: object
properties:
Expand Down Expand Up @@ -12606,7 +12529,7 @@ components:
readOnly: true
workflow:
allOf:
- $ref: '#/components/schemas/BillingWorkflowSettings'
- $ref: '#/components/schemas/BillingWorkflow'
description: The workflow details used by this invoice.
description: |-
InvoiceWorkflowSettings represents the workflow settings used by the invoice.
Expand Down
Loading

0 comments on commit 2a7562e

Please sign in to comment.