All Downloads are FREE. Search and download functionalities are using the official Maven repository.

global.maplink.freight.sync.FreightSyncApiImpl Maven / Gradle / Ivy

The newest version!
package global.maplink.freight.sync;

import global.maplink.freight.async.FreightAsyncAPI;
import global.maplink.freight.schema.FreightCalculationRequest;
import global.maplink.freight.schema.FreightCalculationResponse;
import lombok.RequiredArgsConstructor;

import static global.maplink.helpers.FutureHelper.await;
import static lombok.AccessLevel.PROTECTED;

@RequiredArgsConstructor(access = PROTECTED)
public class FreightSyncApiImpl implements FreightSyncAPI {

    private final FreightAsyncAPI delegate;

    @Override
    public FreightCalculationResponse calculate(FreightCalculationRequest request) {
        return await(delegate.calculate(request));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy