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

org.openfact.ubl.ubl21.invoice.DefaultUBLInvoiceIDGenerator Maven / Gradle / Ivy

There is a newer version: 1.1.3.Final
Show newest version
package org.openfact.ubl.ubl21.invoice;

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;

@Stateless
@ProviderType("default")
@UBLDocumentType("INVOICE")
public class DefaultUBLInvoiceIDGenerator implements UBLInvoiceIDGenerator {

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy