pub struct CustomerUpsertInput {
pub id: MaybeUndefined<String>,
pub name: MaybeUndefined<String>,
pub domains: MaybeUndefined<Vec<String>>,
pub external_id: MaybeUndefined<String>,
pub slack_channel_id: MaybeUndefined<String>,
pub owner_id: MaybeUndefined<String>,
pub status_id: MaybeUndefined<String>,
pub revenue: MaybeUndefined<i64>,
pub size: MaybeUndefined<i64>,
pub tier_id: MaybeUndefined<String>,
pub logo_url: MaybeUndefined<String>,
pub tier_name: MaybeUndefined<String>,
}Expand description
Input for upserting a customer. Matches against existing customers using id, externalId, slackChannelId, or domains. Creates a new customer if no match is found.
Fields§
§id: MaybeUndefined<String>The identifier in UUID v4 format. Used to match an existing customer for upsert.
name: MaybeUndefined<String>The name of the customer. Required when creating a new customer.
domains: MaybeUndefined<Vec<String>>The email domains associated with this customer.
external_id: MaybeUndefined<String>An external system identifier for this customer. Used for matching existing customers during upsert.
slack_channel_id: MaybeUndefined<String>The ID of the Slack channel to link to this customer.
owner_id: MaybeUndefined<String>The identifier of the user to assign as the owner of the customer.
status_id: MaybeUndefined<String>The identifier of the customer status to set.
revenue: MaybeUndefined<i64>The annual revenue generated by the customer, in dollars.
size: MaybeUndefined<i64>The size of the customer organization (e.g., number of employees).
tier_id: MaybeUndefined<String>The identifier of the customer tier to assign. Cannot be used together with tierName.
logo_url: MaybeUndefined<String>The URL of the customer’s logo image.
tier_name: MaybeUndefined<String>The name of the customer tier to assign. A new tier will be created if one with this name does not exist. Cannot be used together with tierId.
Trait Implementations§
Source§impl Clone for CustomerUpsertInput
impl Clone for CustomerUpsertInput
Source§fn clone(&self) -> CustomerUpsertInput
fn clone(&self) -> CustomerUpsertInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more