// GetPrevious get the previous page of the Transaction list
// If there is no previous page, rise an error.
GetPrevious get the previous page of the Transaction list
If there is no previous page, rise an error.
// GetPrevious get the previous page of the Transaction list // If there is no previous page rise an error .
func (tList *TransactionList) GetPrevious() (*TransactionList, error) {
	if tList.pagination.Previous == nil {
		return nil, fmt.Errorf("Previous page does not exist")
	}
	tList, err := tList.client.GetTransactions(
		args.Currency(tList.currency),
		args.Page(int(tList.pagination.Previous.(float64))),
		args.Limit(tList.pagination.Limit))
	if err != nil {
		return nil, fmt.Errorf("error getting the previous page: %s", err)
	}
	return tList, nil
}
func ( tList * TransactionList ) GetPrevious ( ) ( * TransactionList , error ) { if tList . pagination . Previous == nil { return nil , fmt . Errorf ( " " ) } tList , err := tList . client . GetTransactions ( args . Currency ( tList . currency ) , args . Page ( int ( tList . pagination . Previous . ( float64 ) ) ) , args . Limit ( tList . pagination . Limit ) ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return tList , nil }
GetPrevious get the previous page of the Transaction list
If there is no previous page, rise an error.
GetPrevious get the previous page of the Transaction list If there is no previous page rise an error .