/* tslint:disable */
/* eslint-disable */
/**
 * Paystack
 * The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa.
 *
 * The version of the Paystack Node library: 1.0.0
 * Contact: techsupport@paystack.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { exists, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface ChargeSubmitOTP
 */
export interface ChargeSubmitOTP {
    /**
     * Customer's OTP
     * @type {string}
     * @memberof ChargeSubmitOTP
     */
    otp: string;
    /**
     * The reference of the ongoing transaction
     * @type {string}
     * @memberof ChargeSubmitOTP
     */
    reference: string;
}

export function ChargeSubmitOTPFromJSON(json: any): ChargeSubmitOTP {
    return ChargeSubmitOTPFromJSONTyped(json, false);
}

export function ChargeSubmitOTPFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChargeSubmitOTP {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'otp': json['otp'],
        'reference': json['reference'],
    };
}

export function ChargeSubmitOTPToJSON(value?: ChargeSubmitOTP | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'otp': value.otp,
        'reference': value.reference,
    };
}


