Skip to content

Commit

Permalink
Webhooks use cases pacing consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjcohen committed Oct 16, 2024
1 parent eccee49 commit 0adc3d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/webhooks/use-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ async function main (params) {
const response = {statusCode: 200}
if (discountCode && discountCode.couponCode.toLowerCase().includes('test')) {
response.body = JSON.stringify({
op: "exception",
message: `App Builder Webhook Response: The discount code "${discountCode.couponCode}" is not valid`
})
op: "exception",
message: `App Builder Webhook Response: The discount code "${discountCode.couponCode}" is not valid`
})
} else {
response.body = JSON.stringify({
op: "success"
Expand All @@ -126,8 +126,8 @@ If validation fails, the runtime AppBuilder action returns an exception message.

```js
response.body = JSON.stringify({
op: "exception",
message: `App Builder Webhook Response: The discount code "${discountCode.couponCode}" is not valid`
op: "exception",
message: `App Builder Webhook Response: The discount code "${discountCode.couponCode}" is not valid`
})
```

Expand Down Expand Up @@ -250,8 +250,8 @@ If validation fails, the runtime AppBuilder action returns an exception message.

```js
response.body = JSON.stringify({
op: "exception",
message: `App Builder Webhook Response: The gift card code "${giftCards[i]}" is not valid`
op: "exception",
message: `App Builder Webhook Response: The gift card code "${giftCards[i]}" is not valid`
})
```

Expand Down

0 comments on commit 0adc3d8

Please sign in to comment.