@scopetickets/checkout 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,9 +9,9 @@ imports the SDK, and the SDK's public API is unchanged by its arrival.
9
9
 
10
10
  ## What is here
11
11
 
12
- The widget, its island and the steps it mounts — 99 files, of which 35 are
13
- tests. `src/island` is the surface and its motion; `src/domain` is the flow it
14
- walks, as pure functions with no React in them.
12
+ The widget, its island and the steps it mounts — 190 files, of which 86 are
13
+ tests. `src/island` is the surface and its motion; the flow it walks lives in
14
+ `@scopetickets/checkout-core`, as pure functions with no React in them.
15
15
 
16
16
  Not everything it draws is reachable yet, and the gaps are all in the same
17
17
  place: there is no account service to sign into, so `ScopeTicketsCheckout`
@@ -116,6 +116,17 @@ picker they needed. The four that can answer from the intent run first and often
116
116
  spare the request. A check that throws sends the buyer to the card it guards
117
117
  rather than past it.
118
118
 
119
+ **The event's questions are asked, and the answers are sent before payment.** A question
120
+ can be set on the ticket, the event or its series: the tickets carry their own, and once
121
+ the cart is open the event's questionnaire is read — the series' where the event has
122
+ none. Text is a field, a whole number is a numeric field, a yes or no is a switch, and
123
+ the card stays shut until every one is answered; a buyer the checks opened past it is
124
+ walked back to it. The answers — the buyer's, or the `intent.answers` a host already
125
+ collected, which excuse the card only where they answer every question — go to every
126
+ cart item before any charge. The platform only adds answers, so once saved they are
127
+ shown read-only and never sent twice. A questionnaire that cannot be read, or answers
128
+ that are refused, stop the buyer on a notice with Try Again, before anything is charged.
129
+
119
130
  **A host that already opened a cart passes it**, and the widget adopts it rather
120
131
  than opening a second:
121
132