@capawesome/capacitor-square-mobile-payments 0.0.1

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.
Files changed (82) hide show
  1. package/CapawesomeCapacitorSquareMobilePayments.podspec +17 -0
  2. package/Package.swift +30 -0
  3. package/README.md +1183 -0
  4. package/android/build.gradle +63 -0
  5. package/android/src/main/AndroidManifest.xml +7 -0
  6. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/SquareMobilePayments.java +774 -0
  7. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/SquareMobilePaymentsPlugin.java +460 -0
  8. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/CustomException.java +20 -0
  9. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/CustomExceptions.java +41 -0
  10. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/events/AvailableCardInputMethodsDidChangeEvent.java +27 -0
  11. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/events/PaymentDidCancelEvent.java +24 -0
  12. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/events/PaymentDidFailEvent.java +34 -0
  13. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/events/PaymentDidFinishEvent.java +22 -0
  14. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/events/ReaderDidChangeEvent.java +27 -0
  15. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/events/ReaderPairingDidFailEvent.java +28 -0
  16. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/events/ReaderWasAddedEvent.java +22 -0
  17. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/events/ReaderWasRemovedEvent.java +22 -0
  18. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/options/AuthorizeOptions.java +29 -0
  19. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/options/ForgetReaderOptions.java +29 -0
  20. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/options/InitializeOptions.java +29 -0
  21. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/options/Money.java +29 -0
  22. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/options/PaymentParameters.java +126 -0
  23. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/options/PromptParameters.java +47 -0
  24. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/options/RetryConnectionOptions.java +29 -0
  25. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/options/StartPaymentOptions.java +39 -0
  26. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/Card.java +51 -0
  27. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/CardPaymentDetails.java +30 -0
  28. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/GetAvailableCardInputMethodsResult.java +29 -0
  29. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/GetReadersResult.java +29 -0
  30. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/GetSettingsResult.java +28 -0
  31. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/IsAuthorizedResult.java +22 -0
  32. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/IsPairingInProgressResult.java +22 -0
  33. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/MoneyResult.java +27 -0
  34. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/Payment.java +87 -0
  35. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/ReaderInfo.java +82 -0
  36. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/classes/results/UnavailableReasonInfo.java +30 -0
  37. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/interfaces/Callback.java +5 -0
  38. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/interfaces/EmptyCallback.java +5 -0
  39. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/interfaces/NonEmptyCallback.java +7 -0
  40. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/interfaces/NonEmptyResultCallback.java +7 -0
  41. package/android/src/main/java/io/capawesome/capacitorjs/plugins/squaremobilepayments/interfaces/Result.java +7 -0
  42. package/android/src/main/res/.gitkeep +0 -0
  43. package/dist/docs.json +2999 -0
  44. package/dist/esm/definitions.d.ts +1468 -0
  45. package/dist/esm/definitions.js +519 -0
  46. package/dist/esm/definitions.js.map +1 -0
  47. package/dist/esm/index.d.ts +4 -0
  48. package/dist/esm/index.js +7 -0
  49. package/dist/esm/index.js.map +1 -0
  50. package/dist/esm/web.d.ts +21 -0
  51. package/dist/esm/web.js +55 -0
  52. package/dist/esm/web.js.map +1 -0
  53. package/dist/plugin.cjs.js +588 -0
  54. package/dist/plugin.cjs.js.map +1 -0
  55. package/dist/plugin.js +591 -0
  56. package/dist/plugin.js.map +1 -0
  57. package/ios/Plugin/Classes/Options/AuthorizeOptions.swift +17 -0
  58. package/ios/Plugin/Classes/Options/ForgetReaderOptions.swift +17 -0
  59. package/ios/Plugin/Classes/Options/InitializeOptions.swift +17 -0
  60. package/ios/Plugin/Classes/Options/Money.swift +12 -0
  61. package/ios/Plugin/Classes/Options/PaymentParameters.swift +49 -0
  62. package/ios/Plugin/Classes/Options/PromptParameters.swift +17 -0
  63. package/ios/Plugin/Classes/Options/RetryConnectionOptions.swift +17 -0
  64. package/ios/Plugin/Classes/Options/StartPaymentOptions.swift +19 -0
  65. package/ios/Plugin/Classes/Results/Card.swift +34 -0
  66. package/ios/Plugin/Classes/Results/CardPaymentDetails.swift +34 -0
  67. package/ios/Plugin/Classes/Results/GetAvailableCardInputMethodsResult.swift +16 -0
  68. package/ios/Plugin/Classes/Results/GetReadersResult.swift +16 -0
  69. package/ios/Plugin/Classes/Results/GetSettingsResult.swift +19 -0
  70. package/ios/Plugin/Classes/Results/IsAuthorizedResult.swift +16 -0
  71. package/ios/Plugin/Classes/Results/IsPairingInProgressResult.swift +16 -0
  72. package/ios/Plugin/Classes/Results/MoneyResult.swift +19 -0
  73. package/ios/Plugin/Classes/Results/Payment.swift +58 -0
  74. package/ios/Plugin/Classes/Results/ReaderInfo.swift +46 -0
  75. package/ios/Plugin/Classes/Results/UnavailableReasonInfo.swift +19 -0
  76. package/ios/Plugin/Enums/CustomError.swift +81 -0
  77. package/ios/Plugin/Info.plist +24 -0
  78. package/ios/Plugin/Protocols/Result.swift +6 -0
  79. package/ios/Plugin/SquareMobilePayments.swift +632 -0
  80. package/ios/Plugin/SquareMobilePaymentsHelper.swift +212 -0
  81. package/ios/Plugin/SquareMobilePaymentsPlugin.swift +347 -0
  82. package/package.json +93 -0
package/dist/docs.json ADDED
@@ -0,0 +1,2999 @@
1
+ {
2
+ "api": {
3
+ "name": "SquareMobilePaymentsPlugin",
4
+ "slug": "squaremobilepaymentsplugin",
5
+ "docs": "",
6
+ "tags": [
7
+ {
8
+ "text": "0.0.1",
9
+ "name": "since"
10
+ }
11
+ ],
12
+ "methods": [
13
+ {
14
+ "name": "initialize",
15
+ "signature": "(options: InitializeOptions) => Promise<void>",
16
+ "parameters": [
17
+ {
18
+ "name": "options",
19
+ "docs": "",
20
+ "type": "InitializeOptions"
21
+ }
22
+ ],
23
+ "returns": "Promise<void>",
24
+ "tags": [
25
+ {
26
+ "name": "since",
27
+ "text": "0.0.1"
28
+ }
29
+ ],
30
+ "docs": "Initialize the Square Mobile Payments SDK.\n\nThis method must be called before any other method.\n\nOnly available on Android and iOS.",
31
+ "complexTypes": [
32
+ "InitializeOptions"
33
+ ],
34
+ "slug": "initialize"
35
+ },
36
+ {
37
+ "name": "authorize",
38
+ "signature": "(options: AuthorizeOptions) => Promise<void>",
39
+ "parameters": [
40
+ {
41
+ "name": "options",
42
+ "docs": "",
43
+ "type": "AuthorizeOptions"
44
+ }
45
+ ],
46
+ "returns": "Promise<void>",
47
+ "tags": [
48
+ {
49
+ "name": "since",
50
+ "text": "0.0.1"
51
+ }
52
+ ],
53
+ "docs": "Authorize the SDK with a Square access token.\n\nOnly available on Android and iOS.",
54
+ "complexTypes": [
55
+ "AuthorizeOptions"
56
+ ],
57
+ "slug": "authorize"
58
+ },
59
+ {
60
+ "name": "isAuthorized",
61
+ "signature": "() => Promise<IsAuthorizedResult>",
62
+ "parameters": [],
63
+ "returns": "Promise<IsAuthorizedResult>",
64
+ "tags": [
65
+ {
66
+ "name": "since",
67
+ "text": "0.0.1"
68
+ }
69
+ ],
70
+ "docs": "Check if the SDK is currently authorized.\n\nOnly available on Android and iOS.",
71
+ "complexTypes": [
72
+ "IsAuthorizedResult"
73
+ ],
74
+ "slug": "isauthorized"
75
+ },
76
+ {
77
+ "name": "deauthorize",
78
+ "signature": "() => Promise<void>",
79
+ "parameters": [],
80
+ "returns": "Promise<void>",
81
+ "tags": [
82
+ {
83
+ "name": "since",
84
+ "text": "0.0.1"
85
+ }
86
+ ],
87
+ "docs": "Deauthorize the SDK and clear the current authorization.\n\nOnly available on Android and iOS.",
88
+ "complexTypes": [],
89
+ "slug": "deauthorize"
90
+ },
91
+ {
92
+ "name": "showSettings",
93
+ "signature": "() => Promise<void>",
94
+ "parameters": [],
95
+ "returns": "Promise<void>",
96
+ "tags": [
97
+ {
98
+ "name": "since",
99
+ "text": "0.0.1"
100
+ }
101
+ ],
102
+ "docs": "Show the Square settings screen.\n\nThis displays a pre-built settings UI where merchants can view and manage\ntheir paired readers.\n\nOnly available on Android and iOS.",
103
+ "complexTypes": [],
104
+ "slug": "showsettings"
105
+ },
106
+ {
107
+ "name": "getSettings",
108
+ "signature": "() => Promise<GetSettingsResult>",
109
+ "parameters": [],
110
+ "returns": "Promise<GetSettingsResult>",
111
+ "tags": [
112
+ {
113
+ "name": "since",
114
+ "text": "0.0.1"
115
+ }
116
+ ],
117
+ "docs": "Get the current SDK settings.\n\nOnly available on Android and iOS.",
118
+ "complexTypes": [
119
+ "GetSettingsResult"
120
+ ],
121
+ "slug": "getsettings"
122
+ },
123
+ {
124
+ "name": "startPairing",
125
+ "signature": "() => Promise<void>",
126
+ "parameters": [],
127
+ "returns": "Promise<void>",
128
+ "tags": [
129
+ {
130
+ "name": "since",
131
+ "text": "0.0.1"
132
+ }
133
+ ],
134
+ "docs": "Start pairing with a Square reader.\n\nThis initiates the reader pairing process. The SDK will search for nearby\nreaders and pair with the first one found.\n\nOnly available on Android and iOS.",
135
+ "complexTypes": [],
136
+ "slug": "startpairing"
137
+ },
138
+ {
139
+ "name": "stopPairing",
140
+ "signature": "() => Promise<void>",
141
+ "parameters": [],
142
+ "returns": "Promise<void>",
143
+ "tags": [
144
+ {
145
+ "name": "since",
146
+ "text": "0.0.1"
147
+ }
148
+ ],
149
+ "docs": "Stop the reader pairing process.\n\nOnly available on Android and iOS.",
150
+ "complexTypes": [],
151
+ "slug": "stoppairing"
152
+ },
153
+ {
154
+ "name": "isPairingInProgress",
155
+ "signature": "() => Promise<IsPairingInProgressResult>",
156
+ "parameters": [],
157
+ "returns": "Promise<IsPairingInProgressResult>",
158
+ "tags": [
159
+ {
160
+ "name": "since",
161
+ "text": "0.0.1"
162
+ }
163
+ ],
164
+ "docs": "Check if a pairing process is currently in progress.\n\nOnly available on Android and iOS.",
165
+ "complexTypes": [
166
+ "IsPairingInProgressResult"
167
+ ],
168
+ "slug": "ispairinginprogress"
169
+ },
170
+ {
171
+ "name": "getReaders",
172
+ "signature": "() => Promise<GetReadersResult>",
173
+ "parameters": [],
174
+ "returns": "Promise<GetReadersResult>",
175
+ "tags": [
176
+ {
177
+ "name": "since",
178
+ "text": "0.0.1"
179
+ }
180
+ ],
181
+ "docs": "Get a list of all paired readers.\n\nOnly available on Android and iOS.",
182
+ "complexTypes": [
183
+ "GetReadersResult"
184
+ ],
185
+ "slug": "getreaders"
186
+ },
187
+ {
188
+ "name": "forgetReader",
189
+ "signature": "(options: ForgetReaderOptions) => Promise<void>",
190
+ "parameters": [
191
+ {
192
+ "name": "options",
193
+ "docs": "",
194
+ "type": "ForgetReaderOptions"
195
+ }
196
+ ],
197
+ "returns": "Promise<void>",
198
+ "tags": [
199
+ {
200
+ "name": "since",
201
+ "text": "0.0.1"
202
+ }
203
+ ],
204
+ "docs": "Forget a paired reader.\n\nOnly available on Android and iOS.",
205
+ "complexTypes": [
206
+ "ForgetReaderOptions"
207
+ ],
208
+ "slug": "forgetreader"
209
+ },
210
+ {
211
+ "name": "retryConnection",
212
+ "signature": "(options: RetryConnectionOptions) => Promise<void>",
213
+ "parameters": [
214
+ {
215
+ "name": "options",
216
+ "docs": "",
217
+ "type": "RetryConnectionOptions"
218
+ }
219
+ ],
220
+ "returns": "Promise<void>",
221
+ "tags": [
222
+ {
223
+ "name": "since",
224
+ "text": "0.0.1"
225
+ }
226
+ ],
227
+ "docs": "Retry connecting to a reader.\n\nOnly available on Android and iOS.",
228
+ "complexTypes": [
229
+ "RetryConnectionOptions"
230
+ ],
231
+ "slug": "retryconnection"
232
+ },
233
+ {
234
+ "name": "startPayment",
235
+ "signature": "(options: StartPaymentOptions) => Promise<void>",
236
+ "parameters": [
237
+ {
238
+ "name": "options",
239
+ "docs": "",
240
+ "type": "StartPaymentOptions"
241
+ }
242
+ ],
243
+ "returns": "Promise<void>",
244
+ "tags": [
245
+ {
246
+ "name": "since",
247
+ "text": "0.0.1"
248
+ }
249
+ ],
250
+ "docs": "Start a payment flow.\n\nThis presents the payment UI and processes the payment using the specified\nparameters. Only one payment can be active at a time.\n\nOnly available on Android and iOS.",
251
+ "complexTypes": [
252
+ "StartPaymentOptions"
253
+ ],
254
+ "slug": "startpayment"
255
+ },
256
+ {
257
+ "name": "cancelPayment",
258
+ "signature": "() => Promise<void>",
259
+ "parameters": [],
260
+ "returns": "Promise<void>",
261
+ "tags": [
262
+ {
263
+ "name": "since",
264
+ "text": "0.0.1"
265
+ }
266
+ ],
267
+ "docs": "Cancel an ongoing payment.\n\nOnly available on Android and iOS.",
268
+ "complexTypes": [],
269
+ "slug": "cancelpayment"
270
+ },
271
+ {
272
+ "name": "getAvailableCardInputMethods",
273
+ "signature": "() => Promise<GetAvailableCardInputMethodsResult>",
274
+ "parameters": [],
275
+ "returns": "Promise<GetAvailableCardInputMethodsResult>",
276
+ "tags": [
277
+ {
278
+ "name": "since",
279
+ "text": "0.0.1"
280
+ }
281
+ ],
282
+ "docs": "Get the currently available card input methods.\n\nThis returns the card entry methods that are available based on the\nconnected readers (e.g., TAP, DIP, SWIPE, KEYED).\n\nOnly available on Android and iOS.",
283
+ "complexTypes": [
284
+ "GetAvailableCardInputMethodsResult"
285
+ ],
286
+ "slug": "getavailablecardinputmethods"
287
+ },
288
+ {
289
+ "name": "checkPermissions",
290
+ "signature": "() => Promise<PermissionStatus>",
291
+ "parameters": [],
292
+ "returns": "Promise<PermissionStatus>",
293
+ "tags": [
294
+ {
295
+ "name": "since",
296
+ "text": "0.0.1"
297
+ }
298
+ ],
299
+ "docs": "Check the current permission status.\n\nOnly available on Android and iOS.",
300
+ "complexTypes": [
301
+ "PermissionStatus"
302
+ ],
303
+ "slug": "checkpermissions"
304
+ },
305
+ {
306
+ "name": "requestPermissions",
307
+ "signature": "() => Promise<PermissionStatus>",
308
+ "parameters": [],
309
+ "returns": "Promise<PermissionStatus>",
310
+ "tags": [
311
+ {
312
+ "name": "since",
313
+ "text": "0.0.1"
314
+ }
315
+ ],
316
+ "docs": "Request the required permissions.\n\nOnly available on Android and iOS.",
317
+ "complexTypes": [
318
+ "PermissionStatus"
319
+ ],
320
+ "slug": "requestpermissions"
321
+ },
322
+ {
323
+ "name": "addListener",
324
+ "signature": "(eventName: 'readerPairingDidBegin', listenerFunc: ReaderPairingDidBeginListener) => Promise<PluginListenerHandle>",
325
+ "parameters": [
326
+ {
327
+ "name": "eventName",
328
+ "docs": "",
329
+ "type": "'readerPairingDidBegin'"
330
+ },
331
+ {
332
+ "name": "listenerFunc",
333
+ "docs": "",
334
+ "type": "ReaderPairingDidBeginListener"
335
+ }
336
+ ],
337
+ "returns": "Promise<PluginListenerHandle>",
338
+ "tags": [
339
+ {
340
+ "name": "since",
341
+ "text": "0.0.1"
342
+ }
343
+ ],
344
+ "docs": "Listen for reader pairing events.\n\nOnly available on Android and iOS.",
345
+ "complexTypes": [
346
+ "PluginListenerHandle",
347
+ "ReaderPairingDidBeginListener"
348
+ ],
349
+ "slug": "addlistenerreaderpairingdidbegin-"
350
+ },
351
+ {
352
+ "name": "addListener",
353
+ "signature": "(eventName: 'readerPairingDidSucceed', listenerFunc: ReaderPairingDidSucceedListener) => Promise<PluginListenerHandle>",
354
+ "parameters": [
355
+ {
356
+ "name": "eventName",
357
+ "docs": "",
358
+ "type": "'readerPairingDidSucceed'"
359
+ },
360
+ {
361
+ "name": "listenerFunc",
362
+ "docs": "",
363
+ "type": "ReaderPairingDidSucceedListener"
364
+ }
365
+ ],
366
+ "returns": "Promise<PluginListenerHandle>",
367
+ "tags": [
368
+ {
369
+ "name": "since",
370
+ "text": "0.0.1"
371
+ }
372
+ ],
373
+ "docs": "Listen for successful reader pairing events.\n\nOnly available on Android and iOS.",
374
+ "complexTypes": [
375
+ "PluginListenerHandle",
376
+ "ReaderPairingDidSucceedListener"
377
+ ],
378
+ "slug": "addlistenerreaderpairingdidsucceed-"
379
+ },
380
+ {
381
+ "name": "addListener",
382
+ "signature": "(eventName: 'readerPairingDidFail', listenerFunc: ReaderPairingDidFailListener) => Promise<PluginListenerHandle>",
383
+ "parameters": [
384
+ {
385
+ "name": "eventName",
386
+ "docs": "",
387
+ "type": "'readerPairingDidFail'"
388
+ },
389
+ {
390
+ "name": "listenerFunc",
391
+ "docs": "",
392
+ "type": "ReaderPairingDidFailListener"
393
+ }
394
+ ],
395
+ "returns": "Promise<PluginListenerHandle>",
396
+ "tags": [
397
+ {
398
+ "name": "since",
399
+ "text": "0.0.1"
400
+ }
401
+ ],
402
+ "docs": "Listen for failed reader pairing events.\n\nOnly available on Android and iOS.",
403
+ "complexTypes": [
404
+ "PluginListenerHandle",
405
+ "ReaderPairingDidFailListener"
406
+ ],
407
+ "slug": "addlistenerreaderpairingdidfail-"
408
+ },
409
+ {
410
+ "name": "addListener",
411
+ "signature": "(eventName: 'readerWasAdded', listenerFunc: ReaderWasAddedListener) => Promise<PluginListenerHandle>",
412
+ "parameters": [
413
+ {
414
+ "name": "eventName",
415
+ "docs": "",
416
+ "type": "'readerWasAdded'"
417
+ },
418
+ {
419
+ "name": "listenerFunc",
420
+ "docs": "",
421
+ "type": "ReaderWasAddedListener"
422
+ }
423
+ ],
424
+ "returns": "Promise<PluginListenerHandle>",
425
+ "tags": [
426
+ {
427
+ "name": "since",
428
+ "text": "0.0.1"
429
+ }
430
+ ],
431
+ "docs": "Listen for reader added events.\n\nOnly available on Android and iOS.",
432
+ "complexTypes": [
433
+ "PluginListenerHandle",
434
+ "ReaderWasAddedListener"
435
+ ],
436
+ "slug": "addlistenerreaderwasadded-"
437
+ },
438
+ {
439
+ "name": "addListener",
440
+ "signature": "(eventName: 'readerWasRemoved', listenerFunc: ReaderWasRemovedListener) => Promise<PluginListenerHandle>",
441
+ "parameters": [
442
+ {
443
+ "name": "eventName",
444
+ "docs": "",
445
+ "type": "'readerWasRemoved'"
446
+ },
447
+ {
448
+ "name": "listenerFunc",
449
+ "docs": "",
450
+ "type": "ReaderWasRemovedListener"
451
+ }
452
+ ],
453
+ "returns": "Promise<PluginListenerHandle>",
454
+ "tags": [
455
+ {
456
+ "name": "since",
457
+ "text": "0.0.1"
458
+ }
459
+ ],
460
+ "docs": "Listen for reader removed events.\n\nOnly available on Android and iOS.",
461
+ "complexTypes": [
462
+ "PluginListenerHandle",
463
+ "ReaderWasRemovedListener"
464
+ ],
465
+ "slug": "addlistenerreaderwasremoved-"
466
+ },
467
+ {
468
+ "name": "addListener",
469
+ "signature": "(eventName: 'readerDidChange', listenerFunc: ReaderDidChangeListener) => Promise<PluginListenerHandle>",
470
+ "parameters": [
471
+ {
472
+ "name": "eventName",
473
+ "docs": "",
474
+ "type": "'readerDidChange'"
475
+ },
476
+ {
477
+ "name": "listenerFunc",
478
+ "docs": "",
479
+ "type": "ReaderDidChangeListener"
480
+ }
481
+ ],
482
+ "returns": "Promise<PluginListenerHandle>",
483
+ "tags": [
484
+ {
485
+ "name": "since",
486
+ "text": "0.0.1"
487
+ }
488
+ ],
489
+ "docs": "Listen for reader status and property changes.\n\nOnly available on Android and iOS.",
490
+ "complexTypes": [
491
+ "PluginListenerHandle",
492
+ "ReaderDidChangeListener"
493
+ ],
494
+ "slug": "addlistenerreaderdidchange-"
495
+ },
496
+ {
497
+ "name": "addListener",
498
+ "signature": "(eventName: 'availableCardInputMethodsDidChange', listenerFunc: AvailableCardInputMethodsDidChangeListener) => Promise<PluginListenerHandle>",
499
+ "parameters": [
500
+ {
501
+ "name": "eventName",
502
+ "docs": "",
503
+ "type": "'availableCardInputMethodsDidChange'"
504
+ },
505
+ {
506
+ "name": "listenerFunc",
507
+ "docs": "",
508
+ "type": "AvailableCardInputMethodsDidChangeListener"
509
+ }
510
+ ],
511
+ "returns": "Promise<PluginListenerHandle>",
512
+ "tags": [
513
+ {
514
+ "name": "since",
515
+ "text": "0.0.1"
516
+ }
517
+ ],
518
+ "docs": "Listen for available card input method changes.\n\nOnly available on Android and iOS.",
519
+ "complexTypes": [
520
+ "PluginListenerHandle",
521
+ "AvailableCardInputMethodsDidChangeListener"
522
+ ],
523
+ "slug": "addlisteneravailablecardinputmethodsdidchange-"
524
+ },
525
+ {
526
+ "name": "addListener",
527
+ "signature": "(eventName: 'paymentDidFinish', listenerFunc: PaymentDidFinishListener) => Promise<PluginListenerHandle>",
528
+ "parameters": [
529
+ {
530
+ "name": "eventName",
531
+ "docs": "",
532
+ "type": "'paymentDidFinish'"
533
+ },
534
+ {
535
+ "name": "listenerFunc",
536
+ "docs": "",
537
+ "type": "PaymentDidFinishListener"
538
+ }
539
+ ],
540
+ "returns": "Promise<PluginListenerHandle>",
541
+ "tags": [
542
+ {
543
+ "name": "since",
544
+ "text": "0.0.1"
545
+ }
546
+ ],
547
+ "docs": "Listen for successful payment completion events.\n\nOnly available on Android and iOS.",
548
+ "complexTypes": [
549
+ "PluginListenerHandle",
550
+ "PaymentDidFinishListener"
551
+ ],
552
+ "slug": "addlistenerpaymentdidfinish-"
553
+ },
554
+ {
555
+ "name": "addListener",
556
+ "signature": "(eventName: 'paymentDidFail', listenerFunc: PaymentDidFailListener) => Promise<PluginListenerHandle>",
557
+ "parameters": [
558
+ {
559
+ "name": "eventName",
560
+ "docs": "",
561
+ "type": "'paymentDidFail'"
562
+ },
563
+ {
564
+ "name": "listenerFunc",
565
+ "docs": "",
566
+ "type": "PaymentDidFailListener"
567
+ }
568
+ ],
569
+ "returns": "Promise<PluginListenerHandle>",
570
+ "tags": [
571
+ {
572
+ "name": "since",
573
+ "text": "0.0.1"
574
+ }
575
+ ],
576
+ "docs": "Listen for failed payment events.\n\nOnly available on Android and iOS.",
577
+ "complexTypes": [
578
+ "PluginListenerHandle",
579
+ "PaymentDidFailListener"
580
+ ],
581
+ "slug": "addlistenerpaymentdidfail-"
582
+ },
583
+ {
584
+ "name": "addListener",
585
+ "signature": "(eventName: 'paymentDidCancel', listenerFunc: PaymentDidCancelListener) => Promise<PluginListenerHandle>",
586
+ "parameters": [
587
+ {
588
+ "name": "eventName",
589
+ "docs": "",
590
+ "type": "'paymentDidCancel'"
591
+ },
592
+ {
593
+ "name": "listenerFunc",
594
+ "docs": "",
595
+ "type": "PaymentDidCancelListener"
596
+ }
597
+ ],
598
+ "returns": "Promise<PluginListenerHandle>",
599
+ "tags": [
600
+ {
601
+ "name": "since",
602
+ "text": "0.0.1"
603
+ }
604
+ ],
605
+ "docs": "Listen for cancelled payment events.\n\nOnly available on Android and iOS.",
606
+ "complexTypes": [
607
+ "PluginListenerHandle",
608
+ "PaymentDidCancelListener"
609
+ ],
610
+ "slug": "addlistenerpaymentdidcancel-"
611
+ },
612
+ {
613
+ "name": "removeAllListeners",
614
+ "signature": "() => Promise<void>",
615
+ "parameters": [],
616
+ "returns": "Promise<void>",
617
+ "tags": [
618
+ {
619
+ "name": "since",
620
+ "text": "0.0.1"
621
+ }
622
+ ],
623
+ "docs": "Remove all listeners for this plugin.\n\nOnly available on Android and iOS.",
624
+ "complexTypes": [],
625
+ "slug": "removealllisteners"
626
+ }
627
+ ],
628
+ "properties": []
629
+ },
630
+ "interfaces": [
631
+ {
632
+ "name": "InitializeOptions",
633
+ "slug": "initializeoptions",
634
+ "docs": "",
635
+ "tags": [
636
+ {
637
+ "text": "0.0.1",
638
+ "name": "since"
639
+ }
640
+ ],
641
+ "methods": [],
642
+ "properties": [
643
+ {
644
+ "name": "locationId",
645
+ "tags": [
646
+ {
647
+ "text": "0.0.1",
648
+ "name": "since"
649
+ },
650
+ {
651
+ "text": "'LOCATION_ID'",
652
+ "name": "example"
653
+ }
654
+ ],
655
+ "docs": "The Square location ID.",
656
+ "complexTypes": [],
657
+ "type": "string"
658
+ }
659
+ ]
660
+ },
661
+ {
662
+ "name": "AuthorizeOptions",
663
+ "slug": "authorizeoptions",
664
+ "docs": "",
665
+ "tags": [
666
+ {
667
+ "text": "0.0.1",
668
+ "name": "since"
669
+ }
670
+ ],
671
+ "methods": [],
672
+ "properties": [
673
+ {
674
+ "name": "accessToken",
675
+ "tags": [
676
+ {
677
+ "text": "0.0.1",
678
+ "name": "since"
679
+ },
680
+ {
681
+ "text": "'EAAAEOuLQPDbLd...'",
682
+ "name": "example"
683
+ }
684
+ ],
685
+ "docs": "The Square access token.",
686
+ "complexTypes": [],
687
+ "type": "string"
688
+ }
689
+ ]
690
+ },
691
+ {
692
+ "name": "IsAuthorizedResult",
693
+ "slug": "isauthorizedresult",
694
+ "docs": "",
695
+ "tags": [
696
+ {
697
+ "text": "0.0.1",
698
+ "name": "since"
699
+ }
700
+ ],
701
+ "methods": [],
702
+ "properties": [
703
+ {
704
+ "name": "authorized",
705
+ "tags": [
706
+ {
707
+ "text": "0.0.1",
708
+ "name": "since"
709
+ }
710
+ ],
711
+ "docs": "Whether the SDK is currently authorized.",
712
+ "complexTypes": [],
713
+ "type": "boolean"
714
+ }
715
+ ]
716
+ },
717
+ {
718
+ "name": "GetSettingsResult",
719
+ "slug": "getsettingsresult",
720
+ "docs": "",
721
+ "tags": [
722
+ {
723
+ "text": "0.0.1",
724
+ "name": "since"
725
+ }
726
+ ],
727
+ "methods": [],
728
+ "properties": [
729
+ {
730
+ "name": "version",
731
+ "tags": [
732
+ {
733
+ "text": "0.0.1",
734
+ "name": "since"
735
+ },
736
+ {
737
+ "text": "'2.0.0'",
738
+ "name": "example"
739
+ }
740
+ ],
741
+ "docs": "The SDK version.",
742
+ "complexTypes": [],
743
+ "type": "string"
744
+ },
745
+ {
746
+ "name": "environment",
747
+ "tags": [
748
+ {
749
+ "text": "0.0.1",
750
+ "name": "since"
751
+ },
752
+ {
753
+ "text": "'production'",
754
+ "name": "example"
755
+ }
756
+ ],
757
+ "docs": "The current environment.",
758
+ "complexTypes": [
759
+ "Environment"
760
+ ],
761
+ "type": "Environment"
762
+ }
763
+ ]
764
+ },
765
+ {
766
+ "name": "IsPairingInProgressResult",
767
+ "slug": "ispairinginprogressresult",
768
+ "docs": "",
769
+ "tags": [
770
+ {
771
+ "text": "0.0.1",
772
+ "name": "since"
773
+ }
774
+ ],
775
+ "methods": [],
776
+ "properties": [
777
+ {
778
+ "name": "inProgress",
779
+ "tags": [
780
+ {
781
+ "text": "0.0.1",
782
+ "name": "since"
783
+ }
784
+ ],
785
+ "docs": "Whether a pairing process is currently in progress.",
786
+ "complexTypes": [],
787
+ "type": "boolean"
788
+ }
789
+ ]
790
+ },
791
+ {
792
+ "name": "GetReadersResult",
793
+ "slug": "getreadersresult",
794
+ "docs": "",
795
+ "tags": [
796
+ {
797
+ "text": "0.0.1",
798
+ "name": "since"
799
+ }
800
+ ],
801
+ "methods": [],
802
+ "properties": [
803
+ {
804
+ "name": "readers",
805
+ "tags": [
806
+ {
807
+ "text": "0.0.1",
808
+ "name": "since"
809
+ }
810
+ ],
811
+ "docs": "The list of paired readers.",
812
+ "complexTypes": [
813
+ "ReaderInfo"
814
+ ],
815
+ "type": "ReaderInfo[]"
816
+ }
817
+ ]
818
+ },
819
+ {
820
+ "name": "ReaderInfo",
821
+ "slug": "readerinfo",
822
+ "docs": "",
823
+ "tags": [
824
+ {
825
+ "text": "0.0.1",
826
+ "name": "since"
827
+ }
828
+ ],
829
+ "methods": [],
830
+ "properties": [
831
+ {
832
+ "name": "serialNumber",
833
+ "tags": [
834
+ {
835
+ "text": "0.0.1",
836
+ "name": "since"
837
+ },
838
+ {
839
+ "text": "'CRR123456789'",
840
+ "name": "example"
841
+ }
842
+ ],
843
+ "docs": "The reader's serial number.",
844
+ "complexTypes": [],
845
+ "type": "string"
846
+ },
847
+ {
848
+ "name": "model",
849
+ "tags": [
850
+ {
851
+ "text": "0.0.1",
852
+ "name": "since"
853
+ }
854
+ ],
855
+ "docs": "The reader's model.",
856
+ "complexTypes": [
857
+ "ReaderModel"
858
+ ],
859
+ "type": "ReaderModel"
860
+ },
861
+ {
862
+ "name": "status",
863
+ "tags": [
864
+ {
865
+ "text": "0.0.1",
866
+ "name": "since"
867
+ }
868
+ ],
869
+ "docs": "The reader's current status.",
870
+ "complexTypes": [
871
+ "ReaderStatus"
872
+ ],
873
+ "type": "ReaderStatus"
874
+ },
875
+ {
876
+ "name": "firmwareVersion",
877
+ "tags": [
878
+ {
879
+ "text": "0.0.1",
880
+ "name": "since"
881
+ },
882
+ {
883
+ "text": "'1.2.3'",
884
+ "name": "example"
885
+ }
886
+ ],
887
+ "docs": "The reader's firmware version.",
888
+ "complexTypes": [],
889
+ "type": "string | undefined"
890
+ },
891
+ {
892
+ "name": "batteryLevel",
893
+ "tags": [
894
+ {
895
+ "text": "0.0.1",
896
+ "name": "since"
897
+ },
898
+ {
899
+ "text": "85",
900
+ "name": "example"
901
+ }
902
+ ],
903
+ "docs": "The reader's battery level (0-100).",
904
+ "complexTypes": [],
905
+ "type": "number | undefined"
906
+ },
907
+ {
908
+ "name": "isCharging",
909
+ "tags": [
910
+ {
911
+ "text": "0.0.1",
912
+ "name": "since"
913
+ }
914
+ ],
915
+ "docs": "Whether the reader is currently charging.",
916
+ "complexTypes": [],
917
+ "type": "boolean | undefined"
918
+ },
919
+ {
920
+ "name": "supportedCardInputMethods",
921
+ "tags": [
922
+ {
923
+ "text": "0.0.1",
924
+ "name": "since"
925
+ }
926
+ ],
927
+ "docs": "The card input methods supported by this reader.",
928
+ "complexTypes": [
929
+ "CardInputMethod"
930
+ ],
931
+ "type": "CardInputMethod[]"
932
+ },
933
+ {
934
+ "name": "unavailableReasonInfo",
935
+ "tags": [
936
+ {
937
+ "text": "0.0.1",
938
+ "name": "since"
939
+ }
940
+ ],
941
+ "docs": "Additional information about why the reader is unavailable.\n\nOnly present when status is ReaderUnavailable.",
942
+ "complexTypes": [
943
+ "UnavailableReasonInfo"
944
+ ],
945
+ "type": "UnavailableReasonInfo"
946
+ }
947
+ ]
948
+ },
949
+ {
950
+ "name": "UnavailableReasonInfo",
951
+ "slug": "unavailablereasoninfo",
952
+ "docs": "",
953
+ "tags": [
954
+ {
955
+ "text": "0.0.1",
956
+ "name": "since"
957
+ }
958
+ ],
959
+ "methods": [],
960
+ "properties": [
961
+ {
962
+ "name": "reason",
963
+ "tags": [
964
+ {
965
+ "text": "0.0.1",
966
+ "name": "since"
967
+ }
968
+ ],
969
+ "docs": "The reason code why the reader is unavailable.",
970
+ "complexTypes": [
971
+ "UnavailableReason"
972
+ ],
973
+ "type": "UnavailableReason"
974
+ },
975
+ {
976
+ "name": "message",
977
+ "tags": [
978
+ {
979
+ "text": "0.0.1",
980
+ "name": "since"
981
+ }
982
+ ],
983
+ "docs": "A human-readable message describing why the reader is unavailable.",
984
+ "complexTypes": [],
985
+ "type": "string | undefined"
986
+ }
987
+ ]
988
+ },
989
+ {
990
+ "name": "ForgetReaderOptions",
991
+ "slug": "forgetreaderoptions",
992
+ "docs": "",
993
+ "tags": [
994
+ {
995
+ "text": "0.0.1",
996
+ "name": "since"
997
+ }
998
+ ],
999
+ "methods": [],
1000
+ "properties": [
1001
+ {
1002
+ "name": "serialNumber",
1003
+ "tags": [
1004
+ {
1005
+ "text": "0.0.1",
1006
+ "name": "since"
1007
+ },
1008
+ {
1009
+ "text": "'CRR123456789'",
1010
+ "name": "example"
1011
+ }
1012
+ ],
1013
+ "docs": "The serial number of the reader to forget.",
1014
+ "complexTypes": [],
1015
+ "type": "string"
1016
+ }
1017
+ ]
1018
+ },
1019
+ {
1020
+ "name": "RetryConnectionOptions",
1021
+ "slug": "retryconnectionoptions",
1022
+ "docs": "",
1023
+ "tags": [
1024
+ {
1025
+ "text": "0.0.1",
1026
+ "name": "since"
1027
+ }
1028
+ ],
1029
+ "methods": [],
1030
+ "properties": [
1031
+ {
1032
+ "name": "serialNumber",
1033
+ "tags": [
1034
+ {
1035
+ "text": "0.0.1",
1036
+ "name": "since"
1037
+ },
1038
+ {
1039
+ "text": "'CRR123456789'",
1040
+ "name": "example"
1041
+ }
1042
+ ],
1043
+ "docs": "The serial number of the reader to retry connection.",
1044
+ "complexTypes": [],
1045
+ "type": "string"
1046
+ }
1047
+ ]
1048
+ },
1049
+ {
1050
+ "name": "StartPaymentOptions",
1051
+ "slug": "startpaymentoptions",
1052
+ "docs": "",
1053
+ "tags": [
1054
+ {
1055
+ "text": "0.0.1",
1056
+ "name": "since"
1057
+ }
1058
+ ],
1059
+ "methods": [],
1060
+ "properties": [
1061
+ {
1062
+ "name": "paymentParameters",
1063
+ "tags": [
1064
+ {
1065
+ "text": "0.0.1",
1066
+ "name": "since"
1067
+ }
1068
+ ],
1069
+ "docs": "The payment parameters.",
1070
+ "complexTypes": [
1071
+ "PaymentParameters"
1072
+ ],
1073
+ "type": "PaymentParameters"
1074
+ },
1075
+ {
1076
+ "name": "promptParameters",
1077
+ "tags": [
1078
+ {
1079
+ "text": "0.0.1",
1080
+ "name": "since"
1081
+ }
1082
+ ],
1083
+ "docs": "The prompt parameters.",
1084
+ "complexTypes": [
1085
+ "PromptParameters"
1086
+ ],
1087
+ "type": "PromptParameters"
1088
+ }
1089
+ ]
1090
+ },
1091
+ {
1092
+ "name": "PaymentParameters",
1093
+ "slug": "paymentparameters",
1094
+ "docs": "",
1095
+ "tags": [
1096
+ {
1097
+ "text": "0.0.1",
1098
+ "name": "since"
1099
+ }
1100
+ ],
1101
+ "methods": [],
1102
+ "properties": [
1103
+ {
1104
+ "name": "amountMoney",
1105
+ "tags": [
1106
+ {
1107
+ "text": "0.0.1",
1108
+ "name": "since"
1109
+ }
1110
+ ],
1111
+ "docs": "The amount of money to charge.",
1112
+ "complexTypes": [
1113
+ "Money"
1114
+ ],
1115
+ "type": "Money"
1116
+ },
1117
+ {
1118
+ "name": "paymentAttemptId",
1119
+ "tags": [
1120
+ {
1121
+ "text": "0.0.1",
1122
+ "name": "since"
1123
+ },
1124
+ {
1125
+ "text": "'a1b2c3d4-e5f6-4a5b-8c9d-1e2f3a4b5c6d'",
1126
+ "name": "example"
1127
+ }
1128
+ ],
1129
+ "docs": "A unique identifier for this payment attempt.\n\nThis is used for idempotent payment requests.",
1130
+ "complexTypes": [],
1131
+ "type": "string"
1132
+ },
1133
+ {
1134
+ "name": "processingMode",
1135
+ "tags": [
1136
+ {
1137
+ "text": "0.0.1",
1138
+ "name": "since"
1139
+ },
1140
+ {
1141
+ "text": "ProcessingMode.AutoDetect",
1142
+ "name": "default"
1143
+ }
1144
+ ],
1145
+ "docs": "The processing mode for this payment.",
1146
+ "complexTypes": [
1147
+ "ProcessingMode"
1148
+ ],
1149
+ "type": "ProcessingMode"
1150
+ },
1151
+ {
1152
+ "name": "referenceId",
1153
+ "tags": [
1154
+ {
1155
+ "text": "0.0.1",
1156
+ "name": "since"
1157
+ },
1158
+ {
1159
+ "text": "'ORDER-12345'",
1160
+ "name": "example"
1161
+ }
1162
+ ],
1163
+ "docs": "A user-defined reference ID to associate with the payment.",
1164
+ "complexTypes": [],
1165
+ "type": "string | undefined"
1166
+ },
1167
+ {
1168
+ "name": "note",
1169
+ "tags": [
1170
+ {
1171
+ "text": "0.0.1",
1172
+ "name": "since"
1173
+ },
1174
+ {
1175
+ "text": "'Birthday gift'",
1176
+ "name": "example"
1177
+ }
1178
+ ],
1179
+ "docs": "An optional note to add to the payment.",
1180
+ "complexTypes": [],
1181
+ "type": "string | undefined"
1182
+ },
1183
+ {
1184
+ "name": "orderId",
1185
+ "tags": [
1186
+ {
1187
+ "text": "0.0.1",
1188
+ "name": "since"
1189
+ },
1190
+ {
1191
+ "text": "'CAISENgvlJ6jLWAzERDzjyHVybY'",
1192
+ "name": "example"
1193
+ }
1194
+ ],
1195
+ "docs": "The Square order ID to associate with this payment.",
1196
+ "complexTypes": [],
1197
+ "type": "string | undefined"
1198
+ },
1199
+ {
1200
+ "name": "tipMoney",
1201
+ "tags": [
1202
+ {
1203
+ "text": "0.0.1",
1204
+ "name": "since"
1205
+ }
1206
+ ],
1207
+ "docs": "The tip amount.",
1208
+ "complexTypes": [
1209
+ "Money"
1210
+ ],
1211
+ "type": "Money"
1212
+ },
1213
+ {
1214
+ "name": "applicationFee",
1215
+ "tags": [
1216
+ {
1217
+ "text": "0.0.1",
1218
+ "name": "since"
1219
+ }
1220
+ ],
1221
+ "docs": "The application fee.",
1222
+ "complexTypes": [
1223
+ "Money"
1224
+ ],
1225
+ "type": "Money"
1226
+ },
1227
+ {
1228
+ "name": "autocomplete",
1229
+ "tags": [
1230
+ {
1231
+ "text": "0.0.1",
1232
+ "name": "since"
1233
+ },
1234
+ {
1235
+ "text": "true",
1236
+ "name": "default"
1237
+ }
1238
+ ],
1239
+ "docs": "Whether to automatically complete the payment.\n\nIf false, the payment will be authorized but not captured, requiring\nmanual completion via the Payments API.",
1240
+ "complexTypes": [],
1241
+ "type": "boolean | undefined"
1242
+ },
1243
+ {
1244
+ "name": "delayDuration",
1245
+ "tags": [
1246
+ {
1247
+ "text": "0.0.1",
1248
+ "name": "since"
1249
+ },
1250
+ {
1251
+ "text": "'PT1H'",
1252
+ "name": "example"
1253
+ }
1254
+ ],
1255
+ "docs": "The duration to delay before automatically completing or canceling the payment.\n\nOnly applicable when autocomplete is false.",
1256
+ "complexTypes": [],
1257
+ "type": "string | undefined"
1258
+ },
1259
+ {
1260
+ "name": "delayAction",
1261
+ "tags": [
1262
+ {
1263
+ "text": "0.0.1",
1264
+ "name": "since"
1265
+ }
1266
+ ],
1267
+ "docs": "The action to take when the delay duration expires.\n\nOnly applicable when autocomplete is false.",
1268
+ "complexTypes": [
1269
+ "DelayAction"
1270
+ ],
1271
+ "type": "DelayAction"
1272
+ }
1273
+ ]
1274
+ },
1275
+ {
1276
+ "name": "Money",
1277
+ "slug": "money",
1278
+ "docs": "",
1279
+ "tags": [
1280
+ {
1281
+ "text": "0.0.1",
1282
+ "name": "since"
1283
+ }
1284
+ ],
1285
+ "methods": [],
1286
+ "properties": [
1287
+ {
1288
+ "name": "amount",
1289
+ "tags": [
1290
+ {
1291
+ "text": "0.0.1",
1292
+ "name": "since"
1293
+ },
1294
+ {
1295
+ "text": "100",
1296
+ "name": "example"
1297
+ }
1298
+ ],
1299
+ "docs": "The amount in the smallest currency unit (e.g., cents for USD).",
1300
+ "complexTypes": [],
1301
+ "type": "number"
1302
+ },
1303
+ {
1304
+ "name": "currency",
1305
+ "tags": [
1306
+ {
1307
+ "text": "0.0.1",
1308
+ "name": "since"
1309
+ },
1310
+ {
1311
+ "text": "'USD'",
1312
+ "name": "example"
1313
+ }
1314
+ ],
1315
+ "docs": "The ISO 4217 currency code.",
1316
+ "complexTypes": [
1317
+ "CurrencyCode"
1318
+ ],
1319
+ "type": "CurrencyCode"
1320
+ }
1321
+ ]
1322
+ },
1323
+ {
1324
+ "name": "PromptParameters",
1325
+ "slug": "promptparameters",
1326
+ "docs": "",
1327
+ "tags": [
1328
+ {
1329
+ "text": "0.0.1",
1330
+ "name": "since"
1331
+ }
1332
+ ],
1333
+ "methods": [],
1334
+ "properties": [
1335
+ {
1336
+ "name": "mode",
1337
+ "tags": [
1338
+ {
1339
+ "text": "0.0.1",
1340
+ "name": "since"
1341
+ },
1342
+ {
1343
+ "text": "PromptMode.Default",
1344
+ "name": "default"
1345
+ }
1346
+ ],
1347
+ "docs": "The prompt mode.",
1348
+ "complexTypes": [
1349
+ "PromptMode"
1350
+ ],
1351
+ "type": "PromptMode"
1352
+ },
1353
+ {
1354
+ "name": "additionalMethods",
1355
+ "tags": [
1356
+ {
1357
+ "text": "0.0.1",
1358
+ "name": "since"
1359
+ },
1360
+ {
1361
+ "text": "[]",
1362
+ "name": "default"
1363
+ }
1364
+ ],
1365
+ "docs": "Additional payment methods to allow.",
1366
+ "complexTypes": [
1367
+ "AdditionalPaymentMethod"
1368
+ ],
1369
+ "type": "AdditionalPaymentMethod[] | undefined"
1370
+ }
1371
+ ]
1372
+ },
1373
+ {
1374
+ "name": "GetAvailableCardInputMethodsResult",
1375
+ "slug": "getavailablecardinputmethodsresult",
1376
+ "docs": "",
1377
+ "tags": [
1378
+ {
1379
+ "text": "0.0.1",
1380
+ "name": "since"
1381
+ }
1382
+ ],
1383
+ "methods": [],
1384
+ "properties": [
1385
+ {
1386
+ "name": "cardInputMethods",
1387
+ "tags": [
1388
+ {
1389
+ "text": "0.0.1",
1390
+ "name": "since"
1391
+ }
1392
+ ],
1393
+ "docs": "The available card input methods.",
1394
+ "complexTypes": [
1395
+ "CardInputMethod"
1396
+ ],
1397
+ "type": "CardInputMethod[]"
1398
+ }
1399
+ ]
1400
+ },
1401
+ {
1402
+ "name": "PermissionStatus",
1403
+ "slug": "permissionstatus",
1404
+ "docs": "",
1405
+ "tags": [
1406
+ {
1407
+ "text": "0.0.1",
1408
+ "name": "since"
1409
+ }
1410
+ ],
1411
+ "methods": [],
1412
+ "properties": [
1413
+ {
1414
+ "name": "location",
1415
+ "tags": [
1416
+ {
1417
+ "text": "0.0.1",
1418
+ "name": "since"
1419
+ }
1420
+ ],
1421
+ "docs": "Permission state for accessing location.\n\nRequired to confirm that payments are occurring in a supported Square location.",
1422
+ "complexTypes": [
1423
+ "PermissionState"
1424
+ ],
1425
+ "type": "PermissionState"
1426
+ },
1427
+ {
1428
+ "name": "recordAudio",
1429
+ "tags": [
1430
+ {
1431
+ "text": "0.0.1",
1432
+ "name": "since"
1433
+ }
1434
+ ],
1435
+ "docs": "Permission state for recording audio.\n\nRequired to receive data from magstripe readers.\n\nOnly available on Android.",
1436
+ "complexTypes": [
1437
+ "PermissionState"
1438
+ ],
1439
+ "type": "PermissionState"
1440
+ },
1441
+ {
1442
+ "name": "bluetoothConnect",
1443
+ "tags": [
1444
+ {
1445
+ "text": "0.0.1",
1446
+ "name": "since"
1447
+ }
1448
+ ],
1449
+ "docs": "Permission state for Bluetooth connect.\n\nRequired to receive data from contactless and chip readers.\n\nOnly available on Android.",
1450
+ "complexTypes": [
1451
+ "PermissionState"
1452
+ ],
1453
+ "type": "PermissionState"
1454
+ },
1455
+ {
1456
+ "name": "bluetoothScan",
1457
+ "tags": [
1458
+ {
1459
+ "text": "0.0.1",
1460
+ "name": "since"
1461
+ }
1462
+ ],
1463
+ "docs": "Permission state for Bluetooth scan.\n\nRequired to store information during checkout.\n\nOnly available on Android.",
1464
+ "complexTypes": [
1465
+ "PermissionState"
1466
+ ],
1467
+ "type": "PermissionState"
1468
+ },
1469
+ {
1470
+ "name": "readPhoneState",
1471
+ "tags": [
1472
+ {
1473
+ "text": "0.0.1",
1474
+ "name": "since"
1475
+ }
1476
+ ],
1477
+ "docs": "Permission state for reading phone state.\n\nRequired to identify the device sending information to Square servers.\n\nOnly available on Android.",
1478
+ "complexTypes": [
1479
+ "PermissionState"
1480
+ ],
1481
+ "type": "PermissionState"
1482
+ },
1483
+ {
1484
+ "name": "bluetooth",
1485
+ "tags": [
1486
+ {
1487
+ "text": "0.0.1",
1488
+ "name": "since"
1489
+ }
1490
+ ],
1491
+ "docs": "Permission state for using Bluetooth.\n\nOnly available on iOS.",
1492
+ "complexTypes": [
1493
+ "PermissionState"
1494
+ ],
1495
+ "type": "PermissionState"
1496
+ }
1497
+ ]
1498
+ },
1499
+ {
1500
+ "name": "PluginListenerHandle",
1501
+ "slug": "pluginlistenerhandle",
1502
+ "docs": "",
1503
+ "tags": [],
1504
+ "methods": [],
1505
+ "properties": [
1506
+ {
1507
+ "name": "remove",
1508
+ "tags": [],
1509
+ "docs": "",
1510
+ "complexTypes": [],
1511
+ "type": "() => Promise<void>"
1512
+ }
1513
+ ]
1514
+ },
1515
+ {
1516
+ "name": "ReaderPairingDidFailEvent",
1517
+ "slug": "readerpairingdidfailevent",
1518
+ "docs": "",
1519
+ "tags": [
1520
+ {
1521
+ "text": "0.0.1",
1522
+ "name": "since"
1523
+ }
1524
+ ],
1525
+ "methods": [],
1526
+ "properties": [
1527
+ {
1528
+ "name": "code",
1529
+ "tags": [
1530
+ {
1531
+ "text": "0.0.1",
1532
+ "name": "since"
1533
+ }
1534
+ ],
1535
+ "docs": "The error code.",
1536
+ "complexTypes": [],
1537
+ "type": "string | undefined"
1538
+ },
1539
+ {
1540
+ "name": "message",
1541
+ "tags": [
1542
+ {
1543
+ "text": "0.0.1",
1544
+ "name": "since"
1545
+ }
1546
+ ],
1547
+ "docs": "The error message.",
1548
+ "complexTypes": [],
1549
+ "type": "string"
1550
+ }
1551
+ ]
1552
+ },
1553
+ {
1554
+ "name": "ReaderWasAddedEvent",
1555
+ "slug": "readerwasaddedevent",
1556
+ "docs": "",
1557
+ "tags": [
1558
+ {
1559
+ "text": "0.0.1",
1560
+ "name": "since"
1561
+ }
1562
+ ],
1563
+ "methods": [],
1564
+ "properties": [
1565
+ {
1566
+ "name": "reader",
1567
+ "tags": [
1568
+ {
1569
+ "text": "0.0.1",
1570
+ "name": "since"
1571
+ }
1572
+ ],
1573
+ "docs": "The reader that was added.",
1574
+ "complexTypes": [
1575
+ "ReaderInfo"
1576
+ ],
1577
+ "type": "ReaderInfo"
1578
+ }
1579
+ ]
1580
+ },
1581
+ {
1582
+ "name": "ReaderWasRemovedEvent",
1583
+ "slug": "readerwasremovedevent",
1584
+ "docs": "",
1585
+ "tags": [
1586
+ {
1587
+ "text": "0.0.1",
1588
+ "name": "since"
1589
+ }
1590
+ ],
1591
+ "methods": [],
1592
+ "properties": [
1593
+ {
1594
+ "name": "reader",
1595
+ "tags": [
1596
+ {
1597
+ "text": "0.0.1",
1598
+ "name": "since"
1599
+ }
1600
+ ],
1601
+ "docs": "The reader that was removed.",
1602
+ "complexTypes": [
1603
+ "ReaderInfo"
1604
+ ],
1605
+ "type": "ReaderInfo"
1606
+ }
1607
+ ]
1608
+ },
1609
+ {
1610
+ "name": "ReaderDidChangeEvent",
1611
+ "slug": "readerdidchangeevent",
1612
+ "docs": "",
1613
+ "tags": [
1614
+ {
1615
+ "text": "0.0.1",
1616
+ "name": "since"
1617
+ }
1618
+ ],
1619
+ "methods": [],
1620
+ "properties": [
1621
+ {
1622
+ "name": "reader",
1623
+ "tags": [
1624
+ {
1625
+ "text": "0.0.1",
1626
+ "name": "since"
1627
+ }
1628
+ ],
1629
+ "docs": "The reader that changed.",
1630
+ "complexTypes": [
1631
+ "ReaderInfo"
1632
+ ],
1633
+ "type": "ReaderInfo"
1634
+ },
1635
+ {
1636
+ "name": "change",
1637
+ "tags": [
1638
+ {
1639
+ "text": "0.0.1",
1640
+ "name": "since"
1641
+ }
1642
+ ],
1643
+ "docs": "The type of change that occurred.",
1644
+ "complexTypes": [
1645
+ "ReaderChange"
1646
+ ],
1647
+ "type": "ReaderChange"
1648
+ }
1649
+ ]
1650
+ },
1651
+ {
1652
+ "name": "AvailableCardInputMethodsDidChangeEvent",
1653
+ "slug": "availablecardinputmethodsdidchangeevent",
1654
+ "docs": "",
1655
+ "tags": [
1656
+ {
1657
+ "text": "0.0.1",
1658
+ "name": "since"
1659
+ }
1660
+ ],
1661
+ "methods": [],
1662
+ "properties": [
1663
+ {
1664
+ "name": "cardInputMethods",
1665
+ "tags": [
1666
+ {
1667
+ "text": "0.0.1",
1668
+ "name": "since"
1669
+ }
1670
+ ],
1671
+ "docs": "The available card input methods.",
1672
+ "complexTypes": [
1673
+ "CardInputMethod"
1674
+ ],
1675
+ "type": "CardInputMethod[]"
1676
+ }
1677
+ ]
1678
+ },
1679
+ {
1680
+ "name": "PaymentDidFinishEvent",
1681
+ "slug": "paymentdidfinishevent",
1682
+ "docs": "",
1683
+ "tags": [
1684
+ {
1685
+ "text": "0.0.1",
1686
+ "name": "since"
1687
+ }
1688
+ ],
1689
+ "methods": [],
1690
+ "properties": [
1691
+ {
1692
+ "name": "payment",
1693
+ "tags": [
1694
+ {
1695
+ "text": "0.0.1",
1696
+ "name": "since"
1697
+ }
1698
+ ],
1699
+ "docs": "The completed payment.",
1700
+ "complexTypes": [
1701
+ "Payment"
1702
+ ],
1703
+ "type": "Payment"
1704
+ }
1705
+ ]
1706
+ },
1707
+ {
1708
+ "name": "Payment",
1709
+ "slug": "payment",
1710
+ "docs": "",
1711
+ "tags": [
1712
+ {
1713
+ "text": "0.0.1",
1714
+ "name": "since"
1715
+ }
1716
+ ],
1717
+ "methods": [],
1718
+ "properties": [
1719
+ {
1720
+ "name": "id",
1721
+ "tags": [
1722
+ {
1723
+ "text": "0.0.1",
1724
+ "name": "since"
1725
+ },
1726
+ {
1727
+ "text": "'AbCdEfGhIjKlMnOpQrStUvWxYz'",
1728
+ "name": "example"
1729
+ }
1730
+ ],
1731
+ "docs": "The unique identifier for this payment.\n\nFor offline payments, this may be null until synced.",
1732
+ "complexTypes": [],
1733
+ "type": "string | null"
1734
+ },
1735
+ {
1736
+ "name": "type",
1737
+ "tags": [
1738
+ {
1739
+ "text": "0.0.1",
1740
+ "name": "since"
1741
+ }
1742
+ ],
1743
+ "docs": "The payment type.",
1744
+ "complexTypes": [
1745
+ "PaymentType"
1746
+ ],
1747
+ "type": "PaymentType"
1748
+ },
1749
+ {
1750
+ "name": "status",
1751
+ "tags": [
1752
+ {
1753
+ "text": "0.0.1",
1754
+ "name": "since"
1755
+ }
1756
+ ],
1757
+ "docs": "The payment status.",
1758
+ "complexTypes": [
1759
+ "PaymentStatus"
1760
+ ],
1761
+ "type": "PaymentStatus"
1762
+ },
1763
+ {
1764
+ "name": "amountMoney",
1765
+ "tags": [
1766
+ {
1767
+ "text": "0.0.1",
1768
+ "name": "since"
1769
+ }
1770
+ ],
1771
+ "docs": "The amount paid.",
1772
+ "complexTypes": [
1773
+ "Money"
1774
+ ],
1775
+ "type": "Money"
1776
+ },
1777
+ {
1778
+ "name": "tipMoney",
1779
+ "tags": [
1780
+ {
1781
+ "text": "0.0.1",
1782
+ "name": "since"
1783
+ }
1784
+ ],
1785
+ "docs": "The tip amount.",
1786
+ "complexTypes": [
1787
+ "Money"
1788
+ ],
1789
+ "type": "Money"
1790
+ },
1791
+ {
1792
+ "name": "applicationFee",
1793
+ "tags": [
1794
+ {
1795
+ "text": "0.0.1",
1796
+ "name": "since"
1797
+ }
1798
+ ],
1799
+ "docs": "The application fee.",
1800
+ "complexTypes": [
1801
+ "Money"
1802
+ ],
1803
+ "type": "Money"
1804
+ },
1805
+ {
1806
+ "name": "referenceId",
1807
+ "tags": [
1808
+ {
1809
+ "text": "0.0.1",
1810
+ "name": "since"
1811
+ }
1812
+ ],
1813
+ "docs": "The reference ID provided in the payment parameters.",
1814
+ "complexTypes": [],
1815
+ "type": "string | undefined"
1816
+ },
1817
+ {
1818
+ "name": "orderId",
1819
+ "tags": [
1820
+ {
1821
+ "text": "0.0.1",
1822
+ "name": "since"
1823
+ }
1824
+ ],
1825
+ "docs": "The order ID associated with this payment.",
1826
+ "complexTypes": [],
1827
+ "type": "string | undefined"
1828
+ },
1829
+ {
1830
+ "name": "cardDetails",
1831
+ "tags": [
1832
+ {
1833
+ "text": "0.0.1",
1834
+ "name": "since"
1835
+ }
1836
+ ],
1837
+ "docs": "Card payment details.\n\nOnly present for card payments.",
1838
+ "complexTypes": [
1839
+ "CardPaymentDetails"
1840
+ ],
1841
+ "type": "CardPaymentDetails"
1842
+ },
1843
+ {
1844
+ "name": "createdAt",
1845
+ "tags": [
1846
+ {
1847
+ "text": "0.0.1",
1848
+ "name": "since"
1849
+ },
1850
+ {
1851
+ "text": "'2024-01-15T10:30:00Z'",
1852
+ "name": "example"
1853
+ }
1854
+ ],
1855
+ "docs": "The time the payment was created (ISO 8601 format).",
1856
+ "complexTypes": [],
1857
+ "type": "string | undefined"
1858
+ },
1859
+ {
1860
+ "name": "updatedAt",
1861
+ "tags": [
1862
+ {
1863
+ "text": "0.0.1",
1864
+ "name": "since"
1865
+ },
1866
+ {
1867
+ "text": "'2024-01-15T10:30:00Z'",
1868
+ "name": "example"
1869
+ }
1870
+ ],
1871
+ "docs": "The time the payment was updated (ISO 8601 format).",
1872
+ "complexTypes": [],
1873
+ "type": "string | undefined"
1874
+ }
1875
+ ]
1876
+ },
1877
+ {
1878
+ "name": "CardPaymentDetails",
1879
+ "slug": "cardpaymentdetails",
1880
+ "docs": "",
1881
+ "tags": [
1882
+ {
1883
+ "text": "0.0.1",
1884
+ "name": "since"
1885
+ }
1886
+ ],
1887
+ "methods": [],
1888
+ "properties": [
1889
+ {
1890
+ "name": "card",
1891
+ "tags": [
1892
+ {
1893
+ "text": "0.0.1",
1894
+ "name": "since"
1895
+ }
1896
+ ],
1897
+ "docs": "The card information.",
1898
+ "complexTypes": [
1899
+ "Card"
1900
+ ],
1901
+ "type": "Card"
1902
+ },
1903
+ {
1904
+ "name": "entryMethod",
1905
+ "tags": [
1906
+ {
1907
+ "text": "0.0.1",
1908
+ "name": "since"
1909
+ }
1910
+ ],
1911
+ "docs": "The card entry method used.",
1912
+ "complexTypes": [
1913
+ "CardInputMethod"
1914
+ ],
1915
+ "type": "CardInputMethod"
1916
+ },
1917
+ {
1918
+ "name": "authorizationCode",
1919
+ "tags": [
1920
+ {
1921
+ "text": "0.0.1",
1922
+ "name": "since"
1923
+ },
1924
+ {
1925
+ "text": "'123456'",
1926
+ "name": "example"
1927
+ }
1928
+ ],
1929
+ "docs": "The authorization code.",
1930
+ "complexTypes": [],
1931
+ "type": "string | undefined"
1932
+ },
1933
+ {
1934
+ "name": "applicationName",
1935
+ "tags": [
1936
+ {
1937
+ "text": "0.0.1",
1938
+ "name": "since"
1939
+ },
1940
+ {
1941
+ "text": "'VISA CREDIT'",
1942
+ "name": "example"
1943
+ }
1944
+ ],
1945
+ "docs": "The EMV application name.",
1946
+ "complexTypes": [],
1947
+ "type": "string | undefined"
1948
+ },
1949
+ {
1950
+ "name": "applicationId",
1951
+ "tags": [
1952
+ {
1953
+ "text": "0.0.1",
1954
+ "name": "since"
1955
+ },
1956
+ {
1957
+ "text": "'A0000000031010'",
1958
+ "name": "example"
1959
+ }
1960
+ ],
1961
+ "docs": "The EMV application identifier.",
1962
+ "complexTypes": [],
1963
+ "type": "string | undefined"
1964
+ }
1965
+ ]
1966
+ },
1967
+ {
1968
+ "name": "Card",
1969
+ "slug": "card",
1970
+ "docs": "",
1971
+ "tags": [
1972
+ {
1973
+ "text": "0.0.1",
1974
+ "name": "since"
1975
+ }
1976
+ ],
1977
+ "methods": [],
1978
+ "properties": [
1979
+ {
1980
+ "name": "brand",
1981
+ "tags": [
1982
+ {
1983
+ "text": "0.0.1",
1984
+ "name": "since"
1985
+ }
1986
+ ],
1987
+ "docs": "The card brand.",
1988
+ "complexTypes": [
1989
+ "CardBrand"
1990
+ ],
1991
+ "type": "CardBrand"
1992
+ },
1993
+ {
1994
+ "name": "lastFourDigits",
1995
+ "tags": [
1996
+ {
1997
+ "text": "0.0.1",
1998
+ "name": "since"
1999
+ },
2000
+ {
2001
+ "text": "'1234'",
2002
+ "name": "example"
2003
+ }
2004
+ ],
2005
+ "docs": "The last four digits of the card number.",
2006
+ "complexTypes": [],
2007
+ "type": "string"
2008
+ },
2009
+ {
2010
+ "name": "cardholderName",
2011
+ "tags": [
2012
+ {
2013
+ "text": "0.0.1",
2014
+ "name": "since"
2015
+ },
2016
+ {
2017
+ "text": "'John Doe'",
2018
+ "name": "example"
2019
+ }
2020
+ ],
2021
+ "docs": "The cardholder name.",
2022
+ "complexTypes": [],
2023
+ "type": "string | undefined"
2024
+ },
2025
+ {
2026
+ "name": "expirationMonth",
2027
+ "tags": [
2028
+ {
2029
+ "text": "0.0.1",
2030
+ "name": "since"
2031
+ },
2032
+ {
2033
+ "text": "12",
2034
+ "name": "example"
2035
+ }
2036
+ ],
2037
+ "docs": "The card expiration month (1-12).",
2038
+ "complexTypes": [],
2039
+ "type": "number | undefined"
2040
+ },
2041
+ {
2042
+ "name": "expirationYear",
2043
+ "tags": [
2044
+ {
2045
+ "text": "0.0.1",
2046
+ "name": "since"
2047
+ },
2048
+ {
2049
+ "text": "2025",
2050
+ "name": "example"
2051
+ }
2052
+ ],
2053
+ "docs": "The card expiration year.",
2054
+ "complexTypes": [],
2055
+ "type": "number | undefined"
2056
+ }
2057
+ ]
2058
+ },
2059
+ {
2060
+ "name": "PaymentDidFailEvent",
2061
+ "slug": "paymentdidfailevent",
2062
+ "docs": "",
2063
+ "tags": [
2064
+ {
2065
+ "text": "0.0.1",
2066
+ "name": "since"
2067
+ }
2068
+ ],
2069
+ "methods": [],
2070
+ "properties": [
2071
+ {
2072
+ "name": "payment",
2073
+ "tags": [
2074
+ {
2075
+ "text": "0.0.1",
2076
+ "name": "since"
2077
+ }
2078
+ ],
2079
+ "docs": "The failed payment.",
2080
+ "complexTypes": [
2081
+ "Payment"
2082
+ ],
2083
+ "type": "Payment"
2084
+ },
2085
+ {
2086
+ "name": "code",
2087
+ "tags": [
2088
+ {
2089
+ "text": "0.0.1",
2090
+ "name": "since"
2091
+ }
2092
+ ],
2093
+ "docs": "The error code.",
2094
+ "complexTypes": [],
2095
+ "type": "string | undefined"
2096
+ },
2097
+ {
2098
+ "name": "message",
2099
+ "tags": [
2100
+ {
2101
+ "text": "0.0.1",
2102
+ "name": "since"
2103
+ }
2104
+ ],
2105
+ "docs": "The error message.",
2106
+ "complexTypes": [],
2107
+ "type": "string"
2108
+ }
2109
+ ]
2110
+ },
2111
+ {
2112
+ "name": "PaymentDidCancelEvent",
2113
+ "slug": "paymentdidcancelevent",
2114
+ "docs": "",
2115
+ "tags": [
2116
+ {
2117
+ "text": "0.0.1",
2118
+ "name": "since"
2119
+ }
2120
+ ],
2121
+ "methods": [],
2122
+ "properties": [
2123
+ {
2124
+ "name": "payment",
2125
+ "tags": [
2126
+ {
2127
+ "text": "0.0.1",
2128
+ "name": "since"
2129
+ }
2130
+ ],
2131
+ "docs": "The cancelled payment.",
2132
+ "complexTypes": [
2133
+ "Payment"
2134
+ ],
2135
+ "type": "Payment"
2136
+ }
2137
+ ]
2138
+ }
2139
+ ],
2140
+ "enums": [
2141
+ {
2142
+ "name": "Environment",
2143
+ "slug": "environment",
2144
+ "members": [
2145
+ {
2146
+ "name": "Production",
2147
+ "value": "'production'",
2148
+ "tags": [
2149
+ {
2150
+ "text": "0.0.1",
2151
+ "name": "since"
2152
+ }
2153
+ ],
2154
+ "docs": "Production environment."
2155
+ },
2156
+ {
2157
+ "name": "Sandbox",
2158
+ "value": "'sandbox'",
2159
+ "tags": [
2160
+ {
2161
+ "text": "0.0.1",
2162
+ "name": "since"
2163
+ }
2164
+ ],
2165
+ "docs": "Sandbox environment for testing."
2166
+ }
2167
+ ]
2168
+ },
2169
+ {
2170
+ "name": "ReaderModel",
2171
+ "slug": "readermodel",
2172
+ "members": [
2173
+ {
2174
+ "name": "ContactlessAndChip",
2175
+ "value": "'CONTACTLESS_AND_CHIP'",
2176
+ "tags": [
2177
+ {
2178
+ "text": "0.0.1",
2179
+ "name": "since"
2180
+ }
2181
+ ],
2182
+ "docs": "Square Reader for contactless and chip."
2183
+ },
2184
+ {
2185
+ "name": "Magstripe",
2186
+ "value": "'MAGSTRIPE'",
2187
+ "tags": [
2188
+ {
2189
+ "text": "0.0.1",
2190
+ "name": "since"
2191
+ }
2192
+ ],
2193
+ "docs": "Square Reader for magstripe."
2194
+ },
2195
+ {
2196
+ "name": "Stand",
2197
+ "value": "'STAND'",
2198
+ "tags": [
2199
+ {
2200
+ "text": "0.0.1",
2201
+ "name": "since"
2202
+ }
2203
+ ],
2204
+ "docs": "Square Stand."
2205
+ },
2206
+ {
2207
+ "name": "Unknown",
2208
+ "value": "'UNKNOWN'",
2209
+ "tags": [
2210
+ {
2211
+ "text": "0.0.1",
2212
+ "name": "since"
2213
+ }
2214
+ ],
2215
+ "docs": "Unknown reader model."
2216
+ }
2217
+ ]
2218
+ },
2219
+ {
2220
+ "name": "ReaderStatus",
2221
+ "slug": "readerstatus",
2222
+ "members": [
2223
+ {
2224
+ "name": "Ready",
2225
+ "value": "'READY'",
2226
+ "tags": [
2227
+ {
2228
+ "text": "0.0.1",
2229
+ "name": "since"
2230
+ }
2231
+ ],
2232
+ "docs": "Reader is paired, connected, and ready to accept payments."
2233
+ },
2234
+ {
2235
+ "name": "ConnectingToSquare",
2236
+ "value": "'CONNECTING_TO_SQUARE'",
2237
+ "tags": [
2238
+ {
2239
+ "text": "0.0.1",
2240
+ "name": "since"
2241
+ }
2242
+ ],
2243
+ "docs": "Reader is connecting to Square servers."
2244
+ },
2245
+ {
2246
+ "name": "ConnectingToDevice",
2247
+ "value": "'CONNECTING_TO_DEVICE'",
2248
+ "tags": [
2249
+ {
2250
+ "text": "0.0.1",
2251
+ "name": "since"
2252
+ }
2253
+ ],
2254
+ "docs": "Reader is connecting to the mobile device."
2255
+ },
2256
+ {
2257
+ "name": "Faulty",
2258
+ "value": "'FAULTY'",
2259
+ "tags": [
2260
+ {
2261
+ "text": "0.0.1",
2262
+ "name": "since"
2263
+ }
2264
+ ],
2265
+ "docs": "Reader has a hardware or connection error in an unrecoverable state."
2266
+ },
2267
+ {
2268
+ "name": "ReaderUnavailable",
2269
+ "value": "'READER_UNAVAILABLE'",
2270
+ "tags": [
2271
+ {
2272
+ "text": "0.0.1",
2273
+ "name": "since"
2274
+ }
2275
+ ],
2276
+ "docs": "Reader is connected but unable to process payments."
2277
+ }
2278
+ ]
2279
+ },
2280
+ {
2281
+ "name": "CardInputMethod",
2282
+ "slug": "cardinputmethod",
2283
+ "members": [
2284
+ {
2285
+ "name": "Tap",
2286
+ "value": "'TAP'",
2287
+ "tags": [
2288
+ {
2289
+ "text": "0.0.1",
2290
+ "name": "since"
2291
+ }
2292
+ ],
2293
+ "docs": "Contactless card tap (NFC)."
2294
+ },
2295
+ {
2296
+ "name": "Dip",
2297
+ "value": "'DIP'",
2298
+ "tags": [
2299
+ {
2300
+ "text": "0.0.1",
2301
+ "name": "since"
2302
+ }
2303
+ ],
2304
+ "docs": "EMV chip card insertion."
2305
+ },
2306
+ {
2307
+ "name": "Swipe",
2308
+ "value": "'SWIPE'",
2309
+ "tags": [
2310
+ {
2311
+ "text": "0.0.1",
2312
+ "name": "since"
2313
+ }
2314
+ ],
2315
+ "docs": "Magnetic stripe swipe."
2316
+ },
2317
+ {
2318
+ "name": "Keyed",
2319
+ "value": "'KEYED'",
2320
+ "tags": [
2321
+ {
2322
+ "text": "0.0.1",
2323
+ "name": "since"
2324
+ }
2325
+ ],
2326
+ "docs": "Manually keyed card entry."
2327
+ }
2328
+ ]
2329
+ },
2330
+ {
2331
+ "name": "UnavailableReason",
2332
+ "slug": "unavailablereason",
2333
+ "members": [
2334
+ {
2335
+ "name": "BluetoothError",
2336
+ "value": "'BLUETOOTH_ERROR'",
2337
+ "tags": [
2338
+ {
2339
+ "text": "0.0.1",
2340
+ "name": "since"
2341
+ }
2342
+ ],
2343
+ "docs": "Bluetooth connection issue.\n\nOnly available on iOS."
2344
+ },
2345
+ {
2346
+ "name": "BluetoothFailure",
2347
+ "value": "'BLUETOOTH_FAILURE'",
2348
+ "tags": [
2349
+ {
2350
+ "text": "0.0.1",
2351
+ "name": "since"
2352
+ }
2353
+ ],
2354
+ "docs": "Bluetooth failure.\n\nOnly available on Android."
2355
+ },
2356
+ {
2357
+ "name": "BluetoothDisabled",
2358
+ "value": "'BLUETOOTH_DISABLED'",
2359
+ "tags": [
2360
+ {
2361
+ "text": "0.0.1",
2362
+ "name": "since"
2363
+ }
2364
+ ],
2365
+ "docs": "Bluetooth is disabled.\n\nOnly available on Android."
2366
+ },
2367
+ {
2368
+ "name": "FirmwareUpdate",
2369
+ "value": "'FIRMWARE_UPDATE'",
2370
+ "tags": [
2371
+ {
2372
+ "text": "0.0.1",
2373
+ "name": "since"
2374
+ }
2375
+ ],
2376
+ "docs": "Reader firmware is updating.\n\nOnly available on iOS."
2377
+ },
2378
+ {
2379
+ "name": "BlockingUpdate",
2380
+ "value": "'BLOCKING_UPDATE'",
2381
+ "tags": [
2382
+ {
2383
+ "text": "0.0.1",
2384
+ "name": "since"
2385
+ }
2386
+ ],
2387
+ "docs": "Blocking firmware update.\n\nOnly available on Android."
2388
+ },
2389
+ {
2390
+ "name": "ReaderUnavailableOffline",
2391
+ "value": "'READER_UNAVAILABLE_OFFLINE'",
2392
+ "tags": [
2393
+ {
2394
+ "text": "0.0.1",
2395
+ "name": "since"
2396
+ }
2397
+ ],
2398
+ "docs": "Reader is unavailable offline.\n\nOnly available on Android."
2399
+ },
2400
+ {
2401
+ "name": "DeviceDeveloperMode",
2402
+ "value": "'DEVICE_DEVELOPER_MODE'",
2403
+ "tags": [
2404
+ {
2405
+ "text": "0.0.1",
2406
+ "name": "since"
2407
+ }
2408
+ ],
2409
+ "docs": "Device is in developer mode.\n\nOnly available on Android."
2410
+ },
2411
+ {
2412
+ "name": "Unknown",
2413
+ "value": "'UNKNOWN'",
2414
+ "tags": [
2415
+ {
2416
+ "text": "0.0.1",
2417
+ "name": "since"
2418
+ }
2419
+ ],
2420
+ "docs": "Unknown reason."
2421
+ }
2422
+ ]
2423
+ },
2424
+ {
2425
+ "name": "ProcessingMode",
2426
+ "slug": "processingmode",
2427
+ "members": [
2428
+ {
2429
+ "name": "AutoDetect",
2430
+ "value": "'AUTO_DETECT'",
2431
+ "tags": [
2432
+ {
2433
+ "text": "0.0.1",
2434
+ "name": "since"
2435
+ }
2436
+ ],
2437
+ "docs": "Automatically detect the best processing mode (online or offline)."
2438
+ },
2439
+ {
2440
+ "name": "OnlineOnly",
2441
+ "value": "'ONLINE_ONLY'",
2442
+ "tags": [
2443
+ {
2444
+ "text": "0.0.1",
2445
+ "name": "since"
2446
+ }
2447
+ ],
2448
+ "docs": "Process the payment online only."
2449
+ },
2450
+ {
2451
+ "name": "OfflineOnly",
2452
+ "value": "'OFFLINE_ONLY'",
2453
+ "tags": [
2454
+ {
2455
+ "text": "0.0.1",
2456
+ "name": "since"
2457
+ }
2458
+ ],
2459
+ "docs": "Allow offline payment processing."
2460
+ }
2461
+ ]
2462
+ },
2463
+ {
2464
+ "name": "DelayAction",
2465
+ "slug": "delayaction",
2466
+ "members": [
2467
+ {
2468
+ "name": "Complete",
2469
+ "value": "'COMPLETE'",
2470
+ "tags": [
2471
+ {
2472
+ "text": "0.0.1",
2473
+ "name": "since"
2474
+ }
2475
+ ],
2476
+ "docs": "Automatically complete the payment when the delay expires."
2477
+ },
2478
+ {
2479
+ "name": "Cancel",
2480
+ "value": "'CANCEL'",
2481
+ "tags": [
2482
+ {
2483
+ "text": "0.0.1",
2484
+ "name": "since"
2485
+ }
2486
+ ],
2487
+ "docs": "Automatically cancel the payment when the delay expires."
2488
+ }
2489
+ ]
2490
+ },
2491
+ {
2492
+ "name": "PromptMode",
2493
+ "slug": "promptmode",
2494
+ "members": [
2495
+ {
2496
+ "name": "Default",
2497
+ "value": "'DEFAULT'",
2498
+ "tags": [
2499
+ {
2500
+ "text": "0.0.1",
2501
+ "name": "since"
2502
+ }
2503
+ ],
2504
+ "docs": "Use the default Square payment UI."
2505
+ },
2506
+ {
2507
+ "name": "Custom",
2508
+ "value": "'CUSTOM'",
2509
+ "tags": [
2510
+ {
2511
+ "text": "0.0.1",
2512
+ "name": "since"
2513
+ }
2514
+ ],
2515
+ "docs": "Use a custom payment UI."
2516
+ }
2517
+ ]
2518
+ },
2519
+ {
2520
+ "name": "AdditionalPaymentMethod",
2521
+ "slug": "additionalpaymentmethod",
2522
+ "members": [
2523
+ {
2524
+ "name": "Keyed",
2525
+ "value": "'KEYED'",
2526
+ "tags": [
2527
+ {
2528
+ "text": "0.0.1",
2529
+ "name": "since"
2530
+ }
2531
+ ],
2532
+ "docs": "Allow manually keyed card entry."
2533
+ },
2534
+ {
2535
+ "name": "Cash",
2536
+ "value": "'CASH'",
2537
+ "tags": [
2538
+ {
2539
+ "text": "0.0.1",
2540
+ "name": "since"
2541
+ }
2542
+ ],
2543
+ "docs": "Allow cash payments."
2544
+ }
2545
+ ]
2546
+ },
2547
+ {
2548
+ "name": "ReaderChange",
2549
+ "slug": "readerchange",
2550
+ "members": [
2551
+ {
2552
+ "name": "BatteryDidBeginCharging",
2553
+ "value": "'BATTERY_DID_BEGIN_CHARGING'",
2554
+ "tags": [
2555
+ {
2556
+ "text": "0.0.1",
2557
+ "name": "since"
2558
+ }
2559
+ ],
2560
+ "docs": "Reader battery started charging.\n\nOnly available on iOS."
2561
+ },
2562
+ {
2563
+ "name": "BatteryDidEndCharging",
2564
+ "value": "'BATTERY_DID_END_CHARGING'",
2565
+ "tags": [
2566
+ {
2567
+ "text": "0.0.1",
2568
+ "name": "since"
2569
+ }
2570
+ ],
2571
+ "docs": "Reader battery stopped charging.\n\nOnly available on iOS."
2572
+ },
2573
+ {
2574
+ "name": "BatteryLevelDidChange",
2575
+ "value": "'BATTERY_LEVEL_DID_CHANGE'",
2576
+ "tags": [
2577
+ {
2578
+ "text": "0.0.1",
2579
+ "name": "since"
2580
+ }
2581
+ ],
2582
+ "docs": "Reader battery level changed.\n\nOnly available on iOS."
2583
+ },
2584
+ {
2585
+ "name": "BatteryCharging",
2586
+ "value": "'BATTERY_CHARGING'",
2587
+ "tags": [
2588
+ {
2589
+ "text": "0.0.1",
2590
+ "name": "since"
2591
+ }
2592
+ ],
2593
+ "docs": "Reader battery charging status changed.\n\nOnly available on Android."
2594
+ },
2595
+ {
2596
+ "name": "Added",
2597
+ "value": "'ADDED'",
2598
+ "tags": [
2599
+ {
2600
+ "text": "0.0.1",
2601
+ "name": "since"
2602
+ }
2603
+ ],
2604
+ "docs": "Reader was added.\n\nOnly available on Android."
2605
+ },
2606
+ {
2607
+ "name": "Removed",
2608
+ "value": "'REMOVED'",
2609
+ "tags": [
2610
+ {
2611
+ "text": "0.0.1",
2612
+ "name": "since"
2613
+ }
2614
+ ],
2615
+ "docs": "Reader was removed.\n\nOnly available on Android."
2616
+ },
2617
+ {
2618
+ "name": "StatusDidChange",
2619
+ "value": "'STATUS_DID_CHANGE'",
2620
+ "tags": [
2621
+ {
2622
+ "text": "0.0.1",
2623
+ "name": "since"
2624
+ }
2625
+ ],
2626
+ "docs": "Reader status changed."
2627
+ }
2628
+ ]
2629
+ },
2630
+ {
2631
+ "name": "PaymentType",
2632
+ "slug": "paymenttype",
2633
+ "members": [
2634
+ {
2635
+ "name": "Online",
2636
+ "value": "'ONLINE'",
2637
+ "tags": [
2638
+ {
2639
+ "text": "0.0.1",
2640
+ "name": "since"
2641
+ }
2642
+ ],
2643
+ "docs": "Payment processed online."
2644
+ },
2645
+ {
2646
+ "name": "Offline",
2647
+ "value": "'OFFLINE'",
2648
+ "tags": [
2649
+ {
2650
+ "text": "0.0.1",
2651
+ "name": "since"
2652
+ }
2653
+ ],
2654
+ "docs": "Payment processed offline."
2655
+ }
2656
+ ]
2657
+ },
2658
+ {
2659
+ "name": "PaymentStatus",
2660
+ "slug": "paymentstatus",
2661
+ "members": [
2662
+ {
2663
+ "name": "Completed",
2664
+ "value": "'COMPLETED'",
2665
+ "tags": [
2666
+ {
2667
+ "text": "0.0.1",
2668
+ "name": "since"
2669
+ }
2670
+ ],
2671
+ "docs": "Payment was completed successfully."
2672
+ },
2673
+ {
2674
+ "name": "Approved",
2675
+ "value": "'APPROVED'",
2676
+ "tags": [
2677
+ {
2678
+ "text": "0.0.1",
2679
+ "name": "since"
2680
+ }
2681
+ ],
2682
+ "docs": "Payment was approved but not yet completed."
2683
+ },
2684
+ {
2685
+ "name": "Canceled",
2686
+ "value": "'CANCELED'",
2687
+ "tags": [
2688
+ {
2689
+ "text": "0.0.1",
2690
+ "name": "since"
2691
+ }
2692
+ ],
2693
+ "docs": "Payment was canceled."
2694
+ },
2695
+ {
2696
+ "name": "Failed",
2697
+ "value": "'FAILED'",
2698
+ "tags": [
2699
+ {
2700
+ "text": "0.0.1",
2701
+ "name": "since"
2702
+ }
2703
+ ],
2704
+ "docs": "Payment failed."
2705
+ },
2706
+ {
2707
+ "name": "Pending",
2708
+ "value": "'PENDING'",
2709
+ "tags": [
2710
+ {
2711
+ "text": "0.0.1",
2712
+ "name": "since"
2713
+ }
2714
+ ],
2715
+ "docs": "Payment is pending."
2716
+ }
2717
+ ]
2718
+ },
2719
+ {
2720
+ "name": "CardBrand",
2721
+ "slug": "cardbrand",
2722
+ "members": [
2723
+ {
2724
+ "name": "Visa",
2725
+ "value": "'VISA'",
2726
+ "tags": [
2727
+ {
2728
+ "text": "0.0.1",
2729
+ "name": "since"
2730
+ }
2731
+ ],
2732
+ "docs": "Visa card."
2733
+ },
2734
+ {
2735
+ "name": "Mastercard",
2736
+ "value": "'MASTERCARD'",
2737
+ "tags": [
2738
+ {
2739
+ "text": "0.0.1",
2740
+ "name": "since"
2741
+ }
2742
+ ],
2743
+ "docs": "Mastercard."
2744
+ },
2745
+ {
2746
+ "name": "AmericanExpress",
2747
+ "value": "'AMERICAN_EXPRESS'",
2748
+ "tags": [
2749
+ {
2750
+ "text": "0.0.1",
2751
+ "name": "since"
2752
+ }
2753
+ ],
2754
+ "docs": "American Express card."
2755
+ },
2756
+ {
2757
+ "name": "Discover",
2758
+ "value": "'DISCOVER'",
2759
+ "tags": [
2760
+ {
2761
+ "text": "0.0.1",
2762
+ "name": "since"
2763
+ }
2764
+ ],
2765
+ "docs": "Discover card."
2766
+ },
2767
+ {
2768
+ "name": "DiscoverDiners",
2769
+ "value": "'DISCOVER_DINERS'",
2770
+ "tags": [
2771
+ {
2772
+ "text": "0.0.1",
2773
+ "name": "since"
2774
+ }
2775
+ ],
2776
+ "docs": "Discover Diners card."
2777
+ },
2778
+ {
2779
+ "name": "Jcb",
2780
+ "value": "'JCB'",
2781
+ "tags": [
2782
+ {
2783
+ "text": "0.0.1",
2784
+ "name": "since"
2785
+ }
2786
+ ],
2787
+ "docs": "JCB card."
2788
+ },
2789
+ {
2790
+ "name": "UnionPay",
2791
+ "value": "'UNION_PAY'",
2792
+ "tags": [
2793
+ {
2794
+ "text": "0.0.1",
2795
+ "name": "since"
2796
+ }
2797
+ ],
2798
+ "docs": "UnionPay card."
2799
+ },
2800
+ {
2801
+ "name": "Interac",
2802
+ "value": "'INTERAC'",
2803
+ "tags": [
2804
+ {
2805
+ "text": "0.0.1",
2806
+ "name": "since"
2807
+ }
2808
+ ],
2809
+ "docs": "Interac card."
2810
+ },
2811
+ {
2812
+ "name": "Eftpos",
2813
+ "value": "'EFTPOS'",
2814
+ "tags": [
2815
+ {
2816
+ "text": "0.0.1",
2817
+ "name": "since"
2818
+ }
2819
+ ],
2820
+ "docs": "Eftpos card."
2821
+ },
2822
+ {
2823
+ "name": "Other",
2824
+ "value": "'OTHER'",
2825
+ "tags": [
2826
+ {
2827
+ "text": "0.0.1",
2828
+ "name": "since"
2829
+ }
2830
+ ],
2831
+ "docs": "Other or unknown card brand."
2832
+ }
2833
+ ]
2834
+ }
2835
+ ],
2836
+ "typeAliases": [
2837
+ {
2838
+ "name": "CurrencyCode",
2839
+ "slug": "currencycode",
2840
+ "docs": "",
2841
+ "types": [
2842
+ {
2843
+ "text": "string",
2844
+ "complexTypes": []
2845
+ }
2846
+ ]
2847
+ },
2848
+ {
2849
+ "name": "PermissionState",
2850
+ "slug": "permissionstate",
2851
+ "docs": "",
2852
+ "types": [
2853
+ {
2854
+ "text": "'prompt'",
2855
+ "complexTypes": []
2856
+ },
2857
+ {
2858
+ "text": "'prompt-with-rationale'",
2859
+ "complexTypes": []
2860
+ },
2861
+ {
2862
+ "text": "'granted'",
2863
+ "complexTypes": []
2864
+ },
2865
+ {
2866
+ "text": "'denied'",
2867
+ "complexTypes": []
2868
+ }
2869
+ ]
2870
+ },
2871
+ {
2872
+ "name": "ReaderPairingDidBeginListener",
2873
+ "slug": "readerpairingdidbeginlistener",
2874
+ "docs": "Callback to receive reader pairing start notifications.",
2875
+ "types": [
2876
+ {
2877
+ "text": "(): void",
2878
+ "complexTypes": []
2879
+ }
2880
+ ]
2881
+ },
2882
+ {
2883
+ "name": "ReaderPairingDidSucceedListener",
2884
+ "slug": "readerpairingdidsucceedlistener",
2885
+ "docs": "Callback to receive reader pairing success notifications.",
2886
+ "types": [
2887
+ {
2888
+ "text": "(): void",
2889
+ "complexTypes": []
2890
+ }
2891
+ ]
2892
+ },
2893
+ {
2894
+ "name": "ReaderPairingDidFailListener",
2895
+ "slug": "readerpairingdidfaillistener",
2896
+ "docs": "Callback to receive reader pairing failure notifications.",
2897
+ "types": [
2898
+ {
2899
+ "text": "(event: ReaderPairingDidFailEvent): void",
2900
+ "complexTypes": [
2901
+ "ReaderPairingDidFailEvent"
2902
+ ]
2903
+ }
2904
+ ]
2905
+ },
2906
+ {
2907
+ "name": "ReaderWasAddedListener",
2908
+ "slug": "readerwasaddedlistener",
2909
+ "docs": "Callback to receive reader added notifications.",
2910
+ "types": [
2911
+ {
2912
+ "text": "(event: ReaderWasAddedEvent): void",
2913
+ "complexTypes": [
2914
+ "ReaderWasAddedEvent"
2915
+ ]
2916
+ }
2917
+ ]
2918
+ },
2919
+ {
2920
+ "name": "ReaderWasRemovedListener",
2921
+ "slug": "readerwasremovedlistener",
2922
+ "docs": "Callback to receive reader removed notifications.",
2923
+ "types": [
2924
+ {
2925
+ "text": "(event: ReaderWasRemovedEvent): void",
2926
+ "complexTypes": [
2927
+ "ReaderWasRemovedEvent"
2928
+ ]
2929
+ }
2930
+ ]
2931
+ },
2932
+ {
2933
+ "name": "ReaderDidChangeListener",
2934
+ "slug": "readerdidchangelistener",
2935
+ "docs": "Callback to receive reader change notifications.",
2936
+ "types": [
2937
+ {
2938
+ "text": "(event: ReaderDidChangeEvent): void",
2939
+ "complexTypes": [
2940
+ "ReaderDidChangeEvent"
2941
+ ]
2942
+ }
2943
+ ]
2944
+ },
2945
+ {
2946
+ "name": "AvailableCardInputMethodsDidChangeListener",
2947
+ "slug": "availablecardinputmethodsdidchangelistener",
2948
+ "docs": "Callback to receive available card input method change notifications.",
2949
+ "types": [
2950
+ {
2951
+ "text": "(event: AvailableCardInputMethodsDidChangeEvent): void",
2952
+ "complexTypes": [
2953
+ "AvailableCardInputMethodsDidChangeEvent"
2954
+ ]
2955
+ }
2956
+ ]
2957
+ },
2958
+ {
2959
+ "name": "PaymentDidFinishListener",
2960
+ "slug": "paymentdidfinishlistener",
2961
+ "docs": "Callback to receive payment completion notifications.",
2962
+ "types": [
2963
+ {
2964
+ "text": "(event: PaymentDidFinishEvent): void",
2965
+ "complexTypes": [
2966
+ "PaymentDidFinishEvent"
2967
+ ]
2968
+ }
2969
+ ]
2970
+ },
2971
+ {
2972
+ "name": "PaymentDidFailListener",
2973
+ "slug": "paymentdidfaillistener",
2974
+ "docs": "Callback to receive payment failure notifications.",
2975
+ "types": [
2976
+ {
2977
+ "text": "(event: PaymentDidFailEvent): void",
2978
+ "complexTypes": [
2979
+ "PaymentDidFailEvent"
2980
+ ]
2981
+ }
2982
+ ]
2983
+ },
2984
+ {
2985
+ "name": "PaymentDidCancelListener",
2986
+ "slug": "paymentdidcancellistener",
2987
+ "docs": "Callback to receive payment cancellation notifications.",
2988
+ "types": [
2989
+ {
2990
+ "text": "(event: PaymentDidCancelEvent): void",
2991
+ "complexTypes": [
2992
+ "PaymentDidCancelEvent"
2993
+ ]
2994
+ }
2995
+ ]
2996
+ }
2997
+ ],
2998
+ "pluginConfigs": []
2999
+ }