@crvouga/mockingbird-service-stripe 2.3.2 → 3.1.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/cli.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  runCli,
4
4
  serveCommand,
5
5
  serveTarget
6
- } from "./chunk-MIW47FAG.js";
7
- import "./chunk-JTG65WGU.js";
6
+ } from "./chunk-BCW637ZQ.js";
7
+ import "./chunk-RVXP4XPI.js";
8
8
 
9
9
  // src/cli.ts
10
10
  var code = await runCli(
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  operationIds,
27
27
  reshapeQaCommand,
28
28
  supportedOperationIds
29
- } from "./chunk-JTG65WGU.js";
29
+ } from "./chunk-RVXP4XPI.js";
30
30
  export {
31
31
  ACACIA_API_VERSION,
32
32
  ACME_CORPUS,
package/dist/server.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  DEFAULT_PORT,
3
3
  createServer,
4
4
  serveTarget
5
- } from "./chunk-MIW47FAG.js";
6
- import "./chunk-JTG65WGU.js";
5
+ } from "./chunk-BCW637ZQ.js";
6
+ import "./chunk-RVXP4XPI.js";
7
7
  export {
8
8
  DEFAULT_PORT,
9
9
  createServer,
package/openapi.yaml CHANGED
@@ -183,11 +183,11 @@ paths:
183
183
  type: string
184
184
  x-mockingbird:
185
185
  supported: true
186
- reason: the hosted Checkout page is HTML served by the mock in place of checkout.stripe.com
186
+ reason: the hosted Checkout page is HTML served by the emulator in place of checkout.stripe.com
187
187
  parity:
188
188
  enabled: false
189
189
  safe: true
190
- reason: the hosted Checkout page is HTML served by the mock in place of checkout.stripe.com
190
+ reason: the hosted Checkout page is HTML served by the emulator in place of checkout.stripe.com
191
191
  post:
192
192
  operationId: PostCheckoutPage
193
193
  security: []
@@ -295,11 +295,11 @@ paths:
295
295
  type: string
296
296
  x-mockingbird:
297
297
  supported: true
298
- reason: the hosted Checkout page form post is served by the mock in place of checkout.stripe.com
298
+ reason: the hosted Checkout page form post is served by the emulator in place of checkout.stripe.com
299
299
  parity:
300
300
  enabled: false
301
301
  safe: false
302
- reason: the hosted Checkout page form post is served by the mock in place of checkout.stripe.com
302
+ reason: the hosted Checkout page form post is served by the emulator in place of checkout.stripe.com
303
303
  /p/session/{session}:
304
304
  get:
305
305
  operationId: GetPortalPage
@@ -387,11 +387,11 @@ paths:
387
387
  type: string
388
388
  x-mockingbird:
389
389
  supported: true
390
- reason: the customer portal is HTML served by the mock in place of billing.stripe.com
390
+ reason: the customer portal is HTML served by the emulator in place of billing.stripe.com
391
391
  parity:
392
392
  enabled: false
393
393
  safe: true
394
- reason: the customer portal is HTML served by the mock in place of billing.stripe.com
394
+ reason: the customer portal is HTML served by the emulator in place of billing.stripe.com
395
395
  post:
396
396
  operationId: PostPortalPage
397
397
  security: []
@@ -522,11 +522,11 @@ paths:
522
522
  type: string
523
523
  x-mockingbird:
524
524
  supported: true
525
- reason: the customer portal form post is served by the mock in place of billing.stripe.com
525
+ reason: the customer portal form post is served by the emulator in place of billing.stripe.com
526
526
  parity:
527
527
  enabled: false
528
528
  safe: false
529
- reason: the customer portal form post is served by the mock in place of billing.stripe.com
529
+ reason: the customer portal form post is served by the emulator in place of billing.stripe.com
530
530
  /v1/account:
531
531
  get:
532
532
  operationId: GetAccount
@@ -541,7 +541,7 @@ paths:
541
541
  type: string
542
542
  type: array
543
543
  x-mockingbird-unsupported:
544
- reason: the mock never expands this operation's response
544
+ reason: the emulator never expands this operation's response
545
545
  style: deepObject
546
546
  requestBody:
547
547
  content:
@@ -646,7 +646,7 @@ paths:
646
646
  type: string
647
647
  type: array
648
648
  x-mockingbird-unsupported:
649
- reason: the mock never expands this operation's response
649
+ reason: the emulator never expands this operation's response
650
650
  style: deepObject
651
651
  requestBody:
652
652
  content:
@@ -1085,7 +1085,7 @@ paths:
1085
1085
  type: string
1086
1086
  type: array
1087
1087
  x-mockingbird-unsupported:
1088
- reason: the mock never expands this operation's response
1088
+ reason: the emulator never expands this operation's response
1089
1089
  style: deepObject
1090
1090
  - in: query
1091
1091
  name: is_default
@@ -1273,7 +1273,7 @@ paths:
1273
1273
  type: string
1274
1274
  type: array
1275
1275
  x-mockingbird-unsupported:
1276
- reason: the mock never expands this operation's response
1276
+ reason: the emulator never expands this operation's response
1277
1277
  features:
1278
1278
  properties:
1279
1279
  customer_update:
@@ -1591,7 +1591,7 @@ paths:
1591
1591
  type: string
1592
1592
  type: array
1593
1593
  x-mockingbird-unsupported:
1594
- reason: the mock never expands this operation's response
1594
+ reason: the emulator never expands this operation's response
1595
1595
  style: deepObject
1596
1596
  requestBody:
1597
1597
  content:
@@ -1760,7 +1760,7 @@ paths:
1760
1760
  type: string
1761
1761
  type: array
1762
1762
  x-mockingbird-unsupported:
1763
- reason: the mock never expands this operation's response
1763
+ reason: the emulator never expands this operation's response
1764
1764
  features:
1765
1765
  properties:
1766
1766
  customer_update:
@@ -2676,7 +2676,7 @@ paths:
2676
2676
  type: string
2677
2677
  type: array
2678
2678
  x-mockingbird-unsupported:
2679
- reason: the mock never expands this operation's response
2679
+ reason: the emulator never expands this operation's response
2680
2680
  metadata:
2681
2681
  anyOf:
2682
2682
  - additionalProperties:
@@ -3014,7 +3014,7 @@ paths:
3014
3014
  type: string
3015
3015
  type: array
3016
3016
  x-mockingbird-unsupported:
3017
- reason: the mock never expands this operation's response
3017
+ reason: the emulator never expands this operation's response
3018
3018
  fraud_details:
3019
3019
  properties:
3020
3020
  user_report:
@@ -6175,7 +6175,7 @@ paths:
6175
6175
  type: string
6176
6176
  type: array
6177
6177
  x-mockingbird-unsupported:
6178
- reason: the mock never expands this operation's response
6178
+ reason: the emulator never expands this operation's response
6179
6179
  line_items:
6180
6180
  items:
6181
6181
  properties:
@@ -6620,7 +6620,7 @@ paths:
6620
6620
  type: string
6621
6621
  type: array
6622
6622
  x-mockingbird-unsupported:
6623
- reason: the mock never expands this operation's response
6623
+ reason: the emulator never expands this operation's response
6624
6624
  style: deepObject
6625
6625
  - in: query
6626
6626
  name: limit
@@ -8906,7 +8906,7 @@ paths:
8906
8906
  type: string
8907
8907
  type: array
8908
8908
  x-mockingbird-unsupported:
8909
- reason: the mock never expands this operation's response
8909
+ reason: the emulator never expands this operation's response
8910
8910
  style: deepObject
8911
8911
  - in: query
8912
8912
  name: invoice
@@ -9083,7 +9083,7 @@ paths:
9083
9083
  type: string
9084
9084
  type: array
9085
9085
  x-mockingbird-unsupported:
9086
- reason: the mock never expands this operation's response
9086
+ reason: the emulator never expands this operation's response
9087
9087
  metadata:
9088
9088
  type: object
9089
9089
  additionalProperties: true
@@ -9186,7 +9186,7 @@ paths:
9186
9186
  type: string
9187
9187
  type: array
9188
9188
  x-mockingbird-unsupported:
9189
- reason: the mock never expands this operation's response
9189
+ reason: the emulator never expands this operation's response
9190
9190
  style: deepObject
9191
9191
  - in: query
9192
9192
  name: limit
@@ -9379,7 +9379,7 @@ paths:
9379
9379
  type: string
9380
9380
  type: array
9381
9381
  x-mockingbird-unsupported:
9382
- reason: the mock never expands this operation's response
9382
+ reason: the emulator never expands this operation's response
9383
9383
  style: deepObject
9384
9384
  - in: query
9385
9385
  name: limit
@@ -9541,7 +9541,7 @@ paths:
9541
9541
  type: string
9542
9542
  type: array
9543
9543
  x-mockingbird-unsupported:
9544
- reason: the mock never expands this operation's response
9544
+ reason: the emulator never expands this operation's response
9545
9545
  style: deepObject
9546
9546
  requestBody:
9547
9547
  content:
@@ -9963,7 +9963,7 @@ paths:
9963
9963
  type: string
9964
9964
  type: array
9965
9965
  x-mockingbird-unsupported:
9966
- reason: the mock never expands this operation's response
9966
+ reason: the emulator never expands this operation's response
9967
9967
  metadata:
9968
9968
  anyOf:
9969
9969
  - additionalProperties:
@@ -10055,11 +10055,11 @@ paths:
10055
10055
  summary: Update a dispute
10056
10056
  x-mockingbird:
10057
10057
  supported: false
10058
- reason: the mock never creates or mutates disputes
10058
+ reason: the emulator never creates or mutates disputes
10059
10059
  parity:
10060
10060
  enabled: false
10061
10061
  safe: false
10062
- reason: the mock never creates or mutates disputes
10062
+ reason: the emulator never creates or mutates disputes
10063
10063
  /v1/events:
10064
10064
  get:
10065
10065
  operationId: GetEvents
@@ -10111,7 +10111,7 @@ paths:
10111
10111
  type: string
10112
10112
  type: array
10113
10113
  x-mockingbird-unsupported:
10114
- reason: the mock never expands this operation's response
10114
+ reason: the emulator never expands this operation's response
10115
10115
  style: deepObject
10116
10116
  - in: query
10117
10117
  name: limit
@@ -10270,7 +10270,7 @@ paths:
10270
10270
  type: string
10271
10271
  type: array
10272
10272
  x-mockingbird-unsupported:
10273
- reason: the mock never expands this operation's response
10273
+ reason: the emulator never expands this operation's response
10274
10274
  style: deepObject
10275
10275
  - in: path
10276
10276
  name: id
@@ -13853,7 +13853,7 @@ paths:
13853
13853
  - payment_intent
13854
13854
  type: array
13855
13855
  x-mockingbird-unsupported:
13856
- reason: the mock never expands this operation's response
13856
+ reason: the emulator never expands this operation's response
13857
13857
  maxItems: 3
13858
13858
  type: object
13859
13859
  required: false
@@ -13960,7 +13960,7 @@ paths:
13960
13960
  type: string
13961
13961
  type: array
13962
13962
  x-mockingbird-unsupported:
13963
- reason: the mock never expands this operation's response
13963
+ reason: the emulator never expands this operation's response
13964
13964
  style: deepObject
13965
13965
  - in: path
13966
13966
  name: invoice
@@ -14992,7 +14992,7 @@ paths:
14992
14992
  title: automatic_payment_methods_param
14993
14993
  type: object
14994
14994
  x-mockingbird-unsupported:
14995
- reason: the payment method type list is explicit in the mock
14995
+ reason: the payment method type list is explicit in the emulator
14996
14996
  capture_method:
14997
14997
  type: string
14998
14998
  enum:
@@ -21308,7 +21308,7 @@ paths:
21308
21308
  maxLength: 5000
21309
21309
  type: string
21310
21310
  x-mockingbird-unsupported:
21311
- reason: the mock does not verify client secrets
21311
+ reason: the emulator does not verify client secrets
21312
21312
  confirmation_token:
21313
21313
  maxLength: 5000
21314
21314
  type: string
@@ -24591,7 +24591,7 @@ paths:
24591
24591
  type: string
24592
24592
  type: array
24593
24593
  x-mockingbird-unsupported:
24594
- reason: the mock never expands this operation's response
24594
+ reason: the emulator never expands this operation's response
24595
24595
  fpx:
24596
24596
  properties:
24597
24597
  bank:
@@ -25354,7 +25354,7 @@ paths:
25354
25354
  type: string
25355
25355
  type: array
25356
25356
  x-mockingbird-unsupported:
25357
- reason: the mock never expands this operation's response
25357
+ reason: the emulator never expands this operation's response
25358
25358
  type: object
25359
25359
  required: false
25360
25360
  responses:
@@ -25467,7 +25467,7 @@ paths:
25467
25467
  type: string
25468
25468
  type: array
25469
25469
  x-mockingbird-unsupported:
25470
- reason: the mock never expands this operation's response
25470
+ reason: the emulator never expands this operation's response
25471
25471
  type: object
25472
25472
  required: false
25473
25473
  responses:
@@ -26856,7 +26856,7 @@ paths:
26856
26856
  type: string
26857
26857
  type: array
26858
26858
  x-mockingbird-unsupported:
26859
- reason: the mock never expands this operation's response
26859
+ reason: the emulator never expands this operation's response
26860
26860
  id:
26861
26861
  maxLength: 5000
26862
26862
  type: string
@@ -27472,7 +27472,7 @@ paths:
27472
27472
  type: string
27473
27473
  type: array
27474
27474
  x-mockingbird-unsupported:
27475
- reason: the mock never expands this operation's response
27475
+ reason: the emulator never expands this operation's response
27476
27476
  style: deepObject
27477
27477
  - in: query
27478
27478
  name: limit
@@ -27869,7 +27869,7 @@ paths:
27869
27869
  - customer
27870
27870
  type: array
27871
27871
  x-mockingbird-unsupported:
27872
- reason: the mock never expands this operation's response
27872
+ reason: the emulator never expands this operation's response
27873
27873
  maxItems: 3
27874
27874
  expires_at:
27875
27875
  type: integer
@@ -32498,7 +32498,7 @@ paths:
32498
32498
  maxLength: 5000
32499
32499
  type: string
32500
32500
  x-mockingbird-unsupported:
32501
- reason: the mock does not verify client secrets
32501
+ reason: the emulator does not verify client secrets
32502
32502
  confirmation_token:
32503
32503
  maxLength: 5000
32504
32504
  type: string
@@ -35212,7 +35212,7 @@ paths:
35212
35212
  - customer
35213
35213
  type: array
35214
35214
  x-mockingbird-unsupported:
35215
- reason: the mock never expands this operation's response
35215
+ reason: the emulator never expands this operation's response
35216
35216
  maxItems: 2
35217
35217
  from_subscription:
35218
35218
  maxLength: 5000
@@ -35753,7 +35753,7 @@ paths:
35753
35753
  type: string
35754
35754
  type: array
35755
35755
  x-mockingbird-unsupported:
35756
- reason: the mock never expands this operation's response
35756
+ reason: the emulator never expands this operation's response
35757
35757
  invoice_now:
35758
35758
  type: boolean
35759
35759
  prorate:
@@ -35870,7 +35870,7 @@ paths:
35870
35870
  type: string
35871
35871
  type: array
35872
35872
  x-mockingbird-unsupported:
35873
- reason: the mock never expands this operation's response
35873
+ reason: the emulator never expands this operation's response
35874
35874
  preserve_cancel_date:
35875
35875
  type: boolean
35876
35876
  type: object
@@ -38622,7 +38622,7 @@ paths:
38622
38622
  type: string
38623
38623
  type: array
38624
38624
  x-mockingbird-unsupported:
38625
- reason: the mock never expands this operation's response
38625
+ reason: the emulator never expands this operation's response
38626
38626
  style: deepObject
38627
38627
  - in: query
38628
38628
  name: limit
@@ -38773,7 +38773,7 @@ paths:
38773
38773
  type: string
38774
38774
  type: array
38775
38775
  x-mockingbird-unsupported:
38776
- reason: the mock never expands this operation's response
38776
+ reason: the emulator never expands this operation's response
38777
38777
  frozen_time:
38778
38778
  type: integer
38779
38779
  x-mockingbird-scope:
@@ -38982,7 +38982,7 @@ paths:
38982
38982
  type: string
38983
38983
  type: array
38984
38984
  x-mockingbird-unsupported:
38985
- reason: the mock never expands this operation's response
38985
+ reason: the emulator never expands this operation's response
38986
38986
  style: deepObject
38987
38987
  - in: path
38988
38988
  name: test_clock
@@ -39113,7 +39113,7 @@ paths:
39113
39113
  type: string
39114
39114
  type: array
39115
39115
  x-mockingbird-unsupported:
39116
- reason: the mock never expands this operation's response
39116
+ reason: the emulator never expands this operation's response
39117
39117
  frozen_time:
39118
39118
  type: integer
39119
39119
  x-mockingbird-scope:
@@ -39226,7 +39226,7 @@ paths:
39226
39226
  type: string
39227
39227
  type: array
39228
39228
  x-mockingbird-unsupported:
39229
- reason: the mock never expands this operation's response
39229
+ reason: the emulator never expands this operation's response
39230
39230
  style: deepObject
39231
39231
  - in: query
39232
39232
  name: limit
@@ -39789,7 +39789,7 @@ paths:
39789
39789
  type: string
39790
39790
  type: array
39791
39791
  x-mockingbird-unsupported:
39792
- reason: the mock never expands this operation's response
39792
+ reason: the emulator never expands this operation's response
39793
39793
  metadata:
39794
39794
  type: object
39795
39795
  additionalProperties: true
@@ -39999,7 +39999,7 @@ paths:
39999
39999
  type: string
40000
40000
  type: array
40001
40001
  x-mockingbird-unsupported:
40002
- reason: the mock never expands this operation's response
40002
+ reason: the emulator never expands this operation's response
40003
40003
  style: deepObject
40004
40004
  - in: path
40005
40005
  name: webhook_endpoint
@@ -40411,7 +40411,7 @@ paths:
40411
40411
  type: string
40412
40412
  type: array
40413
40413
  x-mockingbird-unsupported:
40414
- reason: the mock never expands this operation's response
40414
+ reason: the emulator never expands this operation's response
40415
40415
  metadata:
40416
40416
  type: object
40417
40417
  additionalProperties: true
@@ -40569,11 +40569,11 @@ paths:
40569
40569
  type: string
40570
40570
  x-mockingbird:
40571
40571
  supported: true
40572
- reason: the Stripe.js stand-in is JavaScript served by the mock in place of js.stripe.com/v3
40572
+ reason: the Stripe.js stand-in is JavaScript served by the emulator in place of js.stripe.com/v3
40573
40573
  parity:
40574
40574
  enabled: false
40575
40575
  safe: true
40576
- reason: the Stripe.js stand-in is JavaScript served by the mock in place of js.stripe.com/v3
40576
+ reason: the Stripe.js stand-in is JavaScript served by the emulator in place of js.stripe.com/v3
40577
40577
  components:
40578
40578
  securitySchemes:
40579
40579
  bearerAuth:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-stripe",
3
- "version": "2.3.2",
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.1.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": "2.1.1",
113
+ "@crvouga/mockingbird-service-sqlite": "3.1.0",
112
114
  "hono": "4.11.9"
113
115
  },
114
116
  "devDependencies": {