public void CreateTransaction(Guid packageId, long packageVersion, Guid userId, Guid requestId,
     Guid contractId, string system, long contractVersion, DataProviderResponseState state, string accountNumber, double packageCostPrice, double packageRecommendedPrice, DataProviderNoRecordState billNoRecords)
 {
     new CreateTransactionCommand(Guid.NewGuid(), packageId, packageVersion, DateTime.UtcNow, userId, requestId,
         contractId,
         system, contractVersion, state, accountNumber, packageCostPrice, packageRecommendedPrice, billNoRecords)
         .SendToBus(_publisher, _log);
 }
 public DataProviderIdentifier(DataProviderCommandSource dataProvider,
     DataProviderAction action, DataProviderResponseState state, DataProviderNoRecordState billNoRecords)
 {
     Id = (int) dataProvider;
     Name = dataProvider.ToString();
     Action = action;
     State = state;
     BillNoRecords = billNoRecords;
 }
 public WorkflowQueueSender ReceiveResponseFromDataProvider(string connectionTpe,
     string connection, DataProviderAction action, DataProviderResponseState state, object payload, decimal cost,
     decimal rsp)
 {
     _workflow.DataProviderResponse(
         new DataProviderIdentifier((int)_dataProvider, _dataProvider.ToString(), cost, rsp, action, state, _billNoRecords),
         new ConnectionTypeIdentifier(connection, connectionTpe), payload, _stopWatch);
     return this;
 }
 public DataProviderIdentifier(int id, string name, decimal costPrice, decimal recommendedPrice,
     DataProviderAction action, DataProviderResponseState state, DataProviderNoRecordState billNoRecords)
 {
     Id = id;
     Name = name;
     CostPrice = costPrice;
     RecommendedPrice = recommendedPrice;
     Action = action;
     State = state;
     BillNoRecords = billNoRecords;
 }
 public CreateTransactionCommand(Guid id, Guid packageId, long packageVersion, DateTime date, Guid userId, Guid requestId, Guid contractId,
     string system, long contractVersion, DataProviderResponseState state, string accountNumber, double packageCostPrice, double packageRecommendedPrice,DataProviderNoRecordState noRecordState)
 {
     Id = id;
     PackageId = packageId;
     PackageVersion = packageVersion;
     PackageCostPrice = packageCostPrice;
     PackageRecommendedPrice = packageRecommendedPrice;
     Date = date;
     UserId = userId;
     RequestId = requestId;
     ContractId = contractId;
     System = system;
     State = state;
     ContractVersion = contractVersion;
     AccountNumber = accountNumber;
     NoRecordState = noRecordState;
 }
 private RgtVinResponse(DataProviderResponseState state)
 {
     ResponseState = state;
 }
 public static PCubedEzScoreResponse WithState(DataProviderResponseState state)
 {
     return new PCubedEzScoreResponse(state);
 }
예제 #8
0
 public Request CreateTransaction(Guid packageId, long packageVersion, DateTime date, Guid userId,
     Guid contractId,
     string system, long contractVersion, DataProviderResponseState state, string accountNumber, double packageCostPrice, double packageRecommendedPrice, DataProviderNoRecordState billNoRecords)
 {
     DataProvider = new DataProviderIdentifier(DataProviderCommandSource.EntryPoint, DataProviderAction.Response, state, billNoRecords);
     Date = date;
     Connection = new ConnectionTypeIdentifier();
     Payload = new PayloadIdentifier();
     CommandType = CommandType.Accounting;
     State = new StateIdentifier((int) state, state.ToString());
     RequestContext = new SearchRequestIndentifier();
     Package = new PackageIdentifier(packageId, new VersionIdentifier(packageVersion), packageCostPrice, packageRecommendedPrice);
     return this;
 }
 public static IvidResponse WithState(DataProviderResponseState state)
 {
     return new IvidResponse(state);
 }
 private LightstonePropertyResponse(DataProviderResponseState state)
 {
     ResponseState = state;
     PropertyInformation = Enumerable.Empty<IRespondWithProperty>();
 }
 private LightstoneBusinessDirectorResponse(DataProviderResponseState state)
 {
     ResponseState = state;
     Directors = Enumerable.Empty<IProvideDirector>();
 }
 public static BmwFinanceResponse WithState(DataProviderResponseState state)
 {
     return new BmwFinanceResponse(state);
 }
 private LightstoneConsumerSpecificationsResponse(DataProviderResponseState state)
 {
     ResponseState = state;
     RepairData = new List<IRespondWithRepairData>();
 }
 public static PCubedFicaVerficationResponse WithState(DataProviderResponseState state)
 {
     return new PCubedFicaVerficationResponse(state);
 }
 private BmwFinanceResponse(DataProviderResponseState state)
 {
     ResponseState = state;
     Finances = Enumerable.Empty<IRespondWithBmwFinance>();
 }
 private PCubedFicaVerficationResponse(DataProviderResponseState state)
 {
     ResponseState = state;
 }
 public static SignioDriversLicenseDecryptionResponse WithState(DataProviderResponseState state)
 {
     return new SignioDriversLicenseDecryptionResponse(state);
 }
 private SignioDriversLicenseDecryptionResponse(DataProviderResponseState state)
 {
     ResponseState = state;
     DrivingLicense = new DrivingLicenseCard();
     DecodedData = string.Empty;
 }
 public static RgtVinResponse WithState(DataProviderResponseState state)
 {
     return new RgtVinResponse(state);
 }
 public static LightstoneConsumerSpecificationsResponse WithState(DataProviderResponseState state)
 {
     return new LightstoneConsumerSpecificationsResponse(state);
 }
 private IvidTitleHolderResponse(DataProviderResponseState state)
 {
     ResponseState = state;
 }
 public ResponseMeta(Guid requestId, DataProviderResponseState responseState)
 {
     RequestId = requestId;
     ResponseState = responseState;
     ResponseStateMessage = ResponseState.Description();
 }
 public static LightstonePropertyResponse WithState(DataProviderResponseState state)
 {
     return new LightstonePropertyResponse(state);
 }
 private MMCodeResponse(DataProviderResponseState state)
 {
     ResponseState = state;
 }
 public static LightstoneBusinessDirectorResponse WithState(DataProviderResponseState state)
 {
     return new LightstoneBusinessDirectorResponse(state);
 }
 private LightstoneAutoResponse(DataProviderResponseState state)
 {
     ResponseState = state;
     VehicleValuation = new Valuation();
 }
 private IvidResponse(DataProviderResponseState state)
 {
     ResponseState = state;
 }
 private PCubedEzScoreResponse(DataProviderResponseState state)
 {
     ResponseState = state;
     EzScoreRecords = Enumerable.Empty<IRespondWithEzScore>();
 }
 public void AddResponseState(DataProviderResponseState state)
 {
     ResponseState = state;
 }
 public static MMCodeResponse WithState(DataProviderResponseState state)
 {
     return new MMCodeResponse(state);
 }