<s> import re <EOL> import braintree <EOL> from braintree . plan import Plan <EOL> from braintree . error_result import ErrorResult <EOL> from braintree . exceptions . not_found_error import NotFoundError <EOL> from braintree . resource import Resource <EOL> from braintree . resource_collection import ResourceCollection <EOL> from braintree . successful_result import SuccessfulResult <EOL> class PlanGateway ( object ) : <EOL> def __init__ ( self , gateway ) : <EOL> self . gateway = gateway <EOL> self . config = gateway . config <EOL> def all ( self ) : <EOL> response = self . config . http ( ) . get ( self . config . base_merchant_path ( ) + "<STR_LIT>" ) <EOL> return [ Plan ( self . gateway , item ) for item in ResourceCollection . _extract_as_array ( response , "<STR_LIT>" ) ] </s>
