IAuthorizeParameters.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/Com/IAuthorizeParameters.cs $
  4. *
  5. * 2 07-02-26 14:06 roger.månsson
  6. * Mark the Preset value as MarshalAs Currency
  7. *
  8. * 1 07-01-05 9:00 roger.månsson
  9. * Created
  10. */
  11. #endregion
  12. using System.Runtime.InteropServices;
  13. namespace Wayne.ForecourtControl
  14. {
  15. /// <summary>
  16. /// The AuthorizeParameters is a data structure that contains the
  17. /// parameters that is used when authorizing a fuelling.
  18. /// </summary>
  19. [ComVisible(true)]
  20. public interface IAuthorizeParameters
  21. {
  22. /// <summary>
  23. /// Specifies if the PresetValue should be regarded as a volume or an amount.
  24. /// </summary>
  25. /// <see cref="PresetType"/>
  26. PresetType PresetType { get; set; }
  27. /// <summary>
  28. /// Maximum fuelling amount in domestic currency or volume.
  29. /// May be overridden by the configured maximum volume or
  30. /// amount in the pump controller. The lowest value will be used.
  31. /// </summary>
  32. decimal PresetValue
  33. {
  34. [return: MarshalAs(UnmanagedType.Currency)]
  35. get;
  36. [param: MarshalAs(UnmanagedType.Currency)]
  37. set;
  38. }
  39. /// <summary>
  40. /// Specifies the price group for the fuelling that should be used for the price calculation.
  41. /// </summary>
  42. int PriceGroup { get; set; }
  43. /// <summary>
  44. /// Fuel grades allowed to use for the fuelling are set to true.
  45. /// </summary>
  46. IAllowedFuelGrades AllowedFuelGrade { get; }
  47. /// <summary>
  48. /// The fuelling can only be reserved and set as paid by the releasing client if this
  49. /// property is set to true.
  50. /// </summary>
  51. bool LockToReleaseClient { get; set; }
  52. /// <summary>
  53. /// Prepay flag is true for bank note sale
  54. /// </summary>
  55. bool Prepay { get; set; }
  56. /// <summary>
  57. /// Payment type: e.g. "ST" for speedpass tag; "FC" for fleet card; "PC" for payment card;
  58. /// </summary>
  59. string PayType { get; set; }
  60. }
  61. }