i dont know how it is done internally. I only know that it is added via a second code (one for the game and one for the bonus), which is entered on origin (redeem product code)
it should be a bonus code provided by email, if you buy the game from origin ... or at least one EA producer / developer replied thus regarding the bonus: