@omnibase/core-js 0.9.18 → 0.10.0
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.
- package/.openapi-generator/FILES +44 -0
- package/README.md +34 -3
- package/docs/AddInvoiceLineItem200Response.md +36 -0
- package/docs/AddInvoiceLineItemRequest.md +38 -0
- package/docs/ConfigureWebhooks200Response.md +36 -0
- package/docs/CreateInvoice200Response.md +36 -0
- package/docs/CreateInvoiceRequest.md +40 -0
- package/docs/FinalizeInvoiceRequest.md +34 -0
- package/docs/GetMeterByID200Response.md +36 -0
- package/docs/GetPriceByID200Response.md +36 -0
- package/docs/GetProductByID200Response.md +36 -0
- package/docs/GetWebhookSecret200Response.md +36 -0
- package/docs/InvoiceLineItemResponse.md +38 -0
- package/docs/InvoiceResponse.md +46 -0
- package/docs/MeterResponse.md +34 -0
- package/docs/PriceResponse.md +36 -0
- package/docs/ProductResponse.md +34 -0
- package/docs/UpdateInvoiceRequest.md +36 -0
- package/docs/V1PaymentsApi.md +391 -0
- package/docs/V1StripeApi.md +213 -0
- package/docs/V1WebhooksApi.md +150 -0
- package/docs/WebhookEndpointConfig.md +40 -0
- package/docs/WebhookResult.md +46 -0
- package/docs/WebhookSecretResponse.md +48 -0
- package/docs/WebhooksConfigRequest.md +34 -0
- package/docs/WebhooksConfigResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/V1AuthApi.ts +2 -2
- package/src/apis/V1ConfigurationApi.ts +2 -2
- package/src/apis/V1EventsApi.ts +2 -2
- package/src/apis/V1PaymentsApi.ts +350 -2
- package/src/apis/V1PermissionsApi.ts +2 -2
- package/src/apis/V1StorageApi.ts +2 -2
- package/src/apis/V1StripeApi.ts +140 -2
- package/src/apis/V1TenantsApi.ts +2 -2
- package/src/apis/V1WebhooksApi.ts +132 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AcceptInvite200Response.ts +2 -2
- package/src/models/AcceptInviteRequest.ts +2 -2
- package/src/models/AcceptInviteResponse.ts +2 -2
- package/src/models/ActiveTenantResponse.ts +2 -2
- package/src/models/AddInvoiceLineItem200Response.ts +82 -0
- package/src/models/AddInvoiceLineItemRequest.ts +94 -0
- package/src/models/AddSubscription200Response.ts +2 -2
- package/src/models/AddSubscriptionRequest.ts +2 -2
- package/src/models/AddSubscriptionResponse.ts +2 -2
- package/src/models/ArchiveAllResponse.ts +2 -2
- package/src/models/ArchiveAllStripeConfig200Response.ts +2 -2
- package/src/models/BadRequest.ts +2 -2
- package/src/models/BadRequestResponse.ts +2 -2
- package/src/models/BillingInterval.ts +2 -2
- package/src/models/BillingStatusResponse.ts +2 -2
- package/src/models/CheckPermission200Response.ts +2 -2
- package/src/models/CheckPermissionRequest.ts +2 -2
- package/src/models/CheckPermissionRequestWithSubjectId.ts +2 -2
- package/src/models/CheckPermissionRequestWithSubjectSet.ts +2 -2
- package/src/models/CheckPermissionResponse.ts +2 -2
- package/src/models/ConfigHistoryItem.ts +2 -2
- package/src/models/ConfigHistoryPagination.ts +2 -2
- package/src/models/ConfigHistoryResponse.ts +2 -2
- package/src/models/ConfigureWebhooks200Response.ts +82 -0
- package/src/models/ConflictResponse.ts +2 -2
- package/src/models/ConvertStripeIDToConfigID200Response.ts +2 -2
- package/src/models/CreateCheckout200Response.ts +2 -2
- package/src/models/CreateCheckoutRequest.ts +2 -2
- package/src/models/CreateCheckoutResponse.ts +2 -2
- package/src/models/CreateCustomerPortal200Response.ts +2 -2
- package/src/models/CreateEmailTemplateRequest.ts +2 -2
- package/src/models/CreateInvite200Response.ts +2 -2
- package/src/models/CreateInvoice200Response.ts +82 -0
- package/src/models/CreateInvoiceRequest.ts +100 -0
- package/src/models/CreateOrUpdateEmailTemplate200Response.ts +2 -2
- package/src/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.ts +2 -2
- package/src/models/CreatePortalRequest.ts +2 -2
- package/src/models/CreatePortalResponse.ts +2 -2
- package/src/models/CreateRelationship200Response.ts +2 -2
- package/src/models/CreateRelationshipRequest.ts +2 -2
- package/src/models/CreateRelationshipRequestWithSubjectId.ts +2 -2
- package/src/models/CreateRelationshipRequestWithSubjectSet.ts +2 -2
- package/src/models/CreateRelationshipResponse.ts +2 -2
- package/src/models/CreateRole200Response.ts +2 -2
- package/src/models/CreateRoleRequest.ts +2 -2
- package/src/models/CreateTenant200Response.ts +2 -2
- package/src/models/CreateTenantRequest.ts +2 -2
- package/src/models/CreateTenantResponse.ts +2 -2
- package/src/models/CreateTenantUserInviteRequest.ts +2 -2
- package/src/models/CreateTenantUserInviteResponse.ts +2 -2
- package/src/models/CreateUser200Response.ts +2 -2
- package/src/models/CreateUserRequest.ts +2 -2
- package/src/models/CreateUserRequestName.ts +2 -2
- package/src/models/CurrencyCode.ts +2 -2
- package/src/models/DeleteEmailTemplate200Response.ts +2 -2
- package/src/models/DeleteEmailTemplate200ResponseAllOfData.ts +2 -2
- package/src/models/DeleteObject200Response.ts +2 -2
- package/src/models/DeleteObjectRequest.ts +2 -2
- package/src/models/DeleteRelationship200Response.ts +2 -2
- package/src/models/DeleteRelationshipRequest.ts +2 -2
- package/src/models/DeleteRelationshipRequestWithSubjectId.ts +2 -2
- package/src/models/DeleteRelationshipRequestWithSubjectSet.ts +2 -2
- package/src/models/DeleteRelationshipResponse.ts +2 -2
- package/src/models/DeleteRole200Response.ts +2 -2
- package/src/models/DeleteRoleResponse.ts +2 -2
- package/src/models/DeleteTenant200Response.ts +2 -2
- package/src/models/DeleteTenantResponse.ts +2 -2
- package/src/models/DeleteTenantUserRequest.ts +2 -2
- package/src/models/DeployPermissionNamespaces200Response.ts +2 -2
- package/src/models/DownloadFile200Response.ts +2 -2
- package/src/models/DownloadRequest.ts +2 -2
- package/src/models/DownloadResponse.ts +2 -2
- package/src/models/EmailTemplate.ts +2 -2
- package/src/models/ErrorResponse.ts +2 -2
- package/src/models/FinalizeInvoiceRequest.ts +65 -0
- package/src/models/ForbiddenResponse.ts +2 -2
- package/src/models/GetActiveTenant200Response.ts +2 -2
- package/src/models/GetEmailTemplates200Response.ts +2 -2
- package/src/models/GetEmailTemplates200ResponseAllOfData.ts +2 -2
- package/src/models/GetIdentity200Response.ts +2 -2
- package/src/models/GetMeterByID200Response.ts +82 -0
- package/src/models/GetPriceByID200Response.ts +82 -0
- package/src/models/GetProductByID200Response.ts +82 -0
- package/src/models/GetRoleDefinitions200Response.ts +2 -2
- package/src/models/GetSession200Response.ts +2 -2
- package/src/models/GetStripeConfig200Response.ts +2 -2
- package/src/models/GetStripeConfigHistory200Response.ts +2 -2
- package/src/models/GetTenantBillingStatus200Response.ts +2 -2
- package/src/models/GetTenantJWT200Response.ts +2 -2
- package/src/models/GetWebhookSecret200Response.ts +82 -0
- package/src/models/InternalServerError.ts +2 -2
- package/src/models/InternalServerErrorResponse.ts +2 -2
- package/src/models/InvoiceLineItemResponse.ts +82 -0
- package/src/models/InvoiceResponse.ts +115 -0
- package/src/models/JWTTokenResponse.ts +2 -2
- package/src/models/KratosIdentity.ts +2 -2
- package/src/models/KratosIdentityCredentials.ts +2 -2
- package/src/models/KratosIdentityCredentialsPassword.ts +2 -2
- package/src/models/KratosIdentityRecoveryAddressesInner.ts +2 -2
- package/src/models/KratosIdentityTraits.ts +2 -2
- package/src/models/KratosIdentityTraitsName.ts +2 -2
- package/src/models/KratosIdentityVerifiableAddressesInner.ts +2 -2
- package/src/models/ListRoles200Response.ts +2 -2
- package/src/models/ListTenantSubscriptions200Response.ts +2 -2
- package/src/models/ListTenantUsers200Response.ts +2 -2
- package/src/models/ListTenants200Response.ts +2 -2
- package/src/models/ListTenantsResponse.ts +2 -2
- package/src/models/Logout200Response.ts +2 -2
- package/src/models/LogoutResponse.ts +2 -2
- package/src/models/MessageResponse.ts +2 -2
- package/src/models/Meter.ts +2 -2
- package/src/models/MeterCustomerMapping.ts +2 -2
- package/src/models/MeterDefaultAggregation.ts +2 -2
- package/src/models/MeterResponse.ts +74 -0
- package/src/models/MeterValueSettings.ts +2 -2
- package/src/models/MeterWithStripeID.ts +2 -2
- package/src/models/MigrationErrorResponse.ts +2 -2
- package/src/models/MigrationSuccessResponse.ts +2 -2
- package/src/models/NamespaceDefinition.ts +2 -2
- package/src/models/NamespaceDefinitionsResponse.ts +2 -2
- package/src/models/NamespaceDeploymentResponse.ts +2 -2
- package/src/models/NotFound.ts +2 -2
- package/src/models/NotFoundResponse.ts +2 -2
- package/src/models/PerUnitBillingScheme.ts +2 -2
- package/src/models/PerUnitPrice.ts +2 -2
- package/src/models/Price.ts +2 -2
- package/src/models/PriceDisplay.ts +2 -2
- package/src/models/PriceLimit.ts +2 -2
- package/src/models/PriceResponse.ts +90 -0
- package/src/models/PriceUI.ts +2 -2
- package/src/models/PriceWithStripeID.ts +2 -2
- package/src/models/Product.ts +2 -2
- package/src/models/ProductResponse.ts +74 -0
- package/src/models/ProductUI.ts +2 -2
- package/src/models/ProductWithStripeIDs.ts +2 -2
- package/src/models/PullStripeConfig200Response.ts +2 -2
- package/src/models/RecordUsageRequest.ts +2 -2
- package/src/models/Relationship.ts +2 -2
- package/src/models/RemoveSubscription200Response.ts +2 -2
- package/src/models/RemoveSubscriptionRequest.ts +2 -2
- package/src/models/RemoveSubscriptionResponse.ts +2 -2
- package/src/models/Role.ts +2 -2
- package/src/models/RolesListResponse.ts +2 -2
- package/src/models/SchemasConflictResponse.ts +2 -2
- package/src/models/SessionResponse.ts +2 -2
- package/src/models/StripeConfigResponse.ts +2 -2
- package/src/models/StripeConfigUpdateRequest.ts +2 -2
- package/src/models/StripeConfigValidateRequest.ts +2 -2
- package/src/models/StripeConfiguration.ts +2 -2
- package/src/models/StripeConfigurationWithIDs.ts +2 -2
- package/src/models/StripeIDConversionResponse.ts +2 -2
- package/src/models/SubjectSet.ts +2 -2
- package/src/models/SubjectSetRequest.ts +2 -2
- package/src/models/SubscriptionResponse.ts +2 -2
- package/src/models/SuccessResponse.ts +2 -2
- package/src/models/SuccessResponseData.ts +2 -2
- package/src/models/SwitchActiveTenant200Response.ts +2 -2
- package/src/models/SwitchTenantRequest.ts +2 -2
- package/src/models/SwitchTenantResponse.ts +2 -2
- package/src/models/Tenant.ts +2 -2
- package/src/models/TenantInvite.ts +2 -2
- package/src/models/TenantSettings.ts +2 -2
- package/src/models/TenantUserResponse.ts +2 -2
- package/src/models/Tier.ts +2 -2
- package/src/models/TierUpTo.ts +2 -2
- package/src/models/TieredBillingScheme.ts +2 -2
- package/src/models/TieredPrice.ts +2 -2
- package/src/models/TiersMode.ts +2 -2
- package/src/models/Unauthorized.ts +2 -2
- package/src/models/UnauthorizedResponse.ts +2 -2
- package/src/models/UpdateInvoiceRequest.ts +73 -0
- package/src/models/UpdateRoleRequest.ts +2 -2
- package/src/models/UpdateTenantUserRole200Response.ts +2 -2
- package/src/models/UpdateTenantUserRoleRequest.ts +2 -2
- package/src/models/UpdateTenantUserRoleResponse.ts +2 -2
- package/src/models/UploadFile200Response.ts +2 -2
- package/src/models/UploadRequest.ts +2 -2
- package/src/models/UploadResponse.ts +2 -2
- package/src/models/UsageType.ts +2 -2
- package/src/models/UserTenantListItem.ts +2 -2
- package/src/models/WebhookEndpointConfig.ts +91 -0
- package/src/models/WebhookResult.ts +131 -0
- package/src/models/WebhookSecretResponse.ts +127 -0
- package/src/models/WebhooksConfigRequest.ts +74 -0
- package/src/models/WebhooksConfigResponse.ts +74 -0
- package/src/models/WhoAmI200Response.ts +2 -2
- package/src/models/WhoAmIResponse.ts +2 -2
- package/src/models/index.ts +21 -0
- package/src/runtime.ts +2 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# GetWebhookSecret200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`status` | number
|
|
10
|
+
`data` | [WebhookSecretResponse](WebhookSecretResponse.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetWebhookSecret200Response } from '@omnibase/core-js'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"status": 200,
|
|
20
|
+
"data": null,
|
|
21
|
+
} satisfies GetWebhookSecret200Response
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetWebhookSecret200Response
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# InvoiceLineItemResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`amount` | number
|
|
11
|
+
`description` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { InvoiceLineItemResponse } from '@omnibase/core-js'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": ii_1234567890,
|
|
21
|
+
"amount": 1000,
|
|
22
|
+
"description": Platform fee,
|
|
23
|
+
} satisfies InvoiceLineItemResponse
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as InvoiceLineItemResponse
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# InvoiceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`status` | string
|
|
11
|
+
`amountDue` | number
|
|
12
|
+
`currency` | string
|
|
13
|
+
`customerId` | string
|
|
14
|
+
`invoicePdf` | string
|
|
15
|
+
`hostedInvoiceUrl` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { InvoiceResponse } from '@omnibase/core-js'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"id": in_1234567890,
|
|
25
|
+
"status": draft,
|
|
26
|
+
"amountDue": 2000,
|
|
27
|
+
"currency": usd,
|
|
28
|
+
"customerId": cus_1234567890,
|
|
29
|
+
"invoicePdf": https://pay.stripe.com/invoice/...,
|
|
30
|
+
"hostedInvoiceUrl": https://invoice.stripe.com/i/...,
|
|
31
|
+
} satisfies InvoiceResponse
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as InvoiceResponse
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# MeterResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`meter` | [MeterWithStripeID](MeterWithStripeID.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { MeterResponse } from '@omnibase/core-js'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"meter": null,
|
|
19
|
+
} satisfies MeterResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as MeterResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PriceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`price` | [PriceWithStripeID](PriceWithStripeID.md)
|
|
10
|
+
`product` | [ProductWithStripeIDs](ProductWithStripeIDs.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PriceResponse } from '@omnibase/core-js'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"price": null,
|
|
20
|
+
"product": null,
|
|
21
|
+
} satisfies PriceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PriceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`product` | [ProductWithStripeIDs](ProductWithStripeIDs.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductResponse } from '@omnibase/core-js'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"product": null,
|
|
19
|
+
} satisfies ProductResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateInvoiceRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`description` | string
|
|
10
|
+
`metadata` | { [key: string]: string; }
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { UpdateInvoiceRequest } from '@omnibase/core-js'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"description": Monthly subscription - January 2025,
|
|
20
|
+
"metadata": null,
|
|
21
|
+
} satisfies UpdateInvoiceRequest
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateInvoiceRequest
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/V1PaymentsApi.md
CHANGED
|
@@ -4,12 +4,99 @@ All URIs are relative to *https://api.omnibase.tech*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
| [**addInvoiceLineItem**](V1PaymentsApi.md#addinvoicelineitemoperation) | **POST** /api/v1/payments/invoices/{invoice_id}/items | Add invoice line item |
|
|
7
8
|
| [**createCheckout**](V1PaymentsApi.md#createcheckoutoperation) | **POST** /api/v1/payments/checkout | Create checkout session |
|
|
8
9
|
| [**createCustomerPortal**](V1PaymentsApi.md#createcustomerportal) | **POST** /api/v1/payments/portal | Create customer portal session |
|
|
10
|
+
| [**createInvoice**](V1PaymentsApi.md#createinvoiceoperation) | **POST** /api/v1/payments/invoices | Create invoice |
|
|
11
|
+
| [**finalizeInvoice**](V1PaymentsApi.md#finalizeinvoiceoperation) | **POST** /api/v1/payments/invoices/{invoice_id}/finalize | Finalize invoice |
|
|
12
|
+
| [**getInvoice**](V1PaymentsApi.md#getinvoice) | **GET** /api/v1/payments/invoices/{invoice_id} | Get invoice |
|
|
9
13
|
| [**recordUsage**](V1PaymentsApi.md#recordusageoperation) | **POST** /api/v1/payments/usage | Record metered usage |
|
|
14
|
+
| [**updateInvoice**](V1PaymentsApi.md#updateinvoiceoperation) | **PATCH** /api/v1/payments/invoices/{invoice_id} | Update invoice |
|
|
10
15
|
|
|
11
16
|
|
|
12
17
|
|
|
18
|
+
## addInvoiceLineItem
|
|
19
|
+
|
|
20
|
+
> AddInvoiceLineItem200Response addInvoiceLineItem(xServiceKey, invoiceId, addInvoiceLineItemRequest, xTenantId, xStripeCustomerId)
|
|
21
|
+
|
|
22
|
+
Add invoice line item
|
|
23
|
+
|
|
24
|
+
Adds a new line item to a draft invoice. ## Authentication Requires service key authentication via `X-Service-Key` header. ## Customer Identification You must provide the Stripe customer ID using ONE of: - `X-Stripe-Customer-Id` header: Directly specify the Stripe customer ID - `X-Tenant-Id` header: Look up the Stripe customer ID from the tenant\'s configuration ## Prerequisites - Invoice must be in draft status ## Use Cases - Adding platform fees - Adding additional charges - Custom billing line items
|
|
25
|
+
|
|
26
|
+
### Example
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
import {
|
|
30
|
+
Configuration,
|
|
31
|
+
V1PaymentsApi,
|
|
32
|
+
} from '@omnibase/core-js';
|
|
33
|
+
import type { AddInvoiceLineItemOperationRequest } from '@omnibase/core-js';
|
|
34
|
+
|
|
35
|
+
async function example() {
|
|
36
|
+
console.log("🚀 Testing @omnibase/core-js SDK...");
|
|
37
|
+
const api = new V1PaymentsApi();
|
|
38
|
+
|
|
39
|
+
const body = {
|
|
40
|
+
// string | Service key for authentication
|
|
41
|
+
xServiceKey: xServiceKey_example,
|
|
42
|
+
// string | Stripe Invoice ID
|
|
43
|
+
invoiceId: invoiceId_example,
|
|
44
|
+
// AddInvoiceLineItemRequest
|
|
45
|
+
addInvoiceLineItemRequest: ...,
|
|
46
|
+
// string | Tenant ID (UUID) - Used to look up the Stripe customer ID from tenant configuration. Required if X-Stripe-Customer-Id is not provided. (optional)
|
|
47
|
+
xTenantId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
48
|
+
// string | Stripe Customer ID (e.g., cus_xxx) - Directly specify the customer. Required if X-Tenant-Id is not provided. (optional)
|
|
49
|
+
xStripeCustomerId: xStripeCustomerId_example,
|
|
50
|
+
} satisfies AddInvoiceLineItemOperationRequest;
|
|
51
|
+
|
|
52
|
+
try {
|
|
53
|
+
const data = await api.addInvoiceLineItem(body);
|
|
54
|
+
console.log(data);
|
|
55
|
+
} catch (error) {
|
|
56
|
+
console.error(error);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Run the test
|
|
61
|
+
example().catch(console.error);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Parameters
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
| Name | Type | Description | Notes |
|
|
68
|
+
|------------- | ------------- | ------------- | -------------|
|
|
69
|
+
| **xServiceKey** | `string` | Service key for authentication | [Defaults to `undefined`] |
|
|
70
|
+
| **invoiceId** | `string` | Stripe Invoice ID | [Defaults to `undefined`] |
|
|
71
|
+
| **addInvoiceLineItemRequest** | [AddInvoiceLineItemRequest](AddInvoiceLineItemRequest.md) | | |
|
|
72
|
+
| **xTenantId** | `string` | Tenant ID (UUID) - Used to look up the Stripe customer ID from tenant configuration. Required if X-Stripe-Customer-Id is not provided. | [Optional] [Defaults to `undefined`] |
|
|
73
|
+
| **xStripeCustomerId** | `string` | Stripe Customer ID (e.g., cus_xxx) - Directly specify the customer. Required if X-Tenant-Id is not provided. | [Optional] [Defaults to `undefined`] |
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
[**AddInvoiceLineItem200Response**](AddInvoiceLineItem200Response.md)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
No authorization required
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: `application/json`
|
|
86
|
+
- **Accept**: `application/json`, `text/plain`
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### HTTP response details
|
|
90
|
+
| Status code | Description | Response headers |
|
|
91
|
+
|-------------|-------------|------------------|
|
|
92
|
+
| **200** | Line item added successfully | - |
|
|
93
|
+
| **400** | Bad Request - Invalid request parameters | - |
|
|
94
|
+
| **401** | Unauthorized - Authentication required | - |
|
|
95
|
+
| **500** | Internal Server Error - Server encountered an error | - |
|
|
96
|
+
|
|
97
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
98
|
+
|
|
99
|
+
|
|
13
100
|
## createCheckout
|
|
14
101
|
|
|
15
102
|
> CreateCheckout200Response createCheckout(createCheckoutRequest)
|
|
@@ -151,6 +238,234 @@ No authorization required
|
|
|
151
238
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
152
239
|
|
|
153
240
|
|
|
241
|
+
## createInvoice
|
|
242
|
+
|
|
243
|
+
> CreateInvoice200Response createInvoice(xServiceKey, createInvoiceRequest, xTenantId, xStripeCustomerId)
|
|
244
|
+
|
|
245
|
+
Create invoice
|
|
246
|
+
|
|
247
|
+
Creates a new draft invoice for the specified customer. ## Authentication Requires service key authentication via `X-Service-Key` header. ## Customer Identification You must provide the Stripe customer ID using ONE of: - `X-Stripe-Customer-Id` header: Directly specify the Stripe customer ID - `X-Tenant-Id` header: Look up the Stripe customer ID from the tenant\'s configuration ## Use Cases - Creating invoices for platform fees - Manual billing scenarios - Custom invoice generation
|
|
248
|
+
|
|
249
|
+
### Example
|
|
250
|
+
|
|
251
|
+
```ts
|
|
252
|
+
import {
|
|
253
|
+
Configuration,
|
|
254
|
+
V1PaymentsApi,
|
|
255
|
+
} from '@omnibase/core-js';
|
|
256
|
+
import type { CreateInvoiceOperationRequest } from '@omnibase/core-js';
|
|
257
|
+
|
|
258
|
+
async function example() {
|
|
259
|
+
console.log("🚀 Testing @omnibase/core-js SDK...");
|
|
260
|
+
const api = new V1PaymentsApi();
|
|
261
|
+
|
|
262
|
+
const body = {
|
|
263
|
+
// string | Service key for authentication
|
|
264
|
+
xServiceKey: xServiceKey_example,
|
|
265
|
+
// CreateInvoiceRequest
|
|
266
|
+
createInvoiceRequest: ...,
|
|
267
|
+
// string | Tenant ID (UUID) - Used to look up the Stripe customer ID from tenant configuration. Required if X-Stripe-Customer-Id is not provided. (optional)
|
|
268
|
+
xTenantId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
269
|
+
// string | Stripe Customer ID (e.g., cus_xxx) - Directly specify the customer. Required if X-Tenant-Id is not provided. (optional)
|
|
270
|
+
xStripeCustomerId: xStripeCustomerId_example,
|
|
271
|
+
} satisfies CreateInvoiceOperationRequest;
|
|
272
|
+
|
|
273
|
+
try {
|
|
274
|
+
const data = await api.createInvoice(body);
|
|
275
|
+
console.log(data);
|
|
276
|
+
} catch (error) {
|
|
277
|
+
console.error(error);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// Run the test
|
|
282
|
+
example().catch(console.error);
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Parameters
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
| Name | Type | Description | Notes |
|
|
289
|
+
|------------- | ------------- | ------------- | -------------|
|
|
290
|
+
| **xServiceKey** | `string` | Service key for authentication | [Defaults to `undefined`] |
|
|
291
|
+
| **createInvoiceRequest** | [CreateInvoiceRequest](CreateInvoiceRequest.md) | | |
|
|
292
|
+
| **xTenantId** | `string` | Tenant ID (UUID) - Used to look up the Stripe customer ID from tenant configuration. Required if X-Stripe-Customer-Id is not provided. | [Optional] [Defaults to `undefined`] |
|
|
293
|
+
| **xStripeCustomerId** | `string` | Stripe Customer ID (e.g., cus_xxx) - Directly specify the customer. Required if X-Tenant-Id is not provided. | [Optional] [Defaults to `undefined`] |
|
|
294
|
+
|
|
295
|
+
### Return type
|
|
296
|
+
|
|
297
|
+
[**CreateInvoice200Response**](CreateInvoice200Response.md)
|
|
298
|
+
|
|
299
|
+
### Authorization
|
|
300
|
+
|
|
301
|
+
No authorization required
|
|
302
|
+
|
|
303
|
+
### HTTP request headers
|
|
304
|
+
|
|
305
|
+
- **Content-Type**: `application/json`
|
|
306
|
+
- **Accept**: `application/json`, `text/plain`
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
### HTTP response details
|
|
310
|
+
| Status code | Description | Response headers |
|
|
311
|
+
|-------------|-------------|------------------|
|
|
312
|
+
| **200** | Invoice created successfully | - |
|
|
313
|
+
| **400** | Bad Request - Invalid request parameters | - |
|
|
314
|
+
| **401** | Unauthorized - Authentication required | - |
|
|
315
|
+
| **500** | Internal Server Error - Server encountered an error | - |
|
|
316
|
+
|
|
317
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
## finalizeInvoice
|
|
321
|
+
|
|
322
|
+
> CreateInvoice200Response finalizeInvoice(xServiceKey, invoiceId, finalizeInvoiceRequest)
|
|
323
|
+
|
|
324
|
+
Finalize invoice
|
|
325
|
+
|
|
326
|
+
Finalizes a draft invoice, optionally auto-advancing to send it immediately. ## Authentication Requires service key authentication via `X-Service-Key` header. ## Prerequisites - Invoice must be in draft status ## Use Cases - Approving invoices for sending - Completing invoice preparation - Triggering invoice emails
|
|
327
|
+
|
|
328
|
+
### Example
|
|
329
|
+
|
|
330
|
+
```ts
|
|
331
|
+
import {
|
|
332
|
+
Configuration,
|
|
333
|
+
V1PaymentsApi,
|
|
334
|
+
} from '@omnibase/core-js';
|
|
335
|
+
import type { FinalizeInvoiceOperationRequest } from '@omnibase/core-js';
|
|
336
|
+
|
|
337
|
+
async function example() {
|
|
338
|
+
console.log("🚀 Testing @omnibase/core-js SDK...");
|
|
339
|
+
const api = new V1PaymentsApi();
|
|
340
|
+
|
|
341
|
+
const body = {
|
|
342
|
+
// string | Service key for authentication
|
|
343
|
+
xServiceKey: xServiceKey_example,
|
|
344
|
+
// string | Stripe Invoice ID
|
|
345
|
+
invoiceId: invoiceId_example,
|
|
346
|
+
// FinalizeInvoiceRequest
|
|
347
|
+
finalizeInvoiceRequest: ...,
|
|
348
|
+
} satisfies FinalizeInvoiceOperationRequest;
|
|
349
|
+
|
|
350
|
+
try {
|
|
351
|
+
const data = await api.finalizeInvoice(body);
|
|
352
|
+
console.log(data);
|
|
353
|
+
} catch (error) {
|
|
354
|
+
console.error(error);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// Run the test
|
|
359
|
+
example().catch(console.error);
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
### Parameters
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
| Name | Type | Description | Notes |
|
|
366
|
+
|------------- | ------------- | ------------- | -------------|
|
|
367
|
+
| **xServiceKey** | `string` | Service key for authentication | [Defaults to `undefined`] |
|
|
368
|
+
| **invoiceId** | `string` | Stripe Invoice ID | [Defaults to `undefined`] |
|
|
369
|
+
| **finalizeInvoiceRequest** | [FinalizeInvoiceRequest](FinalizeInvoiceRequest.md) | | |
|
|
370
|
+
|
|
371
|
+
### Return type
|
|
372
|
+
|
|
373
|
+
[**CreateInvoice200Response**](CreateInvoice200Response.md)
|
|
374
|
+
|
|
375
|
+
### Authorization
|
|
376
|
+
|
|
377
|
+
No authorization required
|
|
378
|
+
|
|
379
|
+
### HTTP request headers
|
|
380
|
+
|
|
381
|
+
- **Content-Type**: `application/json`
|
|
382
|
+
- **Accept**: `application/json`, `text/plain`
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
### HTTP response details
|
|
386
|
+
| Status code | Description | Response headers |
|
|
387
|
+
|-------------|-------------|------------------|
|
|
388
|
+
| **200** | Invoice finalized successfully | - |
|
|
389
|
+
| **400** | Bad Request - Invalid request parameters | - |
|
|
390
|
+
| **401** | Unauthorized - Authentication required | - |
|
|
391
|
+
| **500** | Internal Server Error - Server encountered an error | - |
|
|
392
|
+
|
|
393
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
## getInvoice
|
|
397
|
+
|
|
398
|
+
> CreateInvoice200Response getInvoice(xServiceKey, invoiceId)
|
|
399
|
+
|
|
400
|
+
Get invoice
|
|
401
|
+
|
|
402
|
+
Retrieves a Stripe invoice by its ID. ## Authentication Requires service key authentication via `X-Service-Key` header. ## Use Cases - Webhook processing - Invoice status checking - Invoice data retrieval
|
|
403
|
+
|
|
404
|
+
### Example
|
|
405
|
+
|
|
406
|
+
```ts
|
|
407
|
+
import {
|
|
408
|
+
Configuration,
|
|
409
|
+
V1PaymentsApi,
|
|
410
|
+
} from '@omnibase/core-js';
|
|
411
|
+
import type { GetInvoiceRequest } from '@omnibase/core-js';
|
|
412
|
+
|
|
413
|
+
async function example() {
|
|
414
|
+
console.log("🚀 Testing @omnibase/core-js SDK...");
|
|
415
|
+
const api = new V1PaymentsApi();
|
|
416
|
+
|
|
417
|
+
const body = {
|
|
418
|
+
// string | Service key for authentication
|
|
419
|
+
xServiceKey: xServiceKey_example,
|
|
420
|
+
// string | Stripe Invoice ID
|
|
421
|
+
invoiceId: invoiceId_example,
|
|
422
|
+
} satisfies GetInvoiceRequest;
|
|
423
|
+
|
|
424
|
+
try {
|
|
425
|
+
const data = await api.getInvoice(body);
|
|
426
|
+
console.log(data);
|
|
427
|
+
} catch (error) {
|
|
428
|
+
console.error(error);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// Run the test
|
|
433
|
+
example().catch(console.error);
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
### Parameters
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
| Name | Type | Description | Notes |
|
|
440
|
+
|------------- | ------------- | ------------- | -------------|
|
|
441
|
+
| **xServiceKey** | `string` | Service key for authentication | [Defaults to `undefined`] |
|
|
442
|
+
| **invoiceId** | `string` | Stripe Invoice ID | [Defaults to `undefined`] |
|
|
443
|
+
|
|
444
|
+
### Return type
|
|
445
|
+
|
|
446
|
+
[**CreateInvoice200Response**](CreateInvoice200Response.md)
|
|
447
|
+
|
|
448
|
+
### Authorization
|
|
449
|
+
|
|
450
|
+
No authorization required
|
|
451
|
+
|
|
452
|
+
### HTTP request headers
|
|
453
|
+
|
|
454
|
+
- **Content-Type**: Not defined
|
|
455
|
+
- **Accept**: `application/json`, `text/plain`
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
### HTTP response details
|
|
459
|
+
| Status code | Description | Response headers |
|
|
460
|
+
|-------------|-------------|------------------|
|
|
461
|
+
| **200** | Invoice retrieved successfully | - |
|
|
462
|
+
| **400** | Bad Request - Invalid request parameters | - |
|
|
463
|
+
| **401** | Unauthorized - Authentication required | - |
|
|
464
|
+
| **500** | Internal Server Error - Server encountered an error | - |
|
|
465
|
+
|
|
466
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
467
|
+
|
|
468
|
+
|
|
154
469
|
## recordUsage
|
|
155
470
|
|
|
156
471
|
> SuccessResponse recordUsage(recordUsageRequest)
|
|
@@ -220,3 +535,79 @@ No authorization required
|
|
|
220
535
|
|
|
221
536
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
222
537
|
|
|
538
|
+
|
|
539
|
+
## updateInvoice
|
|
540
|
+
|
|
541
|
+
> CreateInvoice200Response updateInvoice(xServiceKey, invoiceId, updateInvoiceRequest)
|
|
542
|
+
|
|
543
|
+
Update invoice
|
|
544
|
+
|
|
545
|
+
Updates a draft invoice\'s description and metadata. ## Authentication Requires service key authentication via `X-Service-Key` header. ## Prerequisites - Invoice must be in draft status ## Use Cases - Adding custom descriptions - Adding metadata for tracking - Customizing invoice before sending
|
|
546
|
+
|
|
547
|
+
### Example
|
|
548
|
+
|
|
549
|
+
```ts
|
|
550
|
+
import {
|
|
551
|
+
Configuration,
|
|
552
|
+
V1PaymentsApi,
|
|
553
|
+
} from '@omnibase/core-js';
|
|
554
|
+
import type { UpdateInvoiceOperationRequest } from '@omnibase/core-js';
|
|
555
|
+
|
|
556
|
+
async function example() {
|
|
557
|
+
console.log("🚀 Testing @omnibase/core-js SDK...");
|
|
558
|
+
const api = new V1PaymentsApi();
|
|
559
|
+
|
|
560
|
+
const body = {
|
|
561
|
+
// string | Service key for authentication
|
|
562
|
+
xServiceKey: xServiceKey_example,
|
|
563
|
+
// string | Stripe Invoice ID
|
|
564
|
+
invoiceId: invoiceId_example,
|
|
565
|
+
// UpdateInvoiceRequest
|
|
566
|
+
updateInvoiceRequest: ...,
|
|
567
|
+
} satisfies UpdateInvoiceOperationRequest;
|
|
568
|
+
|
|
569
|
+
try {
|
|
570
|
+
const data = await api.updateInvoice(body);
|
|
571
|
+
console.log(data);
|
|
572
|
+
} catch (error) {
|
|
573
|
+
console.error(error);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
// Run the test
|
|
578
|
+
example().catch(console.error);
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
### Parameters
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
| Name | Type | Description | Notes |
|
|
585
|
+
|------------- | ------------- | ------------- | -------------|
|
|
586
|
+
| **xServiceKey** | `string` | Service key for authentication | [Defaults to `undefined`] |
|
|
587
|
+
| **invoiceId** | `string` | Stripe Invoice ID | [Defaults to `undefined`] |
|
|
588
|
+
| **updateInvoiceRequest** | [UpdateInvoiceRequest](UpdateInvoiceRequest.md) | | |
|
|
589
|
+
|
|
590
|
+
### Return type
|
|
591
|
+
|
|
592
|
+
[**CreateInvoice200Response**](CreateInvoice200Response.md)
|
|
593
|
+
|
|
594
|
+
### Authorization
|
|
595
|
+
|
|
596
|
+
No authorization required
|
|
597
|
+
|
|
598
|
+
### HTTP request headers
|
|
599
|
+
|
|
600
|
+
- **Content-Type**: `application/json`
|
|
601
|
+
- **Accept**: `application/json`, `text/plain`
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
### HTTP response details
|
|
605
|
+
| Status code | Description | Response headers |
|
|
606
|
+
|-------------|-------------|------------------|
|
|
607
|
+
| **200** | Invoice updated successfully | - |
|
|
608
|
+
| **400** | Bad Request - Invalid request parameters | - |
|
|
609
|
+
| **401** | Unauthorized - Authentication required | - |
|
|
610
|
+
| **500** | Internal Server Error - Server encountered an error | - |
|
|
611
|
+
|
|
612
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
613
|
+
|