stripe-decline-codes 0.1.0 → 0.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.
@@ -0,0 +1,2081 @@
1
+ {
2
+ "id": 0,
3
+ "name": "stripe-decline-codes",
4
+ "variant": "project",
5
+ "kind": 1,
6
+ "flags": {},
7
+ "children": [
8
+ {
9
+ "id": 37,
10
+ "name": "DeclineCodeInfo",
11
+ "variant": "declaration",
12
+ "kind": 256,
13
+ "flags": {},
14
+ "comment": {
15
+ "summary": [
16
+ {
17
+ "kind": "text",
18
+ "text": "Decline code information including descriptions and recommended actions"
19
+ }
20
+ ]
21
+ },
22
+ "children": [
23
+ {
24
+ "id": 41,
25
+ "name": "category",
26
+ "variant": "declaration",
27
+ "kind": 1024,
28
+ "flags": {},
29
+ "comment": {
30
+ "summary": [
31
+ {
32
+ "kind": "text",
33
+ "text": "Category of the decline (soft or hard)"
34
+ }
35
+ ]
36
+ },
37
+ "sources": [
38
+ {
39
+ "fileName": "types.ts",
40
+ "line": 30,
41
+ "character": 2
42
+ }
43
+ ],
44
+ "type": {
45
+ "type": "reference",
46
+ "target": 35,
47
+ "name": "DeclineCategory",
48
+ "package": "stripe-decline-codes"
49
+ }
50
+ },
51
+ {
52
+ "id": 38,
53
+ "name": "description",
54
+ "variant": "declaration",
55
+ "kind": 1024,
56
+ "flags": {},
57
+ "comment": {
58
+ "summary": [
59
+ {
60
+ "kind": "text",
61
+ "text": "Technical description of why the payment was declined"
62
+ }
63
+ ]
64
+ },
65
+ "sources": [
66
+ {
67
+ "fileName": "types.ts",
68
+ "line": 24,
69
+ "character": 2
70
+ }
71
+ ],
72
+ "type": {
73
+ "type": "intrinsic",
74
+ "name": "string"
75
+ }
76
+ },
77
+ {
78
+ "id": 39,
79
+ "name": "nextSteps",
80
+ "variant": "declaration",
81
+ "kind": 1024,
82
+ "flags": {},
83
+ "comment": {
84
+ "summary": [
85
+ {
86
+ "kind": "text",
87
+ "text": "Recommended next steps for merchants"
88
+ }
89
+ ]
90
+ },
91
+ "sources": [
92
+ {
93
+ "fileName": "types.ts",
94
+ "line": 26,
95
+ "character": 2
96
+ }
97
+ ],
98
+ "type": {
99
+ "type": "intrinsic",
100
+ "name": "string"
101
+ }
102
+ },
103
+ {
104
+ "id": 40,
105
+ "name": "nextUserAction",
106
+ "variant": "declaration",
107
+ "kind": 1024,
108
+ "flags": {},
109
+ "comment": {
110
+ "summary": [
111
+ {
112
+ "kind": "text",
113
+ "text": "User-facing message that can be shown to customers"
114
+ }
115
+ ]
116
+ },
117
+ "sources": [
118
+ {
119
+ "fileName": "types.ts",
120
+ "line": 28,
121
+ "character": 2
122
+ }
123
+ ],
124
+ "type": {
125
+ "type": "intrinsic",
126
+ "name": "string"
127
+ }
128
+ },
129
+ {
130
+ "id": 42,
131
+ "name": "translations",
132
+ "variant": "declaration",
133
+ "kind": 1024,
134
+ "flags": {
135
+ "isOptional": true
136
+ },
137
+ "comment": {
138
+ "summary": [
139
+ {
140
+ "kind": "text",
141
+ "text": "Translations for different locales"
142
+ }
143
+ ]
144
+ },
145
+ "sources": [
146
+ {
147
+ "fileName": "types.ts",
148
+ "line": 32,
149
+ "character": 2
150
+ }
151
+ ],
152
+ "type": {
153
+ "type": "reference",
154
+ "target": {
155
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
156
+ "qualifiedName": "Partial"
157
+ },
158
+ "typeArguments": [
159
+ {
160
+ "type": "reference",
161
+ "target": {
162
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
163
+ "qualifiedName": "Record"
164
+ },
165
+ "typeArguments": [
166
+ {
167
+ "type": "reference",
168
+ "target": 46,
169
+ "name": "Locale",
170
+ "package": "stripe-decline-codes"
171
+ },
172
+ {
173
+ "type": "reference",
174
+ "target": 53,
175
+ "name": "Translation",
176
+ "package": "stripe-decline-codes"
177
+ }
178
+ ],
179
+ "name": "Record",
180
+ "package": "typescript"
181
+ }
182
+ ],
183
+ "name": "Partial",
184
+ "package": "typescript"
185
+ }
186
+ }
187
+ ],
188
+ "groups": [
189
+ {
190
+ "title": "Properties",
191
+ "children": [
192
+ 41,
193
+ 38,
194
+ 39,
195
+ 40,
196
+ 42
197
+ ]
198
+ }
199
+ ],
200
+ "sources": [
201
+ {
202
+ "fileName": "types.ts",
203
+ "line": 22,
204
+ "character": 17
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ "id": 43,
210
+ "name": "DeclineCodeResult",
211
+ "variant": "declaration",
212
+ "kind": 256,
213
+ "flags": {},
214
+ "comment": {
215
+ "summary": [
216
+ {
217
+ "kind": "text",
218
+ "text": "Result containing decline code information and metadata"
219
+ }
220
+ ]
221
+ },
222
+ "children": [
223
+ {
224
+ "id": 45,
225
+ "name": "code",
226
+ "variant": "declaration",
227
+ "kind": 1024,
228
+ "flags": {},
229
+ "comment": {
230
+ "summary": [
231
+ {
232
+ "kind": "text",
233
+ "text": "Decline code information, or empty object if code not found"
234
+ }
235
+ ]
236
+ },
237
+ "sources": [
238
+ {
239
+ "fileName": "types.ts",
240
+ "line": 42,
241
+ "character": 2
242
+ }
243
+ ],
244
+ "type": {
245
+ "type": "union",
246
+ "types": [
247
+ {
248
+ "type": "reference",
249
+ "target": 37,
250
+ "name": "DeclineCodeInfo",
251
+ "package": "stripe-decline-codes"
252
+ },
253
+ {
254
+ "type": "reference",
255
+ "target": {
256
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
257
+ "qualifiedName": "Record"
258
+ },
259
+ "typeArguments": [
260
+ {
261
+ "type": "intrinsic",
262
+ "name": "string"
263
+ },
264
+ {
265
+ "type": "intrinsic",
266
+ "name": "never"
267
+ }
268
+ ],
269
+ "name": "Record",
270
+ "package": "typescript"
271
+ }
272
+ ]
273
+ }
274
+ },
275
+ {
276
+ "id": 44,
277
+ "name": "docVersion",
278
+ "variant": "declaration",
279
+ "kind": 1024,
280
+ "flags": {},
281
+ "comment": {
282
+ "summary": [
283
+ {
284
+ "kind": "text",
285
+ "text": "Stripe API documentation version"
286
+ }
287
+ ]
288
+ },
289
+ "sources": [
290
+ {
291
+ "fileName": "types.ts",
292
+ "line": 40,
293
+ "character": 2
294
+ }
295
+ ],
296
+ "type": {
297
+ "type": "intrinsic",
298
+ "name": "string"
299
+ }
300
+ }
301
+ ],
302
+ "groups": [
303
+ {
304
+ "title": "Properties",
305
+ "children": [
306
+ 45,
307
+ 44
308
+ ]
309
+ }
310
+ ],
311
+ "sources": [
312
+ {
313
+ "fileName": "types.ts",
314
+ "line": 38,
315
+ "character": 17
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "id": 47,
321
+ "name": "StripeError",
322
+ "variant": "declaration",
323
+ "kind": 256,
324
+ "flags": {},
325
+ "comment": {
326
+ "summary": [
327
+ {
328
+ "kind": "text",
329
+ "text": "Stripe error object with decline code information"
330
+ }
331
+ ]
332
+ },
333
+ "children": [
334
+ {
335
+ "id": 49,
336
+ "name": "decline_code",
337
+ "variant": "declaration",
338
+ "kind": 1024,
339
+ "flags": {
340
+ "isOptional": true
341
+ },
342
+ "sources": [
343
+ {
344
+ "fileName": "types.ts",
345
+ "line": 50,
346
+ "character": 2
347
+ }
348
+ ],
349
+ "type": {
350
+ "type": "intrinsic",
351
+ "name": "string"
352
+ }
353
+ },
354
+ {
355
+ "id": 50,
356
+ "name": "message",
357
+ "variant": "declaration",
358
+ "kind": 1024,
359
+ "flags": {
360
+ "isOptional": true
361
+ },
362
+ "sources": [
363
+ {
364
+ "fileName": "types.ts",
365
+ "line": 51,
366
+ "character": 2
367
+ }
368
+ ],
369
+ "type": {
370
+ "type": "intrinsic",
371
+ "name": "string"
372
+ }
373
+ },
374
+ {
375
+ "id": 48,
376
+ "name": "type",
377
+ "variant": "declaration",
378
+ "kind": 1024,
379
+ "flags": {
380
+ "isOptional": true
381
+ },
382
+ "sources": [
383
+ {
384
+ "fileName": "types.ts",
385
+ "line": 49,
386
+ "character": 2
387
+ }
388
+ ],
389
+ "type": {
390
+ "type": "intrinsic",
391
+ "name": "string"
392
+ }
393
+ }
394
+ ],
395
+ "groups": [
396
+ {
397
+ "title": "Properties",
398
+ "children": [
399
+ 49,
400
+ 50,
401
+ 48
402
+ ]
403
+ }
404
+ ],
405
+ "sources": [
406
+ {
407
+ "fileName": "types.ts",
408
+ "line": 48,
409
+ "character": 17
410
+ }
411
+ ],
412
+ "indexSignatures": [
413
+ {
414
+ "id": 51,
415
+ "name": "__index",
416
+ "variant": "signature",
417
+ "kind": 8192,
418
+ "flags": {},
419
+ "sources": [
420
+ {
421
+ "fileName": "types.ts",
422
+ "line": 52,
423
+ "character": 2
424
+ }
425
+ ],
426
+ "parameters": [
427
+ {
428
+ "id": 52,
429
+ "name": "key",
430
+ "variant": "param",
431
+ "kind": 32768,
432
+ "flags": {},
433
+ "type": {
434
+ "type": "intrinsic",
435
+ "name": "string"
436
+ }
437
+ }
438
+ ],
439
+ "type": {
440
+ "type": "intrinsic",
441
+ "name": "unknown"
442
+ }
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "id": 53,
448
+ "name": "Translation",
449
+ "variant": "declaration",
450
+ "kind": 256,
451
+ "flags": {},
452
+ "comment": {
453
+ "summary": [
454
+ {
455
+ "kind": "text",
456
+ "text": "Translation for a specific locale"
457
+ }
458
+ ]
459
+ },
460
+ "children": [
461
+ {
462
+ "id": 54,
463
+ "name": "description",
464
+ "variant": "declaration",
465
+ "kind": 1024,
466
+ "flags": {},
467
+ "sources": [
468
+ {
469
+ "fileName": "types.ts",
470
+ "line": 15,
471
+ "character": 2
472
+ }
473
+ ],
474
+ "type": {
475
+ "type": "intrinsic",
476
+ "name": "string"
477
+ }
478
+ },
479
+ {
480
+ "id": 55,
481
+ "name": "nextUserAction",
482
+ "variant": "declaration",
483
+ "kind": 1024,
484
+ "flags": {},
485
+ "sources": [
486
+ {
487
+ "fileName": "types.ts",
488
+ "line": 16,
489
+ "character": 2
490
+ }
491
+ ],
492
+ "type": {
493
+ "type": "intrinsic",
494
+ "name": "string"
495
+ }
496
+ }
497
+ ],
498
+ "groups": [
499
+ {
500
+ "title": "Properties",
501
+ "children": [
502
+ 54,
503
+ 55
504
+ ]
505
+ }
506
+ ],
507
+ "sources": [
508
+ {
509
+ "fileName": "types.ts",
510
+ "line": 14,
511
+ "character": 17
512
+ }
513
+ ]
514
+ },
515
+ {
516
+ "id": 35,
517
+ "name": "DeclineCategory",
518
+ "variant": "declaration",
519
+ "kind": 2097152,
520
+ "flags": {},
521
+ "comment": {
522
+ "summary": [
523
+ {
524
+ "kind": "text",
525
+ "text": "Decline code categories based on Stripe's classification"
526
+ }
527
+ ]
528
+ },
529
+ "sources": [
530
+ {
531
+ "fileName": "types.ts",
532
+ "line": 9,
533
+ "character": 12
534
+ }
535
+ ],
536
+ "type": {
537
+ "type": "union",
538
+ "types": [
539
+ {
540
+ "type": "literal",
541
+ "value": "SOFT_DECLINE"
542
+ },
543
+ {
544
+ "type": "literal",
545
+ "value": "HARD_DECLINE"
546
+ }
547
+ ]
548
+ }
549
+ },
550
+ {
551
+ "id": 36,
552
+ "name": "DeclineCode",
553
+ "variant": "declaration",
554
+ "kind": 2097152,
555
+ "flags": {},
556
+ "comment": {
557
+ "summary": [
558
+ {
559
+ "kind": "text",
560
+ "text": "All supported Stripe decline codes"
561
+ }
562
+ ]
563
+ },
564
+ "sources": [
565
+ {
566
+ "fileName": "types.ts",
567
+ "line": 58,
568
+ "character": 12
569
+ }
570
+ ],
571
+ "type": {
572
+ "type": "union",
573
+ "types": [
574
+ {
575
+ "type": "literal",
576
+ "value": "approve_with_id"
577
+ },
578
+ {
579
+ "type": "literal",
580
+ "value": "call_issuer"
581
+ },
582
+ {
583
+ "type": "literal",
584
+ "value": "card_not_supported"
585
+ },
586
+ {
587
+ "type": "literal",
588
+ "value": "card_velocity_exceeded"
589
+ },
590
+ {
591
+ "type": "literal",
592
+ "value": "currency_not_supported"
593
+ },
594
+ {
595
+ "type": "literal",
596
+ "value": "do_not_honor"
597
+ },
598
+ {
599
+ "type": "literal",
600
+ "value": "do_not_try_again"
601
+ },
602
+ {
603
+ "type": "literal",
604
+ "value": "duplicate_transaction"
605
+ },
606
+ {
607
+ "type": "literal",
608
+ "value": "expired_card"
609
+ },
610
+ {
611
+ "type": "literal",
612
+ "value": "fraudulent"
613
+ },
614
+ {
615
+ "type": "literal",
616
+ "value": "generic_decline"
617
+ },
618
+ {
619
+ "type": "literal",
620
+ "value": "incorrect_number"
621
+ },
622
+ {
623
+ "type": "literal",
624
+ "value": "incorrect_cvc"
625
+ },
626
+ {
627
+ "type": "literal",
628
+ "value": "incorrect_pin"
629
+ },
630
+ {
631
+ "type": "literal",
632
+ "value": "incorrect_zip"
633
+ },
634
+ {
635
+ "type": "literal",
636
+ "value": "insufficient_funds"
637
+ },
638
+ {
639
+ "type": "literal",
640
+ "value": "invalid_account"
641
+ },
642
+ {
643
+ "type": "literal",
644
+ "value": "invalid_amount"
645
+ },
646
+ {
647
+ "type": "literal",
648
+ "value": "invalid_cvc"
649
+ },
650
+ {
651
+ "type": "literal",
652
+ "value": "invalid_expiry_year"
653
+ },
654
+ {
655
+ "type": "literal",
656
+ "value": "invalid_number"
657
+ },
658
+ {
659
+ "type": "literal",
660
+ "value": "invalid_pin"
661
+ },
662
+ {
663
+ "type": "literal",
664
+ "value": "issuer_not_available"
665
+ },
666
+ {
667
+ "type": "literal",
668
+ "value": "lost_card"
669
+ },
670
+ {
671
+ "type": "literal",
672
+ "value": "merchant_blacklist"
673
+ },
674
+ {
675
+ "type": "literal",
676
+ "value": "new_account_information_available"
677
+ },
678
+ {
679
+ "type": "literal",
680
+ "value": "no_action_taken"
681
+ },
682
+ {
683
+ "type": "literal",
684
+ "value": "not_permitted"
685
+ },
686
+ {
687
+ "type": "literal",
688
+ "value": "pickup_card"
689
+ },
690
+ {
691
+ "type": "literal",
692
+ "value": "pin_try_exceeded"
693
+ },
694
+ {
695
+ "type": "literal",
696
+ "value": "processing_error"
697
+ },
698
+ {
699
+ "type": "literal",
700
+ "value": "reenter_transaction"
701
+ },
702
+ {
703
+ "type": "literal",
704
+ "value": "restricted_card"
705
+ },
706
+ {
707
+ "type": "literal",
708
+ "value": "revocation_of_all_authorizations"
709
+ },
710
+ {
711
+ "type": "literal",
712
+ "value": "revocation_of_authorization"
713
+ },
714
+ {
715
+ "type": "literal",
716
+ "value": "security_violation"
717
+ },
718
+ {
719
+ "type": "literal",
720
+ "value": "service_not_allowed"
721
+ },
722
+ {
723
+ "type": "literal",
724
+ "value": "stolen_card"
725
+ },
726
+ {
727
+ "type": "literal",
728
+ "value": "stop_payment_order"
729
+ },
730
+ {
731
+ "type": "literal",
732
+ "value": "testmode_decline"
733
+ },
734
+ {
735
+ "type": "literal",
736
+ "value": "transaction_not_allowed"
737
+ },
738
+ {
739
+ "type": "literal",
740
+ "value": "try_again_later"
741
+ },
742
+ {
743
+ "type": "literal",
744
+ "value": "withdrawal_count_limit_exceeded"
745
+ }
746
+ ]
747
+ }
748
+ },
749
+ {
750
+ "id": 46,
751
+ "name": "Locale",
752
+ "variant": "declaration",
753
+ "kind": 2097152,
754
+ "flags": {},
755
+ "comment": {
756
+ "summary": [
757
+ {
758
+ "kind": "text",
759
+ "text": "Supported locale codes for decline code translations"
760
+ }
761
+ ]
762
+ },
763
+ "sources": [
764
+ {
765
+ "fileName": "types.ts",
766
+ "line": 4,
767
+ "character": 12
768
+ }
769
+ ],
770
+ "type": {
771
+ "type": "union",
772
+ "types": [
773
+ {
774
+ "type": "literal",
775
+ "value": "en"
776
+ },
777
+ {
778
+ "type": "literal",
779
+ "value": "ja"
780
+ }
781
+ ]
782
+ }
783
+ },
784
+ {
785
+ "id": 33,
786
+ "name": "DECLINE_CODES",
787
+ "variant": "declaration",
788
+ "kind": 32,
789
+ "flags": {
790
+ "isConst": true
791
+ },
792
+ "comment": {
793
+ "summary": [
794
+ {
795
+ "kind": "text",
796
+ "text": "Complete database of Stripe decline codes with descriptions and recommended actions\nIncludes English and Japanese translations"
797
+ }
798
+ ]
799
+ },
800
+ "sources": [
801
+ {
802
+ "fileName": "data/decline-codes.ts",
803
+ "line": 14,
804
+ "character": 13
805
+ }
806
+ ],
807
+ "type": {
808
+ "type": "reference",
809
+ "target": {
810
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
811
+ "qualifiedName": "Record"
812
+ },
813
+ "typeArguments": [
814
+ {
815
+ "type": "reference",
816
+ "target": 36,
817
+ "name": "DeclineCode",
818
+ "package": "stripe-decline-codes"
819
+ },
820
+ {
821
+ "type": "reference",
822
+ "target": 37,
823
+ "name": "DeclineCodeInfo",
824
+ "package": "stripe-decline-codes"
825
+ }
826
+ ],
827
+ "name": "Record",
828
+ "package": "typescript"
829
+ },
830
+ "defaultValue": "..."
831
+ },
832
+ {
833
+ "id": 34,
834
+ "name": "DOC_VERSION",
835
+ "variant": "declaration",
836
+ "kind": 32,
837
+ "flags": {
838
+ "isConst": true
839
+ },
840
+ "comment": {
841
+ "summary": [
842
+ {
843
+ "kind": "text",
844
+ "text": "Stripe API documentation version for decline codes\nLast updated: 2024-12\nReference: https://docs.stripe.com/declines/codes"
845
+ }
846
+ ]
847
+ },
848
+ "sources": [
849
+ {
850
+ "fileName": "data/decline-codes.ts",
851
+ "line": 8,
852
+ "character": 13
853
+ }
854
+ ],
855
+ "type": {
856
+ "type": "literal",
857
+ "value": "2024-12-18"
858
+ },
859
+ "defaultValue": "'2024-12-18'"
860
+ },
861
+ {
862
+ "id": 15,
863
+ "name": "formatDeclineMessage",
864
+ "variant": "declaration",
865
+ "kind": 64,
866
+ "flags": {},
867
+ "sources": [
868
+ {
869
+ "fileName": "index.ts",
870
+ "line": 127,
871
+ "character": 16
872
+ }
873
+ ],
874
+ "signatures": [
875
+ {
876
+ "id": 16,
877
+ "name": "formatDeclineMessage",
878
+ "variant": "signature",
879
+ "kind": 4096,
880
+ "flags": {},
881
+ "comment": {
882
+ "summary": [
883
+ {
884
+ "kind": "text",
885
+ "text": "Format a decline message with custom template variables"
886
+ }
887
+ ],
888
+ "blockTags": [
889
+ {
890
+ "tag": "@returns",
891
+ "content": [
892
+ {
893
+ "kind": "text",
894
+ "text": "Formatted user-facing message with variables replaced"
895
+ }
896
+ ]
897
+ },
898
+ {
899
+ "tag": "@example",
900
+ "content": [
901
+ {
902
+ "kind": "code",
903
+ "text": "```ts\nconst message = formatDeclineMessage('insufficient_funds', 'en', {\n merchantName: 'Acme Store',\n supportEmail: 'support@acme.com'\n});\nconsole.log(message);\n// => \"Please try again using an alternative payment method.\"\n```"
904
+ }
905
+ ]
906
+ }
907
+ ]
908
+ },
909
+ "sources": [
910
+ {
911
+ "fileName": "index.ts",
912
+ "line": 127,
913
+ "character": 16
914
+ }
915
+ ],
916
+ "parameters": [
917
+ {
918
+ "id": 17,
919
+ "name": "declineCode",
920
+ "variant": "param",
921
+ "kind": 32768,
922
+ "flags": {},
923
+ "comment": {
924
+ "summary": [
925
+ {
926
+ "kind": "text",
927
+ "text": "The Stripe decline code"
928
+ }
929
+ ]
930
+ },
931
+ "type": {
932
+ "type": "intrinsic",
933
+ "name": "string"
934
+ }
935
+ },
936
+ {
937
+ "id": 18,
938
+ "name": "locale",
939
+ "variant": "param",
940
+ "kind": 32768,
941
+ "flags": {},
942
+ "comment": {
943
+ "summary": [
944
+ {
945
+ "kind": "text",
946
+ "text": "The locale to use (default: 'en')"
947
+ }
948
+ ]
949
+ },
950
+ "type": {
951
+ "type": "reference",
952
+ "target": 46,
953
+ "name": "Locale",
954
+ "package": "stripe-decline-codes"
955
+ },
956
+ "defaultValue": "'en'"
957
+ },
958
+ {
959
+ "id": 19,
960
+ "name": "variables",
961
+ "variant": "param",
962
+ "kind": 32768,
963
+ "flags": {
964
+ "isOptional": true
965
+ },
966
+ "comment": {
967
+ "summary": [
968
+ {
969
+ "kind": "text",
970
+ "text": "Optional variables to replace in the message template"
971
+ }
972
+ ]
973
+ },
974
+ "type": {
975
+ "type": "reference",
976
+ "target": {
977
+ "sourceFileName": "node_modules/typescript/lib/lib.es5.d.ts",
978
+ "qualifiedName": "Record"
979
+ },
980
+ "typeArguments": [
981
+ {
982
+ "type": "intrinsic",
983
+ "name": "string"
984
+ },
985
+ {
986
+ "type": "intrinsic",
987
+ "name": "string"
988
+ }
989
+ ],
990
+ "name": "Record",
991
+ "package": "typescript"
992
+ }
993
+ }
994
+ ],
995
+ "type": {
996
+ "type": "union",
997
+ "types": [
998
+ {
999
+ "type": "intrinsic",
1000
+ "name": "undefined"
1001
+ },
1002
+ {
1003
+ "type": "intrinsic",
1004
+ "name": "string"
1005
+ }
1006
+ ]
1007
+ }
1008
+ }
1009
+ ]
1010
+ },
1011
+ {
1012
+ "id": 8,
1013
+ "name": "getAllDeclineCodes",
1014
+ "variant": "declaration",
1015
+ "kind": 64,
1016
+ "flags": {},
1017
+ "sources": [
1018
+ {
1019
+ "fileName": "index.ts",
1020
+ "line": 74,
1021
+ "character": 16
1022
+ }
1023
+ ],
1024
+ "signatures": [
1025
+ {
1026
+ "id": 9,
1027
+ "name": "getAllDeclineCodes",
1028
+ "variant": "signature",
1029
+ "kind": 4096,
1030
+ "flags": {},
1031
+ "comment": {
1032
+ "summary": [
1033
+ {
1034
+ "kind": "text",
1035
+ "text": "Get all available decline codes"
1036
+ }
1037
+ ],
1038
+ "blockTags": [
1039
+ {
1040
+ "tag": "@returns",
1041
+ "content": [
1042
+ {
1043
+ "kind": "text",
1044
+ "text": "Array of all supported decline code strings"
1045
+ }
1046
+ ]
1047
+ },
1048
+ {
1049
+ "tag": "@example",
1050
+ "content": [
1051
+ {
1052
+ "kind": "code",
1053
+ "text": "```ts\nconst codes = getAllDeclineCodes();\nconsole.log(codes.length); // => 44\nconsole.log(codes.includes('insufficient_funds')); // => true\n```"
1054
+ }
1055
+ ]
1056
+ }
1057
+ ]
1058
+ },
1059
+ "sources": [
1060
+ {
1061
+ "fileName": "index.ts",
1062
+ "line": 74,
1063
+ "character": 16
1064
+ }
1065
+ ],
1066
+ "type": {
1067
+ "type": "array",
1068
+ "elementType": {
1069
+ "type": "reference",
1070
+ "target": 36,
1071
+ "name": "DeclineCode",
1072
+ "package": "stripe-decline-codes"
1073
+ }
1074
+ }
1075
+ }
1076
+ ]
1077
+ },
1078
+ {
1079
+ "id": 20,
1080
+ "name": "getDeclineCategory",
1081
+ "variant": "declaration",
1082
+ "kind": 64,
1083
+ "flags": {},
1084
+ "sources": [
1085
+ {
1086
+ "fileName": "index.ts",
1087
+ "line": 164,
1088
+ "character": 16
1089
+ }
1090
+ ],
1091
+ "signatures": [
1092
+ {
1093
+ "id": 21,
1094
+ "name": "getDeclineCategory",
1095
+ "variant": "signature",
1096
+ "kind": 4096,
1097
+ "flags": {},
1098
+ "comment": {
1099
+ "summary": [
1100
+ {
1101
+ "kind": "text",
1102
+ "text": "Get the category of a decline code (SOFT_DECLINE or HARD_DECLINE)"
1103
+ }
1104
+ ],
1105
+ "blockTags": [
1106
+ {
1107
+ "tag": "@returns",
1108
+ "content": [
1109
+ {
1110
+ "kind": "text",
1111
+ "text": "The category of the decline code, or undefined if invalid"
1112
+ }
1113
+ ]
1114
+ },
1115
+ {
1116
+ "tag": "@example",
1117
+ "content": [
1118
+ {
1119
+ "kind": "code",
1120
+ "text": "```ts\ngetDeclineCategory('insufficient_funds'); // => 'SOFT_DECLINE'\ngetDeclineCategory('fraudulent'); // => 'HARD_DECLINE'\n```"
1121
+ }
1122
+ ]
1123
+ }
1124
+ ]
1125
+ },
1126
+ "sources": [
1127
+ {
1128
+ "fileName": "index.ts",
1129
+ "line": 164,
1130
+ "character": 16
1131
+ }
1132
+ ],
1133
+ "parameters": [
1134
+ {
1135
+ "id": 22,
1136
+ "name": "code",
1137
+ "variant": "param",
1138
+ "kind": 32768,
1139
+ "flags": {},
1140
+ "comment": {
1141
+ "summary": [
1142
+ {
1143
+ "kind": "text",
1144
+ "text": "The decline code to categorize"
1145
+ }
1146
+ ]
1147
+ },
1148
+ "type": {
1149
+ "type": "intrinsic",
1150
+ "name": "string"
1151
+ }
1152
+ }
1153
+ ],
1154
+ "type": {
1155
+ "type": "union",
1156
+ "types": [
1157
+ {
1158
+ "type": "intrinsic",
1159
+ "name": "undefined"
1160
+ },
1161
+ {
1162
+ "type": "reference",
1163
+ "target": 35,
1164
+ "name": "DeclineCategory",
1165
+ "package": "stripe-decline-codes"
1166
+ }
1167
+ ]
1168
+ }
1169
+ }
1170
+ ]
1171
+ },
1172
+ {
1173
+ "id": 1,
1174
+ "name": "getDeclineDescription",
1175
+ "variant": "declaration",
1176
+ "kind": 64,
1177
+ "flags": {},
1178
+ "sources": [
1179
+ {
1180
+ "fileName": "index.ts",
1181
+ "line": 19,
1182
+ "character": 16
1183
+ }
1184
+ ],
1185
+ "signatures": [
1186
+ {
1187
+ "id": 2,
1188
+ "name": "getDeclineDescription",
1189
+ "variant": "signature",
1190
+ "kind": 4096,
1191
+ "flags": {},
1192
+ "comment": {
1193
+ "summary": [
1194
+ {
1195
+ "kind": "text",
1196
+ "text": "Get decline code information with description and recommended actions"
1197
+ }
1198
+ ],
1199
+ "blockTags": [
1200
+ {
1201
+ "tag": "@returns",
1202
+ "content": [
1203
+ {
1204
+ "kind": "text",
1205
+ "text": "Object containing the decline code information and documentation version"
1206
+ }
1207
+ ]
1208
+ },
1209
+ {
1210
+ "tag": "@example",
1211
+ "content": [
1212
+ {
1213
+ "kind": "code",
1214
+ "text": "```ts\nconst result = getDeclineDescription('insufficient_funds');\nconsole.log(result.code.description);\n// => \"The card has insufficient funds to complete the purchase.\"\nconsole.log(result.code.nextUserAction);\n// => \"Please try again using an alternative payment method.\"\n```"
1215
+ }
1216
+ ]
1217
+ }
1218
+ ]
1219
+ },
1220
+ "sources": [
1221
+ {
1222
+ "fileName": "index.ts",
1223
+ "line": 19,
1224
+ "character": 16
1225
+ }
1226
+ ],
1227
+ "parameters": [
1228
+ {
1229
+ "id": 3,
1230
+ "name": "declineCode",
1231
+ "variant": "param",
1232
+ "kind": 32768,
1233
+ "flags": {
1234
+ "isOptional": true
1235
+ },
1236
+ "comment": {
1237
+ "summary": [
1238
+ {
1239
+ "kind": "text",
1240
+ "text": "The Stripe decline code to look up"
1241
+ }
1242
+ ]
1243
+ },
1244
+ "type": {
1245
+ "type": "intrinsic",
1246
+ "name": "string"
1247
+ }
1248
+ }
1249
+ ],
1250
+ "type": {
1251
+ "type": "reference",
1252
+ "target": 43,
1253
+ "name": "DeclineCodeResult",
1254
+ "package": "stripe-decline-codes"
1255
+ }
1256
+ }
1257
+ ]
1258
+ },
1259
+ {
1260
+ "id": 4,
1261
+ "name": "getDeclineMessage",
1262
+ "variant": "declaration",
1263
+ "kind": 64,
1264
+ "flags": {},
1265
+ "sources": [
1266
+ {
1267
+ "fileName": "index.ts",
1268
+ "line": 48,
1269
+ "character": 16
1270
+ }
1271
+ ],
1272
+ "signatures": [
1273
+ {
1274
+ "id": 5,
1275
+ "name": "getDeclineMessage",
1276
+ "variant": "signature",
1277
+ "kind": 4096,
1278
+ "flags": {},
1279
+ "comment": {
1280
+ "summary": [
1281
+ {
1282
+ "kind": "text",
1283
+ "text": "Get localized decline code message for end users"
1284
+ }
1285
+ ],
1286
+ "blockTags": [
1287
+ {
1288
+ "tag": "@returns",
1289
+ "content": [
1290
+ {
1291
+ "kind": "text",
1292
+ "text": "User-facing message in the specified locale, or undefined if not found"
1293
+ }
1294
+ ]
1295
+ },
1296
+ {
1297
+ "tag": "@example",
1298
+ "content": [
1299
+ {
1300
+ "kind": "code",
1301
+ "text": "```ts\nconst message = getDeclineMessage('insufficient_funds', 'ja');\nconsole.log(message);\n// => \"別のお支払い方法を使用してもう一度お試しください。\"\n```"
1302
+ }
1303
+ ]
1304
+ }
1305
+ ]
1306
+ },
1307
+ "sources": [
1308
+ {
1309
+ "fileName": "index.ts",
1310
+ "line": 48,
1311
+ "character": 16
1312
+ }
1313
+ ],
1314
+ "parameters": [
1315
+ {
1316
+ "id": 6,
1317
+ "name": "declineCode",
1318
+ "variant": "param",
1319
+ "kind": 32768,
1320
+ "flags": {},
1321
+ "comment": {
1322
+ "summary": [
1323
+ {
1324
+ "kind": "text",
1325
+ "text": "The Stripe decline code"
1326
+ }
1327
+ ]
1328
+ },
1329
+ "type": {
1330
+ "type": "intrinsic",
1331
+ "name": "string"
1332
+ }
1333
+ },
1334
+ {
1335
+ "id": 7,
1336
+ "name": "locale",
1337
+ "variant": "param",
1338
+ "kind": 32768,
1339
+ "flags": {},
1340
+ "comment": {
1341
+ "summary": [
1342
+ {
1343
+ "kind": "text",
1344
+ "text": "The locale to use (default: 'en')"
1345
+ }
1346
+ ]
1347
+ },
1348
+ "type": {
1349
+ "type": "reference",
1350
+ "target": 46,
1351
+ "name": "Locale",
1352
+ "package": "stripe-decline-codes"
1353
+ },
1354
+ "defaultValue": "'en'"
1355
+ }
1356
+ ],
1357
+ "type": {
1358
+ "type": "union",
1359
+ "types": [
1360
+ {
1361
+ "type": "intrinsic",
1362
+ "name": "undefined"
1363
+ },
1364
+ {
1365
+ "type": "intrinsic",
1366
+ "name": "string"
1367
+ }
1368
+ ]
1369
+ }
1370
+ }
1371
+ ]
1372
+ },
1373
+ {
1374
+ "id": 13,
1375
+ "name": "getDocVersion",
1376
+ "variant": "declaration",
1377
+ "kind": 64,
1378
+ "flags": {},
1379
+ "sources": [
1380
+ {
1381
+ "fileName": "index.ts",
1382
+ "line": 105,
1383
+ "character": 16
1384
+ }
1385
+ ],
1386
+ "signatures": [
1387
+ {
1388
+ "id": 14,
1389
+ "name": "getDocVersion",
1390
+ "variant": "signature",
1391
+ "kind": 4096,
1392
+ "flags": {},
1393
+ "comment": {
1394
+ "summary": [
1395
+ {
1396
+ "kind": "text",
1397
+ "text": "Get the documentation version for the decline codes data"
1398
+ }
1399
+ ],
1400
+ "blockTags": [
1401
+ {
1402
+ "tag": "@returns",
1403
+ "content": [
1404
+ {
1405
+ "kind": "text",
1406
+ "text": "The Stripe API documentation version string"
1407
+ }
1408
+ ]
1409
+ },
1410
+ {
1411
+ "tag": "@example",
1412
+ "content": [
1413
+ {
1414
+ "kind": "code",
1415
+ "text": "```ts\nconst version = getDocVersion();\nconsole.log(version); // => \"2024-12-18\"\n```"
1416
+ }
1417
+ ]
1418
+ }
1419
+ ]
1420
+ },
1421
+ "sources": [
1422
+ {
1423
+ "fileName": "index.ts",
1424
+ "line": 105,
1425
+ "character": 16
1426
+ }
1427
+ ],
1428
+ "type": {
1429
+ "type": "intrinsic",
1430
+ "name": "string"
1431
+ }
1432
+ }
1433
+ ]
1434
+ },
1435
+ {
1436
+ "id": 29,
1437
+ "name": "getMessageFromStripeError",
1438
+ "variant": "declaration",
1439
+ "kind": 64,
1440
+ "flags": {},
1441
+ "sources": [
1442
+ {
1443
+ "fileName": "index.ts",
1444
+ "line": 223,
1445
+ "character": 16
1446
+ }
1447
+ ],
1448
+ "signatures": [
1449
+ {
1450
+ "id": 30,
1451
+ "name": "getMessageFromStripeError",
1452
+ "variant": "signature",
1453
+ "kind": 4096,
1454
+ "flags": {},
1455
+ "comment": {
1456
+ "summary": [
1457
+ {
1458
+ "kind": "text",
1459
+ "text": "Extract localized message from a Stripe error object"
1460
+ }
1461
+ ],
1462
+ "blockTags": [
1463
+ {
1464
+ "tag": "@returns",
1465
+ "content": [
1466
+ {
1467
+ "kind": "text",
1468
+ "text": "User-facing message in the specified locale, or undefined if not found"
1469
+ }
1470
+ ]
1471
+ },
1472
+ {
1473
+ "tag": "@example",
1474
+ "content": [
1475
+ {
1476
+ "kind": "code",
1477
+ "text": "```ts\nconst stripeError = {\n type: 'StripeCardError',\n decline_code: 'insufficient_funds',\n message: 'Your card has insufficient funds.'\n};\nconst message = getMessageFromStripeError(stripeError, 'ja');\nconsole.log(message);\n// => \"別のお支払い方法を使用してもう一度お試しください。\"\n```"
1478
+ }
1479
+ ]
1480
+ }
1481
+ ]
1482
+ },
1483
+ "sources": [
1484
+ {
1485
+ "fileName": "index.ts",
1486
+ "line": 223,
1487
+ "character": 16
1488
+ }
1489
+ ],
1490
+ "parameters": [
1491
+ {
1492
+ "id": 31,
1493
+ "name": "error",
1494
+ "variant": "param",
1495
+ "kind": 32768,
1496
+ "flags": {},
1497
+ "comment": {
1498
+ "summary": [
1499
+ {
1500
+ "kind": "text",
1501
+ "text": "The Stripe error object"
1502
+ }
1503
+ ]
1504
+ },
1505
+ "type": {
1506
+ "type": "reference",
1507
+ "target": 47,
1508
+ "name": "StripeError",
1509
+ "package": "stripe-decline-codes"
1510
+ }
1511
+ },
1512
+ {
1513
+ "id": 32,
1514
+ "name": "locale",
1515
+ "variant": "param",
1516
+ "kind": 32768,
1517
+ "flags": {},
1518
+ "comment": {
1519
+ "summary": [
1520
+ {
1521
+ "kind": "text",
1522
+ "text": "The locale to use (default: 'en')"
1523
+ }
1524
+ ]
1525
+ },
1526
+ "type": {
1527
+ "type": "reference",
1528
+ "target": 46,
1529
+ "name": "Locale",
1530
+ "package": "stripe-decline-codes"
1531
+ },
1532
+ "defaultValue": "'en'"
1533
+ }
1534
+ ],
1535
+ "type": {
1536
+ "type": "union",
1537
+ "types": [
1538
+ {
1539
+ "type": "intrinsic",
1540
+ "name": "undefined"
1541
+ },
1542
+ {
1543
+ "type": "intrinsic",
1544
+ "name": "string"
1545
+ }
1546
+ ]
1547
+ }
1548
+ }
1549
+ ]
1550
+ },
1551
+ {
1552
+ "id": 23,
1553
+ "name": "isHardDecline",
1554
+ "variant": "declaration",
1555
+ "kind": 64,
1556
+ "flags": {},
1557
+ "sources": [
1558
+ {
1559
+ "fileName": "index.ts",
1560
+ "line": 184,
1561
+ "character": 16
1562
+ }
1563
+ ],
1564
+ "signatures": [
1565
+ {
1566
+ "id": 24,
1567
+ "name": "isHardDecline",
1568
+ "variant": "signature",
1569
+ "kind": 4096,
1570
+ "flags": {},
1571
+ "comment": {
1572
+ "summary": [
1573
+ {
1574
+ "kind": "text",
1575
+ "text": "Check if a decline code is a hard decline (permanent, should not retry)"
1576
+ }
1577
+ ],
1578
+ "blockTags": [
1579
+ {
1580
+ "tag": "@returns",
1581
+ "content": [
1582
+ {
1583
+ "kind": "text",
1584
+ "text": "True if the code is a hard decline"
1585
+ }
1586
+ ]
1587
+ },
1588
+ {
1589
+ "tag": "@example",
1590
+ "content": [
1591
+ {
1592
+ "kind": "code",
1593
+ "text": "```ts\nisHardDecline('fraudulent'); // => true\nisHardDecline('insufficient_funds'); // => false\n```"
1594
+ }
1595
+ ]
1596
+ }
1597
+ ]
1598
+ },
1599
+ "sources": [
1600
+ {
1601
+ "fileName": "index.ts",
1602
+ "line": 184,
1603
+ "character": 16
1604
+ }
1605
+ ],
1606
+ "parameters": [
1607
+ {
1608
+ "id": 25,
1609
+ "name": "code",
1610
+ "variant": "param",
1611
+ "kind": 32768,
1612
+ "flags": {},
1613
+ "comment": {
1614
+ "summary": [
1615
+ {
1616
+ "kind": "text",
1617
+ "text": "The decline code to check"
1618
+ }
1619
+ ]
1620
+ },
1621
+ "type": {
1622
+ "type": "intrinsic",
1623
+ "name": "string"
1624
+ }
1625
+ }
1626
+ ],
1627
+ "type": {
1628
+ "type": "intrinsic",
1629
+ "name": "boolean"
1630
+ }
1631
+ }
1632
+ ]
1633
+ },
1634
+ {
1635
+ "id": 26,
1636
+ "name": "isSoftDecline",
1637
+ "variant": "declaration",
1638
+ "kind": 64,
1639
+ "flags": {},
1640
+ "sources": [
1641
+ {
1642
+ "fileName": "index.ts",
1643
+ "line": 200,
1644
+ "character": 16
1645
+ }
1646
+ ],
1647
+ "signatures": [
1648
+ {
1649
+ "id": 27,
1650
+ "name": "isSoftDecline",
1651
+ "variant": "signature",
1652
+ "kind": 4096,
1653
+ "flags": {},
1654
+ "comment": {
1655
+ "summary": [
1656
+ {
1657
+ "kind": "text",
1658
+ "text": "Check if a decline code is a soft decline (temporary, can retry)"
1659
+ }
1660
+ ],
1661
+ "blockTags": [
1662
+ {
1663
+ "tag": "@returns",
1664
+ "content": [
1665
+ {
1666
+ "kind": "text",
1667
+ "text": "True if the code is a soft decline"
1668
+ }
1669
+ ]
1670
+ },
1671
+ {
1672
+ "tag": "@example",
1673
+ "content": [
1674
+ {
1675
+ "kind": "code",
1676
+ "text": "```ts\nisSoftDecline('insufficient_funds'); // => true\nisSoftDecline('fraudulent'); // => false\n```"
1677
+ }
1678
+ ]
1679
+ }
1680
+ ]
1681
+ },
1682
+ "sources": [
1683
+ {
1684
+ "fileName": "index.ts",
1685
+ "line": 200,
1686
+ "character": 16
1687
+ }
1688
+ ],
1689
+ "parameters": [
1690
+ {
1691
+ "id": 28,
1692
+ "name": "code",
1693
+ "variant": "param",
1694
+ "kind": 32768,
1695
+ "flags": {},
1696
+ "comment": {
1697
+ "summary": [
1698
+ {
1699
+ "kind": "text",
1700
+ "text": "The decline code to check"
1701
+ }
1702
+ ]
1703
+ },
1704
+ "type": {
1705
+ "type": "intrinsic",
1706
+ "name": "string"
1707
+ }
1708
+ }
1709
+ ],
1710
+ "type": {
1711
+ "type": "intrinsic",
1712
+ "name": "boolean"
1713
+ }
1714
+ }
1715
+ ]
1716
+ },
1717
+ {
1718
+ "id": 10,
1719
+ "name": "isValidDeclineCode",
1720
+ "variant": "declaration",
1721
+ "kind": 64,
1722
+ "flags": {},
1723
+ "sources": [
1724
+ {
1725
+ "fileName": "index.ts",
1726
+ "line": 90,
1727
+ "character": 16
1728
+ }
1729
+ ],
1730
+ "signatures": [
1731
+ {
1732
+ "id": 11,
1733
+ "name": "isValidDeclineCode",
1734
+ "variant": "signature",
1735
+ "kind": 4096,
1736
+ "flags": {},
1737
+ "comment": {
1738
+ "summary": [
1739
+ {
1740
+ "kind": "text",
1741
+ "text": "Check if a decline code is valid"
1742
+ }
1743
+ ],
1744
+ "blockTags": [
1745
+ {
1746
+ "tag": "@returns",
1747
+ "content": [
1748
+ {
1749
+ "kind": "text",
1750
+ "text": "True if the code exists in the database"
1751
+ }
1752
+ ]
1753
+ },
1754
+ {
1755
+ "tag": "@example",
1756
+ "content": [
1757
+ {
1758
+ "kind": "code",
1759
+ "text": "```ts\nisValidDeclineCode('insufficient_funds'); // => true\nisValidDeclineCode('invalid_code'); // => false\n```"
1760
+ }
1761
+ ]
1762
+ }
1763
+ ]
1764
+ },
1765
+ "sources": [
1766
+ {
1767
+ "fileName": "index.ts",
1768
+ "line": 90,
1769
+ "character": 16
1770
+ }
1771
+ ],
1772
+ "parameters": [
1773
+ {
1774
+ "id": 12,
1775
+ "name": "code",
1776
+ "variant": "param",
1777
+ "kind": 32768,
1778
+ "flags": {},
1779
+ "comment": {
1780
+ "summary": [
1781
+ {
1782
+ "kind": "text",
1783
+ "text": "The code to validate"
1784
+ }
1785
+ ]
1786
+ },
1787
+ "type": {
1788
+ "type": "intrinsic",
1789
+ "name": "string"
1790
+ }
1791
+ }
1792
+ ],
1793
+ "type": {
1794
+ "type": "predicate",
1795
+ "name": "code",
1796
+ "asserts": false,
1797
+ "targetType": {
1798
+ "type": "reference",
1799
+ "target": 36,
1800
+ "name": "DeclineCode",
1801
+ "package": "stripe-decline-codes"
1802
+ }
1803
+ }
1804
+ }
1805
+ ]
1806
+ }
1807
+ ],
1808
+ "groups": [
1809
+ {
1810
+ "title": "Interfaces",
1811
+ "children": [
1812
+ 37,
1813
+ 43,
1814
+ 47,
1815
+ 53
1816
+ ]
1817
+ },
1818
+ {
1819
+ "title": "Type Aliases",
1820
+ "children": [
1821
+ 35,
1822
+ 36,
1823
+ 46
1824
+ ]
1825
+ },
1826
+ {
1827
+ "title": "Variables",
1828
+ "children": [
1829
+ 33,
1830
+ 34
1831
+ ]
1832
+ },
1833
+ {
1834
+ "title": "Functions",
1835
+ "children": [
1836
+ 15,
1837
+ 8,
1838
+ 20,
1839
+ 1,
1840
+ 4,
1841
+ 13,
1842
+ 29,
1843
+ 23,
1844
+ 26,
1845
+ 10
1846
+ ]
1847
+ }
1848
+ ],
1849
+ "packageName": "stripe-decline-codes",
1850
+ "packageVersion": "0.1.0",
1851
+ "symbolIdMap": {
1852
+ "0": {
1853
+ "sourceFileName": "src/index.ts",
1854
+ "qualifiedName": ""
1855
+ },
1856
+ "1": {
1857
+ "sourceFileName": "src/index.ts",
1858
+ "qualifiedName": "getDeclineDescription"
1859
+ },
1860
+ "2": {
1861
+ "sourceFileName": "src/index.ts",
1862
+ "qualifiedName": "getDeclineDescription"
1863
+ },
1864
+ "3": {
1865
+ "sourceFileName": "src/index.ts",
1866
+ "qualifiedName": "declineCode"
1867
+ },
1868
+ "4": {
1869
+ "sourceFileName": "src/index.ts",
1870
+ "qualifiedName": "getDeclineMessage"
1871
+ },
1872
+ "5": {
1873
+ "sourceFileName": "src/index.ts",
1874
+ "qualifiedName": "getDeclineMessage"
1875
+ },
1876
+ "6": {
1877
+ "sourceFileName": "src/index.ts",
1878
+ "qualifiedName": "declineCode"
1879
+ },
1880
+ "7": {
1881
+ "sourceFileName": "src/index.ts",
1882
+ "qualifiedName": "locale"
1883
+ },
1884
+ "8": {
1885
+ "sourceFileName": "src/index.ts",
1886
+ "qualifiedName": "getAllDeclineCodes"
1887
+ },
1888
+ "9": {
1889
+ "sourceFileName": "src/index.ts",
1890
+ "qualifiedName": "getAllDeclineCodes"
1891
+ },
1892
+ "10": {
1893
+ "sourceFileName": "src/index.ts",
1894
+ "qualifiedName": "isValidDeclineCode"
1895
+ },
1896
+ "11": {
1897
+ "sourceFileName": "src/index.ts",
1898
+ "qualifiedName": "isValidDeclineCode"
1899
+ },
1900
+ "12": {
1901
+ "sourceFileName": "src/index.ts",
1902
+ "qualifiedName": "code"
1903
+ },
1904
+ "13": {
1905
+ "sourceFileName": "src/index.ts",
1906
+ "qualifiedName": "getDocVersion"
1907
+ },
1908
+ "14": {
1909
+ "sourceFileName": "src/index.ts",
1910
+ "qualifiedName": "getDocVersion"
1911
+ },
1912
+ "15": {
1913
+ "sourceFileName": "src/index.ts",
1914
+ "qualifiedName": "formatDeclineMessage"
1915
+ },
1916
+ "16": {
1917
+ "sourceFileName": "src/index.ts",
1918
+ "qualifiedName": "formatDeclineMessage"
1919
+ },
1920
+ "17": {
1921
+ "sourceFileName": "src/index.ts",
1922
+ "qualifiedName": "declineCode"
1923
+ },
1924
+ "18": {
1925
+ "sourceFileName": "src/index.ts",
1926
+ "qualifiedName": "locale"
1927
+ },
1928
+ "19": {
1929
+ "sourceFileName": "src/index.ts",
1930
+ "qualifiedName": "variables"
1931
+ },
1932
+ "20": {
1933
+ "sourceFileName": "src/index.ts",
1934
+ "qualifiedName": "getDeclineCategory"
1935
+ },
1936
+ "21": {
1937
+ "sourceFileName": "src/index.ts",
1938
+ "qualifiedName": "getDeclineCategory"
1939
+ },
1940
+ "22": {
1941
+ "sourceFileName": "src/index.ts",
1942
+ "qualifiedName": "code"
1943
+ },
1944
+ "23": {
1945
+ "sourceFileName": "src/index.ts",
1946
+ "qualifiedName": "isHardDecline"
1947
+ },
1948
+ "24": {
1949
+ "sourceFileName": "src/index.ts",
1950
+ "qualifiedName": "isHardDecline"
1951
+ },
1952
+ "25": {
1953
+ "sourceFileName": "src/index.ts",
1954
+ "qualifiedName": "code"
1955
+ },
1956
+ "26": {
1957
+ "sourceFileName": "src/index.ts",
1958
+ "qualifiedName": "isSoftDecline"
1959
+ },
1960
+ "27": {
1961
+ "sourceFileName": "src/index.ts",
1962
+ "qualifiedName": "isSoftDecline"
1963
+ },
1964
+ "28": {
1965
+ "sourceFileName": "src/index.ts",
1966
+ "qualifiedName": "code"
1967
+ },
1968
+ "29": {
1969
+ "sourceFileName": "src/index.ts",
1970
+ "qualifiedName": "getMessageFromStripeError"
1971
+ },
1972
+ "30": {
1973
+ "sourceFileName": "src/index.ts",
1974
+ "qualifiedName": "getMessageFromStripeError"
1975
+ },
1976
+ "31": {
1977
+ "sourceFileName": "src/index.ts",
1978
+ "qualifiedName": "error"
1979
+ },
1980
+ "32": {
1981
+ "sourceFileName": "src/index.ts",
1982
+ "qualifiedName": "locale"
1983
+ },
1984
+ "33": {
1985
+ "sourceFileName": "src/data/decline-codes.ts",
1986
+ "qualifiedName": "DECLINE_CODES"
1987
+ },
1988
+ "34": {
1989
+ "sourceFileName": "src/data/decline-codes.ts",
1990
+ "qualifiedName": "DOC_VERSION"
1991
+ },
1992
+ "35": {
1993
+ "sourceFileName": "src/types.ts",
1994
+ "qualifiedName": "DeclineCategory"
1995
+ },
1996
+ "36": {
1997
+ "sourceFileName": "src/types.ts",
1998
+ "qualifiedName": "DeclineCode"
1999
+ },
2000
+ "37": {
2001
+ "sourceFileName": "src/types.ts",
2002
+ "qualifiedName": "DeclineCodeInfo"
2003
+ },
2004
+ "38": {
2005
+ "sourceFileName": "src/types.ts",
2006
+ "qualifiedName": "DeclineCodeInfo.description"
2007
+ },
2008
+ "39": {
2009
+ "sourceFileName": "src/types.ts",
2010
+ "qualifiedName": "DeclineCodeInfo.nextSteps"
2011
+ },
2012
+ "40": {
2013
+ "sourceFileName": "src/types.ts",
2014
+ "qualifiedName": "DeclineCodeInfo.nextUserAction"
2015
+ },
2016
+ "41": {
2017
+ "sourceFileName": "src/types.ts",
2018
+ "qualifiedName": "DeclineCodeInfo.category"
2019
+ },
2020
+ "42": {
2021
+ "sourceFileName": "src/types.ts",
2022
+ "qualifiedName": "DeclineCodeInfo.translations"
2023
+ },
2024
+ "43": {
2025
+ "sourceFileName": "src/types.ts",
2026
+ "qualifiedName": "DeclineCodeResult"
2027
+ },
2028
+ "44": {
2029
+ "sourceFileName": "src/types.ts",
2030
+ "qualifiedName": "DeclineCodeResult.docVersion"
2031
+ },
2032
+ "45": {
2033
+ "sourceFileName": "src/types.ts",
2034
+ "qualifiedName": "DeclineCodeResult.code"
2035
+ },
2036
+ "46": {
2037
+ "sourceFileName": "src/types.ts",
2038
+ "qualifiedName": "Locale"
2039
+ },
2040
+ "47": {
2041
+ "sourceFileName": "src/types.ts",
2042
+ "qualifiedName": "StripeError"
2043
+ },
2044
+ "48": {
2045
+ "sourceFileName": "src/types.ts",
2046
+ "qualifiedName": "StripeError.type"
2047
+ },
2048
+ "49": {
2049
+ "sourceFileName": "src/types.ts",
2050
+ "qualifiedName": "StripeError.decline_code"
2051
+ },
2052
+ "50": {
2053
+ "sourceFileName": "src/types.ts",
2054
+ "qualifiedName": "StripeError.message"
2055
+ },
2056
+ "51": {
2057
+ "sourceFileName": "src/types.ts",
2058
+ "qualifiedName": "StripeError.__index"
2059
+ },
2060
+ "53": {
2061
+ "sourceFileName": "src/types.ts",
2062
+ "qualifiedName": "Translation"
2063
+ },
2064
+ "54": {
2065
+ "sourceFileName": "src/types.ts",
2066
+ "qualifiedName": "Translation.description"
2067
+ },
2068
+ "55": {
2069
+ "sourceFileName": "src/types.ts",
2070
+ "qualifiedName": "Translation.nextUserAction"
2071
+ }
2072
+ },
2073
+ "files": {
2074
+ "entries": {
2075
+ "1": "src/index.ts"
2076
+ },
2077
+ "reflections": {
2078
+ "1": 0
2079
+ }
2080
+ }
2081
+ }