Skip to main content

IndividualInput

Struct IndividualInput 

Source
pub struct IndividualInput {
Show 14 fields pub address: Option<IndividualInputAddress>, pub citizenship: Option<CountryCode>, pub date_of_birth: Option<DateOfBirthLenient>, pub email: Option<Email>, pub employment_status: Option<IndividualInputEmploymentStatus>, pub expected_volume: Option<IndividualInputExpectedVolume>, pub first_name: Option<String>, pub full_ssn: Option<IndividualInputFullSsn>, pub last_name: Option<String>, pub occupation: Option<IndividualInputOccupation>, pub phone_number: Option<PhoneNumber>, pub purpose_of_account: Option<IndividualInputPurposeOfAccount>, pub source_of_funds: Option<IndividualInputSourceOfFunds>, pub ssn_last4: Option<IndividualInputSsnLast4>,
}
Expand description

Individual customer data submitted on create / update requests. Fields are organized by the capabilities they unlock; not all are required for all customers (the requirements depend on which capabilities are requested). Read responses return the narrower Individual object (only firstName, lastName, and email), not this full request shape.

JSON schema
{
 "description": "Individual customer data submitted on create / update requests. Fields are\norganized by the capabilities they unlock; not all are required for all\ncustomers (the requirements depend on which capabilities are requested).\nRead responses return the narrower `Individual` object (only `firstName`,\n`lastName`, and `email`), not this full request shape.\n",
 "examples": [
   {
     "address": {
       "city": "Boston",
       "countryCode": "US",
       "line1": "500 Main St",
       "postCode": "02108",
       "state": "MA"
     },
     "dateOfBirth": {
       "day": "15",
       "month": "08",
       "year": "1990"
     },
     "email": "jane.doe@example.com",
     "firstName": "Jane",
     "lastName": "Doe",
     "phoneNumber": "+15551234567",
     "ssnLast4": "6789"
   }
 ],
 "type": "object",
 "properties": {
   "address": {
     "description": "Primary residential address. Only US addresses are currently\nsupported. Non-US `countryCode` values are rejected with a 400.\n",
     "allOf": [
       {
         "$ref": "#/components/schemas/PhysicalAddress"
       },
       {
         "type": "object",
         "properties": {
           "countryCode": {
             "description": "ISO 3166-1 alpha-2 country code. Only US addresses\nare currently supported.\n",
             "enum": [
               "US"
             ]
           },
           "state": {
             "description": "Two-letter US state or territory code (`CA`, `DC`, `PR`),\nwithout a country prefix.\n",
             "examples": [
               "CA"
             ],
             "type": "string",
             "pattern": "^[A-Z]{2}$"
           }
         }
       }
     ]
   },
   "citizenship": {
     "description": "ISO 3166-1 alpha-2 country code representing the customer's citizenship.\n",
     "allOf": [
       {
         "$ref": "#/components/schemas/CountryCode"
       }
     ]
   },
   "dateOfBirth": {
     "description": "Date of birth.",
     "allOf": [
       {
         "$ref": "#/components/schemas/DateOfBirthLenient"
       }
     ]
   },
   "email": {
     "description": "Email address for the customer.",
     "examples": [
       "jane.doe@example.com"
     ],
     "allOf": [
       {
         "$ref": "#/components/schemas/Email"
       }
     ]
   },
   "employmentStatus": {
     "description": "Current employment status.\n",
     "examples": [
       "employed_fulltime"
     ],
     "type": "string",
     "enum": [
       "employed_fulltime",
       "employed_parttime",
       "self_employed",
       "employed_government_official",
       "employed_company_officer_or_board_member",
       "employed_crypto_related_business",
       "personal_trader_or_angel_investor",
       "crypto_miner",
       "student",
       "retired",
       "homemaker",
       "unemployed",
       "dependent"
     ]
   },
   "expectedVolume": {
     "description": "Expected annual volume of activity on the account, expressed as a\ndollar range. Use the dollar-honest ids below:\n\n- `under_1k`: $0 – $1,000\n- `1k_to_10k`: $1,000 – $10,000\n- `10k_to_100k`: $10,000 – $100,000\n- `100k_to_250k`: $100,000 – $250,000\n- `250k_to_750k`: $250,000 – $750,000\n- `750k_to_1_5m`: $750,000 – $1.5M\n- `1_5m_plus`: $1.5M+\n",
     "examples": [
       "under_1k"
     ],
     "type": "string",
     "enum": [
       "under_1k",
       "1k_to_10k",
       "10k_to_100k",
       "100k_to_250k",
       "250k_to_750k",
       "750k_to_1_5m",
       "1_5m_plus"
     ]
   },
   "firstName": {
     "description": "First name (given name).",
     "examples": [
       "Jane"
     ],
     "type": "string"
   },
   "fullSsn": {
     "description": "Full Social Security Number (US only).\n",
     "examples": [
       "***-**-6789"
     ],
     "type": "string",
     "pattern": "^([0-9]{3}-[0-9]{2}-[0-9]{4}|\\*\\*\\*-\\*\\*-[0-9]{4})$"
   },
   "lastName": {
     "description": "Last name (family name/surname).",
     "examples": [
       "Doe"
     ],
     "type": "string"
   },
   "occupation": {
     "description": "Industry or occupation.\n",
     "examples": [
       "technology"
     ],
     "type": "string",
     "enum": [
       "agriculture",
       "arts_and_media",
       "casinos_and_gaming",
       "construction",
       "cryptocurrency",
       "defense",
       "education",
       "energy_oil_and_gas",
       "energy_other",
       "entertainment",
       "finance",
       "financial_services_non_crypto",
       "fintech_non_crypto_software_development",
       "fintech_non_crypto_internet_only_financial_institution",
       "fintech_non_crypto_other",
       "food_and_hospitality",
       "government",
       "health_and_fitness",
       "healthcare",
       "healthcare_other",
       "healthcare_pharmaceuticals",
       "mining",
       "mining_crypto",
       "non_profit_and_charity",
       "pharma_industry",
       "politics",
       "professional_services",
       "property_and_construction_building_work",
       "property_and_construction_commercial_and_management",
       "property_and_construction_design",
       "real_estate",
       "retail_fashion",
       "retail_food_and_beverage",
       "retail_jewelry_and_antiques",
       "retail_other",
       "retail_pharmacy",
       "technology",
       "technology_and_it",
       "transportation",
       "all_other_industries_and_services",
       "dependent_student_unemployed",
       "other"
     ]
   },
   "phoneNumber": {
     "description": "Phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format.",
     "examples": [
       "+15551234567"
     ],
     "allOf": [
       {
         "$ref": "#/components/schemas/PhoneNumber"
       }
     ]
   },
   "purposeOfAccount": {
     "description": "Primary purpose for using Coinbase services.\n",
     "examples": [
       "investing"
     ],
     "type": "string",
     "enum": [
       "investing",
       "long_term_investment",
       "short_term_investment",
       "trading",
       "trading_on_coinbase",
       "trading_on_other_exchanges",
       "day_trading",
       "arbitrage_trading",
       "online_purchases",
       "online_payments",
       "payments_or_gifts",
       "payments_to_friends",
       "transfer_crypto",
       "investing_on_other_exchanges",
       "business",
       "other"
     ]
   },
   "sourceOfFunds": {
     "description": "Primary source of funds for the account.\n",
     "examples": [
       "salary"
     ],
     "type": "string",
     "enum": [
       "salary",
       "employment_business_income",
       "investments",
       "savings",
       "pension",
       "business_earnings",
       "crypto_assets",
       "inheritance",
       "sale_of_assets",
       "sale_of_company_shares_or_dividends",
       "sale_of_property",
       "sale_of_other_assets",
       "credit_or_loan",
       "government_benefits_or_credits",
       "legal_settlement",
       "family_or_third_party",
       "lottery_or_gambling",
       "crypto_mining",
       "other"
     ]
   },
   "ssnLast4": {
     "description": "Last 4 digits of the Social Security Number (US only).\nUsed for identity verification.\n",
     "examples": [
       "6789"
     ],
     "type": "string",
     "maxLength": 4,
     "minLength": 4,
     "pattern": "^[0-9]{4}$"
   }
 },
 "additionalProperties": false
}

Fields§

§address: Option<IndividualInputAddress>§citizenship: Option<CountryCode>

ISO 3166-1 alpha-2 country code representing the customer’s citizenship.

§date_of_birth: Option<DateOfBirthLenient>

Date of birth.

§email: Option<Email>

Email address for the customer.

§employment_status: Option<IndividualInputEmploymentStatus>

Current employment status.

§expected_volume: Option<IndividualInputExpectedVolume>

Expected annual volume of activity on the account, expressed as a dollar range. Use the dollar-honest ids below:

    - `under_1k`: $0 – $1,000
    - `1k_to_10k`: $1,000 – $10,000
    - `10k_to_100k`: $10,000 – $100,000
    - `100k_to_250k`: $100,000 – $250,000
    - `250k_to_750k`: $250,000 – $750,000
    - `750k_to_1_5m`: $750,000 – $1.5M
    - `1_5m_plus`: $1.5M+
§first_name: Option<String>

First name (given name).

§full_ssn: Option<IndividualInputFullSsn>

Full Social Security Number (US only).

§last_name: Option<String>

Last name (family name/surname).

§occupation: Option<IndividualInputOccupation>

Industry or occupation.

§phone_number: Option<PhoneNumber>

Phone number in E.164 format.

§purpose_of_account: Option<IndividualInputPurposeOfAccount>

Primary purpose for using Coinbase services.

§source_of_funds: Option<IndividualInputSourceOfFunds>

Primary source of funds for the account.

§ssn_last4: Option<IndividualInputSsnLast4>

Last 4 digits of the Social Security Number (US only). Used for identity verification.

Implementations§

Trait Implementations§

Source§

impl Clone for IndividualInput

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IndividualInput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for IndividualInput

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for IndividualInput

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&IndividualInput> for IndividualInput

Source§

fn from(value: &IndividualInput) -> Self

Converts to this type from the input type.
Source§

impl From<IndividualInput> for IndividualInput

Source§

fn from(value: IndividualInput) -> Self

Converts to this type from the input type.
Source§

impl Serialize for IndividualInput

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<IndividualInput> for IndividualInput

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: IndividualInput) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more