UpdateUserFiatKycStatusBody

Enum UpdateUserFiatKycStatusBody 

Source
pub enum UpdateUserFiatKycStatusBody {
    Bridge {
Show 29 fields account_purpose: Option<String>, account_purpose_other: Option<String>, acting_as_intermediary: Option<String>, birth_date: UpdateUserFiatKycStatusBodyBridgeBirthDate, completed_customer_safety_check_at: Option<String>, documents: Vec<UpdateUserFiatKycStatusBodyBridgeDocumentsItem>, email: String, employment_status: Option<String>, endorsements: Vec<String>, expected_monthly_payments_usd: Option<String>, first_name: UpdateUserFiatKycStatusBodyBridgeFirstName, has_signed_terms_of_service: Option<bool>, identifying_information: Vec<UpdateUserFiatKycStatusBodyBridgeIdentifyingInformationItem>, kyc_screen: Option<UpdateUserFiatKycStatusBodyBridgeKycScreen>, last_name: UpdateUserFiatKycStatusBodyBridgeLastName, middle_name: Option<UpdateUserFiatKycStatusBodyBridgeMiddleName>, most_recent_occupation: Option<String>, nationality: Option<UpdateUserFiatKycStatusBodyBridgeNationality>, ofac_screen: Option<UpdateUserFiatKycStatusBodyBridgeOfacScreen>, phone: Option<UpdateUserFiatKycStatusBodyBridgePhone>, residential_address: UpdateUserFiatKycStatusBodyBridgeResidentialAddress, signed_agreement_id: Option<UpdateUserFiatKycStatusBodyBridgeSignedAgreementId>, source_of_funds: Option<String>, transliterated_first_name: Option<UpdateUserFiatKycStatusBodyBridgeTransliteratedFirstName>, transliterated_last_name: Option<UpdateUserFiatKycStatusBodyBridgeTransliteratedLastName>, transliterated_middle_name: Option<UpdateUserFiatKycStatusBodyBridgeTransliteratedMiddleName>, transliterated_residential_address: Option<UpdateUserFiatKycStatusBodyBridgeTransliteratedResidentialAddress>, type_: UpdateUserFiatKycStatusBodyBridgeType, 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: UpdateUserFiatKycStatusBodyBridgeSandboxBirthDate, completed_customer_safety_check_at: Option<String>, documents: Vec<UpdateUserFiatKycStatusBodyBridgeSandboxDocumentsItem>, email: String, employment_status: Option<String>, endorsements: Vec<String>, expected_monthly_payments_usd: Option<String>, first_name: UpdateUserFiatKycStatusBodyBridgeSandboxFirstName, has_signed_terms_of_service: Option<bool>, identifying_information: Vec<UpdateUserFiatKycStatusBodyBridgeSandboxIdentifyingInformationItem>, kyc_screen: Option<UpdateUserFiatKycStatusBodyBridgeSandboxKycScreen>, last_name: UpdateUserFiatKycStatusBodyBridgeSandboxLastName, middle_name: Option<UpdateUserFiatKycStatusBodyBridgeSandboxMiddleName>, most_recent_occupation: Option<String>, nationality: Option<UpdateUserFiatKycStatusBodyBridgeSandboxNationality>, ofac_screen: Option<UpdateUserFiatKycStatusBodyBridgeSandboxOfacScreen>, phone: Option<UpdateUserFiatKycStatusBodyBridgeSandboxPhone>, residential_address: UpdateUserFiatKycStatusBodyBridgeSandboxResidentialAddress, signed_agreement_id: Option<UpdateUserFiatKycStatusBodyBridgeSandboxSignedAgreementId>, source_of_funds: Option<String>, transliterated_first_name: Option<UpdateUserFiatKycStatusBodyBridgeSandboxTransliteratedFirstName>, transliterated_last_name: Option<UpdateUserFiatKycStatusBodyBridgeSandboxTransliteratedLastName>, transliterated_middle_name: Option<UpdateUserFiatKycStatusBodyBridgeSandboxTransliteratedMiddleName>, transliterated_residential_address: Option<UpdateUserFiatKycStatusBodyBridgeSandboxTransliteratedResidentialAddress>, type_: UpdateUserFiatKycStatusBodyBridgeSandboxType, verified_selfie_at: Option<String>,
}, }
Expand description

UpdateUserFiatKycStatusBody

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

§account_purpose: Option<String>
§account_purpose_other: Option<String>
§acting_as_intermediary: Option<String>
§completed_customer_safety_check_at: Option<String>
§email: String
§employment_status: Option<String>
§endorsements: Vec<String>
§expected_monthly_payments_usd: Option<String>
§has_signed_terms_of_service: Option<bool>
§most_recent_occupation: Option<String>
§source_of_funds: Option<String>
§verified_selfie_at: Option<String>
§

BridgeSandbox

Fields

§account_purpose: Option<String>
§account_purpose_other: Option<String>
§acting_as_intermediary: Option<String>
§completed_customer_safety_check_at: Option<String>
§email: String
§employment_status: Option<String>
§endorsements: Vec<String>
§expected_monthly_payments_usd: Option<String>
§has_signed_terms_of_service: Option<bool>
§most_recent_occupation: Option<String>
§source_of_funds: Option<String>
§verified_selfie_at: Option<String>

Trait Implementations§

Source§

impl Clone for UpdateUserFiatKycStatusBody

Source§

fn clone(&self) -> UpdateUserFiatKycStatusBody

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for UpdateUserFiatKycStatusBody

Source§

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

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

impl<'de> Deserialize<'de> for UpdateUserFiatKycStatusBody

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<&UpdateUserFiatKycStatusBody> for UpdateUserFiatKycStatusBody

Source§

fn from(value: &UpdateUserFiatKycStatusBody) -> Self

Converts to this type from the input type.
Source§

impl Serialize for UpdateUserFiatKycStatusBody

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

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> 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: 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: 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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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<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
Source§

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