UNPKG

wallee

Version:
43 lines (42 loc) 2.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionUpdateRequest = instanceOfSubscriptionUpdateRequest; exports.SubscriptionUpdateRequestFromJSON = SubscriptionUpdateRequestFromJSON; exports.SubscriptionUpdateRequestFromJSONTyped = SubscriptionUpdateRequestFromJSONTyped; exports.SubscriptionUpdateRequestToJSON = SubscriptionUpdateRequestToJSON; exports.SubscriptionUpdateRequestToJSONTyped = SubscriptionUpdateRequestToJSONTyped; const SubscriptionComponentReferenceConfiguration_1 = require("./SubscriptionComponentReferenceConfiguration"); /** * Check if a given object implements the SubscriptionUpdateRequest interface. */ function instanceOfSubscriptionUpdateRequest(value) { return true; } function SubscriptionUpdateRequestFromJSON(json) { return SubscriptionUpdateRequestFromJSONTyped(json, false); } function SubscriptionUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'componentConfigurations': json['componentConfigurations'] == null ? undefined : (new Set(json['componentConfigurations'].map(SubscriptionComponentReferenceConfiguration_1.SubscriptionComponentReferenceConfigurationFromJSON))), 'product': json['product'] == null ? undefined : json['product'], 'currency': json['currency'] == null ? undefined : json['currency'], 'respectTerminationPeriod': json['respectTerminationPeriod'] == null ? undefined : json['respectTerminationPeriod'], }; } function SubscriptionUpdateRequestToJSON(json) { return SubscriptionUpdateRequestToJSONTyped(json, false); } function SubscriptionUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'componentConfigurations': value['componentConfigurations'] == null ? undefined : (Array.from(value['componentConfigurations']).map(SubscriptionComponentReferenceConfiguration_1.SubscriptionComponentReferenceConfigurationToJSON)), 'product': value['product'], 'currency': value['currency'], 'respectTerminationPeriod': value['respectTerminationPeriod'], }; }