@proveanything/smartlinks 2.2.9 → 2.2.11
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/api/payments.d.ts +7 -1
- package/dist/api/payments.js +9 -0
- package/dist/docs/API_SUMMARY.md +146 -7
- package/dist/docs/bookings.md +107 -8
- package/dist/docs/payments.md +33 -2
- package/dist/openapi.yaml +321 -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 +102 -1
- package/dist/types/payments.d.ts +43 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/API_SUMMARY.md +146 -7
- package/docs/bookings.md +107 -8
- package/docs/payments.md +33 -2
- package/openapi.yaml +321 -0
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -11163,6 +11163,32 @@ paths:
|
|
|
11163
11163
|
application/json:
|
|
11164
11164
|
schema:
|
|
11165
11165
|
$ref: "#/components/schemas/CreateBlockInput"
|
|
11166
|
+
/checkout:
|
|
11167
|
+
post:
|
|
11168
|
+
tags:
|
|
11169
|
+
- bookings
|
|
11170
|
+
summary: Book and pay.
|
|
11171
|
+
operationId: bookings_checkout
|
|
11172
|
+
security: []
|
|
11173
|
+
responses:
|
|
11174
|
+
200:
|
|
11175
|
+
description: Success
|
|
11176
|
+
content:
|
|
11177
|
+
application/json:
|
|
11178
|
+
schema:
|
|
11179
|
+
$ref: "#/components/schemas/BookingCheckoutResult"
|
|
11180
|
+
400:
|
|
11181
|
+
description: Bad request
|
|
11182
|
+
401:
|
|
11183
|
+
description: Unauthorized
|
|
11184
|
+
404:
|
|
11185
|
+
description: Not found
|
|
11186
|
+
requestBody:
|
|
11187
|
+
required: true
|
|
11188
|
+
content:
|
|
11189
|
+
application/json:
|
|
11190
|
+
schema:
|
|
11191
|
+
$ref: "#/components/schemas/BookingCheckoutInput"
|
|
11166
11192
|
/freebusy:
|
|
11167
11193
|
get:
|
|
11168
11194
|
tags:
|
|
@@ -15650,6 +15676,65 @@ paths:
|
|
|
15650
15676
|
description: Unauthorized
|
|
15651
15677
|
404:
|
|
15652
15678
|
description: Not found
|
|
15679
|
+
/{bookingId}/pay:
|
|
15680
|
+
post:
|
|
15681
|
+
tags:
|
|
15682
|
+
- bookings
|
|
15683
|
+
summary: "An approved request's pay link, for an app with its own pay page (the link in the email goes straight to Stripe)."
|
|
15684
|
+
operationId: bookings_pay
|
|
15685
|
+
security: []
|
|
15686
|
+
parameters:
|
|
15687
|
+
- name: bookingId
|
|
15688
|
+
in: path
|
|
15689
|
+
required: true
|
|
15690
|
+
schema:
|
|
15691
|
+
type: string
|
|
15692
|
+
responses:
|
|
15693
|
+
200:
|
|
15694
|
+
description: Success
|
|
15695
|
+
content:
|
|
15696
|
+
application/json:
|
|
15697
|
+
schema:
|
|
15698
|
+
$ref: "#/components/schemas/BookingPayLinkResult"
|
|
15699
|
+
400:
|
|
15700
|
+
description: Bad request
|
|
15701
|
+
401:
|
|
15702
|
+
description: Unauthorized
|
|
15703
|
+
404:
|
|
15704
|
+
description: Not found
|
|
15705
|
+
/{bookingId}/refund:
|
|
15706
|
+
post:
|
|
15707
|
+
tags:
|
|
15708
|
+
- bookings
|
|
15709
|
+
summary: "Refund a paid booking without cancelling it (admin): all that's left, or `amount` (minor units)."
|
|
15710
|
+
operationId: bookings_refund
|
|
15711
|
+
security: []
|
|
15712
|
+
parameters:
|
|
15713
|
+
- name: bookingId
|
|
15714
|
+
in: path
|
|
15715
|
+
required: true
|
|
15716
|
+
schema:
|
|
15717
|
+
type: string
|
|
15718
|
+
responses:
|
|
15719
|
+
200:
|
|
15720
|
+
description: Success
|
|
15721
|
+
content:
|
|
15722
|
+
application/json:
|
|
15723
|
+
schema:
|
|
15724
|
+
$ref: "#/components/schemas/BookingRefundResult"
|
|
15725
|
+
400:
|
|
15726
|
+
description: Bad request
|
|
15727
|
+
401:
|
|
15728
|
+
description: Unauthorized
|
|
15729
|
+
404:
|
|
15730
|
+
description: Not found
|
|
15731
|
+
requestBody:
|
|
15732
|
+
required: true
|
|
15733
|
+
content:
|
|
15734
|
+
application/json:
|
|
15735
|
+
schema:
|
|
15736
|
+
type: object
|
|
15737
|
+
additionalProperties: true
|
|
15653
15738
|
/{conditionId}:
|
|
15654
15739
|
get:
|
|
15655
15740
|
tags:
|
|
@@ -26533,6 +26618,8 @@ components:
|
|
|
26533
26618
|
$ref: "#/components/schemas/BookingAllocation"
|
|
26534
26619
|
editToken:
|
|
26535
26620
|
type: string
|
|
26621
|
+
payment:
|
|
26622
|
+
$ref: "#/components/schemas/BookingPayment"
|
|
26536
26623
|
required:
|
|
26537
26624
|
- id
|
|
26538
26625
|
- collectionId
|
|
@@ -27052,6 +27139,166 @@ components:
|
|
|
27052
27139
|
$ref: "#/components/schemas/ScheduleOverride"
|
|
27053
27140
|
required:
|
|
27054
27141
|
- timezone
|
|
27142
|
+
BookingPaymentLine:
|
|
27143
|
+
type: object
|
|
27144
|
+
properties:
|
|
27145
|
+
priceId:
|
|
27146
|
+
type: string
|
|
27147
|
+
label:
|
|
27148
|
+
type: string
|
|
27149
|
+
unitAmount:
|
|
27150
|
+
type: number
|
|
27151
|
+
quantity:
|
|
27152
|
+
type: number
|
|
27153
|
+
required:
|
|
27154
|
+
- priceId
|
|
27155
|
+
- label
|
|
27156
|
+
- unitAmount
|
|
27157
|
+
- quantity
|
|
27158
|
+
BookingPayment:
|
|
27159
|
+
type: object
|
|
27160
|
+
properties:
|
|
27161
|
+
status:
|
|
27162
|
+
type: string
|
|
27163
|
+
enum:
|
|
27164
|
+
- awaiting
|
|
27165
|
+
- paid
|
|
27166
|
+
- partially_refunded
|
|
27167
|
+
- refunded
|
|
27168
|
+
- waived
|
|
27169
|
+
total:
|
|
27170
|
+
type: number
|
|
27171
|
+
currency:
|
|
27172
|
+
type: string
|
|
27173
|
+
refunded:
|
|
27174
|
+
type: number
|
|
27175
|
+
lines:
|
|
27176
|
+
type: array
|
|
27177
|
+
items:
|
|
27178
|
+
$ref: "#/components/schemas/BookingPaymentLine"
|
|
27179
|
+
paidAt:
|
|
27180
|
+
type: string
|
|
27181
|
+
payBy:
|
|
27182
|
+
type: string
|
|
27183
|
+
requested:
|
|
27184
|
+
type: boolean
|
|
27185
|
+
link:
|
|
27186
|
+
type: string
|
|
27187
|
+
required:
|
|
27188
|
+
- status
|
|
27189
|
+
- total
|
|
27190
|
+
- currency
|
|
27191
|
+
- refunded
|
|
27192
|
+
- lines
|
|
27193
|
+
BookingPrice:
|
|
27194
|
+
type: object
|
|
27195
|
+
properties:
|
|
27196
|
+
id:
|
|
27197
|
+
type: string
|
|
27198
|
+
label:
|
|
27199
|
+
type: string
|
|
27200
|
+
amount:
|
|
27201
|
+
type: number
|
|
27202
|
+
durationMinutes:
|
|
27203
|
+
type: number
|
|
27204
|
+
resourceIds:
|
|
27205
|
+
type: array
|
|
27206
|
+
items:
|
|
27207
|
+
type: string
|
|
27208
|
+
required:
|
|
27209
|
+
- id
|
|
27210
|
+
- label
|
|
27211
|
+
- amount
|
|
27212
|
+
BookingPaymentsConfig:
|
|
27213
|
+
type: object
|
|
27214
|
+
properties:
|
|
27215
|
+
required:
|
|
27216
|
+
type: boolean
|
|
27217
|
+
currency:
|
|
27218
|
+
type: string
|
|
27219
|
+
prices:
|
|
27220
|
+
type: array
|
|
27221
|
+
items:
|
|
27222
|
+
$ref: "#/components/schemas/BookingPrice"
|
|
27223
|
+
sessionMinutes:
|
|
27224
|
+
type: number
|
|
27225
|
+
ownerCancelRefund:
|
|
27226
|
+
type: string
|
|
27227
|
+
enum:
|
|
27228
|
+
- full
|
|
27229
|
+
- none
|
|
27230
|
+
payWithinHours:
|
|
27231
|
+
type: number
|
|
27232
|
+
successUrl:
|
|
27233
|
+
type: string
|
|
27234
|
+
cancelUrl:
|
|
27235
|
+
type: string
|
|
27236
|
+
allowedHosts:
|
|
27237
|
+
type: array
|
|
27238
|
+
items:
|
|
27239
|
+
type: string
|
|
27240
|
+
BookingPriceLine:
|
|
27241
|
+
type: object
|
|
27242
|
+
properties:
|
|
27243
|
+
priceId:
|
|
27244
|
+
type: string
|
|
27245
|
+
quantity:
|
|
27246
|
+
type: number
|
|
27247
|
+
required:
|
|
27248
|
+
- priceId
|
|
27249
|
+
BookingCheckoutInput:
|
|
27250
|
+
type: object
|
|
27251
|
+
properties:
|
|
27252
|
+
lines:
|
|
27253
|
+
type: array
|
|
27254
|
+
items:
|
|
27255
|
+
$ref: "#/components/schemas/BookingPriceLine"
|
|
27256
|
+
priceId:
|
|
27257
|
+
type: string
|
|
27258
|
+
email:
|
|
27259
|
+
type: string
|
|
27260
|
+
successUrl:
|
|
27261
|
+
type: string
|
|
27262
|
+
cancelUrl:
|
|
27263
|
+
type: string
|
|
27264
|
+
customer:
|
|
27265
|
+
type: object
|
|
27266
|
+
additionalProperties: true
|
|
27267
|
+
BookingCheckoutResult:
|
|
27268
|
+
type: object
|
|
27269
|
+
properties:
|
|
27270
|
+
booking:
|
|
27271
|
+
$ref: "#/components/schemas/Booking"
|
|
27272
|
+
editToken:
|
|
27273
|
+
type: string
|
|
27274
|
+
checkoutUrl:
|
|
27275
|
+
type: string
|
|
27276
|
+
expiresAt:
|
|
27277
|
+
type: string
|
|
27278
|
+
total:
|
|
27279
|
+
type: number
|
|
27280
|
+
currency:
|
|
27281
|
+
type: string
|
|
27282
|
+
request:
|
|
27283
|
+
type: boolean
|
|
27284
|
+
required:
|
|
27285
|
+
- booking
|
|
27286
|
+
- checkoutUrl
|
|
27287
|
+
- expiresAt
|
|
27288
|
+
- total
|
|
27289
|
+
- currency
|
|
27290
|
+
BookingPayLinkResult:
|
|
27291
|
+
type: object
|
|
27292
|
+
properties:
|
|
27293
|
+
checkoutUrl:
|
|
27294
|
+
type: string
|
|
27295
|
+
done:
|
|
27296
|
+
type: string
|
|
27297
|
+
enum:
|
|
27298
|
+
- paid
|
|
27299
|
+
- closed
|
|
27300
|
+
url:
|
|
27301
|
+
type: string
|
|
27055
27302
|
BookingResourceRef:
|
|
27056
27303
|
type: object
|
|
27057
27304
|
properties:
|
|
@@ -27114,6 +27361,8 @@ components:
|
|
|
27114
27361
|
- fri
|
|
27115
27362
|
- sat
|
|
27116
27363
|
- sun
|
|
27364
|
+
BookingRefundResult:
|
|
27365
|
+
$ref: "#/components/schemas/Booking"
|
|
27117
27366
|
ListBroadcastsQuery:
|
|
27118
27367
|
type: object
|
|
27119
27368
|
properties:
|
|
@@ -36400,6 +36649,70 @@ components:
|
|
|
36400
36649
|
- data
|
|
36401
36650
|
- hasMore
|
|
36402
36651
|
- next
|
|
36652
|
+
PaymentSyncInput:
|
|
36653
|
+
type: object
|
|
36654
|
+
properties:
|
|
36655
|
+
appId:
|
|
36656
|
+
type: string
|
|
36657
|
+
since:
|
|
36658
|
+
type: string
|
|
36659
|
+
after:
|
|
36660
|
+
type: string
|
|
36661
|
+
PaymentSyncResult:
|
|
36662
|
+
type: object
|
|
36663
|
+
properties:
|
|
36664
|
+
checked:
|
|
36665
|
+
type: number
|
|
36666
|
+
saved:
|
|
36667
|
+
type: number
|
|
36668
|
+
hasMore:
|
|
36669
|
+
type: boolean
|
|
36670
|
+
next:
|
|
36671
|
+
type: string
|
|
36672
|
+
required:
|
|
36673
|
+
- checked
|
|
36674
|
+
- saved
|
|
36675
|
+
- hasMore
|
|
36676
|
+
- next
|
|
36677
|
+
AppPaymentRecordData:
|
|
36678
|
+
type: object
|
|
36679
|
+
properties:
|
|
36680
|
+
paymentIntentId:
|
|
36681
|
+
type: string
|
|
36682
|
+
amount:
|
|
36683
|
+
type: number
|
|
36684
|
+
currency:
|
|
36685
|
+
type: string
|
|
36686
|
+
amountRefunded:
|
|
36687
|
+
type: number
|
|
36688
|
+
fee:
|
|
36689
|
+
type: number
|
|
36690
|
+
email:
|
|
36691
|
+
type: string
|
|
36692
|
+
reference:
|
|
36693
|
+
type: string
|
|
36694
|
+
metadata:
|
|
36695
|
+
type: object
|
|
36696
|
+
additionalProperties:
|
|
36697
|
+
type: string
|
|
36698
|
+
paidAt:
|
|
36699
|
+
type: string
|
|
36700
|
+
refundedAt:
|
|
36701
|
+
type: string
|
|
36702
|
+
dispute:
|
|
36703
|
+
type: object
|
|
36704
|
+
additionalProperties: true
|
|
36705
|
+
required:
|
|
36706
|
+
- paymentIntentId
|
|
36707
|
+
- amount
|
|
36708
|
+
- currency
|
|
36709
|
+
- amountRefunded
|
|
36710
|
+
- fee
|
|
36711
|
+
- email
|
|
36712
|
+
- reference
|
|
36713
|
+
- metadata
|
|
36714
|
+
- paidAt
|
|
36715
|
+
- refundedAt
|
|
36403
36716
|
PaymentDomainResult:
|
|
36404
36717
|
type: object
|
|
36405
36718
|
properties:
|
|
@@ -36413,6 +36726,14 @@ components:
|
|
|
36413
36726
|
- domain
|
|
36414
36727
|
- applePay
|
|
36415
36728
|
- googlePay
|
|
36729
|
+
AppPaymentStatus:
|
|
36730
|
+
type: string
|
|
36731
|
+
enum:
|
|
36732
|
+
- paid
|
|
36733
|
+
- partially_refunded
|
|
36734
|
+
- refunded
|
|
36735
|
+
- disputed
|
|
36736
|
+
- dispute_lost
|
|
36416
36737
|
ProductKey:
|
|
36417
36738
|
type: object
|
|
36418
36739
|
properties:
|