Class ListingsClient
- java.lang.Object
-
- com.chrt.api.resources.listing.listings.ListingsClient
-
public class ListingsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description ListingsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddDriverParticipantsV1(java.lang.String listingId)Expands the audience of an OPEN DRIVERS listing.booleanaddDriverParticipantsV1(java.lang.String listingId, ListingAddDriverParticipantsReq request)Expands the audience of an OPEN DRIVERS listing.booleanaddDriverParticipantsV1(java.lang.String listingId, ListingAddDriverParticipantsReq request, RequestOptions requestOptions)Expands the audience of an OPEN DRIVERS listing.booleanaddProviderParticipantsV1(java.lang.String listingId)Expands the audience of an OPEN PROVIDERS listing.booleanaddProviderParticipantsV1(java.lang.String listingId, ListingAddProviderParticipantsReq request)Expands the audience of an OPEN PROVIDERS listing.booleanaddProviderParticipantsV1(java.lang.String listingId, ListingAddProviderParticipantsReq request, RequestOptions requestOptions)Expands the audience of an OPEN PROVIDERS listing.Listing1byIdForListerV1(java.lang.String listingId)Fetches the full listing record (includinginternal_notes).Listing1byIdForListerV1(java.lang.String listingId, RequestOptions requestOptions)Fetches the full listing record (includinginternal_notes).ListingForBidder1byIdV1(java.lang.String listingId)Fetches a listing by id in the bidder-facing shape with tasks and mileage.ListingForBidder1byIdV1(java.lang.String listingId, RequestOptions requestOptions)Fetches a listing by id in the bidder-facing shape with tasks and mileage.java.util.List<Listing1>byTaskGroupV1(java.lang.String taskGroupId)Fetches all listings for a single task group.java.util.List<Listing1>byTaskGroupV1(java.lang.String taskGroupId, RequestOptions requestOptions)Fetches all listings for a single task group.booleancancelV1(java.lang.String listingId)Cancels an OPEN listing.booleancancelV1(java.lang.String listingId, RequestOptions requestOptions)Cancels an OPEN listing.java.lang.StringcreateV1(ListingClientCreate1 request)Creates a Listing for a TaskGroup that the caller's org coordinates.java.lang.StringcreateV1(ListingClientCreate1 request, RequestOptions requestOptions)Creates a Listing for a TaskGroup that the caller's org coordinates.ListingListReslistByOrgV1()Lists listings owned (created) by the caller's org with filtering, sorting, and pagination.ListingListReslistByOrgV1(ListingsListByOrgV1Request request)Lists listings owned (created) by the caller's org with filtering, sorting, and pagination.ListingListReslistByOrgV1(ListingsListByOrgV1Request request, RequestOptions requestOptions)Lists listings owned (created) by the caller's org with filtering, sorting, and pagination.ListingForBidderListReslistForDriverBidderV1()Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant.ListingForBidderListReslistForDriverBidderV1(ListingsListForDriverBidderV1Request request)Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant.ListingForBidderListReslistForDriverBidderV1(ListingsListForDriverBidderV1Request request, RequestOptions requestOptions)Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant.ListingForBidderListReslistForProviderBidderV1()Lists PROVIDERS-audience listings where the caller's org is a snapshot participant.ListingForBidderListReslistForProviderBidderV1(ListingsListForProviderBidderV1Request request)Lists PROVIDERS-audience listings where the caller's org is a snapshot participant.ListingForBidderListReslistForProviderBidderV1(ListingsListForProviderBidderV1Request request, RequestOptions requestOptions)Lists PROVIDERS-audience listings where the caller's org is a snapshot participant.booleanremoveDriverParticipantsV1(java.lang.String listingId)Narrows the audience of an OPEN DRIVERS listing.booleanremoveDriverParticipantsV1(java.lang.String listingId, ListingRemoveDriverParticipantsReq request)Narrows the audience of an OPEN DRIVERS listing.booleanremoveDriverParticipantsV1(java.lang.String listingId, ListingRemoveDriverParticipantsReq request, RequestOptions requestOptions)Narrows the audience of an OPEN DRIVERS listing.booleanremoveProviderParticipantsV1(java.lang.String listingId)Narrows the audience of an OPEN PROVIDERS listing.booleanremoveProviderParticipantsV1(java.lang.String listingId, ListingRemoveProviderParticipantsReq request)Narrows the audience of an OPEN PROVIDERS listing.booleanremoveProviderParticipantsV1(java.lang.String listingId, ListingRemoveProviderParticipantsReq request, RequestOptions requestOptions)Narrows the audience of an OPEN PROVIDERS listing.booleanupdateV1(java.lang.String listingId)Partial update of a Listing.booleanupdateV1(java.lang.String listingId, ListingClientUpdate1 request)Partial update of a Listing.booleanupdateV1(java.lang.String listingId, ListingClientUpdate1 request, RequestOptions requestOptions)Partial update of a Listing.RawListingsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
ListingsClient
public ListingsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawListingsClient withRawResponse()
Get responses with HTTP metadata like headers
-
byIdV1
public ListingForBidder1 byIdV1(java.lang.String listingId)
Fetches a listing by id in the bidder-facing shape with tasks and mileage. Visible to the lister and to snapshot participants (as bidder — provider org or driver). Listers wanting the full record callby_id_for_lister/v1. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidder1)
-
byIdV1
public ListingForBidder1 byIdV1(java.lang.String listingId, RequestOptions requestOptions)
Fetches a listing by id in the bidder-facing shape with tasks and mileage. Visible to the lister and to snapshot participants (as bidder — provider org or driver). Listers wanting the full record callby_id_for_lister/v1. | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidder1)
-
byIdForListerV1
public Listing1 byIdForListerV1(java.lang.String listingId)
Fetches the full listing record (includinginternal_notes). Restricted to the lister org — bidders useby_id/v1. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Listing1)
-
byIdForListerV1
public Listing1 byIdForListerV1(java.lang.String listingId, RequestOptions requestOptions)
Fetches the full listing record (includinginternal_notes). Restricted to the lister org — bidders useby_id/v1. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Listing1)
-
byTaskGroupV1
public java.util.List<Listing1> byTaskGroupV1(java.lang.String taskGroupId)
Fetches all listings for a single task group. Typically returns one or two (dual-audience siblings) OPEN listings during active bidding plus any terminal history. Visible only to the task group's coordinator. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[Listing1])
-
byTaskGroupV1
public java.util.List<Listing1> byTaskGroupV1(java.lang.String taskGroupId, RequestOptions requestOptions)
Fetches all listings for a single task group. Typically returns one or two (dual-audience siblings) OPEN listings during active bidding plus any terminal history. Visible only to the task group's coordinator. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[Listing1])
-
listByOrgV1
public ListingListRes listByOrgV1()
Lists listings owned (created) by the caller's org with filtering, sorting, and pagination. Lister view. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingListRes)
-
listByOrgV1
public ListingListRes listByOrgV1(ListingsListByOrgV1Request request)
Lists listings owned (created) by the caller's org with filtering, sorting, and pagination. Lister view. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingListRes)
-
listByOrgV1
public ListingListRes listByOrgV1(ListingsListByOrgV1Request request, RequestOptions requestOptions)
Lists listings owned (created) by the caller's org with filtering, sorting, and pagination. Lister view. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingListRes)
-
listForProviderBidderV1
public ListingForBidderListRes listForProviderBidderV1()
Lists PROVIDERS-audience listings where the caller's org is a snapshot participant. Provider-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (nointernal_notes). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingForBidderListRes)
-
listForProviderBidderV1
public ListingForBidderListRes listForProviderBidderV1(ListingsListForProviderBidderV1Request request)
Lists PROVIDERS-audience listings where the caller's org is a snapshot participant. Provider-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (nointernal_notes). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingForBidderListRes)
-
listForProviderBidderV1
public ListingForBidderListRes listForProviderBidderV1(ListingsListForProviderBidderV1Request request, RequestOptions requestOptions)
Lists PROVIDERS-audience listings where the caller's org is a snapshot participant. Provider-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (nointernal_notes). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (ListingForBidderListRes)
-
listForDriverBidderV1
public ListingForBidderListRes listForDriverBidderV1()
Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant. Driver-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (nointernal_notes). | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidderListRes)
-
listForDriverBidderV1
public ListingForBidderListRes listForDriverBidderV1(ListingsListForDriverBidderV1Request request)
Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant. Driver-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (nointernal_notes). | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidderListRes)
-
listForDriverBidderV1
public ListingForBidderListRes listForDriverBidderV1(ListingsListForDriverBidderV1Request request, RequestOptions requestOptions)
Lists DRIVERS-audience listings where the caller (resolved to a Driver of their org) is a snapshot participant. Driver-side bidder view with filtering, sorting, and pagination. Returns the bidder shape with tasks and mileage (nointernal_notes). | authz: allowed_org_types=[provider], min_org_role=driver | () -> (ListingForBidderListRes)
-
createV1
public java.lang.String createV1(ListingClientCreate1 request)
Creates a Listing for a TaskGroup that the caller's org coordinates. Snapshots participants by unioning ad-hoc picks with expanded bidding groups. Whenauto_open_priced_bid_threadsis True, also auto-opens one BidThread per resolved participant with a lister-side seed Bid carrying default-rate-sheet-derived pricing (falling back to the listing'spro_forma_line_itemswhen no rate sheet is configured for a participant) — listing insert and thread inserts are atomic. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingClientCreate1) -> (PydanticObjectId)
-
createV1
public java.lang.String createV1(ListingClientCreate1 request, RequestOptions requestOptions)
Creates a Listing for a TaskGroup that the caller's org coordinates. Snapshots participants by unioning ad-hoc picks with expanded bidding groups. Whenauto_open_priced_bid_threadsis True, also auto-opens one BidThread per resolved participant with a lister-side seed Bid carrying default-rate-sheet-derived pricing (falling back to the listing'spro_forma_line_itemswhen no rate sheet is configured for a participant) — listing insert and thread inserts are atomic. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingClientCreate1) -> (PydanticObjectId)
-
updateV1
public boolean updateV1(java.lang.String listingId)
Partial update of a Listing. Allowed only whilestatus == OPEN. Audience participant lists are NOT editable here — use add_participants / remove_participants. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingClientUpdate1) -> (bool)
-
updateV1
public boolean updateV1(java.lang.String listingId, ListingClientUpdate1 request)Partial update of a Listing. Allowed only whilestatus == OPEN. Audience participant lists are NOT editable here — use add_participants / remove_participants. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingClientUpdate1) -> (bool)
-
updateV1
public boolean updateV1(java.lang.String listingId, ListingClientUpdate1 request, RequestOptions requestOptions)Partial update of a Listing. Allowed only whilestatus == OPEN. Audience participant lists are NOT editable here — use add_participants / remove_participants. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingClientUpdate1) -> (bool)
-
addProviderParticipantsV1
public boolean addProviderParticipantsV1(java.lang.String listingId)
Expands the audience of an OPEN PROVIDERS listing. Ad-hoc provider picks are unioned with expanded org bidding groups, then$addToSetonto the listing. Rejected for DRIVERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingAddProviderParticipantsReq) -> (bool)
-
addProviderParticipantsV1
public boolean addProviderParticipantsV1(java.lang.String listingId, ListingAddProviderParticipantsReq request)Expands the audience of an OPEN PROVIDERS listing. Ad-hoc provider picks are unioned with expanded org bidding groups, then$addToSetonto the listing. Rejected for DRIVERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingAddProviderParticipantsReq) -> (bool)
-
addProviderParticipantsV1
public boolean addProviderParticipantsV1(java.lang.String listingId, ListingAddProviderParticipantsReq request, RequestOptions requestOptions)Expands the audience of an OPEN PROVIDERS listing. Ad-hoc provider picks are unioned with expanded org bidding groups, then$addToSetonto the listing. Rejected for DRIVERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingAddProviderParticipantsReq) -> (bool)
-
addDriverParticipantsV1
public boolean addDriverParticipantsV1(java.lang.String listingId)
Expands the audience of an OPEN DRIVERS listing. Ad-hoc driver picks are unioned with expanded driver bidding groups, then$addToSetonto the listing. Rejected for PROVIDERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingAddDriverParticipantsReq) -> (bool)
-
addDriverParticipantsV1
public boolean addDriverParticipantsV1(java.lang.String listingId, ListingAddDriverParticipantsReq request)Expands the audience of an OPEN DRIVERS listing. Ad-hoc driver picks are unioned with expanded driver bidding groups, then$addToSetonto the listing. Rejected for PROVIDERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingAddDriverParticipantsReq) -> (bool)
-
addDriverParticipantsV1
public boolean addDriverParticipantsV1(java.lang.String listingId, ListingAddDriverParticipantsReq request, RequestOptions requestOptions)Expands the audience of an OPEN DRIVERS listing. Ad-hoc driver picks are unioned with expanded driver bidding groups, then$addToSetonto the listing. Rejected for PROVIDERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingAddDriverParticipantsReq) -> (bool)
-
removeProviderParticipantsV1
public boolean removeProviderParticipantsV1(java.lang.String listingId)
Narrows the audience of an OPEN PROVIDERS listing. Rejected for any participant with a live (OPEN) BidThread. Rejected for DRIVERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingRemoveProviderParticipantsReq) -> (bool)
-
removeProviderParticipantsV1
public boolean removeProviderParticipantsV1(java.lang.String listingId, ListingRemoveProviderParticipantsReq request)Narrows the audience of an OPEN PROVIDERS listing. Rejected for any participant with a live (OPEN) BidThread. Rejected for DRIVERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingRemoveProviderParticipantsReq) -> (bool)
-
removeProviderParticipantsV1
public boolean removeProviderParticipantsV1(java.lang.String listingId, ListingRemoveProviderParticipantsReq request, RequestOptions requestOptions)Narrows the audience of an OPEN PROVIDERS listing. Rejected for any participant with a live (OPEN) BidThread. Rejected for DRIVERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingRemoveProviderParticipantsReq) -> (bool)
-
removeDriverParticipantsV1
public boolean removeDriverParticipantsV1(java.lang.String listingId)
Narrows the audience of an OPEN DRIVERS listing. Rejected for any driver with a live (OPEN) BidThread. Rejected for PROVIDERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingRemoveDriverParticipantsReq) -> (bool)
-
removeDriverParticipantsV1
public boolean removeDriverParticipantsV1(java.lang.String listingId, ListingRemoveDriverParticipantsReq request)Narrows the audience of an OPEN DRIVERS listing. Rejected for any driver with a live (OPEN) BidThread. Rejected for PROVIDERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingRemoveDriverParticipantsReq) -> (bool)
-
removeDriverParticipantsV1
public boolean removeDriverParticipantsV1(java.lang.String listingId, ListingRemoveDriverParticipantsReq request, RequestOptions requestOptions)Narrows the audience of an OPEN DRIVERS listing. Rejected for any driver with a live (OPEN) BidThread. Rejected for PROVIDERS listings. | authz: allowed_org_types=[provider], min_org_role=operator | (ListingRemoveDriverParticipantsReq) -> (bool)
-
cancelV1
public boolean cancelV1(java.lang.String listingId)
Cancels an OPEN listing. All OPEN BidThreads on this listing are system-rejected. No shipping or billing side-effects. Idempotent: no-op on an already-terminal listing. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
cancelV1
public boolean cancelV1(java.lang.String listingId, RequestOptions requestOptions)Cancels an OPEN listing. All OPEN BidThreads on this listing are system-rejected. No shipping or billing side-effects. Idempotent: no-op on an already-terminal listing. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
-