com.sinch.sdk.domains.numbers.adapters.converters.MoneyDtoConverter 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.numbers.adapters.converters;
import com.sinch.sdk.domains.numbers.models.Money;
public class MoneyDtoConverter {
public static Money convert(com.sinch.sdk.domains.numbers.models.v1.Money dto) {
if (null == dto) {
return null;
}
return new Money(dto.getCurrencyCode(), dto.getAmount());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy