"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Octane API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.DiscountInputArgsToJSON = exports.DiscountInputArgsFromJSONTyped = exports.DiscountInputArgsFromJSON = exports.DiscountInputArgsScopeEnum = exports.DiscountInputArgsDiscountTypeEnum = void 0;
const runtime_1 = require("../runtime");
/**
* @export
* @enum {string}
*/
var DiscountInputArgsDiscountTypeEnum;
(function (DiscountInputArgsDiscountTypeEnum) {
    DiscountInputArgsDiscountTypeEnum["Flat"] = "FLAT";
    DiscountInputArgsDiscountTypeEnum["Percent"] = "PERCENT";
})(DiscountInputArgsDiscountTypeEnum = exports.DiscountInputArgsDiscountTypeEnum || (exports.DiscountInputArgsDiscountTypeEnum = {})); /**
* @export
* @enum {string}
*/
var DiscountInputArgsScopeEnum;
(function (DiscountInputArgsScopeEnum) {
    DiscountInputArgsScopeEnum["InvoiceTotal"] = "INVOICE_TOTAL";
    DiscountInputArgsScopeEnum["AddOn"] = "ADD_ON";
    DiscountInputArgsScopeEnum["MeteredComponent"] = "METERED_COMPONENT";
})(DiscountInputArgsScopeEnum = exports.DiscountInputArgsScopeEnum || (exports.DiscountInputArgsScopeEnum = {}));
function DiscountInputArgsFromJSON(json) {
    return DiscountInputArgsFromJSONTyped(json, false);
}
exports.DiscountInputArgsFromJSON = DiscountInputArgsFromJSON;
function DiscountInputArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
        'discountType': !(0, runtime_1.exists)(json, 'discount_type') ? undefined : json['discount_type'],
        'labels': !(0, runtime_1.exists)(json, 'labels') ? undefined : json['labels'],
        'billingCycleStartOffset': !(0, runtime_1.exists)(json, 'billing_cycle_start_offset') ? undefined : json['billing_cycle_start_offset'],
        'scope': !(0, runtime_1.exists)(json, 'scope') ? undefined : json['scope'],
        'addOnName': !(0, runtime_1.exists)(json, 'add_on_name') ? undefined : json['add_on_name'],
        'billingCycleDuration': !(0, runtime_1.exists)(json, 'billing_cycle_duration') ? undefined : json['billing_cycle_duration'],
        'meteredComponentUuid': !(0, runtime_1.exists)(json, 'metered_component_uuid') ? undefined : json['metered_component_uuid'],
    };
}
exports.DiscountInputArgsFromJSONTyped = DiscountInputArgsFromJSONTyped;
function DiscountInputArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'amount': value.amount,
        'discount_type': value.discountType,
        'labels': value.labels,
        'billing_cycle_start_offset': value.billingCycleStartOffset,
        'scope': value.scope,
        'add_on_name': value.addOnName,
        'billing_cycle_duration': value.billingCycleDuration,
        'metered_component_uuid': value.meteredComponentUuid,
    };
}
exports.DiscountInputArgsToJSON = DiscountInputArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGlzY291bnRJbnB1dEFyZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvRGlzY291bnRJbnB1dEFyZ3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRzs7O0FBRUgsd0NBQStDO0FBeUQvQzs7O0VBR0U7QUFDRixJQUFZLGlDQUdYO0FBSEQsV0FBWSxpQ0FBaUM7SUFDekMsa0RBQWEsQ0FBQTtJQUNiLHdEQUFtQixDQUFBO0FBQ3ZCLENBQUMsRUFIVyxpQ0FBaUMsR0FBakMseUNBQWlDLEtBQWpDLHlDQUFpQyxRQUc1QyxDQUFBOzs7RUFHQ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