Interface ProductSkuMapper
public interface ProductSkuMapper
Mapper interface for converting between Voucherify SKU models and PMS product SKU models.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionskuResponseToProductSkuModel(io.voucherify.client.model.ProductsSkusCreateResponseBody skuResponse) Converts aProductsSkusCreateResponseBodyto aPMSProductSkuModel.io.voucherify.client.model.ProductsSkusCreateRequestBodytoVoucherifySKU(PMSProductSkuModel pmsProductSkuModel) Converts aPMSProductSkuModelto aProductsSkusCreateRequestBody.
-
Field Details
-
INSTANCE
-
-
Method Details
-
toVoucherifySKU
io.voucherify.client.model.ProductsSkusCreateRequestBody toVoucherifySKU(PMSProductSkuModel pmsProductSkuModel) Converts aPMSProductSkuModelto aProductsSkusCreateRequestBody.- 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 aProductsSkusCreateResponseBodyto aPMSProductSkuModel.- Parameters:
skuResponse- the Voucherify SKU response to convert- Returns:
- the corresponding PMS product SKU model
-