Skip to content

Commit

Permalink
Update example payloads (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettgoss committed Apr 10, 2018
1 parent 558653e commit faf8763
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 17 deletions.
29 changes: 21 additions & 8 deletions docs/examples/response/webhook-booking.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,33 @@
},
"status": "HOLD",
"code": "KMVQ-060314",
"tid": {},
"created_date": "1394156618",
"staff_id": "1",
"source_ip": "66.228.55.142",
"start_date": "1394128800",
"end_date": "1394128800",
"customer": {
"name": "Your Customer",
"email": "support@checkfront.com",
"region": "BC",
"address": "170-422 Richards Street",
"city": "Vancouver",
"country": "CA",
"phone": "1 (800) 559-0985",
"postal_zip": "V6B 2Z4"
"code": "BT5-386-579",
"customer_name": "Your Customer",
"customer_email": "support@checkfront.com",
"customer_region": "BC",
"customer_address": "170-422 Richards Street",
"customer_city": "Vancouver",
"customer_country": "CA",
"customer_phone": "1 (800) 559-0985",
"customer_postal_zip": "V6B 2Z4"
},
"fields": {
"customer_name": "Your Customer",
"customer_email": "support@checkfront.com",
"customer_region": "BC",
"customer_address": "170-422 Richards Street",
"customer_city": "Vancouver",
"customer_country": "CA",
"customer_phone": "1 (800) 559-0985",
"customer_postal_zip": "V6B 2Z4",
"request": "Blue paddleboard if available, please."
},
"meta": {
"note": "Free icecream!",
Expand Down
31 changes: 22 additions & 9 deletions docs/examples/response/webhook-booking.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,39 @@
<booking booking_id="157">
<status>HOLD</status>
<code>KMVQ-060314</code>
<tid/>
<created_date>1394156618</created_date>
<staff_id>1</staff_id>
<source_ip>66.228.55.142</source_ip>
<start_date>1394128800</start_date>
<end_date>1394128800</end_date>
<customer>
<name>Your Customer</name>
<email>support@checkfront.com</email>
<region>BC</region>
<address>170-422 Richards Street</address>
<city>Vancouver</city>
<country>CA</country>
<phone>1 (800) 559-0985</phone>
<postal_zip>V6B 2Z4</postal_zip>
<code>BT5-386-579</code>
<customer_name>Your Customer</customer_name>
<customer_email>support@checkfront.com</customer_email>
<customer_region>BC</customer_region>
<customer_address>170-422 Richards Street</customer_address>
<customer_city>Vancouver</customer_city>
<customer_country>CA</customer_country>
<customer_phone>1 (800) 559-0985</customer_phone>
<customer_postal_zip>V6B 2Z4</customer_postal_zip>
</customer>
<fields>
<customer_name>Your Customer</customer_name>
<customer_email>support@checkfront.com</customer_email>
<customer_region>BC</customer_region>
<customer_address>170-422 Richards Street</customer_address>
<customer_city>Vancouver</customer_city>
<customer_country>CA</customer_country>
<customer_phone>1 (800) 559-0985</customer_phone>
<customer_postal_zip>V6B 2Z4</customer_postal_zip>
<request>Blue paddleboard if available, please.</request>
</fields>
<meta>
<note>Free icecream!</note>
<mobile_device></mobile_device>
</meta>
<order currency_id="EUR">
<order currency_id="CAD">
<sub_total>46.00</sub_total>
<tax_total>2.30</tax_total>
<paid_total>0.00</paid_total>
Expand Down

0 comments on commit faf8763

Please sign in to comment.