use of org.folio.rest.jaxrs.model.KbCredentialsPatchRequestData in project mod-kb-ebsco-java by folio-org.
the class KbCredentialsPatchRequestConverter method convert.
@Override
public KbCredentials convert(@NonNull KbCredentialsPatchRequest source) {
KbCredentialsPatchRequestData data = source.getData();
KbCredentialsPatchRequestDataAttributes attributes = data.getAttributes();
return new KbCredentials().withId(data.getId()).withAttributes(new KbCredentialsDataAttributes().withApiKey(attributes.getApiKey()).withCustomerId(attributes.getCustomerId()).withName(attributes.getName()).withUrl(attributes.getUrl()));
}
Aggregations