Skip to content

Commit

Permalink
Expose normalized amount on fee in the order events
Browse files Browse the repository at this point in the history
Signed-off-by: joaobaptistanqda <[email protected]>
  • Loading branch information
joaobaptistanqda authored and jackmurdoch committed May 13, 2024
1 parent a947b85 commit 4258692
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions docs/flows/crypto-onramp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ Triggered when a user has placed an order.
- `fees`: Array containing fees associated with the order.
- `amount`: Amount user was charged for this fee.
- `asset`: Asset used to charge the fee.
- `normalized`: Amount in USD that the user was charged for this fee.
- `type`: Type of fee (`network`, `deposit` or `partner`).
- `widget`: Widget associated with the session.
- `id` UUID of the widget.
Expand Down Expand Up @@ -227,16 +228,19 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
{
"amount": "14.17",
"asset": "USD",
"normalized": "14.17",
"type": "network"
},
{
"amount": "2.42",
"asset": "USD",
"normalized": "2.42",
"type": "deposit"
},
{
"amount": "1.00",
"asset": "USD",
"normalized": "1.00",
"type": "partner"
}
],
Expand Down Expand Up @@ -283,6 +287,7 @@ Triggered when a user has been charged.
- `fees`: Array containing fees associated with the order.
- `amount`: Amount user was charged for this fee.
- `asset`: Asset used to charge the fee.
- `normalized`: Amount in USD that the user was charged for this fee.
- `type`: Type of fee (`network`, `deposit` or `partner`).
- `widget`: Widget associated with the session.
- `id` UUID of the widget.
Expand Down Expand Up @@ -326,16 +331,19 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
{
"amount": "14.17",
"asset": "USD",
"normalized": "14.17",
"type": "network"
},
{
"amount": "2.42",
"asset": "USD",
"normalized": "2.42",
"type": "deposit"
},
{
"amount": "1.00",
"asset": "USD",
"normalized": "1.00",
"type": "partner"
}
],
Expand Down Expand Up @@ -384,6 +392,7 @@ Triggered when a user's order has completed.
- `fees`: Array containing fees associated with the order.
- `amount`: Amount user was charged for this fee.
- `asset`: Asset used to charge the fee.
- `normalized`: Amount in USD that the user was charged for this fee.
- `type`: Type of fee (`network`, `deposit` or `partner`).
- `widget`: Widget associated with the session.
- `id` UUID of the widget.
Expand Down Expand Up @@ -430,16 +439,19 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
{
"amount": "14.17",
"asset": "USD",
"normalized": "14.17",
"type": "network"
},
{
"amount": "2.42",
"asset": "USD",
"normalized": "2.42",
"type": "deposit"
},
{
"amount": "1.00",
"asset": "USD",
"normalized": "1.00",
"type": "partner"
}
],
Expand Down Expand Up @@ -486,6 +498,7 @@ Triggered when a user's order has failed.
- `fees`: Array containing fees associated with the order.
- `amount`: Amount user was charged for this fee.
- `asset`: Asset used to charge the fee.
- `normalized`: Amount in USD that the user was charged for this fee.
- `type`: Type of fee (`network`, `deposit` or `partner`).
- `widget`: Widget associated with the session.
- `id` UUID of the widget.
Expand Down Expand Up @@ -529,16 +542,19 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
{
"amount": "14.17",
"asset": "USD",
"normalized": "14.17",
"type": "network"
},
{
"amount": "2.42",
"asset": "USD",
"normalized": "2.42",
"type": "deposit"
},
{
"amount": "1.00",
"asset": "USD",
"normalized": "1.00",
"type": "partner"
}
],
Expand Down Expand Up @@ -585,6 +601,7 @@ Triggered when a user's order has been successfully refunded.
- `fees`: Array containing fees associated with the order.
- `amount`: Amount user was charged for this fee.
- `asset`: Asset used to charge the fee.
- `normalized`: Amount in USD that the user was charged for this fee.
- `type`: Type of fee (`network`, `deposit` or `partner`).
- `refund`: Object containing information about how much was refunded to the user.
- `formattedAmount`: Amount refunded to the user
Expand Down Expand Up @@ -632,16 +649,19 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
{
"amount": "14.17",
"asset": "USD",
"normalized": "14.17",
"type": "network"
},
{
"amount": "2.42",
"asset": "USD",
"normalized": "2.42",
"type": "deposit"
},
{
"amount": "1.00",
"asset": "USD",
"normalized": "1.00",
"type": "partner"
}
],
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4258692

Please sign in to comment.