<?php
class Mpp_Infusionsoft_CreditCard extends Mpp_Infusionsoft_Generated_CreditCard{
    public function __construct($id = null, $app = null){
    	parent::__construct($id, $app);
    }

    public function removeRestrictedFields(){
        $restrictedFields = array(
            'CardNumber',
            'CVV2'
        );
        foreach ($restrictedFields as $restrictedField){
            self::removeField($restrictedField);
        }
    }

    public function addRestrictedFields(){
        $restrictedFields = array(
            'CardNumber',
            'CVV2'
        );
        foreach ($restrictedFields as $restrictedField){
            self::addCustomField($restrictedField);
        }
    }
}

