Enhance internal payment handling and e2e testing setup

This commit is contained in:
Marshal
2026-08-02 18:39:17 +00:00
parent ff772fddef
commit 930e39c4fc
10 changed files with 210 additions and 16 deletions

View File

@@ -16,6 +16,7 @@ import {
BillQueryRequestDto,
BillQueryResponseDto,
} from "./internal-payment.dto";
import { Public } from "@edr/api-common";
import { PaymentService } from "./payment.service";
import { BillingService } from "../billing/billing.service";
import { ServiceAuthGuard } from "../../common/guards/service-auth.guard";
@@ -28,6 +29,10 @@ import { ServiceAuthGuard } from "../../common/guards/service-auth.guard";
* this HTTP endpoint remains as a transport-agnostic fallback.
*/
@ApiTags("Internal Payments")
// Service-to-service, not user-to-service: exempt from the global JwtGuard
// (there is no end-user JWT on a relay call) and authenticated instead by the
// shared service token that ServiceAuthGuard checks.
@Public()
@UseGuards(ServiceAuthGuard)
@Controller("internal/payments")
export class InternalPaymentController {