C# Class Riskified.SDK.Model.OrderElements.BasicAddress

Inheritance: IJsonSerializable
Mostrar archivo Open project: Riskified/sdk_net Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
BasicAddress ( string address1 = null, string city = null, string country = null, string countryCode = null, string phone = null, string address2 = null, string zipCode = null, string province = null, string provinceCode = null, string company = null, bool verifiedPhone = null, string additionalPhone = null ) : Newtonsoft.Json

Creates a BasicAddress instance

Validate ( Validations validationType = Validations.Weak ) : void

Validates the objects fields content

Method Details

BasicAddress() public method

Creates a BasicAddress instance
public BasicAddress ( string address1 = null, string city = null, string country = null, string countryCode = null, string phone = null, string address2 = null, string zipCode = null, string province = null, string provinceCode = null, string company = null, bool verifiedPhone = null, string additionalPhone = null ) : Newtonsoft.Json
address1 string The address (street, house number)
city string The city part of the address
country string The full name of the country
countryCode string The 2 letter code of the country
phone string The phone number of the addressee
address2 string Additional address information like entrance, apartment number, etc. (optional)
zipCode string The zipcode of the address (optional)
province string The full province name (optional)
provinceCode string The 2 letter code of the province (optional)
company string The company of the addressee (optional)
verifiedPhone bool
additionalPhone string
return Newtonsoft.Json

Validate() public method

Validates the objects fields content
throws an exception if one of the parameters doesn't match the expected format
public Validate ( Validations validationType = Validations.Weak ) : void
validationType Validations Validation level to use on this model
return void