def find(self, **kwargs): '''Search for transactions that meet a number of criteria and receive a paged response.''' response = self.get('/v2/transactions/find', query=kwargs) data = [ Transaction(self, **fields) for fields in response['transactions'] ] return PaginatedCollection(data, response['pagination'])
def find(self, **kwargs): ''' Search for a range of balances and receive a paged response. This is useful if you want to see historic balances. ''' response = self.get('/v2/balances/find', query=kwargs) data = [Balance(self, **fields) for fields in response['balances']] return PaginatedCollection(data, response['pagination'])
def find(self, **kwargs): ''' Return an array containing json structures of details of the accounts matching the search criteria for the logged in user. ''' response = self.get('/v2/accounts/find', query=kwargs) data = [Account(self, **fields) for fields in response['accounts']] return PaginatedCollection(data, response['pagination'])
def find(self, **kwargs): ''' A paged response of an array containing hashes of details of the contacts matching the search criteria for the active user. ''' response = self.get('/v2/contacts/find', query=kwargs) data = [Contact(self, **fields) for fields in response['contacts']] return PaginatedCollection(data, response['pagination'])
def profit_and_loss(self, **kwargs): ''' Return an array containing json structures of details of the conversions profit and loss matching the search criteria for the logged in user. ''' response = self.get('/v2/conversions/profit_and_loss', query=kwargs) data = [ Conversion(self, **fields) for fields in response['conversion_profit_and_losses'] ] return PaginatedCollection(data, response['pagination'])
def find(self, **kwargs): '''Returns an Array of Payment objects matching the search criteria.''' response = self.get('/v2/payments/find', query=kwargs) data = [Payment(self, **fields) for fields in response['payments']] return PaginatedCollection(data, response['pagination'])
def find(self, **kwargs): '''Returns an array of Transfer objects for the given search criteria.''' response = self.get('/v2/transfers/find', query=kwargs) data = [Transfer(self, **fields) for fields in response['transfers']] return PaginatedCollection(data, response['pagination'])
def find(self, **kwargs): '''Search for VANs that meet a number of criteria and receive a paged response.''' response = self.get('/v2/virtual_accounts/find', query=kwargs) data = [Van(self, **fields) for fields in response['virtual_accounts']] return PaginatedCollection(data, response['pagination'])
def find(self, **kwargs): '''Returns an array of Settlement objects for the given search criteria.''' response = self.get('/v2/settlements/find', query=kwargs) data = [Settlement(self, **fields) for fields in response['settlements']] return PaginatedCollection(data, response['pagination'])
def find(self, **kwargs): """Search for WithdrawalAccounts that meet a number of criteria and receive a paged response.""" response = self.get("/v2/withdrawal_accounts/find", query=kwargs) data = [WithdrawalAccount(self, **fields) for fields in response['withdrawal_accounts']] return PaginatedCollection(data, response['pagination'])