pub struct MetrcClient { /* private fields */ }Implementations§
Source§impl MetrcClient
impl MetrcClient
pub fn new(base_url: &str, vendor_key: &str, user_key: &str) -> MetrcClient
Sourcepub async fn plants_create_additives_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_additives_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdditives V1 Permissions Required:
- Manage Plants Additives
Sourcepub async fn plants_create_additives_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_additives_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdditives V2 Records additive usage details applied to specific plants at a Facility.
Permissions Required:
- Manage Plants Additives
Sourcepub async fn plants_create_additives_bylocation_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_additives_bylocation_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdditivesBylocation V1 Permissions Required:
- Manage Plants
- Manage Plants Additives
Sourcepub async fn plants_create_additives_bylocation_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_additives_bylocation_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdditivesBylocation V2 Records additive usage for plants based on their location within a specified Facility.
Permissions Required:
- Manage Plants
- Manage Plants Additives
Sourcepub async fn plants_create_additives_bylocation_usingtemplate_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_additives_bylocation_usingtemplate_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdditivesBylocationUsingtemplate V2 Records additive usage for plants by location using a predefined additive template at a specified Facility.
Permissions Required:
- Manage Plants Additives
Sourcepub async fn plants_create_additives_usingtemplate_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_additives_usingtemplate_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdditivesUsingtemplate V2 Records additive usage for plants using predefined additive templates at a specified Facility.
Permissions Required:
- Manage Plants Additives
Sourcepub async fn plants_create_changegrowthphases_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_changegrowthphases_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateChangegrowthphases V1 Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plants_create_harvestplants_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_harvestplants_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateHarvestplants V1 NOTE: If HarvestName is excluded from the request body, or if it is passed in as null, the harvest name is auto-generated.
Permissions Required:
- View Veg/Flower Plants
- Manicure/Harvest Veg/Flower Plants
Sourcepub async fn plants_create_manicure_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_manicure_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateManicure V2 Creates harvest product records from plant batches at a specified Facility.
Permissions Required:
- View Veg/Flower Plants
- Manicure/Harvest Veg/Flower Plants
Sourcepub async fn plants_create_manicureplants_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_manicureplants_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateManicureplants V1 Permissions Required:
- View Veg/Flower Plants
- Manicure/Harvest Veg/Flower Plants
Sourcepub async fn plants_create_moveplants_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_moveplants_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateMoveplants V1 Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plants_create_plantbatch_package_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_plantbatch_package_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePlantbatchPackage V1 Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn plants_create_plantbatch_package_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_plantbatch_package_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePlantbatchPackage V2 Creates packages from plant batches at a specified Facility.
Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn plants_create_plantings_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_plantings_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePlantings V1 Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plants_create_plantings_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_plantings_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePlantings V2 Creates new plant batches at a specified Facility from existing plant data.
Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plants_create_waste_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_waste_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateWaste V1 Permissions Required:
- Manage Plants Waste
Sourcepub async fn plants_create_waste_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_create_waste_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateWaste V2 Records waste events for plants at a Facility, including method, reason, and location details.
Permissions Required:
- Manage Plants Waste
Sourcepub async fn plants_delete_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_delete_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V1 Permissions Required:
- View Veg/Flower Plants
- Destroy Veg/Flower Plants
Sourcepub async fn plants_delete_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_delete_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Removes plants from a Facility’s inventory while recording the reason for their disposal.
Permissions Required:
- View Veg/Flower Plants
- Destroy Veg/Flower Plants
Sourcepub async fn plants_get_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V1 Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves a Plant by Id.
Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_additives_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_additives_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAdditives V1 Permissions Required:
- View/Manage Plants Additives
Sourcepub async fn plants_get_additives_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_additives_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAdditives V2 Retrieves additive records applied to plants at a specified Facility.
Permissions Required:
- View/Manage Plants Additives
Sourcepub async fn plants_get_additives_types_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_additives_types_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
§GET GetAdditivesTypes V1 Permissions Required:
Sourcepub async fn plants_get_additives_types_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_additives_types_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAdditivesTypes V2 Retrieves a list of all plant additive types defined within a Facility.
Permissions Required:
- None
Sourcepub async fn plants_get_by_label_v1(
&self,
label: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_by_label_v1( &self, label: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetByLabel V1 Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_by_label_v2(
&self,
label: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_by_label_v2( &self, label: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetByLabel V2 Retrieves a Plant by label.
Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_flowering_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_flowering_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetFlowering V1 Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_flowering_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_flowering_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetFlowering V2 Retrieves flowering-phase plants at a specified Facility, optionally filtered by last modified date.
Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_growth_phases_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_growth_phases_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetGrowthPhases V1 Permissions Required:
- None
Sourcepub async fn plants_get_growth_phases_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_growth_phases_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetGrowthPhases V2 Retrieves the list of growth phases supported by a specified Facility.
Permissions Required:
- None
Sourcepub async fn plants_get_inactive_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_inactive_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V1 Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves inactive plants at a specified Facility.
Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_mother_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_mother_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetMother V2 Retrieves mother-phase plants at a specified Facility.
Permissions Required:
- View Mother Plants
Sourcepub async fn plants_get_mother_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_mother_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetMotherInactive V2 Retrieves inactive mother-phase plants at a specified Facility.
Permissions Required:
- View Mother Plants
Sourcepub async fn plants_get_mother_onhold_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_mother_onhold_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetMotherOnhold V2 Retrieves mother-phase plants currently marked as on hold at a specified Facility.
Permissions Required:
- View Mother Plants
Sourcepub async fn plants_get_onhold_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_onhold_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetOnhold V1 Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_onhold_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_onhold_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetOnhold V2 Retrieves plants that are currently on hold at a specified Facility.
Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_vegetative_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_vegetative_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetVegetative V1 Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_vegetative_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_vegetative_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetVegetative V2 Retrieves vegetative-phase plants at a specified Facility, optionally filtered by last modified date.
Permissions Required:
- View Veg/Flower Plants
Sourcepub async fn plants_get_waste_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_waste_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWaste V2 Retrieves a list of recorded plant waste events for a specific Facility.
Permissions Required:
- View Plants Waste
Sourcepub async fn plants_get_waste_methods_all_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_waste_methods_all_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWasteMethodsAll V1 Permissions Required:
- None
Sourcepub async fn plants_get_waste_methods_all_v2(
&self,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_waste_methods_all_v2( &self, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWasteMethodsAll V2 Retrieves a list of all available plant waste methods for use within a Facility.
Permissions Required:
- None
Sourcepub async fn plants_get_waste_package_v2(
&self,
id: &str,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_waste_package_v2( &self, id: &str, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWastePackage V2 Retrieves a list of package records linked to the specified plantWasteId for a given facility.
Permissions Required:
- View Plants Waste
Sourcepub async fn plants_get_waste_plant_v2(
&self,
id: &str,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_waste_plant_v2( &self, id: &str, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWastePlant V2 Retrieves a list of plants records linked to the specified plantWasteId for a given facility.
Permissions Required:
- View Plants Waste
Sourcepub async fn plants_get_waste_reasons_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_waste_reasons_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWasteReasons V1 Permissions Required:
- None
Sourcepub async fn plants_get_waste_reasons_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_get_waste_reasons_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWasteReasons V2 Retriveves available reasons for recording mature plant waste at a specified Facility.
Permissions Required:
- None
Sourcepub async fn plants_update_adjust_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_update_adjust_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateAdjust V2 Adjusts the recorded count of plants at a specified Facility.
Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plants_update_growthphase_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_update_growthphase_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateGrowthphase V2 Changes the growth phases of plants within a specified Facility.
Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plants_update_harvest_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_update_harvest_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateHarvest V2 Processes whole plant Harvest data for a specific Facility. NOTE: If HarvestName is excluded from the request body, or if it is passed in as null, the harvest name is auto-generated.
Permissions Required:
- View Veg/Flower Plants
- Manicure/Harvest Veg/Flower Plants
Sourcepub async fn plants_update_location_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_update_location_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateLocation V2 Moves plant batches to new locations within a specified Facility.
Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plants_update_merge_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_update_merge_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateMerge V2 Merges multiple plant groups into a single group within a Facility.
Permissions Required:
- View Veg/Flower Plants
- Manicure/Harvest Veg/Flower Plants
Sourcepub async fn plants_update_split_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_update_split_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateSplit V2 Splits an existing plant group into multiple groups within a Facility.
Permissions Required:
- View Plant
Sourcepub async fn plants_update_strain_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_update_strain_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateStrain V2 Updates the strain information for plants within a Facility.
Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plants_update_tag_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plants_update_tag_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateTag V2 Replaces existing plant tags with new tags for plants within a Facility.
Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn retail_id_create_associate_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn retail_id_create_associate_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAssociate V2 Facilitate association of QR codes and Package labels. This will return the count of packages and QR codes associated that were added or replaced.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Retail ID(Write)
- WebApi Retail ID Read Write State (All or WriteOnly)
- Industry/View Packages
- One of the following: Industry/Facility Type/Can Receive Associate Product Label, Licensee/Receive Associate Product Label or Admin/Employees/Packages Page/Product Labels(Manage)
Sourcepub async fn retail_id_create_generate_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn retail_id_create_generate_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateGenerate V2 Allows you to generate a specific quantity of QR codes. Id value returned (issuance ID) could be used for printing.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Retail ID(Write)
- WebApi Retail ID Read Write State (All or WriteOnly)
- Industry/View Packages
- One of the following: Industry/Facility Type/Can Download Product Label, Licensee/Download Product Label or Admin/Employees/Packages Page/Product Labels(Manage)
Sourcepub async fn retail_id_create_merge_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn retail_id_create_merge_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateMerge V2 Merge and adjust one source to one target Package. First Package detected will be processed as target Package. This requires an action reason with name containing the ‘Merge’ word and setup with ‘Package adjustment’ area.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Retail ID(Write)
- WebApi Retail ID Read Write State (All or WriteOnly)
- Key Value Settings/Retail ID Merge Packages Enabled
Sourcepub async fn retail_id_create_package_info_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn retail_id_create_package_info_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePackageInfo V2 Retrieves Package information for given list of Package labels.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Retail ID(Write)
- WebApi Retail ID Read Write State (All or WriteOnly)
- Industry/View Packages
- Admin/Employees/Packages Page/Product Labels(Manage)
Sourcepub async fn retail_id_get_receive_by_label_v2(
&self,
label: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn retail_id_get_receive_by_label_v2( &self, label: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetReceiveByLabel V2 Get a list of eaches (Retail ID QR code URL) and sibling tags based on given Package label.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Manage RetailId
- WebApi Retail ID Read Write State (All or ReadOnly)
- Industry/View Packages
- One of the following: Industry/Facility Type/Can Receive Associate Product Label, Licensee/Receive Associate Product Label or Admin/Employees/Packages Page/Product Labels(View or Manage)
Sourcepub async fn retail_id_get_receive_qr_by_short_code_v2(
&self,
short_code: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn retail_id_get_receive_qr_by_short_code_v2( &self, short_code: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetReceiveQrByShortCode V2 Get a list of eaches (Retail ID QR code URL) and sibling tags based on given short code value (first segment in Retail ID QR code URL).
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Manage RetailId
- WebApi Retail ID Read Write State (All or ReadOnly)
- Industry/View Packages
- One of the following: Industry/Facility Type/Can Receive Associate Product Label, Licensee/Receive Associate Product Label or Admin/Employees/Packages Page/Product Labels(View or Manage)
Sourcepub async fn sandbox_create_integrator_setup_v2(
&self,
user_key: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sandbox_create_integrator_setup_v2( &self, user_key: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateIntegratorSetup V2 This endpoint is used to handle the setup of an external integrator for sandbox environments. It processes a request to create a new sandbox user for integration based on an external source’s API key. It checks whether the API key is valid, manages the user creation process, and returns an appropriate status based on the current state of the request.
Permissions Required:
- None
Sourcepub async fn sublocations_create_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sublocations_create_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V2 Creates new sublocation records for a Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn sublocations_delete_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sublocations_delete_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Archives an existing Sublocation record for a Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn sublocations_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sublocations_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves a Sublocation by its Id, with an optional license number.
Permissions Required:
- Manage Locations
Sourcepub async fn sublocations_get_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sublocations_get_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves a list of active sublocations for the current Facility, optionally filtered by last modified date range.
Permissions Required:
- Manage Locations
Sourcepub async fn sublocations_get_inactive_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sublocations_get_inactive_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves a list of inactive sublocations for the specified Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn sublocations_update_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sublocations_update_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT Update V2 Updates existing sublocation records for a specified Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn facilities_get_all_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn facilities_get_all_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAll V1 This endpoint provides a list of facilities for which the authenticated user has access.
Permissions Required:
- None
Sourcepub async fn facilities_get_all_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn facilities_get_all_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAll V2 This endpoint provides a list of facilities for which the authenticated user has access.
Permissions Required:
- None
Sourcepub async fn harvests_create_finish_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_create_finish_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateFinish V1 Permissions Required:
- View Harvests
- Finish/Discontinue Harvests
Sourcepub async fn harvests_create_package_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_create_package_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePackage V1 Permissions Required:
- View Harvests
- Manage Harvests
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn harvests_create_package_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_create_package_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePackage V2 Creates packages from harvested products for a specified Facility.
Permissions Required:
- View Harvests
- Manage Harvests
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn harvests_create_package_testing_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_create_package_testing_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePackageTesting V1 Permissions Required:
- View Harvests
- Manage Harvests
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn harvests_create_package_testing_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_create_package_testing_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePackageTesting V2 Creates packages for testing from harvested products for a specified Facility.
Permissions Required:
- View Harvests
- Manage Harvests
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn harvests_create_remove_waste_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_create_remove_waste_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateRemoveWaste V1 Permissions Required:
- View Harvests
- Manage Harvests
Sourcepub async fn harvests_create_unfinish_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_create_unfinish_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateUnfinish V1 Permissions Required:
- View Harvests
- Finish/Discontinue Harvests
Sourcepub async fn harvests_create_waste_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_create_waste_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateWaste V2 Records Waste from harvests for a specified Facility. NOTE: The IDs passed in the request body are the harvest IDs for which you are documenting waste.
Permissions Required:
- View Harvests
- Manage Harvests
Sourcepub async fn harvests_delete_waste_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_delete_waste_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteWaste V2 Discontinues a specific harvest waste record by Id for the specified Facility.
Permissions Required:
- View Harvests
- Discontinue Harvest Waste
Sourcepub async fn harvests_get_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V1 Permissions Required:
- View Harvests
Sourcepub async fn harvests_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves a Harvest by its Id, optionally validated against a specified Facility License Number.
Permissions Required:
- View Harvests
Sourcepub async fn harvests_get_active_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_active_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V1 Permissions Required:
- View Harvests
Sourcepub async fn harvests_get_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves a list of active harvests for a specified Facility.
Permissions Required:
- View Harvests
Sourcepub async fn harvests_get_inactive_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_inactive_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V1 Permissions Required:
- View Harvests
Sourcepub async fn harvests_get_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves a list of inactive harvests for a specified Facility.
Permissions Required:
- View Harvests
Sourcepub async fn harvests_get_onhold_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_onhold_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetOnhold V1 Permissions Required:
- View Harvests
Sourcepub async fn harvests_get_onhold_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_onhold_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetOnhold V2 Retrieves a list of harvests on hold for a specified Facility.
Permissions Required:
- View Harvests
Sourcepub async fn harvests_get_waste_v2(
&self,
harvest_id: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_waste_v2( &self, harvest_id: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWaste V2 Retrieves a list of Waste records for a specified Harvest, identified by its Harvest Id, within a Facility identified by its License Number.
Permissions Required:
- View Harvests
Sourcepub async fn harvests_get_waste_types_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_waste_types_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWasteTypes V1 Permissions Required:
- None
Sourcepub async fn harvests_get_waste_types_v2(
&self,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_get_waste_types_v2( &self, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWasteTypes V2 Retrieves a list of Waste types for harvests.
Permissions Required:
- None
Sourcepub async fn harvests_update_finish_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_update_finish_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateFinish V2 Marks one or more harvests as finished for the specified Facility.
Permissions Required:
- View Harvests
- Finish/Discontinue Harvests
Sourcepub async fn harvests_update_location_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_update_location_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateLocation V2 Updates the Location of Harvest for a specified Facility.
Permissions Required:
- View Harvests
- Manage Harvests
Sourcepub async fn harvests_update_move_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_update_move_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateMove V1 Permissions Required:
- View Harvests
- Manage Harvests
Sourcepub async fn harvests_update_rename_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_update_rename_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateRename V1 Permissions Required:
- View Harvests
- Manage Harvests
Sourcepub async fn harvests_update_rename_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_update_rename_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateRename V2 Renames one or more harvests for the specified Facility.
Permissions Required:
- View Harvests
- Manage Harvests
Sourcepub async fn harvests_update_restore_harvested_plants_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_update_restore_harvested_plants_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateRestoreHarvestedPlants V2 Restores previously harvested plants to their original state for the specified Facility.
Permissions Required:
- View Harvests
- Finish/Discontinue Harvests
Sourcepub async fn harvests_update_unfinish_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn harvests_update_unfinish_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateUnfinish V2 Reopens one or more previously finished harvests for the specified Facility.
Permissions Required:
- View Harvests
- Finish/Discontinue Harvests
Sourcepub async fn plant_batches_create_additives_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_additives_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdditives V1 Permissions Required:
- Manage Plants Additives
Sourcepub async fn plant_batches_create_additives_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_additives_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdditives V2 Records Additive usage details for plant batches at a specific Facility.
Permissions Required:
- Manage Plants Additives
Sourcepub async fn plant_batches_create_additives_usingtemplate_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_additives_usingtemplate_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdditivesUsingtemplate V2 Records Additive usage for plant batches at a Facility using predefined additive templates.
Permissions Required:
- Manage Plants Additives
Sourcepub async fn plant_batches_create_adjust_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_adjust_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdjust V1 Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
Sourcepub async fn plant_batches_create_adjust_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_adjust_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdjust V2 Applies Facility specific adjustments to plant batches based on submitted reasons and input data.
Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
Sourcepub async fn plant_batches_create_changegrowthphase_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_changegrowthphase_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateChangegrowthphase V1 Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plant_batches_create_growthphase_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_growthphase_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateGrowthphase V2 Updates the growth phase of plants at a specified Facility based on tracking information.
Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plant_batches_create_package_v2(
&self,
is_from_mother_plant: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_package_v2( &self, is_from_mother_plant: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePackage V2 Creates packages from plant batches at a Facility, with optional support for packaging from mother plants.
Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn plant_batches_create_package_frommotherplant_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_package_frommotherplant_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePackageFrommotherplant V1 Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn plant_batches_create_package_frommotherplant_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_package_frommotherplant_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePackageFrommotherplant V2 Creates packages from mother plants at the specified Facility.
Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn plant_batches_create_plantings_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_plantings_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePlantings V2 Creates new plantings for a Facility by generating plant batches based on provided planting details.
Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
Sourcepub async fn plant_batches_create_split_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_split_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateSplit V1 Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
Sourcepub async fn plant_batches_create_split_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_split_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateSplit V2 Splits an existing Plant Batch into multiple groups at the specified Facility.
Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
Sourcepub async fn plant_batches_create_waste_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_waste_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateWaste V1 Permissions Required:
- Manage Plants Waste
Sourcepub async fn plant_batches_create_waste_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_create_waste_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateWaste V2 Records waste information for plant batches based on the submitted data for the specified Facility.
Permissions Required:
- Manage Plants Waste
Sourcepub async fn plant_batches_createpackages_v1(
&self,
is_from_mother_plant: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_createpackages_v1( &self, is_from_mother_plant: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Createpackages V1 Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn plant_batches_createplantings_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_createplantings_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Createplantings V1 Permissions Required:
- View Immature Plants
- Manage Immature Plants Inventory
Sourcepub async fn plant_batches_delete_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_delete_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V1 Permissions Required:
- View Immature Plants
- Destroy Immature Plants
Sourcepub async fn plant_batches_delete_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_delete_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Completes the destruction of plant batches based on the provided input data.
Permissions Required:
- View Immature Plants
- Destroy Immature Plants
Sourcepub async fn plant_batches_get_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V1 Permissions Required:
- View Immature Plants
Sourcepub async fn plant_batches_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves a Plant Batch by Id.
Permissions Required:
- View Immature Plants
Sourcepub async fn plant_batches_get_active_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_active_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V1 Permissions Required:
- View Immature Plants
Sourcepub async fn plant_batches_get_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves a list of active plant batches for the specified Facility, optionally filtered by last modified date.
Permissions Required:
- View Immature Plants
Sourcepub async fn plant_batches_get_inactive_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_inactive_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V1 Permissions Required:
- View Immature Plants
Sourcepub async fn plant_batches_get_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves a list of inactive plant batches for the specified Facility, optionally filtered by last modified date.
Permissions Required:
- View Immature Plants
Sourcepub async fn plant_batches_get_types_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_types_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V1 Permissions Required:
- None
Sourcepub async fn plant_batches_get_types_v2(
&self,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_types_v2( &self, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V2 Retrieves a list of plant batch types.
Permissions Required:
- None
Sourcepub async fn plant_batches_get_waste_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_waste_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWaste V2 Retrieves waste details associated with plant batches at a specified Facility.
Permissions Required:
- View Plants Waste
Sourcepub async fn plant_batches_get_waste_reasons_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_waste_reasons_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWasteReasons V1 Permissions Required:
- None
Sourcepub async fn plant_batches_get_waste_reasons_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_get_waste_reasons_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetWasteReasons V2 Retrieves a list of valid waste reasons associated with immature plant batches for the specified Facility.
Permissions Required:
- None
Sourcepub async fn plant_batches_update_location_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_update_location_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateLocation V2 Moves one or more plant batches to new locations with in a specified Facility.
Permissions Required:
- View Immature Plants
- Manage Immature Plants
Sourcepub async fn plant_batches_update_moveplantbatches_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_update_moveplantbatches_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateMoveplantbatches V1 Permissions Required:
- View Immature Plants
Sourcepub async fn plant_batches_update_name_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_update_name_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateName V2 Renames plant batches at a specified Facility.
Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plant_batches_update_strain_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_update_strain_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateStrain V2 Changes the strain of plant batches at a specified Facility.
Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
Sourcepub async fn plant_batches_update_tag_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn plant_batches_update_tag_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateTag V2 Replaces tags for plant batches at a specified Facility.
Permissions Required:
- View Veg/Flower Plants
- Manage Veg/Flower Plants Inventory
GET GetPackageAvailable V2 Returns a list of available package tags. NOTE: This is a premium endpoint.
Permissions Required:
- Manage Tags
GET GetPlantAvailable V2 Returns a list of available plant tags. NOTE: This is a premium endpoint.
Permissions Required:
- Manage Tags
GET GetStaged V2 Returns a list of staged tags. NOTE: This is a premium endpoint.
Permissions Required:
- Manage Tags
- RetailId.AllowPackageStaging Key Value enabled
Sourcepub async fn transfers_create_external_incoming_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_create_external_incoming_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateExternalIncoming V1 Permissions Required:
- Transfers
Sourcepub async fn transfers_create_external_incoming_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_create_external_incoming_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateExternalIncoming V2 Creates external incoming shipment plans for a Facility.
Permissions Required:
- Manage Transfers
Sourcepub async fn transfers_create_templates_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_create_templates_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateTemplates V1 Permissions Required:
- Transfer Templates
Sourcepub async fn transfers_create_templates_outgoing_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_create_templates_outgoing_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateTemplatesOutgoing V2 Creates new transfer templates for a Facility.
Permissions Required:
- Manage Transfer Templates
Sourcepub async fn transfers_delete_external_incoming_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_delete_external_incoming_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteExternalIncoming V1 Permissions Required:
- Transfers
Sourcepub async fn transfers_delete_external_incoming_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_delete_external_incoming_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteExternalIncoming V2 Voids an external incoming shipment plan for a Facility.
Permissions Required:
- Manage Transfers
Sourcepub async fn transfers_delete_templates_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_delete_templates_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteTemplates V1 Permissions Required:
- Transfer Templates
Sourcepub async fn transfers_delete_templates_outgoing_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_delete_templates_outgoing_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteTemplatesOutgoing V2 Archives a transfer template for a Facility.
Permissions Required:
- Manage Transfer Templates
Sourcepub async fn transfers_get_deliveries_packages_states_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_deliveries_packages_states_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesPackagesStates V1 Permissions Required:
- None
Sourcepub async fn transfers_get_deliveries_packages_states_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_deliveries_packages_states_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesPackagesStates V2 Returns a list of available shipment Package states.
Permissions Required:
- None
Sourcepub async fn transfers_get_delivery_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDelivery V1 Please note: that the {id} parameter above represents a Shipment Plan ID.
Permissions Required:
- Transfers
Sourcepub async fn transfers_get_delivery_v2(
&self,
id: &str,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_v2( &self, id: &str, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDelivery V2 Retrieves a list of shipment deliveries for a given Transfer Id. Please note: The {id} parameter above represents a Transfer Id.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_delivery_package_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_package_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryPackage V1 Please note: The {id} parameter above represents a Transfer Delivery ID, not a Manifest Number.
Permissions Required:
- Transfers
Sourcepub async fn transfers_get_delivery_package_v2(
&self,
id: &str,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_package_v2( &self, id: &str, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryPackage V2 Retrieves a list of packages associated with a given Transfer Delivery Id. Please note: The {id} parameter above represents a Transfer Delivery Id, not a Manifest Number.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_delivery_package_requiredlabtestbatches_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_package_requiredlabtestbatches_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryPackageRequiredlabtestbatches V1 Please note: The {id} parameter above represents a Transfer Delivery Package ID, not a Manifest Number.
Permissions Required:
- Transfers
Sourcepub async fn transfers_get_delivery_package_requiredlabtestbatches_v2(
&self,
id: &str,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_package_requiredlabtestbatches_v2( &self, id: &str, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryPackageRequiredlabtestbatches V2 Retrieves a list of required lab test batches for a given Transfer Delivery Package Id. Please note: The {id} parameter above represents a Transfer Delivery Package Id, not a Manifest Number.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_delivery_package_wholesale_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_package_wholesale_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryPackageWholesale V1 Please note: The {id} parameter above represents a Transfer Delivery ID, not a Manifest Number.
Permissions Required:
- Transfers
Sourcepub async fn transfers_get_delivery_package_wholesale_v2(
&self,
id: &str,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_package_wholesale_v2( &self, id: &str, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryPackageWholesale V2 Retrieves a list of wholesale shipment packages for a given Transfer Delivery Id. Please note: The {id} parameter above represents a Transfer Delivery Id, not a Manifest Number.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_delivery_transporters_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_transporters_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryTransporters V1 Please note: that the {id} parameter above represents a Shipment Delivery ID.
Permissions Required:
- Transfers
Sourcepub async fn transfers_get_delivery_transporters_v2(
&self,
id: &str,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_transporters_v2( &self, id: &str, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryTransporters V2 Retrieves a list of transporters for a given Transfer Delivery Id. Please note: The {id} parameter above represents a Transfer Delivery Id, not a Manifest Number.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_delivery_transporters_details_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_transporters_details_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryTransportersDetails V1 Please note: The {id} parameter above represents a Shipment Delivery ID.
Permissions Required:
- Transfers
Sourcepub async fn transfers_get_delivery_transporters_details_v2(
&self,
id: &str,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_delivery_transporters_details_v2( &self, id: &str, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryTransportersDetails V2 Retrieves a list of transporter details for a given Transfer Delivery Id. Please note: The {id} parameter above represents a Transfer Delivery Id, not a Manifest Number.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_hub_v2(
&self,
estimated_arrival_end: Option<String>,
estimated_arrival_start: Option<String>,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_hub_v2( &self, estimated_arrival_end: Option<String>, estimated_arrival_start: Option<String>, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetHub V2 Retrieves a list of transfer hub shipments for a Facility, filtered by either last modified or estimated arrival date range.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_incoming_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_incoming_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetIncoming V1 Permissions Required:
- Transfers
Sourcepub async fn transfers_get_incoming_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_incoming_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetIncoming V2 Retrieves a list of incoming shipments for a Facility, optionally filtered by last modified date range.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_outgoing_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_outgoing_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetOutgoing V1 Permissions Required:
- Transfers
Sourcepub async fn transfers_get_outgoing_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_outgoing_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetOutgoing V2 Retrieves a list of outgoing shipments for a Facility, optionally filtered by last modified date range.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_rejected_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_rejected_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetRejected V1 Permissions Required:
- Transfers
Sourcepub async fn transfers_get_rejected_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_rejected_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetRejected V2 Retrieves a list of shipments with rejected packages for a Facility.
Permissions Required:
- Manage Transfers
- View Transfers
Sourcepub async fn transfers_get_templates_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplates V1 Permissions Required:
- Transfer Templates
Sourcepub async fn transfers_get_templates_delivery_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_delivery_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplatesDelivery V1 Permissions Required:
- Transfer Templates
Sourcepub async fn transfers_get_templates_delivery_package_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_delivery_package_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplatesDeliveryPackage V1 Please note: The {id} parameter above represents a Transfer Template Delivery ID, not a Manifest Number.
Permissions Required:
- Transfers
Sourcepub async fn transfers_get_templates_delivery_transporters_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_delivery_transporters_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplatesDeliveryTransporters V1 Please note: The {id} parameter above represents a Transfer Template Delivery ID, not a Manifest Number.
Permissions Required:
- Transfer Templates
Sourcepub async fn transfers_get_templates_delivery_transporters_details_v1(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_delivery_transporters_details_v1( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplatesDeliveryTransportersDetails V1 Please note: The {id} parameter above represents a Transfer Template Delivery ID, not a Manifest Number.
Permissions Required:
- Transfer Templates
Sourcepub async fn transfers_get_templates_outgoing_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_outgoing_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplatesOutgoing V2 Retrieves a list of transfer templates for a Facility, optionally filtered by last modified date range.
Permissions Required:
- Manage Transfer Templates
- View Transfer Templates
Sourcepub async fn transfers_get_templates_outgoing_delivery_v2(
&self,
id: &str,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_outgoing_delivery_v2( &self, id: &str, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplatesOutgoingDelivery V2 Retrieves a list of deliveries associated with a specific transfer template.
Permissions Required:
- Manage Transfer Templates
- View Transfer Templates
Sourcepub async fn transfers_get_templates_outgoing_delivery_package_v2(
&self,
id: &str,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_outgoing_delivery_package_v2( &self, id: &str, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplatesOutgoingDeliveryPackage V2 Retrieves a list of delivery package templates for a given Transfer Template Delivery Id. Please note: The {id} parameter above represents a Transfer Template Delivery Id, not a Manifest Number.
Permissions Required:
- Manage Transfer Templates
- View Transfer Templates
Sourcepub async fn transfers_get_templates_outgoing_delivery_transporters_v2(
&self,
id: &str,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_outgoing_delivery_transporters_v2( &self, id: &str, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplatesOutgoingDeliveryTransporters V2 Retrieves a list of transporter templates for a given Transfer Template Delivery Id. Please note: The {id} parameter above represents a Transfer Template Delivery Id, not a Manifest Number.
Permissions Required:
- Manage Transfer Templates
- View Transfer Templates
Sourcepub async fn transfers_get_templates_outgoing_delivery_transporters_details_v2(
&self,
id: &str,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_templates_outgoing_delivery_transporters_details_v2( &self, id: &str, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTemplatesOutgoingDeliveryTransportersDetails V2 Retrieves detailed transporter templates for a given Transfer Template Delivery Id. Please note: The {id} parameter above represents a Transfer Template Delivery Id, not a Manifest Number.
Permissions Required:
- Manage Transfer Templates
- View Transfer Templates
Sourcepub async fn transfers_get_types_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_types_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V1 Permissions Required:
- None
Sourcepub async fn transfers_get_types_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_get_types_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V2 Retrieves a list of available transfer types for a Facility based on its license number.
Permissions Required:
- None
Sourcepub async fn transfers_update_external_incoming_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_update_external_incoming_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateExternalIncoming V1 Permissions Required:
- Transfers
Sourcepub async fn transfers_update_external_incoming_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_update_external_incoming_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateExternalIncoming V2 Updates external incoming shipment plans for a Facility.
Permissions Required:
- Manage Transfers
Sourcepub async fn transfers_update_templates_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_update_templates_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateTemplates V1 Permissions Required:
- Transfer Templates
Sourcepub async fn transfers_update_templates_outgoing_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transfers_update_templates_outgoing_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateTemplatesOutgoing V2 Updates existing transfer templates for a Facility.
Permissions Required:
- Manage Transfer Templates
Sourcepub async fn units_of_measure_get_active_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn units_of_measure_get_active_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V1 Permissions Required:
- None
Sourcepub async fn units_of_measure_get_active_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn units_of_measure_get_active_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves all active units of measure.
Permissions Required:
- None
Sourcepub async fn units_of_measure_get_inactive_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn units_of_measure_get_inactive_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves all inactive units of measure.
Permissions Required:
- None
Sourcepub async fn waste_methods_get_all_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn waste_methods_get_all_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAll V2 Retrieves all available waste methods.
Permissions Required:
- None
Sourcepub async fn caregivers_status_get_by_caregiver_license_number_v1(
&self,
caregiver_license_number: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn caregivers_status_get_by_caregiver_license_number_v1( &self, caregiver_license_number: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetByCaregiverLicenseNumber V1 Data returned by this endpoint is cached for up to one minute.
Permissions Required:
- Lookup Caregivers
Sourcepub async fn caregivers_status_get_by_caregiver_license_number_v2(
&self,
caregiver_license_number: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn caregivers_status_get_by_caregiver_license_number_v2( &self, caregiver_license_number: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetByCaregiverLicenseNumber V2 Retrieves the status of a Caregiver by their License Number for a specified Facility. Data returned by this endpoint is cached for up to one minute.
Permissions Required:
- Lookup Caregivers
Sourcepub async fn employees_get_all_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn employees_get_all_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAll V1 Permissions Required:
- Manage Employees
Sourcepub async fn employees_get_all_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn employees_get_all_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAll V2 Retrieves a list of employees for a specified Facility.
Permissions Required:
- Manage Employees
- View Employees
Sourcepub async fn employees_get_permissions_v2(
&self,
employee_license_number: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn employees_get_permissions_v2( &self, employee_license_number: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetPermissions V2 Retrieves the permissions of a specified Employee, identified by their Employee License Number, for a given Facility.
Permissions Required:
- Manage Employees
Sourcepub async fn items_create_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_create_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V1 NOTE: To include a photo with an item, first use POST /items/v1/photo to POST the photo, and then use the returned ID in the request body in this endpoint.
Permissions Required:
- Manage Items
Sourcepub async fn items_create_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_create_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V2 Creates one or more new products for the specified Facility. NOTE: To include a photo with an item, first use POST /items/v2/photo to POST the photo, and then use the returned Id in the request body in this endpoint.
Permissions Required:
- Manage Items
Sourcepub async fn items_create_brand_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_create_brand_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateBrand V2 Creates one or more new item brands for the specified Facility identified by the License Number.
Permissions Required:
- Manage Items
Sourcepub async fn items_create_file_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_create_file_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateFile V2 Uploads one or more image or PDF files for products, labels, packaging, or documents at the specified Facility.
Permissions Required:
- Manage Items
Sourcepub async fn items_create_photo_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_create_photo_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePhoto V1 This endpoint allows only BMP, GIF, JPG, and PNG files and uploaded files can be no more than 5 MB in size.
Permissions Required:
- Manage Items
Sourcepub async fn items_create_photo_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_create_photo_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePhoto V2 This endpoint allows only BMP, GIF, JPG, and PNG files and uploaded files can be no more than 5 MB in size.
Permissions Required:
- Manage Items
Sourcepub async fn items_create_update_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_create_update_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateUpdate V1 Permissions Required:
- Manage Items
Sourcepub async fn items_delete_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_delete_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V1 Permissions Required:
- Manage Items
Sourcepub async fn items_delete_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_delete_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Archives the specified Product by Id for the given Facility License Number.
Permissions Required:
- Manage Items
Sourcepub async fn items_delete_brand_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_delete_brand_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteBrand V2 Archives the specified Item Brand by Id for the given Facility License Number.
Permissions Required:
- Manage Items
Sourcepub async fn items_get_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V1 Permissions Required:
- Manage Items
Sourcepub async fn items_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves detailed information about a specific Item by Id.
Permissions Required:
- Manage Items
Sourcepub async fn items_get_active_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_active_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V1 Permissions Required:
- Manage Items
Sourcepub async fn items_get_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Returns a list of active items for the specified Facility.
Permissions Required:
- Manage Items
Sourcepub async fn items_get_brands_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_brands_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetBrands V1 Permissions Required:
- Manage Items
Sourcepub async fn items_get_brands_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_brands_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetBrands V2 Retrieves a list of active item brands for the specified Facility.
Permissions Required:
- Manage Items
Sourcepub async fn items_get_categories_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_categories_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetCategories V1 Permissions Required:
- None
Sourcepub async fn items_get_categories_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_categories_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetCategories V2 Retrieves a list of item categories.
Permissions Required:
- None
Sourcepub async fn items_get_file_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_file_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetFile V2 Retrieves a file by its Id for the specified Facility.
Permissions Required:
- Manage Items
Sourcepub async fn items_get_inactive_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_inactive_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V1 Permissions Required:
- Manage Items
Sourcepub async fn items_get_inactive_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_inactive_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves a list of inactive items for the specified Facility.
Permissions Required:
- Manage Items
Sourcepub async fn items_get_photo_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_photo_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetPhoto V1 Permissions Required:
- Manage Items
Sourcepub async fn items_get_photo_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_get_photo_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetPhoto V2 Retrieves an image by its Id for the specified Facility.
Permissions Required:
- Manage Items
Sourcepub async fn items_update_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_update_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT Update V2 Updates one or more existing products for the specified Facility.
Permissions Required:
- Manage Items
Sourcepub async fn items_update_brand_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn items_update_brand_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateBrand V2 Updates one or more existing item brands for the specified Facility.
Permissions Required:
- Manage Items
Sourcepub async fn locations_create_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_create_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V1 Permissions Required:
- Manage Locations
Sourcepub async fn locations_create_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_create_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V2 Creates new locations for a specified Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn locations_create_update_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_create_update_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateUpdate V1 Permissions Required:
- Manage Locations
Sourcepub async fn locations_delete_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_delete_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V1 Permissions Required:
- Manage Locations
Sourcepub async fn locations_delete_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_delete_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Archives a specified Location, identified by its Id, for a Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn locations_get_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_get_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V1 Permissions Required:
- Manage Locations
Sourcepub async fn locations_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves a Location by its Id.
Permissions Required:
- Manage Locations
Sourcepub async fn locations_get_active_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_get_active_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V1 Permissions Required:
- Manage Locations
Sourcepub async fn locations_get_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_get_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves a list of active locations for a specified Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn locations_get_inactive_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_get_inactive_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves a list of inactive locations for a specified Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn locations_get_types_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_get_types_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V1 Permissions Required:
- Manage Locations
Sourcepub async fn locations_get_types_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_get_types_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V2 Retrieves a list of active location types for a specified Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn locations_update_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn locations_update_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT Update V2 Updates existing locations for a specified Facility.
Permissions Required:
- Manage Locations
Sourcepub async fn packages_create_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V1 Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_create_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V2 Creates new packages for a specified Facility.
Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_create_adjust_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_adjust_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdjust V1 Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_create_adjust_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_adjust_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdjust V2 Records a list of adjustments for packages at a specific Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_create_change_item_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_change_item_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateChangeItem V1 Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_create_change_location_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_change_location_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateChangeLocation V1 Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_create_finish_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_finish_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateFinish V1 Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_create_plantings_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_plantings_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePlantings V1 Permissions Required:
- View Immature Plants
- Manage Immature Plants
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_create_plantings_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_plantings_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreatePlantings V2 Creates new plantings from packages for a specified Facility.
Permissions Required:
- View Immature Plants
- Manage Immature Plants
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_create_remediate_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_remediate_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateRemediate V1 Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_create_testing_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_testing_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateTesting V1 Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_create_testing_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_testing_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateTesting V2 Creates new packages for testing for a specified Facility.
Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_create_unfinish_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_create_unfinish_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateUnfinish V1 Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_delete_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_delete_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Discontinues a Package at a specific Facility.
Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_get_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V1 Permissions Required:
- View Packages
Sourcepub async fn packages_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves a Package by its Id.
Permissions Required:
- View Packages
Sourcepub async fn packages_get_active_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_active_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V1 Permissions Required:
- View Packages
Sourcepub async fn packages_get_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves a list of active packages for a specified Facility.
Permissions Required:
- View Packages
Sourcepub async fn packages_get_adjust_reasons_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_adjust_reasons_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAdjustReasons V1 Permissions Required:
- None
Sourcepub async fn packages_get_adjust_reasons_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_adjust_reasons_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAdjustReasons V2 Retrieves a list of adjustment reasons for packages at a specified Facility.
Permissions Required:
- None
Sourcepub async fn packages_get_by_label_v1(
&self,
label: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_by_label_v1( &self, label: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetByLabel V1 Permissions Required:
- View Packages
Sourcepub async fn packages_get_by_label_v2(
&self,
label: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_by_label_v2( &self, label: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetByLabel V2 Retrieves a Package by its label.
Permissions Required:
- View Packages
Sourcepub async fn packages_get_inactive_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_inactive_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V1 Permissions Required:
- View Packages
Sourcepub async fn packages_get_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves a list of inactive packages for a specified Facility.
Permissions Required:
- View Packages
Sourcepub async fn packages_get_intransit_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_intransit_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetIntransit V2 Retrieves a list of packages in transit for a specified Facility.
Permissions Required:
- View Packages
Sourcepub async fn packages_get_labsamples_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_labsamples_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetLabsamples V2 Retrieves a list of lab sample packages created or sent for testing for a specified Facility.
Permissions Required:
- View Packages
Sourcepub async fn packages_get_onhold_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_onhold_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetOnhold V1 Permissions Required:
- View Packages
Sourcepub async fn packages_get_onhold_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_onhold_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetOnhold V2 Retrieves a list of packages on hold for a specified Facility.
Permissions Required:
- View Packages
Sourcepub async fn packages_get_source_harvest_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_source_harvest_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetSourceHarvest V2 Retrieves the source harvests for a Package by its Id.
Permissions Required:
- View Package Source Harvests
Sourcepub async fn packages_get_transferred_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_transferred_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTransferred V2 Retrieves a list of transferred packages for a specific Facility.
Permissions Required:
- View Packages
Sourcepub async fn packages_get_types_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_types_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V1 Permissions Required:
- None
Sourcepub async fn packages_get_types_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_get_types_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V2 Retrieves a list of available Package types.
Permissions Required:
- None
Sourcepub async fn packages_update_adjust_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_adjust_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateAdjust V2 Set the final quantity for a Package.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_update_change_note_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_change_note_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateChangeNote V1 Permissions Required:
- View Packages
- Manage Packages Inventory
- Manage Package Notes
Sourcepub async fn packages_update_decontaminate_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_decontaminate_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDecontaminate V2 Updates the Product decontaminate information for a list of packages at a specific Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_update_donation_flag_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_donation_flag_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDonationFlag V2 Flags one or more packages for donation at the specified Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_update_donation_unflag_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_donation_unflag_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDonationUnflag V2 Removes the donation flag from one or more packages at the specified Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_update_externalid_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_externalid_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateExternalid V2 Updates the external identifiers for one or more packages at the specified Facility.
Permissions Required:
- View Packages
- Manage Package Inventory
- External Id Enabled
Sourcepub async fn packages_update_finish_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_finish_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateFinish V2 Updates a list of packages as finished for a specific Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_update_item_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_item_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateItem V2 Updates the associated Item for one or more packages at the specified Facility.
Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_update_lab_test_required_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_lab_test_required_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateLabTestRequired V2 Updates the list of required lab test batches for one or more packages at the specified Facility.
Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_update_location_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_location_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateLocation V2 Updates the Location and Sublocation for one or more packages at the specified Facility.
Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn packages_update_note_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_note_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateNote V2 Updates notes associated with one or more packages for the specified Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
- Manage Package Notes
Sourcepub async fn packages_update_remediate_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_remediate_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateRemediate V2 Updates a list of Product remediations for packages at a specific Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_update_tradesample_flag_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_tradesample_flag_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateTradesampleFlag V2 Flags or unflags one or more packages at the specified Facility as trade samples.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_update_tradesample_unflag_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_tradesample_unflag_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateTradesampleUnflag V2 Removes the trade sample flag from one or more packages at the specified Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_update_unfinish_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_unfinish_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateUnfinish V2 Updates a list of packages as unfinished for a specific Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn packages_update_usebydate_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn packages_update_usebydate_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateUsebydate V2 Updates the use-by date for one or more packages at the specified Facility.
Permissions Required:
- View Packages
- Create/Submit/Discontinue Packages
Sourcepub async fn patient_check_ins_create_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_create_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V1 Permissions Required:
- ManagePatientsCheckIns
Sourcepub async fn patient_check_ins_create_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_create_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V2 Records patient check-ins for a specified Facility.
Permissions Required:
- ManagePatientsCheckIns
Sourcepub async fn patient_check_ins_delete_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_delete_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V1 Permissions Required:
- ManagePatientsCheckIns
Sourcepub async fn patient_check_ins_delete_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_delete_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Archives a Patient Check-In, identified by its Id, for a specified Facility.
Permissions Required:
- ManagePatientsCheckIns
Sourcepub async fn patient_check_ins_get_all_v1(
&self,
checkin_date_end: Option<String>,
checkin_date_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_get_all_v1( &self, checkin_date_end: Option<String>, checkin_date_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAll V1 Permissions Required:
- ManagePatientsCheckIns
Sourcepub async fn patient_check_ins_get_all_v2(
&self,
checkin_date_end: Option<String>,
checkin_date_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_get_all_v2( &self, checkin_date_end: Option<String>, checkin_date_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetAll V2 Retrieves a list of patient check-ins for a specified Facility.
Permissions Required:
- ManagePatientsCheckIns
Sourcepub async fn patient_check_ins_get_locations_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_get_locations_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetLocations V1 Permissions Required:
- None
Sourcepub async fn patient_check_ins_get_locations_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_get_locations_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetLocations V2 Retrieves a list of Patient Check-In locations.
Permissions Required:
- None
Sourcepub async fn patient_check_ins_update_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_update_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT Update V1 Permissions Required:
- ManagePatientsCheckIns
Sourcepub async fn patient_check_ins_update_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patient_check_ins_update_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT Update V2 Updates patient check-ins for a specified Facility.
Permissions Required:
- ManagePatientsCheckIns
Sourcepub async fn patients_create_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_create_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V2 Adds new patients to a specified Facility.
Permissions Required:
- Manage Patients
Sourcepub async fn patients_create_add_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_create_add_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdd V1 Permissions Required:
- Manage Patients
Sourcepub async fn patients_create_update_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_create_update_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateUpdate V1 Permissions Required:
- Manage Patients
Sourcepub async fn patients_delete_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_delete_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V1 Permissions Required:
- Manage Patients
Sourcepub async fn patients_delete_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_delete_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Removes a Patient, identified by an Id, from a specified Facility.
Permissions Required:
- Manage Patients
Sourcepub async fn patients_get_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_get_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V1 Permissions Required:
- Manage Patients
Sourcepub async fn patients_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves a Patient by Id.
Permissions Required:
- Manage Patients
Sourcepub async fn patients_get_active_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_get_active_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V1 Permissions Required:
- Manage Patients
Sourcepub async fn patients_get_active_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_get_active_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves a list of active patients for a specified Facility.
Permissions Required:
- Manage Patients
Sourcepub async fn patients_update_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_update_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT Update V2 Updates Patient information for a specified Facility.
Permissions Required:
- Manage Patients
Sourcepub async fn patients_status_get_statuses_by_patient_license_number_v1(
&self,
patient_license_number: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_status_get_statuses_by_patient_license_number_v1( &self, patient_license_number: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetStatusesByPatientLicenseNumber V1 Data returned by this endpoint is cached for up to one minute.
Permissions Required:
- Lookup Patients
Sourcepub async fn patients_status_get_statuses_by_patient_license_number_v2(
&self,
patient_license_number: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn patients_status_get_statuses_by_patient_license_number_v2( &self, patient_license_number: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetStatusesByPatientLicenseNumber V2 Retrieves a list of statuses for a Patient License Number for a specified Facility. Data returned by this endpoint is cached for up to one minute.
Permissions Required:
- Lookup Patients
Sourcepub async fn additives_templates_create_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn additives_templates_create_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V2 Creates new additive templates for a specified Facility.
Permissions Required:
- Manage Additives
Sourcepub async fn additives_templates_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn additives_templates_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves an Additive Template by its Id.
Permissions Required:
- Manage Additives
Sourcepub async fn additives_templates_get_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn additives_templates_get_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves a list of active additive templates for a specified Facility.
Permissions Required:
- Manage Additives
Sourcepub async fn additives_templates_get_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn additives_templates_get_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves a list of inactive additive templates for a specified Facility.
Permissions Required:
- Manage Additives
Sourcepub async fn additives_templates_update_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn additives_templates_update_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT Update V2 Updates existing additive templates for a specified Facility.
Permissions Required:
- Manage Additives
Sourcepub async fn lab_tests_create_record_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_create_record_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateRecord V1 Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn lab_tests_create_record_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_create_record_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateRecord V2 Submits Lab Test results for one or more packages. NOTE: This endpoint allows only PDF files, and uploaded files can be no more than 5 MB in size. The Label element in the request is a Package Label.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn lab_tests_get_batches_v2(
&self,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_get_batches_v2( &self, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetBatches V2 Retrieves a list of Lab Test batches.
Permissions Required:
- None
Sourcepub async fn lab_tests_get_labtestdocument_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_get_labtestdocument_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetLabtestdocument V1 Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn lab_tests_get_labtestdocument_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_get_labtestdocument_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetLabtestdocument V2 Retrieves a specific Lab Test result document by its Id for a given Facility.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn lab_tests_get_results_v1(
&self,
license_number: Option<String>,
package_id: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_get_results_v1( &self, license_number: Option<String>, package_id: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetResults V1 Permissions Required:
- View Packages
Sourcepub async fn lab_tests_get_results_v2(
&self,
license_number: Option<String>,
package_id: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_get_results_v2( &self, license_number: Option<String>, package_id: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetResults V2 Retrieves Lab Test results for a specified Package.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn lab_tests_get_states_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_get_states_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetStates V1 Permissions Required:
- None
Sourcepub async fn lab_tests_get_states_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_get_states_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetStates V2 Returns a list of all lab testing states.
Permissions Required:
- None
Sourcepub async fn lab_tests_get_types_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_get_types_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V1 Permissions Required:
- None
Sourcepub async fn lab_tests_get_types_v2(
&self,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_get_types_v2( &self, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTypes V2 Returns a list of Lab Test types.
Permissions Required:
- None
Sourcepub async fn lab_tests_update_labtestdocument_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_update_labtestdocument_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateLabtestdocument V1 Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn lab_tests_update_labtestdocument_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_update_labtestdocument_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateLabtestdocument V2 Updates one or more documents for previously submitted lab tests.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn lab_tests_update_result_release_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_update_result_release_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateResultRelease V1 Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn lab_tests_update_result_release_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn lab_tests_update_result_release_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateResultRelease V2 Releases Lab Test results for one or more packages.
Permissions Required:
- View Packages
- Manage Packages Inventory
Sourcepub async fn processing_jobs_create_adjust_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_create_adjust_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdjust V1 Permissions Required:
- ManageProcessingJobs
Sourcepub async fn processing_jobs_create_adjust_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_create_adjust_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateAdjust V2 Adjusts the details of existing processing jobs at a Facility, including units of measure and associated packages.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_create_jobtypes_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_create_jobtypes_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateJobtypes V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_create_jobtypes_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_create_jobtypes_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateJobtypes V2 Creates new processing job types for a Facility, including name, category, description, steps, and attributes.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_create_start_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_create_start_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateStart V1 Permissions Required:
- ManageProcessingJobs
Sourcepub async fn processing_jobs_create_start_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_create_start_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateStart V2 Initiates new processing jobs at a Facility, including job details and associated packages.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_createpackages_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_createpackages_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Createpackages V1 Permissions Required:
- ManageProcessingJobs
Sourcepub async fn processing_jobs_createpackages_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_createpackages_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Createpackages V2 Creates packages from processing jobs at a Facility, including optional location and note assignments.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_delete_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_delete_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_delete_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_delete_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Archives a Processing Job at a Facility by marking it as inactive and removing it from active use.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_delete_jobtypes_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_delete_jobtypes_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteJobtypes V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_delete_jobtypes_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_delete_jobtypes_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteJobtypes V2 Archives a Processing Job Type at a Facility, making it inactive for future use.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves a ProcessingJob by Id.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_active_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_active_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves active processing jobs at a specified Facility.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_inactive_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_inactive_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves inactive processing jobs at a specified Facility.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_jobtypes_active_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_jobtypes_active_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetJobtypesActive V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_jobtypes_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_jobtypes_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetJobtypesActive V2 Retrieves a list of all active processing job types defined within a Facility.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_jobtypes_attributes_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_jobtypes_attributes_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetJobtypesAttributes V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_jobtypes_attributes_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_jobtypes_attributes_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetJobtypesAttributes V2 Retrieves all processing job attributes available for a Facility.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_jobtypes_categories_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_jobtypes_categories_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetJobtypesCategories V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_jobtypes_categories_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_jobtypes_categories_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetJobtypesCategories V2 Retrieves all processing job categories available for a specified Facility.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_jobtypes_inactive_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_jobtypes_inactive_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetJobtypesInactive V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_get_jobtypes_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_get_jobtypes_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetJobtypesInactive V2 Retrieves a list of all inactive processing job types defined within a Facility.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_update_finish_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_update_finish_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateFinish V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_update_finish_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_update_finish_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateFinish V2 Completes processing jobs at a Facility by recording final notes and waste measurements.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_update_jobtypes_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_update_jobtypes_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateJobtypes V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_update_jobtypes_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_update_jobtypes_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateJobtypes V2 Updates existing processing job types at a Facility, including their name, category, description, steps, and attributes.
Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_update_unfinish_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_update_unfinish_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateUnfinish V1 Permissions Required:
- Manage Processing Job
Sourcepub async fn processing_jobs_update_unfinish_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn processing_jobs_update_unfinish_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateUnfinish V2 Reopens previously completed processing jobs at a Facility to allow further updates or corrections.
Permissions Required:
- Manage Processing Job
Sourcepub async fn sales_create_delivery_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDelivery V1 Please note: The SalesDateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Sales Delivery
Sourcepub async fn sales_create_delivery_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDelivery V2 Records new sales delivery entries for a given License Number. Please note: The SalesDateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Sales Deliveries(Write)
- Industry/Facility Type/Consumer Sales Delivery or Industry/Facility Type/Patient Sales Delivery
- WebApi Sales Deliveries Read Write State (All or WriteOnly)
- WebApi Retail ID Read Write State (All or WriteOnly) - Required for RID only.
- External Sources(ThirdPartyVendorV2)/Retail ID(Write) - Required for RID only.
Sourcepub async fn sales_create_delivery_retailer_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailer V1 Please note: The DateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_create_delivery_retailer_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailer V2 Records retailer delivery data for a given License Number, including delivery destinations. Please note: The DateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Sales Deliveries(Write)
- Industry/Facility Type/Retailer Delivery
- Industry/Facility Type/Consumer Sales Delivery or Industry/Facility Type/Patient Sales Delivery
- WebApi Sales Deliveries Read Write State (All or WriteOnly)
- WebApi Retail ID Read Write State (All or WriteOnly) - Required for RID only.
- External Sources(ThirdPartyVendorV2)/Retail ID(Write) - Required for RID only.
- Manage Retailer Delivery
Sourcepub async fn sales_create_delivery_retailer_depart_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_depart_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailerDepart V1 Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_create_delivery_retailer_depart_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_depart_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailerDepart V2 Processes the departure of retailer deliveries for a Facility using the provided License Number and delivery data.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Sales Deliveries(Write)
- Industry/Facility Type/Retailer Delivery
- Industry/Facility Type/Consumer Sales Delivery or Industry/Facility Type/Patient Sales Delivery
- WebApi Sales Deliveries Read Write State (All or WriteOnly)
- Manage Retailer Delivery
Sourcepub async fn sales_create_delivery_retailer_end_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_end_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailerEnd V1 Please note: The ActualArrivalDateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_create_delivery_retailer_end_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_end_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailerEnd V2 Ends retailer delivery records for a given License Number. Please note: The ActualArrivalDateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Sales Deliveries(Write)
- Industry/Facility Type/Retailer Delivery
- Industry/Facility Type/Consumer Sales Delivery or Industry/Facility Type/Patient Sales Delivery
- WebApi Sales Deliveries Read Write State (All or WriteOnly)
- Manage Retailer Delivery
Sourcepub async fn sales_create_delivery_retailer_restock_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_restock_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailerRestock V1 Please note: The DateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_create_delivery_retailer_restock_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_restock_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailerRestock V2 Records restock deliveries for retailer facilities using the provided License Number. Please note: The DateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Sales Deliveries(Write)
- Industry/Facility Type/Retailer Delivery
- Industry/Facility Type/Consumer Sales Delivery or Industry/Facility Type/Patient Sales Delivery
- WebApi Sales Deliveries Read Write State (All or WriteOnly)
- Manage Retailer Delivery
Sourcepub async fn sales_create_delivery_retailer_sale_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_sale_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailerSale V1 Please note: The SalesDateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_create_delivery_retailer_sale_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_delivery_retailer_sale_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDeliveryRetailerSale V2 Records sales deliveries originating from a retailer delivery for a given License Number. Please note: The SalesDateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Sales Deliveries(Write)
- Industry/Facility Type/Retailer Delivery
- Industry/Facility Type/Consumer Sales Delivery or Industry/Facility Type/Patient Sales Delivery
- WebApi Sales Deliveries Read Write State (All or WriteOnly)
- WebApi Retail ID Read Write State (All or WriteOnly) - Required for RID only.
- External Sources(ThirdPartyVendorV2)/Retail ID(Write) - Required for RID only.
Sourcepub async fn sales_create_receipt_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_receipt_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateReceipt V1 Please note: The SalesDateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Sales
Sourcepub async fn sales_create_receipt_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_receipt_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateReceipt V2 Records a list of sales deliveries for a given License Number. Please note: The SalesDateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Sales (Write)
- Industry/Facility Type/Consumer Sales or Industry/Facility Type/Patient Sales or Industry/Facility Type/External Patient Sales or Industry/Facility Type/Caregiver Sales
- Industry/Facility Type/Advanced Sales
- WebApi Sales Read Write State (All or WriteOnly)
- WebApi Retail ID Read Write State (All or WriteOnly) - Required for RID only.
- External Sources(ThirdPartyVendorV2)/Retail ID(Write) - Required for RID only.
Sourcepub async fn sales_create_transaction_by_date_v1(
&self,
date: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_create_transaction_by_date_v1( &self, date: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateTransactionByDate V1 Permissions Required:
- Sales
Sourcepub async fn sales_delete_delivery_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_delete_delivery_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteDelivery V1 Permissions Required:
- Sales Delivery
Sourcepub async fn sales_delete_delivery_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_delete_delivery_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteDelivery V2 Voids a sales delivery for a Facility using the provided License Number and delivery Id.
Permissions Required:
- Manage Sales Delivery
Sourcepub async fn sales_delete_delivery_retailer_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_delete_delivery_retailer_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteDeliveryRetailer V1 Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_delete_delivery_retailer_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_delete_delivery_retailer_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteDeliveryRetailer V2 Voids a retailer delivery for a Facility using the provided License Number and delivery Id.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Sales Deliveries(Write)
- Industry/Facility Type/Retailer Delivery
- Industry/Facility Type/Consumer Sales Delivery or Industry/Facility Type/Patient Sales Delivery
- WebApi Sales Deliveries Read Write State (All or WriteOnly)
- Manage Retailer Delivery
Sourcepub async fn sales_delete_receipt_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_delete_receipt_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteReceipt V1 Permissions Required:
- Sales
Sourcepub async fn sales_delete_receipt_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_delete_receipt_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteReceipt V2 Archives a sales receipt for a Facility using the provided License Number and receipt Id.
Permissions Required:
- Manage Sales
Sourcepub async fn sales_get_counties_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_counties_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetCounties V1 Permissions Required:
- None
Sourcepub async fn sales_get_counties_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_counties_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetCounties V2 Returns a list of counties available for sales deliveries.
Permissions Required:
- None
Sourcepub async fn sales_get_customertypes_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_customertypes_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetCustomertypes V1 Permissions Required:
- None
Sourcepub async fn sales_get_customertypes_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_customertypes_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetCustomertypes V2 Returns a list of customer types.
Permissions Required:
- None
Sourcepub async fn sales_get_deliveries_active_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
sales_date_end: Option<String>,
sales_date_start: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_active_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, sales_date_end: Option<String>, sales_date_start: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesActive V1 Permissions Required:
- Sales Delivery
Sourcepub async fn sales_get_deliveries_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
sales_date_end: Option<String>,
sales_date_start: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, sales_date_end: Option<String>, sales_date_start: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesActive V2 Returns a list of active sales deliveries for a Facility, filtered by optional sales or last modified date ranges.
Permissions Required:
- View Sales Delivery
- Manage Sales Delivery
Sourcepub async fn sales_get_deliveries_inactive_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
sales_date_end: Option<String>,
sales_date_start: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_inactive_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, sales_date_end: Option<String>, sales_date_start: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesInactive V1 Permissions Required:
- Sales Delivery
Sourcepub async fn sales_get_deliveries_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
sales_date_end: Option<String>,
sales_date_start: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, sales_date_end: Option<String>, sales_date_start: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesInactive V2 Returns a list of inactive sales deliveries for a Facility, filtered by optional sales or last modified date ranges.
Permissions Required:
- View Sales Delivery
- Manage Sales Delivery
Sourcepub async fn sales_get_deliveries_retailer_active_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_retailer_active_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesRetailerActive V1 Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_get_deliveries_retailer_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_retailer_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesRetailerActive V2 Returns a list of active retailer deliveries for a Facility, optionally filtered by last modified date range
Permissions Required:
- View Retailer Delivery
- Manage Retailer Delivery
Sourcepub async fn sales_get_deliveries_retailer_inactive_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_retailer_inactive_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesRetailerInactive V1 Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_get_deliveries_retailer_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_retailer_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesRetailerInactive V2 Returns a list of inactive retailer deliveries for a Facility, optionally filtered by last modified date range
Permissions Required:
- View Retailer Delivery
- Manage Retailer Delivery
Sourcepub async fn sales_get_deliveries_returnreasons_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_returnreasons_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
§GET GetDeliveriesReturnreasons V1 Permissions Required:
Sourcepub async fn sales_get_deliveries_returnreasons_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_deliveries_returnreasons_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveriesReturnreasons V2 Returns a list of return reasons for sales deliveries based on the provided License Number.
Permissions Required:
- Sales Delivery
Sourcepub async fn sales_get_delivery_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_delivery_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDelivery V1 Permissions Required:
- Sales Delivery
Sourcepub async fn sales_get_delivery_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_delivery_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDelivery V2 Retrieves a sales delivery record by its Id, with an optional License Number.
Permissions Required:
- View Sales Delivery
- Manage Sales Delivery
Sourcepub async fn sales_get_delivery_retailer_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_delivery_retailer_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryRetailer V1 Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_get_delivery_retailer_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_delivery_retailer_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDeliveryRetailer V2 Retrieves a retailer delivery record by its ID, with an optional License Number.
Permissions Required:
- View Retailer Delivery
- Manage Retailer Delivery
Sourcepub async fn sales_get_patient_registrations_locations_v1(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_patient_registrations_locations_v1( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
§GET GetPatientRegistrationsLocations V1 Permissions Required:
Sourcepub async fn sales_get_patient_registrations_locations_v2(
&self,
no: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_patient_registrations_locations_v2( &self, no: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetPatientRegistrationsLocations V2 Returns a list of valid Patient registration locations for sales.
§Permissions Required:
Sourcepub async fn sales_get_paymenttypes_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_paymenttypes_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetPaymenttypes V1 Permissions Required:
- Sales Delivery
Sourcepub async fn sales_get_paymenttypes_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_paymenttypes_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetPaymenttypes V2 Returns a list of available payment types for the specified License Number.
Permissions Required:
- View Sales Delivery
- Manage Sales Delivery
Sourcepub async fn sales_get_receipt_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_receipt_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetReceipt V1 Permissions Required:
- Sales
Sourcepub async fn sales_get_receipt_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_receipt_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetReceipt V2 Retrieves a sales receipt by its Id, with an optional License Number.
Permissions Required:
- View Sales
- Manage Sales
Sourcepub async fn sales_get_receipts_active_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
sales_date_end: Option<String>,
sales_date_start: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_receipts_active_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, sales_date_end: Option<String>, sales_date_start: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetReceiptsActive V1 Permissions Required:
- Sales
Sourcepub async fn sales_get_receipts_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
sales_date_end: Option<String>,
sales_date_start: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_receipts_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, sales_date_end: Option<String>, sales_date_start: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetReceiptsActive V2 Returns a list of active sales receipts for a Facility, filtered by optional sales or last modified date ranges.
Permissions Required:
- View Sales
- Manage Sales
Sourcepub async fn sales_get_receipts_external_by_external_number_v2(
&self,
external_number: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_receipts_external_by_external_number_v2( &self, external_number: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetReceiptsExternalByExternalNumber V2 Retrieves a Sales Receipt by its external number, with an optional License Number.
Permissions Required:
- View Sales
- Manage Sales
Sourcepub async fn sales_get_receipts_inactive_v1(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
sales_date_end: Option<String>,
sales_date_start: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_receipts_inactive_v1( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, sales_date_end: Option<String>, sales_date_start: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetReceiptsInactive V1 Permissions Required:
- Sales
Sourcepub async fn sales_get_receipts_inactive_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
sales_date_end: Option<String>,
sales_date_start: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_receipts_inactive_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, sales_date_end: Option<String>, sales_date_start: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetReceiptsInactive V2 Returns a list of inactive sales receipts for a Facility, filtered by optional sales or last modified date ranges.
Permissions Required:
- View Sales
- Manage Sales
Sourcepub async fn sales_get_transactions_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_transactions_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTransactions V1 Permissions Required:
- Sales
Sourcepub async fn sales_get_transactions_by_sales_date_start_and_sales_date_end_v1(
&self,
sales_date_start: &str,
sales_date_end: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_get_transactions_by_sales_date_start_and_sales_date_end_v1( &self, sales_date_start: &str, sales_date_end: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetTransactionsBySalesDateStartAndSalesDateEnd V1 Permissions Required:
- Sales
Sourcepub async fn sales_update_delivery_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDelivery V1 Please note: The SalesDateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Sales Delivery
Sourcepub async fn sales_update_delivery_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDelivery V2 Updates sales delivery records for a given License Number. Please note: The SalesDateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Manage Sales Delivery
Sourcepub async fn sales_update_delivery_complete_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_complete_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryComplete V1 Permissions Required:
- Sales Delivery
Sourcepub async fn sales_update_delivery_complete_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_complete_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryComplete V2 Completes a list of sales deliveries for a Facility using the provided License Number and delivery data.
Permissions Required:
- Manage Sales Delivery
Sourcepub async fn sales_update_delivery_hub_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_hub_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryHub V1 Please note: The SalesDateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Sales Delivery
Sourcepub async fn sales_update_delivery_hub_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_hub_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryHub V2 Updates hub transporter details for a given License Number. Please note: The SalesDateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Manage Sales Delivery, Manage Sales Delivery Hub
Sourcepub async fn sales_update_delivery_hub_accept_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_hub_accept_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryHubAccept V1 Permissions Required:
- Sales
Sourcepub async fn sales_update_delivery_hub_accept_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_hub_accept_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryHubAccept V2 Accepts a list of hub sales deliveries for a Facility based on the provided License Number and delivery data.
Permissions Required:
- Manage Sales Delivery Hub
Sourcepub async fn sales_update_delivery_hub_depart_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_hub_depart_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryHubDepart V1 Permissions Required:
- Sales
Sourcepub async fn sales_update_delivery_hub_depart_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_hub_depart_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryHubDepart V2 Processes the departure of hub sales deliveries for a Facility using the provided License Number and delivery data.
Permissions Required:
- Manage Sales Delivery Hub
Sourcepub async fn sales_update_delivery_hub_verify_id_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_hub_verify_id_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryHubVerifyID V1 Permissions Required:
- Sales
Sourcepub async fn sales_update_delivery_hub_verify_id_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_hub_verify_id_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryHubVerifyID V2 Verifies identification for a list of hub sales deliveries using the provided License Number and delivery data.
Permissions Required:
- Manage Sales Delivery Hub
Sourcepub async fn sales_update_delivery_retailer_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_retailer_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryRetailer V1 Please note: The DateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Retailer Delivery
Sourcepub async fn sales_update_delivery_retailer_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_delivery_retailer_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateDeliveryRetailer V2 Updates retailer delivery records for a given License Number. Please note: The DateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- External Sources(ThirdPartyVendorV2)/Sales Deliveries(Write)
- Industry/Facility Type/Retailer Delivery
- Industry/Facility Type/Consumer Sales Delivery or Industry/Facility Type/Patient Sales Delivery
- WebApi Sales Deliveries Read Write State (All or WriteOnly)
- WebApi Retail ID Read Write State (All or WriteOnly) - Required for RID only.
- External Sources(ThirdPartyVendorV2)/Retail ID(Write) - Required for RID only.
- Manage Retailer Delivery
Sourcepub async fn sales_update_receipt_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_receipt_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateReceipt V1 Please note: The SalesDateTime field must be the actual date and time of the transaction without time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Sales
Sourcepub async fn sales_update_receipt_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_receipt_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateReceipt V2 Updates sales receipt records for a given License Number. Please note: The SalesDateTime field must be the actual date and time of the transaction without the time zone. This date/time must already be in the same time zone as the Facility recording the sales. For example, if the Facility is in Pacific Time, then this time must be in Pacific Standard (or Daylight Savings) Time and not in UTC.
Permissions Required:
- Manage Sales
Sourcepub async fn sales_update_receipt_finalize_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_receipt_finalize_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateReceiptFinalize V2 Finalizes a list of sales receipts for a Facility using the provided License Number and receipt data.
Permissions Required:
- Manage Sales
Sourcepub async fn sales_update_receipt_unfinalize_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_receipt_unfinalize_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateReceiptUnfinalize V2 Unfinalizes a list of sales receipts for a Facility using the provided License Number and receipt data.
Permissions Required:
- Manage Sales
Sourcepub async fn sales_update_transaction_by_date_v1(
&self,
date: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn sales_update_transaction_by_date_v1( &self, date: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT UpdateTransactionByDate V1 Permissions Required:
- Sales
Sourcepub async fn strains_create_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_create_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V1 Permissions Required:
- Manage Strains
Sourcepub async fn strains_create_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_create_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST Create V2 Creates new strain records for a specified Facility.
Permissions Required:
- Manage Strains
Sourcepub async fn strains_create_update_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_create_update_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateUpdate V1 Permissions Required:
- Manage Strains
Sourcepub async fn strains_delete_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_delete_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V1 Permissions Required:
- Manage Strains
Sourcepub async fn strains_delete_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_delete_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE Delete V2 Archives an existing strain record for a Facility
Permissions Required:
- Manage Strains
Sourcepub async fn strains_get_v1(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_get_v1( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V1 Permissions Required:
- Manage Strains
Sourcepub async fn strains_get_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_get_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET Get V2 Retrieves a Strain record by its Id, with an optional license number.
Permissions Required:
- Manage Strains
Sourcepub async fn strains_get_active_v1(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_get_active_v1( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V1 Permissions Required:
- Manage Strains
Sourcepub async fn strains_get_active_v2(
&self,
last_modified_end: Option<String>,
last_modified_start: Option<String>,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_get_active_v2( &self, last_modified_end: Option<String>, last_modified_start: Option<String>, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetActive V2 Retrieves a list of active strains for the current Facility, optionally filtered by last modified date range.
Permissions Required:
- Manage Strains
Sourcepub async fn strains_get_inactive_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_get_inactive_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetInactive V2 Retrieves a list of inactive strains for the current Facility, optionally filtered by last modified date range.
Permissions Required:
- Manage Strains
Sourcepub async fn strains_update_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn strains_update_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
PUT Update V2 Updates existing strain records for a specified Facility.
Permissions Required:
- Manage Strains
Sourcepub async fn transporters_create_driver_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transporters_create_driver_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateDriver V2 Creates new driver records for a Facility.
Permissions Required:
- Manage Transporters
Sourcepub async fn transporters_create_vehicle_v2(
&self,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transporters_create_vehicle_v2( &self, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
POST CreateVehicle V2 Creates new vehicle records for a Facility.
Permissions Required:
- Manage Transporters
Sourcepub async fn transporters_delete_driver_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transporters_delete_driver_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteDriver V2 Archives a Driver record for a Facility. Please note: The {id} parameter above represents a Driver Id.
Permissions Required:
- Manage Transporters
Sourcepub async fn transporters_delete_vehicle_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transporters_delete_vehicle_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
DELETE DeleteVehicle V2 Archives a Vehicle for a facility. Please note: The {id} parameter above represents a Vehicle Id.
Permissions Required:
- Manage Transporters
Sourcepub async fn transporters_get_driver_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transporters_get_driver_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDriver V2 Retrieves a Driver by its Id, with an optional license number. Please note: The {id} parameter above represents a Driver Id.
Permissions Required:
- Transporters
Sourcepub async fn transporters_get_drivers_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transporters_get_drivers_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetDrivers V2 Retrieves a list of drivers for a Facility.
Permissions Required:
- Transporters
Sourcepub async fn transporters_get_vehicle_v2(
&self,
id: &str,
license_number: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transporters_get_vehicle_v2( &self, id: &str, license_number: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetVehicle V2 Retrieves a Vehicle by its Id, with an optional license number. Please note: The {id} parameter above represents a Vehicle Id.
Permissions Required:
- Transporters
Sourcepub async fn transporters_get_vehicles_v2(
&self,
license_number: Option<String>,
page_number: Option<String>,
page_size: Option<String>,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error>>
pub async fn transporters_get_vehicles_v2( &self, license_number: Option<String>, page_number: Option<String>, page_size: Option<String>, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error>>
GET GetVehicles V2 Retrieves a list of vehicles for a Facility.
Permissions Required:
- Transporters
Trait Implementations§
Source§impl Clone for MetrcClient
impl Clone for MetrcClient
Source§fn clone(&self) -> MetrcClient
fn clone(&self) -> MetrcClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more