Interfaces which define the core affirm API.