purchaseCode method

void purchaseCode(
  1. String code,
  2. bool validated
)

Implementation

void purchaseCode(String code, bool validated) {
  PurchaseCode interaction = PurchaseCode(
    interaction: createInteraction(),
    value: code,
    validated: validated,
  );
  _saveInteraction(interaction);
}