package com.banesco.domain.services;

import com.banesco.application.UpdateCardStatusRequest;
import com.banesco.commons.soap.client.apidebitcardoutappsvc.BlockUnblockDebitCardRs;
import com.banesco.domain.ports.inbound.UpdateCardStatusUseCase;
import com.banesco.domain.ports.outbound.CardPort;
import jakarta.enterprise.context.ApplicationScoped;
import lombok.extern.slf4j.Slf4j;


@ApplicationScoped
@Slf4j
public class UpdateCardStatusService implements UpdateCardStatusUseCase {

    CardPort cardPort;

    public UpdateCardStatusService(CardPort cardPort) {
        this.cardPort = cardPort;
    }


    @Override
    public BlockUnblockDebitCardRs executeUpdate(UpdateCardStatusRequest request) {
        return cardPort.updateCardStatus(request);


    }
}
