When finished with the UA API, is there a method to dispose of the object? I asked CSI and their response was uaApi2 delete; (where uaApi2 is API2Class object), but that results in an error.
Thanks Bernd. My (limited) understanding is that it's good practice to dispose of objects, in spite of the garbage collection --- this seems to be why using{...} is recommended, as it implicitly calls .dispose(). But I'm a n00b to C# and am very happy to be corrected by those more knowledgeable!
Is there a way to avoid downloading cash data? I have set uaApi2.FillInCashPrice = 0; but the cash data still downloads. The API documentation (such as it is) says "non-zero is true", so I don't think the issue is '0' rather than 'false'.
EDIT: To skip cash data, you'll need something like if(CSIdeliveryCode != 54){ ... }.