/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* 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 PasswordReset model module.
* @module models/PasswordReset
* @version 20.4
*/
export default class PasswordReset {
/**
* Constructs a new <code>PasswordReset</code>.
* Document representing a password reset request.
* @alias module:models/PasswordReset
* @class
*/
constructor() {
}
/**
* Constructs a <code>PasswordReset</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/PasswordReset} obj Optional instance to populate.
* @return {module:models/PasswordReset} The populated <code>PasswordReset</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new PasswordReset()
if (data.hasOwnProperty('identification')) {
obj.identification = ApiClient.convertToType(data.identification, 'String')
}
if (data.hasOwnProperty('type')) {
obj.type = ApiClient.convertToType(data.type, 'String')
}
}
return obj
}
/**
* The customer's login or the customer's email depending on the type value.
* @member {String} identification
*/
identification = undefined;
/**
* The type of customer identification.
* @member {module:models/PasswordReset.TypeEnum} type
*/
type = undefined;
/**
* Allowed values for the <code>type</code> property.
* @enum {String}
* @readonly
*/
static TypeEnum = {
/**
* value: "email"
* @const
*/
email: 'email',
/**
* value: "login"
* @const
*/
login: 'login'
};
}