Search in sources :

Example 1 with KbCredentialsPatchRequestData

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()));
}
Also used : KbCredentialsPatchRequestData(org.folio.rest.jaxrs.model.KbCredentialsPatchRequestData) KbCredentials(org.folio.rest.jaxrs.model.KbCredentials) KbCredentialsDataAttributes(org.folio.rest.jaxrs.model.KbCredentialsDataAttributes) KbCredentialsPatchRequestDataAttributes(org.folio.rest.jaxrs.model.KbCredentialsPatchRequestDataAttributes)

Aggregations

KbCredentials (org.folio.rest.jaxrs.model.KbCredentials)1 KbCredentialsDataAttributes (org.folio.rest.jaxrs.model.KbCredentialsDataAttributes)1 KbCredentialsPatchRequestData (org.folio.rest.jaxrs.model.KbCredentialsPatchRequestData)1 KbCredentialsPatchRequestDataAttributes (org.folio.rest.jaxrs.model.KbCredentialsPatchRequestDataAttributes)1