Skip to content

Commit

Permalink
fix aplos rebate syncing + timezones + polling for sync status (#197)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Karcz <ckarcz@pexcard.com>
  • Loading branch information
ckarcz and Chris Karcz committed Aug 29, 2024
1 parent 1aff581 commit 4d12564
Show file tree
Hide file tree
Showing 18 changed files with 560 additions and 232 deletions.
23 changes: 0 additions & 23 deletions src/AplosConnector.Common/Const/TimeZoneConst.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public Pex2AplosMappingEntity()
}

public bool AutomaticSync { get; set; }
public bool IsSyncing { get; set; }
public bool IsManualSync { get; set; }
public string PEXExternalAPIToken { get; set; }
public int PEXBusinessAcctId { get; set; }
Expand Down
18 changes: 0 additions & 18 deletions src/AplosConnector.Common/Extensions/DateTimeExtension.cs

This file was deleted.

1 change: 1 addition & 0 deletions src/AplosConnector.Common/Models/MappingSettingsModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace AplosConnector.Common.Models
public class MappingSettingsModel
{
public bool AutomaticSync { get; set; }
public bool IsSyncing { get; set; }
public bool IsManualSync { get; set; }
public DateTime ConnectedOn { get; set; }
public DateTime? LastSync { get; set; }
Expand Down
3 changes: 3 additions & 0 deletions src/AplosConnector.Common/Models/Pex2AplosMappingModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public Pex2AplosMappingModel()
public void UpdateFromSettings(MappingSettingsModel mapping)
{
AutomaticSync = mapping.AutomaticSync;
IsSyncing = mapping.IsSyncing;
IsManualSync = mapping.IsManualSync;
CreatedUtc = mapping.ConnectedOn;
SyncApprovedOnly = mapping.SyncApprovedOnly;
Expand Down Expand Up @@ -86,6 +87,7 @@ public MappingSettingsModel ToStorageModel()
return new MappingSettingsModel
{
AutomaticSync = AutomaticSync,
IsSyncing = IsSyncing,
IsManualSync = IsManualSync,
ConnectedOn = CreatedUtc,
SyncApprovedOnly = SyncApprovedOnly,
Expand Down Expand Up @@ -149,6 +151,7 @@ public MappingSettingsModel ToStorageModel()
}

public bool AutomaticSync { get; set; }
public bool IsSyncing { get; set; }
public bool IsManualSync { get; set; }
public string PEXExternalAPIToken { get; set; }
public int PEXBusinessAcctId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class PexConnectionDetailModel
public bool AplosConnection { get; set; }
public bool SyncingSetup { get; set; }
public bool VendorsSetup { get; set; }
public bool IsSyncing { get; set; }
public DateTime? LastSync { get; set; }
public decimal? AccountBalance { get; set; }
public bool UseBusinessBalanceEnabled { get; set; }
Expand Down
96 changes: 0 additions & 96 deletions src/AplosConnector.Common/Models/TimePeriod.cs

This file was deleted.

Loading

0 comments on commit 4d12564

Please sign in to comment.