TariffV2ToInfoMapperImpl.java
package com.github.jenkaby.bikerental.tariff.application.mapper;
import com.github.jenkaby.bikerental.tariff.TariffV2Info;
import com.github.jenkaby.bikerental.tariff.domain.model.PricingType;
import com.github.jenkaby.bikerental.tariff.domain.model.TariffV2;
import java.time.LocalDate;
import javax.annotation.processing.Generated;
import org.springframework.stereotype.Component;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
comments = "version: 1.6.3, compiler: IncrementalProcessingEnvironment from gradle-language-java-9.4.1.jar, environment: Java 21.0.10 (Amazon.com Inc.)"
)
@Component
public class TariffV2ToInfoMapperImpl implements TariffV2ToInfoMapper {
@Override
public TariffV2Info toTariffV2Info(TariffV2 tariffV2) {
if ( tariffV2 == null ) {
return null;
}
Long id = null;
String name = null;
String description = null;
String equipmentType = null;
PricingType pricingType = null;
String version = null;
LocalDate validFrom = null;
LocalDate validTo = null;
id = tariffV2.getId();
name = tariffV2.getName();
description = tariffV2.getDescription();
equipmentType = tariffV2.getEquipmentType();
pricingType = tariffV2.getPricingType();
version = tariffV2.getVersion();
validFrom = tariffV2.getValidFrom();
validTo = tariffV2.getValidTo();
TariffV2Info tariffV2Info = new TariffV2Info( id, name, description, equipmentType, pricingType, version, validFrom, validTo );
return tariffV2Info;
}
}