@capgo/capacitor-pay 7.0.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/docs.json ADDED
@@ -0,0 +1,767 @@
1
+ {
2
+ "api": {
3
+ "name": "PayPlugin",
4
+ "slug": "payplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "isPayAvailable",
10
+ "signature": "(options?: PayAvailabilityOptions | undefined) => Promise<PayAvailabilityResult>",
11
+ "parameters": [
12
+ {
13
+ "name": "options",
14
+ "docs": "",
15
+ "type": "PayAvailabilityOptions | undefined"
16
+ }
17
+ ],
18
+ "returns": "Promise<PayAvailabilityResult>",
19
+ "tags": [],
20
+ "docs": "Checks whether native pay is available on the current platform.\nOn iOS this evaluates Apple Pay, on Android it evaluates Google Pay.",
21
+ "complexTypes": [
22
+ "PayAvailabilityResult",
23
+ "PayAvailabilityOptions"
24
+ ],
25
+ "slug": "ispayavailable"
26
+ },
27
+ {
28
+ "name": "requestPayment",
29
+ "signature": "(options: PayPaymentOptions) => Promise<PayPaymentResult>",
30
+ "parameters": [
31
+ {
32
+ "name": "options",
33
+ "docs": "",
34
+ "type": "PayPaymentOptions"
35
+ }
36
+ ],
37
+ "returns": "Promise<PayPaymentResult>",
38
+ "tags": [],
39
+ "docs": "Presents the native pay sheet for the current platform.\nProvide the Apple Pay configuration on iOS and the Google Pay configuration on Android.",
40
+ "complexTypes": [
41
+ "PayPaymentResult",
42
+ "PayPaymentOptions"
43
+ ],
44
+ "slug": "requestpayment"
45
+ }
46
+ ],
47
+ "properties": []
48
+ },
49
+ "interfaces": [
50
+ {
51
+ "name": "PayAvailabilityResult",
52
+ "slug": "payavailabilityresult",
53
+ "docs": "",
54
+ "tags": [],
55
+ "methods": [],
56
+ "properties": [
57
+ {
58
+ "name": "available",
59
+ "tags": [],
60
+ "docs": "",
61
+ "complexTypes": [],
62
+ "type": "boolean"
63
+ },
64
+ {
65
+ "name": "platform",
66
+ "tags": [],
67
+ "docs": "",
68
+ "complexTypes": [
69
+ "PayPlatform"
70
+ ],
71
+ "type": "PayPlatform"
72
+ },
73
+ {
74
+ "name": "apple",
75
+ "tags": [],
76
+ "docs": "",
77
+ "complexTypes": [
78
+ "ApplePayAvailabilityResult"
79
+ ],
80
+ "type": "ApplePayAvailabilityResult"
81
+ },
82
+ {
83
+ "name": "google",
84
+ "tags": [],
85
+ "docs": "",
86
+ "complexTypes": [
87
+ "GooglePayAvailabilityResult"
88
+ ],
89
+ "type": "GooglePayAvailabilityResult"
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "name": "ApplePayAvailabilityResult",
95
+ "slug": "applepayavailabilityresult",
96
+ "docs": "",
97
+ "tags": [],
98
+ "methods": [],
99
+ "properties": [
100
+ {
101
+ "name": "canMakePayments",
102
+ "tags": [],
103
+ "docs": "Indicates whether the device can make Apple Pay payments in general.",
104
+ "complexTypes": [],
105
+ "type": "boolean"
106
+ },
107
+ {
108
+ "name": "canMakePaymentsUsingNetworks",
109
+ "tags": [],
110
+ "docs": "Indicates whether the device can make Apple Pay payments with the supplied networks.",
111
+ "complexTypes": [],
112
+ "type": "boolean"
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "name": "GooglePayAvailabilityResult",
118
+ "slug": "googlepayavailabilityresult",
119
+ "docs": "",
120
+ "tags": [],
121
+ "methods": [],
122
+ "properties": [
123
+ {
124
+ "name": "isReady",
125
+ "tags": [],
126
+ "docs": "Indicates whether the Google Pay API is available for the supplied parameters.",
127
+ "complexTypes": [],
128
+ "type": "boolean"
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "name": "PayAvailabilityOptions",
134
+ "slug": "payavailabilityoptions",
135
+ "docs": "",
136
+ "tags": [],
137
+ "methods": [],
138
+ "properties": [
139
+ {
140
+ "name": "apple",
141
+ "tags": [],
142
+ "docs": "",
143
+ "complexTypes": [
144
+ "ApplePayAvailabilityOptions"
145
+ ],
146
+ "type": "ApplePayAvailabilityOptions"
147
+ },
148
+ {
149
+ "name": "google",
150
+ "tags": [],
151
+ "docs": "",
152
+ "complexTypes": [
153
+ "GooglePayAvailabilityOptions"
154
+ ],
155
+ "type": "GooglePayAvailabilityOptions"
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "name": "ApplePayAvailabilityOptions",
161
+ "slug": "applepayavailabilityoptions",
162
+ "docs": "",
163
+ "tags": [],
164
+ "methods": [],
165
+ "properties": [
166
+ {
167
+ "name": "supportedNetworks",
168
+ "tags": [],
169
+ "docs": "Optional list of payment networks you intend to use.\nPassing networks determines the return value of `canMakePaymentsUsingNetworks`.",
170
+ "complexTypes": [
171
+ "ApplePayNetwork"
172
+ ],
173
+ "type": "ApplePayNetwork[] | undefined"
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ "name": "GooglePayAvailabilityOptions",
179
+ "slug": "googlepayavailabilityoptions",
180
+ "docs": "",
181
+ "tags": [],
182
+ "methods": [],
183
+ "properties": [
184
+ {
185
+ "name": "environment",
186
+ "tags": [],
187
+ "docs": "Environment used to construct the Google Payments client. Defaults to `'test'`.",
188
+ "complexTypes": [
189
+ "GooglePayEnvironment"
190
+ ],
191
+ "type": "GooglePayEnvironment"
192
+ },
193
+ {
194
+ "name": "isReadyToPayRequest",
195
+ "tags": [],
196
+ "docs": "Raw `IsReadyToPayRequest` JSON as defined by the Google Pay API.\nSupply the card networks and auth methods you intend to support at runtime.",
197
+ "complexTypes": [
198
+ "Record"
199
+ ],
200
+ "type": "Record<string, unknown>"
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "name": "PayPaymentResult",
206
+ "slug": "paypaymentresult",
207
+ "docs": "",
208
+ "tags": [],
209
+ "methods": [],
210
+ "properties": [
211
+ {
212
+ "name": "platform",
213
+ "tags": [],
214
+ "docs": "",
215
+ "complexTypes": [
216
+ "Exclude",
217
+ "PayPlatform"
218
+ ],
219
+ "type": "Exclude<PayPlatform, 'web'>"
220
+ },
221
+ {
222
+ "name": "apple",
223
+ "tags": [],
224
+ "docs": "",
225
+ "complexTypes": [
226
+ "ApplePayPaymentResult"
227
+ ],
228
+ "type": "ApplePayPaymentResult"
229
+ },
230
+ {
231
+ "name": "google",
232
+ "tags": [],
233
+ "docs": "",
234
+ "complexTypes": [
235
+ "GooglePayPaymentResult"
236
+ ],
237
+ "type": "GooglePayPaymentResult"
238
+ }
239
+ ]
240
+ },
241
+ {
242
+ "name": "ApplePayPaymentResult",
243
+ "slug": "applepaypaymentresult",
244
+ "docs": "",
245
+ "tags": [],
246
+ "methods": [],
247
+ "properties": [
248
+ {
249
+ "name": "paymentData",
250
+ "tags": [],
251
+ "docs": "Raw payment token encoded as base64 string.",
252
+ "complexTypes": [],
253
+ "type": "string"
254
+ },
255
+ {
256
+ "name": "paymentString",
257
+ "tags": [],
258
+ "docs": "Raw payment token JSON string, useful for debugging.",
259
+ "complexTypes": [],
260
+ "type": "string"
261
+ },
262
+ {
263
+ "name": "transactionIdentifier",
264
+ "tags": [],
265
+ "docs": "Payment transaction identifier.",
266
+ "complexTypes": [],
267
+ "type": "string"
268
+ },
269
+ {
270
+ "name": "paymentMethod",
271
+ "tags": [],
272
+ "docs": "",
273
+ "complexTypes": [
274
+ "ApplePayNetwork"
275
+ ],
276
+ "type": "{ displayName?: string | undefined; network?: ApplePayNetwork | undefined; type: 'credit' | 'debit' | 'prepaid' | 'store'; }"
277
+ },
278
+ {
279
+ "name": "shippingContact",
280
+ "tags": [],
281
+ "docs": "",
282
+ "complexTypes": [
283
+ "ApplePayContact"
284
+ ],
285
+ "type": "ApplePayContact"
286
+ },
287
+ {
288
+ "name": "billingContact",
289
+ "tags": [],
290
+ "docs": "",
291
+ "complexTypes": [
292
+ "ApplePayContact"
293
+ ],
294
+ "type": "ApplePayContact"
295
+ }
296
+ ]
297
+ },
298
+ {
299
+ "name": "ApplePayContact",
300
+ "slug": "applepaycontact",
301
+ "docs": "",
302
+ "tags": [],
303
+ "methods": [],
304
+ "properties": [
305
+ {
306
+ "name": "name",
307
+ "tags": [],
308
+ "docs": "",
309
+ "complexTypes": [],
310
+ "type": "{ givenName?: string | undefined; familyName?: string | undefined; middleName?: string | undefined; namePrefix?: string | undefined; nameSuffix?: string | undefined; nickname?: string | undefined; } | undefined"
311
+ },
312
+ {
313
+ "name": "emailAddress",
314
+ "tags": [],
315
+ "docs": "",
316
+ "complexTypes": [],
317
+ "type": "string | undefined"
318
+ },
319
+ {
320
+ "name": "phoneNumber",
321
+ "tags": [],
322
+ "docs": "",
323
+ "complexTypes": [],
324
+ "type": "string | undefined"
325
+ },
326
+ {
327
+ "name": "postalAddress",
328
+ "tags": [],
329
+ "docs": "",
330
+ "complexTypes": [],
331
+ "type": "{ street?: string | undefined; city?: string | undefined; state?: string | undefined; postalCode?: string | undefined; country?: string | undefined; isoCountryCode?: string | undefined; subAdministrativeArea?: string | undefined; subLocality?: string | undefined; } | undefined"
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "name": "GooglePayPaymentResult",
337
+ "slug": "googlepaypaymentresult",
338
+ "docs": "",
339
+ "tags": [],
340
+ "methods": [],
341
+ "properties": [
342
+ {
343
+ "name": "paymentData",
344
+ "tags": [],
345
+ "docs": "Payment data returned by Google Pay.",
346
+ "complexTypes": [
347
+ "Record"
348
+ ],
349
+ "type": "Record<string, unknown>"
350
+ }
351
+ ]
352
+ },
353
+ {
354
+ "name": "PayPaymentOptions",
355
+ "slug": "paypaymentoptions",
356
+ "docs": "",
357
+ "tags": [],
358
+ "methods": [],
359
+ "properties": [
360
+ {
361
+ "name": "apple",
362
+ "tags": [],
363
+ "docs": "",
364
+ "complexTypes": [
365
+ "ApplePayPaymentOptions"
366
+ ],
367
+ "type": "ApplePayPaymentOptions"
368
+ },
369
+ {
370
+ "name": "google",
371
+ "tags": [],
372
+ "docs": "",
373
+ "complexTypes": [
374
+ "GooglePayPaymentOptions"
375
+ ],
376
+ "type": "GooglePayPaymentOptions"
377
+ }
378
+ ]
379
+ },
380
+ {
381
+ "name": "ApplePayPaymentOptions",
382
+ "slug": "applepaypaymentoptions",
383
+ "docs": "",
384
+ "tags": [],
385
+ "methods": [],
386
+ "properties": [
387
+ {
388
+ "name": "merchantIdentifier",
389
+ "tags": [],
390
+ "docs": "Merchant identifier created in the Apple Developer portal.",
391
+ "complexTypes": [],
392
+ "type": "string"
393
+ },
394
+ {
395
+ "name": "countryCode",
396
+ "tags": [],
397
+ "docs": "Two-letter ISO 3166 country code.",
398
+ "complexTypes": [],
399
+ "type": "string"
400
+ },
401
+ {
402
+ "name": "currencyCode",
403
+ "tags": [],
404
+ "docs": "Three-letter ISO 4217 currency code.",
405
+ "complexTypes": [],
406
+ "type": "string"
407
+ },
408
+ {
409
+ "name": "paymentSummaryItems",
410
+ "tags": [],
411
+ "docs": "Payment summary items displayed in the Apple Pay sheet.",
412
+ "complexTypes": [
413
+ "ApplePaySummaryItem"
414
+ ],
415
+ "type": "ApplePaySummaryItem[]"
416
+ },
417
+ {
418
+ "name": "supportedNetworks",
419
+ "tags": [],
420
+ "docs": "Card networks to support.",
421
+ "complexTypes": [
422
+ "ApplePayNetwork"
423
+ ],
424
+ "type": "ApplePayNetwork[]"
425
+ },
426
+ {
427
+ "name": "merchantCapabilities",
428
+ "tags": [],
429
+ "docs": "Merchant payment capabilities. Defaults to ['3DS'] when omitted.",
430
+ "complexTypes": [
431
+ "ApplePayMerchantCapability"
432
+ ],
433
+ "type": "ApplePayMerchantCapability[] | undefined"
434
+ },
435
+ {
436
+ "name": "requiredShippingContactFields",
437
+ "tags": [],
438
+ "docs": "Contact fields that must be supplied for shipping.",
439
+ "complexTypes": [
440
+ "ApplePayContactField"
441
+ ],
442
+ "type": "ApplePayContactField[] | undefined"
443
+ },
444
+ {
445
+ "name": "requiredBillingContactFields",
446
+ "tags": [],
447
+ "docs": "Contact fields that must be supplied for billing.",
448
+ "complexTypes": [
449
+ "ApplePayContactField"
450
+ ],
451
+ "type": "ApplePayContactField[] | undefined"
452
+ },
453
+ {
454
+ "name": "shippingType",
455
+ "tags": [],
456
+ "docs": "Controls the shipping flow presented to the user.",
457
+ "complexTypes": [
458
+ "ApplePayShippingType"
459
+ ],
460
+ "type": "ApplePayShippingType"
461
+ },
462
+ {
463
+ "name": "supportedCountries",
464
+ "tags": [],
465
+ "docs": "Optional ISO 3166 country codes where the merchant is supported.",
466
+ "complexTypes": [],
467
+ "type": "string[] | undefined"
468
+ },
469
+ {
470
+ "name": "applicationData",
471
+ "tags": [],
472
+ "docs": "Optional opaque application data passed back in the payment token.",
473
+ "complexTypes": [],
474
+ "type": "string | undefined"
475
+ }
476
+ ]
477
+ },
478
+ {
479
+ "name": "ApplePaySummaryItem",
480
+ "slug": "applepaysummaryitem",
481
+ "docs": "",
482
+ "tags": [],
483
+ "methods": [],
484
+ "properties": [
485
+ {
486
+ "name": "label",
487
+ "tags": [],
488
+ "docs": "",
489
+ "complexTypes": [],
490
+ "type": "string"
491
+ },
492
+ {
493
+ "name": "amount",
494
+ "tags": [],
495
+ "docs": "",
496
+ "complexTypes": [],
497
+ "type": "string"
498
+ },
499
+ {
500
+ "name": "type",
501
+ "tags": [],
502
+ "docs": "",
503
+ "complexTypes": [
504
+ "ApplePaySummaryItemType"
505
+ ],
506
+ "type": "ApplePaySummaryItemType"
507
+ }
508
+ ]
509
+ },
510
+ {
511
+ "name": "GooglePayPaymentOptions",
512
+ "slug": "googlepaypaymentoptions",
513
+ "docs": "",
514
+ "tags": [],
515
+ "methods": [],
516
+ "properties": [
517
+ {
518
+ "name": "environment",
519
+ "tags": [],
520
+ "docs": "Environment used to construct the Google Payments client. Defaults to `'test'`.",
521
+ "complexTypes": [
522
+ "GooglePayEnvironment"
523
+ ],
524
+ "type": "GooglePayEnvironment"
525
+ },
526
+ {
527
+ "name": "paymentDataRequest",
528
+ "tags": [],
529
+ "docs": "Raw `PaymentDataRequest` JSON as defined by the Google Pay API.\nProvide transaction details, merchant info, and tokenization parameters.",
530
+ "complexTypes": [
531
+ "Record"
532
+ ],
533
+ "type": "Record<string, unknown>"
534
+ }
535
+ ]
536
+ }
537
+ ],
538
+ "enums": [],
539
+ "typeAliases": [
540
+ {
541
+ "name": "PayPlatform",
542
+ "slug": "payplatform",
543
+ "docs": "",
544
+ "types": [
545
+ {
546
+ "text": "'ios'",
547
+ "complexTypes": []
548
+ },
549
+ {
550
+ "text": "'android'",
551
+ "complexTypes": []
552
+ },
553
+ {
554
+ "text": "'web'",
555
+ "complexTypes": []
556
+ }
557
+ ]
558
+ },
559
+ {
560
+ "name": "ApplePayNetwork",
561
+ "slug": "applepaynetwork",
562
+ "docs": "",
563
+ "types": [
564
+ {
565
+ "text": "'amex'",
566
+ "complexTypes": []
567
+ },
568
+ {
569
+ "text": "'chinaUnionPay'",
570
+ "complexTypes": []
571
+ },
572
+ {
573
+ "text": "'discover'",
574
+ "complexTypes": []
575
+ },
576
+ {
577
+ "text": "'eftpos'",
578
+ "complexTypes": []
579
+ },
580
+ {
581
+ "text": "'electron'",
582
+ "complexTypes": []
583
+ },
584
+ {
585
+ "text": "'girocard'",
586
+ "complexTypes": []
587
+ },
588
+ {
589
+ "text": "'interac'",
590
+ "complexTypes": []
591
+ },
592
+ {
593
+ "text": "'jcb'",
594
+ "complexTypes": []
595
+ },
596
+ {
597
+ "text": "'mada'",
598
+ "complexTypes": []
599
+ },
600
+ {
601
+ "text": "'maestro'",
602
+ "complexTypes": []
603
+ },
604
+ {
605
+ "text": "'masterCard'",
606
+ "complexTypes": []
607
+ },
608
+ {
609
+ "text": "'privateLabel'",
610
+ "complexTypes": []
611
+ },
612
+ {
613
+ "text": "'quicPay'",
614
+ "complexTypes": []
615
+ },
616
+ {
617
+ "text": "'suica'",
618
+ "complexTypes": []
619
+ },
620
+ {
621
+ "text": "'visa'",
622
+ "complexTypes": []
623
+ },
624
+ {
625
+ "text": "'vPay'",
626
+ "complexTypes": []
627
+ },
628
+ {
629
+ "text": "'id'",
630
+ "complexTypes": []
631
+ },
632
+ {
633
+ "text": "'cartesBancaires'",
634
+ "complexTypes": []
635
+ }
636
+ ]
637
+ },
638
+ {
639
+ "name": "GooglePayEnvironment",
640
+ "slug": "googlepayenvironment",
641
+ "docs": "",
642
+ "types": [
643
+ {
644
+ "text": "'test'",
645
+ "complexTypes": []
646
+ },
647
+ {
648
+ "text": "'production'",
649
+ "complexTypes": []
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "name": "Record",
655
+ "slug": "record",
656
+ "docs": "Construct a type with a set of properties K of type T",
657
+ "types": [
658
+ {
659
+ "text": "{\r\n [P in K]: T;\r\n}",
660
+ "complexTypes": [
661
+ "K",
662
+ "T"
663
+ ]
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ "name": "Exclude",
669
+ "slug": "exclude",
670
+ "docs": "Exclude from T those types that are assignable to U",
671
+ "types": [
672
+ {
673
+ "text": "T extends U ? never : T",
674
+ "complexTypes": [
675
+ "T",
676
+ "U"
677
+ ]
678
+ }
679
+ ]
680
+ },
681
+ {
682
+ "name": "ApplePaySummaryItemType",
683
+ "slug": "applepaysummaryitemtype",
684
+ "docs": "",
685
+ "types": [
686
+ {
687
+ "text": "'final'",
688
+ "complexTypes": []
689
+ },
690
+ {
691
+ "text": "'pending'",
692
+ "complexTypes": []
693
+ }
694
+ ]
695
+ },
696
+ {
697
+ "name": "ApplePayMerchantCapability",
698
+ "slug": "applepaymerchantcapability",
699
+ "docs": "",
700
+ "types": [
701
+ {
702
+ "text": "'3DS'",
703
+ "complexTypes": []
704
+ },
705
+ {
706
+ "text": "'credit'",
707
+ "complexTypes": []
708
+ },
709
+ {
710
+ "text": "'debit'",
711
+ "complexTypes": []
712
+ },
713
+ {
714
+ "text": "'emv'",
715
+ "complexTypes": []
716
+ }
717
+ ]
718
+ },
719
+ {
720
+ "name": "ApplePayContactField",
721
+ "slug": "applepaycontactfield",
722
+ "docs": "",
723
+ "types": [
724
+ {
725
+ "text": "'emailAddress'",
726
+ "complexTypes": []
727
+ },
728
+ {
729
+ "text": "'name'",
730
+ "complexTypes": []
731
+ },
732
+ {
733
+ "text": "'phoneNumber'",
734
+ "complexTypes": []
735
+ },
736
+ {
737
+ "text": "'postalAddress'",
738
+ "complexTypes": []
739
+ }
740
+ ]
741
+ },
742
+ {
743
+ "name": "ApplePayShippingType",
744
+ "slug": "applepayshippingtype",
745
+ "docs": "",
746
+ "types": [
747
+ {
748
+ "text": "'shipping'",
749
+ "complexTypes": []
750
+ },
751
+ {
752
+ "text": "'delivery'",
753
+ "complexTypes": []
754
+ },
755
+ {
756
+ "text": "'servicePickup'",
757
+ "complexTypes": []
758
+ },
759
+ {
760
+ "text": "'storePickup'",
761
+ "complexTypes": []
762
+ }
763
+ ]
764
+ }
765
+ ],
766
+ "pluginConfigs": []
767
+ }