You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/spec/packages/aip-client-javascript/src/models/schemas.ts
+38-10Lines changed: 38 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1579,6 +1579,15 @@ export const appReference = z
1579
1579
})
1580
1580
.describe('App reference.')
1581
1581
1582
+
exportconstinvoiceWorkflowAppReference=z
1583
+
.object({
1584
+
id: ulid,
1585
+
})
1586
+
1587
+
.describe(
1588
+
'BillingInvoiceWorkflowAppReference Can be used as a short reference to an app if the full app object is not needed.',
1589
+
)
1590
+
1582
1591
exportconstchargeReference=z
1583
1592
.object({
1584
1593
id: ulid,
@@ -3277,6 +3286,17 @@ export const profileAppReferences = z
3277
3286
})
3278
3287
.describe('References to the applications used by a billing profile.')
3279
3288
3289
+
exportconstinvoiceWorkflowAppsReferences=z
3290
+
.object({
3291
+
tax: invoiceWorkflowAppReference,
3292
+
invoicing: invoiceWorkflowAppReference,
3293
+
payment: invoiceWorkflowAppReference,
3294
+
})
3295
+
3296
+
.describe(
3297
+
'BillingProfileAppReferences represents the references (id, type) to the apps used by a billing profile',
3298
+
)
3299
+
3280
3300
exportconstlistEventsParamsFilter=z
3281
3301
.object({
3282
3302
id: stringFieldFilter.optional(),
@@ -4091,6 +4111,13 @@ export const planAddonPagePaginatedResponse = z
4091
4111
})
4092
4112
.describe('Page paginated response.')
4093
4113
4114
+
exportconstinvoiceWorkflowAppsOrReferences=z
4115
+
.union([invoiceWorkflowAppsReferences])
4116
+
4117
+
.describe(
4118
+
"Union of either the full app references or just the IDs of the apps used for this invoice's workflow. The `apps` field on `BillingInvoiceWorkflowSettings` is a union because the invoice may have been created before the app references were available. In that case only the IDs are returned, and the full references can be retrieved via separate API calls.",
4119
+
)
4120
+
4094
4121
exportconstingestedEventPaginatedResponse=z
4095
4122
.object({
4096
4123
data: z.array(ingestedEvent),
@@ -4260,16 +4287,6 @@ export const taxCodePagePaginatedResponse = z
4260
4287
})
4261
4288
.describe('Page paginated response.')
4262
4289
4263
-
exportconstinvoiceWorkflowSettings=z
4264
-
.object({
4265
-
source_billing_profile: profileReference,
4266
-
workflow: invoiceWorkflow,
4267
-
})
4268
-
4269
-
.describe(
4270
-
'Snapshot of the billing workflow configuration captured at invoice creation.',
4271
-
)
4272
-
4273
4290
exportconstinvoiceDetailedLine=z
4274
4291
.object({
4275
4292
id: ulid,
@@ -4420,6 +4437,17 @@ export const creditGrantPagePaginatedResponse = z
4420
4437
})
4421
4438
.describe('Page paginated response.')
4422
4439
4440
+
exportconstinvoiceWorkflowSettings=z
4441
+
.object({
4442
+
apps: invoiceWorkflowAppsOrReferences.optional(),
4443
+
source_billing_profile: profileReference,
4444
+
workflow: invoiceWorkflow,
4445
+
})
4446
+
4447
+
.describe(
4448
+
'Snapshot of the billing workflow configuration captured at invoice creation.',
/** Snapshot of the billing workflow configuration captured at invoice creation. */
2832
-
exportinterfaceInvoiceWorkflowSettings{
2833
-
/** The billing profile that was the source of this workflow snapshot. */
2834
-
source_billing_profile: ProfileReference
2835
-
/** The workflow configuration that was active when the invoice was created. Only the fields that are meaningful at the per-invoice level are included: invoicing behaviour (auto-advance, draft period) and payment settings (collection method, due date). Profile-wide settings such as collection alignment, progressive billing, and tax policy are omitted. */
2836
-
workflow: InvoiceWorkflow
2837
-
}
2838
-
2839
2847
/** A detailed (child) sub-line belonging to a parent invoice line. Detailed lines represent the individual flat-fee components that make up a usage-based parent line after quantity snapshotting. */
/** Snapshot of the billing workflow configuration captured at invoice creation. */
2945
+
exportinterfaceInvoiceWorkflowSettings{
2946
+
/** The apps that will be used to orchestrate the invoice's workflow. */
2947
+
apps?: InvoiceWorkflowAppsReferences
2948
+
/** The billing profile that was the source of this workflow snapshot. */
2949
+
source_billing_profile: ProfileReference
2950
+
/** The workflow configuration that was active when the invoice was created. Only the fields that are meaningful at the per-invoice level are included: invoicing behaviour (auto-advance, draft period) and payment settings (collection method, due date). Profile-wide settings such as collection alignment, progressive billing, and tax policy are omitted. */
2951
+
workflow: InvoiceWorkflow
2952
+
}
2953
+
2936
2954
/** Bad Request. */
2937
2955
exportinterfaceBadRequestextendsBaseError{
2938
2956
/** The list of parameters that failed validation. */
/** Indicates whether this line item's lifecycle is controlled by OpenMeter or manually overridden by the API user. */
3243
3261
lifecycle_controller: 'system'|'manual'
3244
-
/** The service period covered by this line item. */
3262
+
/** The service period covered by this invoice, spanning the earliest line start to the latest line end across all of its lines. For an invoice with no lines the period is empty, which means `from` will be equal to `to`. */
3245
3263
service_period: ClosedPeriod
3246
3264
/** Aggregated financial totals for the line item. */
/** The billing profile that was the source of this workflow snapshot. */
3879
-
source_billing_profile: ProfileReference
3880
-
/** The workflow configuration that was active when the invoice was created. Only the fields that are meaningful at the per-invoice level are included: invoicing behaviour (auto-advance, draft period) and payment settings (collection method, due date). Profile-wide settings such as collection alignment, progressive billing, and tax policy are omitted. */
3881
-
workflow: InvoiceWorkflowInput
3882
-
}
3883
-
3884
3895
exportinterfaceInvoiceDetailedLineInput{
3885
3896
id: string
3886
3897
/** Display name of the resource. Between 1 and 256 characters. */
/** The apps that will be used to orchestrate the invoice's workflow. */
3933
+
apps?: InvoiceWorkflowAppsReferences
3934
+
/** The billing profile that was the source of this workflow snapshot. */
3935
+
source_billing_profile: ProfileReference
3936
+
/** The workflow configuration that was active when the invoice was created. Only the fields that are meaningful at the per-invoice level are included: invoicing behaviour (auto-advance, draft period) and payment settings (collection method, due date). Profile-wide settings such as collection alignment, progressive billing, and tax policy are omitted. */
/** Indicates whether this line item's lifecycle is controlled by OpenMeter or manually overridden by the API user. */
4004
4024
lifecycle_controller: 'system'|'manual'
4005
-
/** The service period covered by this line item. */
4025
+
/** The service period covered by this invoice, spanning the earliest line start to the latest line end across all of its lines. For an invoice with no lines the period is empty, which means `from` will be equal to `to`. */
4006
4026
service_period: ClosedPeriod
4007
4027
/** Aggregated financial totals for the line item. */
0 commit comments