// This file is auto-generated from JSON Schema.
// Do not edit this file by hand. Regenerate via the CLI.

#![allow(clippy::all)]
#![allow(dead_code)]

use serde::{Deserialize, Serialize};


#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Identifier {
    #[serde(rename = "schemeUri")]
    pub scheme_uri: String,
    pub identifier: String,
    #[serde(rename = "sourceReference", skip_serializing_if = "Option::is_none")]
    pub source_reference: Option<String>,
}

pub type Identifiers = Vec<Identifier>;


#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BuyerRecord {

    #[serde(rename = "entityTypeUri")]
    pub entity_type_uri: String,

    #[serde(rename = "legalName")]
    pub legal_name: String,

    #[serde(rename = "jurisdictionUri")]
    pub jurisdiction_uri: Option<String>,

    pub identifiers: Option<Identifiers>,
}
