Files
Dhananjaya99 bffc9b1686 first commit
2026-09-28 11:44:26 +05:30

39 lines
1.4 KiB
C#

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;
}
}