/**
 * Prime Developer Trial
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 *
 */

import ApiClient from '../ApiClient';
import InlineResponse20054DataOccurrenceFrequency from './InlineResponse20054DataOccurrenceFrequency';

/**
 * The InlineResponse20054DataOccurrence model module.
 * @module model/InlineResponse20054DataOccurrence
 * @version 0.9.2
 */
class InlineResponse20054DataOccurrence {
    /**
     * Constructs a new <code>InlineResponse20054DataOccurrence</code>.
     * Occurrence and frequency of the coupon payments.
     * @alias module:model/InlineResponse20054DataOccurrence
     */
    constructor() { 
        
        InlineResponse20054DataOccurrence.initialize(this);
    }

    /**
     * Initializes the fields of this object.
     * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
     * Only for internal use.
     */
    static initialize(obj) { 
    }

    /**
     * Constructs a <code>InlineResponse20054DataOccurrence</code> from a plain JavaScript object, optionally creating a new instance.
     * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
     * @param {Object} data The plain JavaScript object bearing properties of interest.
     * @param {module:model/InlineResponse20054DataOccurrence} obj Optional instance to populate.
     * @return {module:model/InlineResponse20054DataOccurrence} The populated <code>InlineResponse20054DataOccurrence</code> instance.
     */
    static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new InlineResponse20054DataOccurrence();

            if (data.hasOwnProperty('type')) {
                obj['type'] = ApiClient.convertToType(data['type'], 'String');
            }
            if (data.hasOwnProperty('frequency')) {
                obj['frequency'] = InlineResponse20054DataOccurrenceFrequency.constructFromObject(data['frequency']);
            }
        }
        return obj;
    }


}

/**
 * Occurrence type of the coupon payments.
 * @member {module:model/InlineResponse20054DataOccurrence.TypeEnum} type
 */
InlineResponse20054DataOccurrence.prototype['type'] = undefined;

/**
 * @member {module:model/InlineResponse20054DataOccurrenceFrequency} frequency
 */
InlineResponse20054DataOccurrence.prototype['frequency'] = undefined;





/**
 * Allowed values for the <code>type</code> property.
 * @enum {String}
 * @readonly
 */
InlineResponse20054DataOccurrence['TypeEnum'] = {

    /**
     * value: "never"
     * @const
     */
    "never": "never",

    /**
     * value: "once"
     * @const
     */
    "once": "once",

    /**
     * value: "repeated"
     * @const
     */
    "repeated": "repeated"
};



export default InlineResponse20054DataOccurrence;

