Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Works in Ultra Pipelines

Limitations

...

Excerpt Include
Calculate Order Refund
Calculate Order Refund
nopaneltrue

Known Issues

None.

Snap Input and Output

Input/OutputType of ViewNumber of ViewsExamples of Upstream and Downstream SnapsDescription
Input 

Document



  • Min:1
  • Max:1
  • Mapper
  • Copy
The ID of the order that the order risk belongs to.
Output

Document

  • Min:1
  • Max:1
  • Mapper
  • Create Order Refund
  • Order Operations

Creates an order risk for an order.

...

First, we configure the JSON Generator Snap to pass the order data as follows.

Order DataOrder Data Output
Image Modified
Image Modified


Next, we create an order with the order details from the upstream Snap—we configure the Create Order Snap as follows.

Create Order Snap SettingsCreate Order Snap Output
Image Modified
Image Modified

Next, we prepare an order risk for the order we just created using the Mapper Snap. To this end, we map the order risk details as highlighted in the image below.

...

Next, we create an Order Risk for the order using the Create Order Risk Snap. We pass $id in the Order Id field. Upon validation, the Snap generates the order risk details for the given order as follows:

Create Order Risk SettingsCreate Order Risk Output

Image Modified

Image Modified

Download this Pipeline.


Attachments
patterns*.slp, *.zip

...