Take into account cases when line field is not defined
Ignore product when its shipping type doesn't exist in the account
Move helper into trademe namespace
Move API call into trademe namespace
Move event observers into trademe namespace