/*
* Open Logistics — Delhivery
*
* OpenAPI description of the Delhivery B2C endpoints wrapped by `open-logistics`. Source of truth for generated Python and Rust clients. Operation IDs and schema field names are intentionally snake_case so every language exposes the same names. Delhivery overloads `POST /api/p/edit` for update and cancel, and `GET /api/v1/packages/json/` for single, order, and bulk tracking. OpenAPI permits one operation per path + method, so this spec exposes `orders_edit` and `tracking_fetch`; language facades may alias them as `update`, `cancel`, `by_waybill`, `by_order_id`, and `by_waybills`.
*
* The version of the OpenAPI document: 0.2.2
*
* Generated by: https://openapi-generator.tech
*/
use crate::delhivery::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DelhiveryRateResponseInner {
/// Fields the schema allows but does not enumerate.
#[serde(flatten)]
pub additional_properties: std::collections::HashMap<String, serde_json::Value>,
#[serde(rename = "total_amount", skip_serializing_if = "Option::is_none")]
pub total_amount: Option<f64>,
#[serde(rename = "gross_amount", skip_serializing_if = "Option::is_none")]
pub gross_amount: Option<f64>,
#[serde(rename = "zone", skip_serializing_if = "Option::is_none")]
pub zone: Option<String>,
#[serde(rename = "charged_weight", skip_serializing_if = "Option::is_none")]
pub charged_weight: Option<f64>,
#[serde(rename = "tax_data", skip_serializing_if = "Option::is_none")]
pub tax_data: Option<std::collections::HashMap<String, serde_json::Value>>,
}
impl DelhiveryRateResponseInner {
pub fn new() -> DelhiveryRateResponseInner {
DelhiveryRateResponseInner {
total_amount: None,
gross_amount: None,
zone: None,
charged_weight: None,
tax_data: None,
additional_properties: Default::default(),
}
}
}