C# Class Riskified.SDK.Model.Order

Inheritance: OrderBase
Afficher le fichier Open project: Riskified/sdk_net Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Order ( string merchantOrderId, string email, Customer customer, Riskified.SDK.Model.OrderElements.AddressInformation billingAddress, Riskified.SDK.Model.OrderElements.AddressInformation shippingAddress, LineItem lineItems, Riskified.SDK.Model.OrderElements.ShippingLine shippingLines, string gateway, string customerBrowserIp, string currency, double totalPrice, System.DateTime createdAt, System.DateTime updatedAt, Passenger passengers = null, IPaymentDetails paymentDetails = null, Riskified.SDK.Model.OrderElements.DiscountCode discountCodes = null, double totalDiscounts = null, string cartToken = null, double totalPriceUsd = null, System.DateTime closedAt = null, string financialStatus = null, string fulfillmentStatus = null, string source = null, Riskified.SDK.Model.OrderElements.NoChargeDetails noChargeDetails = null, string additionalEmails = null, string vendorId = null, string vendorName = null, Riskified.SDK.Model.OrderElements.DecisionDetails decisionDetails = null, Riskified.SDK.Model.OrderElements.ClientDetails clientDetails = null, Riskified.SDK.Model.OrderElements.ChargeFreePaymentDetails chargeFreePaymentDetails = null, string groupFounderOrderID = null, string referringSite = null, string note = null, string name = null, string orderType = null, SubmissionReason submissionReason = null ) : System

Creates a new order

Validate ( Validations validationType = Validations.Weak ) : void

Validates the objects fields content

Method Details

Order() public méthode

Creates a new order
public Order ( string merchantOrderId, string email, Customer customer, Riskified.SDK.Model.OrderElements.AddressInformation billingAddress, Riskified.SDK.Model.OrderElements.AddressInformation shippingAddress, LineItem lineItems, Riskified.SDK.Model.OrderElements.ShippingLine shippingLines, string gateway, string customerBrowserIp, string currency, double totalPrice, System.DateTime createdAt, System.DateTime updatedAt, Passenger passengers = null, IPaymentDetails paymentDetails = null, Riskified.SDK.Model.OrderElements.DiscountCode discountCodes = null, double totalDiscounts = null, string cartToken = null, double totalPriceUsd = null, System.DateTime closedAt = null, string financialStatus = null, string fulfillmentStatus = null, string source = null, Riskified.SDK.Model.OrderElements.NoChargeDetails noChargeDetails = null, string additionalEmails = null, string vendorId = null, string vendorName = null, Riskified.SDK.Model.OrderElements.DecisionDetails decisionDetails = null, Riskified.SDK.Model.OrderElements.ClientDetails clientDetails = null, Riskified.SDK.Model.OrderElements.ChargeFreePaymentDetails chargeFreePaymentDetails = null, string groupFounderOrderID = null, string referringSite = null, string note = null, string name = null, string orderType = null, SubmissionReason submissionReason = null ) : System
merchantOrderId string The unique id of the order at the merchant systems
email string The email used for contact in the order
customer Riskified.SDK.Model.OrderElements.Customer The customer information
billingAddress Riskified.SDK.Model.OrderElements.AddressInformation Billing address
shippingAddress Riskified.SDK.Model.OrderElements.AddressInformation Shipping address
lineItems Riskified.SDK.Model.OrderElements.LineItem An array of all products in the order
shippingLines Riskified.SDK.Model.OrderElements.ShippingLine An array of all shipping details for the order
gateway string The payment gateway that was used
customerBrowserIp string The customer browser ip that was used for the order
currency string A three letter code (ISO 4217) for the currency used for the payment
totalPrice double The sum of all the prices of all the items in the order, taxes and discounts included
createdAt System.DateTime The date and time when the order was created
updatedAt System.DateTime The date and time when the order was last modified
passengers Riskified.SDK.Model.OrderElements.Passenger Passengers included in the order - used for Travel industry merchants
paymentDetails IPaymentDetails The payment details
discountCodes Riskified.SDK.Model.OrderElements.DiscountCode An array of objects, each one containing information about an item in the order (optional)
totalDiscounts double The total amount of the discounts on the Order (optional)
cartToken string Unique identifier for a particular cart or session that is attached to a particular order. The same ID should be passed in the Beacon JS (optional)
totalPriceUsd double The price in USD (optional)
closedAt System.DateTime The date and time when the order was closed. If the order was closed (optional)
financialStatus string The financial status of the order (could be paid/voided/refunded/partly_paid/etc.)
fulfillmentStatus string The fulfillment status of the order
source string The source of the order
noChargeDetails Riskified.SDK.Model.OrderElements.NoChargeDetails No charge sums - including all payments made for this order in giftcards, cash, checks or other non chargebackable payment methods
additionalEmails string
vendorId string
vendorName string
decisionDetails Riskified.SDK.Model.OrderElements.DecisionDetails
clientDetails Riskified.SDK.Model.OrderElements.ClientDetails Technical information regarding the customer's browsing session
chargeFreePaymentDetails Riskified.SDK.Model.OrderElements.ChargeFreePaymentDetails Payment sums made using non-chargebackable methods and should be omitted from the Chargeback gurantee sum and Riskified fee
groupFounderOrderID string
referringSite string
note string
name string
orderType string
submissionReason SubmissionReason The reason for submitting this order for review
Résultat System

Validate() public méthode

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
Résultat void