Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageReference Include="EstateManagement.Client" Version="2023.3.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="SecurityService.Client" Version="2023.3.1" />
<PackageReference Include="TransactionProcessor.Client" Version="2023.3.1" />
<PackageReference Include="TransactionProcessor.Client" Version="2023.6.4-build59" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,17 @@ public async Task<Boolean> PerformMerchantLogon(DateTime dateTime, MerchantRespo
public async Task<Boolean> PerformSettlement(DateTime dateTime, Guid estateId, CancellationToken cancellationToken){
try
{
this.WriteTrace($"About to send Process Settlement Request for Date [{dateTime:dd-MM-yyyy}] and Estate [{estateId}]");
List<MerchantResponse> merchants = await this.GetMerchants(estateId, cancellationToken);

await this.SendProcessSettlementRequest(dateTime, estateId, cancellationToken);

this.WriteTrace($"Process Settlement Request sent for Date [{dateTime:dd-MM-yyyy}] and Estate [{estateId}]");
foreach (MerchantResponse merchantResponse in merchants){
this.WriteTrace($"About to send Process Settlement Request for Date [{dateTime:dd-MM-yyyy}] and Estate [{estateId}] and Merchant [{merchantResponse.MerchantId}]");
await this.SendProcessSettlementRequest(dateTime, estateId,merchantResponse.MerchantId, cancellationToken);
this.WriteTrace($"Process Settlement Request sent for Date [{dateTime:dd-MM-yyyy}] and Estate [{estateId}] and Merchant [{merchantResponse.MerchantId}]");
}



return true;

}
Expand Down Expand Up @@ -825,7 +831,7 @@ private async Task<Boolean> UploadFile(UploadFile uploadFile, Guid userId, DateT
}
}

private async Task SendProcessSettlementRequest(DateTime dateTime, Guid estateId, CancellationToken cancellationToken)
private async Task SendProcessSettlementRequest(DateTime dateTime, Guid estateId,Guid merchantId, CancellationToken cancellationToken)
{
if (this.RunningMode == RunningMode.WhatIf)
{
Expand All @@ -834,7 +840,7 @@ private async Task SendProcessSettlementRequest(DateTime dateTime, Guid estateId
}

String token = await this.GetAuthToken(cancellationToken);
await this.TransactionProcessorClient.ProcessSettlement(token, dateTime, estateId, cancellationToken);
await this.TransactionProcessorClient.ProcessSettlement(token, dateTime, estateId,merchantId, cancellationToken);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<PackageReference Include="EstateManagement.Client" Version="2023.3.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="SecurityService.Client" Version="2023.3.1" />
<PackageReference Include="TransactionProcessor.Client" Version="2023.3.1" />
<PackageReference Include="TransactionProcessor.Client" Version="2023.6.4-build59" />
</ItemGroup>
</Project>