C# Класс Riskified.SDK.Model.OrderElements.Customer

Наследование: IJsonSerializable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Описание методов

Customer() публичный Метод

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
Результат System

Validate() публичный Метод

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
Результат void