@Path(value="/admin/organizations")
@Consumes(value="application/json")
public interface DocumentsService
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
checkTicket(String organizationName,
String id) |
javax.ws.rs.core.Response |
createCreditNote(String organizationName,
DocumentRequestRepresentation creditNote,
boolean async) |
javax.ws.rs.core.Response |
createCreditNoteFromString(String organizationName,
String creditNote,
boolean async) |
javax.ws.rs.core.Response |
createDebitNote(String organizationName,
DocumentRequestRepresentation debitNote,
boolean async) |
javax.ws.rs.core.Response |
createDebitNoteFromString(String organizationName,
String debitNote,
boolean async) |
javax.ws.rs.core.Response |
createInvoice(String organizationName,
DocumentRequestRepresentation invoice,
boolean async) |
javax.ws.rs.core.Response |
createInvoiceFromString(String organizationName,
String invoice,
boolean async) |
javax.ws.rs.core.Response |
createPerception(String organizationName,
DocumentoSunatRepresentation perception,
boolean async) |
javax.ws.rs.core.Response |
createPerceptionFromString(String organizationName,
String perception,
boolean async) |
javax.ws.rs.core.Response |
createRetention(String organizationName,
DocumentoSunatRepresentation retention,
boolean async) |
javax.ws.rs.core.Response |
createRetentionFromString(String organizationName,
String retention,
boolean async) |
javax.ws.rs.core.Response |
createVoidedDocument(String organizationName,
VoidedRepresentation voidedDocument,
boolean async) |
javax.ws.rs.core.Response |
createVoidedDocumentFromString(String organizationName,
String voidedDocument,
boolean async) |
javax.ws.rs.core.Response |
getCdr(String organizationName,
String id) |
javax.ws.rs.core.Response |
getDocumentById(String organizationName,
String id) |
javax.ws.rs.core.Response |
getPdf(String organizationName,
String id) |
javax.ws.rs.core.Response |
getXml(String organizationName,
String id) |
javax.ws.rs.core.Response |
search(String organizationName,
SearchCriteriaRepresentation criteria) |
javax.ws.rs.core.Response |
sendToCustomThirdParty(String organizationName,
String id,
ThirdPartyEmailRepresentation thirdParty) |
javax.ws.rs.core.Response |
sendToThirdParty(String organizationName,
String id) |
javax.ws.rs.core.Response |
updateCreditNote(String organizationName,
String id,
DocumentRequestRepresentation creditNote,
boolean async) |
javax.ws.rs.core.Response |
updateCreditNoteFromString(String organizationName,
String id,
String creditNote,
boolean async) |
javax.ws.rs.core.Response |
updateDebitNote(String organizationName,
String id,
DocumentRequestRepresentation debitNote,
boolean async) |
javax.ws.rs.core.Response |
updateDebitNoteFromString(String organizationName,
String id,
String debitNote,
boolean async) |
javax.ws.rs.core.Response |
updateInvoice(String organizationName,
String id,
DocumentRequestRepresentation invoice,
boolean async) |
javax.ws.rs.core.Response |
updateInvoiceFromString(String organizationName,
String id,
String invoice,
boolean async) |
javax.ws.rs.core.Response |
updatePerception(String organizationName,
String id,
DocumentoSunatRepresentation perception,
boolean async) |
javax.ws.rs.core.Response |
updatePerceptionFromString(String organizationName,
String id,
String perception,
boolean async) |
javax.ws.rs.core.Response |
updateRetention(String organizationName,
String id,
DocumentoSunatRepresentation retention,
boolean async) |
javax.ws.rs.core.Response |
updateRetentionFromString(String organizationName,
String id,
String retention,
boolean async) |
javax.ws.rs.core.Response |
updateVoidedDocument(String organizationName,
String id,
VoidedRepresentation voidedDocument,
boolean async) |
javax.ws.rs.core.Response |
updateVoidedDocumentFromString(String organizationName,
String id,
String voidedDocument,
boolean async) |
@GET
@Path(value="/{organizationName}/documents/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response getDocumentById(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id)
@GET
@Path(value="/{organizationName}/documents/{id}/representation/xml")
@Produces(value="application/json")
javax.ws.rs.core.Response getXml(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id)
@GET
@Path(value="/{organizationName}/documents/{id}/report")
@Produces(value="application/json")
javax.ws.rs.core.Response getPdf(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id)
@POST
@Path(value="/{organizationName}/documents/{id}/send-to-third-party")
@Produces(value="application/json")
javax.ws.rs.core.Response sendToThirdParty(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id)
@POST
@Path(value="/{organizationName}/documents/{id}/send-to-third-party-by-email")
@Produces(value="application/json")
javax.ws.rs.core.Response sendToCustomThirdParty(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
ThirdPartyEmailRepresentation thirdParty)
@POST
@Path(value="/{organizationName}/documents/search")
@Produces(value="application/json")
javax.ws.rs.core.Response search(@PathParam(value="organizationName")
String organizationName,
SearchCriteriaRepresentation criteria)
@GET
@Path(value="/{organizationName}/sunat/documents/{id}/cdr")
@Produces(value="application/json")
javax.ws.rs.core.Response getCdr(@PathParam(value="organizationName")
String organizationName,
@QueryParam(value="id")
String id)
@GET
@Path(value="/{organizationName}/sunat/documents/{id}/check-ticket")
@Produces(value="application/json")
javax.ws.rs.core.Response checkTicket(@PathParam(value="organizationName")
String organizationName,
@QueryParam(value="id")
String id)
@POST
@Path(value="/{organizationName}/sunat/documents/invoices")
@Produces(value="application/json")
javax.ws.rs.core.Response createInvoice(@PathParam(value="organizationName")
String organizationName,
DocumentRequestRepresentation invoice,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/invoices")
@Produces(value="application/json")
javax.ws.rs.core.Response createInvoiceFromString(@PathParam(value="organizationName")
String organizationName,
String invoice,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/invoices/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateInvoice(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
DocumentRequestRepresentation invoice,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/invoices/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateInvoiceFromString(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
String invoice,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/credit-notes")
@Produces(value="application/json")
javax.ws.rs.core.Response createCreditNote(@PathParam(value="organizationName")
String organizationName,
DocumentRequestRepresentation creditNote,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/credit-notes")
@Produces(value="application/json")
javax.ws.rs.core.Response createCreditNoteFromString(@PathParam(value="organizationName")
String organizationName,
String creditNote,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/credit-notes/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateCreditNote(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
DocumentRequestRepresentation creditNote,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/credit-notes/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateCreditNoteFromString(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
String creditNote,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/debit-notes")
@Produces(value="application/json")
javax.ws.rs.core.Response createDebitNote(@PathParam(value="organizationName")
String organizationName,
DocumentRequestRepresentation debitNote,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/debit-notes")
@Produces(value="application/json")
javax.ws.rs.core.Response createDebitNoteFromString(@PathParam(value="organizationName")
String organizationName,
String debitNote,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/debit-notes/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateDebitNote(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
DocumentRequestRepresentation debitNote,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/debit-notes/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateDebitNoteFromString(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
String debitNote,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/perceptions")
@Produces(value="application/json")
javax.ws.rs.core.Response createPerception(@PathParam(value="organizationName")
String organizationName,
DocumentoSunatRepresentation perception,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/perceptions")
@Produces(value="application/json")
javax.ws.rs.core.Response createPerceptionFromString(@PathParam(value="organizationName")
String organizationName,
String perception,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/perceptions/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updatePerception(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
DocumentoSunatRepresentation perception,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/perceptions/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updatePerceptionFromString(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
String perception,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/retentions")
@Produces(value="application/json")
javax.ws.rs.core.Response createRetention(@PathParam(value="organizationName")
String organizationName,
DocumentoSunatRepresentation retention,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/retentions")
@Produces(value="application/json")
javax.ws.rs.core.Response createRetentionFromString(@PathParam(value="organizationName")
String organizationName,
String retention,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/retentions/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateRetention(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
DocumentoSunatRepresentation retention,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/retentions/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateRetentionFromString(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
String retention,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/voided-documents")
@Produces(value="application/json")
javax.ws.rs.core.Response createVoidedDocument(@PathParam(value="organizationName")
String organizationName,
VoidedRepresentation voidedDocument,
@QueryParam(value="async")
boolean async)
@POST
@Path(value="/{organizationName}/sunat/documents/voided-documents")
@Produces(value="application/json")
javax.ws.rs.core.Response createVoidedDocumentFromString(@PathParam(value="organizationName")
String organizationName,
String voidedDocument,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/voided-documents/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateVoidedDocument(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
VoidedRepresentation voidedDocument,
@QueryParam(value="async")
boolean async)
@PUT
@Path(value="/{organizationName}/sunat/documents/voided-documents/{id}")
@Produces(value="application/json")
javax.ws.rs.core.Response updateVoidedDocumentFromString(@PathParam(value="organizationName")
String organizationName,
@PathParam(value="id")
String id,
String voidedDocument,
@QueryParam(value="async")
boolean async)
Copyright © 2018. All rights reserved.