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

Inheritance: IJsonSerializable
显示文件 Open project: Riskified/sdk_net Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Passenger ( string firstname, string lastname, System.DateTime dateOfBirth, string nationalityCode, float insurancePrice, string documentNumber, string documentType, System.DateTime documentIssueDate, System.DateTime documentExpirationDate, string passengerType = null, string insuranceType = null ) : System

The shipping line (shiiping method)

Validate ( Validations validationType = Validations.Weak ) : void

Validates the objects fields content

Method Details

Passenger() public method

The shipping line (shiiping method)
public Passenger ( string firstname, string lastname, System.DateTime dateOfBirth, string nationalityCode, float insurancePrice, string documentNumber, string documentType, System.DateTime documentIssueDate, System.DateTime documentExpirationDate, string passengerType = null, string insuranceType = null ) : System
firstname string
lastname string
dateOfBirth System.DateTime
nationalityCode string
insurancePrice float
documentNumber string
documentType string
documentIssueDate System.DateTime
documentExpirationDate System.DateTime
passengerType string
insuranceType string
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 Should use weak validations or strong
return void