Interface ProductSkuMapper


public interface ProductSkuMapper
Mapper interface for converting between Voucherify SKU models and PMS product SKU models.
  • Field Details

  • Method Details

    • toVoucherifySKU

      io.voucherify.client.model.ProductsSkusCreateRequestBody toVoucherifySKU(PMSProductSkuModel pmsProductSkuModel)
      Converts a PMSProductSkuModel to a ProductsSkusCreateRequestBody.
      Parameters:
      pmsProductSkuModel - the PMS product SKU model to convert
      Returns:
      the corresponding Voucherify SKU creation request body
    • skuResponseToProductSkuModel

      PMSProductSkuModel skuResponseToProductSkuModel(io.voucherify.client.model.ProductsSkusCreateResponseBody skuResponse)
      Converts a ProductsSkusCreateResponseBody to a PMSProductSkuModel.
      Parameters:
      skuResponse - the Voucherify SKU response to convert
      Returns:
      the corresponding PMS product SKU model