@proveanything/smartlinks 2.2.9 → 2.2.10
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/api/bookings.d.ts +49 -2
- package/dist/api/bookings.js +59 -2
- package/dist/docs/API_SUMMARY.md +105 -7
- package/dist/docs/bookings.md +539 -442
- package/dist/openapi.yaml +249 -0
- package/dist/testing/bookingsMemory.d.ts +29 -1
- package/dist/testing/bookingsMemory.js +89 -1
- package/dist/testing/index.js +4 -1
- package/dist/types/appManifest.d.ts +26 -4
- package/dist/types/bookings.d.ts +99 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/API_SUMMARY.md +105 -7
- package/docs/bookings.md +539 -442
- package/openapi.yaml +249 -0
- package/package.json +1 -1
package/dist/api/bookings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Booking, BookingSlot, BookingAllocation, CreateBookingInput, UpdateBookingInput, MoveBookingInput, BookingListQueryParams, CreateSlotInput, UpdateSlotInput, SlotListQueryParams, CreateBlockInput, BlockListQueryParams, FreeBusyQuery, FreeBusyResponse, BookingAccessOptions, MessageBookersInput, MessageBookersResult } from '../types/bookings.js';
|
|
1
|
+
import type { Booking, BookingSlot, BookingAllocation, CreateBookingInput, UpdateBookingInput, MoveBookingInput, BookingListQueryParams, CreateSlotInput, UpdateSlotInput, SlotListQueryParams, CreateBlockInput, BlockListQueryParams, FreeBusyQuery, FreeBusyResponse, BookingAccessOptions, MessageBookersInput, MessageBookersResult, BookingCheckoutInput, BookingCheckoutResult, BookingPayLinkResult, BookingRefundResult } from '../types/bookings.js';
|
|
2
2
|
import type { PaginatedResponse } from '../types/appObjects.js';
|
|
3
3
|
export declare namespace bookings {
|
|
4
4
|
/**
|
|
@@ -26,17 +26,64 @@ export declare namespace bookings {
|
|
|
26
26
|
/**
|
|
27
27
|
* held / pending / waitlisted → confirmed (idempotent). A held booking whose hold has run out fails
|
|
28
28
|
* with HOLD_EXPIRED. Public: only the booker's own hold, when `ownerActions.bookings.confirm` allows.
|
|
29
|
+
*
|
|
30
|
+
* Paid bookings: a booking waiting for its payment is confirmed by the payment (PAYMENT_REQUIRED
|
|
31
|
+
* otherwise). Admin confirming a REQUEST that has a price turns it into a hold with a pay link for the
|
|
32
|
+
* booker (`payment.link`, emailed through `booking.payment_requested`); `{ payment: 'waive' }` confirms
|
|
33
|
+
* without payment (paid in cash, a free place).
|
|
29
34
|
* POST /bookings/:bookingId/confirm
|
|
30
35
|
*/
|
|
31
|
-
function confirm(collectionId: string, appId: string, bookingId: string, admin?: boolean, opts?: BookingAccessOptions
|
|
36
|
+
function confirm(collectionId: string, appId: string, bookingId: string, admin?: boolean, opts?: BookingAccessOptions & {
|
|
37
|
+
payment?: 'waive';
|
|
38
|
+
}): Promise<Booking>;
|
|
32
39
|
/**
|
|
33
40
|
* Cancel and give the places back (idempotent). Public: per `ownerActions.bookings.cancel` and its
|
|
34
41
|
* cutoff. `reason` is admin-only (public cancels record 'owner').
|
|
42
|
+
*
|
|
43
|
+
* Paid bookings are refunded: the booker's cancel follows the app's `bookingPayments.ownerCancelRefund`
|
|
44
|
+
* (full by default); staff choose with `refund`: 'full' (default) | 'none' | an amount in minor units.
|
|
35
45
|
* POST /bookings/:bookingId/cancel
|
|
36
46
|
*/
|
|
37
47
|
function cancel(collectionId: string, appId: string, bookingId: string, admin?: boolean, opts?: BookingAccessOptions & {
|
|
38
48
|
reason?: string;
|
|
49
|
+
refund?: 'full' | 'none' | number;
|
|
39
50
|
}): Promise<Booking>;
|
|
51
|
+
/**
|
|
52
|
+
* Book and pay. The same rules as `create` (public), then the app's `bookingPayments` decide:
|
|
53
|
+
* - pay now (the rules book as held / confirmed): the booking is held while the person pays on
|
|
54
|
+
* Stripe's page → go to `checkoutUrl`; Stripe's webhook confirms it.
|
|
55
|
+
* - a request (the rules book as pending): priced, nothing paid, `checkoutUrl: null`; staff approving it
|
|
56
|
+
* sends the booker a pay link.
|
|
57
|
+
* - free (no prices): booked the normal way, `checkoutUrl: null`.
|
|
58
|
+
* Name prices by id (`lines` for ticket types on a slot, `priceId` for an appointment's service); the
|
|
59
|
+
* server sets every amount.
|
|
60
|
+
* POST /bookings/checkout
|
|
61
|
+
*/
|
|
62
|
+
function checkout(collectionId: string, appId: string, input: BookingCheckoutInput): Promise<BookingCheckoutResult>;
|
|
63
|
+
/**
|
|
64
|
+
* The thank-you page: the booking a Checkout Session paid for (`session_id` in the success address).
|
|
65
|
+
* `confirming: true` while Stripe's webhook is still on its way: show "confirming your payment…" and
|
|
66
|
+
* read again in a moment.
|
|
67
|
+
* GET /bookings/by-session/:sessionId
|
|
68
|
+
*/
|
|
69
|
+
function bySession(collectionId: string, appId: string, sessionId: string): Promise<Booking & {
|
|
70
|
+
confirming: boolean;
|
|
71
|
+
}>;
|
|
72
|
+
/**
|
|
73
|
+
* An approved request's pay link, for an app with its own pay page (the link in the email goes straight
|
|
74
|
+
* to Stripe). `token` is the `t` of `payment.link`. → `{ checkoutUrl }`, or `{ done: 'paid' | 'closed', url }`.
|
|
75
|
+
* POST /bookings/:bookingId/pay
|
|
76
|
+
*/
|
|
77
|
+
function pay(collectionId: string, appId: string, bookingId: string, token: string): Promise<BookingPayLinkResult>;
|
|
78
|
+
/**
|
|
79
|
+
* Refund a paid booking without cancelling it (admin): all that's left, or `amount` (minor units). A
|
|
80
|
+
* refund Stripe can't take now is retried by the platform (`refundPending: true`).
|
|
81
|
+
* POST /bookings/:bookingId/refund
|
|
82
|
+
*/
|
|
83
|
+
function refund(collectionId: string, appId: string, bookingId: string, opts?: {
|
|
84
|
+
amount?: number;
|
|
85
|
+
reason?: string;
|
|
86
|
+
}): Promise<BookingRefundResult>;
|
|
40
87
|
/**
|
|
41
88
|
* Move to a new slot / time, all-or-nothing (a failed move leaves the booking as it was).
|
|
42
89
|
* Public: per `ownerActions.bookings.move`; the create rules are re-checked for the new time.
|
package/dist/api/bookings.js
CHANGED
|
@@ -73,21 +73,78 @@ export var bookings;
|
|
|
73
73
|
/**
|
|
74
74
|
* held / pending / waitlisted → confirmed (idempotent). A held booking whose hold has run out fails
|
|
75
75
|
* with HOLD_EXPIRED. Public: only the booker's own hold, when `ownerActions.bookings.confirm` allows.
|
|
76
|
+
*
|
|
77
|
+
* Paid bookings: a booking waiting for its payment is confirmed by the payment (PAYMENT_REQUIRED
|
|
78
|
+
* otherwise). Admin confirming a REQUEST that has a price turns it into a hold with a pay link for the
|
|
79
|
+
* booker (`payment.link`, emailed through `booking.payment_requested`); `{ payment: 'waive' }` confirms
|
|
80
|
+
* without payment (paid in cash, a free place).
|
|
76
81
|
* POST /bookings/:bookingId/confirm
|
|
77
82
|
*/
|
|
78
83
|
async function confirm(collectionId, appId, bookingId, admin = false, opts) {
|
|
79
|
-
return post(`${basePath(collectionId, appId, admin)}/${encodeURIComponent(bookingId)}/confirm`, {}, tokenHeaders(opts));
|
|
84
|
+
return post(`${basePath(collectionId, appId, admin)}/${encodeURIComponent(bookingId)}/confirm`, (opts === null || opts === void 0 ? void 0 : opts.payment) ? { payment: opts.payment } : {}, tokenHeaders(opts));
|
|
80
85
|
}
|
|
81
86
|
bookings.confirm = confirm;
|
|
82
87
|
/**
|
|
83
88
|
* Cancel and give the places back (idempotent). Public: per `ownerActions.bookings.cancel` and its
|
|
84
89
|
* cutoff. `reason` is admin-only (public cancels record 'owner').
|
|
90
|
+
*
|
|
91
|
+
* Paid bookings are refunded: the booker's cancel follows the app's `bookingPayments.ownerCancelRefund`
|
|
92
|
+
* (full by default); staff choose with `refund`: 'full' (default) | 'none' | an amount in minor units.
|
|
85
93
|
* POST /bookings/:bookingId/cancel
|
|
86
94
|
*/
|
|
87
95
|
async function cancel(collectionId, appId, bookingId, admin = false, opts) {
|
|
88
|
-
|
|
96
|
+
const body = {};
|
|
97
|
+
if (opts === null || opts === void 0 ? void 0 : opts.reason)
|
|
98
|
+
body.reason = opts.reason;
|
|
99
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.refund) !== undefined)
|
|
100
|
+
body.refund = opts.refund;
|
|
101
|
+
return post(`${basePath(collectionId, appId, admin)}/${encodeURIComponent(bookingId)}/cancel`, body, tokenHeaders(opts));
|
|
89
102
|
}
|
|
90
103
|
bookings.cancel = cancel;
|
|
104
|
+
// ==================== PAID BOOKINGS (docs/bookings.md, "Paid bookings") ====================
|
|
105
|
+
/**
|
|
106
|
+
* Book and pay. The same rules as `create` (public), then the app's `bookingPayments` decide:
|
|
107
|
+
* - pay now (the rules book as held / confirmed): the booking is held while the person pays on
|
|
108
|
+
* Stripe's page → go to `checkoutUrl`; Stripe's webhook confirms it.
|
|
109
|
+
* - a request (the rules book as pending): priced, nothing paid, `checkoutUrl: null`; staff approving it
|
|
110
|
+
* sends the booker a pay link.
|
|
111
|
+
* - free (no prices): booked the normal way, `checkoutUrl: null`.
|
|
112
|
+
* Name prices by id (`lines` for ticket types on a slot, `priceId` for an appointment's service); the
|
|
113
|
+
* server sets every amount.
|
|
114
|
+
* POST /bookings/checkout
|
|
115
|
+
*/
|
|
116
|
+
async function checkout(collectionId, appId, input) {
|
|
117
|
+
return post(`${basePath(collectionId, appId, false)}/checkout`, input);
|
|
118
|
+
}
|
|
119
|
+
bookings.checkout = checkout;
|
|
120
|
+
/**
|
|
121
|
+
* The thank-you page: the booking a Checkout Session paid for (`session_id` in the success address).
|
|
122
|
+
* `confirming: true` while Stripe's webhook is still on its way: show "confirming your payment…" and
|
|
123
|
+
* read again in a moment.
|
|
124
|
+
* GET /bookings/by-session/:sessionId
|
|
125
|
+
*/
|
|
126
|
+
async function bySession(collectionId, appId, sessionId) {
|
|
127
|
+
return request(`${basePath(collectionId, appId, false)}/by-session/${encodeURIComponent(sessionId)}`);
|
|
128
|
+
}
|
|
129
|
+
bookings.bySession = bySession;
|
|
130
|
+
/**
|
|
131
|
+
* An approved request's pay link, for an app with its own pay page (the link in the email goes straight
|
|
132
|
+
* to Stripe). `token` is the `t` of `payment.link`. → `{ checkoutUrl }`, or `{ done: 'paid' | 'closed', url }`.
|
|
133
|
+
* POST /bookings/:bookingId/pay
|
|
134
|
+
*/
|
|
135
|
+
async function pay(collectionId, appId, bookingId, token) {
|
|
136
|
+
return post(`${basePath(collectionId, appId, false)}/${encodeURIComponent(bookingId)}/pay`, { token });
|
|
137
|
+
}
|
|
138
|
+
bookings.pay = pay;
|
|
139
|
+
/**
|
|
140
|
+
* Refund a paid booking without cancelling it (admin): all that's left, or `amount` (minor units). A
|
|
141
|
+
* refund Stripe can't take now is retried by the platform (`refundPending: true`).
|
|
142
|
+
* POST /bookings/:bookingId/refund
|
|
143
|
+
*/
|
|
144
|
+
async function refund(collectionId, appId, bookingId, opts) {
|
|
145
|
+
return post(`${basePath(collectionId, appId, true)}/${encodeURIComponent(bookingId)}/refund`, opts || {});
|
|
146
|
+
}
|
|
147
|
+
bookings.refund = refund;
|
|
91
148
|
/**
|
|
92
149
|
* Move to a new slot / time, all-or-nothing (a failed move leaves the booking as it was).
|
|
93
150
|
* Public: per `ownerActions.bookings.move`; the create rules are re-checked for the new time.
|
package/dist/docs/API_SUMMARY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Smartlinks API Summary
|
|
2
2
|
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.10 | Generated: 2026-12-04T20:36:14.716Z
|
|
4
4
|
|
|
5
5
|
This is a concise summary of all available API functions and types.
|
|
6
6
|
|
|
@@ -2797,8 +2797,10 @@ interface ServerFunctionBookings {
|
|
|
2797
2797
|
query(params?: BookingListQueryParams): Promise<PaginatedResponse<Booking>>;
|
|
2798
2798
|
mine(params?: BookingListQueryParams): Promise<PaginatedResponse<Booking>>;
|
|
2799
2799
|
update(bookingId: string, fields: UpdateBookingInput): Promise<Booking>;
|
|
2800
|
-
confirm(bookingId: string): Promise<Booking>;
|
|
2801
|
-
cancel(bookingId: string, opts?: { reason?: string }): Promise<Booking>;
|
|
2800
|
+
confirm(bookingId: string, opts?: { payment?: 'waive' }): Promise<Booking>;
|
|
2801
|
+
cancel(bookingId: string, opts?: { reason?: string; refund?: 'full' | 'none' | number }): Promise<Booking>;
|
|
2802
|
+
checkout(input: BookingCheckoutInput): Promise<Omit<BookingCheckoutResult, 'editToken'> & { replayed?: boolean }>;
|
|
2803
|
+
refund(bookingId: string, opts?: { amount?: number; reason?: string }): Promise<{ booking: Booking; refunded: number; pending: boolean }>;
|
|
2802
2804
|
move(bookingId: string, input: MoveBookingInput): Promise<Booking>;
|
|
2803
2805
|
extendHold(bookingId: string, holdMinutes: number): Promise<Booking>;
|
|
2804
2806
|
complete(bookingId: string): Promise<Booking>;
|
|
@@ -5600,6 +5602,7 @@ interface Booking {
|
|
|
5600
5602
|
admin?: Record<string, any>
|
|
5601
5603
|
allocations: BookingAllocation[]
|
|
5602
5604
|
editToken?: string
|
|
5605
|
+
payment?: BookingPayment
|
|
5603
5606
|
}
|
|
5604
5607
|
```
|
|
5605
5608
|
|
|
@@ -5874,6 +5877,87 @@ interface StandardSchedule {
|
|
|
5874
5877
|
}
|
|
5875
5878
|
```
|
|
5876
5879
|
|
|
5880
|
+
**BookingPaymentLine** (interface)
|
|
5881
|
+
```typescript
|
|
5882
|
+
interface BookingPaymentLine {
|
|
5883
|
+
priceId: string
|
|
5884
|
+
label: string
|
|
5885
|
+
unitAmount: number
|
|
5886
|
+
quantity: number
|
|
5887
|
+
}
|
|
5888
|
+
```
|
|
5889
|
+
|
|
5890
|
+
**BookingPayment** (interface)
|
|
5891
|
+
```typescript
|
|
5892
|
+
interface BookingPayment {
|
|
5893
|
+
status: 'awaiting' | 'paid' | 'partially_refunded' | 'refunded' | 'waived'
|
|
5894
|
+
total: number
|
|
5895
|
+
currency: string
|
|
5896
|
+
refunded: number
|
|
5897
|
+
lines: BookingPaymentLine[]
|
|
5898
|
+
paidAt?: string
|
|
5899
|
+
payBy?: string
|
|
5900
|
+
requested?: boolean
|
|
5901
|
+
link?: string
|
|
5902
|
+
}
|
|
5903
|
+
```
|
|
5904
|
+
|
|
5905
|
+
**BookingPrice** (interface)
|
|
5906
|
+
```typescript
|
|
5907
|
+
interface BookingPrice {
|
|
5908
|
+
id: string
|
|
5909
|
+
label: string
|
|
5910
|
+
amount: number
|
|
5911
|
+
durationMinutes?: number
|
|
5912
|
+
resourceIds?: string[]
|
|
5913
|
+
}
|
|
5914
|
+
```
|
|
5915
|
+
|
|
5916
|
+
**BookingPaymentsConfig** (interface)
|
|
5917
|
+
```typescript
|
|
5918
|
+
interface BookingPaymentsConfig {
|
|
5919
|
+
required?: boolean
|
|
5920
|
+
currency?: string
|
|
5921
|
+
prices?: BookingPrice[]
|
|
5922
|
+
sessionMinutes?: number
|
|
5923
|
+
ownerCancelRefund?: 'full' | 'none'
|
|
5924
|
+
payWithinHours?: number
|
|
5925
|
+
successUrl?: string
|
|
5926
|
+
cancelUrl?: string
|
|
5927
|
+
allowedHosts?: string[]
|
|
5928
|
+
}
|
|
5929
|
+
```
|
|
5930
|
+
|
|
5931
|
+
**BookingPriceLine** (interface)
|
|
5932
|
+
```typescript
|
|
5933
|
+
interface BookingPriceLine {
|
|
5934
|
+
priceId: string
|
|
5935
|
+
quantity?: number
|
|
5936
|
+
}
|
|
5937
|
+
```
|
|
5938
|
+
|
|
5939
|
+
**BookingCheckoutResult** (interface)
|
|
5940
|
+
```typescript
|
|
5941
|
+
interface BookingCheckoutResult {
|
|
5942
|
+
booking: Booking
|
|
5943
|
+
editToken?: string
|
|
5944
|
+
checkoutUrl: string | null
|
|
5945
|
+
expiresAt: string | null
|
|
5946
|
+
total: number
|
|
5947
|
+
currency: string | null
|
|
5948
|
+
request?: boolean
|
|
5949
|
+
}
|
|
5950
|
+
```
|
|
5951
|
+
|
|
5952
|
+
**BookingPayLinkResult** (interface)
|
|
5953
|
+
```typescript
|
|
5954
|
+
interface BookingPayLinkResult {
|
|
5955
|
+
checkoutUrl?: string
|
|
5956
|
+
done?: 'paid' | 'closed'
|
|
5957
|
+
url?: string | null
|
|
5958
|
+
}
|
|
5959
|
+
```
|
|
5960
|
+
|
|
5877
5961
|
**BookingStatus** = ``
|
|
5878
5962
|
|
|
5879
5963
|
**BookingVisibility** = `'public' | 'owner' | 'admin'`
|
|
@@ -5897,6 +5981,8 @@ type BookingResourceRef = { type: string; id: string }
|
|
|
5897
5981
|
|
|
5898
5982
|
**ScheduleDay** = `'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun'`
|
|
5899
5983
|
|
|
5984
|
+
**BookingRefundResult** = `Booking & { refunded: number`
|
|
5985
|
+
|
|
5900
5986
|
### broadcasts
|
|
5901
5987
|
|
|
5902
5988
|
**ListBroadcastsQuery** (interface)
|
|
@@ -14945,11 +15031,23 @@ Get one booking. Public: the signed-in booker, or a guest passing `{ editToken }
|
|
|
14945
15031
|
**update**(collectionId: string, appId: string, bookingId: string, input: UpdateBookingInput, admin: boolean = true) → `Promise<Booking>`
|
|
14946
15032
|
Update zones and descriptive fields (admin). PATCH /bookings/:bookingId
|
|
14947
15033
|
|
|
14948
|
-
**confirm**(collectionId: string, appId: string, bookingId: string, admin: boolean = false, opts?: BookingAccessOptions) → `Promise<Booking>`
|
|
14949
|
-
held / pending / waitlisted → confirmed (idempotent). A held booking whose hold has run out fails with HOLD_EXPIRED. Public: only the booker's own hold, when `ownerActions.bookings.confirm` allows. POST /bookings/:bookingId/confirm
|
|
15034
|
+
**confirm**(collectionId: string, appId: string, bookingId: string, admin: boolean = false, opts?: BookingAccessOptions & { payment?: 'waive' }) → `Promise<Booking>`
|
|
15035
|
+
held / pending / waitlisted → confirmed (idempotent). A held booking whose hold has run out fails with HOLD_EXPIRED. Public: only the booker's own hold, when `ownerActions.bookings.confirm` allows. Paid bookings: a booking waiting for its payment is confirmed by the payment (PAYMENT_REQUIRED otherwise). Admin confirming a REQUEST that has a price turns it into a hold with a pay link for the booker (`payment.link`, emailed through `booking.payment_requested`); `{ payment: 'waive' }` confirms without payment (paid in cash, a free place). POST /bookings/:bookingId/confirm
|
|
15036
|
+
|
|
15037
|
+
**cancel**(collectionId: string, appId: string, bookingId: string, admin: boolean = false, opts?: BookingAccessOptions & { reason?: string; refund?: 'full' | 'none' | number }) → `Promise<Booking>`
|
|
15038
|
+
Cancel and give the places back (idempotent). Public: per `ownerActions.bookings.cancel` and its cutoff. `reason` is admin-only (public cancels record 'owner'). Paid bookings are refunded: the booker's cancel follows the app's `bookingPayments.ownerCancelRefund` (full by default); staff choose with `refund`: 'full' (default) | 'none' | an amount in minor units. POST /bookings/:bookingId/cancel
|
|
15039
|
+
|
|
15040
|
+
**checkout**(collectionId: string, appId: string, input: BookingCheckoutInput) → `Promise<BookingCheckoutResult>`
|
|
15041
|
+
Book and pay. The same rules as `create` (public), then the app's `bookingPayments` decide: - pay now (the rules book as held / confirmed): the booking is held while the person pays on Stripe's page → go to `checkoutUrl`; Stripe's webhook confirms it. - a request (the rules book as pending): priced, nothing paid, `checkoutUrl: null`; staff approving it sends the booker a pay link. - free (no prices): booked the normal way, `checkoutUrl: null`. Name prices by id (`lines` for ticket types on a slot, `priceId` for an appointment's service); the server sets every amount. POST /bookings/checkout
|
|
15042
|
+
|
|
15043
|
+
**bySession**(collectionId: string, appId: string, sessionId: string) → `Promise<Booking &`
|
|
15044
|
+
The thank-you page: the booking a Checkout Session paid for (`session_id` in the success address). `confirming: true` while Stripe's webhook is still on its way: show "confirming your payment…" and read again in a moment. GET /bookings/by-session/:sessionId
|
|
15045
|
+
|
|
15046
|
+
**pay**(collectionId: string, appId: string, bookingId: string, token: string) → `Promise<BookingPayLinkResult>`
|
|
15047
|
+
An approved request's pay link, for an app with its own pay page (the link in the email goes straight to Stripe). `token` is the `t` of `payment.link`. → `{ checkoutUrl }`, or `{ done: 'paid' | 'closed', url }`. POST /bookings/:bookingId/pay
|
|
14950
15048
|
|
|
14951
|
-
**
|
|
14952
|
-
|
|
15049
|
+
**refund**(collectionId: string, appId: string, bookingId: string, opts?: { amount?: number; reason?: string }) → `Promise<BookingRefundResult>`
|
|
15050
|
+
Refund a paid booking without cancelling it (admin): all that's left, or `amount` (minor units). A refund Stripe can't take now is retried by the platform (`refundPending: true`). POST /bookings/:bookingId/refund
|
|
14953
15051
|
|
|
14954
15052
|
**move**(collectionId: string, appId: string, bookingId: string, input: MoveBookingInput, admin: boolean = false, opts?: BookingAccessOptions) → `Promise<Booking>`
|
|
14955
15053
|
Move to a new slot / time, all-or-nothing (a failed move leaves the booking as it was). Public: per `ownerActions.bookings.move`; the create rules are re-checked for the new time. POST /bookings/:bookingId/move
|