()
| 126 | } |
| 127 | |
| 128 | convertToProduct () { |
| 129 | return { |
| 130 | product: 'course', |
| 131 | startDate: this.get('startDate'), |
| 132 | endDate: this.get('endDate'), |
| 133 | prepaid: this.get('_id'), |
| 134 | productOptions: { |
| 135 | includedCourseIDs: this.get('includedCourseIDs') |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | hasBeenUsedByTeacher (userID) { |
| 141 | if ((this.get('creator') === userID) && _.detect(this.get('redeemers'), { teacherID: undefined })) { |
no test coverage detected