vayu-ts 0.2.15 → 0.3.7

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 (334) hide show
  1. package/dist/example/index.d.ts +1 -0
  2. package/dist/example/index.js +74 -0
  3. package/dist/openapi/apis/AuthApi.js +8 -4
  4. package/dist/openapi/apis/CatalogProductsApi.d.ts +89 -0
  5. package/dist/openapi/apis/CatalogProductsApi.js +377 -0
  6. package/dist/openapi/apis/CloudUsageSubmissionApi.d.ts +25 -0
  7. package/dist/openapi/apis/CloudUsageSubmissionApi.js +89 -0
  8. package/dist/openapi/apis/ContractsApi.d.ts +21 -3
  9. package/dist/openapi/apis/ContractsApi.js +119 -21
  10. package/dist/openapi/apis/CreditsApi.js +24 -12
  11. package/dist/openapi/apis/CustomFieldsApi.d.ts +89 -0
  12. package/dist/openapi/apis/CustomFieldsApi.js +377 -0
  13. package/dist/openapi/apis/CustomersApi.d.ts +63 -0
  14. package/dist/openapi/apis/CustomersApi.js +360 -38
  15. package/dist/openapi/apis/EventsApi.d.ts +132 -1
  16. package/dist/openapi/apis/EventsApi.js +660 -25
  17. package/dist/openapi/apis/InvoicesApi.d.ts +19 -3
  18. package/dist/openapi/apis/InvoicesApi.js +91 -12
  19. package/dist/openapi/apis/MeasurementsApi.js +36 -18
  20. package/dist/openapi/apis/MetersApi.js +38 -19
  21. package/dist/openapi/apis/PlansApi.d.ts +56 -0
  22. package/dist/openapi/apis/PlansApi.js +225 -0
  23. package/dist/openapi/apis/ProductConsumptionsApi.js +10 -5
  24. package/dist/openapi/apis/WebhooksApi.js +10 -5
  25. package/dist/openapi/http/http.d.ts +6 -18
  26. package/dist/openapi/http/http.js +25 -13
  27. package/dist/openapi/http/isomorphic-fetch.d.ts +1 -0
  28. package/dist/openapi/http/isomorphic-fetch.js +4 -7
  29. package/dist/openapi/index.d.ts +1 -1
  30. package/dist/openapi/index.js +5 -1
  31. package/dist/openapi/models/Address.d.ts +5 -5
  32. package/dist/openapi/models/BillingInterval.d.ts +18 -0
  33. package/dist/openapi/models/BillingInterval.js +22 -0
  34. package/dist/openapi/models/CloudUsageResult.d.ts +83 -0
  35. package/dist/openapi/models/CloudUsageResult.js +103 -0
  36. package/dist/openapi/models/ConflictErrorResponse.d.ts +42 -0
  37. package/dist/openapi/models/ConflictErrorResponse.js +52 -0
  38. package/dist/openapi/models/Contact.d.ts +3 -1
  39. package/dist/openapi/models/Contact.js +13 -1
  40. package/dist/openapi/models/ContractStatus.d.ts +23 -0
  41. package/dist/openapi/models/ContractStatus.js +27 -0
  42. package/dist/openapi/models/CreateCatalogProductRequest.d.ts +42 -0
  43. package/dist/openapi/models/CreateCatalogProductRequest.js +44 -0
  44. package/dist/openapi/models/CreateCatalogProductResponse.d.ts +32 -0
  45. package/dist/openapi/models/CreateCatalogProductResponse.js +32 -0
  46. package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.d.ts +45 -0
  47. package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.js +62 -0
  48. package/dist/openapi/models/CreateContractRequest.d.ts +53 -5
  49. package/dist/openapi/models/CreateContractRequest.js +76 -4
  50. package/dist/openapi/models/CreateCustomFieldRequest.d.ts +71 -0
  51. package/dist/openapi/models/CreateCustomFieldRequest.js +90 -0
  52. package/dist/openapi/models/CreateCustomFieldResponse.d.ts +32 -0
  53. package/dist/openapi/models/CreateCustomFieldResponse.js +32 -0
  54. package/dist/openapi/models/CreateCustomFieldResponseCustomField.d.ts +74 -0
  55. package/dist/openapi/models/CreateCustomFieldResponseCustomField.js +108 -0
  56. package/dist/openapi/models/CreateCustomerRelationRequest.d.ts +38 -0
  57. package/dist/openapi/models/CreateCustomerRelationRequest.js +38 -0
  58. package/dist/openapi/models/CreateCustomerRelationResponse.d.ts +32 -0
  59. package/dist/openapi/models/CreateCustomerRelationResponse.js +32 -0
  60. package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.d.ts +41 -0
  61. package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.js +56 -0
  62. package/dist/openapi/models/CreateCustomerRequest.d.ts +70 -2
  63. package/dist/openapi/models/CreateCustomerRequest.js +112 -6
  64. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +70 -2
  65. package/dist/openapi/models/CreateCustomerResponseCustomer.js +112 -6
  66. package/dist/openapi/models/CreditLedgerEntry.d.ts +3 -1
  67. package/dist/openapi/models/CreditLedgerEntry.js +8 -2
  68. package/dist/openapi/models/Currency.d.ts +24 -0
  69. package/dist/openapi/models/Currency.js +28 -0
  70. package/dist/openapi/models/CustomField.d.ts +65 -0
  71. package/dist/openapi/models/CustomField.js +78 -0
  72. package/dist/openapi/models/CustomFieldEntities.d.ts +20 -0
  73. package/dist/openapi/models/CustomFieldEntities.js +24 -0
  74. package/dist/openapi/models/CustomFieldValue.d.ts +33 -0
  75. package/dist/openapi/models/CustomFieldValue.js +44 -0
  76. package/dist/openapi/models/CustomFieldValueTypes.d.ts +20 -0
  77. package/dist/openapi/models/CustomFieldValueTypes.js +24 -0
  78. package/dist/openapi/models/CustomerCloudProviderSettings.d.ts +39 -0
  79. package/dist/openapi/models/CustomerCloudProviderSettings.js +51 -0
  80. package/dist/openapi/models/CustomerSource.d.ts +21 -0
  81. package/dist/openapi/models/CustomerSource.js +25 -0
  82. package/dist/openapi/models/DeleteCatalogProductResponse.d.ts +32 -0
  83. package/dist/openapi/models/DeleteCatalogProductResponse.js +32 -0
  84. package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.d.ts +46 -0
  85. package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.js +68 -0
  86. package/dist/openapi/models/DeleteContractResponseContract.d.ts +53 -5
  87. package/dist/openapi/models/DeleteContractResponseContract.js +76 -4
  88. package/dist/openapi/models/DeleteCustomFieldResponse.d.ts +32 -0
  89. package/dist/openapi/models/DeleteCustomFieldResponse.js +32 -0
  90. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.d.ts +75 -0
  91. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.js +114 -0
  92. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +70 -2
  93. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +112 -6
  94. package/dist/openapi/models/DeleteEventsByRefsRequest.d.ts +31 -0
  95. package/dist/openapi/models/DeleteEventsByRefsRequest.js +32 -0
  96. package/dist/openapi/models/DeleteEventsByRefsResponse.d.ts +35 -0
  97. package/dist/openapi/models/DeleteEventsByRefsResponse.js +32 -0
  98. package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.d.ts +56 -0
  99. package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.js +80 -0
  100. package/dist/openapi/models/DeletePlanResponse.d.ts +32 -0
  101. package/dist/openapi/models/DeletePlanResponse.js +32 -0
  102. package/dist/openapi/models/DeletePlanResponsePlan.d.ts +42 -0
  103. package/dist/openapi/models/DeletePlanResponsePlan.js +68 -0
  104. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +1 -1
  105. package/dist/openapi/models/ExternalOverageStrategy.d.ts +20 -0
  106. package/dist/openapi/models/ExternalOverageStrategy.js +24 -0
  107. package/dist/openapi/models/GetCatalogProductResponse.d.ts +32 -0
  108. package/dist/openapi/models/GetCatalogProductResponse.js +32 -0
  109. package/dist/openapi/models/GetContractByIntegrationIdResponse.d.ts +32 -0
  110. package/dist/openapi/models/GetContractByIntegrationIdResponse.js +32 -0
  111. package/dist/openapi/models/GetContractResponseContract.d.ts +53 -5
  112. package/dist/openapi/models/GetContractResponseContract.js +76 -4
  113. package/dist/openapi/models/GetCustomFieldResponse.d.ts +32 -0
  114. package/dist/openapi/models/GetCustomFieldResponse.js +32 -0
  115. package/dist/openapi/models/GetCustomerByIntegrationIdResponse.d.ts +32 -0
  116. package/dist/openapi/models/GetCustomerByIntegrationIdResponse.js +32 -0
  117. package/dist/openapi/models/GetCustomerByNameResponse.d.ts +32 -0
  118. package/dist/openapi/models/GetCustomerByNameResponse.js +32 -0
  119. package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +123 -0
  120. package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +183 -0
  121. package/dist/openapi/models/GetCustomerRelationResponse.d.ts +32 -0
  122. package/dist/openapi/models/GetCustomerRelationResponse.js +32 -0
  123. package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +14 -0
  124. package/dist/openapi/models/GetInvoiceResponseInvoice.js +30 -0
  125. package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.d.ts +39 -0
  126. package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.js +65 -0
  127. package/dist/openapi/models/GetPlanResponse.d.ts +32 -0
  128. package/dist/openapi/models/GetPlanResponse.js +32 -0
  129. package/dist/openapi/models/GetPlanResponsePlan.d.ts +41 -0
  130. package/dist/openapi/models/GetPlanResponsePlan.js +62 -0
  131. package/dist/openapi/models/IntegrationEntity.d.ts +42 -0
  132. package/dist/openapi/models/IntegrationEntity.js +62 -0
  133. package/dist/openapi/models/IntegrationEntityTypes.d.ts +23 -0
  134. package/dist/openapi/models/IntegrationEntityTypes.js +27 -0
  135. package/dist/openapi/models/IntegrationProviders.d.ts +26 -0
  136. package/dist/openapi/models/IntegrationProviders.js +30 -0
  137. package/dist/openapi/models/IntegrationType.d.ts +26 -0
  138. package/dist/openapi/models/IntegrationType.js +30 -0
  139. package/dist/openapi/models/InternalServerErrorResponse.d.ts +42 -0
  140. package/dist/openapi/models/InternalServerErrorResponse.js +52 -0
  141. package/dist/openapi/models/InvoiceBillingStatus.d.ts +21 -0
  142. package/dist/openapi/models/InvoiceBillingStatus.js +25 -0
  143. package/dist/openapi/models/InvoicePaymentStatusResponse.d.ts +39 -0
  144. package/dist/openapi/models/InvoicePaymentStatusResponse.js +74 -0
  145. package/dist/openapi/models/ListCatalogProductsResponse.d.ts +35 -0
  146. package/dist/openapi/models/ListCatalogProductsResponse.js +50 -0
  147. package/dist/openapi/models/ListCustomFieldsResponse.d.ts +35 -0
  148. package/dist/openapi/models/ListCustomFieldsResponse.js +50 -0
  149. package/dist/openapi/models/ListPlansResponse.d.ts +35 -0
  150. package/dist/openapi/models/ListPlansResponse.js +50 -0
  151. package/dist/openapi/models/NotFoundErrorResponse.d.ts +42 -0
  152. package/dist/openapi/models/NotFoundErrorResponse.js +52 -0
  153. package/dist/openapi/models/NotificationEventType.d.ts +7 -1
  154. package/dist/openapi/models/NotificationEventType.js +6 -0
  155. package/dist/openapi/models/ObjectSerializer.d.ts +112 -0
  156. package/dist/openapi/models/ObjectSerializer.js +367 -0
  157. package/dist/openapi/models/PartnerSubmissionDetail.d.ts +46 -0
  158. package/dist/openapi/models/PartnerSubmissionDetail.js +49 -0
  159. package/dist/openapi/models/PaymentInfo.d.ts +45 -0
  160. package/dist/openapi/models/PaymentInfo.js +89 -0
  161. package/dist/openapi/models/PaymentInfoDepositTo.d.ts +32 -0
  162. package/dist/openapi/models/PaymentInfoDepositTo.js +38 -0
  163. package/dist/openapi/models/PaymentTerm.d.ts +18 -0
  164. package/dist/openapi/models/PaymentTerm.js +22 -0
  165. package/dist/openapi/models/PlanBillingData.d.ts +41 -0
  166. package/dist/openapi/models/PlanBillingData.js +59 -0
  167. package/dist/openapi/models/PlanDuration.d.ts +30 -0
  168. package/dist/openapi/models/PlanDuration.js +25 -0
  169. package/dist/openapi/models/PlanStatus.d.ts +19 -0
  170. package/dist/openapi/models/PlanStatus.js +23 -0
  171. package/dist/openapi/models/ProductCloudProviderSettings.d.ts +39 -0
  172. package/dist/openapi/models/ProductCloudProviderSettings.js +51 -0
  173. package/dist/openapi/models/ProductGroup.d.ts +65 -0
  174. package/dist/openapi/models/ProductGroup.js +80 -0
  175. package/dist/openapi/models/ProductGroupCommitment.d.ts +53 -0
  176. package/dist/openapi/models/ProductGroupCommitment.js +64 -0
  177. package/dist/openapi/models/ProductGroupProductsInner.d.ts +68 -0
  178. package/dist/openapi/models/ProductGroupProductsInner.js +98 -0
  179. package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +53 -0
  180. package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +64 -0
  181. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +39 -0
  182. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +41 -0
  183. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.d.ts +41 -0
  184. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.js +48 -0
  185. package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +38 -0
  186. package/dist/openapi/models/ProductGroupProductsInnerPricing.js +24 -0
  187. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +41 -0
  188. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +54 -0
  189. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +39 -0
  190. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +54 -0
  191. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.d.ts +32 -0
  192. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.js +38 -0
  193. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +39 -0
  194. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +54 -0
  195. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.d.ts +38 -0
  196. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.js +45 -0
  197. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.d.ts +46 -0
  198. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.js +78 -0
  199. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.d.ts +38 -0
  200. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.js +45 -0
  201. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.d.ts +35 -0
  202. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.js +56 -0
  203. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.d.ts +41 -0
  204. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.js +60 -0
  205. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.d.ts +42 -0
  206. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.js +48 -0
  207. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.d.ts +42 -0
  208. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.js +48 -0
  209. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.d.ts +53 -0
  210. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.js +58 -0
  211. package/dist/openapi/models/ProductGroupProductsInnerScheduling.d.ts +39 -0
  212. package/dist/openapi/models/ProductGroupProductsInnerScheduling.js +41 -0
  213. package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.d.ts +41 -0
  214. package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.js +48 -0
  215. package/dist/openapi/models/QueryEventsResponse.d.ts +3 -3
  216. package/dist/openapi/models/QueryEventsResponse.js +18 -0
  217. package/dist/openapi/models/RateLimitErrorResponse.d.ts +42 -0
  218. package/dist/openapi/models/RateLimitErrorResponse.js +52 -0
  219. package/dist/openapi/models/RequestTooLongErrorResponse.d.ts +42 -0
  220. package/dist/openapi/models/RequestTooLongErrorResponse.js +52 -0
  221. package/dist/openapi/models/SubmitCloudUsageRequest.d.ts +39 -0
  222. package/dist/openapi/models/SubmitCloudUsageRequest.js +38 -0
  223. package/dist/openapi/models/SyncStatus.d.ts +16 -0
  224. package/dist/openapi/models/SyncStatus.js +20 -0
  225. package/dist/openapi/models/UnauthorizedErrorResponse.d.ts +42 -0
  226. package/dist/openapi/models/UnauthorizedErrorResponse.js +52 -0
  227. package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
  228. package/dist/openapi/models/UnlimitedDuration.js +18 -0
  229. package/dist/openapi/models/UpdateCatalogProductRequest.d.ts +42 -0
  230. package/dist/openapi/models/UpdateCatalogProductRequest.js +44 -0
  231. package/dist/openapi/models/UpdateCatalogProductResponse.d.ts +32 -0
  232. package/dist/openapi/models/UpdateCatalogProductResponse.js +32 -0
  233. package/dist/openapi/models/UpdateCustomFieldRequest.d.ts +71 -0
  234. package/dist/openapi/models/UpdateCustomFieldRequest.js +90 -0
  235. package/dist/openapi/models/UpdateCustomFieldResponse.d.ts +32 -0
  236. package/dist/openapi/models/UpdateCustomFieldResponse.js +32 -0
  237. package/dist/openapi/models/UpdateCustomerRequest.d.ts +70 -2
  238. package/dist/openapi/models/UpdateCustomerRequest.js +112 -6
  239. package/dist/openapi/models/UsageWindow.d.ts +41 -0
  240. package/dist/openapi/models/UsageWindow.js +41 -0
  241. package/dist/openapi/models/V2DeleteEventResponse.d.ts +32 -0
  242. package/dist/openapi/models/V2DeleteEventResponse.js +32 -0
  243. package/dist/openapi/models/V2DeleteEventsByRefsRequest.d.ts +31 -0
  244. package/dist/openapi/models/V2DeleteEventsByRefsRequest.js +32 -0
  245. package/dist/openapi/models/V2DeleteEventsByRefsResponse.d.ts +35 -0
  246. package/dist/openapi/models/V2DeleteEventsByRefsResponse.js +32 -0
  247. package/dist/openapi/models/V2EventsDryRunRequest.d.ts +32 -0
  248. package/dist/openapi/models/V2EventsDryRunRequest.js +32 -0
  249. package/dist/openapi/models/V2EventsDryRunResponse.d.ts +32 -0
  250. package/dist/openapi/models/V2EventsDryRunResponse.js +32 -0
  251. package/dist/openapi/models/V2GetEventResponse.d.ts +32 -0
  252. package/dist/openapi/models/V2GetEventResponse.js +32 -0
  253. package/dist/openapi/models/V2QueryEventsAggregationRequest.d.ts +45 -0
  254. package/dist/openapi/models/V2QueryEventsAggregationRequest.js +70 -0
  255. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.d.ts +39 -0
  256. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.js +62 -0
  257. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.d.ts +35 -0
  258. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.js +44 -0
  259. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.d.ts +38 -0
  260. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.js +45 -0
  261. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.d.ts +43 -0
  262. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.js +54 -0
  263. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.d.ts +30 -0
  264. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.js +25 -0
  265. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.d.ts +34 -0
  266. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.js +38 -0
  267. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.d.ts +32 -0
  268. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.js +38 -0
  269. package/dist/openapi/models/V2QueryEventsAggregationResponse.d.ts +42 -0
  270. package/dist/openapi/models/V2QueryEventsAggregationResponse.js +52 -0
  271. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.d.ts +34 -0
  272. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.js +38 -0
  273. package/dist/openapi/models/V2QueryEventsResponse.d.ts +35 -0
  274. package/dist/openapi/models/V2QueryEventsResponse.js +50 -0
  275. package/dist/openapi/models/V2SendEventsRequest.d.ts +32 -0
  276. package/dist/openapi/models/V2SendEventsRequest.js +32 -0
  277. package/dist/openapi/models/V2SendEventsResponse.d.ts +40 -0
  278. package/dist/openapi/models/V2SendEventsResponse.js +38 -0
  279. package/dist/openapi/models/ValidationErrorResponse.d.ts +51 -0
  280. package/dist/openapi/models/ValidationErrorResponse.js +60 -0
  281. package/dist/openapi/models/ValidationErrorResponseParamsInner.d.ts +38 -0
  282. package/dist/openapi/models/ValidationErrorResponseParamsInner.js +38 -0
  283. package/dist/openapi/models/WebhookSubscribeRequest.d.ts +1 -0
  284. package/dist/openapi/models/WebhookSubscribeRequest.js +6 -0
  285. package/dist/openapi/models/all.d.ts +112 -0
  286. package/dist/openapi/models/all.js +112 -0
  287. package/dist/openapi/types/ObservableAPI.d.ts +447 -14
  288. package/dist/openapi/types/ObservableAPI.js +907 -29
  289. package/dist/openapi/types/PromiseAPI.d.ts +439 -14
  290. package/dist/openapi/types/PromiseAPI.js +600 -38
  291. package/dist/sdk/clients/CatalogProductsClient.d.ts +11 -0
  292. package/dist/sdk/clients/CatalogProductsClient.js +28 -0
  293. package/dist/sdk/clients/CloudUsageSubmissionClient.d.ts +6 -0
  294. package/dist/sdk/clients/CloudUsageSubmissionClient.js +14 -0
  295. package/dist/sdk/clients/ContractsClient.d.ts +2 -1
  296. package/dist/sdk/clients/ContractsClient.js +3 -0
  297. package/dist/sdk/clients/CreditsClient.d.ts +9 -0
  298. package/dist/sdk/clients/CreditsClient.js +22 -0
  299. package/dist/sdk/clients/CustomersClient.d.ts +5 -1
  300. package/dist/sdk/clients/CustomersClient.js +12 -0
  301. package/dist/sdk/clients/EventsClient.d.ts +2 -1
  302. package/dist/sdk/clients/EventsClient.js +4 -1
  303. package/dist/sdk/clients/InvoicesClient.d.ts +1 -0
  304. package/dist/sdk/clients/InvoicesClient.js +3 -0
  305. package/dist/sdk/clients/MeasurementsClient.d.ts +10 -0
  306. package/dist/sdk/clients/MeasurementsClient.js +25 -0
  307. package/dist/sdk/clients/WebhooksClient.d.ts +2 -0
  308. package/dist/sdk/clients/WebhooksClient.js +14 -0
  309. package/dist/sdk/clients/index.d.ts +4 -0
  310. package/dist/sdk/clients/index.js +4 -0
  311. package/dist/sdk/index.d.ts +6 -1
  312. package/dist/sdk/index.js +13 -0
  313. package/dist/sdk/services/authenticated-http-library.d.ts +11 -0
  314. package/dist/sdk/services/authenticated-http-library.js +29 -0
  315. package/dist/sdk/services/authenticator.d.ts +11 -0
  316. package/dist/sdk/services/authenticator.js +57 -0
  317. package/dist/sdk/services/configuration.service.d.ts +7 -6
  318. package/dist/sdk/services/configuration.service.js +12 -44
  319. package/dist/sdk/types/CatalogProducts.d.ts +1 -0
  320. package/dist/sdk/types/CatalogProducts.js +2 -0
  321. package/dist/sdk/types/CloudUsageSubmission.d.ts +1 -0
  322. package/dist/sdk/types/CloudUsageSubmission.js +2 -0
  323. package/dist/sdk/types/Contracts.d.ts +1 -1
  324. package/dist/sdk/types/Credits.d.ts +1 -0
  325. package/dist/sdk/types/Credits.js +2 -0
  326. package/dist/sdk/types/Customers.d.ts +1 -1
  327. package/dist/sdk/types/Events.d.ts +1 -1
  328. package/dist/sdk/types/Invoices.d.ts +1 -1
  329. package/dist/sdk/types/Measurements.d.ts +1 -0
  330. package/dist/sdk/types/Measurements.js +2 -0
  331. package/dist/sdk/types/index.d.ts +4 -0
  332. package/dist/sdk/types/index.js +4 -0
  333. package/dist/sdk-v2/services/configuration.service.js +16 -8
  334. package/package.json +3 -4
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /**
3
+ * Vayu API
4
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
+ *
6
+ * OpenAPI spec version: 1.0.0
7
+ * Contact: dev@withvayu.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ProductGroupProductsInnerPricingOneOf3TypeEnum = exports.ProductGroupProductsInnerPricingOneOf3 = void 0;
15
+ class ProductGroupProductsInnerPricingOneOf3 {
16
+ static getAttributeTypeMap() {
17
+ return ProductGroupProductsInnerPricingOneOf3.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.ProductGroupProductsInnerPricingOneOf3 = ProductGroupProductsInnerPricingOneOf3;
23
+ ProductGroupProductsInnerPricingOneOf3.discriminator = undefined;
24
+ ProductGroupProductsInnerPricingOneOf3.mapping = undefined;
25
+ ProductGroupProductsInnerPricingOneOf3.attributeTypeMap = [
26
+ {
27
+ "name": "type",
28
+ "baseName": "type",
29
+ "type": "ProductGroupProductsInnerPricingOneOf3TypeEnum",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "tiers",
34
+ "baseName": "tiers",
35
+ "type": "Array<ProductGroupProductsInnerPricingOneOf3TiersInner>",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "subscriptionCadence",
40
+ "baseName": "subscriptionCadence",
41
+ "type": "ProductGroupProductsInnerPricingOneOf3SubscriptionCadence",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "autoUpgrade",
46
+ "baseName": "autoUpgrade",
47
+ "type": "boolean",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "prorate",
52
+ "baseName": "prorate",
53
+ "type": "boolean",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "isRevShare",
58
+ "baseName": "isRevShare",
59
+ "type": "boolean",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "baseAmount",
64
+ "baseName": "baseAmount",
65
+ "type": "number",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "usageReset",
70
+ "baseName": "usageReset",
71
+ "type": "number",
72
+ "format": ""
73
+ }
74
+ ];
75
+ var ProductGroupProductsInnerPricingOneOf3TypeEnum;
76
+ (function (ProductGroupProductsInnerPricingOneOf3TypeEnum) {
77
+ ProductGroupProductsInnerPricingOneOf3TypeEnum["Tiered"] = "TIERED";
78
+ })(ProductGroupProductsInnerPricingOneOf3TypeEnum = exports.ProductGroupProductsInnerPricingOneOf3TypeEnum || (exports.ProductGroupProductsInnerPricingOneOf3TypeEnum = {}));
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Vayu API
3
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
+ *
5
+ * OpenAPI spec version: 1.0.0
6
+ * Contact: dev@withvayu.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class ProductGroupProductsInnerPricingOneOf3SubscriptionCadence {
13
+ 'unit': ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum;
14
+ 'value': number;
15
+ static readonly discriminator: string | undefined;
16
+ static readonly mapping: {
17
+ [index: string]: string;
18
+ } | undefined;
19
+ static readonly attributeTypeMap: Array<{
20
+ name: string;
21
+ baseName: string;
22
+ type: string;
23
+ format: string;
24
+ }>;
25
+ static getAttributeTypeMap(): {
26
+ name: string;
27
+ baseName: string;
28
+ type: string;
29
+ format: string;
30
+ }[];
31
+ constructor();
32
+ }
33
+ export declare enum ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum {
34
+ Day = "DAY",
35
+ Week = "WEEK",
36
+ Month = "MONTH",
37
+ Year = "YEAR"
38
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * Vayu API
4
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
+ *
6
+ * OpenAPI spec version: 1.0.0
7
+ * Contact: dev@withvayu.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum = exports.ProductGroupProductsInnerPricingOneOf3SubscriptionCadence = void 0;
15
+ class ProductGroupProductsInnerPricingOneOf3SubscriptionCadence {
16
+ static getAttributeTypeMap() {
17
+ return ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.ProductGroupProductsInnerPricingOneOf3SubscriptionCadence = ProductGroupProductsInnerPricingOneOf3SubscriptionCadence;
23
+ ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.discriminator = undefined;
24
+ ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.mapping = undefined;
25
+ ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.attributeTypeMap = [
26
+ {
27
+ "name": "unit",
28
+ "baseName": "unit",
29
+ "type": "ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "value",
34
+ "baseName": "value",
35
+ "type": "number",
36
+ "format": ""
37
+ }
38
+ ];
39
+ var ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum;
40
+ (function (ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum) {
41
+ ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum["Day"] = "DAY";
42
+ ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum["Week"] = "WEEK";
43
+ ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum["Month"] = "MONTH";
44
+ ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum["Year"] = "YEAR";
45
+ })(ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum = exports.ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum || (exports.ProductGroupProductsInnerPricingOneOf3SubscriptionCadenceUnitEnum = {}));
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Vayu API
3
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
+ *
5
+ * OpenAPI spec version: 1.0.0
6
+ * Contact: dev@withvayu.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class ProductGroupProductsInnerPricingOneOf3TiersInner {
13
+ 'fromInclusive': number;
14
+ 'toExclusive'?: number | null;
15
+ 'rate'?: number | null;
16
+ 'flatFee'?: number | null;
17
+ 'packageSize'?: number | null;
18
+ static readonly discriminator: string | undefined;
19
+ static readonly mapping: {
20
+ [index: string]: string;
21
+ } | undefined;
22
+ static readonly attributeTypeMap: Array<{
23
+ name: string;
24
+ baseName: string;
25
+ type: string;
26
+ format: string;
27
+ }>;
28
+ static getAttributeTypeMap(): {
29
+ name: string;
30
+ baseName: string;
31
+ type: string;
32
+ format: string;
33
+ }[];
34
+ constructor();
35
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * Vayu API
4
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
+ *
6
+ * OpenAPI spec version: 1.0.0
7
+ * Contact: dev@withvayu.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ProductGroupProductsInnerPricingOneOf3TiersInner = void 0;
15
+ class ProductGroupProductsInnerPricingOneOf3TiersInner {
16
+ static getAttributeTypeMap() {
17
+ return ProductGroupProductsInnerPricingOneOf3TiersInner.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.ProductGroupProductsInnerPricingOneOf3TiersInner = ProductGroupProductsInnerPricingOneOf3TiersInner;
23
+ ProductGroupProductsInnerPricingOneOf3TiersInner.discriminator = undefined;
24
+ ProductGroupProductsInnerPricingOneOf3TiersInner.mapping = undefined;
25
+ ProductGroupProductsInnerPricingOneOf3TiersInner.attributeTypeMap = [
26
+ {
27
+ "name": "fromInclusive",
28
+ "baseName": "fromInclusive",
29
+ "type": "number",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "toExclusive",
34
+ "baseName": "toExclusive",
35
+ "type": "number",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "rate",
40
+ "baseName": "rate",
41
+ "type": "number",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "flatFee",
46
+ "baseName": "flatFee",
47
+ "type": "number",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "packageSize",
52
+ "baseName": "packageSize",
53
+ "type": "number",
54
+ "format": ""
55
+ }
56
+ ];
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Vayu API
3
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
+ *
5
+ * OpenAPI spec version: 1.0.0
6
+ * Contact: dev@withvayu.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class ProductGroupProductsInnerPricingOneOf4 {
13
+ 'type': ProductGroupProductsInnerPricingOneOf4TypeEnum;
14
+ 'price': number;
15
+ 'chunkSize'?: number | null;
16
+ /**
17
+ * Usage reset is represented in months and must be one of: 1, 2, 3, 6, 12
18
+ */
19
+ 'usageReset'?: number | null;
20
+ 'baseAmount'?: number | null;
21
+ static readonly discriminator: string | undefined;
22
+ static readonly mapping: {
23
+ [index: string]: string;
24
+ } | undefined;
25
+ static readonly attributeTypeMap: Array<{
26
+ name: string;
27
+ baseName: string;
28
+ type: string;
29
+ format: string;
30
+ }>;
31
+ static getAttributeTypeMap(): {
32
+ name: string;
33
+ baseName: string;
34
+ type: string;
35
+ format: string;
36
+ }[];
37
+ constructor();
38
+ }
39
+ export declare enum ProductGroupProductsInnerPricingOneOf4TypeEnum {
40
+ PerUnit = "PER_UNIT"
41
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /**
3
+ * Vayu API
4
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
+ *
6
+ * OpenAPI spec version: 1.0.0
7
+ * Contact: dev@withvayu.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ProductGroupProductsInnerPricingOneOf4TypeEnum = exports.ProductGroupProductsInnerPricingOneOf4 = void 0;
15
+ class ProductGroupProductsInnerPricingOneOf4 {
16
+ static getAttributeTypeMap() {
17
+ return ProductGroupProductsInnerPricingOneOf4.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.ProductGroupProductsInnerPricingOneOf4 = ProductGroupProductsInnerPricingOneOf4;
23
+ ProductGroupProductsInnerPricingOneOf4.discriminator = undefined;
24
+ ProductGroupProductsInnerPricingOneOf4.mapping = undefined;
25
+ ProductGroupProductsInnerPricingOneOf4.attributeTypeMap = [
26
+ {
27
+ "name": "type",
28
+ "baseName": "type",
29
+ "type": "ProductGroupProductsInnerPricingOneOf4TypeEnum",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "price",
34
+ "baseName": "price",
35
+ "type": "number",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "chunkSize",
40
+ "baseName": "chunkSize",
41
+ "type": "number",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "usageReset",
46
+ "baseName": "usageReset",
47
+ "type": "number",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "baseAmount",
52
+ "baseName": "baseAmount",
53
+ "type": "number",
54
+ "format": ""
55
+ }
56
+ ];
57
+ var ProductGroupProductsInnerPricingOneOf4TypeEnum;
58
+ (function (ProductGroupProductsInnerPricingOneOf4TypeEnum) {
59
+ ProductGroupProductsInnerPricingOneOf4TypeEnum["PerUnit"] = "PER_UNIT";
60
+ })(ProductGroupProductsInnerPricingOneOf4TypeEnum = exports.ProductGroupProductsInnerPricingOneOf4TypeEnum || (exports.ProductGroupProductsInnerPricingOneOf4TypeEnum = {}));
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Vayu API
3
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
+ *
5
+ * OpenAPI spec version: 1.0.0
6
+ * Contact: dev@withvayu.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class ProductGroupProductsInnerPricingOneOf5 {
13
+ 'type': ProductGroupProductsInnerPricingOneOf5TypeEnum;
14
+ /**
15
+ * The fixed amount to deduct
16
+ */
17
+ 'amountToDeduct': number;
18
+ /**
19
+ * The number of installments to spread the deduction over
20
+ */
21
+ 'installments'?: number;
22
+ static readonly discriminator: string | undefined;
23
+ static readonly mapping: {
24
+ [index: string]: string;
25
+ } | undefined;
26
+ static readonly attributeTypeMap: Array<{
27
+ name: string;
28
+ baseName: string;
29
+ type: string;
30
+ format: string;
31
+ }>;
32
+ static getAttributeTypeMap(): {
33
+ name: string;
34
+ baseName: string;
35
+ type: string;
36
+ format: string;
37
+ }[];
38
+ constructor();
39
+ }
40
+ export declare enum ProductGroupProductsInnerPricingOneOf5TypeEnum {
41
+ FixedDeduction = "FIXED_DEDUCTION"
42
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * Vayu API
4
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
+ *
6
+ * OpenAPI spec version: 1.0.0
7
+ * Contact: dev@withvayu.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ProductGroupProductsInnerPricingOneOf5TypeEnum = exports.ProductGroupProductsInnerPricingOneOf5 = void 0;
15
+ class ProductGroupProductsInnerPricingOneOf5 {
16
+ static getAttributeTypeMap() {
17
+ return ProductGroupProductsInnerPricingOneOf5.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.ProductGroupProductsInnerPricingOneOf5 = ProductGroupProductsInnerPricingOneOf5;
23
+ ProductGroupProductsInnerPricingOneOf5.discriminator = undefined;
24
+ ProductGroupProductsInnerPricingOneOf5.mapping = undefined;
25
+ ProductGroupProductsInnerPricingOneOf5.attributeTypeMap = [
26
+ {
27
+ "name": "type",
28
+ "baseName": "type",
29
+ "type": "ProductGroupProductsInnerPricingOneOf5TypeEnum",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "amountToDeduct",
34
+ "baseName": "amountToDeduct",
35
+ "type": "number",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "installments",
40
+ "baseName": "installments",
41
+ "type": "number",
42
+ "format": ""
43
+ }
44
+ ];
45
+ var ProductGroupProductsInnerPricingOneOf5TypeEnum;
46
+ (function (ProductGroupProductsInnerPricingOneOf5TypeEnum) {
47
+ ProductGroupProductsInnerPricingOneOf5TypeEnum["FixedDeduction"] = "FIXED_DEDUCTION";
48
+ })(ProductGroupProductsInnerPricingOneOf5TypeEnum = exports.ProductGroupProductsInnerPricingOneOf5TypeEnum || (exports.ProductGroupProductsInnerPricingOneOf5TypeEnum = {}));
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Vayu API
3
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
+ *
5
+ * OpenAPI spec version: 1.0.0
6
+ * Contact: dev@withvayu.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export declare class ProductGroupProductsInnerPricingOneOf6 {
13
+ 'type': ProductGroupProductsInnerPricingOneOf6TypeEnum;
14
+ /**
15
+ * The percentage to deduct
16
+ */
17
+ 'percentageToDeduct': number;
18
+ /**
19
+ * The number of installments to spread the deduction over
20
+ */
21
+ 'installments'?: number;
22
+ static readonly discriminator: string | undefined;
23
+ static readonly mapping: {
24
+ [index: string]: string;
25
+ } | undefined;
26
+ static readonly attributeTypeMap: Array<{
27
+ name: string;
28
+ baseName: string;
29
+ type: string;
30
+ format: string;
31
+ }>;
32
+ static getAttributeTypeMap(): {
33
+ name: string;
34
+ baseName: string;
35
+ type: string;
36
+ format: string;
37
+ }[];
38
+ constructor();
39
+ }
40
+ export declare enum ProductGroupProductsInnerPricingOneOf6TypeEnum {
41
+ PercentageDeduction = "PERCENTAGE_DEDUCTION"
42
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * Vayu API
4
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
+ *
6
+ * OpenAPI spec version: 1.0.0
7
+ * Contact: dev@withvayu.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ProductGroupProductsInnerPricingOneOf6TypeEnum = exports.ProductGroupProductsInnerPricingOneOf6 = void 0;
15
+ class ProductGroupProductsInnerPricingOneOf6 {
16
+ static getAttributeTypeMap() {
17
+ return ProductGroupProductsInnerPricingOneOf6.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.ProductGroupProductsInnerPricingOneOf6 = ProductGroupProductsInnerPricingOneOf6;
23
+ ProductGroupProductsInnerPricingOneOf6.discriminator = undefined;
24
+ ProductGroupProductsInnerPricingOneOf6.mapping = undefined;
25
+ ProductGroupProductsInnerPricingOneOf6.attributeTypeMap = [
26
+ {
27
+ "name": "type",
28
+ "baseName": "type",
29
+ "type": "ProductGroupProductsInnerPricingOneOf6TypeEnum",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "percentageToDeduct",
34
+ "baseName": "percentageToDeduct",
35
+ "type": "number",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "installments",
40
+ "baseName": "installments",
41
+ "type": "number",
42
+ "format": ""
43
+ }
44
+ ];
45
+ var ProductGroupProductsInnerPricingOneOf6TypeEnum;
46
+ (function (ProductGroupProductsInnerPricingOneOf6TypeEnum) {
47
+ ProductGroupProductsInnerPricingOneOf6TypeEnum["PercentageDeduction"] = "PERCENTAGE_DEDUCTION";
48
+ })(ProductGroupProductsInnerPricingOneOf6TypeEnum = exports.ProductGroupProductsInnerPricingOneOf6TypeEnum || (exports.ProductGroupProductsInnerPricingOneOf6TypeEnum = {}));
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Vayu API
3
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
+ *
5
+ * OpenAPI spec version: 1.0.0
6
+ * Contact: dev@withvayu.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * An optional discount to apply to this product
14
+ */
15
+ export declare class ProductGroupProductsInnerPricingOneOfDiscount {
16
+ /**
17
+ * The name of the discount. Will appear on the invoice.
18
+ */
19
+ 'name': string;
20
+ /**
21
+ * The type of discount — FIXED for a fixed amount, PERCENTAGE for a percentage-based discount.
22
+ */
23
+ 'type': ProductGroupProductsInnerPricingOneOfDiscountTypeEnum;
24
+ /**
25
+ * The discount amount. Interpreted as a currency amount for FIXED or a percentage for PERCENTAGE.
26
+ */
27
+ 'amount': number;
28
+ /**
29
+ * The number of billing periods the discount applies for. If not provided, the discount recurs indefinitely.
30
+ */
31
+ 'recurring'?: number;
32
+ static readonly discriminator: string | undefined;
33
+ static readonly mapping: {
34
+ [index: string]: string;
35
+ } | undefined;
36
+ static readonly attributeTypeMap: Array<{
37
+ name: string;
38
+ baseName: string;
39
+ type: string;
40
+ format: string;
41
+ }>;
42
+ static getAttributeTypeMap(): {
43
+ name: string;
44
+ baseName: string;
45
+ type: string;
46
+ format: string;
47
+ }[];
48
+ constructor();
49
+ }
50
+ export declare enum ProductGroupProductsInnerPricingOneOfDiscountTypeEnum {
51
+ Fixed = "FIXED",
52
+ Percentage = "PERCENTAGE"
53
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * Vayu API
4
+ * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
+ *
6
+ * OpenAPI spec version: 1.0.0
7
+ * Contact: dev@withvayu.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ProductGroupProductsInnerPricingOneOfDiscountTypeEnum = exports.ProductGroupProductsInnerPricingOneOfDiscount = void 0;
15
+ /**
16
+ * An optional discount to apply to this product
17
+ */
18
+ class ProductGroupProductsInnerPricingOneOfDiscount {
19
+ static getAttributeTypeMap() {
20
+ return ProductGroupProductsInnerPricingOneOfDiscount.attributeTypeMap;
21
+ }
22
+ constructor() {
23
+ }
24
+ }
25
+ exports.ProductGroupProductsInnerPricingOneOfDiscount = ProductGroupProductsInnerPricingOneOfDiscount;
26
+ ProductGroupProductsInnerPricingOneOfDiscount.discriminator = undefined;
27
+ ProductGroupProductsInnerPricingOneOfDiscount.mapping = undefined;
28
+ ProductGroupProductsInnerPricingOneOfDiscount.attributeTypeMap = [
29
+ {
30
+ "name": "name",
31
+ "baseName": "name",
32
+ "type": "string",
33
+ "format": ""
34
+ },
35
+ {
36
+ "name": "type",
37
+ "baseName": "type",
38
+ "type": "ProductGroupProductsInnerPricingOneOfDiscountTypeEnum",
39
+ "format": ""
40
+ },
41
+ {
42
+ "name": "amount",
43
+ "baseName": "amount",
44
+ "type": "number",
45
+ "format": ""
46
+ },
47
+ {
48
+ "name": "recurring",
49
+ "baseName": "recurring",
50
+ "type": "number",
51
+ "format": ""
52
+ }
53
+ ];
54
+ var ProductGroupProductsInnerPricingOneOfDiscountTypeEnum;
55
+ (function (ProductGroupProductsInnerPricingOneOfDiscountTypeEnum) {
56
+ ProductGroupProductsInnerPricingOneOfDiscountTypeEnum["Fixed"] = "FIXED";
57
+ ProductGroupProductsInnerPricingOneOfDiscountTypeEnum["Percentage"] = "PERCENTAGE";
58
+ })(ProductGroupProductsInnerPricingOneOfDiscountTypeEnum = exports.ProductGroupProductsInnerPricingOneOfDiscountTypeEnum || (exports.ProductGroupProductsInnerPricingOneOfDiscountTypeEnum = {}));