12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #region --------------- Copyright Dresser Wayne Pignone -------------
- /*
- * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/Com/IAuthorizeParameters.cs $
- *
- * 2 07-02-26 14:06 roger.månsson
- * Mark the Preset value as MarshalAs Currency
- *
- * 1 07-01-05 9:00 roger.månsson
- * Created
- */
- #endregion
- using System;
- using System.Runtime.InteropServices;
- namespace Wayne.ForecourtControl
- {
- /// <summary>
- /// The AuthorizeParameters is a data structure that contains the
- /// parameters that is used when authorizing a fuelling.
- /// </summary>
- [ComVisible(true)]
- public interface IAuthorizeParameters
- {
- /// <summary>
- /// Specifies if the PresetValue should be regarded as a volume or an amount.
- /// </summary>
- /// <see cref="PresetType"/>
- PresetType PresetType { get; set; }
- /// <summary>
- /// Maximum fuelling amount in domestic currency or volume.
- /// May be overridden by the configured maximum volume or
- /// amount in the pump controller. The lowest value will be used.
- /// </summary>
- decimal PresetValue
- {
- [return: MarshalAs(UnmanagedType.Currency)]
- get;
- [param: MarshalAs(UnmanagedType.Currency)]
- set;
- }
- /// <summary>
- /// Specifies the price group for the fuelling that should be used for the price calculation.
- /// </summary>
- int PriceGroup { get; set; }
- /// <summary>
- /// Fuel grades allowed to use for the fuelling are set to true.
- /// </summary>
- IAllowedFuelGrades AllowedFuelGrade { get; }
- /// <summary>
- /// Fuel grades maximum volumes authorized.
- /// </summary>
- IFuelGradeMaxVolumes FuelGradeMaxVolume { get; }
- /// <summary>
- /// The fuelling can only be reserved and set as paid by the releasing client if this
- /// property is set to true.
- /// </summary>
- bool LockToReleaseClient { get; set; }
-
- /// <summary>
- /// Prepay flag is true for bank note sale
- /// </summary>
- bool Prepay { get; set; }
- /// <summary>
- /// Specifies if operator consent is given
- /// </summary>
- bool ConsentGiven { get; set; }
- /// <summary>
- /// Specifies if treat zero sale as a valid transaction
- /// </summary>
- bool ProcessZeroSale { get; set; }
- /// <summary>
- /// True, customer has chance to Retried for auth/preset
- /// </summary>
- bool ApplyAuthPresetRetries { get; set; }
- /// <summary>
- /// Specifies receipt number where filling was paid (only for prepay)
- /// </summary>
- int PrepayReceiptNo { get; set; }
- /// <summary>
- /// Optional authorization id to use when authorizing the pump.
- /// Dependent on forecourt implementation this may or may not be used
- /// as authorization id for the authorization. No assumptions should be made that this
- /// id is used.
- /// </summary>
- int? AuthorizationId { get; set; }
- }
- }
|