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

Inheritance: IJsonSerializable
Show file Open project: Riskified/sdk_net Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Customer ( string firstName, string lastName, string id, int ordersCount = null, string email = null, bool verifiedEmail = null, System.DateTime createdAt = null, string notes = null, Riskified.SDK.Model.OrderElements.SocialDetails social = null, BasicAddress address = null ) : System

Creates a new Customer

Validate ( Validations validationType = Validations.Weak ) : void

Validates the objects fields content

Method Details

Customer() public method

Creates a new Customer
public Customer ( string firstName, string lastName, string id, int ordersCount = null, string email = null, bool verifiedEmail = null, System.DateTime createdAt = null, string notes = null, Riskified.SDK.Model.OrderElements.SocialDetails social = null, BasicAddress address = null ) : System
firstName string The customer first name
lastName string The customer last name
id string The customer id (optional)
ordersCount int The total number of orders made to the merchant by this customer (optional)
email string The customer email - as registered with (optional)
verifiedEmail bool Signs if the email was verified by the merchant is some way (optional)
createdAt System.DateTime The time of creation of the customer card (optional)
notes string Additional notes regarding the customer (optional)
social Riskified.SDK.Model.OrderElements.SocialDetails
address BasicAddress
return System

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