// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: social.flockfeeds.lexical.type.Offer
//
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.

#[allow(unused_imports)]
use alloc::collections::BTreeMap;

#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_common::CowStr;

#[allow(unused_imports)]
use jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation;
use jacquard_common::types::collection::{Collection, RecordError};
use jacquard_common::types::string::{AtUri, Cid};
use jacquard_common::types::uri::{RecordUri, UriError};
use jacquard_common::types::value::Data;
use jacquard_common::xrpc::XrpcResp;
use jacquard_derive::{IntoStatic, lexicon, open_union};
use jacquard_lexicon::lexicon::LexiconDoc;
use jacquard_lexicon::schema::LexiconSchema;

#[allow(unused_imports)]
use jacquard_lexicon::validation::{ConstraintError, ValidationPath};
use serde::{Serialize, Deserialize};
use crate::social_flockfeeds::lexical::r#type::event;
use crate::social_flockfeeds::lexical::r#type::image_object;
use crate::social_flockfeeds::lexical::r#type::offer;
use crate::social_flockfeeds::lexical::r#type::organization;
use crate::social_flockfeeds::lexical::r#type::person;
use crate::social_flockfeeds::lexical::r#type::product;
/// An offer to transfer some rights to an item or to provide a service — for example, an offer to sell tickets to an event, to rent the DVD of a movie, to stream a TV show over the internet, to repair a motorcycle, or to loan a book.\n\nNote: As the [[businessFunction]] property, which identifies the form of offer (e.g. sell, lease, repair, dispose), defaults to http://purl.org/goodrelations/v1#Sell; an Offer without a defined businessFunction value can be assumed to be an offer to sell.\n\nFor [GTIN](http://www.gs1.org/barcodes/technical/idkeys/gtin)-related fields, see [Check Digit calculator](http://www.gs1.org/barcodes/support/check_digit_calculator) and [validation guide](http://www.gs1us.org/resources/standards/gtin-validation-guide) from [GS1](http://www.gs1.org/).

#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct Embedded<'a> {
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub accepted_payment_method: Option<EmbeddedAcceptedPaymentMethod<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub add_on: Option<EmbeddedAddOn<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub additional_property: Option<EmbeddedAdditionalProperty<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub additional_type: Option<EmbeddedAdditionalType<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub advance_booking_requirement: Option<EmbeddedAdvanceBookingRequirement<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub aggregate_rating: Option<EmbeddedAggregateRating<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub alternate_name: Option<EmbeddedAlternateName<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub area_served: Option<EmbeddedAreaServed<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub asin: Option<EmbeddedAsin<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub availability: Option<EmbeddedAvailability<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub availability_ends: Option<EmbeddedAvailabilityEnds<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub availability_starts: Option<EmbeddedAvailabilityStarts<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub available_at_or_from: Option<EmbeddedAvailableAtOrFrom<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub available_delivery_method: Option<EmbeddedAvailableDeliveryMethod<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub business_function: Option<EmbeddedBusinessFunction<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub category: Option<EmbeddedCategory<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub checkout_page_url_template: Option<EmbeddedCheckoutPageUrlTemplate<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub delivery_lead_time: Option<EmbeddedDeliveryLeadTime<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub description: Option<EmbeddedDescription<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub disambiguating_description: Option<EmbeddedDisambiguatingDescription<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_customer_type: Option<EmbeddedEligibleCustomerType<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_duration: Option<EmbeddedEligibleDuration<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_quantity: Option<EmbeddedEligibleQuantity<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_region: Option<EmbeddedEligibleRegion<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_transaction_volume: Option<EmbeddedEligibleTransactionVolume<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin: Option<EmbeddedGtin<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin12: Option<EmbeddedGtin12<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin13: Option<EmbeddedGtin13<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin14: Option<EmbeddedGtin14<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin8: Option<EmbeddedGtin8<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub has_adult_consideration: Option<EmbeddedHasAdultConsideration<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub has_gs1_digital_link: Option<EmbeddedHasGs1DigitalLink<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub has_measurement: Option<EmbeddedHasMeasurement<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub has_merchant_return_policy: Option<EmbeddedHasMerchantReturnPolicy<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub identifier: Option<EmbeddedIdentifier<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub image: Option<EmbeddedImage<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub includes_object: Option<EmbeddedIncludesObject<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub ineligible_region: Option<EmbeddedIneligibleRegion<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub inventory_level: Option<EmbeddedInventoryLevel<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub is_family_friendly: Option<EmbeddedIsFamilyFriendly<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub item_condition: Option<EmbeddedItemCondition<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub item_offered: Option<EmbeddedItemOffered<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub lease_length: Option<EmbeddedLeaseLength<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub main_entity_of_page: Option<EmbeddedMainEntityOfPage<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub mobile_url: Option<EmbeddedMobileUrl<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub mpn: Option<EmbeddedMpn<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub name: Option<EmbeddedName<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub offered_by: Option<EmbeddedOfferedBy<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub potential_action: Option<EmbeddedPotentialAction<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub price: Option<EmbeddedPrice<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub price_currency: Option<EmbeddedPriceCurrency<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub price_specification: Option<EmbeddedPriceSpecification<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub price_valid_until: Option<EmbeddedPriceValidUntil<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub review: Option<EmbeddedReview<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub reviews: Option<EmbeddedReviews<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub same_as: Option<EmbeddedSameAs<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub seller: Option<EmbeddedSeller<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub serial_number: Option<EmbeddedSerialNumber<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub shipping_details: Option<EmbeddedShippingDetails<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub sku: Option<EmbeddedSku<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub subject_of: Option<EmbeddedSubjectOf<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub url: Option<EmbeddedUrl<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub valid_for_member_tier: Option<EmbeddedValidForMemberTier<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub valid_from: Option<EmbeddedValidFrom<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub valid_through: Option<EmbeddedValidThrough<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub warranty: Option<EmbeddedWarranty<'a>>,
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAcceptedPaymentMethod<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAddOn<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Offer#embedded")]
    Embedded(Box<offer::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAdditionalProperty<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAdditionalType<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAdvanceBookingRequirement<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAggregateRating<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAlternateName<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAreaServed<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAsin<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAvailability<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAvailabilityEnds<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAvailabilityStarts<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAvailableAtOrFrom<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedAvailableDeliveryMethod<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedBusinessFunction<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedCategory<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedCheckoutPageUrlTemplate<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedDeliveryLeadTime<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedDescription<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedDisambiguatingDescription<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedEligibleCustomerType<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedEligibleDuration<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedEligibleQuantity<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedEligibleRegion<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedEligibleTransactionVolume<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedGtin<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedGtin12<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedGtin13<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedGtin14<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedGtin8<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedHasAdultConsideration<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedHasGs1DigitalLink<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedHasMeasurement<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedHasMerchantReturnPolicy<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedIdentifier<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedImage<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.ImageObject#embedded")]
    ImageObjectEmbedded(Box<image_object::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedIncludesObject<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedIneligibleRegion<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedInventoryLevel<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedIsFamilyFriendly<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedItemCondition<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedItemOffered<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<'a>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Product#embedded")]
    ProductEmbedded(Box<product::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedLeaseLength<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedMainEntityOfPage<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedMobileUrl<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedMpn<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedName<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedOfferedBy<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<'a>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedPotentialAction<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedPrice<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedPriceCurrency<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedPriceSpecification<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedPriceValidUntil<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedReview<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedReviews<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedSameAs<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedSeller<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<'a>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedSerialNumber<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedShippingDetails<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedSku<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedSubjectOf<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedUrl<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedValidForMemberTier<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedValidFrom<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedValidThrough<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum EmbeddedWarranty<'a> {}

#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct Offer<'a> {
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub accepted_payment_method: Option<OfferAcceptedPaymentMethod<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub add_on: Option<OfferAddOn<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub additional_property: Option<OfferAdditionalProperty<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub additional_type: Option<OfferAdditionalType<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub advance_booking_requirement: Option<OfferAdvanceBookingRequirement<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub aggregate_rating: Option<OfferAggregateRating<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub alternate_name: Option<OfferAlternateName<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub area_served: Option<OfferAreaServed<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub asin: Option<OfferAsin<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub availability: Option<OfferAvailability<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub availability_ends: Option<OfferAvailabilityEnds<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub availability_starts: Option<OfferAvailabilityStarts<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub available_at_or_from: Option<OfferAvailableAtOrFrom<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub available_delivery_method: Option<OfferAvailableDeliveryMethod<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub business_function: Option<OfferBusinessFunction<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub category: Option<OfferCategory<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub checkout_page_url_template: Option<OfferCheckoutPageUrlTemplate<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub delivery_lead_time: Option<OfferDeliveryLeadTime<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub description: Option<OfferDescription<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub disambiguating_description: Option<OfferDisambiguatingDescription<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_customer_type: Option<OfferEligibleCustomerType<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_duration: Option<OfferEligibleDuration<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_quantity: Option<OfferEligibleQuantity<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_region: Option<OfferEligibleRegion<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub eligible_transaction_volume: Option<OfferEligibleTransactionVolume<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin: Option<OfferGtin<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin12: Option<OfferGtin12<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin13: Option<OfferGtin13<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin14: Option<OfferGtin14<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub gtin8: Option<OfferGtin8<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub has_adult_consideration: Option<OfferHasAdultConsideration<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub has_gs1_digital_link: Option<OfferHasGs1DigitalLink<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub has_measurement: Option<OfferHasMeasurement<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub has_merchant_return_policy: Option<OfferHasMerchantReturnPolicy<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub identifier: Option<OfferIdentifier<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub image: Option<OfferImage<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub includes_object: Option<OfferIncludesObject<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub ineligible_region: Option<OfferIneligibleRegion<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub inventory_level: Option<OfferInventoryLevel<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub is_family_friendly: Option<OfferIsFamilyFriendly<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub item_condition: Option<OfferItemCondition<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub item_offered: Option<OfferItemOffered<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub lease_length: Option<OfferLeaseLength<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub main_entity_of_page: Option<OfferMainEntityOfPage<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub mobile_url: Option<OfferMobileUrl<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub mpn: Option<OfferMpn<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub name: Option<OfferName<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub offered_by: Option<OfferOfferedBy<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub potential_action: Option<OfferPotentialAction<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub price: Option<OfferPrice<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub price_currency: Option<OfferPriceCurrency<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub price_specification: Option<OfferPriceSpecification<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub price_valid_until: Option<OfferPriceValidUntil<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub review: Option<OfferReview<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub reviews: Option<OfferReviews<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub same_as: Option<OfferSameAs<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub seller: Option<OfferSeller<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub serial_number: Option<OfferSerialNumber<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub shipping_details: Option<OfferShippingDetails<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub sku: Option<OfferSku<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub subject_of: Option<OfferSubjectOf<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub url: Option<OfferUrl<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub valid_for_member_tier: Option<OfferValidForMemberTier<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub valid_from: Option<OfferValidFrom<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub valid_through: Option<OfferValidThrough<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub warranty: Option<OfferWarranty<'a>>,
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAcceptedPaymentMethod<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAddOn<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Offer#embedded")]
    Embedded(Box<offer::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAdditionalProperty<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAdditionalType<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAdvanceBookingRequirement<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAggregateRating<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAlternateName<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAreaServed<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAsin<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAvailability<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAvailabilityEnds<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAvailabilityStarts<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAvailableAtOrFrom<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferAvailableDeliveryMethod<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferBusinessFunction<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferCategory<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferCheckoutPageUrlTemplate<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferDeliveryLeadTime<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferDescription<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferDisambiguatingDescription<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferEligibleCustomerType<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferEligibleDuration<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferEligibleQuantity<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferEligibleRegion<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferEligibleTransactionVolume<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferGtin<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferGtin12<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferGtin13<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferGtin14<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferGtin8<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferHasAdultConsideration<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferHasGs1DigitalLink<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferHasMeasurement<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferHasMerchantReturnPolicy<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferIdentifier<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferImage<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.ImageObject#embedded")]
    ImageObjectEmbedded(Box<image_object::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferIncludesObject<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferIneligibleRegion<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferInventoryLevel<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferIsFamilyFriendly<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferItemCondition<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferItemOffered<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<'a>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Product#embedded")]
    ProductEmbedded(Box<product::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferLeaseLength<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferMainEntityOfPage<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferMobileUrl<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferMpn<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferName<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferOfferedBy<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<'a>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferPotentialAction<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferPrice<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferPriceCurrency<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferPriceSpecification<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferPriceValidUntil<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferReview<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferReviews<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferSameAs<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferSeller<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<'a>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferSerialNumber<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferShippingDetails<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferSku<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferSubjectOf<'a> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<'a>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferUrl<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferValidForMemberTier<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferValidFrom<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferValidThrough<'a> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type")]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum OfferWarranty<'a> {}
/// Typed wrapper for GetRecord response with this collection's record type.

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct OfferGetRecordOutput<'a> {
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub cid: Option<Cid<'a>>,
    #[serde(borrow)]
    pub uri: AtUri<'a>,
    #[serde(borrow)]
    pub value: Offer<'a>,
}

impl<'a> Offer<'a> {
    pub fn uri(
        uri: impl Into<CowStr<'a>>,
    ) -> Result<RecordUri<'a, OfferRecord>, UriError> {
        RecordUri::try_from_uri(AtUri::new_cow(uri.into())?)
    }
}

impl<'a> LexiconSchema for Embedded<'a> {
    fn nsid() -> &'static str {
        "social.flockfeeds.lexical.type.Offer"
    }
    fn def_name() -> &'static str {
        "embedded"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_social_flockfeeds_lexical_type_Offer()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

/// Marker type for deserializing records from this collection.

#[derive(Debug, Serialize, Deserialize)]
pub struct OfferRecord;
impl XrpcResp for OfferRecord {
    const NSID: &'static str = "social.flockfeeds.lexical.type.Offer";
    const ENCODING: &'static str = "application/json";
    type Output<'de> = OfferGetRecordOutput<'de>;
    type Err<'de> = RecordError<'de>;
}

impl From<OfferGetRecordOutput<'_>> for Offer<'_> {
    fn from(output: OfferGetRecordOutput<'_>) -> Self {
        use jacquard_common::IntoStatic;
        output.value.into_static()
    }
}

impl Collection for Offer<'_> {
    const NSID: &'static str = "social.flockfeeds.lexical.type.Offer";
    type Record = OfferRecord;
}

impl Collection for OfferRecord {
    const NSID: &'static str = "social.flockfeeds.lexical.type.Offer";
    type Record = OfferRecord;
}

impl<'a> LexiconSchema for Offer<'a> {
    fn nsid() -> &'static str {
        "social.flockfeeds.lexical.type.Offer"
    }
    fn def_name() -> &'static str {
        "main"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_social_flockfeeds_lexical_type_Offer()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

fn lexicon_doc_social_flockfeeds_lexical_type_Offer() -> LexiconDoc<'static> {
    #[allow(unused_imports)]
    use jacquard_common::{CowStr, deps::smol_str::SmolStr, types::blob::MimeType};
    use jacquard_lexicon::lexicon::*;
    use alloc::collections::BTreeMap;
    LexiconDoc {
        lexicon: Lexicon::Lexicon1,
        id: CowStr::new_static("social.flockfeeds.lexical.type.Offer"),
        defs: {
            let mut map = BTreeMap::new();
            map.insert(
                SmolStr::new_static("embedded"),
                LexUserType::Object(LexObject {
                    description: Some(
                        CowStr::new_static(
                            "An offer to transfer some rights to an item or to provide a service — for example, an offer to sell tickets to an event, to rent the DVD of a movie, to stream a TV show over the internet, to repair a motorcycle, or to loan a book.\\n\\nNote: As the [[businessFunction]] property, which identifies the form of offer (e.g. sell, lease, repair, dispose), defaults to http://purl.org/goodrelations/v1#Sell; an Offer without a defined businessFunction value can be assumed to be an offer to sell.\\n\\nFor [GTIN](http://www.gs1.org/barcodes/technical/idkeys/gtin)-related fields, see [Check Digit calculator](http://www.gs1.org/barcodes/support/check_digit_calculator) and [validation guide](http://www.gs1us.org/resources/standards/gtin-validation-guide) from [GS1](http://www.gs1.org/).",
                        ),
                    ),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("acceptedPaymentMethod"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.LoanOrCredit#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.PaymentMethod#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#acceptedPaymentMethodScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#acceptedPaymentMethodList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("addOn"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Offer#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#addOnList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("additionalProperty"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.PropertyValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#additionalPropertyList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("additionalType"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#additionalTypeScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#additionalTypeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("advanceBookingRequirement"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#advanceBookingRequirementList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("aggregateRating"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.AggregateRating#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#aggregateRatingList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("alternateName"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#alternateNameScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#alternateNameList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("areaServed"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.AdministrativeArea#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.GeoShape#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#areaServedScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#areaServedList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("asin"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#asinScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#asinList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("availability"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.ItemAvailability#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("availabilityEnds"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityEndsScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityEndsList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("availabilityStarts"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityStartsScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityStartsList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("availableAtOrFrom"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#availableAtOrFromList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("availableDeliveryMethod"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.DeliveryMethod#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#availableDeliveryMethodScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#availableDeliveryMethodList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("businessFunction"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.BusinessFunction#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#businessFunctionScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#businessFunctionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("category"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.CategoryCode#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.PhysicalActivityCategory#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Thing#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#categoryScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#categoryList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("checkoutPageURLTemplate"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#checkoutPageURLTemplateScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#checkoutPageURLTemplateList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("deliveryLeadTime"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#deliveryLeadTimeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("description"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.TextObject#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#descriptionScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#descriptionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("disambiguatingDescription"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#disambiguatingDescriptionScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#disambiguatingDescriptionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("eligibleCustomerType"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.BusinessEntityType#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleCustomerTypeScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleCustomerTypeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("eligibleDuration"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleDurationList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("eligibleQuantity"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleQuantityList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("eligibleRegion"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.GeoShape#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleRegionScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleRegionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("eligibleTransactionVolume"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.PriceSpecification#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleTransactionVolumeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("gtin"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtinScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtinList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("gtin12"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin12Scalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin12List")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("gtin13"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin13Scalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin13List")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("gtin14"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin14Scalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin14List")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("gtin8"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin8Scalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin8List")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("hasAdultConsideration"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.AdultOrientedEnumeration#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasAdultConsiderationScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasAdultConsiderationList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("hasGS1DigitalLink"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasGS1DigitalLinkScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasGS1DigitalLinkList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("hasMeasurement"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasMeasurementList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("hasMerchantReturnPolicy"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.MerchantReturnPolicy#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasMerchantReturnPolicyList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("identifier"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.PropertyValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#identifierScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#identifierList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("image"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.ImageObject#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#imageScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#imageList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("includesObject"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.TypeAndQuantityNode#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#includesObjectList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("ineligibleRegion"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.GeoShape#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#ineligibleRegionScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#ineligibleRegionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("inventoryLevel"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#inventoryLevelList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("isFamilyFriendly"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#isFamilyFriendlyScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#isFamilyFriendlyList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("itemCondition"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.OfferItemCondition#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#itemConditionScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#itemConditionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("itemOffered"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.AggregateOffer#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.MenuItem#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Product#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Service#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Trip#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#itemOfferedList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("leaseLength"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#leaseLengthScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#leaseLengthList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("mainEntityOfPage"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#mainEntityOfPageScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#mainEntityOfPageList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("mobileUrl"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#mobileUrlScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#mobileUrlList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("mpn"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#mpnScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#mpnList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("name"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#nameScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#nameList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("offeredBy"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#offeredByList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("potentialAction"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Action#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#potentialActionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("price"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("priceCurrency"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceCurrencyScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceCurrencyList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("priceSpecification"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.PriceSpecification#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceSpecificationList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("priceValidUntil"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceValidUntilScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceValidUntilList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("review"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Review#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#reviewList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("reviews"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Review#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#reviewsList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("sameAs"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#sameAsScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#sameAsList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("seller"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#sellerList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("serialNumber"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#serialNumberScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#serialNumberList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("shippingDetails"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.OfferShippingDetails#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#shippingDetailsList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("sku"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#skuScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#skuList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("subjectOf"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#subjectOfList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("url"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#urlScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#urlList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("validForMemberTier"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.MemberProgramTier#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#validForMemberTierList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("validFrom"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#validFromScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#validFromList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("validThrough"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#validThroughScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#validThroughList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("warranty"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.WarrantyPromise#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.offer#warrantyList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("main"),
                LexUserType::Record(LexRecord {
                    key: Some(CowStr::new_static("tid")),
                    record: LexRecordRecord::Object(LexObject {
                        description: Some(
                            CowStr::new_static(
                                "An offer to transfer some rights to an item or to provide a service — for example, an offer to sell tickets to an event, to rent the DVD of a movie, to stream a TV show over the internet, to repair a motorcycle, or to loan a book.\\n\\nNote: As the [[businessFunction]] property, which identifies the form of offer (e.g. sell, lease, repair, dispose), defaults to http://purl.org/goodrelations/v1#Sell; an Offer without a defined businessFunction value can be assumed to be an offer to sell.\\n\\nFor [GTIN](http://www.gs1.org/barcodes/technical/idkeys/gtin)-related fields, see [Check Digit calculator](http://www.gs1.org/barcodes/support/check_digit_calculator) and [validation guide](http://www.gs1us.org/resources/standards/gtin-validation-guide) from [GS1](http://www.gs1.org/).",
                            ),
                        ),
                        properties: {
                            #[allow(unused_mut)]
                            let mut map = BTreeMap::new();
                            map.insert(
                                SmolStr::new_static("acceptedPaymentMethod"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.LoanOrCredit#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.PaymentMethod#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#acceptedPaymentMethodScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#acceptedPaymentMethodList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("addOn"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Offer#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#addOnList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("additionalProperty"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.PropertyValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#additionalPropertyList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("additionalType"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#additionalTypeScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#additionalTypeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("advanceBookingRequirement"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#advanceBookingRequirementList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("aggregateRating"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.AggregateRating#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#aggregateRatingList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("alternateName"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#alternateNameScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#alternateNameList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("areaServed"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.AdministrativeArea#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.GeoShape#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#areaServedScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#areaServedList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("asin"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#asinScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#asinList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("availability"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.ItemAvailability#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("availabilityEnds"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityEndsScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityEndsList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("availabilityStarts"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityStartsScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#availabilityStartsList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("availableAtOrFrom"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#availableAtOrFromList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("availableDeliveryMethod"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.DeliveryMethod#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#availableDeliveryMethodScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#availableDeliveryMethodList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("businessFunction"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.BusinessFunction#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#businessFunctionScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#businessFunctionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("category"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.CategoryCode#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.PhysicalActivityCategory#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Thing#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#categoryScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#categoryList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("checkoutPageURLTemplate"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#checkoutPageURLTemplateScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#checkoutPageURLTemplateList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("deliveryLeadTime"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#deliveryLeadTimeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("description"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.TextObject#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#descriptionScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#descriptionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("disambiguatingDescription"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#disambiguatingDescriptionScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#disambiguatingDescriptionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("eligibleCustomerType"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.BusinessEntityType#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleCustomerTypeScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleCustomerTypeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("eligibleDuration"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleDurationList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("eligibleQuantity"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleQuantityList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("eligibleRegion"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.GeoShape#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleRegionScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleRegionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("eligibleTransactionVolume"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.PriceSpecification#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#eligibleTransactionVolumeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("gtin"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtinScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtinList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("gtin12"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin12Scalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin12List")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("gtin13"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin13Scalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin13List")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("gtin14"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin14Scalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin14List")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("gtin8"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin8Scalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#gtin8List")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("hasAdultConsideration"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.AdultOrientedEnumeration#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasAdultConsiderationScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasAdultConsiderationList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("hasGS1DigitalLink"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasGS1DigitalLinkScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasGS1DigitalLinkList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("hasMeasurement"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasMeasurementList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("hasMerchantReturnPolicy"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.MerchantReturnPolicy#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#hasMerchantReturnPolicyList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("identifier"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.PropertyValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#identifierScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#identifierList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("image"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.ImageObject#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#imageScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#imageList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("includesObject"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.TypeAndQuantityNode#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#includesObjectList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("ineligibleRegion"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.GeoShape#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#ineligibleRegionScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#ineligibleRegionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("inventoryLevel"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#inventoryLevelList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("isFamilyFriendly"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#isFamilyFriendlyScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#isFamilyFriendlyList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("itemCondition"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.OfferItemCondition#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#itemConditionScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#itemConditionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("itemOffered"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.AggregateOffer#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.MenuItem#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Product#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Service#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Trip#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#itemOfferedList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("leaseLength"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#leaseLengthScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#leaseLengthList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("mainEntityOfPage"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#mainEntityOfPageScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#mainEntityOfPageList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("mobileUrl"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#mobileUrlScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#mobileUrlList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("mpn"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#mpnScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#mpnList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("name"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#nameScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#nameList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("offeredBy"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#offeredByList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("potentialAction"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Action#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#potentialActionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("price"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("priceCurrency"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceCurrencyScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceCurrencyList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("priceSpecification"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.PriceSpecification#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceSpecificationList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("priceValidUntil"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceValidUntilScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#priceValidUntilList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("review"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Review#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#reviewList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("reviews"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Review#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#reviewsList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("sameAs"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#sameAsScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#sameAsList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("seller"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#sellerList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("serialNumber"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#serialNumberScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#serialNumberList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("shippingDetails"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.OfferShippingDetails#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#shippingDetailsList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("sku"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#skuScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#skuList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("subjectOf"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#subjectOfList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("url"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#urlScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#urlList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("validForMemberTier"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.MemberProgramTier#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#validForMemberTierList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("validFrom"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#validFromScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#validFromList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("validThrough"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#validThroughScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#validThroughList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("warranty"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.WarrantyPromise#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.offer#warrantyList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map
                        },
                        ..Default::default()
                    }),
                    ..Default::default()
                }),
            );
            map
        },
        ..Default::default()
    }
}

pub mod offer_state {

    pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
    #[allow(unused)]
    use ::core::marker::PhantomData;
    mod sealed {
        pub trait Sealed {}
    }
    /// State trait tracking which required fields have been set
    pub trait State: sealed::Sealed {}
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {}
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {}
}

/// Builder for constructing an instance of this type
pub struct OfferBuilder<'a, S: offer_state::State> {
    _state: PhantomData<fn() -> S>,
    _fields: (
        Option<OfferAcceptedPaymentMethod<'a>>,
        Option<OfferAddOn<'a>>,
        Option<OfferAdditionalProperty<'a>>,
        Option<OfferAdditionalType<'a>>,
        Option<OfferAdvanceBookingRequirement<'a>>,
        Option<OfferAggregateRating<'a>>,
        Option<OfferAlternateName<'a>>,
        Option<OfferAreaServed<'a>>,
        Option<OfferAsin<'a>>,
        Option<OfferAvailability<'a>>,
        Option<OfferAvailabilityEnds<'a>>,
        Option<OfferAvailabilityStarts<'a>>,
        Option<OfferAvailableAtOrFrom<'a>>,
        Option<OfferAvailableDeliveryMethod<'a>>,
        Option<OfferBusinessFunction<'a>>,
        Option<OfferCategory<'a>>,
        Option<OfferCheckoutPageUrlTemplate<'a>>,
        Option<OfferDeliveryLeadTime<'a>>,
        Option<OfferDescription<'a>>,
        Option<OfferDisambiguatingDescription<'a>>,
        Option<OfferEligibleCustomerType<'a>>,
        Option<OfferEligibleDuration<'a>>,
        Option<OfferEligibleQuantity<'a>>,
        Option<OfferEligibleRegion<'a>>,
        Option<OfferEligibleTransactionVolume<'a>>,
        Option<OfferGtin<'a>>,
        Option<OfferGtin12<'a>>,
        Option<OfferGtin13<'a>>,
        Option<OfferGtin14<'a>>,
        Option<OfferGtin8<'a>>,
        Option<OfferHasAdultConsideration<'a>>,
        Option<OfferHasGs1DigitalLink<'a>>,
        Option<OfferHasMeasurement<'a>>,
        Option<OfferHasMerchantReturnPolicy<'a>>,
        Option<OfferIdentifier<'a>>,
        Option<OfferImage<'a>>,
        Option<OfferIncludesObject<'a>>,
        Option<OfferIneligibleRegion<'a>>,
        Option<OfferInventoryLevel<'a>>,
        Option<OfferIsFamilyFriendly<'a>>,
        Option<OfferItemCondition<'a>>,
        Option<OfferItemOffered<'a>>,
        Option<OfferLeaseLength<'a>>,
        Option<OfferMainEntityOfPage<'a>>,
        Option<OfferMobileUrl<'a>>,
        Option<OfferMpn<'a>>,
        Option<OfferName<'a>>,
        Option<OfferOfferedBy<'a>>,
        Option<OfferPotentialAction<'a>>,
        Option<OfferPrice<'a>>,
        Option<OfferPriceCurrency<'a>>,
        Option<OfferPriceSpecification<'a>>,
        Option<OfferPriceValidUntil<'a>>,
        Option<OfferReview<'a>>,
        Option<OfferReviews<'a>>,
        Option<OfferSameAs<'a>>,
        Option<OfferSeller<'a>>,
        Option<OfferSerialNumber<'a>>,
        Option<OfferShippingDetails<'a>>,
        Option<OfferSku<'a>>,
        Option<OfferSubjectOf<'a>>,
        Option<OfferUrl<'a>>,
        Option<OfferValidForMemberTier<'a>>,
        Option<OfferValidFrom<'a>>,
        Option<OfferValidThrough<'a>>,
        Option<OfferWarranty<'a>>,
    ),
    _lifetime: PhantomData<&'a ()>,
}

impl<'a> Offer<'a> {
    /// Create a new builder for this type
    pub fn new() -> OfferBuilder<'a, offer_state::Empty> {
        OfferBuilder::new()
    }
}

impl<'a> OfferBuilder<'a, offer_state::Empty> {
    /// Create a new builder with all fields unset
    pub fn new() -> Self {
        OfferBuilder {
            _state: PhantomData,
            _fields: (
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
            ),
            _lifetime: PhantomData,
        }
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `acceptedPaymentMethod` field (optional)
    pub fn accepted_payment_method(
        mut self,
        value: impl Into<Option<OfferAcceptedPaymentMethod<'a>>>,
    ) -> Self {
        self._fields.0 = value.into();
        self
    }
    /// Set the `acceptedPaymentMethod` field to an Option value (optional)
    pub fn maybe_accepted_payment_method(
        mut self,
        value: Option<OfferAcceptedPaymentMethod<'a>>,
    ) -> Self {
        self._fields.0 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `addOn` field (optional)
    pub fn add_on(mut self, value: impl Into<Option<OfferAddOn<'a>>>) -> Self {
        self._fields.1 = value.into();
        self
    }
    /// Set the `addOn` field to an Option value (optional)
    pub fn maybe_add_on(mut self, value: Option<OfferAddOn<'a>>) -> Self {
        self._fields.1 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `additionalProperty` field (optional)
    pub fn additional_property(
        mut self,
        value: impl Into<Option<OfferAdditionalProperty<'a>>>,
    ) -> Self {
        self._fields.2 = value.into();
        self
    }
    /// Set the `additionalProperty` field to an Option value (optional)
    pub fn maybe_additional_property(
        mut self,
        value: Option<OfferAdditionalProperty<'a>>,
    ) -> Self {
        self._fields.2 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `additionalType` field (optional)
    pub fn additional_type(
        mut self,
        value: impl Into<Option<OfferAdditionalType<'a>>>,
    ) -> Self {
        self._fields.3 = value.into();
        self
    }
    /// Set the `additionalType` field to an Option value (optional)
    pub fn maybe_additional_type(
        mut self,
        value: Option<OfferAdditionalType<'a>>,
    ) -> Self {
        self._fields.3 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `advanceBookingRequirement` field (optional)
    pub fn advance_booking_requirement(
        mut self,
        value: impl Into<Option<OfferAdvanceBookingRequirement<'a>>>,
    ) -> Self {
        self._fields.4 = value.into();
        self
    }
    /// Set the `advanceBookingRequirement` field to an Option value (optional)
    pub fn maybe_advance_booking_requirement(
        mut self,
        value: Option<OfferAdvanceBookingRequirement<'a>>,
    ) -> Self {
        self._fields.4 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `aggregateRating` field (optional)
    pub fn aggregate_rating(
        mut self,
        value: impl Into<Option<OfferAggregateRating<'a>>>,
    ) -> Self {
        self._fields.5 = value.into();
        self
    }
    /// Set the `aggregateRating` field to an Option value (optional)
    pub fn maybe_aggregate_rating(
        mut self,
        value: Option<OfferAggregateRating<'a>>,
    ) -> Self {
        self._fields.5 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `alternateName` field (optional)
    pub fn alternate_name(
        mut self,
        value: impl Into<Option<OfferAlternateName<'a>>>,
    ) -> Self {
        self._fields.6 = value.into();
        self
    }
    /// Set the `alternateName` field to an Option value (optional)
    pub fn maybe_alternate_name(
        mut self,
        value: Option<OfferAlternateName<'a>>,
    ) -> Self {
        self._fields.6 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `areaServed` field (optional)
    pub fn area_served(mut self, value: impl Into<Option<OfferAreaServed<'a>>>) -> Self {
        self._fields.7 = value.into();
        self
    }
    /// Set the `areaServed` field to an Option value (optional)
    pub fn maybe_area_served(mut self, value: Option<OfferAreaServed<'a>>) -> Self {
        self._fields.7 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `asin` field (optional)
    pub fn asin(mut self, value: impl Into<Option<OfferAsin<'a>>>) -> Self {
        self._fields.8 = value.into();
        self
    }
    /// Set the `asin` field to an Option value (optional)
    pub fn maybe_asin(mut self, value: Option<OfferAsin<'a>>) -> Self {
        self._fields.8 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `availability` field (optional)
    pub fn availability(
        mut self,
        value: impl Into<Option<OfferAvailability<'a>>>,
    ) -> Self {
        self._fields.9 = value.into();
        self
    }
    /// Set the `availability` field to an Option value (optional)
    pub fn maybe_availability(mut self, value: Option<OfferAvailability<'a>>) -> Self {
        self._fields.9 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `availabilityEnds` field (optional)
    pub fn availability_ends(
        mut self,
        value: impl Into<Option<OfferAvailabilityEnds<'a>>>,
    ) -> Self {
        self._fields.10 = value.into();
        self
    }
    /// Set the `availabilityEnds` field to an Option value (optional)
    pub fn maybe_availability_ends(
        mut self,
        value: Option<OfferAvailabilityEnds<'a>>,
    ) -> Self {
        self._fields.10 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `availabilityStarts` field (optional)
    pub fn availability_starts(
        mut self,
        value: impl Into<Option<OfferAvailabilityStarts<'a>>>,
    ) -> Self {
        self._fields.11 = value.into();
        self
    }
    /// Set the `availabilityStarts` field to an Option value (optional)
    pub fn maybe_availability_starts(
        mut self,
        value: Option<OfferAvailabilityStarts<'a>>,
    ) -> Self {
        self._fields.11 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `availableAtOrFrom` field (optional)
    pub fn available_at_or_from(
        mut self,
        value: impl Into<Option<OfferAvailableAtOrFrom<'a>>>,
    ) -> Self {
        self._fields.12 = value.into();
        self
    }
    /// Set the `availableAtOrFrom` field to an Option value (optional)
    pub fn maybe_available_at_or_from(
        mut self,
        value: Option<OfferAvailableAtOrFrom<'a>>,
    ) -> Self {
        self._fields.12 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `availableDeliveryMethod` field (optional)
    pub fn available_delivery_method(
        mut self,
        value: impl Into<Option<OfferAvailableDeliveryMethod<'a>>>,
    ) -> Self {
        self._fields.13 = value.into();
        self
    }
    /// Set the `availableDeliveryMethod` field to an Option value (optional)
    pub fn maybe_available_delivery_method(
        mut self,
        value: Option<OfferAvailableDeliveryMethod<'a>>,
    ) -> Self {
        self._fields.13 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `businessFunction` field (optional)
    pub fn business_function(
        mut self,
        value: impl Into<Option<OfferBusinessFunction<'a>>>,
    ) -> Self {
        self._fields.14 = value.into();
        self
    }
    /// Set the `businessFunction` field to an Option value (optional)
    pub fn maybe_business_function(
        mut self,
        value: Option<OfferBusinessFunction<'a>>,
    ) -> Self {
        self._fields.14 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `category` field (optional)
    pub fn category(mut self, value: impl Into<Option<OfferCategory<'a>>>) -> Self {
        self._fields.15 = value.into();
        self
    }
    /// Set the `category` field to an Option value (optional)
    pub fn maybe_category(mut self, value: Option<OfferCategory<'a>>) -> Self {
        self._fields.15 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `checkoutPageURLTemplate` field (optional)
    pub fn checkout_page_url_template(
        mut self,
        value: impl Into<Option<OfferCheckoutPageUrlTemplate<'a>>>,
    ) -> Self {
        self._fields.16 = value.into();
        self
    }
    /// Set the `checkoutPageURLTemplate` field to an Option value (optional)
    pub fn maybe_checkout_page_url_template(
        mut self,
        value: Option<OfferCheckoutPageUrlTemplate<'a>>,
    ) -> Self {
        self._fields.16 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `deliveryLeadTime` field (optional)
    pub fn delivery_lead_time(
        mut self,
        value: impl Into<Option<OfferDeliveryLeadTime<'a>>>,
    ) -> Self {
        self._fields.17 = value.into();
        self
    }
    /// Set the `deliveryLeadTime` field to an Option value (optional)
    pub fn maybe_delivery_lead_time(
        mut self,
        value: Option<OfferDeliveryLeadTime<'a>>,
    ) -> Self {
        self._fields.17 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `description` field (optional)
    pub fn description(
        mut self,
        value: impl Into<Option<OfferDescription<'a>>>,
    ) -> Self {
        self._fields.18 = value.into();
        self
    }
    /// Set the `description` field to an Option value (optional)
    pub fn maybe_description(mut self, value: Option<OfferDescription<'a>>) -> Self {
        self._fields.18 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `disambiguatingDescription` field (optional)
    pub fn disambiguating_description(
        mut self,
        value: impl Into<Option<OfferDisambiguatingDescription<'a>>>,
    ) -> Self {
        self._fields.19 = value.into();
        self
    }
    /// Set the `disambiguatingDescription` field to an Option value (optional)
    pub fn maybe_disambiguating_description(
        mut self,
        value: Option<OfferDisambiguatingDescription<'a>>,
    ) -> Self {
        self._fields.19 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `eligibleCustomerType` field (optional)
    pub fn eligible_customer_type(
        mut self,
        value: impl Into<Option<OfferEligibleCustomerType<'a>>>,
    ) -> Self {
        self._fields.20 = value.into();
        self
    }
    /// Set the `eligibleCustomerType` field to an Option value (optional)
    pub fn maybe_eligible_customer_type(
        mut self,
        value: Option<OfferEligibleCustomerType<'a>>,
    ) -> Self {
        self._fields.20 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `eligibleDuration` field (optional)
    pub fn eligible_duration(
        mut self,
        value: impl Into<Option<OfferEligibleDuration<'a>>>,
    ) -> Self {
        self._fields.21 = value.into();
        self
    }
    /// Set the `eligibleDuration` field to an Option value (optional)
    pub fn maybe_eligible_duration(
        mut self,
        value: Option<OfferEligibleDuration<'a>>,
    ) -> Self {
        self._fields.21 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `eligibleQuantity` field (optional)
    pub fn eligible_quantity(
        mut self,
        value: impl Into<Option<OfferEligibleQuantity<'a>>>,
    ) -> Self {
        self._fields.22 = value.into();
        self
    }
    /// Set the `eligibleQuantity` field to an Option value (optional)
    pub fn maybe_eligible_quantity(
        mut self,
        value: Option<OfferEligibleQuantity<'a>>,
    ) -> Self {
        self._fields.22 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `eligibleRegion` field (optional)
    pub fn eligible_region(
        mut self,
        value: impl Into<Option<OfferEligibleRegion<'a>>>,
    ) -> Self {
        self._fields.23 = value.into();
        self
    }
    /// Set the `eligibleRegion` field to an Option value (optional)
    pub fn maybe_eligible_region(
        mut self,
        value: Option<OfferEligibleRegion<'a>>,
    ) -> Self {
        self._fields.23 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `eligibleTransactionVolume` field (optional)
    pub fn eligible_transaction_volume(
        mut self,
        value: impl Into<Option<OfferEligibleTransactionVolume<'a>>>,
    ) -> Self {
        self._fields.24 = value.into();
        self
    }
    /// Set the `eligibleTransactionVolume` field to an Option value (optional)
    pub fn maybe_eligible_transaction_volume(
        mut self,
        value: Option<OfferEligibleTransactionVolume<'a>>,
    ) -> Self {
        self._fields.24 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `gtin` field (optional)
    pub fn gtin(mut self, value: impl Into<Option<OfferGtin<'a>>>) -> Self {
        self._fields.25 = value.into();
        self
    }
    /// Set the `gtin` field to an Option value (optional)
    pub fn maybe_gtin(mut self, value: Option<OfferGtin<'a>>) -> Self {
        self._fields.25 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `gtin12` field (optional)
    pub fn gtin12(mut self, value: impl Into<Option<OfferGtin12<'a>>>) -> Self {
        self._fields.26 = value.into();
        self
    }
    /// Set the `gtin12` field to an Option value (optional)
    pub fn maybe_gtin12(mut self, value: Option<OfferGtin12<'a>>) -> Self {
        self._fields.26 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `gtin13` field (optional)
    pub fn gtin13(mut self, value: impl Into<Option<OfferGtin13<'a>>>) -> Self {
        self._fields.27 = value.into();
        self
    }
    /// Set the `gtin13` field to an Option value (optional)
    pub fn maybe_gtin13(mut self, value: Option<OfferGtin13<'a>>) -> Self {
        self._fields.27 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `gtin14` field (optional)
    pub fn gtin14(mut self, value: impl Into<Option<OfferGtin14<'a>>>) -> Self {
        self._fields.28 = value.into();
        self
    }
    /// Set the `gtin14` field to an Option value (optional)
    pub fn maybe_gtin14(mut self, value: Option<OfferGtin14<'a>>) -> Self {
        self._fields.28 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `gtin8` field (optional)
    pub fn gtin8(mut self, value: impl Into<Option<OfferGtin8<'a>>>) -> Self {
        self._fields.29 = value.into();
        self
    }
    /// Set the `gtin8` field to an Option value (optional)
    pub fn maybe_gtin8(mut self, value: Option<OfferGtin8<'a>>) -> Self {
        self._fields.29 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `hasAdultConsideration` field (optional)
    pub fn has_adult_consideration(
        mut self,
        value: impl Into<Option<OfferHasAdultConsideration<'a>>>,
    ) -> Self {
        self._fields.30 = value.into();
        self
    }
    /// Set the `hasAdultConsideration` field to an Option value (optional)
    pub fn maybe_has_adult_consideration(
        mut self,
        value: Option<OfferHasAdultConsideration<'a>>,
    ) -> Self {
        self._fields.30 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `hasGS1DigitalLink` field (optional)
    pub fn has_gs1_digital_link(
        mut self,
        value: impl Into<Option<OfferHasGs1DigitalLink<'a>>>,
    ) -> Self {
        self._fields.31 = value.into();
        self
    }
    /// Set the `hasGS1DigitalLink` field to an Option value (optional)
    pub fn maybe_has_gs1_digital_link(
        mut self,
        value: Option<OfferHasGs1DigitalLink<'a>>,
    ) -> Self {
        self._fields.31 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `hasMeasurement` field (optional)
    pub fn has_measurement(
        mut self,
        value: impl Into<Option<OfferHasMeasurement<'a>>>,
    ) -> Self {
        self._fields.32 = value.into();
        self
    }
    /// Set the `hasMeasurement` field to an Option value (optional)
    pub fn maybe_has_measurement(
        mut self,
        value: Option<OfferHasMeasurement<'a>>,
    ) -> Self {
        self._fields.32 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `hasMerchantReturnPolicy` field (optional)
    pub fn has_merchant_return_policy(
        mut self,
        value: impl Into<Option<OfferHasMerchantReturnPolicy<'a>>>,
    ) -> Self {
        self._fields.33 = value.into();
        self
    }
    /// Set the `hasMerchantReturnPolicy` field to an Option value (optional)
    pub fn maybe_has_merchant_return_policy(
        mut self,
        value: Option<OfferHasMerchantReturnPolicy<'a>>,
    ) -> Self {
        self._fields.33 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `identifier` field (optional)
    pub fn identifier(mut self, value: impl Into<Option<OfferIdentifier<'a>>>) -> Self {
        self._fields.34 = value.into();
        self
    }
    /// Set the `identifier` field to an Option value (optional)
    pub fn maybe_identifier(mut self, value: Option<OfferIdentifier<'a>>) -> Self {
        self._fields.34 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `image` field (optional)
    pub fn image(mut self, value: impl Into<Option<OfferImage<'a>>>) -> Self {
        self._fields.35 = value.into();
        self
    }
    /// Set the `image` field to an Option value (optional)
    pub fn maybe_image(mut self, value: Option<OfferImage<'a>>) -> Self {
        self._fields.35 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `includesObject` field (optional)
    pub fn includes_object(
        mut self,
        value: impl Into<Option<OfferIncludesObject<'a>>>,
    ) -> Self {
        self._fields.36 = value.into();
        self
    }
    /// Set the `includesObject` field to an Option value (optional)
    pub fn maybe_includes_object(
        mut self,
        value: Option<OfferIncludesObject<'a>>,
    ) -> Self {
        self._fields.36 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `ineligibleRegion` field (optional)
    pub fn ineligible_region(
        mut self,
        value: impl Into<Option<OfferIneligibleRegion<'a>>>,
    ) -> Self {
        self._fields.37 = value.into();
        self
    }
    /// Set the `ineligibleRegion` field to an Option value (optional)
    pub fn maybe_ineligible_region(
        mut self,
        value: Option<OfferIneligibleRegion<'a>>,
    ) -> Self {
        self._fields.37 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `inventoryLevel` field (optional)
    pub fn inventory_level(
        mut self,
        value: impl Into<Option<OfferInventoryLevel<'a>>>,
    ) -> Self {
        self._fields.38 = value.into();
        self
    }
    /// Set the `inventoryLevel` field to an Option value (optional)
    pub fn maybe_inventory_level(
        mut self,
        value: Option<OfferInventoryLevel<'a>>,
    ) -> Self {
        self._fields.38 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `isFamilyFriendly` field (optional)
    pub fn is_family_friendly(
        mut self,
        value: impl Into<Option<OfferIsFamilyFriendly<'a>>>,
    ) -> Self {
        self._fields.39 = value.into();
        self
    }
    /// Set the `isFamilyFriendly` field to an Option value (optional)
    pub fn maybe_is_family_friendly(
        mut self,
        value: Option<OfferIsFamilyFriendly<'a>>,
    ) -> Self {
        self._fields.39 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `itemCondition` field (optional)
    pub fn item_condition(
        mut self,
        value: impl Into<Option<OfferItemCondition<'a>>>,
    ) -> Self {
        self._fields.40 = value.into();
        self
    }
    /// Set the `itemCondition` field to an Option value (optional)
    pub fn maybe_item_condition(
        mut self,
        value: Option<OfferItemCondition<'a>>,
    ) -> Self {
        self._fields.40 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `itemOffered` field (optional)
    pub fn item_offered(
        mut self,
        value: impl Into<Option<OfferItemOffered<'a>>>,
    ) -> Self {
        self._fields.41 = value.into();
        self
    }
    /// Set the `itemOffered` field to an Option value (optional)
    pub fn maybe_item_offered(mut self, value: Option<OfferItemOffered<'a>>) -> Self {
        self._fields.41 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `leaseLength` field (optional)
    pub fn lease_length(
        mut self,
        value: impl Into<Option<OfferLeaseLength<'a>>>,
    ) -> Self {
        self._fields.42 = value.into();
        self
    }
    /// Set the `leaseLength` field to an Option value (optional)
    pub fn maybe_lease_length(mut self, value: Option<OfferLeaseLength<'a>>) -> Self {
        self._fields.42 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `mainEntityOfPage` field (optional)
    pub fn main_entity_of_page(
        mut self,
        value: impl Into<Option<OfferMainEntityOfPage<'a>>>,
    ) -> Self {
        self._fields.43 = value.into();
        self
    }
    /// Set the `mainEntityOfPage` field to an Option value (optional)
    pub fn maybe_main_entity_of_page(
        mut self,
        value: Option<OfferMainEntityOfPage<'a>>,
    ) -> Self {
        self._fields.43 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `mobileUrl` field (optional)
    pub fn mobile_url(mut self, value: impl Into<Option<OfferMobileUrl<'a>>>) -> Self {
        self._fields.44 = value.into();
        self
    }
    /// Set the `mobileUrl` field to an Option value (optional)
    pub fn maybe_mobile_url(mut self, value: Option<OfferMobileUrl<'a>>) -> Self {
        self._fields.44 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `mpn` field (optional)
    pub fn mpn(mut self, value: impl Into<Option<OfferMpn<'a>>>) -> Self {
        self._fields.45 = value.into();
        self
    }
    /// Set the `mpn` field to an Option value (optional)
    pub fn maybe_mpn(mut self, value: Option<OfferMpn<'a>>) -> Self {
        self._fields.45 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `name` field (optional)
    pub fn name(mut self, value: impl Into<Option<OfferName<'a>>>) -> Self {
        self._fields.46 = value.into();
        self
    }
    /// Set the `name` field to an Option value (optional)
    pub fn maybe_name(mut self, value: Option<OfferName<'a>>) -> Self {
        self._fields.46 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `offeredBy` field (optional)
    pub fn offered_by(mut self, value: impl Into<Option<OfferOfferedBy<'a>>>) -> Self {
        self._fields.47 = value.into();
        self
    }
    /// Set the `offeredBy` field to an Option value (optional)
    pub fn maybe_offered_by(mut self, value: Option<OfferOfferedBy<'a>>) -> Self {
        self._fields.47 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `potentialAction` field (optional)
    pub fn potential_action(
        mut self,
        value: impl Into<Option<OfferPotentialAction<'a>>>,
    ) -> Self {
        self._fields.48 = value.into();
        self
    }
    /// Set the `potentialAction` field to an Option value (optional)
    pub fn maybe_potential_action(
        mut self,
        value: Option<OfferPotentialAction<'a>>,
    ) -> Self {
        self._fields.48 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `price` field (optional)
    pub fn price(mut self, value: impl Into<Option<OfferPrice<'a>>>) -> Self {
        self._fields.49 = value.into();
        self
    }
    /// Set the `price` field to an Option value (optional)
    pub fn maybe_price(mut self, value: Option<OfferPrice<'a>>) -> Self {
        self._fields.49 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `priceCurrency` field (optional)
    pub fn price_currency(
        mut self,
        value: impl Into<Option<OfferPriceCurrency<'a>>>,
    ) -> Self {
        self._fields.50 = value.into();
        self
    }
    /// Set the `priceCurrency` field to an Option value (optional)
    pub fn maybe_price_currency(
        mut self,
        value: Option<OfferPriceCurrency<'a>>,
    ) -> Self {
        self._fields.50 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `priceSpecification` field (optional)
    pub fn price_specification(
        mut self,
        value: impl Into<Option<OfferPriceSpecification<'a>>>,
    ) -> Self {
        self._fields.51 = value.into();
        self
    }
    /// Set the `priceSpecification` field to an Option value (optional)
    pub fn maybe_price_specification(
        mut self,
        value: Option<OfferPriceSpecification<'a>>,
    ) -> Self {
        self._fields.51 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `priceValidUntil` field (optional)
    pub fn price_valid_until(
        mut self,
        value: impl Into<Option<OfferPriceValidUntil<'a>>>,
    ) -> Self {
        self._fields.52 = value.into();
        self
    }
    /// Set the `priceValidUntil` field to an Option value (optional)
    pub fn maybe_price_valid_until(
        mut self,
        value: Option<OfferPriceValidUntil<'a>>,
    ) -> Self {
        self._fields.52 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `review` field (optional)
    pub fn review(mut self, value: impl Into<Option<OfferReview<'a>>>) -> Self {
        self._fields.53 = value.into();
        self
    }
    /// Set the `review` field to an Option value (optional)
    pub fn maybe_review(mut self, value: Option<OfferReview<'a>>) -> Self {
        self._fields.53 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `reviews` field (optional)
    pub fn reviews(mut self, value: impl Into<Option<OfferReviews<'a>>>) -> Self {
        self._fields.54 = value.into();
        self
    }
    /// Set the `reviews` field to an Option value (optional)
    pub fn maybe_reviews(mut self, value: Option<OfferReviews<'a>>) -> Self {
        self._fields.54 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `sameAs` field (optional)
    pub fn same_as(mut self, value: impl Into<Option<OfferSameAs<'a>>>) -> Self {
        self._fields.55 = value.into();
        self
    }
    /// Set the `sameAs` field to an Option value (optional)
    pub fn maybe_same_as(mut self, value: Option<OfferSameAs<'a>>) -> Self {
        self._fields.55 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `seller` field (optional)
    pub fn seller(mut self, value: impl Into<Option<OfferSeller<'a>>>) -> Self {
        self._fields.56 = value.into();
        self
    }
    /// Set the `seller` field to an Option value (optional)
    pub fn maybe_seller(mut self, value: Option<OfferSeller<'a>>) -> Self {
        self._fields.56 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `serialNumber` field (optional)
    pub fn serial_number(
        mut self,
        value: impl Into<Option<OfferSerialNumber<'a>>>,
    ) -> Self {
        self._fields.57 = value.into();
        self
    }
    /// Set the `serialNumber` field to an Option value (optional)
    pub fn maybe_serial_number(mut self, value: Option<OfferSerialNumber<'a>>) -> Self {
        self._fields.57 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `shippingDetails` field (optional)
    pub fn shipping_details(
        mut self,
        value: impl Into<Option<OfferShippingDetails<'a>>>,
    ) -> Self {
        self._fields.58 = value.into();
        self
    }
    /// Set the `shippingDetails` field to an Option value (optional)
    pub fn maybe_shipping_details(
        mut self,
        value: Option<OfferShippingDetails<'a>>,
    ) -> Self {
        self._fields.58 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `sku` field (optional)
    pub fn sku(mut self, value: impl Into<Option<OfferSku<'a>>>) -> Self {
        self._fields.59 = value.into();
        self
    }
    /// Set the `sku` field to an Option value (optional)
    pub fn maybe_sku(mut self, value: Option<OfferSku<'a>>) -> Self {
        self._fields.59 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `subjectOf` field (optional)
    pub fn subject_of(mut self, value: impl Into<Option<OfferSubjectOf<'a>>>) -> Self {
        self._fields.60 = value.into();
        self
    }
    /// Set the `subjectOf` field to an Option value (optional)
    pub fn maybe_subject_of(mut self, value: Option<OfferSubjectOf<'a>>) -> Self {
        self._fields.60 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `url` field (optional)
    pub fn url(mut self, value: impl Into<Option<OfferUrl<'a>>>) -> Self {
        self._fields.61 = value.into();
        self
    }
    /// Set the `url` field to an Option value (optional)
    pub fn maybe_url(mut self, value: Option<OfferUrl<'a>>) -> Self {
        self._fields.61 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `validForMemberTier` field (optional)
    pub fn valid_for_member_tier(
        mut self,
        value: impl Into<Option<OfferValidForMemberTier<'a>>>,
    ) -> Self {
        self._fields.62 = value.into();
        self
    }
    /// Set the `validForMemberTier` field to an Option value (optional)
    pub fn maybe_valid_for_member_tier(
        mut self,
        value: Option<OfferValidForMemberTier<'a>>,
    ) -> Self {
        self._fields.62 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `validFrom` field (optional)
    pub fn valid_from(mut self, value: impl Into<Option<OfferValidFrom<'a>>>) -> Self {
        self._fields.63 = value.into();
        self
    }
    /// Set the `validFrom` field to an Option value (optional)
    pub fn maybe_valid_from(mut self, value: Option<OfferValidFrom<'a>>) -> Self {
        self._fields.63 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `validThrough` field (optional)
    pub fn valid_through(
        mut self,
        value: impl Into<Option<OfferValidThrough<'a>>>,
    ) -> Self {
        self._fields.64 = value.into();
        self
    }
    /// Set the `validThrough` field to an Option value (optional)
    pub fn maybe_valid_through(mut self, value: Option<OfferValidThrough<'a>>) -> Self {
        self._fields.64 = value;
        self
    }
}

impl<'a, S: offer_state::State> OfferBuilder<'a, S> {
    /// Set the `warranty` field (optional)
    pub fn warranty(mut self, value: impl Into<Option<OfferWarranty<'a>>>) -> Self {
        self._fields.65 = value.into();
        self
    }
    /// Set the `warranty` field to an Option value (optional)
    pub fn maybe_warranty(mut self, value: Option<OfferWarranty<'a>>) -> Self {
        self._fields.65 = value;
        self
    }
}

impl<'a, S> OfferBuilder<'a, S>
where
    S: offer_state::State,
{
    /// Build the final struct
    pub fn build(self) -> Offer<'a> {
        Offer {
            accepted_payment_method: self._fields.0,
            add_on: self._fields.1,
            additional_property: self._fields.2,
            additional_type: self._fields.3,
            advance_booking_requirement: self._fields.4,
            aggregate_rating: self._fields.5,
            alternate_name: self._fields.6,
            area_served: self._fields.7,
            asin: self._fields.8,
            availability: self._fields.9,
            availability_ends: self._fields.10,
            availability_starts: self._fields.11,
            available_at_or_from: self._fields.12,
            available_delivery_method: self._fields.13,
            business_function: self._fields.14,
            category: self._fields.15,
            checkout_page_url_template: self._fields.16,
            delivery_lead_time: self._fields.17,
            description: self._fields.18,
            disambiguating_description: self._fields.19,
            eligible_customer_type: self._fields.20,
            eligible_duration: self._fields.21,
            eligible_quantity: self._fields.22,
            eligible_region: self._fields.23,
            eligible_transaction_volume: self._fields.24,
            gtin: self._fields.25,
            gtin12: self._fields.26,
            gtin13: self._fields.27,
            gtin14: self._fields.28,
            gtin8: self._fields.29,
            has_adult_consideration: self._fields.30,
            has_gs1_digital_link: self._fields.31,
            has_measurement: self._fields.32,
            has_merchant_return_policy: self._fields.33,
            identifier: self._fields.34,
            image: self._fields.35,
            includes_object: self._fields.36,
            ineligible_region: self._fields.37,
            inventory_level: self._fields.38,
            is_family_friendly: self._fields.39,
            item_condition: self._fields.40,
            item_offered: self._fields.41,
            lease_length: self._fields.42,
            main_entity_of_page: self._fields.43,
            mobile_url: self._fields.44,
            mpn: self._fields.45,
            name: self._fields.46,
            offered_by: self._fields.47,
            potential_action: self._fields.48,
            price: self._fields.49,
            price_currency: self._fields.50,
            price_specification: self._fields.51,
            price_valid_until: self._fields.52,
            review: self._fields.53,
            reviews: self._fields.54,
            same_as: self._fields.55,
            seller: self._fields.56,
            serial_number: self._fields.57,
            shipping_details: self._fields.58,
            sku: self._fields.59,
            subject_of: self._fields.60,
            url: self._fields.61,
            valid_for_member_tier: self._fields.62,
            valid_from: self._fields.63,
            valid_through: self._fields.64,
            warranty: self._fields.65,
            extra_data: Default::default(),
        }
    }
    /// Build the final struct with custom extra_data
    pub fn build_with_data(
        self,
        extra_data: BTreeMap<jacquard_common::deps::smol_str::SmolStr, Data<'a>>,
    ) -> Offer<'a> {
        Offer {
            accepted_payment_method: self._fields.0,
            add_on: self._fields.1,
            additional_property: self._fields.2,
            additional_type: self._fields.3,
            advance_booking_requirement: self._fields.4,
            aggregate_rating: self._fields.5,
            alternate_name: self._fields.6,
            area_served: self._fields.7,
            asin: self._fields.8,
            availability: self._fields.9,
            availability_ends: self._fields.10,
            availability_starts: self._fields.11,
            available_at_or_from: self._fields.12,
            available_delivery_method: self._fields.13,
            business_function: self._fields.14,
            category: self._fields.15,
            checkout_page_url_template: self._fields.16,
            delivery_lead_time: self._fields.17,
            description: self._fields.18,
            disambiguating_description: self._fields.19,
            eligible_customer_type: self._fields.20,
            eligible_duration: self._fields.21,
            eligible_quantity: self._fields.22,
            eligible_region: self._fields.23,
            eligible_transaction_volume: self._fields.24,
            gtin: self._fields.25,
            gtin12: self._fields.26,
            gtin13: self._fields.27,
            gtin14: self._fields.28,
            gtin8: self._fields.29,
            has_adult_consideration: self._fields.30,
            has_gs1_digital_link: self._fields.31,
            has_measurement: self._fields.32,
            has_merchant_return_policy: self._fields.33,
            identifier: self._fields.34,
            image: self._fields.35,
            includes_object: self._fields.36,
            ineligible_region: self._fields.37,
            inventory_level: self._fields.38,
            is_family_friendly: self._fields.39,
            item_condition: self._fields.40,
            item_offered: self._fields.41,
            lease_length: self._fields.42,
            main_entity_of_page: self._fields.43,
            mobile_url: self._fields.44,
            mpn: self._fields.45,
            name: self._fields.46,
            offered_by: self._fields.47,
            potential_action: self._fields.48,
            price: self._fields.49,
            price_currency: self._fields.50,
            price_specification: self._fields.51,
            price_valid_until: self._fields.52,
            review: self._fields.53,
            reviews: self._fields.54,
            same_as: self._fields.55,
            seller: self._fields.56,
            serial_number: self._fields.57,
            shipping_details: self._fields.58,
            sku: self._fields.59,
            subject_of: self._fields.60,
            url: self._fields.61,
            valid_for_member_tier: self._fields.62,
            valid_from: self._fields.63,
            valid_through: self._fields.64,
            warranty: self._fields.65,
            extra_data: Some(extra_data),
        }
    }
}