C# 클래스 Riskified.SDK.Orders.OrdersGateway

Main class to handle order creation and submittion to Riskified Servers
파일 보기 프로젝트 열기: Riskified/sdk_net 1 사용 예제들

공개 메소드들

메소드 설명
Cancel ( OrderCancellation orderCancellation ) : OrderNotification

Validates the cancellation data Sends a cancellation message for a specific order (id should already exist) to Riskified server for status and charge fees update

Chargeback ( OrderChargeback orderChargeback ) : OrderNotification
Checkout ( Riskified.SDK.Model.OrderCheckout orderCheckout ) : OrderNotification

Validates the Order checkout object fields (All fields except merchendOrderId are optional) Sends a new order checkout to Riskified Servers (without Submit for analysis)

CheckoutDenied ( OrderCheckoutDenied orderCheckout ) : OrderNotification

Validates the Order checkout object fields (All fields except merchendOrderId are optional) Sends a new order checkout to Riskified Servers (without Submit for analysis)

Create ( Order order ) : OrderNotification

Validates the Order object fields Sends a new order to Riskified Servers (without Submit for analysis)

Decision ( OrderDecision orderDecision ) : OrderNotification

Validates the decision data Sends a decision message for a specific order (id should already exist) to Riskified server. Update existing order external status. Lets Riskified know what was your decision on your order.

Fulfill ( Riskified.SDK.Model.OrderFulfillment orderFulfillment ) : OrderNotification

Validates the cancellation data Sends a cancellation message for a specific order (id should already exist) to Riskified server for status and charge fees update

OrdersGateway ( RiskifiedEnvironment env, string authToken, string shopDomain ) : System

Creates the mediator class used to send order data to Riskified

OrdersGateway ( RiskifiedEnvironment env, string authToken, string shopDomain, Validations validationMode ) : System

Creates the mediator class used to send order data to Riskified

OrdersGateway ( RiskifiedEnvironment env, string authToken, string shopDomain, bool shouldUseWeakValidation ) : System

Old version - Deprecated Creates the mediator class used to send order data to Riskified

PartlyRefund ( Riskified.SDK.Model.OrderPartialRefund orderPartialRefund ) : OrderNotification

Validates the partial refunds data for an order Sends the partial refund data for an order to Riskified server for status and charge fees update

SendHistoricalOrders ( IEnumerable orders, string>.Dictionary &failedOrders ) : bool

Validates the list of historical orders and sends them in batches to Riskified Servers. The FinancialStatus field of each order should contain the latest order status as described at "http://apiref.riskified.com/net/#actions-historical"

Submit ( Order order ) : OrderNotification

Validates the Order object fields Sends an order to Riskified Servers and submits it for analysis

Update ( Order order ) : OrderNotification

Validates the Order object fields Sends an updated order (already created) to Riskified Servers

비공개 메소드들

메소드 설명
SendOrder ( Riskified.SDK.Model.AbstractOrder order, Uri riskifiedEndpointUrl ) : OrderNotification

Validates the Order object fields Sends the order to riskified server endpoint as configured in the ctor

SendOrderCheckout ( Riskified.SDK.Model.AbstractOrder orderCheckout, Uri riskifiedEndpointUrl ) : OrderNotification

Validates the Order object fields Sends the order to riskified server endpoint as configured in the ctor

메소드 상세

Cancel() 공개 메소드

Validates the cancellation data Sends a cancellation message for a specific order (id should already exist) to Riskified server for status and charge fees update
On bad format of the order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public Cancel ( OrderCancellation orderCancellation ) : OrderNotification
orderCancellation Riskified.SDK.Model.OrderCancellation
리턴 Riskified.SDK.Model.OrderNotification

Chargeback() 공개 메소드

public Chargeback ( OrderChargeback orderChargeback ) : OrderNotification
orderChargeback Riskified.SDK.Model.OrderChargeback
리턴 Riskified.SDK.Model.OrderNotification

Checkout() 공개 메소드

Validates the Order checkout object fields (All fields except merchendOrderId are optional) Sends a new order checkout to Riskified Servers (without Submit for analysis)
On bad format of the order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public Checkout ( Riskified.SDK.Model.OrderCheckout orderCheckout ) : OrderNotification
orderCheckout Riskified.SDK.Model.OrderCheckout
리턴 Riskified.SDK.Model.OrderNotification

CheckoutDenied() 공개 메소드

Validates the Order checkout object fields (All fields except merchendOrderId are optional) Sends a new order checkout to Riskified Servers (without Submit for analysis)
On bad format of the order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public CheckoutDenied ( OrderCheckoutDenied orderCheckout ) : OrderNotification
orderCheckout Riskified.SDK.Model.OrderCheckoutDenied
리턴 Riskified.SDK.Model.OrderNotification

Create() 공개 메소드

Validates the Order object fields Sends a new order to Riskified Servers (without Submit for analysis)
On bad format of the order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public Create ( Order order ) : OrderNotification
order Riskified.SDK.Model.Order The Order to create
리턴 Riskified.SDK.Model.OrderNotification

Decision() 공개 메소드

Validates the decision data Sends a decision message for a specific order (id should already exist) to Riskified server. Update existing order external status. Lets Riskified know what was your decision on your order.
On bad format of the order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public Decision ( OrderDecision orderDecision ) : OrderNotification
orderDecision Riskified.SDK.Model.OrderDecision
리턴 Riskified.SDK.Model.OrderNotification

Fulfill() 공개 메소드

Validates the cancellation data Sends a cancellation message for a specific order (id should already exist) to Riskified server for status and charge fees update
On bad format of the order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public Fulfill ( Riskified.SDK.Model.OrderFulfillment orderFulfillment ) : OrderNotification
orderFulfillment Riskified.SDK.Model.OrderFulfillment
리턴 Riskified.SDK.Model.OrderNotification

OrdersGateway() 공개 메소드

Creates the mediator class used to send order data to Riskified
public OrdersGateway ( RiskifiedEnvironment env, string authToken, string shopDomain ) : System
env RiskifiedEnvironment The Riskified environment to send to
authToken string The merchant's auth token
shopDomain string The merchant's shop domain
리턴 System

OrdersGateway() 공개 메소드

Creates the mediator class used to send order data to Riskified
public OrdersGateway ( RiskifiedEnvironment env, string authToken, string shopDomain, Validations validationMode ) : System
env RiskifiedEnvironment The Riskified environment to send to
authToken string The merchant's auth token
shopDomain string The merchant's shop domain
validationMode Validations Validation mode to use
리턴 System

OrdersGateway() 공개 메소드

Old version - Deprecated Creates the mediator class used to send order data to Riskified
public OrdersGateway ( RiskifiedEnvironment env, string authToken, string shopDomain, bool shouldUseWeakValidation ) : System
env RiskifiedEnvironment The Riskified environment to send to
authToken string The merchant's auth token
shopDomain string The merchant's shop domain
shouldUseWeakValidation bool Should weakly validate before sending
리턴 System

PartlyRefund() 공개 메소드

Validates the partial refunds data for an order Sends the partial refund data for an order to Riskified server for status and charge fees update
On bad format of the order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public PartlyRefund ( Riskified.SDK.Model.OrderPartialRefund orderPartialRefund ) : OrderNotification
orderPartialRefund Riskified.SDK.Model.OrderPartialRefund
리턴 Riskified.SDK.Model.OrderNotification

SendHistoricalOrders() 공개 메소드

Validates the list of historical orders and sends them in batches to Riskified Servers. The FinancialStatus field of each order should contain the latest order status as described at "http://apiref.riskified.com/net/#actions-historical"
On bad format of an order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public SendHistoricalOrders ( IEnumerable orders, string>.Dictionary &failedOrders ) : bool
orders IEnumerable
failedOrders string>.Dictionary When the method returns false, contains a mapping from order_id (key) to error message (value), otherwise will be null
리턴 bool

Submit() 공개 메소드

Validates the Order object fields Sends an order to Riskified Servers and submits it for analysis
On bad format of the order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public Submit ( Order order ) : OrderNotification
order Riskified.SDK.Model.Order The Order to submit
리턴 Riskified.SDK.Model.OrderNotification

Update() 공개 메소드

Validates the Order object fields Sends an updated order (already created) to Riskified Servers
On bad format of the order (missing fields data or invalid data) On errors with the transaction itself (network errors, bad response data)
public Update ( Order order ) : OrderNotification
order Riskified.SDK.Model.Order The Order to update
리턴 Riskified.SDK.Model.OrderNotification