C# Class Riskified.SDK.Model.OrderCancellation

Inheritance: Riskified.SDK.Model.AbstractOrder
Show file Open project: Riskified/sdk_net Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
OrderCancellation ( int merchantOrderId, System.DateTime cancelledAt, string cancelReason ) : System

Creates an order cancellation

OrderCancellation ( string merchantOrderId, System.DateTime cancelledAt, string cancelReason ) : System

Creates an order cancellation

Validate ( Validations validationType = Validations.Weak ) : void

Method Details

OrderCancellation() public method

Creates an order cancellation
public OrderCancellation ( int merchantOrderId, System.DateTime cancelledAt, string cancelReason ) : System
merchantOrderId int The unique id of the order at the merchant systems
cancelledAt System.DateTime The date and time when the order was cancelled (optional)
cancelReason string If the order was cancelled, the value will be one of the following: /// "customer": The customer changed or cancelled the order. /// "fraud": The order was fraudulent. /// "inventory": Items in the order were not in inventory. /// "other": The order was cancelled for a reason not in the list above.
return System

OrderCancellation() public method

Creates an order cancellation
public OrderCancellation ( string merchantOrderId, System.DateTime cancelledAt, string cancelReason ) : System
merchantOrderId string The unique id of the order at the merchant systems
cancelledAt System.DateTime The date and time when the order was cancelled (optional)
cancelReason string If the order was cancelled, the value will be one of the following: /// "customer": The customer changed or cancelled the order. /// "fraud": The order was fraudulent. /// "inventory": Items in the order were not in inventory. /// "other": The order was cancelled for a reason not in the list above.
return System

Validate() public method

public Validate ( Validations validationType = Validations.Weak ) : void
validationType Validations
return void