Class PricelistClient
- java.lang.Object
-
- ru.moysklad.remap_1_2.clients.EntityClientBase
-
- ru.moysklad.remap_1_2.clients.documents.PricelistClient
-
- All Implemented Interfaces:
DeleteByIdEndpoint,DocumentMetadataEndpoint<MetadataAttributeSharedStatesResponse<DocumentAttribute>>,Endpoint,ExportEndpoint,GetByIdEndpoint<Pricelist>,GetListEndpoint<Pricelist>,HasFilesEndpoint<Pricelist>,HasStatesEndpoint,MassCreateUpdateDeleteEndpoint<Pricelist>,MassCreateUpdateEndpoint<Pricelist>,MetadataAttributeEndpoint,MetadataDocumentAttributeEndpoint,PostEndpoint<Pricelist>,PublicationEndpoint,PutByIdEndpoint<Pricelist>
public final class PricelistClient extends EntityClientBase implements GetListEndpoint<Pricelist>, PostEndpoint<Pricelist>, DeleteByIdEndpoint, DocumentMetadataEndpoint<MetadataAttributeSharedStatesResponse<DocumentAttribute>>, MetadataDocumentAttributeEndpoint, GetByIdEndpoint<Pricelist>, PutByIdEndpoint<Pricelist>, MassCreateUpdateDeleteEndpoint<Pricelist>, ExportEndpoint, PublicationEndpoint, HasStatesEndpoint, HasFilesEndpoint<Pricelist>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ru.moysklad.remap_1_2.clients.endpoints.ExportEndpoint
ExportEndpoint.PrintRequest
-
Nested classes/interfaces inherited from interface ru.moysklad.remap_1_2.clients.endpoints.PublicationEndpoint
PublicationEndpoint.PublicationPayload
-
-
Field Summary
-
Fields inherited from class ru.moysklad.remap_1_2.clients.EntityClientBase
api, path
-
-
Constructor Summary
Constructors Constructor Description PricelistClient(ApiClient api)
-
Method Summary
-
Methods inherited from class ru.moysklad.remap_1_2.clients.EntityClientBase
api, path, positionEntityClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.DeleteByIdEndpoint
delete, delete
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.DocumentMetadataEndpoint
metadata
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.Endpoint
api, path, positionEntityClass
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.ExportEndpoint
export, export, export, export, export, export, export, export
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.GetByIdEndpoint
get, get
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.GetListEndpoint
get
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.HasFilesEndpoint
addFile, addFile, deleteFile, deleteFile, deleteFile, deleteFile, deleteFiles, deleteFiles, getFiles, getFiles, updateFiles, updateFiles
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.HasStatesEndpoint
states
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.MassCreateUpdateDeleteEndpoint
delete
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.MassCreateUpdateEndpoint
createOrUpdate
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.MetadataAttributeEndpoint
deleteMetadataAttribute
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.MetadataDocumentAttributeEndpoint
createMetadataAttribute, createMetadataAttribute, deleteMetadataAttribute, deleteMetadataAttribute, metadataAttributes, metadataAttributes, metadataDocumentAttributes, updateMetadataAttribute, updateMetadataAttribute, updateMetadataAttribute, updateMetadataAttribute
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.PostEndpoint
create
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.PublicationEndpoint
delelePublication, getPublication, getPublications, publish
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.PutByIdEndpoint
update, update
-
-
-
-
Constructor Detail
-
PricelistClient
public PricelistClient(ApiClient api)
-
-
Method Detail
-
postPositions
public List<Pricelist.PricelistRow> postPositions(String documentId, List<Pricelist.PricelistRow> updatedEntities) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
postPositions
public List<Pricelist.PricelistRow> postPositions(Pricelist document, List<Pricelist.PricelistRow> updatedEntities) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
postPosition
public Pricelist.PricelistRow postPosition(String documentId, Pricelist.PricelistRow updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
postPosition
public Pricelist.PricelistRow postPosition(Pricelist document, Pricelist.PricelistRow updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getPositions
public ListEntity<Pricelist.PricelistRow> getPositions(String documentId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getPositions
public ListEntity<Pricelist.PricelistRow> getPositions(Pricelist document, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getPosition
public Pricelist.PricelistRow getPosition(String documentId, String positionId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getPosition
public Pricelist.PricelistRow getPosition(Pricelist document, String positionId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
putPosition
public void putPosition(String documentId, String positionId, Pricelist.PricelistRow updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
putPosition
public void putPosition(Pricelist document, String positionId, Pricelist.PricelistRow updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
putPosition
public void putPosition(Pricelist document, Pricelist.PricelistRow position, Pricelist.PricelistRow updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
putPosition
public void putPosition(Pricelist document, Pricelist.PricelistRow position) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
delete
public void delete(String documentId, String positionId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
delete
public void delete(Pricelist document, String positionId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
delete
public void delete(Pricelist document, Pricelist.PricelistRow position) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
entityClass
public Class<? extends MetaEntity> entityClass()
- Specified by:
entityClassin interfaceEndpoint- Overrides:
entityClassin classEntityClientBase
-
metaEntityClass
public Class<? extends MetaEntity> metaEntityClass()
- Specified by:
metaEntityClassin interfaceEndpoint- Overrides:
metaEntityClassin classEntityClientBase
-
-