Skip to content

Instantly share code, notes, and snippets.

@KamaKAzii
Last active April 5, 2018 01:05
Show Gist options
  • Save KamaKAzii/210d7e7655428c5a6976d11b1b25680d to your computer and use it in GitHub Desktop.
Save KamaKAzii/210d7e7655428c5a6976d11b1b25680d to your computer and use it in GitHub Desktop.
Transaction migration - Analysis piece

UI based scenarios and the transactions they make

  • New enrolment
  • Manually applied Enrolment Fee (i.e. fees)
  • Manually applied refunds
  • Manually applied credits
  • Disenrolments
  • Direct Debit run credits

Notes

  • Set to success if latest Charge (i.e. first element of charge array) is successful

Breakdowns

New enrolment

  • Enrolment charge tx is created with
    • enrolmentId is populated
    • refundTransactionId is false
    • isDebit is true
    • a description of the format "Enrolment into <term.code> <course.code> (<student.full_name>)"
  • Enrolment Fee charge tx is created with
    • enrolmentId is populated
    • studentId is populated
    • a description of the format "Enrolment Fee (<student.full_name>)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment