@crvouga/mockingbird-service-stripe 3.0.0 → 3.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/openapi.yaml CHANGED
@@ -13,6 +13,57 @@ servers:
13
13
  security:
14
14
  - bearerAuth: []
15
15
  paths:
16
+ /v1/customer_sessions:
17
+ post:
18
+ operationId: PostCustomerSessions
19
+ summary: Create a customer session for embedded components
20
+ x-mockingbird:
21
+ supported: true
22
+ parity:
23
+ enabled: false
24
+ safe: false
25
+ reason: Covered by the pinned package oracle; no independent live evidence yet.
26
+ requestBody:
27
+ required: true
28
+ content:
29
+ application/x-www-form-urlencoded:
30
+ schema:
31
+ type: object
32
+ required: [customer]
33
+ properties:
34
+ customer:
35
+ type: string
36
+ components:
37
+ type: object
38
+ additionalProperties: true
39
+ responses:
40
+ "200":
41
+ description: Short-lived customer session
42
+ content:
43
+ application/json:
44
+ schema:
45
+ type: object
46
+ required: [object, client_secret, components, created, customer, expires_at, livemode]
47
+ properties:
48
+ object:
49
+ const: customer_session
50
+ client_secret:
51
+ type: string
52
+ x-mockingbird-volatile:
53
+ kind: token
54
+ components:
55
+ type: object
56
+ additionalProperties: true
57
+ created:
58
+ type: integer
59
+ customer:
60
+ type: string
61
+ expires_at:
62
+ type: integer
63
+ livemode:
64
+ const: false
65
+ "400":
66
+ description: Missing or invalid customer
16
67
  /c/3ds/{intent}/authenticate:
17
68
  post:
18
69
  operationId: PostThreeDSecureAuthenticate
@@ -183,11 +234,11 @@ paths:
183
234
  type: string
184
235
  x-mockingbird:
185
236
  supported: true
186
- reason: the hosted Checkout page is HTML served by the mock in place of checkout.stripe.com
237
+ reason: the hosted Checkout page is HTML served by the emulator in place of checkout.stripe.com
187
238
  parity:
188
239
  enabled: false
189
240
  safe: true
190
- reason: the hosted Checkout page is HTML served by the mock in place of checkout.stripe.com
241
+ reason: the hosted Checkout page is HTML served by the emulator in place of checkout.stripe.com
191
242
  post:
192
243
  operationId: PostCheckoutPage
193
244
  security: []
@@ -295,11 +346,11 @@ paths:
295
346
  type: string
296
347
  x-mockingbird:
297
348
  supported: true
298
- reason: the hosted Checkout page form post is served by the mock in place of checkout.stripe.com
349
+ reason: the hosted Checkout page form post is served by the emulator in place of checkout.stripe.com
299
350
  parity:
300
351
  enabled: false
301
352
  safe: false
302
- reason: the hosted Checkout page form post is served by the mock in place of checkout.stripe.com
353
+ reason: the hosted Checkout page form post is served by the emulator in place of checkout.stripe.com
303
354
  /p/session/{session}:
304
355
  get:
305
356
  operationId: GetPortalPage
@@ -387,11 +438,11 @@ paths:
387
438
  type: string
388
439
  x-mockingbird:
389
440
  supported: true
390
- reason: the customer portal is HTML served by the mock in place of billing.stripe.com
441
+ reason: the customer portal is HTML served by the emulator in place of billing.stripe.com
391
442
  parity:
392
443
  enabled: false
393
444
  safe: true
394
- reason: the customer portal is HTML served by the mock in place of billing.stripe.com
445
+ reason: the customer portal is HTML served by the emulator in place of billing.stripe.com
395
446
  post:
396
447
  operationId: PostPortalPage
397
448
  security: []
@@ -522,11 +573,11 @@ paths:
522
573
  type: string
523
574
  x-mockingbird:
524
575
  supported: true
525
- reason: the customer portal form post is served by the mock in place of billing.stripe.com
576
+ reason: the customer portal form post is served by the emulator in place of billing.stripe.com
526
577
  parity:
527
578
  enabled: false
528
579
  safe: false
529
- reason: the customer portal form post is served by the mock in place of billing.stripe.com
580
+ reason: the customer portal form post is served by the emulator in place of billing.stripe.com
530
581
  /v1/account:
531
582
  get:
532
583
  operationId: GetAccount
@@ -541,7 +592,7 @@ paths:
541
592
  type: string
542
593
  type: array
543
594
  x-mockingbird-unsupported:
544
- reason: the mock never expands this operation's response
595
+ reason: the emulator never expands this operation's response
545
596
  style: deepObject
546
597
  requestBody:
547
598
  content:
@@ -646,7 +697,7 @@ paths:
646
697
  type: string
647
698
  type: array
648
699
  x-mockingbird-unsupported:
649
- reason: the mock never expands this operation's response
700
+ reason: the emulator never expands this operation's response
650
701
  style: deepObject
651
702
  requestBody:
652
703
  content:
@@ -1085,7 +1136,7 @@ paths:
1085
1136
  type: string
1086
1137
  type: array
1087
1138
  x-mockingbird-unsupported:
1088
- reason: the mock never expands this operation's response
1139
+ reason: the emulator never expands this operation's response
1089
1140
  style: deepObject
1090
1141
  - in: query
1091
1142
  name: is_default
@@ -1273,7 +1324,7 @@ paths:
1273
1324
  type: string
1274
1325
  type: array
1275
1326
  x-mockingbird-unsupported:
1276
- reason: the mock never expands this operation's response
1327
+ reason: the emulator never expands this operation's response
1277
1328
  features:
1278
1329
  properties:
1279
1330
  customer_update:
@@ -1591,7 +1642,7 @@ paths:
1591
1642
  type: string
1592
1643
  type: array
1593
1644
  x-mockingbird-unsupported:
1594
- reason: the mock never expands this operation's response
1645
+ reason: the emulator never expands this operation's response
1595
1646
  style: deepObject
1596
1647
  requestBody:
1597
1648
  content:
@@ -1760,7 +1811,7 @@ paths:
1760
1811
  type: string
1761
1812
  type: array
1762
1813
  x-mockingbird-unsupported:
1763
- reason: the mock never expands this operation's response
1814
+ reason: the emulator never expands this operation's response
1764
1815
  features:
1765
1816
  properties:
1766
1817
  customer_update:
@@ -2676,7 +2727,7 @@ paths:
2676
2727
  type: string
2677
2728
  type: array
2678
2729
  x-mockingbird-unsupported:
2679
- reason: the mock never expands this operation's response
2730
+ reason: the emulator never expands this operation's response
2680
2731
  metadata:
2681
2732
  anyOf:
2682
2733
  - additionalProperties:
@@ -3014,7 +3065,7 @@ paths:
3014
3065
  type: string
3015
3066
  type: array
3016
3067
  x-mockingbird-unsupported:
3017
- reason: the mock never expands this operation's response
3068
+ reason: the emulator never expands this operation's response
3018
3069
  fraud_details:
3019
3070
  properties:
3020
3071
  user_report:
@@ -6175,7 +6226,7 @@ paths:
6175
6226
  type: string
6176
6227
  type: array
6177
6228
  x-mockingbird-unsupported:
6178
- reason: the mock never expands this operation's response
6229
+ reason: the emulator never expands this operation's response
6179
6230
  line_items:
6180
6231
  items:
6181
6232
  properties:
@@ -6620,7 +6671,7 @@ paths:
6620
6671
  type: string
6621
6672
  type: array
6622
6673
  x-mockingbird-unsupported:
6623
- reason: the mock never expands this operation's response
6674
+ reason: the emulator never expands this operation's response
6624
6675
  style: deepObject
6625
6676
  - in: query
6626
6677
  name: limit
@@ -8906,7 +8957,7 @@ paths:
8906
8957
  type: string
8907
8958
  type: array
8908
8959
  x-mockingbird-unsupported:
8909
- reason: the mock never expands this operation's response
8960
+ reason: the emulator never expands this operation's response
8910
8961
  style: deepObject
8911
8962
  - in: query
8912
8963
  name: invoice
@@ -9083,7 +9134,7 @@ paths:
9083
9134
  type: string
9084
9135
  type: array
9085
9136
  x-mockingbird-unsupported:
9086
- reason: the mock never expands this operation's response
9137
+ reason: the emulator never expands this operation's response
9087
9138
  metadata:
9088
9139
  type: object
9089
9140
  additionalProperties: true
@@ -9186,7 +9237,7 @@ paths:
9186
9237
  type: string
9187
9238
  type: array
9188
9239
  x-mockingbird-unsupported:
9189
- reason: the mock never expands this operation's response
9240
+ reason: the emulator never expands this operation's response
9190
9241
  style: deepObject
9191
9242
  - in: query
9192
9243
  name: limit
@@ -9379,7 +9430,7 @@ paths:
9379
9430
  type: string
9380
9431
  type: array
9381
9432
  x-mockingbird-unsupported:
9382
- reason: the mock never expands this operation's response
9433
+ reason: the emulator never expands this operation's response
9383
9434
  style: deepObject
9384
9435
  - in: query
9385
9436
  name: limit
@@ -9541,7 +9592,7 @@ paths:
9541
9592
  type: string
9542
9593
  type: array
9543
9594
  x-mockingbird-unsupported:
9544
- reason: the mock never expands this operation's response
9595
+ reason: the emulator never expands this operation's response
9545
9596
  style: deepObject
9546
9597
  requestBody:
9547
9598
  content:
@@ -9963,7 +10014,7 @@ paths:
9963
10014
  type: string
9964
10015
  type: array
9965
10016
  x-mockingbird-unsupported:
9966
- reason: the mock never expands this operation's response
10017
+ reason: the emulator never expands this operation's response
9967
10018
  metadata:
9968
10019
  anyOf:
9969
10020
  - additionalProperties:
@@ -10055,11 +10106,11 @@ paths:
10055
10106
  summary: Update a dispute
10056
10107
  x-mockingbird:
10057
10108
  supported: false
10058
- reason: the mock never creates or mutates disputes
10109
+ reason: the emulator never creates or mutates disputes
10059
10110
  parity:
10060
10111
  enabled: false
10061
10112
  safe: false
10062
- reason: the mock never creates or mutates disputes
10113
+ reason: the emulator never creates or mutates disputes
10063
10114
  /v1/events:
10064
10115
  get:
10065
10116
  operationId: GetEvents
@@ -10111,7 +10162,7 @@ paths:
10111
10162
  type: string
10112
10163
  type: array
10113
10164
  x-mockingbird-unsupported:
10114
- reason: the mock never expands this operation's response
10165
+ reason: the emulator never expands this operation's response
10115
10166
  style: deepObject
10116
10167
  - in: query
10117
10168
  name: limit
@@ -10270,7 +10321,7 @@ paths:
10270
10321
  type: string
10271
10322
  type: array
10272
10323
  x-mockingbird-unsupported:
10273
- reason: the mock never expands this operation's response
10324
+ reason: the emulator never expands this operation's response
10274
10325
  style: deepObject
10275
10326
  - in: path
10276
10327
  name: id
@@ -13853,7 +13904,7 @@ paths:
13853
13904
  - payment_intent
13854
13905
  type: array
13855
13906
  x-mockingbird-unsupported:
13856
- reason: the mock never expands this operation's response
13907
+ reason: the emulator never expands this operation's response
13857
13908
  maxItems: 3
13858
13909
  type: object
13859
13910
  required: false
@@ -13960,7 +14011,7 @@ paths:
13960
14011
  type: string
13961
14012
  type: array
13962
14013
  x-mockingbird-unsupported:
13963
- reason: the mock never expands this operation's response
14014
+ reason: the emulator never expands this operation's response
13964
14015
  style: deepObject
13965
14016
  - in: path
13966
14017
  name: invoice
@@ -14992,7 +15043,7 @@ paths:
14992
15043
  title: automatic_payment_methods_param
14993
15044
  type: object
14994
15045
  x-mockingbird-unsupported:
14995
- reason: the payment method type list is explicit in the mock
15046
+ reason: the payment method type list is explicit in the emulator
14996
15047
  capture_method:
14997
15048
  type: string
14998
15049
  enum:
@@ -21308,7 +21359,7 @@ paths:
21308
21359
  maxLength: 5000
21309
21360
  type: string
21310
21361
  x-mockingbird-unsupported:
21311
- reason: the mock does not verify client secrets
21362
+ reason: the emulator does not verify client secrets
21312
21363
  confirmation_token:
21313
21364
  maxLength: 5000
21314
21365
  type: string
@@ -24591,7 +24642,7 @@ paths:
24591
24642
  type: string
24592
24643
  type: array
24593
24644
  x-mockingbird-unsupported:
24594
- reason: the mock never expands this operation's response
24645
+ reason: the emulator never expands this operation's response
24595
24646
  fpx:
24596
24647
  properties:
24597
24648
  bank:
@@ -25354,7 +25405,7 @@ paths:
25354
25405
  type: string
25355
25406
  type: array
25356
25407
  x-mockingbird-unsupported:
25357
- reason: the mock never expands this operation's response
25408
+ reason: the emulator never expands this operation's response
25358
25409
  type: object
25359
25410
  required: false
25360
25411
  responses:
@@ -25467,7 +25518,7 @@ paths:
25467
25518
  type: string
25468
25519
  type: array
25469
25520
  x-mockingbird-unsupported:
25470
- reason: the mock never expands this operation's response
25521
+ reason: the emulator never expands this operation's response
25471
25522
  type: object
25472
25523
  required: false
25473
25524
  responses:
@@ -26856,7 +26907,7 @@ paths:
26856
26907
  type: string
26857
26908
  type: array
26858
26909
  x-mockingbird-unsupported:
26859
- reason: the mock never expands this operation's response
26910
+ reason: the emulator never expands this operation's response
26860
26911
  id:
26861
26912
  maxLength: 5000
26862
26913
  type: string
@@ -27472,7 +27523,7 @@ paths:
27472
27523
  type: string
27473
27524
  type: array
27474
27525
  x-mockingbird-unsupported:
27475
- reason: the mock never expands this operation's response
27526
+ reason: the emulator never expands this operation's response
27476
27527
  style: deepObject
27477
27528
  - in: query
27478
27529
  name: limit
@@ -27869,7 +27920,7 @@ paths:
27869
27920
  - customer
27870
27921
  type: array
27871
27922
  x-mockingbird-unsupported:
27872
- reason: the mock never expands this operation's response
27923
+ reason: the emulator never expands this operation's response
27873
27924
  maxItems: 3
27874
27925
  expires_at:
27875
27926
  type: integer
@@ -32498,7 +32549,7 @@ paths:
32498
32549
  maxLength: 5000
32499
32550
  type: string
32500
32551
  x-mockingbird-unsupported:
32501
- reason: the mock does not verify client secrets
32552
+ reason: the emulator does not verify client secrets
32502
32553
  confirmation_token:
32503
32554
  maxLength: 5000
32504
32555
  type: string
@@ -35212,7 +35263,7 @@ paths:
35212
35263
  - customer
35213
35264
  type: array
35214
35265
  x-mockingbird-unsupported:
35215
- reason: the mock never expands this operation's response
35266
+ reason: the emulator never expands this operation's response
35216
35267
  maxItems: 2
35217
35268
  from_subscription:
35218
35269
  maxLength: 5000
@@ -35753,7 +35804,7 @@ paths:
35753
35804
  type: string
35754
35805
  type: array
35755
35806
  x-mockingbird-unsupported:
35756
- reason: the mock never expands this operation's response
35807
+ reason: the emulator never expands this operation's response
35757
35808
  invoice_now:
35758
35809
  type: boolean
35759
35810
  prorate:
@@ -35870,7 +35921,7 @@ paths:
35870
35921
  type: string
35871
35922
  type: array
35872
35923
  x-mockingbird-unsupported:
35873
- reason: the mock never expands this operation's response
35924
+ reason: the emulator never expands this operation's response
35874
35925
  preserve_cancel_date:
35875
35926
  type: boolean
35876
35927
  type: object
@@ -38622,7 +38673,7 @@ paths:
38622
38673
  type: string
38623
38674
  type: array
38624
38675
  x-mockingbird-unsupported:
38625
- reason: the mock never expands this operation's response
38676
+ reason: the emulator never expands this operation's response
38626
38677
  style: deepObject
38627
38678
  - in: query
38628
38679
  name: limit
@@ -38773,7 +38824,7 @@ paths:
38773
38824
  type: string
38774
38825
  type: array
38775
38826
  x-mockingbird-unsupported:
38776
- reason: the mock never expands this operation's response
38827
+ reason: the emulator never expands this operation's response
38777
38828
  frozen_time:
38778
38829
  type: integer
38779
38830
  x-mockingbird-scope:
@@ -38982,7 +39033,7 @@ paths:
38982
39033
  type: string
38983
39034
  type: array
38984
39035
  x-mockingbird-unsupported:
38985
- reason: the mock never expands this operation's response
39036
+ reason: the emulator never expands this operation's response
38986
39037
  style: deepObject
38987
39038
  - in: path
38988
39039
  name: test_clock
@@ -39113,7 +39164,7 @@ paths:
39113
39164
  type: string
39114
39165
  type: array
39115
39166
  x-mockingbird-unsupported:
39116
- reason: the mock never expands this operation's response
39167
+ reason: the emulator never expands this operation's response
39117
39168
  frozen_time:
39118
39169
  type: integer
39119
39170
  x-mockingbird-scope:
@@ -39226,7 +39277,7 @@ paths:
39226
39277
  type: string
39227
39278
  type: array
39228
39279
  x-mockingbird-unsupported:
39229
- reason: the mock never expands this operation's response
39280
+ reason: the emulator never expands this operation's response
39230
39281
  style: deepObject
39231
39282
  - in: query
39232
39283
  name: limit
@@ -39789,7 +39840,7 @@ paths:
39789
39840
  type: string
39790
39841
  type: array
39791
39842
  x-mockingbird-unsupported:
39792
- reason: the mock never expands this operation's response
39843
+ reason: the emulator never expands this operation's response
39793
39844
  metadata:
39794
39845
  type: object
39795
39846
  additionalProperties: true
@@ -39999,7 +40050,7 @@ paths:
39999
40050
  type: string
40000
40051
  type: array
40001
40052
  x-mockingbird-unsupported:
40002
- reason: the mock never expands this operation's response
40053
+ reason: the emulator never expands this operation's response
40003
40054
  style: deepObject
40004
40055
  - in: path
40005
40056
  name: webhook_endpoint
@@ -40411,7 +40462,7 @@ paths:
40411
40462
  type: string
40412
40463
  type: array
40413
40464
  x-mockingbird-unsupported:
40414
- reason: the mock never expands this operation's response
40465
+ reason: the emulator never expands this operation's response
40415
40466
  metadata:
40416
40467
  type: object
40417
40468
  additionalProperties: true
@@ -40569,11 +40620,11 @@ paths:
40569
40620
  type: string
40570
40621
  x-mockingbird:
40571
40622
  supported: true
40572
- reason: the Stripe.js stand-in is JavaScript served by the mock in place of js.stripe.com/v3
40623
+ reason: the Stripe.js stand-in is JavaScript served by the emulator in place of js.stripe.com/v3
40573
40624
  parity:
40574
40625
  enabled: false
40575
40626
  safe: true
40576
- reason: the Stripe.js stand-in is JavaScript served by the mock in place of js.stripe.com/v3
40627
+ reason: the Stripe.js stand-in is JavaScript served by the emulator in place of js.stripe.com/v3
40577
40628
  components:
40578
40629
  securitySchemes:
40579
40630
  bearerAuth:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-stripe",
3
- "version": "3.0.0",
4
- "description": "Stateful mock of the Stripe API (accounts by key, customers, payments, subscriptions that renew, pause, resume and cancel, invoices, checkout with a hosted page, a hosted customer portal, a Stripe.js stand-in, signed webhooks) at API versions 2024-06-20 and 2025-02-24.acacia, verified by differential property tests against Stripe test mode.",
3
+ "version": "3.2.0",
4
+ "description": "Stateful emulator of the Stripe API (accounts by key, customers, payments, subscriptions that renew, pause, resume and cancel, invoices, checkout with a hosted page, a hosted customer portal, a Stripe.js stand-in, signed webhooks) at API versions 2024-06-20 and 2025-02-24.acacia, verified by differential property tests against Stripe test mode.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "sideEffects": false,
@@ -49,6 +49,7 @@
49
49
  "billing"
50
50
  ],
51
51
  "mockingbird": {
52
+ "featured": true,
52
53
  "runtime": "portable",
53
54
  "entries": {
54
55
  "server": "node",
@@ -101,6 +102,7 @@
101
102
  "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.scripts.json --noEmit",
102
103
  "lint": "biome check .",
103
104
  "test": "bun test",
105
+ "emulator:server": "bun scripts/server.ts",
104
106
  "mock:server": "bun scripts/server.ts",
105
107
  "client-parity": "bun scripts/client-parity.ts",
106
108
  "parity": "bun scripts/parity.ts",
@@ -108,7 +110,7 @@
108
110
  "portability": "bun ../../../scripts/portability.ts"
109
111
  },
110
112
  "dependencies": {
111
- "@crvouga/mockingbird-service-sqlite": "3.0.0",
113
+ "@crvouga/mockingbird-service-sqlite": "3.2.0",
112
114
  "hono": "4.11.9"
113
115
  },
114
116
  "devDependencies": {