backend phase 10
This commit is contained in:
@@ -3,6 +3,7 @@ using Baya.Application.Contracts.Common;
|
||||
using Baya.Domain.Common;
|
||||
using Baya.Domain.Entities.Booking;
|
||||
using Baya.Domain.Entities.Identity;
|
||||
using Baya.Domain.Entities.Payments;
|
||||
using Baya.Domain.Entities.User;
|
||||
using Baya.Domain.Entities.Verification;
|
||||
using Baya.Infrastructure.Persistence.ValueConversion;
|
||||
@@ -157,5 +158,12 @@ public class ApplicationDbContext: IdentityDbContext<User, Role, int, UserClaim,
|
||||
builder.Property(c => c.EmergencyContactName).HasConversion(encrypted);
|
||||
builder.Property(c => c.EmergencyContactPhone).HasConversion(encrypted);
|
||||
});
|
||||
|
||||
// b10 gateway config: provider-selection/failover config (merchant id, terminal/IBAN registration,
|
||||
// base url, sandbox flag) is encrypted at rest through the same seam and never logged in plaintext.
|
||||
modelBuilder.Entity<PaymentGateway>(builder =>
|
||||
{
|
||||
builder.Property(g => g.ConfigJson).HasConversion(encrypted);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user