@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
67 lines (56 loc) • 2.02 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Ringer Business API
* This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites, phone numbers, payments, users, and other business resources. Operations typically require authentication and appropriate permissions.
*
* The version of the OpenAPI document: 1.0.6
* Contact: support@ringer.tel
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Request payload to initiate a password reset.
* @export
* @interface ForgotPasswordRequest
*/
export interface ForgotPasswordRequest {
/**
* The email address of the account for which the password reset is requested.
* @type {string}
* @memberof ForgotPasswordRequest
*/
email: string;
}
/**
* Check if a given object implements the ForgotPasswordRequest interface.
*/
export function instanceOfForgotPasswordRequest(value: object): value is ForgotPasswordRequest {
if (!('email' in value) || value['email'] === undefined) return false;
return true;
}
export function ForgotPasswordRequestFromJSON(json: any): ForgotPasswordRequest {
return ForgotPasswordRequestFromJSONTyped(json, false);
}
export function ForgotPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordRequest {
if (json == null) {
return json;
}
return {
'email': json['email'],
};
}
export function ForgotPasswordRequestToJSON(json: any): ForgotPasswordRequest {
return ForgotPasswordRequestToJSONTyped(json, false);
}
export function ForgotPasswordRequestToJSONTyped(value?: ForgotPasswordRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'email': value['email'],
};
}