/* 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 MobileMoney
 */
export interface MobileMoney {
    /**
     * Customer's phone number
     * @type {string}
     * @memberof MobileMoney
     */
    phone?: string;
    /**
     * The telco provider of customer's phone number. This can be fetched from the List Bank endpoint
     * @type {string}
     * @memberof MobileMoney
     */
    provider?: string;
}

export function MobileMoneyFromJSON(json: any): MobileMoney {
    return MobileMoneyFromJSONTyped(json, false);
}

export function MobileMoneyFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileMoney {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'phone': !exists(json, 'phone') ? undefined : json['phone'],
        'provider': !exists(json, 'provider') ? undefined : json['provider'],
    };
}

export function MobileMoneyToJSON(value?: MobileMoney | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'phone': value.phone,
        'provider': value.provider,
    };
}


