@wix/himalaya-cli 0.1002.0 → 0.1004.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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/extensions.d.ts +16 -2
- package/dist/cli.mjs +1204 -761
- package/guides/himi-test.md +1 -0
- package/guides/sdk-reference.json +1 -1
- package/guides/wix-business-context.md +27 -0
- package/package.json +2 -2
|
@@ -263,8 +263,22 @@ export interface WixBookSlotOptions {
|
|
|
263
263
|
* for an OFFLINE booking, so do not read one as "charge now" and send a
|
|
264
264
|
* pay-in-person customer into the cashier.
|
|
265
265
|
*
|
|
266
|
-
* Wix
|
|
267
|
-
* through
|
|
266
|
+
* Wix's Create Booking reference says to specify `selectedPaymentOption` when the
|
|
267
|
+
* customer pays through a Wix eCommerce checkout, and that the call fails
|
|
268
|
+
* otherwise. That failure has not been observed. The member paid flow in the
|
|
269
|
+
* `himi-booking-time` worker calls `bookSlot` with no option and then checks
|
|
270
|
+
* out, and a live run of it created the booking, the checkout and the order.
|
|
271
|
+
* That run never completed payment, though, so whether a booking made without
|
|
272
|
+
* an option confirms once its order is paid is still unverified, and Wix does
|
|
273
|
+
* not document what an omitted option defaults to. Pass it when you know how
|
|
274
|
+
* the customer means to pay.
|
|
275
|
+
*
|
|
276
|
+
* Any value you pass must be one the service offers. Wix exposes that on the
|
|
277
|
+
* Services V2 service as `payment.options` (booleans `online`, `inPerson`,
|
|
278
|
+
* `deposit`, `pricingPlan`). The `WixService` type here does not declare it
|
|
279
|
+
* yet, so read it from the service response with a cast.
|
|
280
|
+
* Do not hard-code `ONLINE`: a service can be set up for in-person payment
|
|
281
|
+
* only, and then `ONLINE` is not one of its options.
|
|
268
282
|
* Leave `options` out and the request is the one this function always sent. */
|
|
269
283
|
export declare function bookSlot(slot: WixBookingSlotFull, firstName: string, lastName: string, email: string, options?: WixBookSlotOptions): Promise<WixCreateBookingResponse>;
|
|
270
284
|
export interface WixBookingAdditionalField {
|