C# 클래스 Riskified.SDK.Model.OrderElements.LineItem

상속: IJsonSerializable
파일 보기 프로젝트 열기: Riskified/sdk_net 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
LineItem ( string title, double price, int quantityPurchased, string productId = null, string sku = null, string condition = null, bool requiresShipping = null, Riskified.SDK.Model.OrderElements.Seller seller = null, DeliveredToType deliveredTo = null, System.DateTime delivered_at = null, ProductType productType = null, string brand = null, string category = null, string subCategory = null ) : System

Creates a new LineItem

Validate ( Validations validationType = Validations.Weak ) : void

Validates the objects fields content

메소드 상세

LineItem() 공개 메소드

Creates a new LineItem
public LineItem ( string title, double price, int quantityPurchased, string productId = null, string sku = null, string condition = null, bool requiresShipping = null, Riskified.SDK.Model.OrderElements.Seller seller = null, DeliveredToType deliveredTo = null, System.DateTime delivered_at = null, ProductType productType = null, string brand = null, string category = null, string subCategory = null ) : System
title string A title describing the product
price double The product price in the currency matching the one used in the whole order and set in the "Currency" field
quantityPurchased int Quantity purchased of the item
productId string The Product ID number (optional)
sku string The stock keeping unit of the product (optional)
condition string
requiresShipping bool
seller Riskified.SDK.Model.OrderElements.Seller
deliveredTo DeliveredToType
delivered_at System.DateTime
productType ProductType
brand string
category string
subCategory string
리턴 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