Package ru.moysklad.remap_1_2.clients
Class CounterpartyClient
- java.lang.Object
-
- ru.moysklad.remap_1_2.clients.EntityClientBase
-
- ru.moysklad.remap_1_2.clients.CounterpartyClient
-
- All Implemented Interfaces:
DeleteByIdEndpoint,Endpoint,GetByIdEndpoint<Counterparty>,GetListEndpoint<Counterparty>,HasFilesEndpoint<Counterparty>,HasSettingsEndpoint<CounterpartySettings>,HasStatesEndpoint,MassCreateUpdateDeleteEndpoint<Counterparty>,MassCreateUpdateEndpoint<Counterparty>,MetadataAttributeEndpoint,MetadataEndpoint<CounterpartyMetadataResponse>,PostEndpoint<Counterparty>,PutByIdEndpoint<Counterparty>
public final class CounterpartyClient extends EntityClientBase implements GetListEndpoint<Counterparty>, PostEndpoint<Counterparty>, DeleteByIdEndpoint, MetadataEndpoint<CounterpartyMetadataResponse>, MetadataAttributeEndpoint, GetByIdEndpoint<Counterparty>, PutByIdEndpoint<Counterparty>, MassCreateUpdateDeleteEndpoint<Counterparty>, HasStatesEndpoint, HasSettingsEndpoint<CounterpartySettings>, HasFilesEndpoint<Counterparty>
-
-
Field Summary
-
Fields inherited from class ru.moysklad.remap_1_2.clients.EntityClientBase
api, path
-
-
Constructor Summary
Constructors Constructor Description CounterpartyClient(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.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.HasSettingsEndpoint
settings
-
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
createMetadataAttribute, deleteMetadataAttribute, deleteMetadataAttribute, metadataAttributes, metadataAttributes, updateMetadataAttribute, updateMetadataAttribute
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.MetadataEndpoint
metadata
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.PostEndpoint
create
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.PutByIdEndpoint
update, update
-
-
-
-
Constructor Detail
-
CounterpartyClient
public CounterpartyClient(ApiClient api)
-
-
Method Detail
-
getAccounts
public ListEntity<AgentAccount> getAccounts(String id, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getAccount
public AgentAccount getAccount(String counterpartyId, String accountId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getAccount
public AgentAccount getAccount(Counterparty counterparty, String accountId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getAccount
public AgentAccount getAccount(Counterparty counterparty, AgentAccount account, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getContactPersons
public ListEntity<ContactPerson> getContactPersons(String counterpartyId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getContactPersons
public ListEntity<ContactPerson> getContactPersons(Counterparty counterparty, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
createContactPerson
public ContactPerson createContactPerson(String counterpartyId, ContactPerson newEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getContactPerson
public ContactPerson getContactPerson(String counterpartyId, String contactPersonId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getContactPerson
public ContactPerson getContactPerson(Counterparty counterparty, String contactPersonId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getContactPerson
public ContactPerson getContactPerson(Counterparty counterparty, ContactPerson contactPerson, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateContactPerson
public void updateContactPerson(String counterpartyId, String contactPersonId, ContactPerson updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateContactPerson
public void updateContactPerson(Counterparty counterparty, String contactPersonId, ContactPerson updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateContactPerson
public void updateContactPerson(Counterparty counterparty, ContactPerson contactPerson, ContactPerson updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateContactPerson
public void updateContactPerson(Counterparty counterparty, ContactPerson contactPerson) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getNotes
public ListEntity<Note> getNotes(String counterpartyId, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getNotes
public ListEntity<Note> getNotes(Counterparty counterparty, ApiParam... params) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
createNote
public Note createNote(String counterpartyId, Note newEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getNote
public Note getNote(String counterpartyId, String noteId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getNote
public Note getNote(Counterparty counterparty, String noteId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getNote
public Note getNote(Counterparty counterparty, Note note) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateNote
public void updateNote(String counterpartyId, String noteId, Note updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateNote
public void updateNote(Counterparty counterparty, String noteId, Note updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateNote
public void updateNote(Counterparty counterparty, Note note, Note updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateNote
public void updateNote(Counterparty counterparty, Note note) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
deleteNote
public void deleteNote(String counterpartyId, String noteId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
deleteNote
public void deleteNote(Counterparty counterparty, String noteId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
deleteNote
public void deleteNote(Counterparty counterparty, Note note) 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
-
settingsEntityClass
public Class<CounterpartySettings> settingsEntityClass()
- Specified by:
settingsEntityClassin interfaceHasSettingsEndpoint<CounterpartySettings>
-
-