@openmeter/sdk 1.0.0-beta.211 → 1.0.0-beta.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/cjs/src/client/apps.cjs +74 -1
  2. package/dist/cjs/src/client/apps.d.cts +43 -2
  3. package/dist/cjs/src/client/apps.js.map +1 -1
  4. package/dist/cjs/src/client/billing.cjs +47 -3
  5. package/dist/cjs/src/client/billing.d.cts +54 -3
  6. package/dist/cjs/src/client/billing.js.map +1 -1
  7. package/dist/cjs/src/client/customers.d.cts +5 -0
  8. package/dist/cjs/src/client/debug.cjs +27 -0
  9. package/dist/cjs/src/client/debug.d.cts +17 -0
  10. package/dist/cjs/src/client/debug.js.map +1 -0
  11. package/dist/cjs/src/client/entitlements.cjs +38 -1
  12. package/dist/cjs/src/client/entitlements.d.cts +85 -1
  13. package/dist/cjs/src/client/entitlements.js.map +1 -1
  14. package/dist/cjs/src/client/index.cjs +6 -0
  15. package/dist/cjs/src/client/index.d.cts +4 -0
  16. package/dist/cjs/src/client/index.js.map +1 -1
  17. package/dist/cjs/src/client/info.cjs +42 -0
  18. package/dist/cjs/src/client/info.d.cts +34 -0
  19. package/dist/cjs/src/client/info.js.map +1 -0
  20. package/dist/cjs/src/client/schemas.d.cts +649 -35
  21. package/dist/cjs/tsconfig.065c79dd.tsbuildinfo +1 -0
  22. package/dist/cjs/tsconfig.9b7a0781.tsbuildinfo +1 -0
  23. package/dist/src/client/apps.d.ts +43 -2
  24. package/dist/src/client/apps.js +72 -0
  25. package/dist/src/client/apps.js.map +1 -1
  26. package/dist/src/client/billing.d.ts +54 -3
  27. package/dist/src/client/billing.js +47 -3
  28. package/dist/src/client/billing.js.map +1 -1
  29. package/dist/src/client/customers.d.ts +5 -0
  30. package/dist/src/client/debug.d.ts +17 -0
  31. package/dist/src/client/debug.js +23 -0
  32. package/dist/src/client/debug.js.map +1 -0
  33. package/dist/src/client/entitlements.d.ts +85 -1
  34. package/dist/src/client/entitlements.js +38 -1
  35. package/dist/src/client/entitlements.js.map +1 -1
  36. package/dist/src/client/index.d.ts +4 -0
  37. package/dist/src/client/index.js +6 -0
  38. package/dist/src/client/index.js.map +1 -1
  39. package/dist/src/client/info.d.ts +34 -0
  40. package/dist/src/client/info.js +38 -0
  41. package/dist/src/client/info.js.map +1 -0
  42. package/dist/src/client/schemas.d.ts +649 -35
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +15 -15
  45. package/dist/cjs/tsconfig.341d9ef4.tsbuildinfo +0 -1
  46. package/dist/cjs/tsconfig.523d9ac8.tsbuildinfo +0 -1
@@ -113,6 +113,57 @@ export interface paths {
113
113
  patch?: never;
114
114
  trace?: never;
115
115
  };
116
+ '/api/v1/apps/custom-invoicing/{invoiceId}/draft/synchronized': {
117
+ parameters: {
118
+ query?: never;
119
+ header?: never;
120
+ path?: never;
121
+ cookie?: never;
122
+ };
123
+ get?: never;
124
+ put?: never;
125
+ /** Submit draft synchronization results */
126
+ post: operations['appCustomInvoicingDraftSynchronized'];
127
+ delete?: never;
128
+ options?: never;
129
+ head?: never;
130
+ patch?: never;
131
+ trace?: never;
132
+ };
133
+ '/api/v1/apps/custom-invoicing/{invoiceId}/issuing/synchronized': {
134
+ parameters: {
135
+ query?: never;
136
+ header?: never;
137
+ path?: never;
138
+ cookie?: never;
139
+ };
140
+ get?: never;
141
+ put?: never;
142
+ /** Submit issuing synchronization results */
143
+ post: operations['appCustomInvoicingIssuingSynchronized'];
144
+ delete?: never;
145
+ options?: never;
146
+ head?: never;
147
+ patch?: never;
148
+ trace?: never;
149
+ };
150
+ '/api/v1/apps/custom-invoicing/{invoiceId}/payment/status': {
151
+ parameters: {
152
+ query?: never;
153
+ header?: never;
154
+ path?: never;
155
+ cookie?: never;
156
+ };
157
+ get?: never;
158
+ put?: never;
159
+ /** Update payment status */
160
+ post: operations['appCustomInvoicingUpdatePaymentStatus'];
161
+ delete?: never;
162
+ options?: never;
163
+ head?: never;
164
+ patch?: never;
165
+ trace?: never;
166
+ };
116
167
  '/api/v1/apps/{id}': {
117
168
  parameters: {
118
169
  query?: never;
@@ -151,6 +202,7 @@ export interface paths {
151
202
  get?: never;
152
203
  /**
153
204
  * Update Stripe API key
205
+ * @deprecated
154
206
  * @description Update the Stripe API key.
155
207
  */
156
208
  put: operations['updateStripeAPIKey'];
@@ -2261,28 +2313,7 @@ export interface components {
2261
2313
  };
2262
2314
  /** @description App.
2263
2315
  * One of: stripe */
2264
- App: components['schemas']['StripeApp'] | components['schemas']['SandboxApp'];
2265
- /** @description Resource update operation model. */
2266
- AppBaseReplaceUpdate: {
2267
- /**
2268
- * Display name
2269
- * @description Human-readable name for the resource. Between 1 and 256 characters.
2270
- */
2271
- name: string;
2272
- /**
2273
- * Description
2274
- * @description Optional description of the resource. Maximum 1024 characters.
2275
- */
2276
- description?: string;
2277
- /**
2278
- * Metadata
2279
- * @description Additional metadata for the resource.
2280
- */
2281
- metadata?: components['schemas']['Metadata'] | null;
2282
- /** @description Default for the app type
2283
- * Only one app of each type can be default. */
2284
- default: boolean;
2285
- };
2316
+ App: components['schemas']['StripeApp'] | components['schemas']['SandboxApp'] | components['schemas']['CustomInvoicingApp'];
2286
2317
  /**
2287
2318
  * @description App capability.
2288
2319
  *
@@ -2339,6 +2370,8 @@ export interface components {
2339
2370
  */
2340
2371
  id: string;
2341
2372
  };
2373
+ /** @description App ReplaceUpdate Model */
2374
+ AppReplaceUpdate: components['schemas']['StripeAppReplaceUpdate'] | components['schemas']['SandboxAppReplaceUpdate'] | components['schemas']['CustomInvoicingAppReplaceUpdate'];
2342
2375
  /**
2343
2376
  * @description App installed status.
2344
2377
  * @enum {string}
@@ -2348,7 +2381,7 @@ export interface components {
2348
2381
  * @description Type of the app.
2349
2382
  * @enum {string}
2350
2383
  */
2351
- AppType: 'stripe' | 'sandbox';
2384
+ AppType: 'stripe' | 'sandbox' | 'custom_invoicing';
2352
2385
  /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
2353
2386
  BadRequestProblemResponse: components['schemas']['UnexpectedProblemResponse'];
2354
2387
  /** @description The balance history window. */
@@ -3116,6 +3149,218 @@ export interface components {
3116
3149
  * @example USD
3117
3150
  */
3118
3151
  CurrencyCode: string;
3152
+ /** @description Custom Invoicing app can be used for interface with any invoicing or payment system.
3153
+ *
3154
+ * This app provides ways to manipulate invoices and payments, however the integration
3155
+ * must rely on Notifications API to get notified about invoice changes. */
3156
+ CustomInvoicingApp: {
3157
+ /**
3158
+ * ID
3159
+ * @description A unique identifier for the resource.
3160
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
3161
+ */
3162
+ readonly id: string;
3163
+ /**
3164
+ * Display name
3165
+ * @description Human-readable name for the resource. Between 1 and 256 characters.
3166
+ */
3167
+ name: string;
3168
+ /**
3169
+ * Description
3170
+ * @description Optional description of the resource. Maximum 1024 characters.
3171
+ */
3172
+ description?: string;
3173
+ /**
3174
+ * Metadata
3175
+ * @description Additional metadata for the resource.
3176
+ */
3177
+ metadata?: components['schemas']['Metadata'] | null;
3178
+ /**
3179
+ * Creation Time
3180
+ * Format: date-time
3181
+ * @description Timestamp of when the resource was created.
3182
+ * @example 2024-01-01T01:01:01.001Z
3183
+ */
3184
+ readonly createdAt: Date;
3185
+ /**
3186
+ * Last Update Time
3187
+ * Format: date-time
3188
+ * @description Timestamp of when the resource was last updated.
3189
+ * @example 2024-01-01T01:01:01.001Z
3190
+ */
3191
+ readonly updatedAt: Date;
3192
+ /**
3193
+ * Deletion Time
3194
+ * Format: date-time
3195
+ * @description Timestamp of when the resource was permanently deleted.
3196
+ * @example 2024-01-01T01:01:01.001Z
3197
+ */
3198
+ readonly deletedAt?: Date;
3199
+ /** @description The marketplace listing that this installed app is based on. */
3200
+ readonly listing: components['schemas']['MarketplaceListing'];
3201
+ /** @description Status of the app connection. */
3202
+ readonly status: components['schemas']['AppStatus'];
3203
+ /** @description Default for the app type
3204
+ * Only one app of each type can be default. */
3205
+ default: boolean;
3206
+ /**
3207
+ * @description The app's type is CustomInvoicing. (enum property replaced by openapi-typescript)
3208
+ * @enum {string}
3209
+ */
3210
+ type: 'custom_invoicing';
3211
+ /** @description Enable draft.sync hook.
3212
+ *
3213
+ * If the hook is not enabled, the invoice will be progressed to the next state automatically. */
3214
+ enableDraftSyncHook: boolean;
3215
+ /** @description Enable issuing.sync hook.
3216
+ *
3217
+ * If the hook is not enabled, the invoice will be progressed to the next state automatically. */
3218
+ enableIssuingSyncHook: boolean;
3219
+ };
3220
+ /** @description Resource update operation model. */
3221
+ CustomInvoicingAppReplaceUpdate: {
3222
+ /**
3223
+ * Display name
3224
+ * @description Human-readable name for the resource. Between 1 and 256 characters.
3225
+ */
3226
+ name: string;
3227
+ /**
3228
+ * Description
3229
+ * @description Optional description of the resource. Maximum 1024 characters.
3230
+ */
3231
+ description?: string;
3232
+ /**
3233
+ * Metadata
3234
+ * @description Additional metadata for the resource.
3235
+ */
3236
+ metadata?: components['schemas']['Metadata'] | null;
3237
+ /** @description Default for the app type
3238
+ * Only one app of each type can be default. */
3239
+ default: boolean;
3240
+ /**
3241
+ * @description The app's type is CustomInvoicing. (enum property replaced by openapi-typescript)
3242
+ * @enum {string}
3243
+ */
3244
+ type: 'custom_invoicing';
3245
+ /** @description Enable draft.sync hook.
3246
+ *
3247
+ * If the hook is not enabled, the invoice will be progressed to the next state automatically. */
3248
+ enableDraftSyncHook: boolean;
3249
+ /** @description Enable issuing.sync hook.
3250
+ *
3251
+ * If the hook is not enabled, the invoice will be progressed to the next state automatically. */
3252
+ enableIssuingSyncHook: boolean;
3253
+ };
3254
+ /** @description Custom Invoicing Customer App Data. */
3255
+ CustomInvoicingCustomerAppData: {
3256
+ /** @description The installed custom invoicing app this data belongs to. */
3257
+ readonly app?: components['schemas']['CustomInvoicingApp'];
3258
+ /**
3259
+ * App ID
3260
+ * @description The app ID.
3261
+ * If not provided, it will use the global default for the app type.
3262
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
3263
+ */
3264
+ id?: string;
3265
+ /**
3266
+ * @description The app name. (enum property replaced by openapi-typescript)
3267
+ * @enum {string}
3268
+ */
3269
+ type: 'custom_invoicing';
3270
+ /** @description Metadata to be used by the custom invoicing provider. */
3271
+ metadata?: components['schemas']['Metadata'];
3272
+ };
3273
+ /** @description Information to finalize the draft details of an invoice. */
3274
+ CustomInvoicingDraftSynchronizedRequest: {
3275
+ /** @description The result of the synchronization. */
3276
+ invoicing?: components['schemas']['CustomInvoicingSyncResult'];
3277
+ };
3278
+ /** @description Information to finalize the invoicing details of an invoice. */
3279
+ CustomInvoicingFinalizedInvoicingRequest: {
3280
+ /** @description If set the invoice's number will be set to this value. */
3281
+ invoiceNumber?: components['schemas']['InvoiceNumber'];
3282
+ /**
3283
+ * Format: date-time
3284
+ * @description If set the invoice's sent to customer at will be set to this value.
3285
+ * @example 2023-01-01T01:01:01.001Z
3286
+ */
3287
+ sentToCustomerAt?: Date;
3288
+ };
3289
+ /** @description Information to finalize the payment details of an invoice. */
3290
+ CustomInvoicingFinalizedPaymentRequest: {
3291
+ /** @description If set the invoice's payment external ID will be set to this value. */
3292
+ externalId?: string;
3293
+ };
3294
+ /** @description Information to finalize the invoice.
3295
+ *
3296
+ * If invoicing.invoiceNumber is not set, then a new invoice number will be generated (INV- prefix). */
3297
+ CustomInvoicingFinalizedRequest: {
3298
+ /** @description The result of the synchronization. */
3299
+ invoicing?: components['schemas']['CustomInvoicingFinalizedInvoicingRequest'];
3300
+ /** @description The result of the payment synchronization. */
3301
+ payment?: components['schemas']['CustomInvoicingFinalizedPaymentRequest'];
3302
+ };
3303
+ /** @description Mapping between line discounts and external IDs. */
3304
+ CustomInvoicingLineDiscountExternalIdMapping: {
3305
+ /**
3306
+ * @description The line discount ID.
3307
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
3308
+ */
3309
+ lineDiscountId: string;
3310
+ /** @description The external ID (e.g. custom invoicing system's ID). */
3311
+ externalId: string;
3312
+ };
3313
+ /** @description Mapping between lines and external IDs. */
3314
+ CustomInvoicingLineExternalIdMapping: {
3315
+ /**
3316
+ * @description The line ID.
3317
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
3318
+ */
3319
+ lineId: string;
3320
+ /** @description The external ID (e.g. custom invoicing system's ID). */
3321
+ externalId: string;
3322
+ };
3323
+ /**
3324
+ * @description Payment trigger to execute on a finalized invoice.
3325
+ * @enum {string}
3326
+ */
3327
+ CustomInvoicingPaymentTrigger: 'paid' | 'payment_failed' | 'payment_uncollectible' | 'payment_overdue' | 'action_required' | 'void';
3328
+ /** @description Information to synchronize the invoice.
3329
+ *
3330
+ * Can be used to store external app's IDs on the invoice or lines. */
3331
+ CustomInvoicingSyncResult: {
3332
+ /** @description If set the invoice's number will be set to this value. */
3333
+ invoiceNumber?: components['schemas']['InvoiceNumber'];
3334
+ /** @description If set the invoice's invoicing external ID will be set to this value. */
3335
+ externalId?: string;
3336
+ /** @description If set the invoice's line external IDs will be set to this value.
3337
+ *
3338
+ * This can be used to reference the external system's entities in the
3339
+ * invoice. */
3340
+ lineExternalIds?: components['schemas']['CustomInvoicingLineExternalIdMapping'][];
3341
+ /** @description If set the invoice's line discount external IDs will be set to this value.
3342
+ *
3343
+ * This can be used to reference the external system's entities in the
3344
+ * invoice. */
3345
+ lineDiscountExternalIds?: components['schemas']['CustomInvoicingLineDiscountExternalIdMapping'][];
3346
+ };
3347
+ /** @description Custom invoicing tax config. */
3348
+ CustomInvoicingTaxConfig: {
3349
+ /**
3350
+ * Tax code
3351
+ * @description Tax code.
3352
+ *
3353
+ * The tax code should be interpreted by the custom invoicing provider.
3354
+ */
3355
+ code: string;
3356
+ };
3357
+ /** @description Update payment status request.
3358
+ *
3359
+ * Can be used to manipulate invoice's payment status (when custominvoicing app is being used). */
3360
+ CustomInvoicingUpdatePaymentStatusRequest: {
3361
+ /** @description The trigger to be executed on the invoice. */
3362
+ trigger: components['schemas']['CustomInvoicingPaymentTrigger'];
3363
+ };
3119
3364
  /** @description Plan input for custom subscription creation (without key and version). */
3120
3365
  CustomPlanInput: {
3121
3366
  /**
@@ -3283,8 +3528,12 @@ export interface components {
3283
3528
  };
3284
3529
  /** @description CustomerAppData
3285
3530
  * Stores the app specific data for the customer.
3286
- * One of: stripe, sandbox */
3287
- CustomerAppData: components['schemas']['StripeCustomerAppData'] | components['schemas']['SandboxCustomerAppData'];
3531
+ * One of: stripe, sandbox, custom_invoicing */
3532
+ CustomerAppData: components['schemas']['StripeCustomerAppData'] | components['schemas']['SandboxCustomerAppData'] | components['schemas']['CustomInvoicingCustomerAppData'];
3533
+ /** @description CustomerAppData
3534
+ * Stores the app specific data for the customer.
3535
+ * One of: stripe, sandbox, custom_invoicing */
3536
+ CustomerAppDataCreateOrUpdateItem: components['schemas']['StripeCustomerAppDataCreateOrUpdateItem'] | components['schemas']['SandboxCustomerAppData'] | components['schemas']['CustomInvoicingCustomerAppData'];
3288
3537
  /** @description Paginated response */
3289
3538
  CustomerAppDataPaginatedResponse: {
3290
3539
  /**
@@ -7866,6 +8115,32 @@ export interface components {
7866
8115
  */
7867
8116
  type: 'sandbox';
7868
8117
  };
8118
+ /** @description Resource update operation model. */
8119
+ SandboxAppReplaceUpdate: {
8120
+ /**
8121
+ * Display name
8122
+ * @description Human-readable name for the resource. Between 1 and 256 characters.
8123
+ */
8124
+ name: string;
8125
+ /**
8126
+ * Description
8127
+ * @description Optional description of the resource. Maximum 1024 characters.
8128
+ */
8129
+ description?: string;
8130
+ /**
8131
+ * Metadata
8132
+ * @description Additional metadata for the resource.
8133
+ */
8134
+ metadata?: components['schemas']['Metadata'] | null;
8135
+ /** @description Default for the app type
8136
+ * Only one app of each type can be default. */
8137
+ default: boolean;
8138
+ /**
8139
+ * @description The app's type is Sandbox. (enum property replaced by openapi-typescript)
8140
+ * @enum {string}
8141
+ */
8142
+ type: 'sandbox';
8143
+ };
7869
8144
  /** @description Sandbox Customer App Data. */
7870
8145
  SandboxCustomerAppData: {
7871
8146
  /** @description The installed sandbox app this data belongs to. */
@@ -7995,12 +8270,43 @@ export interface components {
7995
8270
  */
7996
8271
  type: 'stripe';
7997
8272
  /** @description The Stripe account ID. */
7998
- stripeAccountId: string;
8273
+ readonly stripeAccountId: string;
7999
8274
  /** @description Livemode, true if the app is in production mode. */
8000
- livemode: boolean;
8275
+ readonly livemode: boolean;
8001
8276
  /** @description The masked API key.
8002
8277
  * Only shows the first 8 and last 3 characters. */
8003
- maskedAPIKey: string;
8278
+ readonly maskedAPIKey: string;
8279
+ };
8280
+ /** @description Resource update operation model. */
8281
+ StripeAppReplaceUpdate: {
8282
+ /**
8283
+ * Display name
8284
+ * @description Human-readable name for the resource. Between 1 and 256 characters.
8285
+ */
8286
+ name: string;
8287
+ /**
8288
+ * Description
8289
+ * @description Optional description of the resource. Maximum 1024 characters.
8290
+ */
8291
+ description?: string;
8292
+ /**
8293
+ * Metadata
8294
+ * @description Additional metadata for the resource.
8295
+ */
8296
+ metadata?: components['schemas']['Metadata'] | null;
8297
+ /** @description Default for the app type
8298
+ * Only one app of each type can be default. */
8299
+ default: boolean;
8300
+ /**
8301
+ * @description The app's type is Stripe. (enum property replaced by openapi-typescript)
8302
+ * @enum {string}
8303
+ */
8304
+ type: 'stripe';
8305
+ /**
8306
+ * Format: password
8307
+ * @description The Stripe API key.
8308
+ */
8309
+ secretAPIKey?: string;
8004
8310
  };
8005
8311
  /**
8006
8312
  * @description Stripe CheckoutSession.mode
@@ -8034,11 +8340,36 @@ export interface components {
8034
8340
  /** @description The Stripe default payment method ID. */
8035
8341
  stripeDefaultPaymentMethodId?: string;
8036
8342
  };
8037
- /** @description The tax config for Stripe. */
8038
- StripeTaxConfig: {
8343
+ /**
8344
+ * @description Stripe Customer App Data.
8345
+ * @example {
8346
+ * "type": "stripe",
8347
+ * "stripeCustomerId": "cus_xxxxxxxxxxxxxx"
8348
+ * }
8349
+ */
8350
+ StripeCustomerAppDataCreateOrUpdateItem: {
8039
8351
  /**
8040
- * Tax code
8041
- * @description Product tax code.
8352
+ * App ID
8353
+ * @description The app ID.
8354
+ * If not provided, it will use the global default for the app type.
8355
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
8356
+ */
8357
+ id?: string;
8358
+ /**
8359
+ * @description The app name. (enum property replaced by openapi-typescript)
8360
+ * @enum {string}
8361
+ */
8362
+ type: 'stripe';
8363
+ /** @description The Stripe customer ID. */
8364
+ stripeCustomerId: string;
8365
+ /** @description The Stripe default payment method ID. */
8366
+ stripeDefaultPaymentMethodId?: string;
8367
+ };
8368
+ /** @description The tax config for Stripe. */
8369
+ StripeTaxConfig: {
8370
+ /**
8371
+ * Tax code
8372
+ * @description Product tax code.
8042
8373
  *
8043
8374
  * See: https://docs.stripe.com/tax/tax-codes
8044
8375
  * @example txcd_10000000
@@ -8903,6 +9234,11 @@ export interface components {
8903
9234
  * @description Stripe tax config.
8904
9235
  */
8905
9236
  stripe?: components['schemas']['StripeTaxConfig'];
9237
+ /**
9238
+ * Custom invoicing tax config
9239
+ * @description Custom invoicing tax config.
9240
+ */
9241
+ customInvoicing?: components['schemas']['CustomInvoicingTaxConfig'];
8906
9242
  };
8907
9243
  /**
8908
9244
  * @description The mode of the tiered price.
@@ -9368,11 +9704,11 @@ export type Address = components['schemas']['Address'];
9368
9704
  export type Alignment = components['schemas']['Alignment'];
9369
9705
  export type Annotations = components['schemas']['Annotations'];
9370
9706
  export type App = components['schemas']['App'];
9371
- export type AppBaseReplaceUpdate = components['schemas']['AppBaseReplaceUpdate'];
9372
9707
  export type AppCapability = components['schemas']['AppCapability'];
9373
9708
  export type AppCapabilityType = components['schemas']['AppCapabilityType'];
9374
9709
  export type AppPaginatedResponse = components['schemas']['AppPaginatedResponse'];
9375
9710
  export type AppReference = components['schemas']['AppReference'];
9711
+ export type AppReplaceUpdate = components['schemas']['AppReplaceUpdate'];
9376
9712
  export type AppStatus = components['schemas']['AppStatus'];
9377
9713
  export type AppType = components['schemas']['AppType'];
9378
9714
  export type BadRequestProblemResponse = components['schemas']['BadRequestProblemResponse'];
@@ -9432,12 +9768,26 @@ export type CreateStripeCheckoutSessionResult = components['schemas']['CreateStr
9432
9768
  export type CreditNoteOriginalInvoiceRef = components['schemas']['CreditNoteOriginalInvoiceRef'];
9433
9769
  export type Currency = components['schemas']['Currency'];
9434
9770
  export type CurrencyCode = components['schemas']['CurrencyCode'];
9771
+ export type CustomInvoicingApp = components['schemas']['CustomInvoicingApp'];
9772
+ export type CustomInvoicingAppReplaceUpdate = components['schemas']['CustomInvoicingAppReplaceUpdate'];
9773
+ export type CustomInvoicingCustomerAppData = components['schemas']['CustomInvoicingCustomerAppData'];
9774
+ export type CustomInvoicingDraftSynchronizedRequest = components['schemas']['CustomInvoicingDraftSynchronizedRequest'];
9775
+ export type CustomInvoicingFinalizedInvoicingRequest = components['schemas']['CustomInvoicingFinalizedInvoicingRequest'];
9776
+ export type CustomInvoicingFinalizedPaymentRequest = components['schemas']['CustomInvoicingFinalizedPaymentRequest'];
9777
+ export type CustomInvoicingFinalizedRequest = components['schemas']['CustomInvoicingFinalizedRequest'];
9778
+ export type CustomInvoicingLineDiscountExternalIdMapping = components['schemas']['CustomInvoicingLineDiscountExternalIdMapping'];
9779
+ export type CustomInvoicingLineExternalIdMapping = components['schemas']['CustomInvoicingLineExternalIdMapping'];
9780
+ export type CustomInvoicingPaymentTrigger = components['schemas']['CustomInvoicingPaymentTrigger'];
9781
+ export type CustomInvoicingSyncResult = components['schemas']['CustomInvoicingSyncResult'];
9782
+ export type CustomInvoicingTaxConfig = components['schemas']['CustomInvoicingTaxConfig'];
9783
+ export type CustomInvoicingUpdatePaymentStatusRequest = components['schemas']['CustomInvoicingUpdatePaymentStatusRequest'];
9435
9784
  export type CustomPlanInput = components['schemas']['CustomPlanInput'];
9436
9785
  export type CustomSubscriptionChange = components['schemas']['CustomSubscriptionChange'];
9437
9786
  export type CustomSubscriptionCreate = components['schemas']['CustomSubscriptionCreate'];
9438
9787
  export type Customer = components['schemas']['Customer'];
9439
9788
  export type CustomerAccess = components['schemas']['CustomerAccess'];
9440
9789
  export type CustomerAppData = components['schemas']['CustomerAppData'];
9790
+ export type CustomerAppDataCreateOrUpdateItem = components['schemas']['CustomerAppDataCreateOrUpdateItem'];
9441
9791
  export type CustomerAppDataPaginatedResponse = components['schemas']['CustomerAppDataPaginatedResponse'];
9442
9792
  export type CustomerCreate = components['schemas']['CustomerCreate'];
9443
9793
  export type CustomerExpand = components['schemas']['CustomerExpand'];
@@ -9637,13 +9987,16 @@ export type RecurringPeriodIntervalEnum = components['schemas']['RecurringPeriod
9637
9987
  export type RemovePhaseShifting = components['schemas']['RemovePhaseShifting'];
9638
9988
  export type ResetEntitlementUsageInput = components['schemas']['ResetEntitlementUsageInput'];
9639
9989
  export type SandboxApp = components['schemas']['SandboxApp'];
9990
+ export type SandboxAppReplaceUpdate = components['schemas']['SandboxAppReplaceUpdate'];
9640
9991
  export type SandboxCustomerAppData = components['schemas']['SandboxCustomerAppData'];
9641
9992
  export type ServiceUnavailableProblemResponse = components['schemas']['ServiceUnavailableProblemResponse'];
9642
9993
  export type SortOrder = components['schemas']['SortOrder'];
9643
9994
  export type StripeApiKeyInput = components['schemas']['StripeAPIKeyInput'];
9644
9995
  export type StripeApp = components['schemas']['StripeApp'];
9996
+ export type StripeAppReplaceUpdate = components['schemas']['StripeAppReplaceUpdate'];
9645
9997
  export type StripeCheckoutSessionMode = components['schemas']['StripeCheckoutSessionMode'];
9646
9998
  export type StripeCustomerAppData = components['schemas']['StripeCustomerAppData'];
9999
+ export type StripeCustomerAppDataCreateOrUpdateItem = components['schemas']['StripeCustomerAppDataCreateOrUpdateItem'];
9647
10000
  export type StripeTaxConfig = components['schemas']['StripeTaxConfig'];
9648
10001
  export type StripeWebhookEvent = components['schemas']['StripeWebhookEvent'];
9649
10002
  export type StripeWebhookResponse = components['schemas']['StripeWebhookResponse'];
@@ -10541,6 +10894,267 @@ export interface operations {
10541
10894
  };
10542
10895
  };
10543
10896
  };
10897
+ appCustomInvoicingDraftSynchronized: {
10898
+ parameters: {
10899
+ query?: never;
10900
+ header?: never;
10901
+ path: {
10902
+ invoiceId: string;
10903
+ };
10904
+ cookie?: never;
10905
+ };
10906
+ requestBody: {
10907
+ content: {
10908
+ 'application/json': components['schemas']['CustomInvoicingDraftSynchronizedRequest'];
10909
+ };
10910
+ };
10911
+ responses: {
10912
+ /** @description There is no content to send for this request, but the headers may be useful. */
10913
+ 204: {
10914
+ headers: {
10915
+ [name: string]: unknown;
10916
+ };
10917
+ content?: never;
10918
+ };
10919
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
10920
+ 400: {
10921
+ headers: {
10922
+ [name: string]: unknown;
10923
+ };
10924
+ content: {
10925
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
10926
+ };
10927
+ };
10928
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
10929
+ 401: {
10930
+ headers: {
10931
+ [name: string]: unknown;
10932
+ };
10933
+ content: {
10934
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
10935
+ };
10936
+ };
10937
+ /** @description The server understood the request but refuses to authorize it. */
10938
+ 403: {
10939
+ headers: {
10940
+ [name: string]: unknown;
10941
+ };
10942
+ content: {
10943
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
10944
+ };
10945
+ };
10946
+ /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
10947
+ 412: {
10948
+ headers: {
10949
+ [name: string]: unknown;
10950
+ };
10951
+ content: {
10952
+ 'application/problem+json': components['schemas']['PreconditionFailedProblemResponse'];
10953
+ };
10954
+ };
10955
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
10956
+ 500: {
10957
+ headers: {
10958
+ [name: string]: unknown;
10959
+ };
10960
+ content: {
10961
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
10962
+ };
10963
+ };
10964
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
10965
+ 503: {
10966
+ headers: {
10967
+ [name: string]: unknown;
10968
+ };
10969
+ content: {
10970
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
10971
+ };
10972
+ };
10973
+ /** @description An unexpected error response. */
10974
+ default: {
10975
+ headers: {
10976
+ [name: string]: unknown;
10977
+ };
10978
+ content: {
10979
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
10980
+ };
10981
+ };
10982
+ };
10983
+ };
10984
+ appCustomInvoicingIssuingSynchronized: {
10985
+ parameters: {
10986
+ query?: never;
10987
+ header?: never;
10988
+ path: {
10989
+ invoiceId: string;
10990
+ };
10991
+ cookie?: never;
10992
+ };
10993
+ requestBody: {
10994
+ content: {
10995
+ 'application/json': components['schemas']['CustomInvoicingFinalizedRequest'];
10996
+ };
10997
+ };
10998
+ responses: {
10999
+ /** @description There is no content to send for this request, but the headers may be useful. */
11000
+ 204: {
11001
+ headers: {
11002
+ [name: string]: unknown;
11003
+ };
11004
+ content?: never;
11005
+ };
11006
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
11007
+ 400: {
11008
+ headers: {
11009
+ [name: string]: unknown;
11010
+ };
11011
+ content: {
11012
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
11013
+ };
11014
+ };
11015
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
11016
+ 401: {
11017
+ headers: {
11018
+ [name: string]: unknown;
11019
+ };
11020
+ content: {
11021
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
11022
+ };
11023
+ };
11024
+ /** @description The server understood the request but refuses to authorize it. */
11025
+ 403: {
11026
+ headers: {
11027
+ [name: string]: unknown;
11028
+ };
11029
+ content: {
11030
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
11031
+ };
11032
+ };
11033
+ /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
11034
+ 412: {
11035
+ headers: {
11036
+ [name: string]: unknown;
11037
+ };
11038
+ content: {
11039
+ 'application/problem+json': components['schemas']['PreconditionFailedProblemResponse'];
11040
+ };
11041
+ };
11042
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
11043
+ 500: {
11044
+ headers: {
11045
+ [name: string]: unknown;
11046
+ };
11047
+ content: {
11048
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
11049
+ };
11050
+ };
11051
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
11052
+ 503: {
11053
+ headers: {
11054
+ [name: string]: unknown;
11055
+ };
11056
+ content: {
11057
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
11058
+ };
11059
+ };
11060
+ /** @description An unexpected error response. */
11061
+ default: {
11062
+ headers: {
11063
+ [name: string]: unknown;
11064
+ };
11065
+ content: {
11066
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
11067
+ };
11068
+ };
11069
+ };
11070
+ };
11071
+ appCustomInvoicingUpdatePaymentStatus: {
11072
+ parameters: {
11073
+ query?: never;
11074
+ header?: never;
11075
+ path: {
11076
+ invoiceId: string;
11077
+ };
11078
+ cookie?: never;
11079
+ };
11080
+ requestBody: {
11081
+ content: {
11082
+ 'application/json': components['schemas']['CustomInvoicingUpdatePaymentStatusRequest'];
11083
+ };
11084
+ };
11085
+ responses: {
11086
+ /** @description There is no content to send for this request, but the headers may be useful. */
11087
+ 204: {
11088
+ headers: {
11089
+ [name: string]: unknown;
11090
+ };
11091
+ content?: never;
11092
+ };
11093
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
11094
+ 400: {
11095
+ headers: {
11096
+ [name: string]: unknown;
11097
+ };
11098
+ content: {
11099
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse'];
11100
+ };
11101
+ };
11102
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
11103
+ 401: {
11104
+ headers: {
11105
+ [name: string]: unknown;
11106
+ };
11107
+ content: {
11108
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
11109
+ };
11110
+ };
11111
+ /** @description The server understood the request but refuses to authorize it. */
11112
+ 403: {
11113
+ headers: {
11114
+ [name: string]: unknown;
11115
+ };
11116
+ content: {
11117
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
11118
+ };
11119
+ };
11120
+ /** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
11121
+ 412: {
11122
+ headers: {
11123
+ [name: string]: unknown;
11124
+ };
11125
+ content: {
11126
+ 'application/problem+json': components['schemas']['PreconditionFailedProblemResponse'];
11127
+ };
11128
+ };
11129
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
11130
+ 500: {
11131
+ headers: {
11132
+ [name: string]: unknown;
11133
+ };
11134
+ content: {
11135
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
11136
+ };
11137
+ };
11138
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
11139
+ 503: {
11140
+ headers: {
11141
+ [name: string]: unknown;
11142
+ };
11143
+ content: {
11144
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
11145
+ };
11146
+ };
11147
+ /** @description An unexpected error response. */
11148
+ default: {
11149
+ headers: {
11150
+ [name: string]: unknown;
11151
+ };
11152
+ content: {
11153
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
11154
+ };
11155
+ };
11156
+ };
11157
+ };
10544
11158
  getApp: {
10545
11159
  parameters: {
10546
11160
  query?: never;
@@ -10646,7 +11260,7 @@ export interface operations {
10646
11260
  };
10647
11261
  requestBody: {
10648
11262
  content: {
10649
- 'application/json': components['schemas']['AppBaseReplaceUpdate'];
11263
+ 'application/json': components['schemas']['AppReplaceUpdate'];
10650
11264
  };
10651
11265
  };
10652
11266
  responses: {
@@ -13713,7 +14327,7 @@ export interface operations {
13713
14327
  };
13714
14328
  requestBody: {
13715
14329
  content: {
13716
- 'application/json': components['schemas']['CustomerAppData'][];
14330
+ 'application/json': components['schemas']['CustomerAppDataCreateOrUpdateItem'][];
13717
14331
  };
13718
14332
  };
13719
14333
  responses: {