@flexprice/sdk 0.0.1
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/README.md +380 -0
- package/dist/ApiClient.js +703 -0
- package/dist/api/AuthApi.js +116 -0
- package/dist/api/CustomersApi.js +373 -0
- package/dist/api/EntitlementsApi.js +291 -0
- package/dist/api/EnvironmentsApi.js +204 -0
- package/dist/api/EventsApi.js +237 -0
- package/dist/api/FeaturesApi.js +252 -0
- package/dist/api/IntegrationsApi.js +189 -0
- package/dist/api/InvoicesApi.js +444 -0
- package/dist/api/MetersApi.js +287 -0
- package/dist/api/PaymentsApi.js +296 -0
- package/dist/api/PlansApi.js +248 -0
- package/dist/api/PricesApi.js +250 -0
- package/dist/api/SecretsApi.js +155 -0
- package/dist/api/SubscriptionsApi.js +383 -0
- package/dist/api/TasksApi.js +254 -0
- package/dist/api/TenantsApi.js +182 -0
- package/dist/api/UsersApi.js +75 -0
- package/dist/api/WalletsApi.js +384 -0
- package/dist/index.js +1154 -0
- package/dist/model/DtoAddress.js +149 -0
- package/dist/model/DtoAggregatedEntitlement.js +123 -0
- package/dist/model/DtoAggregatedFeature.js +138 -0
- package/dist/model/DtoAuthResponse.js +113 -0
- package/dist/model/DtoBillingPeriodInfo.js +114 -0
- package/dist/model/DtoBulkIngestEventRequest.js +130 -0
- package/dist/model/DtoCreateAPIKeyRequest.js +147 -0
- package/dist/model/DtoCreateAPIKeyResponse.js +103 -0
- package/dist/model/DtoCreateCustomerRequest.js +218 -0
- package/dist/model/DtoCreateEntitlementRequest.js +180 -0
- package/dist/model/DtoCreateEnvironmentRequest.js +126 -0
- package/dist/model/DtoCreateFeatureRequest.js +193 -0
- package/dist/model/DtoCreateIntegrationRequest.js +135 -0
- package/dist/model/DtoCreateInvoiceLineItemRequest.js +238 -0
- package/dist/model/DtoCreateInvoiceRequest.js +316 -0
- package/dist/model/DtoCreateMeterRequest.js +183 -0
- package/dist/model/DtoCreatePaymentRequest.js +202 -0
- package/dist/model/DtoCreatePlanEntitlementRequest.js +180 -0
- package/dist/model/DtoCreatePlanPriceRequest.js +318 -0
- package/dist/model/DtoCreatePlanRequest.js +196 -0
- package/dist/model/DtoCreatePriceRequest.js +318 -0
- package/dist/model/DtoCreatePriceTier.js +132 -0
- package/dist/model/DtoCreateSubscriptionRequest.js +244 -0
- package/dist/model/DtoCreateTaskRequest.js +167 -0
- package/dist/model/DtoCreateTenantRequest.js +126 -0
- package/dist/model/DtoCreateWalletRequest.js +216 -0
- package/dist/model/DtoCustomerEntitlementsResponse.js +122 -0
- package/dist/model/DtoCustomerInvoiceSummary.js +165 -0
- package/dist/model/DtoCustomerMultiCurrencyInvoiceSummary.js +134 -0
- package/dist/model/DtoCustomerResponse.js +300 -0
- package/dist/model/DtoCustomerUsageSummaryResponse.js +150 -0
- package/dist/model/DtoEntitlementResponse.js +276 -0
- package/dist/model/DtoEntitlementSource.js +161 -0
- package/dist/model/DtoEnvironmentResponse.js +137 -0
- package/dist/model/DtoEvent.js +159 -0
- package/dist/model/DtoFeatureResponse.js +275 -0
- package/dist/model/DtoFeatureUsageSummary.js +164 -0
- package/dist/model/DtoGetEventsResponse.js +142 -0
- package/dist/model/DtoGetPreviewInvoiceRequest.js +136 -0
- package/dist/model/DtoGetUsageByMeterRequest.js +179 -0
- package/dist/model/DtoGetUsageBySubscriptionRequest.js +144 -0
- package/dist/model/DtoGetUsageBySubscriptionResponse.js +166 -0
- package/dist/model/DtoGetUsageRequest.js +203 -0
- package/dist/model/DtoGetUsageResponse.js +139 -0
- package/dist/model/DtoIngestEventRequest.js +186 -0
- package/dist/model/DtoInvoiceLineItemResponse.js +343 -0
- package/dist/model/DtoInvoiceResponse.js +479 -0
- package/dist/model/DtoLinkedIntegrationsResponse.js +89 -0
- package/dist/model/DtoListCustomersResponse.js +124 -0
- package/dist/model/DtoListEntitlementsResponse.js +124 -0
- package/dist/model/DtoListEnvironmentsResponse.js +134 -0
- package/dist/model/DtoListFeaturesResponse.js +124 -0
- package/dist/model/DtoListInvoicesResponse.js +124 -0
- package/dist/model/DtoListPaymentsResponse.js +124 -0
- package/dist/model/DtoListPlansResponse.js +124 -0
- package/dist/model/DtoListPricesResponse.js +124 -0
- package/dist/model/DtoListSecretsResponse.js +124 -0
- package/dist/model/DtoListSubscriptionPausesResponse.js +118 -0
- package/dist/model/DtoListSubscriptionsResponse.js +124 -0
- package/dist/model/DtoListTasksResponse.js +124 -0
- package/dist/model/DtoListWalletTransactionsResponse.js +124 -0
- package/dist/model/DtoLoginRequest.js +138 -0
- package/dist/model/DtoMeterResponse.js +217 -0
- package/dist/model/DtoPauseSubscriptionRequest.js +171 -0
- package/dist/model/DtoPaymentAttemptResponse.js +191 -0
- package/dist/model/DtoPaymentResponse.js +331 -0
- package/dist/model/DtoPlanResponse.js +269 -0
- package/dist/model/DtoPriceResponse.js +412 -0
- package/dist/model/DtoResumeSubscriptionRequest.js +127 -0
- package/dist/model/DtoSecretResponse.js +200 -0
- package/dist/model/DtoSignUpRequest.js +148 -0
- package/dist/model/DtoSubscriptionPauseResponse.js +300 -0
- package/dist/model/DtoSubscriptionResponse.js +518 -0
- package/dist/model/DtoSubscriptionUsageByMetersResponse.js +165 -0
- package/dist/model/DtoTaskResponse.js +311 -0
- package/dist/model/DtoTenantBillingDetails.js +127 -0
- package/dist/model/DtoTenantBillingUsage.js +124 -0
- package/dist/model/DtoTenantResponse.js +151 -0
- package/dist/model/DtoTopUpWalletRequest.js +185 -0
- package/dist/model/DtoUpdateCustomerRequest.js +195 -0
- package/dist/model/DtoUpdateEntitlementRequest.js +122 -0
- package/dist/model/DtoUpdateEnvironmentRequest.js +101 -0
- package/dist/model/DtoUpdateFeatureRequest.js +135 -0
- package/dist/model/DtoUpdateMeterRequest.js +110 -0
- package/dist/model/DtoUpdatePaymentRequest.js +99 -0
- package/dist/model/DtoUpdatePaymentStatusRequest.js +117 -0
- package/dist/model/DtoUpdatePlanEntitlementRequest.js +193 -0
- package/dist/model/DtoUpdatePlanPriceRequest.js +331 -0
- package/dist/model/DtoUpdatePlanRequest.js +176 -0
- package/dist/model/DtoUpdatePriceRequest.js +111 -0
- package/dist/model/DtoUpdateTaskStatusRequest.js +109 -0
- package/dist/model/DtoUpdateTenantRequest.js +91 -0
- package/dist/model/DtoUpdateWalletRequest.js +150 -0
- package/dist/model/DtoUsageResult.js +97 -0
- package/dist/model/DtoUserResponse.js +115 -0
- package/dist/model/DtoWalletBalanceResponse.js +353 -0
- package/dist/model/DtoWalletResponse.js +252 -0
- package/dist/model/DtoWalletTransactionResponse.js +238 -0
- package/dist/model/ErrorsErrorDetail.js +111 -0
- package/dist/model/ErrorsErrorResponse.js +99 -0
- package/dist/model/MeterAggregation.js +99 -0
- package/dist/model/MeterFilter.js +103 -0
- package/dist/model/PriceJSONBTransformQuantity.js +99 -0
- package/dist/model/PricePrice.js +398 -0
- package/dist/model/PricePriceTier.js +104 -0
- package/dist/model/PriceTransformQuantity.js +99 -0
- package/dist/model/SubscriptionSubscriptionLineItem.js +355 -0
- package/dist/model/SubscriptionSubscriptionPause.js +300 -0
- package/dist/model/TypesAggregationType.js +68 -0
- package/dist/model/TypesAutoTopupTrigger.js +58 -0
- package/dist/model/TypesBillingCadence.js +58 -0
- package/dist/model/TypesBillingModel.js +63 -0
- package/dist/model/TypesBillingPeriod.js +78 -0
- package/dist/model/TypesBillingTier.js +58 -0
- package/dist/model/TypesEntityType.js +63 -0
- package/dist/model/TypesFeatureType.js +63 -0
- package/dist/model/TypesFileType.js +58 -0
- package/dist/model/TypesInvoiceBillingReason.js +68 -0
- package/dist/model/TypesInvoiceCadence.js +58 -0
- package/dist/model/TypesInvoiceStatus.js +63 -0
- package/dist/model/TypesInvoiceType.js +63 -0
- package/dist/model/TypesPaginationResponse.js +101 -0
- package/dist/model/TypesPauseMode.js +63 -0
- package/dist/model/TypesPauseStatus.js +73 -0
- package/dist/model/TypesPaymentDestinationType.js +53 -0
- package/dist/model/TypesPaymentMethodType.js +68 -0
- package/dist/model/TypesPaymentStatus.js +78 -0
- package/dist/model/TypesPriceType.js +58 -0
- package/dist/model/TypesResetUsage.js +58 -0
- package/dist/model/TypesResumeMode.js +63 -0
- package/dist/model/TypesSecretProvider.js +63 -0
- package/dist/model/TypesSecretType.js +63 -0
- package/dist/model/TypesStatus.js +63 -0
- package/dist/model/TypesSubscriptionStatus.js +88 -0
- package/dist/model/TypesTaskStatus.js +68 -0
- package/dist/model/TypesTaskType.js +58 -0
- package/dist/model/TypesTransactionReason.js +88 -0
- package/dist/model/TypesTransactionStatus.js +63 -0
- package/dist/model/TypesTransactionType.js +58 -0
- package/dist/model/TypesWalletConfig.js +91 -0
- package/dist/model/TypesWalletConfigPriceType.js +63 -0
- package/dist/model/TypesWalletStatus.js +63 -0
- package/dist/model/TypesWalletTxReferenceType.js +68 -0
- package/dist/model/TypesWalletType.js +58 -0
- package/dist/model/TypesWindowSize.js +63 -0
- package/package.json +54 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _PricePrice = _interopRequireDefault(require("./PricePrice"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
13
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
|
+
* FlexPrice API
|
|
17
|
+
* FlexPrice API Service
|
|
18
|
+
*
|
|
19
|
+
* The version of the OpenAPI document: 1.0
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The DtoSubscriptionUsageByMetersResponse model module.
|
|
29
|
+
* @module model/DtoSubscriptionUsageByMetersResponse
|
|
30
|
+
* @version 1.0
|
|
31
|
+
*/
|
|
32
|
+
var DtoSubscriptionUsageByMetersResponse = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>DtoSubscriptionUsageByMetersResponse</code>.
|
|
35
|
+
* @alias module:model/DtoSubscriptionUsageByMetersResponse
|
|
36
|
+
*/
|
|
37
|
+
function DtoSubscriptionUsageByMetersResponse() {
|
|
38
|
+
_classCallCheck(this, DtoSubscriptionUsageByMetersResponse);
|
|
39
|
+
DtoSubscriptionUsageByMetersResponse.initialize(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
return _createClass(DtoSubscriptionUsageByMetersResponse, null, [{
|
|
48
|
+
key: "initialize",
|
|
49
|
+
value: function initialize(obj) {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>DtoSubscriptionUsageByMetersResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:model/DtoSubscriptionUsageByMetersResponse} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/DtoSubscriptionUsageByMetersResponse} The populated <code>DtoSubscriptionUsageByMetersResponse</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new DtoSubscriptionUsageByMetersResponse();
|
|
63
|
+
if (data.hasOwnProperty('amount')) {
|
|
64
|
+
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number');
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('currency')) {
|
|
67
|
+
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('display_amount')) {
|
|
70
|
+
obj['display_amount'] = _ApiClient["default"].convertToType(data['display_amount'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('filter_values')) {
|
|
73
|
+
obj['filter_values'] = _ApiClient["default"].convertToType(data['filter_values'], {
|
|
74
|
+
'String': ['String']
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('meter_display_name')) {
|
|
78
|
+
obj['meter_display_name'] = _ApiClient["default"].convertToType(data['meter_display_name'], 'String');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('meter_id')) {
|
|
81
|
+
obj['meter_id'] = _ApiClient["default"].convertToType(data['meter_id'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('price')) {
|
|
84
|
+
obj['price'] = _PricePrice["default"].constructFromObject(data['price']);
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('quantity')) {
|
|
87
|
+
obj['quantity'] = _ApiClient["default"].convertToType(data['quantity'], 'Number');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return obj;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Validates the JSON data with respect to <code>DtoSubscriptionUsageByMetersResponse</code>.
|
|
95
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
96
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoSubscriptionUsageByMetersResponse</code>.
|
|
97
|
+
*/
|
|
98
|
+
}, {
|
|
99
|
+
key: "validateJSON",
|
|
100
|
+
value: function validateJSON(data) {
|
|
101
|
+
// ensure the json data is a string
|
|
102
|
+
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
103
|
+
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
104
|
+
}
|
|
105
|
+
// ensure the json data is a string
|
|
106
|
+
if (data['display_amount'] && !(typeof data['display_amount'] === 'string' || data['display_amount'] instanceof String)) {
|
|
107
|
+
throw new Error("Expected the field `display_amount` to be a primitive type in the JSON string but got " + data['display_amount']);
|
|
108
|
+
}
|
|
109
|
+
// ensure the json data is a string
|
|
110
|
+
if (data['meter_display_name'] && !(typeof data['meter_display_name'] === 'string' || data['meter_display_name'] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `meter_display_name` to be a primitive type in the JSON string but got " + data['meter_display_name']);
|
|
112
|
+
}
|
|
113
|
+
// ensure the json data is a string
|
|
114
|
+
if (data['meter_id'] && !(typeof data['meter_id'] === 'string' || data['meter_id'] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `meter_id` to be a primitive type in the JSON string but got " + data['meter_id']);
|
|
116
|
+
}
|
|
117
|
+
// validate the optional field `price`
|
|
118
|
+
if (data['price']) {
|
|
119
|
+
// data not null
|
|
120
|
+
_PricePrice["default"].validateJSON(data['price']);
|
|
121
|
+
}
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
}]);
|
|
125
|
+
}();
|
|
126
|
+
/**
|
|
127
|
+
* @member {Number} amount
|
|
128
|
+
*/
|
|
129
|
+
DtoSubscriptionUsageByMetersResponse.prototype['amount'] = undefined;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @member {String} currency
|
|
133
|
+
*/
|
|
134
|
+
DtoSubscriptionUsageByMetersResponse.prototype['currency'] = undefined;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @member {String} display_amount
|
|
138
|
+
*/
|
|
139
|
+
DtoSubscriptionUsageByMetersResponse.prototype['display_amount'] = undefined;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @member {Object.<String, Array.<String>>} filter_values
|
|
143
|
+
*/
|
|
144
|
+
DtoSubscriptionUsageByMetersResponse.prototype['filter_values'] = undefined;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @member {String} meter_display_name
|
|
148
|
+
*/
|
|
149
|
+
DtoSubscriptionUsageByMetersResponse.prototype['meter_display_name'] = undefined;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @member {String} meter_id
|
|
153
|
+
*/
|
|
154
|
+
DtoSubscriptionUsageByMetersResponse.prototype['meter_id'] = undefined;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @member {module:model/PricePrice} price
|
|
158
|
+
*/
|
|
159
|
+
DtoSubscriptionUsageByMetersResponse.prototype['price'] = undefined;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @member {Number} quantity
|
|
163
|
+
*/
|
|
164
|
+
DtoSubscriptionUsageByMetersResponse.prototype['quantity'] = undefined;
|
|
165
|
+
var _default = exports["default"] = DtoSubscriptionUsageByMetersResponse;
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _TypesEntityType = _interopRequireDefault(require("./TypesEntityType"));
|
|
9
|
+
var _TypesFileType = _interopRequireDefault(require("./TypesFileType"));
|
|
10
|
+
var _TypesTaskStatus = _interopRequireDefault(require("./TypesTaskStatus"));
|
|
11
|
+
var _TypesTaskType = _interopRequireDefault(require("./TypesTaskType"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* FlexPrice API
|
|
20
|
+
* FlexPrice API Service
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.0
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The DtoTaskResponse model module.
|
|
32
|
+
* @module model/DtoTaskResponse
|
|
33
|
+
* @version 1.0
|
|
34
|
+
*/
|
|
35
|
+
var DtoTaskResponse = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>DtoTaskResponse</code>.
|
|
38
|
+
* @alias module:model/DtoTaskResponse
|
|
39
|
+
*/
|
|
40
|
+
function DtoTaskResponse() {
|
|
41
|
+
_classCallCheck(this, DtoTaskResponse);
|
|
42
|
+
DtoTaskResponse.initialize(this);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(DtoTaskResponse, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj) {}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>DtoTaskResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:model/DtoTaskResponse} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/DtoTaskResponse} The populated <code>DtoTaskResponse</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
}, {
|
|
62
|
+
key: "constructFromObject",
|
|
63
|
+
value: function constructFromObject(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new DtoTaskResponse();
|
|
66
|
+
if (data.hasOwnProperty('completed_at')) {
|
|
67
|
+
obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('created_at')) {
|
|
70
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('created_by')) {
|
|
73
|
+
obj['created_by'] = _ApiClient["default"].convertToType(data['created_by'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('entity_type')) {
|
|
76
|
+
obj['entity_type'] = _TypesEntityType["default"].constructFromObject(data['entity_type']);
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('error_summary')) {
|
|
79
|
+
obj['error_summary'] = _ApiClient["default"].convertToType(data['error_summary'], 'String');
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('failed_at')) {
|
|
82
|
+
obj['failed_at'] = _ApiClient["default"].convertToType(data['failed_at'], 'String');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('failed_records')) {
|
|
85
|
+
obj['failed_records'] = _ApiClient["default"].convertToType(data['failed_records'], 'Number');
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('file_name')) {
|
|
88
|
+
obj['file_name'] = _ApiClient["default"].convertToType(data['file_name'], 'String');
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('file_type')) {
|
|
91
|
+
obj['file_type'] = _TypesFileType["default"].constructFromObject(data['file_type']);
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('file_url')) {
|
|
94
|
+
obj['file_url'] = _ApiClient["default"].convertToType(data['file_url'], 'String');
|
|
95
|
+
}
|
|
96
|
+
if (data.hasOwnProperty('id')) {
|
|
97
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('metadata')) {
|
|
100
|
+
obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], {
|
|
101
|
+
'String': Object
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (data.hasOwnProperty('processed_records')) {
|
|
105
|
+
obj['processed_records'] = _ApiClient["default"].convertToType(data['processed_records'], 'Number');
|
|
106
|
+
}
|
|
107
|
+
if (data.hasOwnProperty('started_at')) {
|
|
108
|
+
obj['started_at'] = _ApiClient["default"].convertToType(data['started_at'], 'String');
|
|
109
|
+
}
|
|
110
|
+
if (data.hasOwnProperty('status')) {
|
|
111
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
112
|
+
}
|
|
113
|
+
if (data.hasOwnProperty('successful_records')) {
|
|
114
|
+
obj['successful_records'] = _ApiClient["default"].convertToType(data['successful_records'], 'Number');
|
|
115
|
+
}
|
|
116
|
+
if (data.hasOwnProperty('task_status')) {
|
|
117
|
+
obj['task_status'] = _TypesTaskStatus["default"].constructFromObject(data['task_status']);
|
|
118
|
+
}
|
|
119
|
+
if (data.hasOwnProperty('task_type')) {
|
|
120
|
+
obj['task_type'] = _TypesTaskType["default"].constructFromObject(data['task_type']);
|
|
121
|
+
}
|
|
122
|
+
if (data.hasOwnProperty('tenant_id')) {
|
|
123
|
+
obj['tenant_id'] = _ApiClient["default"].convertToType(data['tenant_id'], 'String');
|
|
124
|
+
}
|
|
125
|
+
if (data.hasOwnProperty('total_records')) {
|
|
126
|
+
obj['total_records'] = _ApiClient["default"].convertToType(data['total_records'], 'Number');
|
|
127
|
+
}
|
|
128
|
+
if (data.hasOwnProperty('updated_at')) {
|
|
129
|
+
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'String');
|
|
130
|
+
}
|
|
131
|
+
if (data.hasOwnProperty('updated_by')) {
|
|
132
|
+
obj['updated_by'] = _ApiClient["default"].convertToType(data['updated_by'], 'String');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return obj;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Validates the JSON data with respect to <code>DtoTaskResponse</code>.
|
|
140
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
141
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoTaskResponse</code>.
|
|
142
|
+
*/
|
|
143
|
+
}, {
|
|
144
|
+
key: "validateJSON",
|
|
145
|
+
value: function validateJSON(data) {
|
|
146
|
+
// ensure the json data is a string
|
|
147
|
+
if (data['completed_at'] && !(typeof data['completed_at'] === 'string' || data['completed_at'] instanceof String)) {
|
|
148
|
+
throw new Error("Expected the field `completed_at` to be a primitive type in the JSON string but got " + data['completed_at']);
|
|
149
|
+
}
|
|
150
|
+
// ensure the json data is a string
|
|
151
|
+
if (data['created_at'] && !(typeof data['created_at'] === 'string' || data['created_at'] instanceof String)) {
|
|
152
|
+
throw new Error("Expected the field `created_at` to be a primitive type in the JSON string but got " + data['created_at']);
|
|
153
|
+
}
|
|
154
|
+
// ensure the json data is a string
|
|
155
|
+
if (data['created_by'] && !(typeof data['created_by'] === 'string' || data['created_by'] instanceof String)) {
|
|
156
|
+
throw new Error("Expected the field `created_by` to be a primitive type in the JSON string but got " + data['created_by']);
|
|
157
|
+
}
|
|
158
|
+
// ensure the json data is a string
|
|
159
|
+
if (data['error_summary'] && !(typeof data['error_summary'] === 'string' || data['error_summary'] instanceof String)) {
|
|
160
|
+
throw new Error("Expected the field `error_summary` to be a primitive type in the JSON string but got " + data['error_summary']);
|
|
161
|
+
}
|
|
162
|
+
// ensure the json data is a string
|
|
163
|
+
if (data['failed_at'] && !(typeof data['failed_at'] === 'string' || data['failed_at'] instanceof String)) {
|
|
164
|
+
throw new Error("Expected the field `failed_at` to be a primitive type in the JSON string but got " + data['failed_at']);
|
|
165
|
+
}
|
|
166
|
+
// ensure the json data is a string
|
|
167
|
+
if (data['file_name'] && !(typeof data['file_name'] === 'string' || data['file_name'] instanceof String)) {
|
|
168
|
+
throw new Error("Expected the field `file_name` to be a primitive type in the JSON string but got " + data['file_name']);
|
|
169
|
+
}
|
|
170
|
+
// ensure the json data is a string
|
|
171
|
+
if (data['file_url'] && !(typeof data['file_url'] === 'string' || data['file_url'] instanceof String)) {
|
|
172
|
+
throw new Error("Expected the field `file_url` to be a primitive type in the JSON string but got " + data['file_url']);
|
|
173
|
+
}
|
|
174
|
+
// ensure the json data is a string
|
|
175
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
176
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
177
|
+
}
|
|
178
|
+
// ensure the json data is a string
|
|
179
|
+
if (data['started_at'] && !(typeof data['started_at'] === 'string' || data['started_at'] instanceof String)) {
|
|
180
|
+
throw new Error("Expected the field `started_at` to be a primitive type in the JSON string but got " + data['started_at']);
|
|
181
|
+
}
|
|
182
|
+
// ensure the json data is a string
|
|
183
|
+
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
184
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
185
|
+
}
|
|
186
|
+
// ensure the json data is a string
|
|
187
|
+
if (data['tenant_id'] && !(typeof data['tenant_id'] === 'string' || data['tenant_id'] instanceof String)) {
|
|
188
|
+
throw new Error("Expected the field `tenant_id` to be a primitive type in the JSON string but got " + data['tenant_id']);
|
|
189
|
+
}
|
|
190
|
+
// ensure the json data is a string
|
|
191
|
+
if (data['updated_at'] && !(typeof data['updated_at'] === 'string' || data['updated_at'] instanceof String)) {
|
|
192
|
+
throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + data['updated_at']);
|
|
193
|
+
}
|
|
194
|
+
// ensure the json data is a string
|
|
195
|
+
if (data['updated_by'] && !(typeof data['updated_by'] === 'string' || data['updated_by'] instanceof String)) {
|
|
196
|
+
throw new Error("Expected the field `updated_by` to be a primitive type in the JSON string but got " + data['updated_by']);
|
|
197
|
+
}
|
|
198
|
+
return true;
|
|
199
|
+
}
|
|
200
|
+
}]);
|
|
201
|
+
}();
|
|
202
|
+
/**
|
|
203
|
+
* @member {String} completed_at
|
|
204
|
+
*/
|
|
205
|
+
DtoTaskResponse.prototype['completed_at'] = undefined;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @member {String} created_at
|
|
209
|
+
*/
|
|
210
|
+
DtoTaskResponse.prototype['created_at'] = undefined;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @member {String} created_by
|
|
214
|
+
*/
|
|
215
|
+
DtoTaskResponse.prototype['created_by'] = undefined;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @member {module:model/TypesEntityType} entity_type
|
|
219
|
+
*/
|
|
220
|
+
DtoTaskResponse.prototype['entity_type'] = undefined;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @member {String} error_summary
|
|
224
|
+
*/
|
|
225
|
+
DtoTaskResponse.prototype['error_summary'] = undefined;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @member {String} failed_at
|
|
229
|
+
*/
|
|
230
|
+
DtoTaskResponse.prototype['failed_at'] = undefined;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @member {Number} failed_records
|
|
234
|
+
*/
|
|
235
|
+
DtoTaskResponse.prototype['failed_records'] = undefined;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @member {String} file_name
|
|
239
|
+
*/
|
|
240
|
+
DtoTaskResponse.prototype['file_name'] = undefined;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @member {module:model/TypesFileType} file_type
|
|
244
|
+
*/
|
|
245
|
+
DtoTaskResponse.prototype['file_type'] = undefined;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @member {String} file_url
|
|
249
|
+
*/
|
|
250
|
+
DtoTaskResponse.prototype['file_url'] = undefined;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @member {String} id
|
|
254
|
+
*/
|
|
255
|
+
DtoTaskResponse.prototype['id'] = undefined;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @member {Object.<String, Object>} metadata
|
|
259
|
+
*/
|
|
260
|
+
DtoTaskResponse.prototype['metadata'] = undefined;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @member {Number} processed_records
|
|
264
|
+
*/
|
|
265
|
+
DtoTaskResponse.prototype['processed_records'] = undefined;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @member {String} started_at
|
|
269
|
+
*/
|
|
270
|
+
DtoTaskResponse.prototype['started_at'] = undefined;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @member {String} status
|
|
274
|
+
*/
|
|
275
|
+
DtoTaskResponse.prototype['status'] = undefined;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @member {Number} successful_records
|
|
279
|
+
*/
|
|
280
|
+
DtoTaskResponse.prototype['successful_records'] = undefined;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @member {module:model/TypesTaskStatus} task_status
|
|
284
|
+
*/
|
|
285
|
+
DtoTaskResponse.prototype['task_status'] = undefined;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @member {module:model/TypesTaskType} task_type
|
|
289
|
+
*/
|
|
290
|
+
DtoTaskResponse.prototype['task_type'] = undefined;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @member {String} tenant_id
|
|
294
|
+
*/
|
|
295
|
+
DtoTaskResponse.prototype['tenant_id'] = undefined;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @member {Number} total_records
|
|
299
|
+
*/
|
|
300
|
+
DtoTaskResponse.prototype['total_records'] = undefined;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @member {String} updated_at
|
|
304
|
+
*/
|
|
305
|
+
DtoTaskResponse.prototype['updated_at'] = undefined;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @member {String} updated_by
|
|
309
|
+
*/
|
|
310
|
+
DtoTaskResponse.prototype['updated_by'] = undefined;
|
|
311
|
+
var _default = exports["default"] = DtoTaskResponse;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _DtoAddress = _interopRequireDefault(require("./DtoAddress"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
13
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
|
+
* FlexPrice API
|
|
17
|
+
* FlexPrice API Service
|
|
18
|
+
*
|
|
19
|
+
* The version of the OpenAPI document: 1.0
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The DtoTenantBillingDetails model module.
|
|
29
|
+
* @module model/DtoTenantBillingDetails
|
|
30
|
+
* @version 1.0
|
|
31
|
+
*/
|
|
32
|
+
var DtoTenantBillingDetails = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>DtoTenantBillingDetails</code>.
|
|
35
|
+
* @alias module:model/DtoTenantBillingDetails
|
|
36
|
+
*/
|
|
37
|
+
function DtoTenantBillingDetails() {
|
|
38
|
+
_classCallCheck(this, DtoTenantBillingDetails);
|
|
39
|
+
DtoTenantBillingDetails.initialize(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
return _createClass(DtoTenantBillingDetails, null, [{
|
|
48
|
+
key: "initialize",
|
|
49
|
+
value: function initialize(obj) {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>DtoTenantBillingDetails</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:model/DtoTenantBillingDetails} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/DtoTenantBillingDetails} The populated <code>DtoTenantBillingDetails</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new DtoTenantBillingDetails();
|
|
63
|
+
if (data.hasOwnProperty('address')) {
|
|
64
|
+
obj['address'] = _DtoAddress["default"].constructFromObject(data['address']);
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('email')) {
|
|
67
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('help_email')) {
|
|
70
|
+
obj['help_email'] = _ApiClient["default"].convertToType(data['help_email'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('phone')) {
|
|
73
|
+
obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String');
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return obj;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Validates the JSON data with respect to <code>DtoTenantBillingDetails</code>.
|
|
81
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
82
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoTenantBillingDetails</code>.
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "validateJSON",
|
|
86
|
+
value: function validateJSON(data) {
|
|
87
|
+
// validate the optional field `address`
|
|
88
|
+
if (data['address']) {
|
|
89
|
+
// data not null
|
|
90
|
+
_DtoAddress["default"].validateJSON(data['address']);
|
|
91
|
+
}
|
|
92
|
+
// ensure the json data is a string
|
|
93
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
95
|
+
}
|
|
96
|
+
// ensure the json data is a string
|
|
97
|
+
if (data['help_email'] && !(typeof data['help_email'] === 'string' || data['help_email'] instanceof String)) {
|
|
98
|
+
throw new Error("Expected the field `help_email` to be a primitive type in the JSON string but got " + data['help_email']);
|
|
99
|
+
}
|
|
100
|
+
// ensure the json data is a string
|
|
101
|
+
if (data['phone'] && !(typeof data['phone'] === 'string' || data['phone'] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `phone` to be a primitive type in the JSON string but got " + data['phone']);
|
|
103
|
+
}
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
}]);
|
|
107
|
+
}();
|
|
108
|
+
/**
|
|
109
|
+
* @member {module:model/DtoAddress} address
|
|
110
|
+
*/
|
|
111
|
+
DtoTenantBillingDetails.prototype['address'] = undefined;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @member {String} email
|
|
115
|
+
*/
|
|
116
|
+
DtoTenantBillingDetails.prototype['email'] = undefined;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @member {String} help_email
|
|
120
|
+
*/
|
|
121
|
+
DtoTenantBillingDetails.prototype['help_email'] = undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @member {String} phone
|
|
125
|
+
*/
|
|
126
|
+
DtoTenantBillingDetails.prototype['phone'] = undefined;
|
|
127
|
+
var _default = exports["default"] = DtoTenantBillingDetails;
|