public final class DefaultVendorsApi extends BaseApi implements VendorsApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultVendorsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultVendorsApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
BulkCreateVendorsResponse |
bulkCreateVendors(BulkCreateVendorsRequest body)
Creates one or more [Vendor]($m/Vendor) objects to represent suppliers to a seller.
|
CompletableFuture<BulkCreateVendorsResponse> |
bulkCreateVendorsAsync(BulkCreateVendorsRequest body)
Creates one or more [Vendor]($m/Vendor) objects to represent suppliers to a seller.
|
BulkRetrieveVendorsResponse |
bulkRetrieveVendors(BulkRetrieveVendorsRequest body)
Retrieves one or more vendors of specified [Vendor]($m/Vendor) IDs.
|
CompletableFuture<BulkRetrieveVendorsResponse> |
bulkRetrieveVendorsAsync(BulkRetrieveVendorsRequest body)
Retrieves one or more vendors of specified [Vendor]($m/Vendor) IDs.
|
BulkUpdateVendorsResponse |
bulkUpdateVendors(BulkUpdateVendorsRequest body)
Updates one or more of existing [Vendor]($m/Vendor) objects as suppliers to a seller.
|
CompletableFuture<BulkUpdateVendorsResponse> |
bulkUpdateVendorsAsync(BulkUpdateVendorsRequest body)
Updates one or more of existing [Vendor]($m/Vendor) objects as suppliers to a seller.
|
CreateVendorResponse |
createVendor(CreateVendorRequest body)
Creates a single [Vendor]($m/Vendor) object to represent a supplier to a seller.
|
CompletableFuture<CreateVendorResponse> |
createVendorAsync(CreateVendorRequest body)
Creates a single [Vendor]($m/Vendor) object to represent a supplier to a seller.
|
RetrieveVendorResponse |
retrieveVendor(String vendorId)
Retrieves the vendor of a specified [Vendor]($m/Vendor) ID.
|
CompletableFuture<RetrieveVendorResponse> |
retrieveVendorAsync(String vendorId)
Retrieves the vendor of a specified [Vendor]($m/Vendor) ID.
|
SearchVendorsResponse |
searchVendors(SearchVendorsRequest body)
Searches for vendors using a filter against supported [Vendor]($m/Vendor) properties and a
supported sorter.
|
CompletableFuture<SearchVendorsResponse> |
searchVendorsAsync(SearchVendorsRequest body)
Searches for vendors using a filter against supported [Vendor]($m/Vendor) properties and a
supported sorter.
|
UpdateVendorResponse |
updateVendor(UpdateVendorRequest body,
String vendorId)
Updates an existing [Vendor]($m/Vendor) object as a supplier to a seller.
|
CompletableFuture<UpdateVendorResponse> |
updateVendorAsync(UpdateVendorRequest body,
String vendorId)
Updates an existing [Vendor]($m/Vendor) object as a supplier to a seller.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultVendorsApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.public DefaultVendorsApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers, HttpCallback httpCallback)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.httpCallback - Callback to be called before and after the HTTP call.public BulkCreateVendorsResponse bulkCreateVendors(BulkCreateVendorsRequest body) throws ApiException, IOException
bulkCreateVendors in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<BulkCreateVendorsResponse> bulkCreateVendorsAsync(BulkCreateVendorsRequest body)
bulkCreateVendorsAsync in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BulkRetrieveVendorsResponse bulkRetrieveVendors(BulkRetrieveVendorsRequest body) throws ApiException, IOException
bulkRetrieveVendors in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<BulkRetrieveVendorsResponse> bulkRetrieveVendorsAsync(BulkRetrieveVendorsRequest body)
bulkRetrieveVendorsAsync in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public BulkUpdateVendorsResponse bulkUpdateVendors(BulkUpdateVendorsRequest body) throws ApiException, IOException
bulkUpdateVendors in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<BulkUpdateVendorsResponse> bulkUpdateVendorsAsync(BulkUpdateVendorsRequest body)
bulkUpdateVendorsAsync in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public CreateVendorResponse createVendor(CreateVendorRequest body) throws ApiException, IOException
createVendor in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<CreateVendorResponse> createVendorAsync(CreateVendorRequest body)
createVendorAsync in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public SearchVendorsResponse searchVendors(SearchVendorsRequest body) throws ApiException, IOException
searchVendors in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<SearchVendorsResponse> searchVendorsAsync(SearchVendorsRequest body)
searchVendorsAsync in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.public RetrieveVendorResponse retrieveVendor(String vendorId) throws ApiException, IOException
retrieveVendor in interface VendorsApivendorId - Required parameter: ID of the [Vendor]($m/Vendor) to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<RetrieveVendorResponse> retrieveVendorAsync(String vendorId)
retrieveVendorAsync in interface VendorsApivendorId - Required parameter: ID of the [Vendor]($m/Vendor) to retrieve.public UpdateVendorResponse updateVendor(UpdateVendorRequest body, String vendorId) throws ApiException, IOException
updateVendor in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.vendorId - Required parameter: Example:ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<UpdateVendorResponse> updateVendorAsync(UpdateVendorRequest body, String vendorId)
updateVendorAsync in interface VendorsApibody - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.vendorId - Required parameter: Example:Copyright © 2022. All rights reserved.