io.github.carlosthe19916.webservices.managers.BillValidBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sunat-web-services Show documentation
Show all versions of sunat-web-services Show documentation
Sunat Web Services Endpoints
package io.github.carlosthe19916.webservices.managers;
public class BillValidBean {
private final String rucEmisor;
private final String tipoCDP;
private final String serieCDP;
private final String numeroCDP;
private final String tipoDocIdReceptor;
private final String numeroDocIdReceptor;
private final String fechaEmision;
private final double importeTotal;
private final String nroAutorizacion;
private BillValidBean(Builder builder) {
this.rucEmisor = builder.rucEmisor;
this.tipoCDP = builder.tipoCDP;
this.serieCDP = builder.serieCDP;
this.numeroCDP = builder.numeroCDP;
this.tipoDocIdReceptor = builder.tipoDocIdReceptor;
this.numeroDocIdReceptor = builder.numeroDocIdReceptor;
this.fechaEmision = builder.fechaEmision;
this.importeTotal = builder.importeTotal;
this.nroAutorizacion = builder.nroAutorizacion;
}
public String getRucEmisor() {
return rucEmisor;
}
public String getTipoCDP() {
return tipoCDP;
}
public String getSerieCDP() {
return serieCDP;
}
public String getNumeroCDP() {
return numeroCDP;
}
public String getTipoDocIdReceptor() {
return tipoDocIdReceptor;
}
public String getNumeroDocIdReceptor() {
return numeroDocIdReceptor;
}
public String getFechaEmision() {
return fechaEmision;
}
public double getImporteTotal() {
return importeTotal;
}
public String getNroAutorizacion() {
return nroAutorizacion;
}
public static class Builder {
private String rucEmisor;
private String tipoCDP;
private String serieCDP;
private String numeroCDP;
private String tipoDocIdReceptor;
private String numeroDocIdReceptor;
private String fechaEmision;
private double importeTotal;
private String nroAutorizacion;
public Builder rucEmisor(String rucEmisor) {
this.rucEmisor = rucEmisor;
return this;
}
public Builder tipoCDP(String tipoCDP) {
this.tipoCDP = tipoCDP;
return this;
}
public Builder serieCDP(String serieCDP) {
this.serieCDP = serieCDP;
return this;
}
public Builder numeroCDP(String numeroCDP) {
this.numeroCDP = numeroCDP;
return this;
}
public Builder tipoDocIdReceptor(String tipoDocIdReceptor) {
this.tipoDocIdReceptor = tipoDocIdReceptor;
return this;
}
public Builder numeroDocIdReceptor(String numeroDocIdReceptor) {
this.numeroDocIdReceptor = numeroDocIdReceptor;
return this;
}
public Builder fechaEmision(String fechaEmision) {
this.fechaEmision = fechaEmision;
return this;
}
public Builder nroAutorizacion(String nroAutorizacion) {
this.nroAutorizacion = nroAutorizacion;
return this;
}
public BillValidBean build() {
return new BillValidBean(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy