#NEWLINE# def __fetch( self , query , ids ) : #NEWLINE# #INDENT# criteria = self . __criteria ( query ) #NEWLINE# criteria [ 'ids' ] = braintree . subscription_search . SubscriptionSearch . ids . in_list ( ids ) . to_param ( ) #NEWLINE# response = self . config . http ( ) . post ( ( self . config . base_merchant_path ( ) + '/subscriptions/advanced_search' ) , { #NEWLINE# #INDENT# 'search' : criteria , #NEWLINE# #UNINDENT# } ) #NEWLINE# return [ Subscription ( self . gateway , item ) for item in ResourceCollection . _extract_as_array ( response [ 'subscriptions' ] , 'subscription' ) ]