@volter/twin-stripe 0.1.0 → 0.1.2
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/README.md +39 -5
- package/package.json +2 -2
- package/src/cli.ts +10 -3
- package/src/index.ts +44 -2
- package/src/stripe-budget.ts +181 -0
- package/src/stripe-capabilities.ts +338 -20
- package/src/stripe-conformance.ts +2 -0
- package/src/stripe-connector.ts +65 -4
- package/src/stripe-emit.ts +150 -0
- package/src/stripe-events.ts +176 -6
- package/src/stripe-mirror-ui.ts +25 -10
- package/src/stripe-server.ts +67 -32
- package/src/stripe-twin.ts +1046 -71
- package/test-fixtures/stripe-known-deviations.json +25 -0
- package/test-fixtures/stripe-openapi-operations.json +6384 -0
- package/test-fixtures/stripe-schemas.json +376 -0
|
@@ -3360,5 +3360,381 @@
|
|
|
3360
3360
|
"nullable": true
|
|
3361
3361
|
}
|
|
3362
3362
|
}
|
|
3363
|
+
},
|
|
3364
|
+
"issuing.authorization": {
|
|
3365
|
+
"type": "object",
|
|
3366
|
+
"required": [
|
|
3367
|
+
"amount",
|
|
3368
|
+
"approved",
|
|
3369
|
+
"authorization_method",
|
|
3370
|
+
"balance_transactions",
|
|
3371
|
+
"card",
|
|
3372
|
+
"created",
|
|
3373
|
+
"currency",
|
|
3374
|
+
"id",
|
|
3375
|
+
"livemode",
|
|
3376
|
+
"merchant_amount",
|
|
3377
|
+
"merchant_currency",
|
|
3378
|
+
"merchant_data",
|
|
3379
|
+
"metadata",
|
|
3380
|
+
"object",
|
|
3381
|
+
"request_history",
|
|
3382
|
+
"status",
|
|
3383
|
+
"transactions",
|
|
3384
|
+
"verification_data"
|
|
3385
|
+
],
|
|
3386
|
+
"properties": {
|
|
3387
|
+
"amount": {
|
|
3388
|
+
"type": "integer"
|
|
3389
|
+
},
|
|
3390
|
+
"amount_details": {},
|
|
3391
|
+
"approved": {
|
|
3392
|
+
"type": "boolean"
|
|
3393
|
+
},
|
|
3394
|
+
"authorization_method": {
|
|
3395
|
+
"enum": [
|
|
3396
|
+
"chip",
|
|
3397
|
+
"contactless",
|
|
3398
|
+
"keyed_in",
|
|
3399
|
+
"online",
|
|
3400
|
+
"swipe"
|
|
3401
|
+
],
|
|
3402
|
+
"type": "string"
|
|
3403
|
+
},
|
|
3404
|
+
"balance_transactions": {
|
|
3405
|
+
"type": "array"
|
|
3406
|
+
},
|
|
3407
|
+
"card": {},
|
|
3408
|
+
"card_presence": {
|
|
3409
|
+
"enum": [
|
|
3410
|
+
"not_present",
|
|
3411
|
+
"present"
|
|
3412
|
+
],
|
|
3413
|
+
"type": "string",
|
|
3414
|
+
"nullable": true
|
|
3415
|
+
},
|
|
3416
|
+
"cardholder": {},
|
|
3417
|
+
"created": {
|
|
3418
|
+
"type": "integer"
|
|
3419
|
+
},
|
|
3420
|
+
"currency": {
|
|
3421
|
+
"type": "string"
|
|
3422
|
+
},
|
|
3423
|
+
"fleet": {},
|
|
3424
|
+
"fraud_challenges": {
|
|
3425
|
+
"type": "array",
|
|
3426
|
+
"nullable": true
|
|
3427
|
+
},
|
|
3428
|
+
"fuel": {},
|
|
3429
|
+
"id": {
|
|
3430
|
+
"type": "string"
|
|
3431
|
+
},
|
|
3432
|
+
"livemode": {
|
|
3433
|
+
"type": "boolean"
|
|
3434
|
+
},
|
|
3435
|
+
"merchant_amount": {
|
|
3436
|
+
"type": "integer"
|
|
3437
|
+
},
|
|
3438
|
+
"merchant_currency": {
|
|
3439
|
+
"type": "string"
|
|
3440
|
+
},
|
|
3441
|
+
"merchant_data": {},
|
|
3442
|
+
"metadata": {
|
|
3443
|
+
"type": "object"
|
|
3444
|
+
},
|
|
3445
|
+
"network_data": {},
|
|
3446
|
+
"object": {
|
|
3447
|
+
"enum": [
|
|
3448
|
+
"issuing.authorization"
|
|
3449
|
+
],
|
|
3450
|
+
"type": "string"
|
|
3451
|
+
},
|
|
3452
|
+
"pending_request": {},
|
|
3453
|
+
"request_history": {
|
|
3454
|
+
"type": "array"
|
|
3455
|
+
},
|
|
3456
|
+
"status": {
|
|
3457
|
+
"enum": [
|
|
3458
|
+
"closed",
|
|
3459
|
+
"expired",
|
|
3460
|
+
"pending",
|
|
3461
|
+
"reversed"
|
|
3462
|
+
],
|
|
3463
|
+
"type": "string"
|
|
3464
|
+
},
|
|
3465
|
+
"token": {},
|
|
3466
|
+
"transactions": {
|
|
3467
|
+
"type": "array"
|
|
3468
|
+
},
|
|
3469
|
+
"treasury": {},
|
|
3470
|
+
"verification_data": {},
|
|
3471
|
+
"verified_by_fraud_challenge": {
|
|
3472
|
+
"type": "boolean",
|
|
3473
|
+
"nullable": true
|
|
3474
|
+
},
|
|
3475
|
+
"wallet": {
|
|
3476
|
+
"type": "string",
|
|
3477
|
+
"nullable": true
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
},
|
|
3481
|
+
"issuing.card": {
|
|
3482
|
+
"type": "object",
|
|
3483
|
+
"required": [
|
|
3484
|
+
"brand",
|
|
3485
|
+
"cardholder",
|
|
3486
|
+
"created",
|
|
3487
|
+
"currency",
|
|
3488
|
+
"exp_month",
|
|
3489
|
+
"exp_year",
|
|
3490
|
+
"id",
|
|
3491
|
+
"last4",
|
|
3492
|
+
"livemode",
|
|
3493
|
+
"metadata",
|
|
3494
|
+
"object",
|
|
3495
|
+
"spending_controls",
|
|
3496
|
+
"status",
|
|
3497
|
+
"type"
|
|
3498
|
+
],
|
|
3499
|
+
"properties": {
|
|
3500
|
+
"brand": {
|
|
3501
|
+
"type": "string"
|
|
3502
|
+
},
|
|
3503
|
+
"cancellation_reason": {
|
|
3504
|
+
"enum": [
|
|
3505
|
+
"design_rejected",
|
|
3506
|
+
"fulfillment_error",
|
|
3507
|
+
"lost",
|
|
3508
|
+
"stolen"
|
|
3509
|
+
],
|
|
3510
|
+
"type": "string",
|
|
3511
|
+
"nullable": true
|
|
3512
|
+
},
|
|
3513
|
+
"cardholder": {},
|
|
3514
|
+
"created": {
|
|
3515
|
+
"type": "integer"
|
|
3516
|
+
},
|
|
3517
|
+
"currency": {
|
|
3518
|
+
"type": "string"
|
|
3519
|
+
},
|
|
3520
|
+
"cvc": {
|
|
3521
|
+
"type": "string"
|
|
3522
|
+
},
|
|
3523
|
+
"exp_month": {
|
|
3524
|
+
"type": "integer"
|
|
3525
|
+
},
|
|
3526
|
+
"exp_year": {
|
|
3527
|
+
"type": "integer"
|
|
3528
|
+
},
|
|
3529
|
+
"financial_account": {
|
|
3530
|
+
"type": "string",
|
|
3531
|
+
"nullable": true
|
|
3532
|
+
},
|
|
3533
|
+
"id": {
|
|
3534
|
+
"type": "string"
|
|
3535
|
+
},
|
|
3536
|
+
"last4": {
|
|
3537
|
+
"type": "string"
|
|
3538
|
+
},
|
|
3539
|
+
"latest_fraud_warning": {},
|
|
3540
|
+
"lifecycle_controls": {},
|
|
3541
|
+
"livemode": {
|
|
3542
|
+
"type": "boolean"
|
|
3543
|
+
},
|
|
3544
|
+
"metadata": {
|
|
3545
|
+
"type": "object"
|
|
3546
|
+
},
|
|
3547
|
+
"number": {
|
|
3548
|
+
"type": "string"
|
|
3549
|
+
},
|
|
3550
|
+
"object": {
|
|
3551
|
+
"enum": [
|
|
3552
|
+
"issuing.card"
|
|
3553
|
+
],
|
|
3554
|
+
"type": "string"
|
|
3555
|
+
},
|
|
3556
|
+
"personalization_design": {},
|
|
3557
|
+
"replaced_by": {},
|
|
3558
|
+
"replacement_for": {},
|
|
3559
|
+
"replacement_reason": {
|
|
3560
|
+
"enum": [
|
|
3561
|
+
"damaged",
|
|
3562
|
+
"expired",
|
|
3563
|
+
"fulfillment_error",
|
|
3564
|
+
"lost",
|
|
3565
|
+
"stolen"
|
|
3566
|
+
],
|
|
3567
|
+
"type": "string",
|
|
3568
|
+
"nullable": true
|
|
3569
|
+
},
|
|
3570
|
+
"second_line": {
|
|
3571
|
+
"type": "string",
|
|
3572
|
+
"nullable": true
|
|
3573
|
+
},
|
|
3574
|
+
"shipping": {},
|
|
3575
|
+
"spending_controls": {},
|
|
3576
|
+
"status": {
|
|
3577
|
+
"enum": [
|
|
3578
|
+
"active",
|
|
3579
|
+
"canceled",
|
|
3580
|
+
"inactive"
|
|
3581
|
+
],
|
|
3582
|
+
"type": "string"
|
|
3583
|
+
},
|
|
3584
|
+
"type": {
|
|
3585
|
+
"enum": [
|
|
3586
|
+
"physical",
|
|
3587
|
+
"virtual"
|
|
3588
|
+
],
|
|
3589
|
+
"type": "string"
|
|
3590
|
+
},
|
|
3591
|
+
"wallets": {}
|
|
3592
|
+
}
|
|
3593
|
+
},
|
|
3594
|
+
"issuing.cardholder": {
|
|
3595
|
+
"type": "object",
|
|
3596
|
+
"required": [
|
|
3597
|
+
"billing",
|
|
3598
|
+
"created",
|
|
3599
|
+
"id",
|
|
3600
|
+
"livemode",
|
|
3601
|
+
"metadata",
|
|
3602
|
+
"name",
|
|
3603
|
+
"object",
|
|
3604
|
+
"requirements",
|
|
3605
|
+
"status",
|
|
3606
|
+
"type"
|
|
3607
|
+
],
|
|
3608
|
+
"properties": {
|
|
3609
|
+
"billing": {},
|
|
3610
|
+
"company": {},
|
|
3611
|
+
"created": {
|
|
3612
|
+
"type": "integer"
|
|
3613
|
+
},
|
|
3614
|
+
"email": {
|
|
3615
|
+
"type": "string",
|
|
3616
|
+
"nullable": true
|
|
3617
|
+
},
|
|
3618
|
+
"id": {
|
|
3619
|
+
"type": "string"
|
|
3620
|
+
},
|
|
3621
|
+
"individual": {},
|
|
3622
|
+
"livemode": {
|
|
3623
|
+
"type": "boolean"
|
|
3624
|
+
},
|
|
3625
|
+
"metadata": {
|
|
3626
|
+
"type": "object"
|
|
3627
|
+
},
|
|
3628
|
+
"name": {
|
|
3629
|
+
"type": "string"
|
|
3630
|
+
},
|
|
3631
|
+
"object": {
|
|
3632
|
+
"enum": [
|
|
3633
|
+
"issuing.cardholder"
|
|
3634
|
+
],
|
|
3635
|
+
"type": "string"
|
|
3636
|
+
},
|
|
3637
|
+
"phone_number": {
|
|
3638
|
+
"type": "string",
|
|
3639
|
+
"nullable": true
|
|
3640
|
+
},
|
|
3641
|
+
"preferred_locales": {
|
|
3642
|
+
"type": "array",
|
|
3643
|
+
"nullable": true
|
|
3644
|
+
},
|
|
3645
|
+
"requirements": {},
|
|
3646
|
+
"spending_controls": {},
|
|
3647
|
+
"status": {
|
|
3648
|
+
"enum": [
|
|
3649
|
+
"active",
|
|
3650
|
+
"blocked",
|
|
3651
|
+
"inactive"
|
|
3652
|
+
],
|
|
3653
|
+
"type": "string"
|
|
3654
|
+
},
|
|
3655
|
+
"type": {
|
|
3656
|
+
"enum": [
|
|
3657
|
+
"company",
|
|
3658
|
+
"individual"
|
|
3659
|
+
],
|
|
3660
|
+
"type": "string"
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3663
|
+
},
|
|
3664
|
+
"issuing.transaction": {
|
|
3665
|
+
"type": "object",
|
|
3666
|
+
"required": [
|
|
3667
|
+
"amount",
|
|
3668
|
+
"card",
|
|
3669
|
+
"created",
|
|
3670
|
+
"currency",
|
|
3671
|
+
"id",
|
|
3672
|
+
"livemode",
|
|
3673
|
+
"merchant_amount",
|
|
3674
|
+
"merchant_currency",
|
|
3675
|
+
"merchant_data",
|
|
3676
|
+
"metadata",
|
|
3677
|
+
"object",
|
|
3678
|
+
"type"
|
|
3679
|
+
],
|
|
3680
|
+
"properties": {
|
|
3681
|
+
"amount": {
|
|
3682
|
+
"type": "integer"
|
|
3683
|
+
},
|
|
3684
|
+
"amount_details": {},
|
|
3685
|
+
"authorization": {},
|
|
3686
|
+
"balance_transaction": {},
|
|
3687
|
+
"card": {},
|
|
3688
|
+
"cardholder": {},
|
|
3689
|
+
"created": {
|
|
3690
|
+
"type": "integer"
|
|
3691
|
+
},
|
|
3692
|
+
"currency": {
|
|
3693
|
+
"type": "string"
|
|
3694
|
+
},
|
|
3695
|
+
"dispute": {},
|
|
3696
|
+
"id": {
|
|
3697
|
+
"type": "string"
|
|
3698
|
+
},
|
|
3699
|
+
"livemode": {
|
|
3700
|
+
"type": "boolean"
|
|
3701
|
+
},
|
|
3702
|
+
"merchant_amount": {
|
|
3703
|
+
"type": "integer"
|
|
3704
|
+
},
|
|
3705
|
+
"merchant_currency": {
|
|
3706
|
+
"type": "string"
|
|
3707
|
+
},
|
|
3708
|
+
"merchant_data": {},
|
|
3709
|
+
"metadata": {
|
|
3710
|
+
"type": "object"
|
|
3711
|
+
},
|
|
3712
|
+
"network_data": {},
|
|
3713
|
+
"object": {
|
|
3714
|
+
"enum": [
|
|
3715
|
+
"issuing.transaction"
|
|
3716
|
+
],
|
|
3717
|
+
"type": "string"
|
|
3718
|
+
},
|
|
3719
|
+
"purchase_details": {},
|
|
3720
|
+
"token": {},
|
|
3721
|
+
"treasury": {},
|
|
3722
|
+
"type": {
|
|
3723
|
+
"enum": [
|
|
3724
|
+
"capture",
|
|
3725
|
+
"refund"
|
|
3726
|
+
],
|
|
3727
|
+
"type": "string"
|
|
3728
|
+
},
|
|
3729
|
+
"wallet": {
|
|
3730
|
+
"enum": [
|
|
3731
|
+
"apple_pay",
|
|
3732
|
+
"google_pay",
|
|
3733
|
+
"samsung_pay"
|
|
3734
|
+
],
|
|
3735
|
+
"type": "string",
|
|
3736
|
+
"nullable": true
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3363
3739
|
}
|
|
3364
3740
|
}
|