Source: models/TrustedSystemAuthRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/**
 * Shop API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 20.4
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 *
 */


import ApiClient from '../ApiClient'





/**
* The TrustedSystemAuthRequest model module.
* @module models/TrustedSystemAuthRequest
* @version 20.4
*/
export default class TrustedSystemAuthRequest {
    /**
    * Constructs a new <code>TrustedSystemAuthRequest</code>.
    * @alias module:models/TrustedSystemAuthRequest
    * @class
    * @param clientId {String} The client id of the shopping application to be encoded in the customer JWT.  This is not the same as the OAuth Client ID used to authenticate the API call.  The OAuth Client ID is the trusted/private one; this is the untrusted/public one.
    * @param login {String} The customer's login.
    */

    constructor(clientId, login) {





        this.client_id = clientId; this.login = login


    }

    /**
    * Constructs a <code>TrustedSystemAuthRequest</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:models/TrustedSystemAuthRequest} obj Optional instance to populate.
    * @return {module:models/TrustedSystemAuthRequest} The populated <code>TrustedSystemAuthRequest</code> instance.
    */
    static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new TrustedSystemAuthRequest()





            if (data.hasOwnProperty('client_id')) {
                obj.client_id = ApiClient.convertToType(data.client_id, 'String')
            }
            if (data.hasOwnProperty('login')) {
                obj.login = ApiClient.convertToType(data.login, 'String')
            }
        }
        return obj
    }

    /**
    * The client id of the shopping application to be encoded in the customer JWT.  This is not the same as the OAuth Client ID used to authenticate the API call.  The OAuth Client ID is the trusted/private one; this is the untrusted/public one.
    * @member {String} client_id
    */
    client_id = undefined;
    /**
    * The customer's login.
    * @member {String} login
    */
    login = undefined;








}