pub enum InitiateUserFiatKycBody {
Bridge {Show 29 fields
account_purpose: Option<String>,
account_purpose_other: Option<String>,
acting_as_intermediary: Option<String>,
birth_date: InitiateUserFiatKycBodyBridgeBirthDate,
completed_customer_safety_check_at: Option<String>,
documents: Vec<InitiateUserFiatKycBodyBridgeDocumentsItem>,
email: String,
employment_status: Option<String>,
endorsements: Vec<String>,
expected_monthly_payments_usd: Option<String>,
first_name: InitiateUserFiatKycBodyBridgeFirstName,
has_signed_terms_of_service: Option<bool>,
identifying_information: Vec<InitiateUserFiatKycBodyBridgeIdentifyingInformationItem>,
kyc_screen: Option<InitiateUserFiatKycBodyBridgeKycScreen>,
last_name: InitiateUserFiatKycBodyBridgeLastName,
middle_name: Option<InitiateUserFiatKycBodyBridgeMiddleName>,
most_recent_occupation: Option<String>,
nationality: Option<InitiateUserFiatKycBodyBridgeNationality>,
ofac_screen: Option<InitiateUserFiatKycBodyBridgeOfacScreen>,
phone: Option<InitiateUserFiatKycBodyBridgePhone>,
residential_address: InitiateUserFiatKycBodyBridgeResidentialAddress,
signed_agreement_id: Option<InitiateUserFiatKycBodyBridgeSignedAgreementId>,
source_of_funds: Option<String>,
transliterated_first_name: Option<InitiateUserFiatKycBodyBridgeTransliteratedFirstName>,
transliterated_last_name: Option<InitiateUserFiatKycBodyBridgeTransliteratedLastName>,
transliterated_middle_name: Option<InitiateUserFiatKycBodyBridgeTransliteratedMiddleName>,
transliterated_residential_address: Option<InitiateUserFiatKycBodyBridgeTransliteratedResidentialAddress>,
type_: InitiateUserFiatKycBodyBridgeType,
verified_selfie_at: Option<String>,
},
BridgeSandbox {Show 29 fields
account_purpose: Option<String>,
account_purpose_other: Option<String>,
acting_as_intermediary: Option<String>,
birth_date: InitiateUserFiatKycBodyBridgeSandboxBirthDate,
completed_customer_safety_check_at: Option<String>,
documents: Vec<InitiateUserFiatKycBodyBridgeSandboxDocumentsItem>,
email: String,
employment_status: Option<String>,
endorsements: Vec<String>,
expected_monthly_payments_usd: Option<String>,
first_name: InitiateUserFiatKycBodyBridgeSandboxFirstName,
has_signed_terms_of_service: Option<bool>,
identifying_information: Vec<InitiateUserFiatKycBodyBridgeSandboxIdentifyingInformationItem>,
kyc_screen: Option<InitiateUserFiatKycBodyBridgeSandboxKycScreen>,
last_name: InitiateUserFiatKycBodyBridgeSandboxLastName,
middle_name: Option<InitiateUserFiatKycBodyBridgeSandboxMiddleName>,
most_recent_occupation: Option<String>,
nationality: Option<InitiateUserFiatKycBodyBridgeSandboxNationality>,
ofac_screen: Option<InitiateUserFiatKycBodyBridgeSandboxOfacScreen>,
phone: Option<InitiateUserFiatKycBodyBridgeSandboxPhone>,
residential_address: InitiateUserFiatKycBodyBridgeSandboxResidentialAddress,
signed_agreement_id: Option<InitiateUserFiatKycBodyBridgeSandboxSignedAgreementId>,
source_of_funds: Option<String>,
transliterated_first_name: Option<InitiateUserFiatKycBodyBridgeSandboxTransliteratedFirstName>,
transliterated_last_name: Option<InitiateUserFiatKycBodyBridgeSandboxTransliteratedLastName>,
transliterated_middle_name: Option<InitiateUserFiatKycBodyBridgeSandboxTransliteratedMiddleName>,
transliterated_residential_address: Option<InitiateUserFiatKycBodyBridgeSandboxTransliteratedResidentialAddress>,
type_: InitiateUserFiatKycBodyBridgeSandboxType,
verified_selfie_at: Option<String>,
},
}Expand description
InitiateUserFiatKycBody
JSON schema
{
"examples": [
{
"data": {
"birth_date": "1989-09-09",
"email": "john@doe.com",
"first_name": "John",
"identifying_information": [
{
"image_back": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
"image_front": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
"issuing_country": "USA",
"number": "111-11-1111",
"type": "ssn"
}
],
"last_name": "Doe",
"phone": "+59898222122",
"residential_address": {
"city": "San Francisco",
"country": "USA",
"postal_code": "94109",
"street_line_1": "1234 Lombard Street",
"street_line_2": "Apt 2F",
"subdivision": "CA"
},
"signed_agreement_id": "123",
"type": "individual"
},
"provider": "bridge-sandbox"
}
],
"oneOf": [
{
"type": "object",
"required": [
"data",
"provider"
],
"properties": {
"data": {
"type": "object",
"required": [
"birth_date",
"email",
"first_name",
"identifying_information",
"last_name",
"residential_address",
"type"
],
"properties": {
"account_purpose": {
"type": "string"
},
"account_purpose_other": {
"type": "string"
},
"acting_as_intermediary": {
"type": "string"
},
"birth_date": {
"type": "string",
"maxLength": 10,
"minLength": 10
},
"completed_customer_safety_check_at": {
"type": "string"
},
"documents": {
"type": "array",
"items": {
"type": "object",
"required": [
"file",
"purposes"
],
"properties": {
"description": {
"type": "string",
"minLength": 1
},
"file": {
"type": "string",
"minLength": 1
},
"purposes": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
}
}
}
},
"email": {
"type": "string",
"format": "email",
"maxLength": 1024,
"minLength": 1
},
"employment_status": {
"type": "string"
},
"endorsements": {
"type": "array",
"items": {
"type": "string"
}
},
"expected_monthly_payments_usd": {
"type": "string"
},
"first_name": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"has_signed_terms_of_service": {
"type": "boolean"
},
"identifying_information": {
"type": "array",
"items": {
"type": "object",
"required": [
"issuing_country",
"type"
],
"properties": {
"description": {
"type": "string"
},
"expiration": {
"type": "string"
},
"image_back": {
"type": "string"
},
"image_front": {
"type": "string"
},
"issuing_country": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"number": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"minItems": 1
},
"kyc_screen": {
"type": "object",
"required": [
"result",
"screened_at"
],
"properties": {
"result": {
"type": "string",
"enum": [
"passed"
]
},
"screened_at": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
}
},
"last_name": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"middle_name": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"most_recent_occupation": {
"type": "string"
},
"nationality": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"ofac_screen": {
"type": "object",
"required": [
"result",
"screened_at"
],
"properties": {
"result": {
"type": "string",
"enum": [
"passed"
]
},
"screened_at": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
}
},
"phone": {
"type": "string",
"maxLength": 18,
"minLength": 2
},
"residential_address": {
"type": "object",
"required": [
"city",
"country",
"street_line_1",
"subdivision"
],
"properties": {
"city": {
"type": "string",
"minLength": 1
},
"country": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"postal_code": {
"type": "string",
"minLength": 1
},
"street_line_1": {
"type": "string",
"minLength": 1
},
"street_line_2": {
"type": "string",
"minLength": 1
},
"subdivision": {
"type": "string",
"maxLength": 3,
"minLength": 1
}
}
},
"signed_agreement_id": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"source_of_funds": {
"type": "string"
},
"transliterated_first_name": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"transliterated_last_name": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"transliterated_middle_name": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"transliterated_residential_address": {
"type": "object",
"required": [
"city",
"country",
"street_line_1",
"subdivision"
],
"properties": {
"city": {
"type": "string",
"minLength": 1
},
"country": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"postal_code": {
"type": "string",
"minLength": 1
},
"street_line_1": {
"type": "string",
"minLength": 1
},
"street_line_2": {
"type": "string",
"minLength": 1
},
"subdivision": {
"type": "string",
"maxLength": 3,
"minLength": 1
}
}
},
"type": {
"type": "string",
"enum": [
"individual"
]
},
"verified_selfie_at": {
"type": "string"
}
}
},
"provider": {
"type": "string",
"enum": [
"bridge"
]
}
}
},
{
"type": "object",
"required": [
"data",
"provider"
],
"properties": {
"data": {
"type": "object",
"required": [
"birth_date",
"email",
"first_name",
"identifying_information",
"last_name",
"residential_address",
"type"
],
"properties": {
"account_purpose": {
"type": "string"
},
"account_purpose_other": {
"type": "string"
},
"acting_as_intermediary": {
"type": "string"
},
"birth_date": {
"type": "string",
"maxLength": 10,
"minLength": 10
},
"completed_customer_safety_check_at": {
"type": "string"
},
"documents": {
"type": "array",
"items": {
"type": "object",
"required": [
"file",
"purposes"
],
"properties": {
"description": {
"type": "string",
"minLength": 1
},
"file": {
"type": "string",
"minLength": 1
},
"purposes": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
}
}
}
},
"email": {
"type": "string",
"format": "email",
"maxLength": 1024,
"minLength": 1
},
"employment_status": {
"type": "string"
},
"endorsements": {
"type": "array",
"items": {
"type": "string"
}
},
"expected_monthly_payments_usd": {
"type": "string"
},
"first_name": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"has_signed_terms_of_service": {
"type": "boolean"
},
"identifying_information": {
"type": "array",
"items": {
"type": "object",
"required": [
"issuing_country",
"type"
],
"properties": {
"description": {
"type": "string"
},
"expiration": {
"type": "string"
},
"image_back": {
"type": "string"
},
"image_front": {
"type": "string"
},
"issuing_country": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"number": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"minItems": 1
},
"kyc_screen": {
"type": "object",
"required": [
"result",
"screened_at"
],
"properties": {
"result": {
"type": "string",
"enum": [
"passed"
]
},
"screened_at": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
}
},
"last_name": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"middle_name": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"most_recent_occupation": {
"type": "string"
},
"nationality": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"ofac_screen": {
"type": "object",
"required": [
"result",
"screened_at"
],
"properties": {
"result": {
"type": "string",
"enum": [
"passed"
]
},
"screened_at": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
}
},
"phone": {
"type": "string",
"maxLength": 18,
"minLength": 2
},
"residential_address": {
"type": "object",
"required": [
"city",
"country",
"street_line_1",
"subdivision"
],
"properties": {
"city": {
"type": "string",
"minLength": 1
},
"country": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"postal_code": {
"type": "string",
"minLength": 1
},
"street_line_1": {
"type": "string",
"minLength": 1
},
"street_line_2": {
"type": "string",
"minLength": 1
},
"subdivision": {
"type": "string",
"maxLength": 3,
"minLength": 1
}
}
},
"signed_agreement_id": {
"type": "string",
"maxLength": 1024,
"minLength": 1
},
"source_of_funds": {
"type": "string"
},
"transliterated_first_name": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"transliterated_last_name": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"transliterated_middle_name": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"transliterated_residential_address": {
"type": "object",
"required": [
"city",
"country",
"street_line_1",
"subdivision"
],
"properties": {
"city": {
"type": "string",
"minLength": 1
},
"country": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"postal_code": {
"type": "string",
"minLength": 1
},
"street_line_1": {
"type": "string",
"minLength": 1
},
"street_line_2": {
"type": "string",
"minLength": 1
},
"subdivision": {
"type": "string",
"maxLength": 3,
"minLength": 1
}
}
},
"type": {
"type": "string",
"enum": [
"individual"
]
},
"verified_selfie_at": {
"type": "string"
}
}
},
"provider": {
"type": "string",
"enum": [
"bridge-sandbox"
]
}
}
}
]
}Variants§
Bridge
Fields
§
birth_date: InitiateUserFiatKycBodyBridgeBirthDate§
documents: Vec<InitiateUserFiatKycBodyBridgeDocumentsItem>§
first_name: InitiateUserFiatKycBodyBridgeFirstName§
identifying_information: Vec<InitiateUserFiatKycBodyBridgeIdentifyingInformationItem>§
kyc_screen: Option<InitiateUserFiatKycBodyBridgeKycScreen>§
last_name: InitiateUserFiatKycBodyBridgeLastName§
middle_name: Option<InitiateUserFiatKycBodyBridgeMiddleName>§
nationality: Option<InitiateUserFiatKycBodyBridgeNationality>§
ofac_screen: Option<InitiateUserFiatKycBodyBridgeOfacScreen>§
residential_address: InitiateUserFiatKycBodyBridgeResidentialAddress§
signed_agreement_id: Option<InitiateUserFiatKycBodyBridgeSignedAgreementId>§
transliterated_first_name: Option<InitiateUserFiatKycBodyBridgeTransliteratedFirstName>§
transliterated_last_name: Option<InitiateUserFiatKycBodyBridgeTransliteratedLastName>§
transliterated_middle_name: Option<InitiateUserFiatKycBodyBridgeTransliteratedMiddleName>§
transliterated_residential_address: Option<InitiateUserFiatKycBodyBridgeTransliteratedResidentialAddress>BridgeSandbox
Fields
§
birth_date: InitiateUserFiatKycBodyBridgeSandboxBirthDate§
first_name: InitiateUserFiatKycBodyBridgeSandboxFirstName§
identifying_information: Vec<InitiateUserFiatKycBodyBridgeSandboxIdentifyingInformationItem>§
kyc_screen: Option<InitiateUserFiatKycBodyBridgeSandboxKycScreen>§
middle_name: Option<InitiateUserFiatKycBodyBridgeSandboxMiddleName>§
nationality: Option<InitiateUserFiatKycBodyBridgeSandboxNationality>§
ofac_screen: Option<InitiateUserFiatKycBodyBridgeSandboxOfacScreen>§
residential_address: InitiateUserFiatKycBodyBridgeSandboxResidentialAddress§
signed_agreement_id: Option<InitiateUserFiatKycBodyBridgeSandboxSignedAgreementId>§
transliterated_first_name: Option<InitiateUserFiatKycBodyBridgeSandboxTransliteratedFirstName>§
transliterated_last_name: Option<InitiateUserFiatKycBodyBridgeSandboxTransliteratedLastName>§
transliterated_middle_name: Option<InitiateUserFiatKycBodyBridgeSandboxTransliteratedMiddleName>§
transliterated_residential_address: Option<InitiateUserFiatKycBodyBridgeSandboxTransliteratedResidentialAddress>Trait Implementations§
Source§impl Clone for InitiateUserFiatKycBody
impl Clone for InitiateUserFiatKycBody
Source§fn clone(&self) -> InitiateUserFiatKycBody
fn clone(&self) -> InitiateUserFiatKycBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InitiateUserFiatKycBody
impl Debug for InitiateUserFiatKycBody
Source§impl<'de> Deserialize<'de> for InitiateUserFiatKycBody
impl<'de> Deserialize<'de> for InitiateUserFiatKycBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InitiateUserFiatKycBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InitiateUserFiatKycBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&InitiateUserFiatKycBody> for InitiateUserFiatKycBody
impl From<&InitiateUserFiatKycBody> for InitiateUserFiatKycBody
Source§fn from(value: &InitiateUserFiatKycBody) -> InitiateUserFiatKycBody
fn from(value: &InitiateUserFiatKycBody) -> InitiateUserFiatKycBody
Converts to this type from the input type.
Source§impl Serialize for InitiateUserFiatKycBody
impl Serialize for InitiateUserFiatKycBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for InitiateUserFiatKycBody
impl RefUnwindSafe for InitiateUserFiatKycBody
impl Send for InitiateUserFiatKycBody
impl Sync for InitiateUserFiatKycBody
impl Unpin for InitiateUserFiatKycBody
impl UnwindSafe for InitiateUserFiatKycBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more