In function Envelope.checkFieldIsDefined the second parameter is not used. I'm trying to build an envelope without the before field but get an exception when the required field says it's optional.
Something should be done about that. Are those fields optional or not ? Is that parameter needed ?