Skip to content

Commit

Permalink
Fixed typo in example
Browse files Browse the repository at this point in the history
changes:
Service wix-events-frontend.Tickets operation checkout.examples[1] has changed body
Service wix-events-frontend.Tickets operation reserve.examples[1] has changed body
Service wix-events-frontend.Tickets operation updateOrder.examples[1] has changed body
Service wix-events-frontend.Tickets operation verifyCoupon.examples[2] has changed body
Service wix-events-frontend property tickets.examples[0] has changed body

Co-authored-by: ievakr <[email protected]>
  • Loading branch information
wix-docs-feds and ievakr authored Sep 13, 2023
1 parent ddda824 commit d21188b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 42 deletions.
8 changes: 4 additions & 4 deletions wix-events-frontend/wix-events-frontend.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@
" $w(\"#ticketRepeater\").data = tickets;",
"",
" // Define button click actions",
" $w(\"reservationButton\").onClick(reserveTickets);",
" $w(\"checkoutButton\").onClick(checkoutTickets);",
" $w(\"updateButton\").onClick(updateTickets);",
" $w(\"#reservationButton\").onClick(reserveTickets);",
" $w(\"#checkoutButton\").onClick(checkoutTickets);",
" $w(\"#updateButton\").onClick(updateTickets);",
"",
" // Verify coupon code when it is entered",
" $w(\"#couponCode\").onCustomValidation(verifyCouponCode);",
Expand Down Expand Up @@ -243,7 +243,7 @@
" orderNumber = order.orderNumber",
" wixPayFrontend.startPayment(order.paymentId);",
" // Note that PDF tickets are available before payment is complete",
" $w(\"ticketsPdfLink\").value = order.ticketsPdf;",
" $w(\"#ticketsPdfLink\").value = order.ticketsPdf;",
" })",
" .catch((error) => {",
" console.log(\"Error\", error.message)",
Expand Down
9 changes: 3 additions & 6 deletions wix-events-frontend/wix-events-frontend/Form.service.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{ "name": "Form",
"memberOf": "wix-events-frontend",
"mixes": [],
"labels":
[ "changed" ],
"labels": [],
"location":
{ "lineno": 1,
"filename": "form.js" },
Expand All @@ -17,8 +16,7 @@
{ } },
"properties":
[ { "name": "formData",
"labels":
[ "changed" ],
"labels": [],
"get": true,
"set": false,
"type": "wix-events-frontend.Form.FormData",
Expand Down Expand Up @@ -1041,8 +1039,7 @@
"doc": "Whether the event is a ticketed event." } ],
"extra":
{ },
"labels":
[ "changed" ] },
"labels": [] },
{ "name": "FormValue",
"locations":
[ { "lineno": 138,
Expand Down
56 changes: 24 additions & 32 deletions wix-events-frontend/wix-events-frontend/Tickets.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@
" $w(\"#ticketRepeater\").data = tickets;",
"",
" // Define button click actions",
" $w(\"reservationButton\").onClick(reserveTickets);",
" $w(\"checkoutButton\").onClick(checkoutTickets);",
" $w(\"updateButton\").onClick(updateTickets);",
" $w(\"#reservationButton\").onClick(reserveTickets);",
" $w(\"#checkoutButton\").onClick(checkoutTickets);",
" $w(\"#updateButton\").onClick(updateTickets);",
"",
" // Verify coupon code when it is entered",
" $w(\"#couponCode\").onCustomValidation(verifyCouponCode);",
Expand Down Expand Up @@ -449,7 +449,7 @@
" orderNumber = order.orderNumber",
" wixPayFrontend.startPayment(order.paymentId);",
" // Note that PDF tickets are available before payment is complete",
" $w(\"ticketsPdfLink\").value = order.ticketsPdf;",
" $w(\"#ticketsPdfLink\").value = order.ticketsPdf;",
" })",
" .catch((error) => {",
" console.log(\"Error\", error.message)",
Expand Down Expand Up @@ -798,9 +798,9 @@
" $w(\"#ticketRepeater\").data = tickets;",
"",
" // Define button click actions",
" $w(\"reservationButton\").onClick(reserveTickets);",
" $w(\"checkoutButton\").onClick(checkoutTickets);",
" $w(\"updateButton\").onClick(updateTickets);",
" $w(\"#reservationButton\").onClick(reserveTickets);",
" $w(\"#checkoutButton\").onClick(checkoutTickets);",
" $w(\"#updateButton\").onClick(updateTickets);",
"",
" // Verify coupon code when it is entered",
" $w(\"#couponCode\").onCustomValidation(verifyCouponCode);",
Expand Down Expand Up @@ -874,7 +874,7 @@
" orderNumber = order.orderNumber",
" wixPayFrontend.startPayment(order.paymentId);",
" // Note that PDF tickets are available before payment is complete",
" $w(\"ticketsPdfLink\").value = order.ticketsPdf;",
" $w(\"#ticketsPdfLink\").value = order.ticketsPdf;",
" })",
" .catch((error) => {",
" console.log(\"Error\", error.message)",
Expand Down Expand Up @@ -1231,9 +1231,9 @@
" $w(\"#ticketRepeater\").data = tickets;",
"",
" // Define button click actions",
" $w(\"reservationButton\").onClick(reserveTickets);",
" $w(\"checkoutButton\").onClick(checkoutTickets);",
" $w(\"updateButton\").onClick(updateTickets);",
" $w(\"#reservationButton\").onClick(reserveTickets);",
" $w(\"#checkoutButton\").onClick(checkoutTickets);",
" $w(\"#updateButton\").onClick(updateTickets);",
"",
" // Verify coupon code when it is entered",
" $w(\"#couponCode\").onCustomValidation(verifyCouponCode);",
Expand Down Expand Up @@ -1307,7 +1307,7 @@
" orderNumber = order.orderNumber",
" wixPayFrontend.startPayment(order.paymentId);",
" // Note that PDF tickets are available before payment is complete",
" $w(\"ticketsPdfLink\").value = order.ticketsPdf;",
" $w(\"#ticketsPdfLink\").value = order.ticketsPdf;",
" })",
" .catch((error) => {",
" console.log(\"Error\", error.message)",
Expand Down Expand Up @@ -1681,9 +1681,9 @@
" $w(\"#ticketRepeater\").data = tickets;",
"",
" // Define button click actions",
" $w(\"reservationButton\").onClick(reserveTickets);",
" $w(\"checkoutButton\").onClick(checkoutTickets);",
" $w(\"updateButton\").onClick(updateTickets);",
" $w(\"#reservationButton\").onClick(reserveTickets);",
" $w(\"#checkoutButton\").onClick(checkoutTickets);",
" $w(\"#updateButton\").onClick(updateTickets);",
"",
" // Verify coupon code when it is entered",
" $w(\"#couponCode\").onCustomValidation(verifyCouponCode);",
Expand Down Expand Up @@ -1757,7 +1757,7 @@
" orderNumber = order.orderNumber",
" wixPayFrontend.startPayment(order.paymentId);",
" // Note that PDF tickets are available before payment is complete",
" $w(\"ticketsPdfLink\").value = order.ticketsPdf;",
" $w(\"#ticketsPdfLink\").value = order.ticketsPdf;",
" })",
" .catch((error) => {",
" console.log(\"Error\", error.message)",
Expand Down Expand Up @@ -2129,8 +2129,7 @@
"optional": true } ],
"extra":
{ },
"labels":
[ "changed" ] },
"labels": [] },
{ "name": "CheckoutResponse",
"locations":
[ { "lineno": 168,
Expand Down Expand Up @@ -2419,8 +2418,7 @@
"doc": "Time the reservations expire." } ],
"extra":
{ },
"labels":
[ "changed" ] },
"labels": [] },
{ "name": "Discount",
"locations":
[ { "lineno": 349,
Expand Down Expand Up @@ -2906,8 +2904,7 @@
"doc": "ID of the coupon used in the discount." } ],
"extra":
{ },
"labels":
[ "changed" ] },
"labels": [] },
{ "name": "DiscountError",
"locations":
[ { "lineno": 203,
Expand Down Expand Up @@ -3815,8 +3812,7 @@
"doc": "Total amount of fee charges." } ],
"extra":
{ },
"labels":
[ "changed" ] },
"labels": [] },
{ "name": "Invoice",
"locations":
[ { "lineno": 309,
Expand Down Expand Up @@ -4319,8 +4315,7 @@
"doc": "Total revenue with taxes, excluding fees. Payment provider fees are not deducted." } ],
"extra":
{ },
"labels":
[ "changed" ] },
"labels": [] },
{ "name": "InvoiceItem",
"locations":
[ { "lineno": 332,
Expand Down Expand Up @@ -4820,8 +4815,7 @@
"doc": "Invoice item applied fee charges." } ],
"extra":
{ },
"labels":
[ "changed" ] },
"labels": [] },
{ "name": "Money",
"locations":
[ { "lineno": 245,
Expand Down Expand Up @@ -5409,8 +5403,7 @@
"doc": "Transaction ID." } ],
"extra":
{ },
"labels":
[ "changed" ] },
"labels": [] },
{ "name": "Reservation",
"locations":
[ { "lineno": 219,
Expand Down Expand Up @@ -6371,8 +6364,7 @@
"doc": "Total tax amount." } ],
"extra":
{ },
"labels":
[ "changed" ] },
"labels": [] },
{ "name": "Ticket",
"locations":
[ { "lineno": 228,
Expand Down

0 comments on commit d21188b

Please sign in to comment.