All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openfact.ubl.ubl21.creditnote.DefaultUBLCreditNoteIDGenerator Maven / Gradle / Ivy

package org.openfact.ubl.ubl21.creditnote;

import org.openfact.models.OrganizationModel;
import org.openfact.models.utils.OpenfactModelUtils;
import org.openfact.ubl.ubl21.qualifiers.UBLDocumentType;
import org.openfact.provider.ProviderType;

import javax.ejb.Stateless;

@ProviderType("default")
@UBLDocumentType("CREDIT_NOTE")
@Stateless
public class DefaultUBLCreditNoteIDGenerator implements UBLCreditNoteIDGenerator {

    @Override
    public String generateID(OrganizationModel organization, Object o) {
        return OpenfactModelUtils.generateId();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy