package ebay

import "strings"

type ebayErrors []ebayResponseError

func (err ebayErrors) Error() string {
	var errors []string

	for _, e := range err {
		errors = append(errors, e.LongMessage)
	}

	return strings.Join(errors, ",")
}

func (errs ebayErrors) RevisionError() bool {
	for _, err := range errs {
		if err.ErrorCode == 10039 || err.ErrorCode == 10029 || err.ErrorCode == 21916916 {
			return true
		}
	}

	return false
}

func (errs ebayErrors) ListingEnded() bool {
	for _, err := range errs {
		if err.ErrorCode == 291 {
			return true
		}
	}

	return false
}

package ebay

import "strings"

type ebayErrors []ebayResponseError

func (err ebayErrors) Error() string {
	var errors []string

	for _, e := range err {
		errors = append(errors, e.LongMessage)
	}

	return strings.Join(errors, ",")
}

--- 
+++ 
@@ -13,3 +13,23 @@
 
 	return strings.Join(errors, ",")
 }
+
+func (errs ebayErrors) RevisionError() bool {
+	for _, err := range errs {
+		if err.ErrorCode == 10039 || err.ErrorCode == 10029 || err.ErrorCode == 21916916 {
+			return true
+		}
+	}
+
+	return false
+}
+
+func (errs ebayErrors) ListingEnded() bool {
+	for _, err := range errs {
+		if err.ErrorCode == 291 {
+			return true
+		}
+	}
+
+	return false
+}
Add RevisionError and ListingEnded error functions
