vayu-ts 0.3.4 → 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.
- package/dist/openapi/apis/AuthApi.js +8 -4
- package/dist/openapi/apis/CatalogProductsApi.js +46 -23
- package/dist/openapi/apis/CloudUsageSubmissionApi.js +8 -4
- package/dist/openapi/apis/ContractsApi.js +48 -22
- package/dist/openapi/apis/CreditsApi.js +24 -12
- package/dist/openapi/apis/CustomFieldsApi.d.ts +89 -0
- package/dist/openapi/apis/CustomFieldsApi.js +377 -0
- package/dist/openapi/apis/CustomersApi.js +124 -52
- package/dist/openapi/apis/EventsApi.d.ts +116 -1
- package/dist/openapi/apis/EventsApi.js +605 -25
- package/dist/openapi/apis/InvoicesApi.js +26 -13
- package/dist/openapi/apis/MeasurementsApi.js +36 -18
- package/dist/openapi/apis/MetersApi.js +38 -19
- package/dist/openapi/apis/PlansApi.d.ts +56 -0
- package/dist/openapi/apis/PlansApi.js +225 -0
- package/dist/openapi/apis/ProductConsumptionsApi.js +12 -4
- package/dist/openapi/apis/WebhooksApi.js +12 -4
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js +3 -1
- package/dist/openapi/models/BillingInterval.d.ts +18 -0
- package/dist/openapi/models/BillingInterval.js +22 -0
- package/dist/openapi/models/ConflictErrorResponse.d.ts +42 -0
- package/dist/openapi/models/ConflictErrorResponse.js +52 -0
- package/dist/openapi/models/Contact.js +1 -1
- package/dist/openapi/models/CreateContractRequest.d.ts +6 -0
- package/dist/openapi/models/CreateContractRequest.js +12 -0
- package/dist/openapi/models/CreateCustomFieldRequest.d.ts +71 -0
- package/dist/openapi/models/CreateCustomFieldRequest.js +90 -0
- package/dist/openapi/models/CreateCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/CreateCustomFieldResponse.js +32 -0
- package/dist/openapi/models/CreateCustomFieldResponseCustomField.d.ts +74 -0
- package/dist/openapi/models/CreateCustomFieldResponseCustomField.js +108 -0
- package/dist/openapi/models/CreateCustomerRequest.d.ts +20 -0
- package/dist/openapi/models/CreateCustomerRequest.js +30 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +20 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.js +30 -0
- package/dist/openapi/models/CustomFieldEntities.d.ts +20 -0
- package/dist/openapi/models/CustomFieldEntities.js +24 -0
- package/dist/openapi/models/CustomFieldValueTypes.d.ts +2 -1
- package/dist/openapi/models/CustomFieldValueTypes.js +1 -0
- package/dist/openapi/models/DeleteContractResponseContract.d.ts +6 -0
- package/dist/openapi/models/DeleteContractResponseContract.js +12 -0
- package/dist/openapi/models/DeleteCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/DeleteCustomFieldResponse.js +32 -0
- package/dist/openapi/models/DeleteCustomFieldResponseCustomField.d.ts +75 -0
- package/dist/openapi/models/DeleteCustomFieldResponseCustomField.js +114 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +20 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.js +30 -0
- package/dist/openapi/models/DeletePlanResponse.d.ts +32 -0
- package/dist/openapi/models/DeletePlanResponse.js +32 -0
- package/dist/openapi/models/DeletePlanResponsePlan.d.ts +42 -0
- package/dist/openapi/models/DeletePlanResponsePlan.js +68 -0
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +1 -1
- package/dist/openapi/models/GetContractResponseContract.d.ts +6 -0
- package/dist/openapi/models/GetContractResponseContract.js +12 -0
- package/dist/openapi/models/GetCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomFieldResponse.js +32 -0
- package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +20 -0
- package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +30 -0
- package/dist/openapi/models/GetPlanResponse.d.ts +32 -0
- package/dist/openapi/models/GetPlanResponse.js +32 -0
- package/dist/openapi/models/GetPlanResponsePlan.d.ts +41 -0
- package/dist/openapi/models/GetPlanResponsePlan.js +62 -0
- package/dist/openapi/models/InternalServerErrorResponse.d.ts +42 -0
- package/dist/openapi/models/InternalServerErrorResponse.js +52 -0
- package/dist/openapi/models/ListCustomFieldsResponse.d.ts +35 -0
- package/dist/openapi/models/ListCustomFieldsResponse.js +50 -0
- package/dist/openapi/models/ListPlansResponse.d.ts +35 -0
- package/dist/openapi/models/ListPlansResponse.js +50 -0
- package/dist/openapi/models/NotFoundErrorResponse.d.ts +42 -0
- package/dist/openapi/models/NotFoundErrorResponse.js +52 -0
- package/dist/openapi/models/NotificationEventType.d.ts +5 -1
- package/dist/openapi/models/NotificationEventType.js +4 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +51 -0
- package/dist/openapi/models/ObjectSerializer.js +176 -0
- package/dist/openapi/models/PlanBillingData.d.ts +41 -0
- package/dist/openapi/models/PlanBillingData.js +59 -0
- package/dist/openapi/models/PlanDuration.d.ts +30 -0
- package/dist/openapi/models/PlanDuration.js +25 -0
- package/dist/openapi/models/PlanStatus.d.ts +19 -0
- package/dist/openapi/models/PlanStatus.js +23 -0
- package/dist/openapi/models/ProductGroupCommitment.d.ts +8 -0
- package/dist/openapi/models/ProductGroupCommitment.js +12 -1
- package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +8 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +12 -1
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +4 -4
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +2 -2
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.d.ts +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +3 -1
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +6 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +12 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +2 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +6 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +2 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +6 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.d.ts +42 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.d.ts +42 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.d.ts +53 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.js +58 -0
- package/dist/openapi/models/QueryEventsResponse.d.ts +3 -3
- package/dist/openapi/models/QueryEventsResponse.js +18 -0
- package/dist/openapi/models/RateLimitErrorResponse.d.ts +42 -0
- package/dist/openapi/models/RateLimitErrorResponse.js +52 -0
- package/dist/openapi/models/RequestTooLongErrorResponse.d.ts +42 -0
- package/dist/openapi/models/RequestTooLongErrorResponse.js +52 -0
- package/dist/openapi/models/UnauthorizedErrorResponse.d.ts +42 -0
- package/dist/openapi/models/UnauthorizedErrorResponse.js +52 -0
- package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
- package/dist/openapi/models/UnlimitedDuration.js +18 -0
- package/dist/openapi/models/UpdateCustomFieldRequest.d.ts +71 -0
- package/dist/openapi/models/UpdateCustomFieldRequest.js +90 -0
- package/dist/openapi/models/UpdateCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/UpdateCustomFieldResponse.js +32 -0
- package/dist/openapi/models/UpdateCustomerRequest.d.ts +20 -0
- package/dist/openapi/models/UpdateCustomerRequest.js +30 -0
- package/dist/openapi/models/V2DeleteEventResponse.d.ts +32 -0
- package/dist/openapi/models/V2DeleteEventResponse.js +32 -0
- package/dist/openapi/models/V2DeleteEventsByRefsRequest.d.ts +31 -0
- package/dist/openapi/models/V2DeleteEventsByRefsRequest.js +32 -0
- package/dist/openapi/models/V2DeleteEventsByRefsResponse.d.ts +35 -0
- package/dist/openapi/models/V2DeleteEventsByRefsResponse.js +32 -0
- package/dist/openapi/models/V2EventsDryRunRequest.d.ts +32 -0
- package/dist/openapi/models/V2EventsDryRunRequest.js +32 -0
- package/dist/openapi/models/V2EventsDryRunResponse.d.ts +32 -0
- package/dist/openapi/models/V2EventsDryRunResponse.js +32 -0
- package/dist/openapi/models/V2GetEventResponse.d.ts +32 -0
- package/dist/openapi/models/V2GetEventResponse.js +32 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequest.d.ts +45 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequest.js +70 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.d.ts +39 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.js +62 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.d.ts +35 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.js +44 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.d.ts +38 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.js +45 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.d.ts +43 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.js +54 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.d.ts +30 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.js +25 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.d.ts +34 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.js +38 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.d.ts +32 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.js +38 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponse.d.ts +42 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponse.js +52 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.d.ts +34 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.js +38 -0
- package/dist/openapi/models/V2QueryEventsResponse.d.ts +35 -0
- package/dist/openapi/models/V2QueryEventsResponse.js +50 -0
- package/dist/openapi/models/V2SendEventsRequest.d.ts +32 -0
- package/dist/openapi/models/V2SendEventsRequest.js +32 -0
- package/dist/openapi/models/V2SendEventsResponse.d.ts +40 -0
- package/dist/openapi/models/V2SendEventsResponse.js +38 -0
- package/dist/openapi/models/ValidationErrorResponse.d.ts +51 -0
- package/dist/openapi/models/ValidationErrorResponse.js +60 -0
- package/dist/openapi/models/ValidationErrorResponseParamsInner.d.ts +38 -0
- package/dist/openapi/models/ValidationErrorResponseParamsInner.js +38 -0
- package/dist/openapi/models/WebhookSubscribeRequest.d.ts +1 -0
- package/dist/openapi/models/WebhookSubscribeRequest.js +6 -0
- package/dist/openapi/models/all.d.ts +51 -0
- package/dist/openapi/models/all.js +51 -0
- package/dist/openapi/types/ObservableAPI.d.ts +235 -2
- package/dist/openapi/types/ObservableAPI.js +476 -5
- package/dist/openapi/types/PromiseAPI.d.ts +231 -2
- package/dist/openapi/types/PromiseAPI.js +320 -18
- package/dist/sdk/clients/EventsClient.js +1 -1
- package/dist/sdk/clients/WebhooksClient.d.ts +2 -0
- package/dist/sdk/clients/WebhooksClient.js +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
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.PlanDuration = void 0;
|
|
15
|
+
class PlanDuration {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return PlanDuration.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
constructor() {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.PlanDuration = PlanDuration;
|
|
23
|
+
PlanDuration.discriminator = undefined;
|
|
24
|
+
PlanDuration.mapping = undefined;
|
|
25
|
+
PlanDuration.attributeTypeMap = [];
|
|
@@ -0,0 +1,19 @@
|
|
|
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 status of the plan. plan statuses are active, inactive
|
|
14
|
+
*/
|
|
15
|
+
export declare enum PlanStatus {
|
|
16
|
+
Active = "Active",
|
|
17
|
+
Inactive = "Inactive",
|
|
18
|
+
Error = "Error"
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.PlanStatus = void 0;
|
|
15
|
+
/**
|
|
16
|
+
* The status of the plan. plan statuses are active, inactive
|
|
17
|
+
*/
|
|
18
|
+
var PlanStatus;
|
|
19
|
+
(function (PlanStatus) {
|
|
20
|
+
PlanStatus["Active"] = "Active";
|
|
21
|
+
PlanStatus["Inactive"] = "Inactive";
|
|
22
|
+
PlanStatus["Error"] = "Error";
|
|
23
|
+
})(PlanStatus = exports.PlanStatus || (exports.PlanStatus = {}));
|
|
@@ -23,6 +23,10 @@ export declare class ProductGroupCommitment {
|
|
|
23
23
|
* Price to charge the customer for the committed units
|
|
24
24
|
*/
|
|
25
25
|
'price'?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
* The type of commitment. UNITS means the commitment amount is in units, PRICE means it is a monetary value. Defaults to UNITS.
|
|
28
|
+
*/
|
|
29
|
+
'type'?: ProductGroupCommitmentTypeEnum;
|
|
26
30
|
'scheduling'?: ProductGroupProductsInnerCommitmentScheduling | null;
|
|
27
31
|
'overageStrategy'?: ExternalOverageStrategy | null;
|
|
28
32
|
static readonly discriminator: string | undefined;
|
|
@@ -43,3 +47,7 @@ export declare class ProductGroupCommitment {
|
|
|
43
47
|
}[];
|
|
44
48
|
constructor();
|
|
45
49
|
}
|
|
50
|
+
export declare enum ProductGroupCommitmentTypeEnum {
|
|
51
|
+
Price = "PRICE",
|
|
52
|
+
Units = "UNITS"
|
|
53
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ProductGroupCommitment = void 0;
|
|
14
|
+
exports.ProductGroupCommitmentTypeEnum = exports.ProductGroupCommitment = void 0;
|
|
15
15
|
/**
|
|
16
16
|
* The commitment of the product group. units are aggregated for all products in the group
|
|
17
17
|
*/
|
|
@@ -38,6 +38,12 @@ ProductGroupCommitment.attributeTypeMap = [
|
|
|
38
38
|
"type": "number",
|
|
39
39
|
"format": ""
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"name": "type",
|
|
43
|
+
"baseName": "type",
|
|
44
|
+
"type": "ProductGroupCommitmentTypeEnum",
|
|
45
|
+
"format": ""
|
|
46
|
+
},
|
|
41
47
|
{
|
|
42
48
|
"name": "scheduling",
|
|
43
49
|
"baseName": "scheduling",
|
|
@@ -51,3 +57,8 @@ ProductGroupCommitment.attributeTypeMap = [
|
|
|
51
57
|
"format": ""
|
|
52
58
|
}
|
|
53
59
|
];
|
|
60
|
+
var ProductGroupCommitmentTypeEnum;
|
|
61
|
+
(function (ProductGroupCommitmentTypeEnum) {
|
|
62
|
+
ProductGroupCommitmentTypeEnum["Price"] = "PRICE";
|
|
63
|
+
ProductGroupCommitmentTypeEnum["Units"] = "UNITS";
|
|
64
|
+
})(ProductGroupCommitmentTypeEnum = exports.ProductGroupCommitmentTypeEnum || (exports.ProductGroupCommitmentTypeEnum = {}));
|
|
@@ -23,6 +23,10 @@ export declare class ProductGroupProductsInnerCommitment {
|
|
|
23
23
|
* Price to charge the customer for the committed units
|
|
24
24
|
*/
|
|
25
25
|
'price'?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
* The type of commitment. UNITS means the commitment amount is in units, PRICE means it is a monetary value. Defaults to UNITS.
|
|
28
|
+
*/
|
|
29
|
+
'type'?: ProductGroupProductsInnerCommitmentTypeEnum;
|
|
26
30
|
'scheduling'?: ProductGroupProductsInnerCommitmentScheduling | null;
|
|
27
31
|
'overageStrategy'?: ExternalOverageStrategy | null;
|
|
28
32
|
static readonly discriminator: string | undefined;
|
|
@@ -43,3 +47,7 @@ export declare class ProductGroupProductsInnerCommitment {
|
|
|
43
47
|
}[];
|
|
44
48
|
constructor();
|
|
45
49
|
}
|
|
50
|
+
export declare enum ProductGroupProductsInnerCommitmentTypeEnum {
|
|
51
|
+
Price = "PRICE",
|
|
52
|
+
Units = "UNITS"
|
|
53
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ProductGroupProductsInnerCommitment = void 0;
|
|
14
|
+
exports.ProductGroupProductsInnerCommitmentTypeEnum = exports.ProductGroupProductsInnerCommitment = void 0;
|
|
15
15
|
/**
|
|
16
16
|
* The commitment of the product
|
|
17
17
|
*/
|
|
@@ -38,6 +38,12 @@ ProductGroupProductsInnerCommitment.attributeTypeMap = [
|
|
|
38
38
|
"type": "number",
|
|
39
39
|
"format": ""
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"name": "type",
|
|
43
|
+
"baseName": "type",
|
|
44
|
+
"type": "ProductGroupProductsInnerCommitmentTypeEnum",
|
|
45
|
+
"format": ""
|
|
46
|
+
},
|
|
41
47
|
{
|
|
42
48
|
"name": "scheduling",
|
|
43
49
|
"baseName": "scheduling",
|
|
@@ -51,3 +57,8 @@ ProductGroupProductsInnerCommitment.attributeTypeMap = [
|
|
|
51
57
|
"format": ""
|
|
52
58
|
}
|
|
53
59
|
];
|
|
60
|
+
var ProductGroupProductsInnerCommitmentTypeEnum;
|
|
61
|
+
(function (ProductGroupProductsInnerCommitmentTypeEnum) {
|
|
62
|
+
ProductGroupProductsInnerCommitmentTypeEnum["Price"] = "PRICE";
|
|
63
|
+
ProductGroupProductsInnerCommitmentTypeEnum["Units"] = "UNITS";
|
|
64
|
+
})(ProductGroupProductsInnerCommitmentTypeEnum = exports.ProductGroupProductsInnerCommitmentTypeEnum || (exports.ProductGroupProductsInnerCommitmentTypeEnum = {}));
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ProductGroupProductsInnerCommitmentSchedulingDuration } from '../models/ProductGroupProductsInnerCommitmentSchedulingDuration';
|
|
13
13
|
/**
|
|
14
|
-
* Scheduling
|
|
14
|
+
* Scheduling for recurring commitment. Duration unit must be MONTH or YEAR.
|
|
15
15
|
*/
|
|
16
16
|
export declare class ProductGroupProductsInnerCommitmentScheduling {
|
|
17
17
|
/**
|
|
18
|
-
* The day of the month
|
|
18
|
+
* The day of the month for the commitment scheduling
|
|
19
19
|
*/
|
|
20
20
|
'billingDay'?: number;
|
|
21
|
-
'duration':
|
|
21
|
+
'duration': ProductGroupProductsInnerCommitmentSchedulingDuration;
|
|
22
22
|
static readonly discriminator: string | undefined;
|
|
23
23
|
static readonly mapping: {
|
|
24
24
|
[index: string]: string;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.ProductGroupProductsInnerCommitmentScheduling = void 0;
|
|
15
15
|
/**
|
|
16
|
-
* Scheduling
|
|
16
|
+
* Scheduling for recurring commitment. Duration unit must be MONTH or YEAR.
|
|
17
17
|
*/
|
|
18
18
|
class ProductGroupProductsInnerCommitmentScheduling {
|
|
19
19
|
static getAttributeTypeMap() {
|
|
@@ -35,7 +35,7 @@ ProductGroupProductsInnerCommitmentScheduling.attributeTypeMap = [
|
|
|
35
35
|
{
|
|
36
36
|
"name": "duration",
|
|
37
37
|
"baseName": "duration",
|
|
38
|
-
"type": "
|
|
38
|
+
"type": "ProductGroupProductsInnerCommitmentSchedulingDuration",
|
|
39
39
|
"format": ""
|
|
40
40
|
}
|
|
41
41
|
];
|
|
@@ -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
|
+
/**
|
|
13
|
+
* The duration of the commitment scheduling cycle. Unit must be MONTH or YEAR.
|
|
14
|
+
*/
|
|
15
|
+
export declare class ProductGroupProductsInnerCommitmentSchedulingDuration {
|
|
16
|
+
'unit': ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum;
|
|
17
|
+
'value': number;
|
|
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
|
+
}
|
|
36
|
+
export declare enum ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum {
|
|
37
|
+
Day = "DAY",
|
|
38
|
+
Week = "WEEK",
|
|
39
|
+
Month = "MONTH",
|
|
40
|
+
Year = "YEAR"
|
|
41
|
+
}
|
|
@@ -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.ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum = exports.ProductGroupProductsInnerCommitmentSchedulingDuration = void 0;
|
|
15
|
+
/**
|
|
16
|
+
* The duration of the commitment scheduling cycle. Unit must be MONTH or YEAR.
|
|
17
|
+
*/
|
|
18
|
+
class ProductGroupProductsInnerCommitmentSchedulingDuration {
|
|
19
|
+
static getAttributeTypeMap() {
|
|
20
|
+
return ProductGroupProductsInnerCommitmentSchedulingDuration.attributeTypeMap;
|
|
21
|
+
}
|
|
22
|
+
constructor() {
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.ProductGroupProductsInnerCommitmentSchedulingDuration = ProductGroupProductsInnerCommitmentSchedulingDuration;
|
|
26
|
+
ProductGroupProductsInnerCommitmentSchedulingDuration.discriminator = undefined;
|
|
27
|
+
ProductGroupProductsInnerCommitmentSchedulingDuration.mapping = undefined;
|
|
28
|
+
ProductGroupProductsInnerCommitmentSchedulingDuration.attributeTypeMap = [
|
|
29
|
+
{
|
|
30
|
+
"name": "unit",
|
|
31
|
+
"baseName": "unit",
|
|
32
|
+
"type": "ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum",
|
|
33
|
+
"format": ""
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "value",
|
|
37
|
+
"baseName": "value",
|
|
38
|
+
"type": "number",
|
|
39
|
+
"format": ""
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
var ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum;
|
|
43
|
+
(function (ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum) {
|
|
44
|
+
ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum["Day"] = "DAY";
|
|
45
|
+
ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum["Week"] = "WEEK";
|
|
46
|
+
ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum["Month"] = "MONTH";
|
|
47
|
+
ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum["Year"] = "YEAR";
|
|
48
|
+
})(ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum = exports.ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum || (exports.ProductGroupProductsInnerCommitmentSchedulingDurationUnitEnum = {}));
|
|
@@ -14,6 +14,8 @@ import { ProductGroupProductsInnerPricingOneOf1 } from '../models/ProductGroupPr
|
|
|
14
14
|
import { ProductGroupProductsInnerPricingOneOf2 } from '../models/ProductGroupProductsInnerPricingOneOf2';
|
|
15
15
|
import { ProductGroupProductsInnerPricingOneOf3 } from '../models/ProductGroupProductsInnerPricingOneOf3';
|
|
16
16
|
import { ProductGroupProductsInnerPricingOneOf4 } from '../models/ProductGroupProductsInnerPricingOneOf4';
|
|
17
|
+
import { ProductGroupProductsInnerPricingOneOf5 } from '../models/ProductGroupProductsInnerPricingOneOf5';
|
|
18
|
+
import { ProductGroupProductsInnerPricingOneOf6 } from '../models/ProductGroupProductsInnerPricingOneOf6';
|
|
17
19
|
/**
|
|
18
20
|
* The pricing of the product
|
|
19
21
|
*/
|
|
@@ -22,7 +24,7 @@ import { ProductGroupProductsInnerPricingOneOf4 } from '../models/ProductGroupPr
|
|
|
22
24
|
* Type
|
|
23
25
|
* @export
|
|
24
26
|
*/
|
|
25
|
-
export type ProductGroupProductsInnerPricing = ProductGroupProductsInnerPricingOneOf | ProductGroupProductsInnerPricingOneOf1 | ProductGroupProductsInnerPricingOneOf2 | ProductGroupProductsInnerPricingOneOf3 | ProductGroupProductsInnerPricingOneOf4;
|
|
27
|
+
export type ProductGroupProductsInnerPricing = ProductGroupProductsInnerPricingOneOf | ProductGroupProductsInnerPricingOneOf1 | ProductGroupProductsInnerPricingOneOf2 | ProductGroupProductsInnerPricingOneOf3 | ProductGroupProductsInnerPricingOneOf4 | ProductGroupProductsInnerPricingOneOf5 | ProductGroupProductsInnerPricingOneOf6;
|
|
26
28
|
/**
|
|
27
29
|
* @type ProductGroupProductsInnerPricingClass
|
|
28
30
|
* The pricing of the product
|
|
@@ -9,9 +9,15 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ProductGroupProductsInnerPricingOneOfDiscount } from '../models/ProductGroupProductsInnerPricingOneOfDiscount';
|
|
12
13
|
export declare class ProductGroupProductsInnerPricingOneOf {
|
|
13
14
|
'type': ProductGroupProductsInnerPricingOneOfTypeEnum;
|
|
14
15
|
'price': number;
|
|
16
|
+
'discount'?: ProductGroupProductsInnerPricingOneOfDiscount | null;
|
|
17
|
+
/**
|
|
18
|
+
* Whether this one-time fee is a credit purchase. When true, the product is treated as a prepaid credit that the customer can use later. Defaults to false.
|
|
19
|
+
*/
|
|
20
|
+
'isCreditPurchase'?: boolean;
|
|
15
21
|
static readonly discriminator: string | undefined;
|
|
16
22
|
static readonly mapping: {
|
|
17
23
|
[index: string]: string;
|
|
@@ -34,6 +34,18 @@ ProductGroupProductsInnerPricingOneOf.attributeTypeMap = [
|
|
|
34
34
|
"baseName": "price",
|
|
35
35
|
"type": "number",
|
|
36
36
|
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "discount",
|
|
40
|
+
"baseName": "discount",
|
|
41
|
+
"type": "ProductGroupProductsInnerPricingOneOfDiscount",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "isCreditPurchase",
|
|
46
|
+
"baseName": "isCreditPurchase",
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"format": ""
|
|
37
49
|
}
|
|
38
50
|
];
|
|
39
51
|
var ProductGroupProductsInnerPricingOneOfTypeEnum;
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ProductGroupProductsInnerPricingOneOf1InstallmentsInner } from '../models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner';
|
|
13
|
+
import { ProductGroupProductsInnerPricingOneOfDiscount } from '../models/ProductGroupProductsInnerPricingOneOfDiscount';
|
|
13
14
|
export declare class ProductGroupProductsInnerPricingOneOf1 {
|
|
14
15
|
'type': ProductGroupProductsInnerPricingOneOf1TypeEnum;
|
|
15
16
|
'price': number;
|
|
16
17
|
'installments'?: Array<ProductGroupProductsInnerPricingOneOf1InstallmentsInner> | null;
|
|
18
|
+
'discount'?: ProductGroupProductsInnerPricingOneOfDiscount | null;
|
|
17
19
|
static readonly discriminator: string | undefined;
|
|
18
20
|
static readonly mapping: {
|
|
19
21
|
[index: string]: string;
|
|
@@ -40,6 +40,12 @@ ProductGroupProductsInnerPricingOneOf1.attributeTypeMap = [
|
|
|
40
40
|
"baseName": "installments",
|
|
41
41
|
"type": "Array<ProductGroupProductsInnerPricingOneOf1InstallmentsInner>",
|
|
42
42
|
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "discount",
|
|
46
|
+
"baseName": "discount",
|
|
47
|
+
"type": "ProductGroupProductsInnerPricingOneOfDiscount",
|
|
48
|
+
"format": ""
|
|
43
49
|
}
|
|
44
50
|
];
|
|
45
51
|
var ProductGroupProductsInnerPricingOneOf1TypeEnum;
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ProductGroupProductsInnerPricingOneOf2SubscriptionCadence } from '../models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence';
|
|
13
|
+
import { ProductGroupProductsInnerPricingOneOfDiscount } from '../models/ProductGroupProductsInnerPricingOneOfDiscount';
|
|
13
14
|
export declare class ProductGroupProductsInnerPricingOneOf2 {
|
|
14
15
|
'type': ProductGroupProductsInnerPricingOneOf2TypeEnum;
|
|
15
16
|
'price': number;
|
|
16
17
|
'subscriptionCadence': ProductGroupProductsInnerPricingOneOf2SubscriptionCadence;
|
|
18
|
+
'discount'?: ProductGroupProductsInnerPricingOneOfDiscount | null;
|
|
17
19
|
static readonly discriminator: string | undefined;
|
|
18
20
|
static readonly mapping: {
|
|
19
21
|
[index: string]: string;
|
|
@@ -40,6 +40,12 @@ ProductGroupProductsInnerPricingOneOf2.attributeTypeMap = [
|
|
|
40
40
|
"baseName": "subscriptionCadence",
|
|
41
41
|
"type": "ProductGroupProductsInnerPricingOneOf2SubscriptionCadence",
|
|
42
42
|
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "discount",
|
|
46
|
+
"baseName": "discount",
|
|
47
|
+
"type": "ProductGroupProductsInnerPricingOneOfDiscount",
|
|
48
|
+
"format": ""
|
|
43
49
|
}
|
|
44
50
|
];
|
|
45
51
|
var ProductGroupProductsInnerPricingOneOf2TypeEnum;
|
|
@@ -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
|
+
}
|