public interface Vendors
MarketplaceClient.vendors() to access this API.| Modifier and Type | Method and Description |
|---|---|
Vendor |
createVendor(Vendor vendor)
Creates a new vendor.
|
Page<VendorSummary> |
find(VendorQuery query)
Gets a list of vendors.
|
com.atlassian.fugue.Option<Vendor> |
getById(VendorId id)
Queries a single vendor.
|
Vendor |
updateVendor(Vendor original,
Vendor updated)
Attempts to modify an existing vendor.
|
com.atlassian.fugue.Option<Vendor> getById(VendorId id) throws MpacException
id - the unique identifier of the vendorOption.none() if there is no matchMpacException - if the server was unavailable or returned an errorPage<VendorSummary> find(VendorQuery query) throws MpacException
query - a VendorQuery which can constrain the result setMpacException - if the server was unavailable or returned an errorVendor createVendor(Vendor vendor) throws MpacException
Use ModelBuilders.vendor() to build a new
Vendor object.
vendor - the vendor to createVendor representing the vendor in its current state after being createdMpacException - if the server was unavailable or returned an errorVendor updateVendor(Vendor original, Vendor updated) throws MpacException
getById(VendorId); then, build another instance that includes any
changes you want to make, using
ModelBuilders.vendor(Vendor).original - the existing vendorupdated - a copy of the vendor that includes some changesMpacException - if the server was unavailable or returned an errorCopyright © 2016 Atlassian. All rights reserved.