Class RawRateSheetMappingsClient
- java.lang.Object
-
- com.chrt.api.resources.billing.ratesheetmappings.RawRateSheetMappingsClient
-
public class RawRateSheetMappingsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawRateSheetMappingsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChrtApiHttpResponse<java.lang.Boolean>appendRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId)Appendsrate_sheet_idto the per-TG-type list on a mapping.ChrtApiHttpResponse<java.lang.Boolean>appendRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId, RequestOptions requestOptions)Appendsrate_sheet_idto the per-TG-type list on a mapping.ChrtApiHttpResponse<java.lang.String>createV1(RateSheetMappingClientCreate1 request)Creates a rate sheet mapping owned by the caller's org.ChrtApiHttpResponse<java.lang.String>createV1(RateSheetMappingClientCreate1 request, RequestOptions requestOptions)Creates a rate sheet mapping owned by the caller's org.ChrtApiHttpResponse<java.lang.Boolean>deleteV1(java.lang.String id)Deletes a rate sheet mapping owned by the caller's org.ChrtApiHttpResponse<java.lang.Boolean>deleteV1(java.lang.String id, RequestOptions requestOptions)Deletes a rate sheet mapping owned by the caller's org.ChrtApiHttpResponse<RateSheetMapping1>getByIdV1(java.lang.String id)Retrieves a specific rate sheet mapping owned by the caller's org (owned_by_org_id == caller.org_id).ChrtApiHttpResponse<RateSheetMapping1>getByIdV1(java.lang.String id, RequestOptions requestOptions)Retrieves a specific rate sheet mapping owned by the caller's org (owned_by_org_id == caller.org_id).ChrtApiHttpResponse<java.util.List<java.lang.String>>listRateSheetIdsByCounterpartyV1(TaskGroupTypeEnum1 tgType)Lists rate sheet IDs mapped to a counterparty for the requested task group type.ChrtApiHttpResponse<java.util.List<java.lang.String>>listRateSheetIdsByCounterpartyV1(TaskGroupTypeEnum1 tgType, RateSheetMappingsListRateSheetIdsByCounterpartyV1Request request)Lists rate sheet IDs mapped to a counterparty for the requested task group type.ChrtApiHttpResponse<java.util.List<java.lang.String>>listRateSheetIdsByCounterpartyV1(TaskGroupTypeEnum1 tgType, RateSheetMappingsListRateSheetIdsByCounterpartyV1Request request, RequestOptions requestOptions)Lists rate sheet IDs mapped to a counterparty for the requested task group type.ChrtApiHttpResponse<RateSheetMappingListRes>listV1()Lists rate sheet mappings owned by the caller's org.ChrtApiHttpResponse<RateSheetMappingListRes>listV1(RateSheetMappingsListV1Request request)Lists rate sheet mappings owned by the caller's org.ChrtApiHttpResponse<RateSheetMappingListRes>listV1(RateSheetMappingsListV1Request request, RequestOptions requestOptions)Lists rate sheet mappings owned by the caller's org.ChrtApiHttpResponse<java.lang.Boolean>removeRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId)Removesrate_sheet_idfrom the per-TG-type list on a mapping.ChrtApiHttpResponse<java.lang.Boolean>removeRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId, RequestOptions requestOptions)Removesrate_sheet_idfrom the per-TG-type list on a mapping.ChrtApiHttpResponse<java.lang.Boolean>setDefaultRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId)Promotesrate_sheet_idto the 0-index (default) slot of the per-TG-type list, preserving the relative order of the other ids.ChrtApiHttpResponse<java.lang.Boolean>setDefaultRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId, RequestOptions requestOptions)Promotesrate_sheet_idto the 0-index (default) slot of the per-TG-type list, preserving the relative order of the other ids.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawRateSheetMappingsClient
public RawRateSheetMappingsClient(ClientOptions clientOptions)
-
-
Method Detail
-
getByIdV1
public ChrtApiHttpResponse<RateSheetMapping1> getByIdV1(java.lang.String id)
Retrieves a specific rate sheet mapping owned by the caller's org (owned_by_org_id == caller.org_id). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (RateSheetMapping1)
-
getByIdV1
public ChrtApiHttpResponse<RateSheetMapping1> getByIdV1(java.lang.String id, RequestOptions requestOptions)
Retrieves a specific rate sheet mapping owned by the caller's org (owned_by_org_id == caller.org_id). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (RateSheetMapping1)
-
listV1
public ChrtApiHttpResponse<RateSheetMappingListRes> listV1()
Lists rate sheet mappings owned by the caller's org. Pagination only — no search/filter. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (RateSheetMappingListRes)
-
listV1
public ChrtApiHttpResponse<RateSheetMappingListRes> listV1(RateSheetMappingsListV1Request request)
Lists rate sheet mappings owned by the caller's org. Pagination only — no search/filter. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (RateSheetMappingListRes)
-
listV1
public ChrtApiHttpResponse<RateSheetMappingListRes> listV1(RateSheetMappingsListV1Request request, RequestOptions requestOptions)
Lists rate sheet mappings owned by the caller's org. Pagination only — no search/filter. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (RateSheetMappingListRes)
-
listRateSheetIdsByCounterpartyV1
public ChrtApiHttpResponse<java.util.List<java.lang.String>> listRateSheetIdsByCounterpartyV1(TaskGroupTypeEnum1 tgType)
Lists rate sheet IDs mapped to a counterparty for the requested task group type. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[PydanticObjectId])
-
listRateSheetIdsByCounterpartyV1
public ChrtApiHttpResponse<java.util.List<java.lang.String>> listRateSheetIdsByCounterpartyV1(TaskGroupTypeEnum1 tgType, RateSheetMappingsListRateSheetIdsByCounterpartyV1Request request)
Lists rate sheet IDs mapped to a counterparty for the requested task group type. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[PydanticObjectId])
-
listRateSheetIdsByCounterpartyV1
public ChrtApiHttpResponse<java.util.List<java.lang.String>> listRateSheetIdsByCounterpartyV1(TaskGroupTypeEnum1 tgType, RateSheetMappingsListRateSheetIdsByCounterpartyV1Request request, RequestOptions requestOptions)
Lists rate sheet IDs mapped to a counterparty for the requested task group type. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[PydanticObjectId])
-
createV1
public ChrtApiHttpResponse<java.lang.String> createV1(RateSheetMappingClientCreate1 request)
Creates a rate sheet mapping owned by the caller's org. The caller becomesowned_by_org_id. Body must set exactly one ofcounterparty_org_id/counterparty_driver_id(XOR). | authz: allowed_org_types=[provider], min_org_role=operator | (RateSheetMappingClientCreate1) -> (PydanticObjectId)
-
createV1
public ChrtApiHttpResponse<java.lang.String> createV1(RateSheetMappingClientCreate1 request, RequestOptions requestOptions)
Creates a rate sheet mapping owned by the caller's org. The caller becomesowned_by_org_id. Body must set exactly one ofcounterparty_org_id/counterparty_driver_id(XOR). | authz: allowed_org_types=[provider], min_org_role=operator | (RateSheetMappingClientCreate1) -> (PydanticObjectId)
-
deleteV1
public ChrtApiHttpResponse<java.lang.Boolean> deleteV1(java.lang.String id)
Deletes a rate sheet mapping owned by the caller's org. Does not cascade — rate sheet documents themselves are untouched. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
deleteV1
public ChrtApiHttpResponse<java.lang.Boolean> deleteV1(java.lang.String id, RequestOptions requestOptions)
Deletes a rate sheet mapping owned by the caller's org. Does not cascade — rate sheet documents themselves are untouched. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
appendRateSheetV1
public ChrtApiHttpResponse<java.lang.Boolean> appendRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId)
Appendsrate_sheet_idto the per-TG-type list on a mapping. Idempotent — already-present ids are a no-op. The 0-index entry remains the default; use the set_default route to promote a different sheet. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
appendRateSheetV1
public ChrtApiHttpResponse<java.lang.Boolean> appendRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId, RequestOptions requestOptions)
Appendsrate_sheet_idto the per-TG-type list on a mapping. Idempotent — already-present ids are a no-op. The 0-index entry remains the default; use the set_default route to promote a different sheet. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
removeRateSheetV1
public ChrtApiHttpResponse<java.lang.Boolean> removeRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId)
Removesrate_sheet_idfrom the per-TG-type list on a mapping. Idempotent — absent ids are a no-op. If the removed id was the 0-index default, the next id (if any) becomes the new default. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
removeRateSheetV1
public ChrtApiHttpResponse<java.lang.Boolean> removeRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId, RequestOptions requestOptions)
Removesrate_sheet_idfrom the per-TG-type list on a mapping. Idempotent — absent ids are a no-op. If the removed id was the 0-index default, the next id (if any) becomes the new default. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
setDefaultRateSheetV1
public ChrtApiHttpResponse<java.lang.Boolean> setDefaultRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId)
Promotesrate_sheet_idto the 0-index (default) slot of the per-TG-type list, preserving the relative order of the other ids. If the id isn't already in the list it is added at index 0. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
setDefaultRateSheetV1
public ChrtApiHttpResponse<java.lang.Boolean> setDefaultRateSheetV1(java.lang.String id, TaskGroupTypeEnum1 tgType, java.lang.String rateSheetId, RequestOptions requestOptions)
Promotesrate_sheet_idto the 0-index (default) slot of the per-TG-type list, preserving the relative order of the other ids. If the id isn't already in the list it is added at index 0. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
-
-