com.sinch.sdk.domains.verification.adapters.converters.PriceDtoConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
package com.sinch.sdk.domains.verification.adapters.converters;
import com.sinch.sdk.domains.verification.models.Price;
import com.sinch.sdk.domains.verification.models.dto.v1.MoneyDto;
public class PriceDtoConverter {
public static Price convert(MoneyDto dto) {
if (null == dto) {
return Price.builder().build();
}
return Price.builder().setCurrencyId(dto.getCurrencyId()).setAmount(dto.getAmount()).build();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy