vayu-ts 0.2.14 → 0.3.4

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/example/index.d.ts +1 -0
  2. package/dist/example/index.js +74 -0
  3. package/dist/openapi/apis/CatalogProductsApi.d.ts +89 -0
  4. package/dist/openapi/apis/CatalogProductsApi.js +354 -0
  5. package/dist/openapi/apis/CloudUsageSubmissionApi.d.ts +25 -0
  6. package/dist/openapi/apis/CloudUsageSubmissionApi.js +85 -0
  7. package/dist/openapi/apis/ContractsApi.d.ts +21 -3
  8. package/dist/openapi/apis/ContractsApi.js +75 -3
  9. package/dist/openapi/apis/CustomersApi.d.ts +63 -0
  10. package/dist/openapi/apis/CustomersApi.js +257 -7
  11. package/dist/openapi/apis/EventsApi.d.ts +16 -0
  12. package/dist/openapi/apis/EventsApi.js +67 -12
  13. package/dist/openapi/apis/InvoicesApi.d.ts +19 -3
  14. package/dist/openapi/apis/InvoicesApi.js +69 -3
  15. package/dist/openapi/apis/ProductConsumptionsApi.js +0 -3
  16. package/dist/openapi/apis/WebhooksApi.js +0 -3
  17. package/dist/openapi/http/http.d.ts +6 -18
  18. package/dist/openapi/http/http.js +25 -13
  19. package/dist/openapi/http/isomorphic-fetch.d.ts +1 -0
  20. package/dist/openapi/http/isomorphic-fetch.js +4 -7
  21. package/dist/openapi/index.d.ts +1 -1
  22. package/dist/openapi/index.js +3 -1
  23. package/dist/openapi/models/Address.d.ts +5 -5
  24. package/dist/openapi/models/CloudUsageResult.d.ts +83 -0
  25. package/dist/openapi/models/CloudUsageResult.js +103 -0
  26. package/dist/openapi/models/Contact.d.ts +3 -1
  27. package/dist/openapi/models/Contact.js +12 -0
  28. package/dist/openapi/models/ContractStatus.d.ts +23 -0
  29. package/dist/openapi/models/ContractStatus.js +27 -0
  30. package/dist/openapi/models/CreateCatalogProductRequest.d.ts +42 -0
  31. package/dist/openapi/models/CreateCatalogProductRequest.js +44 -0
  32. package/dist/openapi/models/CreateCatalogProductResponse.d.ts +32 -0
  33. package/dist/openapi/models/CreateCatalogProductResponse.js +32 -0
  34. package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.d.ts +45 -0
  35. package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.js +62 -0
  36. package/dist/openapi/models/CreateContractRequest.d.ts +47 -5
  37. package/dist/openapi/models/CreateContractRequest.js +65 -5
  38. package/dist/openapi/models/CreateCustomerRelationRequest.d.ts +38 -0
  39. package/dist/openapi/models/CreateCustomerRelationRequest.js +38 -0
  40. package/dist/openapi/models/CreateCustomerRelationResponse.d.ts +32 -0
  41. package/dist/openapi/models/CreateCustomerRelationResponse.js +32 -0
  42. package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.d.ts +41 -0
  43. package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.js +56 -0
  44. package/dist/openapi/models/CreateCustomerRequest.d.ts +50 -2
  45. package/dist/openapi/models/CreateCustomerRequest.js +82 -6
  46. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +50 -2
  47. package/dist/openapi/models/CreateCustomerResponseCustomer.js +82 -6
  48. package/dist/openapi/models/CreditLedgerEntry.d.ts +3 -1
  49. package/dist/openapi/models/CreditLedgerEntry.js +8 -2
  50. package/dist/openapi/models/Currency.d.ts +24 -0
  51. package/dist/openapi/models/Currency.js +28 -0
  52. package/dist/openapi/models/CustomField.d.ts +65 -0
  53. package/dist/openapi/models/CustomField.js +78 -0
  54. package/dist/openapi/models/CustomFieldValue.d.ts +33 -0
  55. package/dist/openapi/models/CustomFieldValue.js +44 -0
  56. package/dist/openapi/models/CustomFieldValueTypes.d.ts +19 -0
  57. package/dist/openapi/models/CustomFieldValueTypes.js +23 -0
  58. package/dist/openapi/models/CustomerCloudProviderSettings.d.ts +39 -0
  59. package/dist/openapi/models/CustomerCloudProviderSettings.js +51 -0
  60. package/dist/openapi/models/CustomerSource.d.ts +21 -0
  61. package/dist/openapi/models/CustomerSource.js +25 -0
  62. package/dist/openapi/models/DeleteCatalogProductResponse.d.ts +32 -0
  63. package/dist/openapi/models/DeleteCatalogProductResponse.js +32 -0
  64. package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.d.ts +46 -0
  65. package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.js +68 -0
  66. package/dist/openapi/models/DeleteContractResponseContract.d.ts +47 -5
  67. package/dist/openapi/models/DeleteContractResponseContract.js +65 -5
  68. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +50 -2
  69. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +82 -6
  70. package/dist/openapi/models/DeleteEventsByRefsRequest.d.ts +31 -0
  71. package/dist/openapi/models/DeleteEventsByRefsRequest.js +32 -0
  72. package/dist/openapi/models/DeleteEventsByRefsResponse.d.ts +35 -0
  73. package/dist/openapi/models/DeleteEventsByRefsResponse.js +32 -0
  74. package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.d.ts +56 -0
  75. package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.js +80 -0
  76. package/dist/openapi/models/ExternalOverageStrategy.d.ts +20 -0
  77. package/dist/openapi/models/ExternalOverageStrategy.js +24 -0
  78. package/dist/openapi/models/GetCatalogProductResponse.d.ts +32 -0
  79. package/dist/openapi/models/GetCatalogProductResponse.js +32 -0
  80. package/dist/openapi/models/GetContractByIntegrationIdResponse.d.ts +32 -0
  81. package/dist/openapi/models/GetContractByIntegrationIdResponse.js +32 -0
  82. package/dist/openapi/models/GetContractResponseContract.d.ts +47 -5
  83. package/dist/openapi/models/GetContractResponseContract.js +65 -5
  84. package/dist/openapi/models/GetCustomerByIntegrationIdResponse.d.ts +32 -0
  85. package/dist/openapi/models/GetCustomerByIntegrationIdResponse.js +32 -0
  86. package/dist/openapi/models/GetCustomerByNameResponse.d.ts +32 -0
  87. package/dist/openapi/models/GetCustomerByNameResponse.js +32 -0
  88. package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +103 -0
  89. package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +153 -0
  90. package/dist/openapi/models/GetCustomerRelationResponse.d.ts +32 -0
  91. package/dist/openapi/models/GetCustomerRelationResponse.js +32 -0
  92. package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +14 -0
  93. package/dist/openapi/models/GetInvoiceResponseInvoice.js +30 -0
  94. package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.d.ts +39 -0
  95. package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.js +65 -0
  96. package/dist/openapi/models/IntegrationEntity.d.ts +42 -0
  97. package/dist/openapi/models/IntegrationEntity.js +62 -0
  98. package/dist/openapi/models/IntegrationEntityTypes.d.ts +23 -0
  99. package/dist/openapi/models/IntegrationEntityTypes.js +27 -0
  100. package/dist/openapi/models/IntegrationProviders.d.ts +26 -0
  101. package/dist/openapi/models/IntegrationProviders.js +30 -0
  102. package/dist/openapi/models/IntegrationType.d.ts +26 -0
  103. package/dist/openapi/models/IntegrationType.js +30 -0
  104. package/dist/openapi/models/InvoiceBillingStatus.d.ts +21 -0
  105. package/dist/openapi/models/InvoiceBillingStatus.js +25 -0
  106. package/dist/openapi/models/InvoicePaymentStatusResponse.d.ts +39 -0
  107. package/dist/openapi/models/InvoicePaymentStatusResponse.js +74 -0
  108. package/dist/openapi/models/ListCatalogProductsResponse.d.ts +35 -0
  109. package/dist/openapi/models/ListCatalogProductsResponse.js +50 -0
  110. package/dist/openapi/models/NotificationEventType.d.ts +3 -1
  111. package/dist/openapi/models/NotificationEventType.js +2 -0
  112. package/dist/openapi/models/ObjectSerializer.d.ts +61 -0
  113. package/dist/openapi/models/ObjectSerializer.js +191 -0
  114. package/dist/openapi/models/PartnerSubmissionDetail.d.ts +46 -0
  115. package/dist/openapi/models/PartnerSubmissionDetail.js +49 -0
  116. package/dist/openapi/models/PaymentInfo.d.ts +45 -0
  117. package/dist/openapi/models/PaymentInfo.js +89 -0
  118. package/dist/openapi/models/PaymentInfoDepositTo.d.ts +32 -0
  119. package/dist/openapi/models/PaymentInfoDepositTo.js +38 -0
  120. package/dist/openapi/models/PaymentTerm.d.ts +18 -0
  121. package/dist/openapi/models/PaymentTerm.js +22 -0
  122. package/dist/openapi/models/ProductCloudProviderSettings.d.ts +39 -0
  123. package/dist/openapi/models/ProductCloudProviderSettings.js +51 -0
  124. package/dist/openapi/models/ProductGroup.d.ts +65 -0
  125. package/dist/openapi/models/ProductGroup.js +80 -0
  126. package/dist/openapi/models/ProductGroupCommitment.d.ts +45 -0
  127. package/dist/openapi/models/ProductGroupCommitment.js +53 -0
  128. package/dist/openapi/models/ProductGroupProductsInner.d.ts +68 -0
  129. package/dist/openapi/models/ProductGroupProductsInner.js +98 -0
  130. package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +45 -0
  131. package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +53 -0
  132. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +39 -0
  133. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +41 -0
  134. package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +36 -0
  135. package/dist/openapi/models/ProductGroupProductsInnerPricing.js +24 -0
  136. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +35 -0
  137. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +42 -0
  138. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +37 -0
  139. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +48 -0
  140. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.d.ts +32 -0
  141. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.js +38 -0
  142. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +37 -0
  143. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +48 -0
  144. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.d.ts +38 -0
  145. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.js +45 -0
  146. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.d.ts +46 -0
  147. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.js +78 -0
  148. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.d.ts +38 -0
  149. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.js +45 -0
  150. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.d.ts +35 -0
  151. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.js +56 -0
  152. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.d.ts +41 -0
  153. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.js +60 -0
  154. package/dist/openapi/models/ProductGroupProductsInnerScheduling.d.ts +39 -0
  155. package/dist/openapi/models/ProductGroupProductsInnerScheduling.js +41 -0
  156. package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.d.ts +41 -0
  157. package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.js +48 -0
  158. package/dist/openapi/models/SubmitCloudUsageRequest.d.ts +39 -0
  159. package/dist/openapi/models/SubmitCloudUsageRequest.js +38 -0
  160. package/dist/openapi/models/SyncStatus.d.ts +16 -0
  161. package/dist/openapi/models/SyncStatus.js +20 -0
  162. package/dist/openapi/models/UpdateCatalogProductRequest.d.ts +42 -0
  163. package/dist/openapi/models/UpdateCatalogProductRequest.js +44 -0
  164. package/dist/openapi/models/UpdateCatalogProductResponse.d.ts +32 -0
  165. package/dist/openapi/models/UpdateCatalogProductResponse.js +32 -0
  166. package/dist/openapi/models/UpdateCustomerRequest.d.ts +50 -2
  167. package/dist/openapi/models/UpdateCustomerRequest.js +82 -6
  168. package/dist/openapi/models/UsageWindow.d.ts +41 -0
  169. package/dist/openapi/models/UsageWindow.js +41 -0
  170. package/dist/openapi/models/all.d.ts +61 -0
  171. package/dist/openapi/models/all.js +61 -0
  172. package/dist/openapi/types/ObservableAPI.d.ts +212 -12
  173. package/dist/openapi/types/ObservableAPI.js +424 -17
  174. package/dist/openapi/types/PromiseAPI.d.ts +208 -12
  175. package/dist/openapi/types/PromiseAPI.js +294 -34
  176. package/dist/sdk/clients/CatalogProductsClient.d.ts +11 -0
  177. package/dist/sdk/clients/CatalogProductsClient.js +28 -0
  178. package/dist/sdk/clients/CloudUsageSubmissionClient.d.ts +6 -0
  179. package/dist/sdk/clients/CloudUsageSubmissionClient.js +14 -0
  180. package/dist/sdk/clients/ContractsClient.d.ts +2 -1
  181. package/dist/sdk/clients/ContractsClient.js +3 -0
  182. package/dist/sdk/clients/CreditsClient.d.ts +9 -0
  183. package/dist/sdk/clients/CreditsClient.js +22 -0
  184. package/dist/sdk/clients/CustomersClient.d.ts +6 -1
  185. package/dist/sdk/clients/CustomersClient.js +15 -0
  186. package/dist/sdk/clients/EventsClient.d.ts +2 -1
  187. package/dist/sdk/clients/EventsClient.js +3 -0
  188. package/dist/sdk/clients/InvoicesClient.d.ts +1 -0
  189. package/dist/sdk/clients/InvoicesClient.js +3 -0
  190. package/dist/sdk/clients/MeasurementsClient.d.ts +10 -0
  191. package/dist/sdk/clients/MeasurementsClient.js +25 -0
  192. package/dist/sdk/clients/index.d.ts +4 -0
  193. package/dist/sdk/clients/index.js +4 -0
  194. package/dist/sdk/index.d.ts +6 -1
  195. package/dist/sdk/index.js +13 -0
  196. package/dist/sdk/services/authenticated-http-library.d.ts +11 -0
  197. package/dist/sdk/services/authenticated-http-library.js +29 -0
  198. package/dist/sdk/services/authenticator.d.ts +11 -0
  199. package/dist/sdk/services/authenticator.js +57 -0
  200. package/dist/sdk/services/configuration.service.d.ts +7 -6
  201. package/dist/sdk/services/configuration.service.js +12 -44
  202. package/dist/sdk/types/CatalogProducts.d.ts +1 -0
  203. package/dist/sdk/types/CatalogProducts.js +2 -0
  204. package/dist/sdk/types/CloudUsageSubmission.d.ts +1 -0
  205. package/dist/sdk/types/CloudUsageSubmission.js +2 -0
  206. package/dist/sdk/types/Contracts.d.ts +1 -1
  207. package/dist/sdk/types/Credits.d.ts +1 -0
  208. package/dist/sdk/types/Credits.js +2 -0
  209. package/dist/sdk/types/Customers.d.ts +1 -1
  210. package/dist/sdk/types/Events.d.ts +1 -1
  211. package/dist/sdk/types/Invoices.d.ts +1 -1
  212. package/dist/sdk/types/Measurements.d.ts +1 -0
  213. package/dist/sdk/types/Measurements.js +2 -0
  214. package/dist/sdk/types/index.d.ts +4 -0
  215. package/dist/sdk/types/index.js +4 -0
  216. package/dist/sdk-v2/services/configuration.service.js +16 -8
  217. package/package.json +3 -4
@@ -0,0 +1,38 @@
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.CreateCustomerRelationRequest = void 0;
15
+ class CreateCustomerRelationRequest {
16
+ static getAttributeTypeMap() {
17
+ return CreateCustomerRelationRequest.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.CreateCustomerRelationRequest = CreateCustomerRelationRequest;
23
+ CreateCustomerRelationRequest.discriminator = undefined;
24
+ CreateCustomerRelationRequest.mapping = undefined;
25
+ CreateCustomerRelationRequest.attributeTypeMap = [
26
+ {
27
+ "name": "vayuParentCustomerId",
28
+ "baseName": "vayuParentCustomerId",
29
+ "type": "string",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "vayuChildCustomerId",
34
+ "baseName": "vayuChildCustomerId",
35
+ "type": "string",
36
+ "format": ""
37
+ }
38
+ ];
@@ -0,0 +1,32 @@
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
+ import { CreateCustomerRelationResponseCustomerRelation } from '../models/CreateCustomerRelationResponseCustomerRelation';
13
+ export declare class CreateCustomerRelationResponse {
14
+ 'customerRelation': CreateCustomerRelationResponseCustomerRelation;
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
+ }
@@ -0,0 +1,32 @@
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.CreateCustomerRelationResponse = void 0;
15
+ class CreateCustomerRelationResponse {
16
+ static getAttributeTypeMap() {
17
+ return CreateCustomerRelationResponse.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.CreateCustomerRelationResponse = CreateCustomerRelationResponse;
23
+ CreateCustomerRelationResponse.discriminator = undefined;
24
+ CreateCustomerRelationResponse.mapping = undefined;
25
+ CreateCustomerRelationResponse.attributeTypeMap = [
26
+ {
27
+ "name": "customerRelation",
28
+ "baseName": "customerRelation",
29
+ "type": "CreateCustomerRelationResponseCustomerRelation",
30
+ "format": ""
31
+ }
32
+ ];
@@ -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 CreateCustomerRelationResponseCustomerRelation {
13
+ /**
14
+ * Identifier of the parent customer in Vayu.
15
+ */
16
+ 'vayuParentCustomerId': string;
17
+ /**
18
+ * Identifier of the child customer in Vayu.
19
+ */
20
+ 'vayuChildCustomerId': string;
21
+ 'id': string;
22
+ 'createdAt': Date;
23
+ 'updatedAt': Date;
24
+ static readonly discriminator: string | undefined;
25
+ static readonly mapping: {
26
+ [index: string]: string;
27
+ } | undefined;
28
+ static readonly attributeTypeMap: Array<{
29
+ name: string;
30
+ baseName: string;
31
+ type: string;
32
+ format: string;
33
+ }>;
34
+ static getAttributeTypeMap(): {
35
+ name: string;
36
+ baseName: string;
37
+ type: string;
38
+ format: string;
39
+ }[];
40
+ constructor();
41
+ }
@@ -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.CreateCustomerRelationResponseCustomerRelation = void 0;
15
+ class CreateCustomerRelationResponseCustomerRelation {
16
+ static getAttributeTypeMap() {
17
+ return CreateCustomerRelationResponseCustomerRelation.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.CreateCustomerRelationResponseCustomerRelation = CreateCustomerRelationResponseCustomerRelation;
23
+ CreateCustomerRelationResponseCustomerRelation.discriminator = undefined;
24
+ CreateCustomerRelationResponseCustomerRelation.mapping = undefined;
25
+ CreateCustomerRelationResponseCustomerRelation.attributeTypeMap = [
26
+ {
27
+ "name": "vayuParentCustomerId",
28
+ "baseName": "vayuParentCustomerId",
29
+ "type": "string",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "vayuChildCustomerId",
34
+ "baseName": "vayuChildCustomerId",
35
+ "type": "string",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "id",
40
+ "baseName": "id",
41
+ "type": "string",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "createdAt",
46
+ "baseName": "createdAt",
47
+ "type": "Date",
48
+ "format": "date-time"
49
+ },
50
+ {
51
+ "name": "updatedAt",
52
+ "baseName": "updatedAt",
53
+ "type": "Date",
54
+ "format": "date-time"
55
+ }
56
+ ];
@@ -11,6 +11,10 @@
11
11
  */
12
12
  import { Address } from '../models/Address';
13
13
  import { Contact } from '../models/Contact';
14
+ import { Currency } from '../models/Currency';
15
+ import { CustomField } from '../models/CustomField';
16
+ import { CustomerCloudProviderSettings } from '../models/CustomerCloudProviderSettings';
17
+ import { CustomerSource } from '../models/CustomerSource';
14
18
  export declare class CreateCustomerRequest {
15
19
  /**
16
20
  * The name of the customer
@@ -20,15 +24,50 @@ export declare class CreateCustomerRequest {
20
24
  * The aliases of the customer used to match events to the customer.
21
25
  */
22
26
  'aliases'?: Array<string> | null;
23
- 'address'?: Address;
24
27
  /**
25
28
  * The contacts of the customer. Contact marked as primary is the target for invoice sharing.
26
29
  */
27
- 'contacts'?: Array<Contact>;
30
+ 'contacts'?: Array<Contact> | null;
31
+ 'source'?: CustomerSource | null;
32
+ /**
33
+ * The legal name of the customer
34
+ */
35
+ 'legalName'?: string | null;
36
+ /**
37
+ * The tax IDs of the customer
38
+ */
39
+ 'taxIds'?: Array<string> | null;
40
+ /**
41
+ * The tax ID of the customer (deprecated, use taxIds instead)
42
+ */
43
+ 'taxId'?: string | null;
44
+ 'cloudProviderSettings'?: CustomerCloudProviderSettings | null;
28
45
  /**
29
46
  * The external ID of the customer
30
47
  */
31
48
  'externalId'?: string;
49
+ /**
50
+ * The ID of the customer in the ERP system
51
+ */
52
+ 'customerErpId'?: string | null;
53
+ 'address'?: Address | null;
54
+ /**
55
+ * The ID of the customer in the Salesforce system
56
+ */
57
+ 'salesForceAccountId'?: string | null;
58
+ /**
59
+ * The due days of the customer
60
+ */
61
+ 'dueDays'?: CreateCustomerRequestDueDaysEnum | null;
62
+ 'currency'?: Currency | null;
63
+ /**
64
+ * Custom fields from CRM systems (Salesforce, HubSpot, etc.)
65
+ */
66
+ 'customFields'?: Array<CustomField> | null;
67
+ /**
68
+ * The name of the subsidiary of the customer
69
+ */
70
+ 'subsidiary'?: string | null;
32
71
  static readonly discriminator: string | undefined;
33
72
  static readonly mapping: {
34
73
  [index: string]: string;
@@ -47,3 +86,12 @@ export declare class CreateCustomerRequest {
47
86
  }[];
48
87
  constructor();
49
88
  }
89
+ export declare enum CreateCustomerRequestDueDaysEnum {
90
+ EndOfMonth = "END_OF_MONTH",
91
+ SameDay = "SAME_DAY",
92
+ _15Days = "15_DAYS",
93
+ _30Days = "30_DAYS",
94
+ _45Days = "45_DAYS",
95
+ _60Days = "60_DAYS",
96
+ _90Days = "90_DAYS"
97
+ }
@@ -11,7 +11,7 @@
11
11
  * Do not edit the class manually.
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.CreateCustomerRequest = void 0;
14
+ exports.CreateCustomerRequestDueDaysEnum = exports.CreateCustomerRequest = void 0;
15
15
  class CreateCustomerRequest {
16
16
  static getAttributeTypeMap() {
17
17
  return CreateCustomerRequest.attributeTypeMap;
@@ -35,6 +35,54 @@ CreateCustomerRequest.attributeTypeMap = [
35
35
  "type": "Array<string>",
36
36
  "format": ""
37
37
  },
38
+ {
39
+ "name": "contacts",
40
+ "baseName": "contacts",
41
+ "type": "Array<Contact>",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "source",
46
+ "baseName": "source",
47
+ "type": "CustomerSource",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "legalName",
52
+ "baseName": "legalName",
53
+ "type": "string",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "taxIds",
58
+ "baseName": "taxIds",
59
+ "type": "Array<string>",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "taxId",
64
+ "baseName": "taxId",
65
+ "type": "string",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "cloudProviderSettings",
70
+ "baseName": "cloudProviderSettings",
71
+ "type": "CustomerCloudProviderSettings",
72
+ "format": ""
73
+ },
74
+ {
75
+ "name": "externalId",
76
+ "baseName": "externalId",
77
+ "type": "string",
78
+ "format": ""
79
+ },
80
+ {
81
+ "name": "customerErpId",
82
+ "baseName": "customerErpId",
83
+ "type": "string",
84
+ "format": ""
85
+ },
38
86
  {
39
87
  "name": "address",
40
88
  "baseName": "address",
@@ -42,15 +90,43 @@ CreateCustomerRequest.attributeTypeMap = [
42
90
  "format": ""
43
91
  },
44
92
  {
45
- "name": "contacts",
46
- "baseName": "contacts",
47
- "type": "Array<Contact>",
93
+ "name": "salesForceAccountId",
94
+ "baseName": "salesForceAccountId",
95
+ "type": "string",
48
96
  "format": ""
49
97
  },
50
98
  {
51
- "name": "externalId",
52
- "baseName": "externalId",
99
+ "name": "dueDays",
100
+ "baseName": "dueDays",
101
+ "type": "CreateCustomerRequestDueDaysEnum",
102
+ "format": ""
103
+ },
104
+ {
105
+ "name": "currency",
106
+ "baseName": "currency",
107
+ "type": "Currency",
108
+ "format": ""
109
+ },
110
+ {
111
+ "name": "customFields",
112
+ "baseName": "customFields",
113
+ "type": "Array<CustomField>",
114
+ "format": ""
115
+ },
116
+ {
117
+ "name": "subsidiary",
118
+ "baseName": "subsidiary",
53
119
  "type": "string",
54
120
  "format": ""
55
121
  }
56
122
  ];
123
+ var CreateCustomerRequestDueDaysEnum;
124
+ (function (CreateCustomerRequestDueDaysEnum) {
125
+ CreateCustomerRequestDueDaysEnum["EndOfMonth"] = "END_OF_MONTH";
126
+ CreateCustomerRequestDueDaysEnum["SameDay"] = "SAME_DAY";
127
+ CreateCustomerRequestDueDaysEnum["_15Days"] = "15_DAYS";
128
+ CreateCustomerRequestDueDaysEnum["_30Days"] = "30_DAYS";
129
+ CreateCustomerRequestDueDaysEnum["_45Days"] = "45_DAYS";
130
+ CreateCustomerRequestDueDaysEnum["_60Days"] = "60_DAYS";
131
+ CreateCustomerRequestDueDaysEnum["_90Days"] = "90_DAYS";
132
+ })(CreateCustomerRequestDueDaysEnum = exports.CreateCustomerRequestDueDaysEnum || (exports.CreateCustomerRequestDueDaysEnum = {}));
@@ -11,6 +11,10 @@
11
11
  */
12
12
  import { Address } from '../models/Address';
13
13
  import { Contact } from '../models/Contact';
14
+ import { Currency } from '../models/Currency';
15
+ import { CustomField } from '../models/CustomField';
16
+ import { CustomerCloudProviderSettings } from '../models/CustomerCloudProviderSettings';
17
+ import { CustomerSource } from '../models/CustomerSource';
14
18
  export declare class CreateCustomerResponseCustomer {
15
19
  /**
16
20
  * The name of the customer
@@ -20,15 +24,50 @@ export declare class CreateCustomerResponseCustomer {
20
24
  * The aliases of the customer used to match events to the customer.
21
25
  */
22
26
  'aliases'?: Array<string> | null;
23
- 'address'?: Address;
24
27
  /**
25
28
  * The contacts of the customer. Contact marked as primary is the target for invoice sharing.
26
29
  */
27
- 'contacts'?: Array<Contact>;
30
+ 'contacts'?: Array<Contact> | null;
31
+ 'source'?: CustomerSource | null;
32
+ /**
33
+ * The legal name of the customer
34
+ */
35
+ 'legalName'?: string | null;
36
+ /**
37
+ * The tax IDs of the customer
38
+ */
39
+ 'taxIds'?: Array<string> | null;
40
+ /**
41
+ * The tax ID of the customer (deprecated, use taxIds instead)
42
+ */
43
+ 'taxId'?: string | null;
44
+ 'cloudProviderSettings'?: CustomerCloudProviderSettings | null;
28
45
  /**
29
46
  * The external ID of the customer
30
47
  */
31
48
  'externalId'?: string;
49
+ /**
50
+ * The ID of the customer in the ERP system
51
+ */
52
+ 'customerErpId'?: string | null;
53
+ 'address'?: Address | null;
54
+ /**
55
+ * The ID of the customer in the Salesforce system
56
+ */
57
+ 'salesForceAccountId'?: string | null;
58
+ /**
59
+ * The due days of the customer
60
+ */
61
+ 'dueDays'?: CreateCustomerResponseCustomerDueDaysEnum | null;
62
+ 'currency'?: Currency | null;
63
+ /**
64
+ * Custom fields from CRM systems (Salesforce, HubSpot, etc.)
65
+ */
66
+ 'customFields'?: Array<CustomField> | null;
67
+ /**
68
+ * The name of the subsidiary of the customer
69
+ */
70
+ 'subsidiary'?: string | null;
32
71
  'id': string;
33
72
  'createdAt': Date;
34
73
  'updatedAt': Date;
@@ -50,3 +89,12 @@ export declare class CreateCustomerResponseCustomer {
50
89
  }[];
51
90
  constructor();
52
91
  }
92
+ export declare enum CreateCustomerResponseCustomerDueDaysEnum {
93
+ EndOfMonth = "END_OF_MONTH",
94
+ SameDay = "SAME_DAY",
95
+ _15Days = "15_DAYS",
96
+ _30Days = "30_DAYS",
97
+ _45Days = "45_DAYS",
98
+ _60Days = "60_DAYS",
99
+ _90Days = "90_DAYS"
100
+ }
@@ -11,7 +11,7 @@
11
11
  * Do not edit the class manually.
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.CreateCustomerResponseCustomer = void 0;
14
+ exports.CreateCustomerResponseCustomerDueDaysEnum = exports.CreateCustomerResponseCustomer = void 0;
15
15
  class CreateCustomerResponseCustomer {
16
16
  static getAttributeTypeMap() {
17
17
  return CreateCustomerResponseCustomer.attributeTypeMap;
@@ -35,6 +35,54 @@ CreateCustomerResponseCustomer.attributeTypeMap = [
35
35
  "type": "Array<string>",
36
36
  "format": ""
37
37
  },
38
+ {
39
+ "name": "contacts",
40
+ "baseName": "contacts",
41
+ "type": "Array<Contact>",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "source",
46
+ "baseName": "source",
47
+ "type": "CustomerSource",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "legalName",
52
+ "baseName": "legalName",
53
+ "type": "string",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "taxIds",
58
+ "baseName": "taxIds",
59
+ "type": "Array<string>",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "taxId",
64
+ "baseName": "taxId",
65
+ "type": "string",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "cloudProviderSettings",
70
+ "baseName": "cloudProviderSettings",
71
+ "type": "CustomerCloudProviderSettings",
72
+ "format": ""
73
+ },
74
+ {
75
+ "name": "externalId",
76
+ "baseName": "externalId",
77
+ "type": "string",
78
+ "format": ""
79
+ },
80
+ {
81
+ "name": "customerErpId",
82
+ "baseName": "customerErpId",
83
+ "type": "string",
84
+ "format": ""
85
+ },
38
86
  {
39
87
  "name": "address",
40
88
  "baseName": "address",
@@ -42,14 +90,32 @@ CreateCustomerResponseCustomer.attributeTypeMap = [
42
90
  "format": ""
43
91
  },
44
92
  {
45
- "name": "contacts",
46
- "baseName": "contacts",
47
- "type": "Array<Contact>",
93
+ "name": "salesForceAccountId",
94
+ "baseName": "salesForceAccountId",
95
+ "type": "string",
48
96
  "format": ""
49
97
  },
50
98
  {
51
- "name": "externalId",
52
- "baseName": "externalId",
99
+ "name": "dueDays",
100
+ "baseName": "dueDays",
101
+ "type": "CreateCustomerResponseCustomerDueDaysEnum",
102
+ "format": ""
103
+ },
104
+ {
105
+ "name": "currency",
106
+ "baseName": "currency",
107
+ "type": "Currency",
108
+ "format": ""
109
+ },
110
+ {
111
+ "name": "customFields",
112
+ "baseName": "customFields",
113
+ "type": "Array<CustomField>",
114
+ "format": ""
115
+ },
116
+ {
117
+ "name": "subsidiary",
118
+ "baseName": "subsidiary",
53
119
  "type": "string",
54
120
  "format": ""
55
121
  },
@@ -72,3 +138,13 @@ CreateCustomerResponseCustomer.attributeTypeMap = [
72
138
  "format": "date-time"
73
139
  }
74
140
  ];
141
+ var CreateCustomerResponseCustomerDueDaysEnum;
142
+ (function (CreateCustomerResponseCustomerDueDaysEnum) {
143
+ CreateCustomerResponseCustomerDueDaysEnum["EndOfMonth"] = "END_OF_MONTH";
144
+ CreateCustomerResponseCustomerDueDaysEnum["SameDay"] = "SAME_DAY";
145
+ CreateCustomerResponseCustomerDueDaysEnum["_15Days"] = "15_DAYS";
146
+ CreateCustomerResponseCustomerDueDaysEnum["_30Days"] = "30_DAYS";
147
+ CreateCustomerResponseCustomerDueDaysEnum["_45Days"] = "45_DAYS";
148
+ CreateCustomerResponseCustomerDueDaysEnum["_60Days"] = "60_DAYS";
149
+ CreateCustomerResponseCustomerDueDaysEnum["_90Days"] = "90_DAYS";
150
+ })(CreateCustomerResponseCustomerDueDaysEnum = exports.CreateCustomerResponseCustomerDueDaysEnum || (exports.CreateCustomerResponseCustomerDueDaysEnum = {}));
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { BillingCycleStatus } from '../models/BillingCycleStatus';
13
+ import { IntegrationEntity } from '../models/IntegrationEntity';
13
14
  export declare class CreditLedgerEntry {
14
15
  'id': string;
15
16
  'createdAt': Date;
@@ -17,8 +18,9 @@ export declare class CreditLedgerEntry {
17
18
  'amount': number;
18
19
  'balanceAfterEntry': number;
19
20
  'invoiceId'?: string;
20
- 'productId'?: string;
21
+ 'erpId'?: string;
21
22
  'contractId'?: string;
23
+ 'integrationEntities': Array<IntegrationEntity>;
22
24
  static readonly discriminator: string | undefined;
23
25
  static readonly mapping: {
24
26
  [index: string]: string;
@@ -60,8 +60,8 @@ CreditLedgerEntry.attributeTypeMap = [
60
60
  "format": ""
61
61
  },
62
62
  {
63
- "name": "productId",
64
- "baseName": "productId",
63
+ "name": "erpId",
64
+ "baseName": "erpId",
65
65
  "type": "string",
66
66
  "format": ""
67
67
  },
@@ -70,5 +70,11 @@ CreditLedgerEntry.attributeTypeMap = [
70
70
  "baseName": "contractId",
71
71
  "type": "string",
72
72
  "format": ""
73
+ },
74
+ {
75
+ "name": "integrationEntities",
76
+ "baseName": "integrationEntities",
77
+ "type": "Array<IntegrationEntity>",
78
+ "format": ""
73
79
  }
74
80
  ];
@@ -0,0 +1,24 @@
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
+ * The billing currency of the customer
14
+ */
15
+ export declare enum Currency {
16
+ Usd = "USD",
17
+ Eur = "EUR",
18
+ Gbp = "GBP",
19
+ Ils = "ILS",
20
+ Cad = "CAD",
21
+ Aud = "AUD",
22
+ Cop = "COP",
23
+ Brl = "BRL"
24
+ }
@@ -0,0 +1,28 @@
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.Currency = void 0;
15
+ /**
16
+ * The billing currency of the customer
17
+ */
18
+ var Currency;
19
+ (function (Currency) {
20
+ Currency["Usd"] = "USD";
21
+ Currency["Eur"] = "EUR";
22
+ Currency["Gbp"] = "GBP";
23
+ Currency["Ils"] = "ILS";
24
+ Currency["Cad"] = "CAD";
25
+ Currency["Aud"] = "AUD";
26
+ Currency["Cop"] = "COP";
27
+ Currency["Brl"] = "BRL";
28
+ })(Currency = exports.Currency || (exports.Currency = {}));