class DistanceCurrencyCodeSupplier implements CurrencyCodeSupplier {

    @NonNull
    @Override
    public String get() {
        if (distance != null) {
            return distance.getPrice().getCurrencyCode();
        } else {
            return trip.getDefaultCurrencyCode();
        }
    }

    public  DistanceCurrencyCodeSupplier(@NonNull Trip trip, @Nullable Distance distance);

}