hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CartOpen {
    /// Currency is the ISO 4217 code the cart is priced in, lower-cased. Empty means usd.
    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
    pub currency: Option<String>,
    /// Email is the shopper's address, for a cart that belongs to someone who has not signed in. It is what a guest checkout and an abandoned-cart follow-up key on. Empty is fine.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// Store is the storefront this cart is being filled on. Empty uses the org's default store, which is what a single-storefront merchant always wants.
    #[serde(rename = "store", skip_serializing_if = "Option::is_none")]
    pub store: Option<String>,
    /// User is the id of the signed-in shopper this cart belongs to, when there is one. Empty means a guest cart identified only by its own id.
    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
}

impl CartOpen {
    pub fn new() -> CartOpen {
        CartOpen {
            currency: None,
            email: None,
            store: None,
            user: None,
        }
    }
}