Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typos in the example #2397

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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