Skip to the content.
package com.bookshop.structural.adapter;

import com.bookshop.domain.Customer;
import java.math.BigDecimal;

/** The interface the shop's checkout is written against. */
public interface CardPayments {

    PaymentResult charge(Customer customer, BigDecimal amount);
}

Raw file