/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* 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 ResetPasswordTokenResult model module.
* @module models/ResetPasswordTokenResult
* @version 20.4
*/
export default class ResetPasswordTokenResult {
/**
* Constructs a new <code>ResetPasswordTokenResult</code>.
* @alias module:models/ResetPasswordTokenResult
* @class
*/
constructor() {
}
/**
* Constructs a <code>ResetPasswordTokenResult</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/ResetPasswordTokenResult} obj Optional instance to populate.
* @return {module:models/ResetPasswordTokenResult} The populated <code>ResetPasswordTokenResult</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ResetPasswordTokenResult()
if (data.hasOwnProperty('email')) {
obj.email = ApiClient.convertToType(data.email, 'String')
}
if (data.hasOwnProperty('expires_in_minutes')) {
obj.expires_in_minutes = ApiClient.convertToType(data.expires_in_minutes, 'Number')
}
if (data.hasOwnProperty('login')) {
obj.login = ApiClient.convertToType(data.login, 'String')
}
if (data.hasOwnProperty('reset_token')) {
obj.reset_token = ApiClient.convertToType(data.reset_token, 'String')
}
}
return obj
}
/**
* The email address of the customer.
* @member {String} email
*/
email = undefined;
/**
* The password reset token expire time in minutes.
* @member {Number} expires_in_minutes
*/
expires_in_minutes = undefined;
/**
* The login id of the customer.
* @member {String} login
*/
login = undefined;
/**
* The password reset token for the customer.
* @member {String} reset_token
*/
reset_token = undefined;
}