#[non_exhaustive]pub struct CustomerCreate {Show 21 fields
pub name: String,
pub engaged_party: Ref<Party>,
pub id: Option<String>,
pub href: Option<String>,
pub description: Option<String>,
pub role: Option<String>,
pub status: Option<String>,
pub status_reason: Option<String>,
pub valid_for: Option<TimePeriod>,
pub party_role_specification: Option<Ref<PartyRoleSpecification>>,
pub account: Option<Vec<Ref<Account>>>,
pub agreement: Option<Vec<Ref<Agreement>>>,
pub payment_method: Option<Vec<Ref<PaymentMethod>>>,
pub credit_profile: Option<Vec<CreditProfile>>,
pub contact_medium: Option<Vec<ContactMedium>>,
pub characteristic: Option<Vec<Characteristic>>,
pub related_party: Option<Vec<RelatedParty>>,
pub at_type: String,
pub at_base_type: Option<String>,
pub at_schema_location: Option<String>,
pub extensions: Extensions,
}customer only.Expand description
Body of a POST /customer — the v5 Customer_FVO.
name and engagedParty are required on create. Unusually, TMF629
keeps href on the create schema; it is here for fidelity, but a server
assigns it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringName the customer is known by. Required on create.
engaged_party: Ref<Party>The party playing the customer role. Required on create.
id: Option<String>Client-supplied identifier, where the server permits one.
href: Option<String>Client-supplied URI, where the server permits one.
description: Option<String>Narrative description.
role: Option<String>Role name, where the API distinguishes several.
status: Option<String>Initial lifecycle status.
status_reason: Option<String>Why the customer starts in that status.
valid_for: Option<TimePeriod>Period during which the relationship is valid.
party_role_specification: Option<Ref<PartyRoleSpecification>>The specification this customer role conforms to.
account: Option<Vec<Ref<Account>>>Billing accounts held by the customer.
agreement: Option<Vec<Ref<Agreement>>>Agreements the customer is party to.
payment_method: Option<Vec<Ref<PaymentMethod>>>Payment methods on file.
credit_profile: Option<Vec<CreditProfile>>Credit assessments of the customer.
contact_medium: Option<Vec<ContactMedium>>Ways of contacting the customer in this role.
characteristic: Option<Vec<Characteristic>>Free-form characteristics.
Other parties related to this customer.
at_type: StringThe @type discriminator naming this entity’s class.
Empty when the payload declared none — TMF630 v5 marks it
required, but servers omit it and so do TM Forum’s own examples.
An absent discriminator stays absent, so relaying a payload does
not silently add a member to it; anything this crate builds
carries the class name. Read it through
type_name, which resolves the empty case.
at_base_type: Option<String>The @baseType, naming the supertype where this class is sub-typed.
at_schema_location: Option<String>A URI to a JSON-Schema file defining additional attributes.
extensions: ExtensionsMembers not covered by the typed model, kept in document order.
See the crate documentation for the round-trip guarantee this underwrites.
Implementations§
Source§impl CustomerCreate
impl CustomerCreate
Sourcepub fn builder() -> CustomerCreateBuilder
pub fn builder() -> CustomerCreateBuilder
Create an instance of CustomerCreate using the builder syntax
Trait Implementations§
Source§impl Clone for CustomerCreate
impl Clone for CustomerCreate
Source§impl Debug for CustomerCreate
impl Debug for CustomerCreate
Source§impl<'de> Deserialize<'de> for CustomerCreate
impl<'de> Deserialize<'de> for CustomerCreate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for CustomerCreate
impl JsonSchema for CustomerCreate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more