@omnibase/core-js 0.9.18 → 0.10.1

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 (229) hide show
  1. package/.openapi-generator/FILES +44 -0
  2. package/README.md +34 -3
  3. package/docs/AddInvoiceLineItem200Response.md +36 -0
  4. package/docs/AddInvoiceLineItemRequest.md +38 -0
  5. package/docs/ConfigureWebhooks200Response.md +36 -0
  6. package/docs/CreateInvoice200Response.md +36 -0
  7. package/docs/CreateInvoiceRequest.md +40 -0
  8. package/docs/FinalizeInvoiceRequest.md +34 -0
  9. package/docs/GetMeterByID200Response.md +36 -0
  10. package/docs/GetPriceByID200Response.md +36 -0
  11. package/docs/GetProductByID200Response.md +36 -0
  12. package/docs/GetWebhookSecret200Response.md +36 -0
  13. package/docs/InvoiceLineItemResponse.md +38 -0
  14. package/docs/InvoiceResponse.md +46 -0
  15. package/docs/MeterResponse.md +34 -0
  16. package/docs/PerUnitPrice.md +1 -1
  17. package/docs/Price.md +1 -1
  18. package/docs/PriceResponse.md +36 -0
  19. package/docs/PriceWithStripeID.md +1 -1
  20. package/docs/ProductResponse.md +34 -0
  21. package/docs/UpdateInvoiceRequest.md +36 -0
  22. package/docs/V1PaymentsApi.md +391 -0
  23. package/docs/V1StripeApi.md +213 -0
  24. package/docs/V1WebhooksApi.md +150 -0
  25. package/docs/WebhookEndpointConfig.md +40 -0
  26. package/docs/WebhookResult.md +46 -0
  27. package/docs/WebhookSecretResponse.md +48 -0
  28. package/docs/WebhooksConfigRequest.md +34 -0
  29. package/docs/WebhooksConfigResponse.md +34 -0
  30. package/package.json +1 -1
  31. package/src/apis/V1AuthApi.ts +2 -2
  32. package/src/apis/V1ConfigurationApi.ts +2 -2
  33. package/src/apis/V1EventsApi.ts +2 -2
  34. package/src/apis/V1PaymentsApi.ts +350 -2
  35. package/src/apis/V1PermissionsApi.ts +2 -2
  36. package/src/apis/V1StorageApi.ts +2 -2
  37. package/src/apis/V1StripeApi.ts +140 -2
  38. package/src/apis/V1TenantsApi.ts +2 -2
  39. package/src/apis/V1WebhooksApi.ts +132 -0
  40. package/src/apis/index.ts +1 -0
  41. package/src/models/AcceptInvite200Response.ts +2 -2
  42. package/src/models/AcceptInviteRequest.ts +2 -2
  43. package/src/models/AcceptInviteResponse.ts +2 -2
  44. package/src/models/ActiveTenantResponse.ts +2 -2
  45. package/src/models/AddInvoiceLineItem200Response.ts +82 -0
  46. package/src/models/AddInvoiceLineItemRequest.ts +94 -0
  47. package/src/models/AddSubscription200Response.ts +2 -2
  48. package/src/models/AddSubscriptionRequest.ts +2 -2
  49. package/src/models/AddSubscriptionResponse.ts +2 -2
  50. package/src/models/ArchiveAllResponse.ts +2 -2
  51. package/src/models/ArchiveAllStripeConfig200Response.ts +2 -2
  52. package/src/models/BadRequest.ts +2 -2
  53. package/src/models/BadRequestResponse.ts +2 -2
  54. package/src/models/BillingInterval.ts +2 -2
  55. package/src/models/BillingStatusResponse.ts +2 -2
  56. package/src/models/CheckPermission200Response.ts +2 -2
  57. package/src/models/CheckPermissionRequest.ts +2 -2
  58. package/src/models/CheckPermissionRequestWithSubjectId.ts +2 -2
  59. package/src/models/CheckPermissionRequestWithSubjectSet.ts +2 -2
  60. package/src/models/CheckPermissionResponse.ts +2 -2
  61. package/src/models/ConfigHistoryItem.ts +2 -2
  62. package/src/models/ConfigHistoryPagination.ts +2 -2
  63. package/src/models/ConfigHistoryResponse.ts +2 -2
  64. package/src/models/ConfigureWebhooks200Response.ts +82 -0
  65. package/src/models/ConflictResponse.ts +2 -2
  66. package/src/models/ConvertStripeIDToConfigID200Response.ts +2 -2
  67. package/src/models/CreateCheckout200Response.ts +2 -2
  68. package/src/models/CreateCheckoutRequest.ts +2 -2
  69. package/src/models/CreateCheckoutResponse.ts +2 -2
  70. package/src/models/CreateCustomerPortal200Response.ts +2 -2
  71. package/src/models/CreateEmailTemplateRequest.ts +2 -2
  72. package/src/models/CreateInvite200Response.ts +2 -2
  73. package/src/models/CreateInvoice200Response.ts +82 -0
  74. package/src/models/CreateInvoiceRequest.ts +100 -0
  75. package/src/models/CreateOrUpdateEmailTemplate200Response.ts +2 -2
  76. package/src/models/CreateOrUpdateEmailTemplate200ResponseAllOfData.ts +2 -2
  77. package/src/models/CreatePortalRequest.ts +2 -2
  78. package/src/models/CreatePortalResponse.ts +2 -2
  79. package/src/models/CreateRelationship200Response.ts +2 -2
  80. package/src/models/CreateRelationshipRequest.ts +2 -2
  81. package/src/models/CreateRelationshipRequestWithSubjectId.ts +2 -2
  82. package/src/models/CreateRelationshipRequestWithSubjectSet.ts +2 -2
  83. package/src/models/CreateRelationshipResponse.ts +2 -2
  84. package/src/models/CreateRole200Response.ts +2 -2
  85. package/src/models/CreateRoleRequest.ts +2 -2
  86. package/src/models/CreateTenant200Response.ts +2 -2
  87. package/src/models/CreateTenantRequest.ts +2 -2
  88. package/src/models/CreateTenantResponse.ts +2 -2
  89. package/src/models/CreateTenantUserInviteRequest.ts +2 -2
  90. package/src/models/CreateTenantUserInviteResponse.ts +2 -2
  91. package/src/models/CreateUser200Response.ts +2 -2
  92. package/src/models/CreateUserRequest.ts +2 -2
  93. package/src/models/CreateUserRequestName.ts +2 -2
  94. package/src/models/CurrencyCode.ts +2 -2
  95. package/src/models/DeleteEmailTemplate200Response.ts +2 -2
  96. package/src/models/DeleteEmailTemplate200ResponseAllOfData.ts +2 -2
  97. package/src/models/DeleteObject200Response.ts +2 -2
  98. package/src/models/DeleteObjectRequest.ts +2 -2
  99. package/src/models/DeleteRelationship200Response.ts +2 -2
  100. package/src/models/DeleteRelationshipRequest.ts +2 -2
  101. package/src/models/DeleteRelationshipRequestWithSubjectId.ts +2 -2
  102. package/src/models/DeleteRelationshipRequestWithSubjectSet.ts +2 -2
  103. package/src/models/DeleteRelationshipResponse.ts +2 -2
  104. package/src/models/DeleteRole200Response.ts +2 -2
  105. package/src/models/DeleteRoleResponse.ts +2 -2
  106. package/src/models/DeleteTenant200Response.ts +2 -2
  107. package/src/models/DeleteTenantResponse.ts +2 -2
  108. package/src/models/DeleteTenantUserRequest.ts +2 -2
  109. package/src/models/DeployPermissionNamespaces200Response.ts +2 -2
  110. package/src/models/DownloadFile200Response.ts +2 -2
  111. package/src/models/DownloadRequest.ts +2 -2
  112. package/src/models/DownloadResponse.ts +2 -2
  113. package/src/models/EmailTemplate.ts +2 -2
  114. package/src/models/ErrorResponse.ts +2 -2
  115. package/src/models/FinalizeInvoiceRequest.ts +65 -0
  116. package/src/models/ForbiddenResponse.ts +2 -2
  117. package/src/models/GetActiveTenant200Response.ts +2 -2
  118. package/src/models/GetEmailTemplates200Response.ts +2 -2
  119. package/src/models/GetEmailTemplates200ResponseAllOfData.ts +2 -2
  120. package/src/models/GetIdentity200Response.ts +2 -2
  121. package/src/models/GetMeterByID200Response.ts +82 -0
  122. package/src/models/GetPriceByID200Response.ts +82 -0
  123. package/src/models/GetProductByID200Response.ts +82 -0
  124. package/src/models/GetRoleDefinitions200Response.ts +2 -2
  125. package/src/models/GetSession200Response.ts +2 -2
  126. package/src/models/GetStripeConfig200Response.ts +2 -2
  127. package/src/models/GetStripeConfigHistory200Response.ts +2 -2
  128. package/src/models/GetTenantBillingStatus200Response.ts +2 -2
  129. package/src/models/GetTenantJWT200Response.ts +2 -2
  130. package/src/models/GetWebhookSecret200Response.ts +82 -0
  131. package/src/models/InternalServerError.ts +2 -2
  132. package/src/models/InternalServerErrorResponse.ts +2 -2
  133. package/src/models/InvoiceLineItemResponse.ts +82 -0
  134. package/src/models/InvoiceResponse.ts +115 -0
  135. package/src/models/JWTTokenResponse.ts +2 -2
  136. package/src/models/KratosIdentity.ts +2 -2
  137. package/src/models/KratosIdentityCredentials.ts +2 -2
  138. package/src/models/KratosIdentityCredentialsPassword.ts +2 -2
  139. package/src/models/KratosIdentityRecoveryAddressesInner.ts +2 -2
  140. package/src/models/KratosIdentityTraits.ts +2 -2
  141. package/src/models/KratosIdentityTraitsName.ts +2 -2
  142. package/src/models/KratosIdentityVerifiableAddressesInner.ts +2 -2
  143. package/src/models/ListRoles200Response.ts +2 -2
  144. package/src/models/ListTenantSubscriptions200Response.ts +2 -2
  145. package/src/models/ListTenantUsers200Response.ts +2 -2
  146. package/src/models/ListTenants200Response.ts +2 -2
  147. package/src/models/ListTenantsResponse.ts +2 -2
  148. package/src/models/Logout200Response.ts +2 -2
  149. package/src/models/LogoutResponse.ts +2 -2
  150. package/src/models/MessageResponse.ts +2 -2
  151. package/src/models/Meter.ts +2 -2
  152. package/src/models/MeterCustomerMapping.ts +2 -2
  153. package/src/models/MeterDefaultAggregation.ts +2 -2
  154. package/src/models/MeterResponse.ts +74 -0
  155. package/src/models/MeterValueSettings.ts +2 -2
  156. package/src/models/MeterWithStripeID.ts +2 -2
  157. package/src/models/MigrationErrorResponse.ts +2 -2
  158. package/src/models/MigrationSuccessResponse.ts +2 -2
  159. package/src/models/NamespaceDefinition.ts +2 -2
  160. package/src/models/NamespaceDefinitionsResponse.ts +2 -2
  161. package/src/models/NamespaceDeploymentResponse.ts +2 -2
  162. package/src/models/NotFound.ts +2 -2
  163. package/src/models/NotFoundResponse.ts +2 -2
  164. package/src/models/PerUnitBillingScheme.ts +2 -2
  165. package/src/models/PerUnitPrice.ts +3 -3
  166. package/src/models/Price.ts +2 -2
  167. package/src/models/PriceDisplay.ts +2 -2
  168. package/src/models/PriceLimit.ts +2 -2
  169. package/src/models/PriceResponse.ts +90 -0
  170. package/src/models/PriceUI.ts +2 -2
  171. package/src/models/PriceWithStripeID.ts +3 -3
  172. package/src/models/Product.ts +2 -2
  173. package/src/models/ProductResponse.ts +74 -0
  174. package/src/models/ProductUI.ts +2 -2
  175. package/src/models/ProductWithStripeIDs.ts +2 -2
  176. package/src/models/PullStripeConfig200Response.ts +2 -2
  177. package/src/models/RecordUsageRequest.ts +2 -2
  178. package/src/models/Relationship.ts +2 -2
  179. package/src/models/RemoveSubscription200Response.ts +2 -2
  180. package/src/models/RemoveSubscriptionRequest.ts +2 -2
  181. package/src/models/RemoveSubscriptionResponse.ts +2 -2
  182. package/src/models/Role.ts +2 -2
  183. package/src/models/RolesListResponse.ts +2 -2
  184. package/src/models/SchemasConflictResponse.ts +2 -2
  185. package/src/models/SessionResponse.ts +2 -2
  186. package/src/models/StripeConfigResponse.ts +2 -2
  187. package/src/models/StripeConfigUpdateRequest.ts +2 -2
  188. package/src/models/StripeConfigValidateRequest.ts +2 -2
  189. package/src/models/StripeConfiguration.ts +2 -2
  190. package/src/models/StripeConfigurationWithIDs.ts +2 -2
  191. package/src/models/StripeIDConversionResponse.ts +2 -2
  192. package/src/models/SubjectSet.ts +2 -2
  193. package/src/models/SubjectSetRequest.ts +2 -2
  194. package/src/models/SubscriptionResponse.ts +2 -2
  195. package/src/models/SuccessResponse.ts +2 -2
  196. package/src/models/SuccessResponseData.ts +2 -2
  197. package/src/models/SwitchActiveTenant200Response.ts +2 -2
  198. package/src/models/SwitchTenantRequest.ts +2 -2
  199. package/src/models/SwitchTenantResponse.ts +2 -2
  200. package/src/models/Tenant.ts +2 -2
  201. package/src/models/TenantInvite.ts +2 -2
  202. package/src/models/TenantSettings.ts +2 -2
  203. package/src/models/TenantUserResponse.ts +2 -2
  204. package/src/models/Tier.ts +2 -2
  205. package/src/models/TierUpTo.ts +2 -2
  206. package/src/models/TieredBillingScheme.ts +2 -2
  207. package/src/models/TieredPrice.ts +2 -2
  208. package/src/models/TiersMode.ts +2 -2
  209. package/src/models/Unauthorized.ts +2 -2
  210. package/src/models/UnauthorizedResponse.ts +2 -2
  211. package/src/models/UpdateInvoiceRequest.ts +73 -0
  212. package/src/models/UpdateRoleRequest.ts +2 -2
  213. package/src/models/UpdateTenantUserRole200Response.ts +2 -2
  214. package/src/models/UpdateTenantUserRoleRequest.ts +2 -2
  215. package/src/models/UpdateTenantUserRoleResponse.ts +2 -2
  216. package/src/models/UploadFile200Response.ts +2 -2
  217. package/src/models/UploadRequest.ts +2 -2
  218. package/src/models/UploadResponse.ts +2 -2
  219. package/src/models/UsageType.ts +2 -2
  220. package/src/models/UserTenantListItem.ts +2 -2
  221. package/src/models/WebhookEndpointConfig.ts +91 -0
  222. package/src/models/WebhookResult.ts +131 -0
  223. package/src/models/WebhookSecretResponse.ts +127 -0
  224. package/src/models/WebhooksConfigRequest.ts +74 -0
  225. package/src/models/WebhooksConfigResponse.ts +74 -0
  226. package/src/models/WhoAmI200Response.ts +2 -2
  227. package/src/models/WhoAmIResponse.ts +2 -2
  228. package/src/models/index.ts +21 -0
  229. 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
+
@@ -31,7 +31,7 @@ const example = {
31
31
  "stripeId": price_1SRiyyCJIZaBlhY1NpAJFhNU,
32
32
  "_public": true,
33
33
  "taxIncludedInPrice": false,
34
- "amount": 1999,
34
+ "amount": 0.273,
35
35
  "currency": null,
36
36
  "interval": null,
37
37
  "intervalCount": 1,
package/docs/Price.md CHANGED
@@ -33,7 +33,7 @@ const example = {
33
33
  "stripeId": price_1SRiyyCJIZaBlhY1NpAJFhNU,
34
34
  "_public": true,
35
35
  "taxIncludedInPrice": false,
36
- "amount": 1999,
36
+ "amount": 0.273,
37
37
  "currency": null,
38
38
  "interval": null,
39
39
  "intervalCount": 1,
@@ -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
+
@@ -32,7 +32,7 @@ const example = {
32
32
  "id": basic_monthly,
33
33
  "_public": true,
34
34
  "taxIncludedInPrice": false,
35
- "amount": 1999,
35
+ "amount": 0.273,
36
36
  "currency": null,
37
37
  "interval": null,
38
38
  "intervalCount": 1,
@@ -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
+