"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.DescribeRenewalPriceResponseBody = exports.DescribeRenewalPriceResponseBodyPriceInfo = exports.DescribeRenewalPriceResponseBodyPriceInfoRules = exports.DescribeRenewalPriceResponseBodyPriceInfoRulesRule = exports.DescribeRenewalPriceResponseBodyPriceInfoPrice = exports.DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos = exports.DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfo = exports.DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRules = exports.DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRulesRule = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRulesRule extends $dara.Model {
    static names() {
        return {
            description: 'Description',
            ruleId: 'RuleId',
        };
    }
    static types() {
        return {
            description: 'string',
            ruleId: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRulesRule = DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRulesRule;
class DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRules extends $dara.Model {
    static names() {
        return {
            rule: 'Rule',
        };
    }
    static types() {
        return {
            rule: { 'type': 'array', 'itemType': DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRulesRule },
        };
    }
    validate() {
        if (Array.isArray(this.rule)) {
            $dara.Model.validateArray(this.rule);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRules = DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRules;
class DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfo extends $dara.Model {
    static names() {
        return {
            discountPrice: 'DiscountPrice',
            originalPrice: 'OriginalPrice',
            resource: 'Resource',
            subRules: 'SubRules',
            tradePrice: 'TradePrice',
        };
    }
    static types() {
        return {
            discountPrice: 'number',
            originalPrice: 'number',
            resource: 'string',
            subRules: DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfoSubRules,
            tradePrice: 'number',
        };
    }
    validate() {
        if (this.subRules && typeof this.subRules.validate === 'function') {
            this.subRules.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfo = DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfo;
class DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos extends $dara.Model {
    static names() {
        return {
            detailInfo: 'DetailInfo',
        };
    }
    static types() {
        return {
            detailInfo: { 'type': 'array', 'itemType': DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosDetailInfo },
        };
    }
    validate() {
        if (Array.isArray(this.detailInfo)) {
            $dara.Model.validateArray(this.detailInfo);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos = DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos;
class DescribeRenewalPriceResponseBodyPriceInfoPrice extends $dara.Model {
    static names() {
        return {
            currency: 'Currency',
            detailInfos: 'DetailInfos',
            discountPrice: 'DiscountPrice',
            originalPrice: 'OriginalPrice',
            tradePrice: 'TradePrice',
        };
    }
    static types() {
        return {
            currency: 'string',
            detailInfos: DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos,
            discountPrice: 'number',
            originalPrice: 'number',
            tradePrice: 'number',
        };
    }
    validate() {
        if (this.detailInfos && typeof this.detailInfos.validate === 'function') {
            this.detailInfos.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRenewalPriceResponseBodyPriceInfoPrice = DescribeRenewalPriceResponseBodyPriceInfoPrice;
class DescribeRenewalPriceResponseBodyPriceInfoRulesRule extends $dara.Model {
    static names() {
        return {
            description: 'Description',
            ruleId: 'RuleId',
        };
    }
    static types() {
        return {
            description: 'string',
            ruleId: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRenewalPriceResponseBodyPriceInfoRulesRule = DescribeRenewalPriceResponseBodyPriceInfoRulesRule;
class DescribeRenewalPriceResponseBodyPriceInfoRules extends $dara.Model {
    static names() {
        return {
            rule: 'Rule',
        };
    }
    static types() {
        return {
            rule: { 'type': 'array', 'itemType': DescribeRenewalPriceResponseBodyPriceInfoRulesRule },
        };
    }
    validate() {
        if (Array.isArray(this.rule)) {
            $dara.Model.validateArray(this.rule);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRenewalPriceResponseBodyPriceInfoRules = DescribeRenewalPriceResponseBodyPriceInfoRules;
class DescribeRenewalPriceResponseBodyPriceInfo extends $dara.Model {
    static names() {
        return {
            price: 'Price',
            rules: 'Rules',
        };
    }
    static types() {
        return {
            price: DescribeRenewalPriceResponseBodyPriceInfoPrice,
            rules: DescribeRenewalPriceResponseBodyPriceInfoRules,
        };
    }
    validate() {
        if (this.price && typeof this.price.validate === 'function') {
            this.price.validate();
        }
        if (this.rules && typeof this.rules.validate === 'function') {
            this.rules.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRenewalPriceResponseBodyPriceInfo = DescribeRenewalPriceResponseBodyPriceInfo;
class DescribeRenewalPriceResponseBody extends $dara.Model {
    static names() {
        return {
            priceInfo: 'PriceInfo',
            requestId: 'RequestId',
        };
    }
    static types() {
        return {
            priceInfo: DescribeRenewalPriceResponseBodyPriceInfo,
            requestId: 'string',
        };
    }
    validate() {
        if (this.priceInfo && typeof this.priceInfo.validate === 'function') {
            this.priceInfo.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRenewalPriceResponseBody = DescribeRenewalPriceResponseBody;
//# sourceMappingURL=DescribeRenewalPriceResponseBody.js.map