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.
- package/dist/example/index.d.ts +1 -0
- package/dist/example/index.js +74 -0
- package/dist/openapi/apis/CatalogProductsApi.d.ts +89 -0
- package/dist/openapi/apis/CatalogProductsApi.js +354 -0
- package/dist/openapi/apis/CloudUsageSubmissionApi.d.ts +25 -0
- package/dist/openapi/apis/CloudUsageSubmissionApi.js +85 -0
- package/dist/openapi/apis/ContractsApi.d.ts +21 -3
- package/dist/openapi/apis/ContractsApi.js +75 -3
- package/dist/openapi/apis/CustomersApi.d.ts +63 -0
- package/dist/openapi/apis/CustomersApi.js +257 -7
- package/dist/openapi/apis/EventsApi.d.ts +16 -0
- package/dist/openapi/apis/EventsApi.js +67 -12
- package/dist/openapi/apis/InvoicesApi.d.ts +19 -3
- package/dist/openapi/apis/InvoicesApi.js +69 -3
- package/dist/openapi/apis/ProductConsumptionsApi.js +0 -3
- package/dist/openapi/apis/WebhooksApi.js +0 -3
- package/dist/openapi/http/http.d.ts +6 -18
- package/dist/openapi/http/http.js +25 -13
- package/dist/openapi/http/isomorphic-fetch.d.ts +1 -0
- package/dist/openapi/http/isomorphic-fetch.js +4 -7
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js +3 -1
- package/dist/openapi/models/Address.d.ts +5 -5
- package/dist/openapi/models/CloudUsageResult.d.ts +83 -0
- package/dist/openapi/models/CloudUsageResult.js +103 -0
- package/dist/openapi/models/Contact.d.ts +3 -1
- package/dist/openapi/models/Contact.js +12 -0
- package/dist/openapi/models/ContractStatus.d.ts +23 -0
- package/dist/openapi/models/ContractStatus.js +27 -0
- package/dist/openapi/models/CreateCatalogProductRequest.d.ts +42 -0
- package/dist/openapi/models/CreateCatalogProductRequest.js +44 -0
- package/dist/openapi/models/CreateCatalogProductResponse.d.ts +32 -0
- package/dist/openapi/models/CreateCatalogProductResponse.js +32 -0
- package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.d.ts +45 -0
- package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.js +62 -0
- package/dist/openapi/models/CreateContractRequest.d.ts +47 -5
- package/dist/openapi/models/CreateContractRequest.js +65 -5
- package/dist/openapi/models/CreateCustomerRelationRequest.d.ts +38 -0
- package/dist/openapi/models/CreateCustomerRelationRequest.js +38 -0
- package/dist/openapi/models/CreateCustomerRelationResponse.d.ts +32 -0
- package/dist/openapi/models/CreateCustomerRelationResponse.js +32 -0
- package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.d.ts +41 -0
- package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.js +56 -0
- package/dist/openapi/models/CreateCustomerRequest.d.ts +50 -2
- package/dist/openapi/models/CreateCustomerRequest.js +82 -6
- package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +50 -2
- package/dist/openapi/models/CreateCustomerResponseCustomer.js +82 -6
- package/dist/openapi/models/CreditLedgerEntry.d.ts +3 -1
- package/dist/openapi/models/CreditLedgerEntry.js +8 -2
- package/dist/openapi/models/Currency.d.ts +24 -0
- package/dist/openapi/models/Currency.js +28 -0
- package/dist/openapi/models/CustomField.d.ts +65 -0
- package/dist/openapi/models/CustomField.js +78 -0
- package/dist/openapi/models/CustomFieldValue.d.ts +33 -0
- package/dist/openapi/models/CustomFieldValue.js +44 -0
- package/dist/openapi/models/CustomFieldValueTypes.d.ts +19 -0
- package/dist/openapi/models/CustomFieldValueTypes.js +23 -0
- package/dist/openapi/models/CustomerCloudProviderSettings.d.ts +39 -0
- package/dist/openapi/models/CustomerCloudProviderSettings.js +51 -0
- package/dist/openapi/models/CustomerSource.d.ts +21 -0
- package/dist/openapi/models/CustomerSource.js +25 -0
- package/dist/openapi/models/DeleteCatalogProductResponse.d.ts +32 -0
- package/dist/openapi/models/DeleteCatalogProductResponse.js +32 -0
- package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.d.ts +46 -0
- package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.js +68 -0
- package/dist/openapi/models/DeleteContractResponseContract.d.ts +47 -5
- package/dist/openapi/models/DeleteContractResponseContract.js +65 -5
- package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +50 -2
- package/dist/openapi/models/DeleteCustomerResponseCustomer.js +82 -6
- package/dist/openapi/models/DeleteEventsByRefsRequest.d.ts +31 -0
- package/dist/openapi/models/DeleteEventsByRefsRequest.js +32 -0
- package/dist/openapi/models/DeleteEventsByRefsResponse.d.ts +35 -0
- package/dist/openapi/models/DeleteEventsByRefsResponse.js +32 -0
- package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.d.ts +56 -0
- package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.js +80 -0
- package/dist/openapi/models/ExternalOverageStrategy.d.ts +20 -0
- package/dist/openapi/models/ExternalOverageStrategy.js +24 -0
- package/dist/openapi/models/GetCatalogProductResponse.d.ts +32 -0
- package/dist/openapi/models/GetCatalogProductResponse.js +32 -0
- package/dist/openapi/models/GetContractByIntegrationIdResponse.d.ts +32 -0
- package/dist/openapi/models/GetContractByIntegrationIdResponse.js +32 -0
- package/dist/openapi/models/GetContractResponseContract.d.ts +47 -5
- package/dist/openapi/models/GetContractResponseContract.js +65 -5
- package/dist/openapi/models/GetCustomerByIntegrationIdResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomerByIntegrationIdResponse.js +32 -0
- package/dist/openapi/models/GetCustomerByNameResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomerByNameResponse.js +32 -0
- package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +103 -0
- package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +153 -0
- package/dist/openapi/models/GetCustomerRelationResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomerRelationResponse.js +32 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +14 -0
- package/dist/openapi/models/GetInvoiceResponseInvoice.js +30 -0
- package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.d.ts +39 -0
- package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.js +65 -0
- package/dist/openapi/models/IntegrationEntity.d.ts +42 -0
- package/dist/openapi/models/IntegrationEntity.js +62 -0
- package/dist/openapi/models/IntegrationEntityTypes.d.ts +23 -0
- package/dist/openapi/models/IntegrationEntityTypes.js +27 -0
- package/dist/openapi/models/IntegrationProviders.d.ts +26 -0
- package/dist/openapi/models/IntegrationProviders.js +30 -0
- package/dist/openapi/models/IntegrationType.d.ts +26 -0
- package/dist/openapi/models/IntegrationType.js +30 -0
- package/dist/openapi/models/InvoiceBillingStatus.d.ts +21 -0
- package/dist/openapi/models/InvoiceBillingStatus.js +25 -0
- package/dist/openapi/models/InvoicePaymentStatusResponse.d.ts +39 -0
- package/dist/openapi/models/InvoicePaymentStatusResponse.js +74 -0
- package/dist/openapi/models/ListCatalogProductsResponse.d.ts +35 -0
- package/dist/openapi/models/ListCatalogProductsResponse.js +50 -0
- package/dist/openapi/models/NotificationEventType.d.ts +3 -1
- package/dist/openapi/models/NotificationEventType.js +2 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +61 -0
- package/dist/openapi/models/ObjectSerializer.js +191 -0
- package/dist/openapi/models/PartnerSubmissionDetail.d.ts +46 -0
- package/dist/openapi/models/PartnerSubmissionDetail.js +49 -0
- package/dist/openapi/models/PaymentInfo.d.ts +45 -0
- package/dist/openapi/models/PaymentInfo.js +89 -0
- package/dist/openapi/models/PaymentInfoDepositTo.d.ts +32 -0
- package/dist/openapi/models/PaymentInfoDepositTo.js +38 -0
- package/dist/openapi/models/PaymentTerm.d.ts +18 -0
- package/dist/openapi/models/PaymentTerm.js +22 -0
- package/dist/openapi/models/ProductCloudProviderSettings.d.ts +39 -0
- package/dist/openapi/models/ProductCloudProviderSettings.js +51 -0
- package/dist/openapi/models/ProductGroup.d.ts +65 -0
- package/dist/openapi/models/ProductGroup.js +80 -0
- package/dist/openapi/models/ProductGroupCommitment.d.ts +45 -0
- package/dist/openapi/models/ProductGroupCommitment.js +53 -0
- package/dist/openapi/models/ProductGroupProductsInner.d.ts +68 -0
- package/dist/openapi/models/ProductGroupProductsInner.js +98 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +45 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +53 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +39 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +36 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricing.js +24 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +35 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +42 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +37 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.d.ts +32 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.js +38 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +37 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.d.ts +38 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.js +45 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.d.ts +46 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.js +78 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.d.ts +38 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.js +45 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.d.ts +35 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.js +56 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.d.ts +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.js +60 -0
- package/dist/openapi/models/ProductGroupProductsInnerScheduling.d.ts +39 -0
- package/dist/openapi/models/ProductGroupProductsInnerScheduling.js +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.d.ts +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.js +48 -0
- package/dist/openapi/models/SubmitCloudUsageRequest.d.ts +39 -0
- package/dist/openapi/models/SubmitCloudUsageRequest.js +38 -0
- package/dist/openapi/models/SyncStatus.d.ts +16 -0
- package/dist/openapi/models/SyncStatus.js +20 -0
- package/dist/openapi/models/UpdateCatalogProductRequest.d.ts +42 -0
- package/dist/openapi/models/UpdateCatalogProductRequest.js +44 -0
- package/dist/openapi/models/UpdateCatalogProductResponse.d.ts +32 -0
- package/dist/openapi/models/UpdateCatalogProductResponse.js +32 -0
- package/dist/openapi/models/UpdateCustomerRequest.d.ts +50 -2
- package/dist/openapi/models/UpdateCustomerRequest.js +82 -6
- package/dist/openapi/models/UsageWindow.d.ts +41 -0
- package/dist/openapi/models/UsageWindow.js +41 -0
- package/dist/openapi/models/all.d.ts +61 -0
- package/dist/openapi/models/all.js +61 -0
- package/dist/openapi/types/ObservableAPI.d.ts +212 -12
- package/dist/openapi/types/ObservableAPI.js +424 -17
- package/dist/openapi/types/PromiseAPI.d.ts +208 -12
- package/dist/openapi/types/PromiseAPI.js +294 -34
- package/dist/sdk/clients/CatalogProductsClient.d.ts +11 -0
- package/dist/sdk/clients/CatalogProductsClient.js +28 -0
- package/dist/sdk/clients/CloudUsageSubmissionClient.d.ts +6 -0
- package/dist/sdk/clients/CloudUsageSubmissionClient.js +14 -0
- package/dist/sdk/clients/ContractsClient.d.ts +2 -1
- package/dist/sdk/clients/ContractsClient.js +3 -0
- package/dist/sdk/clients/CreditsClient.d.ts +9 -0
- package/dist/sdk/clients/CreditsClient.js +22 -0
- package/dist/sdk/clients/CustomersClient.d.ts +6 -1
- package/dist/sdk/clients/CustomersClient.js +15 -0
- package/dist/sdk/clients/EventsClient.d.ts +2 -1
- package/dist/sdk/clients/EventsClient.js +3 -0
- package/dist/sdk/clients/InvoicesClient.d.ts +1 -0
- package/dist/sdk/clients/InvoicesClient.js +3 -0
- package/dist/sdk/clients/MeasurementsClient.d.ts +10 -0
- package/dist/sdk/clients/MeasurementsClient.js +25 -0
- package/dist/sdk/clients/index.d.ts +4 -0
- package/dist/sdk/clients/index.js +4 -0
- package/dist/sdk/index.d.ts +6 -1
- package/dist/sdk/index.js +13 -0
- package/dist/sdk/services/authenticated-http-library.d.ts +11 -0
- package/dist/sdk/services/authenticated-http-library.js +29 -0
- package/dist/sdk/services/authenticator.d.ts +11 -0
- package/dist/sdk/services/authenticator.js +57 -0
- package/dist/sdk/services/configuration.service.d.ts +7 -6
- package/dist/sdk/services/configuration.service.js +12 -44
- package/dist/sdk/types/CatalogProducts.d.ts +1 -0
- package/dist/sdk/types/CatalogProducts.js +2 -0
- package/dist/sdk/types/CloudUsageSubmission.d.ts +1 -0
- package/dist/sdk/types/CloudUsageSubmission.js +2 -0
- package/dist/sdk/types/Contracts.d.ts +1 -1
- package/dist/sdk/types/Credits.d.ts +1 -0
- package/dist/sdk/types/Credits.js +2 -0
- package/dist/sdk/types/Customers.d.ts +1 -1
- package/dist/sdk/types/Events.d.ts +1 -1
- package/dist/sdk/types/Invoices.d.ts +1 -1
- package/dist/sdk/types/Measurements.d.ts +1 -0
- package/dist/sdk/types/Measurements.js +2 -0
- package/dist/sdk/types/index.d.ts +4 -0
- package/dist/sdk/types/index.js +4 -0
- package/dist/sdk-v2/services/configuration.service.js +16 -8
- package/package.json +3 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObservableWebhooksApi = exports.ObservableProductConsumptionsApi = exports.ObservableMetersApi = exports.ObservableMeasurementsApi = exports.ObservableInvoicesApi = exports.ObservableEventsApi = exports.ObservableCustomersApi = exports.ObservableCreditsApi = exports.ObservableContractsApi = exports.ObservableAuthApi = void 0;
|
|
3
|
+
exports.ObservableWebhooksApi = exports.ObservableProductConsumptionsApi = exports.ObservableMetersApi = exports.ObservableMeasurementsApi = exports.ObservableInvoicesApi = exports.ObservableEventsApi = exports.ObservableCustomersApi = exports.ObservableCreditsApi = exports.ObservableContractsApi = exports.ObservableCloudUsageSubmissionApi = exports.ObservableCatalogProductsApi = exports.ObservableAuthApi = void 0;
|
|
4
4
|
const rxjsStub_1 = require("../rxjsStub");
|
|
5
5
|
const rxjsStub_2 = require("../rxjsStub");
|
|
6
6
|
const AuthApi_1 = require("../apis/AuthApi");
|
|
@@ -41,6 +41,202 @@ class ObservableAuthApi {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.ObservableAuthApi = ObservableAuthApi;
|
|
44
|
+
const CatalogProductsApi_1 = require("../apis/CatalogProductsApi");
|
|
45
|
+
class ObservableCatalogProductsApi {
|
|
46
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
47
|
+
this.configuration = configuration;
|
|
48
|
+
this.requestFactory = requestFactory || new CatalogProductsApi_1.CatalogProductsApiRequestFactory(configuration);
|
|
49
|
+
this.responseProcessor = responseProcessor || new CatalogProductsApi_1.CatalogProductsApiResponseProcessor();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Create a new Catalog product.
|
|
53
|
+
* Create Catalog product
|
|
54
|
+
* @param createCatalogProductRequest
|
|
55
|
+
*/
|
|
56
|
+
createCatalogProductWithHttpInfo(createCatalogProductRequest, _options) {
|
|
57
|
+
const requestContextPromise = this.requestFactory.createCatalogProduct(createCatalogProductRequest, _options);
|
|
58
|
+
// build promise chain
|
|
59
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
60
|
+
for (const middleware of this.configuration.middleware) {
|
|
61
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
62
|
+
}
|
|
63
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
64
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
65
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
66
|
+
for (const middleware of this.configuration.middleware) {
|
|
67
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
68
|
+
}
|
|
69
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createCatalogProductWithHttpInfo(rsp)));
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Create a new Catalog product.
|
|
74
|
+
* Create Catalog product
|
|
75
|
+
* @param createCatalogProductRequest
|
|
76
|
+
*/
|
|
77
|
+
createCatalogProduct(createCatalogProductRequest, _options) {
|
|
78
|
+
return this.createCatalogProductWithHttpInfo(createCatalogProductRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Delete a Catalog product by id.
|
|
82
|
+
* Delete Catalog product
|
|
83
|
+
* @param catalogProductId
|
|
84
|
+
*/
|
|
85
|
+
deleteCatalogProductWithHttpInfo(catalogProductId, _options) {
|
|
86
|
+
const requestContextPromise = this.requestFactory.deleteCatalogProduct(catalogProductId, _options);
|
|
87
|
+
// build promise chain
|
|
88
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
89
|
+
for (const middleware of this.configuration.middleware) {
|
|
90
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
91
|
+
}
|
|
92
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
93
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
94
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
95
|
+
for (const middleware of this.configuration.middleware) {
|
|
96
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
97
|
+
}
|
|
98
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteCatalogProductWithHttpInfo(rsp)));
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Delete a Catalog product by id.
|
|
103
|
+
* Delete Catalog product
|
|
104
|
+
* @param catalogProductId
|
|
105
|
+
*/
|
|
106
|
+
deleteCatalogProduct(catalogProductId, _options) {
|
|
107
|
+
return this.deleteCatalogProductWithHttpInfo(catalogProductId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Get a Catalog product by id.
|
|
111
|
+
* Get Catalog product
|
|
112
|
+
* @param catalogProductId
|
|
113
|
+
*/
|
|
114
|
+
getCatalogProductWithHttpInfo(catalogProductId, _options) {
|
|
115
|
+
const requestContextPromise = this.requestFactory.getCatalogProduct(catalogProductId, _options);
|
|
116
|
+
// build promise chain
|
|
117
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
118
|
+
for (const middleware of this.configuration.middleware) {
|
|
119
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
120
|
+
}
|
|
121
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
122
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
123
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
124
|
+
for (const middleware of this.configuration.middleware) {
|
|
125
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
126
|
+
}
|
|
127
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCatalogProductWithHttpInfo(rsp)));
|
|
128
|
+
}));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get a Catalog product by id.
|
|
132
|
+
* Get Catalog product
|
|
133
|
+
* @param catalogProductId
|
|
134
|
+
*/
|
|
135
|
+
getCatalogProduct(catalogProductId, _options) {
|
|
136
|
+
return this.getCatalogProductWithHttpInfo(catalogProductId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Get a list of Catalog products.
|
|
140
|
+
* List Catalog products
|
|
141
|
+
* @param [limit]
|
|
142
|
+
* @param [cursor]
|
|
143
|
+
*/
|
|
144
|
+
listCatalogProductsWithHttpInfo(limit, cursor, _options) {
|
|
145
|
+
const requestContextPromise = this.requestFactory.listCatalogProducts(limit, cursor, _options);
|
|
146
|
+
// build promise chain
|
|
147
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
148
|
+
for (const middleware of this.configuration.middleware) {
|
|
149
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
150
|
+
}
|
|
151
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
152
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
153
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
154
|
+
for (const middleware of this.configuration.middleware) {
|
|
155
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
156
|
+
}
|
|
157
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listCatalogProductsWithHttpInfo(rsp)));
|
|
158
|
+
}));
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Get a list of Catalog products.
|
|
162
|
+
* List Catalog products
|
|
163
|
+
* @param [limit]
|
|
164
|
+
* @param [cursor]
|
|
165
|
+
*/
|
|
166
|
+
listCatalogProducts(limit, cursor, _options) {
|
|
167
|
+
return this.listCatalogProductsWithHttpInfo(limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Update a Catalog product by id.
|
|
171
|
+
* Update Catalog product
|
|
172
|
+
* @param updateCatalogProductRequest
|
|
173
|
+
* @param catalogProductId
|
|
174
|
+
*/
|
|
175
|
+
updateCatalogProductWithHttpInfo(updateCatalogProductRequest, catalogProductId, _options) {
|
|
176
|
+
const requestContextPromise = this.requestFactory.updateCatalogProduct(updateCatalogProductRequest, catalogProductId, _options);
|
|
177
|
+
// build promise chain
|
|
178
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
179
|
+
for (const middleware of this.configuration.middleware) {
|
|
180
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
181
|
+
}
|
|
182
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
183
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
184
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
185
|
+
for (const middleware of this.configuration.middleware) {
|
|
186
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
187
|
+
}
|
|
188
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updateCatalogProductWithHttpInfo(rsp)));
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Update a Catalog product by id.
|
|
193
|
+
* Update Catalog product
|
|
194
|
+
* @param updateCatalogProductRequest
|
|
195
|
+
* @param catalogProductId
|
|
196
|
+
*/
|
|
197
|
+
updateCatalogProduct(updateCatalogProductRequest, catalogProductId, _options) {
|
|
198
|
+
return this.updateCatalogProductWithHttpInfo(updateCatalogProductRequest, catalogProductId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.ObservableCatalogProductsApi = ObservableCatalogProductsApi;
|
|
202
|
+
const CloudUsageSubmissionApi_1 = require("../apis/CloudUsageSubmissionApi");
|
|
203
|
+
class ObservableCloudUsageSubmissionApi {
|
|
204
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
205
|
+
this.configuration = configuration;
|
|
206
|
+
this.requestFactory = requestFactory || new CloudUsageSubmissionApi_1.CloudUsageSubmissionApiRequestFactory(configuration);
|
|
207
|
+
this.responseProcessor = responseProcessor || new CloudUsageSubmissionApi_1.CloudUsageSubmissionApiResponseProcessor();
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Submit cloud usage data
|
|
211
|
+
* Submit cloud usage
|
|
212
|
+
* @param submitCloudUsageRequest
|
|
213
|
+
*/
|
|
214
|
+
submitCloudUsageWithHttpInfo(submitCloudUsageRequest, _options) {
|
|
215
|
+
const requestContextPromise = this.requestFactory.submitCloudUsage(submitCloudUsageRequest, _options);
|
|
216
|
+
// build promise chain
|
|
217
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
218
|
+
for (const middleware of this.configuration.middleware) {
|
|
219
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
220
|
+
}
|
|
221
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
222
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
223
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
224
|
+
for (const middleware of this.configuration.middleware) {
|
|
225
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
226
|
+
}
|
|
227
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.submitCloudUsageWithHttpInfo(rsp)));
|
|
228
|
+
}));
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Submit cloud usage data
|
|
232
|
+
* Submit cloud usage
|
|
233
|
+
* @param submitCloudUsageRequest
|
|
234
|
+
*/
|
|
235
|
+
submitCloudUsage(submitCloudUsageRequest, _options) {
|
|
236
|
+
return this.submitCloudUsageWithHttpInfo(submitCloudUsageRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
exports.ObservableCloudUsageSubmissionApi = ObservableCloudUsageSubmissionApi;
|
|
44
240
|
const ContractsApi_1 = require("../apis/ContractsApi");
|
|
45
241
|
class ObservableContractsApi {
|
|
46
242
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -136,13 +332,45 @@ class ObservableContractsApi {
|
|
|
136
332
|
return this.getContractWithHttpInfo(contractId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
137
333
|
}
|
|
138
334
|
/**
|
|
139
|
-
*
|
|
140
|
-
*
|
|
335
|
+
* Use this endpoint to get a specific contract using its integration provider and identifier.
|
|
336
|
+
* Get contract by integration id
|
|
337
|
+
* @param integrationType
|
|
338
|
+
* @param integrationId
|
|
339
|
+
*/
|
|
340
|
+
getContractByIntegrationIdWithHttpInfo(integrationType, integrationId, _options) {
|
|
341
|
+
const requestContextPromise = this.requestFactory.getContractByIntegrationId(integrationType, integrationId, _options);
|
|
342
|
+
// build promise chain
|
|
343
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
344
|
+
for (const middleware of this.configuration.middleware) {
|
|
345
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
346
|
+
}
|
|
347
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
348
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
349
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
350
|
+
for (const middleware of this.configuration.middleware) {
|
|
351
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
352
|
+
}
|
|
353
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getContractByIntegrationIdWithHttpInfo(rsp)));
|
|
354
|
+
}));
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Use this endpoint to get a specific contract using its integration provider and identifier.
|
|
358
|
+
* Get contract by integration id
|
|
359
|
+
* @param integrationType
|
|
360
|
+
* @param integrationId
|
|
361
|
+
*/
|
|
362
|
+
getContractByIntegrationId(integrationType, integrationId, _options) {
|
|
363
|
+
return this.getContractByIntegrationIdWithHttpInfo(integrationType, integrationId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
|
|
367
|
+
* List contracts
|
|
141
368
|
* @param [limit]
|
|
142
369
|
* @param [cursor]
|
|
370
|
+
* @param [customerId]
|
|
143
371
|
*/
|
|
144
|
-
listContractsWithHttpInfo(limit, cursor, _options) {
|
|
145
|
-
const requestContextPromise = this.requestFactory.listContracts(limit, cursor, _options);
|
|
372
|
+
listContractsWithHttpInfo(limit, cursor, customerId, _options) {
|
|
373
|
+
const requestContextPromise = this.requestFactory.listContracts(limit, cursor, customerId, _options);
|
|
146
374
|
// build promise chain
|
|
147
375
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
148
376
|
for (const middleware of this.configuration.middleware) {
|
|
@@ -158,13 +386,14 @@ class ObservableContractsApi {
|
|
|
158
386
|
}));
|
|
159
387
|
}
|
|
160
388
|
/**
|
|
161
|
-
*
|
|
162
|
-
* List
|
|
389
|
+
* List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
|
|
390
|
+
* List contracts
|
|
163
391
|
* @param [limit]
|
|
164
392
|
* @param [cursor]
|
|
393
|
+
* @param [customerId]
|
|
165
394
|
*/
|
|
166
|
-
listContracts(limit, cursor, _options) {
|
|
167
|
-
return this.listContractsWithHttpInfo(limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
395
|
+
listContracts(limit, cursor, customerId, _options) {
|
|
396
|
+
return this.listContractsWithHttpInfo(limit, cursor, customerId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
168
397
|
}
|
|
169
398
|
}
|
|
170
399
|
exports.ObservableContractsApi = ObservableContractsApi;
|
|
@@ -304,6 +533,35 @@ class ObservableCustomersApi {
|
|
|
304
533
|
createCustomer(createCustomerRequest, _options) {
|
|
305
534
|
return this.createCustomerWithHttpInfo(createCustomerRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
306
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
* Create a new Customer relation.
|
|
538
|
+
* Create Customer relation
|
|
539
|
+
* @param createCustomerRelationRequest
|
|
540
|
+
*/
|
|
541
|
+
createCustomerRelationWithHttpInfo(createCustomerRelationRequest, _options) {
|
|
542
|
+
const requestContextPromise = this.requestFactory.createCustomerRelation(createCustomerRelationRequest, _options);
|
|
543
|
+
// build promise chain
|
|
544
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
545
|
+
for (const middleware of this.configuration.middleware) {
|
|
546
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
547
|
+
}
|
|
548
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
549
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
550
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
551
|
+
for (const middleware of this.configuration.middleware) {
|
|
552
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
553
|
+
}
|
|
554
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createCustomerRelationWithHttpInfo(rsp)));
|
|
555
|
+
}));
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Create a new Customer relation.
|
|
559
|
+
* Create Customer relation
|
|
560
|
+
* @param createCustomerRelationRequest
|
|
561
|
+
*/
|
|
562
|
+
createCustomerRelation(createCustomerRelationRequest, _options) {
|
|
563
|
+
return this.createCustomerRelationWithHttpInfo(createCustomerRelationRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
564
|
+
}
|
|
307
565
|
/**
|
|
308
566
|
* Delete a Customer by id.
|
|
309
567
|
* Delete Customer
|
|
@@ -391,6 +649,66 @@ class ObservableCustomersApi {
|
|
|
391
649
|
getCustomerByExternalId(externalId, _options) {
|
|
392
650
|
return this.getCustomerByExternalIdWithHttpInfo(externalId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
393
651
|
}
|
|
652
|
+
/**
|
|
653
|
+
* Use this endpoint to get a specific customer using its integration provider and identifier.
|
|
654
|
+
* Get customer by integration id
|
|
655
|
+
* @param integrationType
|
|
656
|
+
* @param integrationId
|
|
657
|
+
*/
|
|
658
|
+
getCustomerByIntegrationIdWithHttpInfo(integrationType, integrationId, _options) {
|
|
659
|
+
const requestContextPromise = this.requestFactory.getCustomerByIntegrationId(integrationType, integrationId, _options);
|
|
660
|
+
// build promise chain
|
|
661
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
662
|
+
for (const middleware of this.configuration.middleware) {
|
|
663
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
664
|
+
}
|
|
665
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
666
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
667
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
668
|
+
for (const middleware of this.configuration.middleware) {
|
|
669
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
670
|
+
}
|
|
671
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerByIntegrationIdWithHttpInfo(rsp)));
|
|
672
|
+
}));
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Use this endpoint to get a specific customer using its integration provider and identifier.
|
|
676
|
+
* Get customer by integration id
|
|
677
|
+
* @param integrationType
|
|
678
|
+
* @param integrationId
|
|
679
|
+
*/
|
|
680
|
+
getCustomerByIntegrationId(integrationType, integrationId, _options) {
|
|
681
|
+
return this.getCustomerByIntegrationIdWithHttpInfo(integrationType, integrationId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Use this endpoint to get a specific customer using its name.
|
|
685
|
+
* Get customer by name
|
|
686
|
+
* @param name
|
|
687
|
+
*/
|
|
688
|
+
getCustomerByNameWithHttpInfo(name, _options) {
|
|
689
|
+
const requestContextPromise = this.requestFactory.getCustomerByName(name, _options);
|
|
690
|
+
// build promise chain
|
|
691
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
692
|
+
for (const middleware of this.configuration.middleware) {
|
|
693
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
694
|
+
}
|
|
695
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
696
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
697
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
698
|
+
for (const middleware of this.configuration.middleware) {
|
|
699
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
700
|
+
}
|
|
701
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerByNameWithHttpInfo(rsp)));
|
|
702
|
+
}));
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Use this endpoint to get a specific customer using its name.
|
|
706
|
+
* Get customer by name
|
|
707
|
+
* @param name
|
|
708
|
+
*/
|
|
709
|
+
getCustomerByName(name, _options) {
|
|
710
|
+
return this.getCustomerByNameWithHttpInfo(name, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
711
|
+
}
|
|
394
712
|
/**
|
|
395
713
|
* Use this endpoint to get the products consumptions by the customer id.
|
|
396
714
|
* Get products consumptions by customer id
|
|
@@ -449,6 +767,35 @@ class ObservableCustomersApi {
|
|
|
449
767
|
getCustomerProductsConsumptionsByAlias(alias, _options) {
|
|
450
768
|
return this.getCustomerProductsConsumptionsByAliasWithHttpInfo(alias, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
451
769
|
}
|
|
770
|
+
/**
|
|
771
|
+
* Get a Customer relation by id.
|
|
772
|
+
* Get Customer relation
|
|
773
|
+
* @param customerRelationId
|
|
774
|
+
*/
|
|
775
|
+
getCustomerRelationWithHttpInfo(customerRelationId, _options) {
|
|
776
|
+
const requestContextPromise = this.requestFactory.getCustomerRelation(customerRelationId, _options);
|
|
777
|
+
// build promise chain
|
|
778
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
779
|
+
for (const middleware of this.configuration.middleware) {
|
|
780
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
781
|
+
}
|
|
782
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
783
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
784
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
785
|
+
for (const middleware of this.configuration.middleware) {
|
|
786
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
787
|
+
}
|
|
788
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getCustomerRelationWithHttpInfo(rsp)));
|
|
789
|
+
}));
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Get a Customer relation by id.
|
|
793
|
+
* Get Customer relation
|
|
794
|
+
* @param customerRelationId
|
|
795
|
+
*/
|
|
796
|
+
getCustomerRelation(customerRelationId, _options) {
|
|
797
|
+
return this.getCustomerRelationWithHttpInfo(customerRelationId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
798
|
+
}
|
|
452
799
|
/**
|
|
453
800
|
* Get a list of Customers.
|
|
454
801
|
* List Customers
|
|
@@ -549,6 +896,35 @@ class ObservableEventsApi {
|
|
|
549
896
|
deleteEventByRefId(refId, _options) {
|
|
550
897
|
return this.deleteEventByRefIdWithHttpInfo(refId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
551
898
|
}
|
|
899
|
+
/**
|
|
900
|
+
* Delete multiple events, identified by ref, in a single request.
|
|
901
|
+
* Delete events by refs
|
|
902
|
+
* @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
903
|
+
*/
|
|
904
|
+
deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest, _options) {
|
|
905
|
+
const requestContextPromise = this.requestFactory.deleteEventsByRefs(deleteEventsByRefsRequest, _options);
|
|
906
|
+
// build promise chain
|
|
907
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
908
|
+
for (const middleware of this.configuration.middleware) {
|
|
909
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
910
|
+
}
|
|
911
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
912
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
913
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
914
|
+
for (const middleware of this.configuration.middleware) {
|
|
915
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
916
|
+
}
|
|
917
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteEventsByRefsWithHttpInfo(rsp)));
|
|
918
|
+
}));
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Delete multiple events, identified by ref, in a single request.
|
|
922
|
+
* Delete events by refs
|
|
923
|
+
* @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
924
|
+
*/
|
|
925
|
+
deleteEventsByRefs(deleteEventsByRefsRequest, _options) {
|
|
926
|
+
return this.deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
927
|
+
}
|
|
552
928
|
/**
|
|
553
929
|
* Use this endpoint to get a specific event using its reference ID.
|
|
554
930
|
* Get event by refId
|
|
@@ -712,13 +1088,43 @@ class ObservableInvoicesApi {
|
|
|
712
1088
|
return this.getInvoiceWithHttpInfo(invoiceId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
713
1089
|
}
|
|
714
1090
|
/**
|
|
715
|
-
*
|
|
716
|
-
*
|
|
1091
|
+
* Use this endpoint to retrieve payment status information for a specific invoice, including payment status, amount due, amount paid, total, due date, paid date, and invoice PDF URL.
|
|
1092
|
+
* Get invoice payment status
|
|
1093
|
+
* @param invoiceId
|
|
1094
|
+
*/
|
|
1095
|
+
getInvoicePaymentStatusWithHttpInfo(invoiceId, _options) {
|
|
1096
|
+
const requestContextPromise = this.requestFactory.getInvoicePaymentStatus(invoiceId, _options);
|
|
1097
|
+
// build promise chain
|
|
1098
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1099
|
+
for (const middleware of this.configuration.middleware) {
|
|
1100
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1101
|
+
}
|
|
1102
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1103
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1104
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1105
|
+
for (const middleware of this.configuration.middleware) {
|
|
1106
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1107
|
+
}
|
|
1108
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getInvoicePaymentStatusWithHttpInfo(rsp)));
|
|
1109
|
+
}));
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* Use this endpoint to retrieve payment status information for a specific invoice, including payment status, amount due, amount paid, total, due date, paid date, and invoice PDF URL.
|
|
1113
|
+
* Get invoice payment status
|
|
1114
|
+
* @param invoiceId
|
|
1115
|
+
*/
|
|
1116
|
+
getInvoicePaymentStatus(invoiceId, _options) {
|
|
1117
|
+
return this.getInvoicePaymentStatusWithHttpInfo(invoiceId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
|
|
1121
|
+
* List invoices
|
|
717
1122
|
* @param [limit]
|
|
718
1123
|
* @param [cursor]
|
|
1124
|
+
* @param [customerId]
|
|
719
1125
|
*/
|
|
720
|
-
listInvoicesWithHttpInfo(limit, cursor, _options) {
|
|
721
|
-
const requestContextPromise = this.requestFactory.listInvoices(limit, cursor, _options);
|
|
1126
|
+
listInvoicesWithHttpInfo(limit, cursor, customerId, _options) {
|
|
1127
|
+
const requestContextPromise = this.requestFactory.listInvoices(limit, cursor, customerId, _options);
|
|
722
1128
|
// build promise chain
|
|
723
1129
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
724
1130
|
for (const middleware of this.configuration.middleware) {
|
|
@@ -734,13 +1140,14 @@ class ObservableInvoicesApi {
|
|
|
734
1140
|
}));
|
|
735
1141
|
}
|
|
736
1142
|
/**
|
|
737
|
-
*
|
|
738
|
-
* List
|
|
1143
|
+
* List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
|
|
1144
|
+
* List invoices
|
|
739
1145
|
* @param [limit]
|
|
740
1146
|
* @param [cursor]
|
|
1147
|
+
* @param [customerId]
|
|
741
1148
|
*/
|
|
742
|
-
listInvoices(limit, cursor, _options) {
|
|
743
|
-
return this.listInvoicesWithHttpInfo(limit, cursor, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
1149
|
+
listInvoices(limit, cursor, customerId, _options) {
|
|
1150
|
+
return this.listInvoicesWithHttpInfo(limit, cursor, customerId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
|
|
744
1151
|
}
|
|
745
1152
|
}
|
|
746
1153
|
exports.ObservableInvoicesApi = ObservableInvoicesApi;
|