@schematichq/schematic-typescript-node 1.5.10 → 1.5.13

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 (217) hide show
  1. package/dist/api/errors/PaymentRequiredError.d.ts +7 -0
  2. package/dist/api/errors/index.d.ts +1 -0
  3. package/dist/api/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
  4. package/dist/api/resources/billing/client/Client.d.ts +43 -0
  5. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
  6. package/dist/api/resources/billing/client/requests/ListCompanyBillingProfilesRequest.d.ts +20 -0
  7. package/dist/api/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +15 -0
  8. package/dist/api/resources/billing/client/requests/index.d.ts +2 -0
  9. package/dist/api/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +13 -0
  10. package/dist/api/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +6 -0
  11. package/dist/api/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +6 -0
  12. package/dist/api/resources/billing/types/index.d.ts +3 -0
  13. package/dist/api/resources/credits/client/Client.d.ts +123 -0
  14. package/dist/api/resources/credits/client/requests/CountCreditSpendPoliciesRequest.d.ts +24 -0
  15. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
  16. package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +17 -0
  17. package/dist/api/resources/credits/client/requests/ListCreditSpendPoliciesRequest.d.ts +24 -0
  18. package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +8 -0
  19. package/dist/api/resources/credits/client/requests/index.d.ts +4 -0
  20. package/dist/api/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +15 -0
  21. package/dist/api/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +6 -0
  22. package/dist/api/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +6 -0
  23. package/dist/api/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +6 -0
  24. package/dist/api/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +6 -0
  25. package/dist/api/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +15 -0
  26. package/dist/api/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +6 -0
  27. package/dist/api/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +6 -0
  28. package/dist/api/resources/credits/types/index.d.ts +8 -0
  29. package/dist/api/resources/events/client/Client.d.ts +50 -0
  30. package/dist/api/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
  31. package/dist/api/resources/events/client/requests/index.d.ts +1 -0
  32. package/dist/api/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +6 -0
  33. package/dist/api/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +6 -0
  34. package/dist/api/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +6 -0
  35. package/dist/api/resources/events/types/index.d.ts +3 -0
  36. package/dist/api/resources/integrationsapi/client/Client.d.ts +83 -0
  37. package/dist/api/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
  38. package/dist/api/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
  39. package/dist/api/resources/integrationsapi/client/requests/index.d.ts +2 -0
  40. package/dist/api/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +6 -0
  41. package/dist/api/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +6 -0
  42. package/dist/api/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +6 -0
  43. package/dist/api/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +6 -0
  44. package/dist/api/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +6 -0
  45. package/dist/api/resources/integrationsapi/types/index.d.ts +5 -0
  46. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  47. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  48. package/dist/api/resources/planmigrations/client/Client.d.ts +40 -5
  49. package/dist/api/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +8 -0
  50. package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +1 -1
  51. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +1 -1
  52. package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -1
  53. package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +1 -1
  54. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +1 -1
  55. package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
  56. package/dist/api/resources/planmigrations/types/CancelMigrationResponse.d.ts +6 -0
  57. package/dist/api/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +6 -0
  58. package/dist/api/resources/planmigrations/types/index.d.ts +2 -0
  59. package/dist/api/resources/plans/client/Client.d.ts +3 -1
  60. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +3 -0
  61. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +3 -0
  62. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -1
  63. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +4 -0
  64. package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  65. package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  66. package/dist/api/types/BillingArrearsAnchor.d.ts +5 -0
  67. package/dist/api/types/BillingArrearsCadence.d.ts +5 -0
  68. package/dist/api/types/BillingCreditGrantResponseData.d.ts +7 -0
  69. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +12 -0
  70. package/dist/api/types/CheckoutDataResponseData.d.ts +2 -0
  71. package/dist/api/types/ClaimedStripeSandboxKeysResponseData.d.ts +5 -0
  72. package/dist/api/types/CompanyBillingProfileResponseData.d.ts +17 -0
  73. package/dist/api/types/CompanyDetailResponseData.d.ts +3 -0
  74. package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
  75. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +6 -0
  76. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +12 -0
  77. package/dist/api/types/CreditCompanyGrantView.d.ts +7 -0
  78. package/dist/api/types/CreditLeaseResponseData.d.ts +1 -0
  79. package/dist/api/types/CreditSpendPolicyResponseData.d.ts +12 -0
  80. package/dist/api/types/CreditSpendPolicyScope.d.ts +6 -0
  81. package/dist/api/types/CustomPlanBillingResponseData.d.ts +2 -0
  82. package/dist/api/types/EventBodyInference.d.ts +4 -2
  83. package/dist/api/types/GetOnboardingStateResp.d.ts +8 -0
  84. package/dist/api/types/IssueTemporaryAccessTokenResponseData.d.ts +2 -1
  85. package/dist/api/types/OnboardingRequirement.d.ts +2 -0
  86. package/dist/api/types/OnboardingRoadmapView.d.ts +4 -0
  87. package/dist/api/types/OnboardingStripeImport.d.ts +6 -0
  88. package/dist/api/types/OtlpEnvironmentSettingsResponseData.d.ts +10 -0
  89. package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
  90. package/dist/api/types/PlanCreditGrantView.d.ts +6 -0
  91. package/dist/api/types/PlanGroupDetailResponseData.d.ts +1 -0
  92. package/dist/api/types/PlanGroupResponseData.d.ts +1 -0
  93. package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +2 -0
  94. package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +1 -0
  95. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
  96. package/dist/api/types/PlanVersionMigrationStatus.d.ts +1 -0
  97. package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
  98. package/dist/api/types/RuleConditionDetailResponseData.d.ts +1 -0
  99. package/dist/api/types/RuleConditionPlanVersionResponseData.d.ts +7 -0
  100. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  101. package/dist/api/types/RulesengineCompany.d.ts +1 -0
  102. package/dist/api/types/RulesengineCreditPostpaidConfig.d.ts +3 -0
  103. package/dist/api/types/SlackConnectInviteStatus.d.ts +8 -0
  104. package/dist/api/types/SlackConnectInviteView.d.ts +7 -0
  105. package/dist/api/types/StripeIntegrationConfig.d.ts +6 -0
  106. package/dist/api/types/StripeSandboxClaimLink.d.ts +6 -0
  107. package/dist/api/types/StripeSandboxCountriesResponseData.d.ts +3 -0
  108. package/dist/api/types/StripeSandboxInstallResponseData.d.ts +10 -0
  109. package/dist/api/types/StripeSandboxKeysResponseData.d.ts +5 -0
  110. package/dist/api/types/TemporaryAccessTokenIssuerType.d.ts +5 -0
  111. package/dist/api/types/TemporaryAccessTokenResponseData.d.ts +2 -1
  112. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +12 -0
  113. package/dist/api/types/WebhookEventDetailResponseData.d.ts +1 -0
  114. package/dist/api/types/WebhookEventResponseData.d.ts +1 -0
  115. package/dist/api/types/index.d.ts +19 -0
  116. package/dist/credits/lease-store.d.ts +17 -8
  117. package/dist/index.js +25 -9
  118. package/dist/serialization/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
  119. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
  120. package/dist/serialization/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +16 -0
  121. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
  122. package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +14 -0
  123. package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +12 -0
  124. package/dist/serialization/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +11 -0
  125. package/dist/serialization/resources/billing/types/index.d.ts +3 -0
  126. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
  127. package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +13 -0
  128. package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +10 -0
  129. package/dist/serialization/resources/credits/client/requests/index.d.ts +2 -0
  130. package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +16 -0
  131. package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +12 -0
  132. package/dist/serialization/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +11 -0
  133. package/dist/serialization/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +11 -0
  134. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +11 -0
  135. package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +16 -0
  136. package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +12 -0
  137. package/dist/serialization/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +11 -0
  138. package/dist/serialization/resources/credits/types/index.d.ts +8 -0
  139. package/dist/serialization/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
  140. package/dist/serialization/resources/events/client/requests/index.d.ts +1 -0
  141. package/dist/serialization/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +11 -0
  142. package/dist/serialization/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +11 -0
  143. package/dist/serialization/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +11 -0
  144. package/dist/serialization/resources/events/types/index.d.ts +3 -0
  145. package/dist/serialization/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
  146. package/dist/serialization/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
  147. package/dist/serialization/resources/integrationsapi/client/requests/index.d.ts +2 -0
  148. package/dist/serialization/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +11 -0
  149. package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +11 -0
  150. package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +11 -0
  151. package/dist/serialization/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +11 -0
  152. package/dist/serialization/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +11 -0
  153. package/dist/serialization/resources/integrationsapi/types/index.d.ts +5 -0
  154. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  155. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  156. package/dist/serialization/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +10 -0
  157. package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
  158. package/dist/serialization/resources/planmigrations/types/CancelMigrationResponse.d.ts +11 -0
  159. package/dist/serialization/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +11 -0
  160. package/dist/serialization/resources/planmigrations/types/index.d.ts +2 -0
  161. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
  162. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
  163. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  164. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  165. package/dist/serialization/types/BillingArrearsAnchor.d.ts +7 -0
  166. package/dist/serialization/types/BillingArrearsCadence.d.ts +7 -0
  167. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +4 -0
  168. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +8 -0
  169. package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  170. package/dist/serialization/types/ClaimedStripeSandboxKeysResponseData.d.ts +11 -0
  171. package/dist/serialization/types/CompanyBillingProfileResponseData.d.ts +25 -0
  172. package/dist/serialization/types/CompanyDetailResponseData.d.ts +5 -0
  173. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -0
  174. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +8 -0
  175. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +8 -0
  176. package/dist/serialization/types/CreditCompanyGrantView.d.ts +8 -0
  177. package/dist/serialization/types/CreditLeaseResponseData.d.ts +1 -0
  178. package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +18 -0
  179. package/dist/serialization/types/CreditSpendPolicyScope.d.ts +7 -0
  180. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
  181. package/dist/serialization/types/EventBodyInference.d.ts +1 -0
  182. package/dist/serialization/types/GetOnboardingStateResp.d.ts +11 -0
  183. package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.d.ts +3 -1
  184. package/dist/serialization/types/OnboardingRequirement.d.ts +1 -1
  185. package/dist/serialization/types/OnboardingRoadmapView.d.ts +10 -0
  186. package/dist/serialization/types/OnboardingStripeImport.d.ts +7 -0
  187. package/dist/serialization/types/OtlpEnvironmentSettingsResponseData.d.ts +16 -0
  188. package/dist/serialization/types/PendingMigrationResponseData.d.ts +14 -0
  189. package/dist/serialization/types/PlanCreditGrantView.d.ts +8 -0
  190. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +1 -0
  191. package/dist/serialization/types/PlanGroupResponseData.d.ts +1 -0
  192. package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +1 -0
  193. package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +1 -1
  194. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
  195. package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +1 -1
  196. package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
  197. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +2 -0
  198. package/dist/serialization/types/RuleConditionPlanVersionResponseData.d.ts +13 -0
  199. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  200. package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
  201. package/dist/serialization/types/RulesengineCreditPostpaidConfig.d.ts +9 -0
  202. package/dist/serialization/types/SlackConnectInviteStatus.d.ts +7 -0
  203. package/dist/serialization/types/SlackConnectInviteView.d.ts +13 -0
  204. package/dist/serialization/types/StripeIntegrationConfig.d.ts +3 -0
  205. package/dist/serialization/types/StripeSandboxClaimLink.d.ts +12 -0
  206. package/dist/serialization/types/StripeSandboxCountriesResponseData.d.ts +9 -0
  207. package/dist/serialization/types/StripeSandboxInstallResponseData.d.ts +17 -0
  208. package/dist/serialization/types/StripeSandboxKeysResponseData.d.ts +11 -0
  209. package/dist/serialization/types/TemporaryAccessTokenIssuerType.d.ts +7 -0
  210. package/dist/serialization/types/TemporaryAccessTokenResponseData.d.ts +3 -1
  211. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +8 -0
  212. package/dist/serialization/types/WebhookEventDetailResponseData.d.ts +1 -0
  213. package/dist/serialization/types/WebhookEventResponseData.d.ts +1 -0
  214. package/dist/serialization/types/index.d.ts +19 -0
  215. package/dist/wasm/rulesengine.d.ts +1 -1
  216. package/dist/wasm/rulesengine.js +30 -30
  217. package/package.json +1 -4
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface UpsertOtlpEnvironmentSettingsResponse {
3
+ data: Schematic.OtlpEnvironmentSettingsResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -1,8 +1,11 @@
1
1
  export * from "./CreateEventBatchResponse";
2
2
  export * from "./CreateEventResponse";
3
+ export * from "./DeleteOtlpEnvironmentSettingsResponse";
3
4
  export * from "./GetEventResponse";
4
5
  export * from "./GetEventSummariesParams";
5
6
  export * from "./GetEventSummariesResponse";
7
+ export * from "./GetOtlpEnvironmentSettingsResponse";
6
8
  export * from "./GetSegmentIntegrationStatusResponse";
7
9
  export * from "./ListEventsParams";
8
10
  export * from "./ListEventsResponse";
11
+ export * from "./UpsertOtlpEnvironmentSettingsResponse";
@@ -120,6 +120,55 @@ export declare class IntegrationsapiClient {
120
120
  */
121
121
  loadSampleDataSet(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.LoadSampleDataSetResponse>;
122
122
  private __loadSampleDataSet;
123
+ /**
124
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
125
+ *
126
+ * @throws {@link Schematic.UnauthorizedError}
127
+ * @throws {@link Schematic.ForbiddenError}
128
+ * @throws {@link Schematic.NotFoundError}
129
+ * @throws {@link Schematic.InternalServerError}
130
+ * @throws {@link errors.SchematicError}
131
+ * @throws {@link errors.SchematicTimeoutError}
132
+ *
133
+ * @example
134
+ * await client.integrationsapi.getStripeSandboxClaimLink()
135
+ */
136
+ getStripeSandboxClaimLink(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.GetStripeSandboxClaimLinkResponse>;
137
+ private __getStripeSandboxClaimLink;
138
+ /**
139
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
140
+ *
141
+ * @throws {@link Schematic.UnauthorizedError}
142
+ * @throws {@link Schematic.ForbiddenError}
143
+ * @throws {@link Schematic.NotFoundError}
144
+ * @throws {@link Schematic.InternalServerError}
145
+ * @throws {@link errors.SchematicError}
146
+ * @throws {@link errors.SchematicTimeoutError}
147
+ *
148
+ * @example
149
+ * await client.integrationsapi.getStripeSandboxKeys()
150
+ */
151
+ getStripeSandboxKeys(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.GetStripeSandboxKeysResponse>;
152
+ private __getStripeSandboxKeys;
153
+ /**
154
+ * @param {Schematic.ClaimStripeSandboxKeysRequestBody} request
155
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
156
+ *
157
+ * @throws {@link Schematic.BadRequestError}
158
+ * @throws {@link Schematic.UnauthorizedError}
159
+ * @throws {@link Schematic.ForbiddenError}
160
+ * @throws {@link Schematic.NotFoundError}
161
+ * @throws {@link Schematic.InternalServerError}
162
+ * @throws {@link errors.SchematicError}
163
+ * @throws {@link errors.SchematicTimeoutError}
164
+ *
165
+ * @example
166
+ * await client.integrationsapi.claimStripeSandboxKeys({
167
+ * token: "token"
168
+ * })
169
+ */
170
+ claimStripeSandboxKeys(request: Schematic.ClaimStripeSandboxKeysRequestBody, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.ClaimStripeSandboxKeysResponse>;
171
+ private __claimStripeSandboxKeys;
123
172
  /**
124
173
  * @param {Schematic.InstallIntegrationRequestBody} request
125
174
  * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -158,6 +207,40 @@ export declare class IntegrationsapiClient {
158
207
  */
159
208
  installStripe(request: Schematic.InstallIntegrationRequestBody, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.InstallStripeResponse>;
160
209
  private __installStripe;
210
+ /**
211
+ * @param {Schematic.InstallStripeSandboxRequestBody} request
212
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
213
+ *
214
+ * @throws {@link Schematic.BadRequestError}
215
+ * @throws {@link Schematic.UnauthorizedError}
216
+ * @throws {@link Schematic.ForbiddenError}
217
+ * @throws {@link Schematic.NotFoundError}
218
+ * @throws {@link Schematic.InternalServerError}
219
+ * @throws {@link errors.SchematicError}
220
+ * @throws {@link errors.SchematicTimeoutError}
221
+ *
222
+ * @example
223
+ * await client.integrationsapi.installStripeClaimableSandbox({
224
+ * email: "email"
225
+ * })
226
+ */
227
+ installStripeClaimableSandbox(request: Schematic.InstallStripeSandboxRequestBody, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.InstallStripeClaimableSandboxResponse>;
228
+ private __installStripeClaimableSandbox;
229
+ /**
230
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
231
+ *
232
+ * @throws {@link Schematic.UnauthorizedError}
233
+ * @throws {@link Schematic.ForbiddenError}
234
+ * @throws {@link Schematic.NotFoundError}
235
+ * @throws {@link Schematic.InternalServerError}
236
+ * @throws {@link errors.SchematicError}
237
+ * @throws {@link errors.SchematicTimeoutError}
238
+ *
239
+ * @example
240
+ * await client.integrationsapi.listStripeSandboxCountries()
241
+ */
242
+ listStripeSandboxCountries(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.ListStripeSandboxCountriesResponse>;
243
+ private __listStripeSandboxCountries;
161
244
  /**
162
245
  * @param {string} integration_id - integration_id
163
246
  * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * token: "token"
5
+ * }
6
+ */
7
+ export interface ClaimStripeSandboxKeysRequestBody {
8
+ token: string;
9
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * email: "email"
5
+ * }
6
+ */
7
+ export interface InstallStripeSandboxRequestBody {
8
+ country?: string;
9
+ email: string;
10
+ name?: string;
11
+ seedSampleData?: boolean;
12
+ }
@@ -1,2 +1,4 @@
1
+ export type { ClaimStripeSandboxKeysRequestBody } from "./ClaimStripeSandboxKeysRequestBody";
2
+ export type { InstallStripeSandboxRequestBody } from "./InstallStripeSandboxRequestBody";
1
3
  export type { ListIntegrationsRequest } from "./ListIntegrationsRequest";
2
4
  export type { StartDataImportRequestBody } from "./StartDataImportRequestBody";
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface ClaimStripeSandboxKeysResponse {
3
+ data: Schematic.ClaimedStripeSandboxKeysResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface GetStripeSandboxClaimLinkResponse {
3
+ data: Schematic.StripeSandboxClaimLink;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface GetStripeSandboxKeysResponse {
3
+ data: Schematic.ClaimedStripeSandboxKeysResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface InstallStripeClaimableSandboxResponse {
3
+ data: Schematic.StripeSandboxInstallResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface ListStripeSandboxCountriesResponse {
3
+ data: Schematic.StripeSandboxCountriesResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -1,9 +1,14 @@
1
1
  export * from "./AssumeStripeInstalledResponse";
2
+ export * from "./ClaimStripeSandboxKeysResponse";
2
3
  export * from "./GetIntegrationWebhookUrlResponse";
4
+ export * from "./GetStripeSandboxClaimLinkResponse";
5
+ export * from "./GetStripeSandboxKeysResponse";
3
6
  export * from "./InstallIntegrationResponse";
7
+ export * from "./InstallStripeClaimableSandboxResponse";
4
8
  export * from "./InstallStripeResponse";
5
9
  export * from "./ListIntegrationsParams";
6
10
  export * from "./ListIntegrationsResponse";
11
+ export * from "./ListStripeSandboxCountriesResponse";
7
12
  export * from "./LoadSampleDataSetResponse";
8
13
  export * from "./RunIntegrationResponse";
9
14
  export * from "./StartDataImportResponse";
@@ -67,6 +67,7 @@ export interface CreatePlanGroupRequestBody {
67
67
  showZeroPriceAsFree: boolean;
68
68
  syncCustomerBillingDetails: boolean;
69
69
  trialDays?: number;
70
+ trialEligibilityPerPlan?: boolean;
70
71
  trialExpiryPlanId?: string;
71
72
  trialExpiryPlanPriceId?: string;
72
73
  trialPaymentMethodRequired?: boolean;
@@ -67,6 +67,7 @@ export interface UpdatePlanGroupRequestBody {
67
67
  showZeroPriceAsFree: boolean;
68
68
  syncCustomerBillingDetails: boolean;
69
69
  trialDays?: number;
70
+ trialEligibilityPerPlan?: boolean;
70
71
  trialExpiryPlanId?: string;
71
72
  trialExpiryPlanPriceId?: string;
72
73
  trialPaymentMethodRequired?: boolean;
@@ -26,7 +26,7 @@ export declare class PlanmigrationsClient {
26
26
  * await client.planmigrations.listCompanyMigrations({
27
27
  * migrationId: "migration_id",
28
28
  * q: "q",
29
- * status: "completed",
29
+ * status: "cancelled",
30
30
  * limit: 1000000,
31
31
  * offset: 1000000
32
32
  * })
@@ -66,7 +66,7 @@ export declare class PlanmigrationsClient {
66
66
  * await client.planmigrations.countCompanyMigrations({
67
67
  * migrationId: "migration_id",
68
68
  * q: "q",
69
- * status: "completed",
69
+ * status: "cancelled",
70
70
  * limit: 1000000,
71
71
  * offset: 1000000
72
72
  * })
@@ -88,7 +88,7 @@ export declare class PlanmigrationsClient {
88
88
  * @example
89
89
  * await client.planmigrations.listMigrations({
90
90
  * planVersionId: "plan_version_id",
91
- * status: "completed",
91
+ * status: "cancelled",
92
92
  * limit: 1000000,
93
93
  * offset: 1000000
94
94
  * })
@@ -111,7 +111,7 @@ export declare class PlanmigrationsClient {
111
111
  * await client.planmigrations.createMigration({
112
112
  * planId: "plan_id",
113
113
  * planVersionIdTo: "plan_version_id_to",
114
- * strategy: "immediate",
114
+ * strategy: "end_of_billing_period",
115
115
  * targetPlanType: "plan"
116
116
  * })
117
117
  */
@@ -133,6 +133,41 @@ export declare class PlanmigrationsClient {
133
133
  */
134
134
  getMigration(plan_version_migration_id: string, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetMigrationResponse>;
135
135
  private __getMigration;
136
+ /**
137
+ * @param {string} plan_version_migration_id - plan_version_migration_id
138
+ * @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
139
+ *
140
+ * @throws {@link Schematic.BadRequestError}
141
+ * @throws {@link Schematic.UnauthorizedError}
142
+ * @throws {@link Schematic.ForbiddenError}
143
+ * @throws {@link Schematic.NotFoundError}
144
+ * @throws {@link Schematic.InternalServerError}
145
+ * @throws {@link errors.SchematicError}
146
+ * @throws {@link errors.SchematicTimeoutError}
147
+ *
148
+ * @example
149
+ * await client.planmigrations.cancelMigration("plan_version_migration_id")
150
+ */
151
+ cancelMigration(plan_version_migration_id: string, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.CancelMigrationResponse>;
152
+ private __cancelMigration;
153
+ /**
154
+ * @param {string} plan_version_migration_id - plan_version_migration_id
155
+ * @param {Schematic.CompleteMigrationNowRequestBody} request
156
+ * @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
157
+ *
158
+ * @throws {@link Schematic.BadRequestError}
159
+ * @throws {@link Schematic.UnauthorizedError}
160
+ * @throws {@link Schematic.ForbiddenError}
161
+ * @throws {@link Schematic.NotFoundError}
162
+ * @throws {@link Schematic.InternalServerError}
163
+ * @throws {@link errors.SchematicError}
164
+ * @throws {@link errors.SchematicTimeoutError}
165
+ *
166
+ * @example
167
+ * await client.planmigrations.completeMigrationNow("plan_version_migration_id")
168
+ */
169
+ completeMigrationNow(plan_version_migration_id: string, request?: Schematic.CompleteMigrationNowRequestBody, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.CompleteMigrationNowResponse>;
170
+ private __completeMigrationNow;
136
171
  /**
137
172
  * @param {string} plan_version_migration_id - plan_version_migration_id
138
173
  * @param {Schematic.RetryMigrationRequestBody} request
@@ -168,7 +203,7 @@ export declare class PlanmigrationsClient {
168
203
  * @example
169
204
  * await client.planmigrations.countMigrations({
170
205
  * planVersionId: "plan_version_id",
171
- * status: "completed",
206
+ * status: "cancelled",
172
207
  * limit: 1000000,
173
208
  * offset: 1000000
174
209
  * })
@@ -0,0 +1,8 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface CompleteMigrationNowRequestBody {
7
+ prorationBehavior?: Schematic.MigrationProrationBehavior;
8
+ }
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * migrationId: "migration_id",
6
6
  * q: "q",
7
- * status: "completed",
7
+ * status: "cancelled",
8
8
  * limit: 1000000,
9
9
  * offset: 1000000
10
10
  * }
@@ -3,7 +3,7 @@ import type * as Schematic from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * planVersionId: "plan_version_id",
6
- * status: "completed",
6
+ * status: "cancelled",
7
7
  * limit: 1000000,
8
8
  * offset: 1000000
9
9
  * }
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * planId: "plan_id",
6
6
  * planVersionIdTo: "plan_version_id_to",
7
- * strategy: "immediate",
7
+ * strategy: "end_of_billing_period",
8
8
  * targetPlanType: "plan"
9
9
  * }
10
10
  */
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * migrationId: "migration_id",
6
6
  * q: "q",
7
- * status: "completed",
7
+ * status: "cancelled",
8
8
  * limit: 1000000,
9
9
  * offset: 1000000
10
10
  * }
@@ -3,7 +3,7 @@ import type * as Schematic from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * planVersionId: "plan_version_id",
6
- * status: "completed",
6
+ * status: "cancelled",
7
7
  * limit: 1000000,
8
8
  * offset: 1000000
9
9
  * }
@@ -1,3 +1,4 @@
1
+ export type { CompleteMigrationNowRequestBody } from "./CompleteMigrationNowRequestBody";
1
2
  export type { CountCompanyMigrationsRequest } from "./CountCompanyMigrationsRequest";
2
3
  export type { CountMigrationsRequest } from "./CountMigrationsRequest";
3
4
  export type { CreateMigrationInput } from "./CreateMigrationInput";
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface CancelMigrationResponse {
3
+ data: Schematic.PlanVersionMigrationResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface CompleteMigrationNowResponse {
3
+ data: Schematic.PlanVersionMigrationResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./CancelMigrationResponse";
2
+ export * from "./CompleteMigrationNowResponse";
1
3
  export * from "./CountCompanyMigrationsParams";
2
4
  export * from "./CountCompanyMigrationsResponse";
3
5
  export * from "./CountMigrationsParams";
@@ -132,6 +132,7 @@ export declare class PlansClient {
132
132
  * companyId: "company_id",
133
133
  * companyScopedOnly: true,
134
134
  * excludeCompanyScoped: true,
135
+ * excludeUnused: true,
135
136
  * forFallbackPlan: true,
136
137
  * forInitialPlan: true,
137
138
  * forTrialExpiryPlan: true,
@@ -330,6 +331,7 @@ export declare class PlansClient {
330
331
  * companyId: "company_id",
331
332
  * companyScopedOnly: true,
332
333
  * excludeCompanyScoped: true,
334
+ * excludeUnused: true,
333
335
  * forFallbackPlan: true,
334
336
  * forInitialPlan: true,
335
337
  * forTrialExpiryPlan: true,
@@ -404,7 +406,7 @@ export declare class PlansClient {
404
406
  * @example
405
407
  * await client.plans.publishPlanVersion("plan_version_id", {
406
408
  * excludedCompanyIds: ["excluded_company_ids"],
407
- * migrationStrategy: "immediate"
409
+ * migrationStrategy: "end_of_billing_period"
408
410
  * })
409
411
  */
410
412
  publishPlanVersion(plan_version_id: string, request: Schematic.PublishPlanVersionRequestBody, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.PublishPlanVersionResponse>;
@@ -5,6 +5,7 @@ import type * as Schematic from "../../../../index";
5
5
  * companyId: "company_id",
6
6
  * companyScopedOnly: true,
7
7
  * excludeCompanyScoped: true,
8
+ * excludeUnused: true,
8
9
  * forFallbackPlan: true,
9
10
  * forInitialPlan: true,
10
11
  * forTrialExpiryPlan: true,
@@ -27,6 +28,8 @@ export interface CountPlansRequest {
27
28
  companyScopedOnly?: boolean;
28
29
  /** Exclude plans that are scoped to a company (custom plans assigned to a company) */
29
30
  excludeCompanyScoped?: boolean;
31
+ /** Exclude plans that nothing is using: no company is on the plan and it has no draft version */
32
+ excludeUnused?: boolean;
30
33
  /** Filter for plans valid as fallback plans (not linked to billing) */
31
34
  forFallbackPlan?: boolean;
32
35
  /** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
@@ -5,6 +5,7 @@ import type * as Schematic from "../../../../index";
5
5
  * companyId: "company_id",
6
6
  * companyScopedOnly: true,
7
7
  * excludeCompanyScoped: true,
8
+ * excludeUnused: true,
8
9
  * forFallbackPlan: true,
9
10
  * forInitialPlan: true,
10
11
  * forTrialExpiryPlan: true,
@@ -27,6 +28,8 @@ export interface ListPlansRequest {
27
28
  companyScopedOnly?: boolean;
28
29
  /** Exclude plans that are scoped to a company (custom plans assigned to a company) */
29
30
  excludeCompanyScoped?: boolean;
31
+ /** Exclude plans that nothing is using: no company is on the plan and it has no draft version */
32
+ excludeUnused?: boolean;
30
33
  /** Filter for plans valid as fallback plans (not linked to billing) */
31
34
  forFallbackPlan?: boolean;
32
35
  /** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
@@ -3,12 +3,14 @@ import type * as Schematic from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * excludedCompanyIds: ["excluded_company_ids"],
6
- * migrationStrategy: "immediate"
6
+ * migrationStrategy: "end_of_billing_period"
7
7
  * }
8
8
  */
9
9
  export interface PublishPlanVersionRequestBody {
10
10
  activationStrategy?: Schematic.CustomPlanActivationStrategy;
11
11
  address?: Schematic.CustomerBillingAddress;
12
+ /** The date the subscription's billing period renews on. Only honored on a first publish that starts a subscription. */
13
+ billingCycleAnchor?: Date;
12
14
  couponExternalId?: string;
13
15
  customFieldValues?: Schematic.CheckoutFieldValue[];
14
16
  customerEmail?: string;
@@ -16,6 +18,8 @@ export interface PublishPlanVersionRequestBody {
16
18
  excludedCompanyIds: string[];
17
19
  migrationStrategy: Schematic.PlanVersionMigrationStrategy;
18
20
  phone?: string;
21
+ /** When true, the partial period between the subscription starting and its renewal date is billed pro rata straight away. When false that period is free and no invoice is raised until the renewal date. Only applies alongside billing_cycle_anchor. Defaults to true. */
22
+ prorateFirstPeriod?: boolean;
19
23
  prorationBehavior?: Schematic.MigrationProrationBehavior;
20
24
  /** Refuse the publish if any company would be migrated onto the new version */
21
25
  requireNoMigration?: boolean;
@@ -7,8 +7,12 @@ import type * as Schematic from "../../../../index";
7
7
  */
8
8
  export interface RetryCustomPlanBillingRequestBody {
9
9
  activationStrategy?: Schematic.CustomPlanActivationStrategy;
10
+ /** The date the subscription's billing period renews on. Only honored when the retry creates a subscription. */
11
+ billingCycleAnchor?: Date;
10
12
  customerEmail: string;
11
13
  daysUntilDue?: number;
14
+ /** When true, the partial period between the subscription starting and its renewal date is billed pro rata straight away. When false that period is free and no invoice is raised until the renewal date. Only applies alongside billing_cycle_anchor. Defaults to true. */
15
+ prorateFirstPeriod?: boolean;
12
16
  /** Whether Stripe emails the invoice when it is finalized. Defaults to true. */
13
17
  sendInvoice?: boolean;
14
18
  }
@@ -8,6 +8,8 @@ export interface CountPlansParams {
8
8
  companyScopedOnly?: boolean;
9
9
  /** Exclude plans that are scoped to a company (custom plans assigned to a company) */
10
10
  excludeCompanyScoped?: boolean;
11
+ /** Exclude plans that nothing is using: no company is on the plan and it has no draft version */
12
+ excludeUnused?: boolean;
11
13
  /** Filter for plans valid as fallback plans (not linked to billing) */
12
14
  forFallbackPlan?: boolean;
13
15
  /** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
@@ -8,6 +8,8 @@ export interface ListPlansParams {
8
8
  companyScopedOnly?: boolean;
9
9
  /** Exclude plans that are scoped to a company (custom plans assigned to a company) */
10
10
  excludeCompanyScoped?: boolean;
11
+ /** Exclude plans that nothing is using: no company is on the plan and it has no draft version */
12
+ excludeUnused?: boolean;
11
13
  /** Filter for plans valid as fallback plans (not linked to billing) */
12
14
  forFallbackPlan?: boolean;
13
15
  /** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
@@ -0,0 +1,5 @@
1
+ export declare const BillingArrearsAnchor: {
2
+ readonly BillingPeriodStart: "billing_period_start";
3
+ readonly MonthEnd: "month_end";
4
+ };
5
+ export type BillingArrearsAnchor = (typeof BillingArrearsAnchor)[keyof typeof BillingArrearsAnchor];
@@ -0,0 +1,5 @@
1
+ export declare const BillingArrearsCadence: {
2
+ readonly EndOfBillingPeriod: "end_of_billing_period";
3
+ readonly Monthly: "monthly";
4
+ };
5
+ export type BillingArrearsCadence = (typeof BillingArrearsCadence)[keyof typeof BillingArrearsCadence];
@@ -5,6 +5,8 @@ export interface BillingCreditGrantResponseData {
5
5
  companyLicenseId?: string;
6
6
  companyName: string;
7
7
  createdAt: Date;
8
+ /** The catalog bundle this grant was issued from, when the company bought one. */
9
+ creditBundleId?: string;
8
10
  creditIcon?: string;
9
11
  creditId: string;
10
12
  creditName: string;
@@ -16,6 +18,11 @@ export interface BillingCreditGrantResponseData {
16
18
  licenseName?: string;
17
19
  planId?: string;
18
20
  planName?: string;
21
+ /** What the postpaid charges costs, in the currency's minor unit. */
22
+ postpaidChargeAmount?: number;
23
+ postpaidChargeCurrency?: string;
24
+ /** Credits consumed past a zero balance in the window still open. */
25
+ postpaidChargedCredits?: number;
19
26
  price?: Schematic.BillingPriceResponseData;
20
27
  quantity: number;
21
28
  quantityRemaining: number;
@@ -1,5 +1,9 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface BillingPlanCreditGrantResponseData {
3
+ /** Which boundary closes a monthly arrears window. Only meaningful when arrears_cadence is monthly. */
4
+ arrearsAnchor?: Schematic.BillingArrearsAnchor;
5
+ /** How often postpaid charges are closed and invoiced. Defaults to end_of_billing_period. */
6
+ arrearsCadence?: Schematic.BillingArrearsCadence;
3
7
  autoTopupAmount?: number;
4
8
  autoTopupAmountType?: string;
5
9
  autoTopupAvailability: Schematic.BillingCreditAutoTopupAvailability;
@@ -32,11 +36,19 @@ export interface BillingPlanCreditGrantResponseData {
32
36
  id: string;
33
37
  /** The license whose quantity scales this grant. Set only when scaling is per_license. */
34
38
  licenseId?: string;
39
+ /** Optional limit on how far the balance may go below zero, in credits. A floor on the balance, not an allowance per invoice window: consumption is denied once the balance would fall below minus this figure, and stays denied until a new grant lands or the negative balance is settled. Absent means no limit. */
40
+ overdraftLimit?: number;
35
41
  plan?: Schematic.PreviewObjectResponseData;
36
42
  planId: string;
37
43
  /** Use plan.name from the nested plan object instead */
38
44
  planName: string;
39
45
  planVersionId?: string;
46
+ /** Whether consumption may continue past a zero balance, accruing at postpaid_rate_per_unit rather than being denied. */
47
+ postpaidEnabled: boolean;
48
+ /** Amount charged per credit consumed past zero, in the currency's minor unit. Defaults to the credit's own cost basis when postpaid is enabled without one. */
49
+ postpaidRatePerUnit?: number;
50
+ /** Decimal form of postpaid_rate_per_unit, for rates finer than one minor unit. */
51
+ postpaidRatePerUnitDecimal?: string;
40
52
  resetCadence?: Schematic.BillingPlanCreditGrantResetCadence;
41
53
  resetStart?: Schematic.BillingPlanCreditGrantResetStart;
42
54
  resetType?: Schematic.BillingPlanCreditGrantResetType;
@@ -5,10 +5,12 @@ export interface CheckoutDataResponseData {
5
5
  activeUsageBasedEntitlements: Schematic.UsageBasedEntitlementResponseData[];
6
6
  availableCreditBundles: Schematic.BillingCreditBundleResponseData[];
7
7
  company?: Schematic.CompanyDetailResponseData;
8
+ companyCanTrialSelectedPlan: boolean;
8
9
  customCheckoutFields: Schematic.CheckoutFieldWithValue[];
9
10
  featureUsage?: Schematic.FeatureUsageDetailResponseData;
10
11
  selectedCreditBundles: Schematic.CreditBundlePurchaseResponseData[];
11
12
  selectedPlan?: Schematic.PlanDetailResponseData;
13
+ selectedPlanAlreadyTrialed: boolean;
12
14
  selectedUsageBasedEntitlements: Schematic.UsageBasedEntitlementResponseData[];
13
15
  subscription?: Schematic.CompanySubscriptionResponseData;
14
16
  }
@@ -0,0 +1,5 @@
1
+ export interface ClaimedStripeSandboxKeysResponseData {
2
+ publishable: string;
3
+ sandboxId: string;
4
+ secret: string;
5
+ }
@@ -0,0 +1,17 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CompanyBillingProfileResponseData {
3
+ accountId: string;
4
+ billingCustomerId?: string;
5
+ collectionMethod: Schematic.BillingCollectionMethod;
6
+ companyId: string;
7
+ createdAt: Date;
8
+ daysUntilDue?: number;
9
+ environmentId: string;
10
+ id: string;
11
+ isDefault: boolean;
12
+ name?: string;
13
+ paymentMethodId?: string;
14
+ prorationBehavior?: Schematic.ProrationBehavior;
15
+ providerType: Schematic.BillingProviderType;
16
+ updatedAt: Date;
17
+ }