Package ru.moysklad.remap_1_2.clients
Class BundleClient
- java.lang.Object
-
- ru.moysklad.remap_1_2.clients.EntityClientBase
-
- ru.moysklad.remap_1_2.clients.BundleClient
-
- All Implemented Interfaces:
DeleteByIdEndpoint,Endpoint,GetByIdEndpoint<Bundle>,GetListEndpoint<Bundle>,HasFilesEndpoint<Bundle>,HasImagesEndpoint<Bundle>,MassCreateUpdateDeleteEndpoint<Bundle>,MassCreateUpdateEndpoint<Bundle>,MetadataAttributeEndpoint,MetadataEndpoint,PostEndpoint<Bundle>,ProductMetadataAttributeEndpoint,ProductMetadataEndpoint,PutByIdEndpoint<Bundle>
public final class BundleClient extends EntityClientBase implements GetListEndpoint<Bundle>, PostEndpoint<Bundle>, GetByIdEndpoint<Bundle>, PutByIdEndpoint<Bundle>, ProductMetadataEndpoint, ProductMetadataAttributeEndpoint, MassCreateUpdateDeleteEndpoint<Bundle>, DeleteByIdEndpoint, HasImagesEndpoint<Bundle>, HasFilesEndpoint<Bundle>
-
-
Field Summary
-
Fields inherited from class ru.moysklad.remap_1_2.clients.EntityClientBase
api, path
-
-
Constructor Summary
Constructors Constructor Description BundleClient(ApiClient api)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteComponent(String bundleId, String componentId)voiddeleteComponent(Bundle entity, String componentId)voiddeleteComponent(Bundle entity, Bundle.ComponentEntity component)Class<? extends MetaEntity>entityClass()Bundle.ComponentEntitygetComponent(String bundleId, String componentId, ApiParam... params)Bundle.ComponentEntitygetComponent(Bundle bundle, String componentId, ApiParam... params)Bundle.ComponentEntitygetComponent(Bundle bundle, Bundle.ComponentEntity component, ApiParam... params)ListEntity<Bundle.ComponentEntity>getComponents(String bundleId, ApiParam... params)ListEntity<Bundle.ComponentEntity>getComponents(Bundle bundle, ApiParam... params)Class<? extends MetaEntity>metaEntityClass()-
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.Endpoint
api, path, positionEntityClass
-
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.HasImagesEndpoint
addImage, addImage, deleteImage, deleteImage, deleteImage, deleteImage, deleteImages, deleteImages, getImages, getImages, updateImages, updateImages
-
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.PostEndpoint
create
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.ProductMetadataAttributeEndpoint
createMetadataAttribute, deleteMetadataAttribute, deleteMetadataAttribute, metadataAttributes, metadataAttributes, updateMetadataAttribute, updateMetadataAttribute
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.ProductMetadataEndpoint
metadata
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.PutByIdEndpoint
update, update
-
-
-
-
Constructor Detail
-
BundleClient
public BundleClient(ApiClient api)
-
-
Method Detail
-
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
-
getComponents
public ListEntity<Bundle.ComponentEntity> getComponents(String bundleId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getComponents
public ListEntity<Bundle.ComponentEntity> getComponents(Bundle bundle, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getComponent
public Bundle.ComponentEntity getComponent(String bundleId, String componentId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getComponent
public Bundle.ComponentEntity getComponent(Bundle bundle, String componentId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getComponent
public Bundle.ComponentEntity getComponent(Bundle bundle, Bundle.ComponentEntity component, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
deleteComponent
public void deleteComponent(String bundleId, String componentId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
deleteComponent
public void deleteComponent(Bundle entity, String componentId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
deleteComponent
public void deleteComponent(Bundle entity, Bundle.ComponentEntity component) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
-