first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
@@ -0,0 +1,38 @@
namespace Fitness_core_BE.DTOs.PaymentGateways
{
// Mirrors Payment-Service's DTOs/Gateways/GatewayDtos.cs - Fitness_Core_BE's
// AdminController proxies to Payment-Service rather than exposing it directly
// to the admin frontend (see Phase 0 decision: no admin/JWT auth surface there).
public class GatewayDefinitionDto
{
public Guid Id { get; set; }
public string GatewayName { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
public bool IsEnabled { get; set; }
public bool IsDefault { get; set; }
public string Mode { get; set; } = "Sandbox";
public bool SupportsWebhooks { get; set; }
}
public class UpsertGatewayDefinitionRequest
{
public string GatewayName { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
public bool IsEnabled { get; set; } = true;
public bool IsDefault { get; set; } = false;
public string Mode { get; set; } = "Sandbox";
public bool SupportsWebhooks { get; set; } = true;
}
public class SetGatewayEnabledRequest
{
public bool IsEnabled { get; set; }
}
public class UpsertPlatformGatewayCredentialRequest
{
public Guid PlatformId { get; set; }
public string GatewayName { get; set; } = string.Empty;
public string CredentialsJson { get; set; } = string.Empty;
}
}