# All files / codegen/models UpdatePricePlanInPlaceArgs.ts

74.21% Statements 95/128
100% Branches 0/0
0% Functions 0/3
74.21% Lines 95/128

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    1301x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x

    1x
    1x

    1x
    1x

     /* 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.
     */

    import { exists, mapValues } from '../runtime';
    import {
        AddOnInputArgs,
        AddOnInputArgsFromJSON,
        AddOnInputArgsFromJSONTyped,
        AddOnInputArgsToJSON,
    } from './AddOnInputArgs';
    import {
        FeatureInputArgs,
        FeatureInputArgsFromJSON,
        FeatureInputArgsFromJSONTyped,
        FeatureInputArgsToJSON,
    } from './FeatureInputArgs';
    import {
        LimitInputArgs,
        LimitInputArgsFromJSON,
        LimitInputArgsFromJSONTyped,
        LimitInputArgsToJSON,
    } from './LimitInputArgs';
    import {
        MeteredComponentInputArgs,
        MeteredComponentInputArgsFromJSON,
        MeteredComponentInputArgsFromJSONTyped,
        MeteredComponentInputArgsToJSON,
    } from './MeteredComponentInputArgs';

    /**
     *
     * @export
     * @interface UpdatePricePlanInPlaceArgs
     */
    export interface UpdatePricePlanInPlaceArgs {
        /**
         *
         * @type {Array<FeatureInputArgs>}
         * @memberof UpdatePricePlanInPlaceArgs
         */
        features?: Array<FeatureInputArgs>;
        /**
         *
         * @type {Array<LimitInputArgs>}
         * @memberof UpdatePricePlanInPlaceArgs
         */
        limits?: Array<LimitInputArgs>;
        /**
         * Custom invoice description for the base price line item.
         * @type {string}
         * @memberof UpdatePricePlanInPlaceArgs
         */
        basePriceDescription?: string | null;
        /**
         *
         * @type {string}
         * @memberof UpdatePricePlanInPlaceArgs
         */
        description?: string;
        /**
         *
         * @type {Array<AddOnInputArgs>}
         * @memberof UpdatePricePlanInPlaceArgs
         */
        addOns?: Array<AddOnInputArgs>;
        /**
         *
         * @type {Array<MeteredComponentInputArgs>}
         * @memberof UpdatePricePlanInPlaceArgs
         */
        meteredComponents?: Array<MeteredComponentInputArgs>;
        /**
         *
         * @type {string}
         * @memberof UpdatePricePlanInPlaceArgs
         */
        displayName?: string;
    }

    export function UpdatePricePlanInPlaceArgsFromJSON(json: any): UpdatePricePlanInPlaceArgs {
        return UpdatePricePlanInPlaceArgsFromJSONTyped(json, false);
    }

    export function UpdatePricePlanInPlaceArgsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePricePlanInPlaceArgs {
        if ((json === undefined) || (json === null)) {
            return json;
        }
        return {

            'features': !exists(json, 'features') ? undefined : ((json['features'] as Array<any>).map(FeatureInputArgsFromJSON)),
            'limits': !exists(json, 'limits') ? undefined : ((json['limits'] as Array<any>).map(LimitInputArgsFromJSON)),
            'basePriceDescription': !exists(json, 'base_price_description') ? undefined : json['base_price_description'],
            'description': !exists(json, 'description') ? undefined : json['description'],
            'addOns': !exists(json, 'add_ons') ? undefined : ((json['add_ons'] as Array<any>).map(AddOnInputArgsFromJSON)),
            'meteredComponents': !exists(json, 'metered_components') ? undefined : ((json['metered_components'] as Array<any>).map(MeteredComponentInputArgsFromJSON)),
            'displayName': !exists(json, 'display_name') ? undefined : json['display_name'],
        };
    }

    export function UpdatePricePlanInPlaceArgsToJSON(value?: UpdatePricePlanInPlaceArgs | null): any {
        if (value === undefined) {
            return undefined;
        }
        if (value === null) {
            return null;
        }
        return {

            'features': value.features === undefined ? undefined : ((value.features as Array<any>).map(FeatureInputArgsToJSON)),
            'limits': value.limits === undefined ? undefined : ((value.limits as Array<any>).map(LimitInputArgsToJSON)),
            'base_price_description': value.basePriceDescription,
            'description': value.description,
            'add_ons': value.addOns === undefined ? undefined : ((value.addOns as Array<any>).map(AddOnInputArgsToJSON)),
            'metered_components': value.meteredComponents === undefined ? undefined : ((value.meteredComponents as Array<any>).map(MeteredComponentInputArgsToJSON)),
            'display_name': value.displayName,
        };
    }