IMYOBPoster.cs 700 B

123456789101112131415161718192021222324
  1. using InABox.Core;
  2. using InABox.Core.Postable;
  3. using InABox.Scripting;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace InABox.Poster.MYOB;
  10. [Caption("MYOB")]
  11. public interface IMYOBPoster<TPostable, TSettings> : IPoster<TPostable, TSettings>, IGlobalSettingsPoster<MYOBGlobalPosterSettings>
  12. where TPostable : Entity, IPostable, IRemotable, IPersistent, new()
  13. where TSettings : MYOBPosterSettings
  14. {
  15. ScriptDocument? Script { get; set; }
  16. MYOBConnectionData ConnectionData { get; set; }
  17. bool BeforePost(IDataModel<TPostable> model);
  18. IPostResult<TPostable> Process(IDataModel<TPostable> model);
  19. }