Interface CdekService

  • All Known Implementing Classes:
    CdekServiceImpl

    public interface CdekService
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.cdek.java.model.auth.response.AuthResponse authenticate()  
      com.cdek.java.model.auth.response.AuthResponse authenticateTest()  
      com.cdek.java.model.calculator.response.Calculator calculate​(com.cdek.java.model.calculator.request.CalculatorRequest request)  
      java.math.BigDecimal calculateDeliveryPrice​(Order order)  
      com.cdek.java.model.courier.response.CourierResponse createCourierRequest​(com.cdek.java.model.courier.request.CourierRequest request)  
      java.util.List<com.cdek.java.model.deliverypoint.response.DeliveryPointResponse> getDeliveryPoints​(com.cdek.java.model.deliverypoint.request.DeliveryPointRequest request)  
      com.cdek.java.model.calculator.response.TariffCode getTariffCode​(Order order)  
      com.cdek.java.model.calculator.response.Tariffs getTariffs​(com.cdek.java.model.calculator.request.CalculatorRequest calcReq)  
      boolean isCdekKeysDefined()
      Checks if the CDEK keys are defined.
      boolean isTestCdekKeysDefined()
      Checks if the CDEK test keys are defined.
      com.cdek.java.model.order.response.OrderResponse orderRegistration​(com.cdek.java.model.order.request.OrderRequest request)  
      boolean ship​(Order order)  
    • Method Detail

      • isCdekKeysDefined

        boolean isCdekKeysDefined()
        Checks if the CDEK keys are defined.
        Returns:
        true if the CDEK keys are defined, false otherwise.
      • isTestCdekKeysDefined

        boolean isTestCdekKeysDefined()
        Checks if the CDEK test keys are defined.
        Returns:
        true if the CDEK test keys are defined, false otherwise.
      • authenticate

        com.cdek.java.model.auth.response.AuthResponse authenticate()
      • authenticateTest

        com.cdek.java.model.auth.response.AuthResponse authenticateTest()
      • calculate

        com.cdek.java.model.calculator.response.Calculator calculate​(com.cdek.java.model.calculator.request.CalculatorRequest request)
      • orderRegistration

        com.cdek.java.model.order.response.OrderResponse orderRegistration​(com.cdek.java.model.order.request.OrderRequest request)
      • createCourierRequest

        com.cdek.java.model.courier.response.CourierResponse createCourierRequest​(com.cdek.java.model.courier.request.CourierRequest request)
      • getDeliveryPoints

        java.util.List<com.cdek.java.model.deliverypoint.response.DeliveryPointResponse> getDeliveryPoints​(com.cdek.java.model.deliverypoint.request.DeliveryPointRequest request)
      • getTariffs

        com.cdek.java.model.calculator.response.Tariffs getTariffs​(com.cdek.java.model.calculator.request.CalculatorRequest calcReq)
      • getTariffCode

        com.cdek.java.model.calculator.response.TariffCode getTariffCode​(Order order)
      • calculateDeliveryPrice

        java.math.BigDecimal calculateDeliveryPrice​(Order order)
      • ship

        boolean ship​(Order order)