Class RateSheetsClient
- java.lang.Object
-
- com.chrt.api.resources.billing.ratesheets.RateSheetsClient
-
public class RateSheetsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RateSheetsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanarchiveV1(java.lang.String rateSheetId, RateSheetsArchiveV1Request request)Archives or unarchives a rate sheet.booleanarchiveV1(java.lang.String rateSheetId, RateSheetsArchiveV1Request request, RequestOptions requestOptions)Archives or unarchives a rate sheet.java.lang.StringcreateV1(RateSheetClientCreate1 request)Creates a rate sheet.java.lang.StringcreateV1(RateSheetClientCreate1 request, RequestOptions requestOptions)Creates a rate sheet.RateSheet1getV1(java.lang.String rateSheetId)Retrieves a rate sheet by ID.RateSheet1getV1(java.lang.String rateSheetId, RequestOptions requestOptions)Retrieves a rate sheet by ID.RateSheetListResponselistByOrgV1()Lists rate sheets for the caller's organization with filtering, sorting, and pagination.RateSheetListResponselistByOrgV1(RateSheetsListByOrgV1Request request)Lists rate sheets for the caller's organization with filtering, sorting, and pagination.RateSheetListResponselistByOrgV1(RateSheetsListByOrgV1Request request, RequestOptions requestOptions)Lists rate sheets for the caller's organization with filtering, sorting, and pagination.booleanupdateDefaultForConnectionV1(RateSheetsUpdateDefaultForConnectionV1Request request)Sets or clears a rate sheet as the default for a connection.booleanupdateDefaultForConnectionV1(RateSheetsUpdateDefaultForConnectionV1Request request, RequestOptions requestOptions)Sets or clears a rate sheet as the default for a connection.booleanupdateDefaultForDriverV1(RateSheetsUpdateDefaultForDriverV1Request request)Sets or clears a rate sheet as the default for a driver.booleanupdateDefaultForDriverV1(RateSheetsUpdateDefaultForDriverV1Request request, RequestOptions requestOptions)Sets or clears a rate sheet as the default for a driver.booleanupdateOrgDefaultForServiceTypeV1(RateSheetsUpdateOrgDefaultForServiceTypeV1Request request)Sets or clears the org's default rate sheet for a payment vector type and service type.booleanupdateOrgDefaultForServiceTypeV1(RateSheetsUpdateOrgDefaultForServiceTypeV1Request request, RequestOptions requestOptions)Sets or clears the org's default rate sheet for a payment vector type and service type.RateSheet1updateV1(java.lang.String rateSheetId)Updates a rate sheet.RateSheet1updateV1(java.lang.String rateSheetId, RateSheetClientUpdate1 request)Updates a rate sheet.RateSheet1updateV1(java.lang.String rateSheetId, RateSheetClientUpdate1 request, RequestOptions requestOptions)Updates a rate sheet.RawRateSheetsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RateSheetsClient
public RateSheetsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawRateSheetsClient withRawResponse()
Get responses with HTTP metadata like headers
-
getV1
public RateSheet1 getV1(java.lang.String rateSheetId)
Retrieves a rate sheet by ID. Only the owning org can fetch. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheet1)
-
getV1
public RateSheet1 getV1(java.lang.String rateSheetId, RequestOptions requestOptions)
Retrieves a rate sheet by ID. Only the owning org can fetch. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheet1)
-
updateV1
public RateSheet1 updateV1(java.lang.String rateSheetId)
Updates a rate sheet. Only name, comments, cargo_types, and vehicle_types can be changed. Use the archive endpoint for archiving. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientUpdate1) -> (RateSheet1)
-
updateV1
public RateSheet1 updateV1(java.lang.String rateSheetId, RateSheetClientUpdate1 request)
Updates a rate sheet. Only name, comments, cargo_types, and vehicle_types can be changed. Use the archive endpoint for archiving. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientUpdate1) -> (RateSheet1)
-
updateV1
public RateSheet1 updateV1(java.lang.String rateSheetId, RateSheetClientUpdate1 request, RequestOptions requestOptions)
Updates a rate sheet. Only name, comments, cargo_types, and vehicle_types can be changed. Use the archive endpoint for archiving. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientUpdate1) -> (RateSheet1)
-
listByOrgV1
public RateSheetListResponse listByOrgV1()
Lists rate sheets for the caller's organization with filtering, sorting, and pagination. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheetListResponse)
-
listByOrgV1
public RateSheetListResponse listByOrgV1(RateSheetsListByOrgV1Request request)
Lists rate sheets for the caller's organization with filtering, sorting, and pagination. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheetListResponse)
-
listByOrgV1
public RateSheetListResponse listByOrgV1(RateSheetsListByOrgV1Request request, RequestOptions requestOptions)
Lists rate sheets for the caller's organization with filtering, sorting, and pagination. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheetListResponse)
-
createV1
public java.lang.String createV1(RateSheetClientCreate1 request)
Creates a rate sheet. Couriers and forwarders only. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientCreate1) -> (PydanticObjectId)
-
createV1
public java.lang.String createV1(RateSheetClientCreate1 request, RequestOptions requestOptions)
Creates a rate sheet. Couriers and forwarders only. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientCreate1) -> (PydanticObjectId)
-
archiveV1
public boolean archiveV1(java.lang.String rateSheetId, RateSheetsArchiveV1Request request)Archives or unarchives a rate sheet. When archiving, automatically removes the rate sheet from all default assignments (OrgPrivateData, Connections, Drivers). | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
-
archiveV1
public boolean archiveV1(java.lang.String rateSheetId, RateSheetsArchiveV1Request request, RequestOptions requestOptions)Archives or unarchives a rate sheet. When archiving, automatically removes the rate sheet from all default assignments (OrgPrivateData, Connections, Drivers). | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
-
updateOrgDefaultForServiceTypeV1
public boolean updateOrgDefaultForServiceTypeV1(RateSheetsUpdateOrgDefaultForServiceTypeV1Request request)
Sets or clears the org's default rate sheet for a payment vector type and service type. Pass rate_sheet_id to set a default, or omit it to clear the default. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
-
updateOrgDefaultForServiceTypeV1
public boolean updateOrgDefaultForServiceTypeV1(RateSheetsUpdateOrgDefaultForServiceTypeV1Request request, RequestOptions requestOptions)
Sets or clears the org's default rate sheet for a payment vector type and service type. Pass rate_sheet_id to set a default, or omit it to clear the default. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
-
updateDefaultForConnectionV1
public boolean updateDefaultForConnectionV1(RateSheetsUpdateDefaultForConnectionV1Request request)
Sets or clears a rate sheet as the default for a connection. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per connection. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
-
updateDefaultForConnectionV1
public boolean updateDefaultForConnectionV1(RateSheetsUpdateDefaultForConnectionV1Request request, RequestOptions requestOptions)
Sets or clears a rate sheet as the default for a connection. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per connection. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
-
updateDefaultForDriverV1
public boolean updateDefaultForDriverV1(RateSheetsUpdateDefaultForDriverV1Request request)
Sets or clears a rate sheet as the default for a driver. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per driver. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
-
updateDefaultForDriverV1
public boolean updateDefaultForDriverV1(RateSheetsUpdateDefaultForDriverV1Request request, RequestOptions requestOptions)
Sets or clears a rate sheet as the default for a driver. Pass rate_sheet_id to set a default, or omit it to clear the default. One default per service type per driver. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (bool)
-
-