7
7
8
8
/**
9
9
* The PayPalItem class defines an optional itemization for a payment.
10
- *
10
+ *
11
11
* @see https://developer.paypal.com/docs/api/#item-object for more details.
12
12
*/
13
13
declare class PayPalItem {
@@ -51,7 +51,7 @@ declare class PayPalItem {
51
51
52
52
/**
53
53
* The PayPalPaymentDetails class defines optional amount details.
54
- *
54
+ *
55
55
* @see https://developer.paypal.com/webapps/developer/docs/api/#details-object for more details.
56
56
*/
57
57
declare class PayPalPaymentDetails {
@@ -256,18 +256,18 @@ declare class PayPalConfiguration {
256
256
257
257
/**
258
258
* For single payments, options for the shipping address.
259
- *
259
+ *
260
260
* - 0 - PayPalShippingAddressOptionNone: no shipping address applies.
261
- *
261
+ *
262
262
* - 1 - PayPalShippingAddressOptionProvided: shipping address will be provided by your app,
263
263
* in the shippingAddress property of PayPalPayment.
264
- *
264
+ *
265
265
* - 2 - PayPalShippingAddressOptionPayPal: user will choose from shipping addresses on file
266
266
* for their PayPal account.
267
- *
267
+ *
268
268
* - 3 - PayPalShippingAddressOptionBoth: user will choose from the shipping address provided by your app,
269
269
* in the shippingAddress property of PayPalPayment, plus the shipping addresses on file for the user's PayPal account.
270
- *
270
+ *
271
271
* Defaults to 0 (PayPalShippingAddressOptionNone).
272
272
*/
273
273
payPalShippingAddressOption : number ;
@@ -277,26 +277,26 @@ declare class PayPalConfiguration {
277
277
* the SDK will remember the user's PayPal username or phone number;
278
278
* if the user pays via their credit card, then the SDK will remember
279
279
* the PayPal Vault token representing the user's credit card.
280
- *
280
+ *
281
281
* If set to false, then any previously-remembered username, phone number, or
282
282
* credit card token will be erased, and subsequent payment information will
283
283
* not be remembered.
284
- *
284
+ *
285
285
* Defaults to true.
286
286
*/
287
287
rememberUser : boolean ;
288
288
289
289
/**
290
290
* If not set, or if set to nil, defaults to the device's current language setting.
291
- *
291
+ *
292
292
* Can be specified as a language code ("en", "fr", "zh-Hans", etc.) or as a locale ("en_AU", "fr_FR", "zh-Hant_HK", etc.).
293
293
* If the library does not contain localized strings for a specified locale, then will fall back to the language. E.g., "es_CO" -> "es".
294
294
* If the library does not contain localized strings for a specified language, then will fall back to American English.
295
- *
295
+ *
296
296
* If you specify only a language code, and that code matches the device's currently preferred language,
297
297
* then the library will attempt to use the device's current region as well.
298
298
* E.g., specifying "en" on a device set to "English" and "United Kingdom" will result in "en_GB".
299
- *
299
+ *
300
300
* These localizations are currently included:
301
301
* da,de,en,en_AU,en_GB,en_SV,es,es_MX,fr,he,it,ja,ko,nb,nl,pl,pt,pt_BR,ru,sv,tr,zh-Hans,zh-Hant_HK,zh-Hant_TW.
302
302
*/
@@ -319,7 +319,7 @@ declare class PayPalConfiguration {
319
319
/**
320
320
* Sandbox credentials can be difficult to type on a mobile device. Setting this flag to true will
321
321
* cause the sandboxUserPassword and sandboxUserPin to always be pre-populated into login fields.
322
- *
322
+ *
323
323
* This setting will have no effect if the operation mode is production.
324
324
* Defaults to false.
325
325
*/
@@ -385,18 +385,18 @@ interface PayPalConfigurationOptions {
385
385
386
386
/**
387
387
* For single payments, options for the shipping address.
388
- *
388
+ *
389
389
* - 0 - PayPalShippingAddressOptionNone?: no shipping address applies.
390
- *
390
+ *
391
391
* - 1 - PayPalShippingAddressOptionProvided?: shipping address will be provided by your app,
392
392
* in the shippingAddress property of PayPalPayment.
393
- *
393
+ *
394
394
* - 2 - PayPalShippingAddressOptionPayPal?: user will choose from shipping addresses on file
395
395
* for their PayPal account.
396
- *
396
+ *
397
397
* - 3 - PayPalShippingAddressOptionBoth?: user will choose from the shipping address provided by your app,
398
398
* in the shippingAddress property of PayPalPayment, plus the shipping addresses on file for the user's PayPal account.
399
- *
399
+ *
400
400
* Defaults to 0 (PayPalShippingAddressOptionNone).
401
401
*/
402
402
payPalShippingAddressOption ?: number ;
@@ -406,26 +406,26 @@ interface PayPalConfigurationOptions {
406
406
* the SDK will remember the user's PayPal username or phone number;
407
407
* if the user pays via their credit card, then the SDK will remember
408
408
* the PayPal Vault token representing the user's credit card.
409
- *
409
+ *
410
410
* If set to false, then any previously-remembered username, phone number, or
411
411
* credit card token will be erased, and subsequent payment information will
412
412
* not be remembered.
413
- *
413
+ *
414
414
* Defaults to true.
415
415
*/
416
416
rememberUser ?: boolean ;
417
417
418
418
/**
419
419
* If not set, or if set to nil, defaults to the device's current language setting.
420
- *
420
+ *
421
421
* Can be specified as a language code ("en", "fr", "zh-Hans", etc.) or as a locale ("en_AU", "fr_FR", "zh-Hant_HK", etc.).
422
422
* If the library does not contain localized strings for a specified locale, then will fall back to the language. E.g., "es_CO" -> "es".
423
423
* If the library does not contain localized strings for a specified language, then will fall back to American English.
424
- *
424
+ *
425
425
* If you specify only a language code, and that code matches the device's currently preferred language,
426
426
* then the library will attempt to use the device's current region as well.
427
427
* E.g., specifying "en" on a device set to "English" and "United Kingdom" will result in "en_GB".
428
- *
428
+ *
429
429
* These localizations are currently included:
430
430
* da,de,en,en_AU,en_GB,en_SV,es,es_MX,fr,he,it,ja,ko,nb,nl,pl,pt,pt_BR,ru,sv,tr,zh-Hans,zh-Hant_HK,zh-Hant_TW.
431
431
*/
@@ -448,7 +448,7 @@ interface PayPalConfigurationOptions {
448
448
/**
449
449
* Sandbox credentials can be difficult to type on a mobile device. Setting this flag to true will
450
450
* cause the sandboxUserPassword and sandboxUserPin to always be pre-populated into login fields.
451
- *
451
+ *
452
452
* This setting will have no effect if the operation mode is production.
453
453
* Defaults to false.
454
454
*/
@@ -469,7 +469,7 @@ interface PayPalConfigurationOptions {
469
469
470
470
//#region cdv-plugin-paypal-mobile-sdk.js
471
471
472
- declare module PayPalCordovaPlugin {
472
+ declare namespace PayPalCordovaPlugin {
473
473
474
474
export interface PayPalClientIds {
475
475
PayPalEnvironmentProduction : string ;
@@ -545,7 +545,7 @@ declare module PayPalCordovaPlugin {
545
545
* the recommended time to preconnect is on page load.
546
546
*
547
547
* @param environment available options are "PayPalEnvironmentNoNetwork", "PayPalEnvironmentProduction" and "PayPalEnvironmentSandbox"
548
- * @param configuration PayPalConfiguration object, for Future Payments merchantName, merchantPrivacyPolicyURL
548
+ * @param configuration PayPalConfiguration object, for Future Payments merchantName, merchantPrivacyPolicyURL
549
549
* and merchantUserAgreementURL must be set be set
550
550
* @param completionCallback a callback function on success
551
551
*/
@@ -592,15 +592,15 @@ declare module PayPalCordovaPlugin {
592
592
593
593
/**
594
594
* Please Read Docs on Future Payments at https://github.com/paypal/PayPal-iOS-SDK#future-payments
595
- *
595
+ *
596
596
* @param completionCallback a callback function accepting a js object with future payment authorization
597
597
* @param cancelCallback a callback function accepting a reason string, called when the user canceled without agreement
598
598
*/
599
599
renderFuturePaymentUI ( completionCallback : ( result : PayPalCordovaPlugin . FuturePaymentResult ) => void , cancelCallback : ( cancelReason : string ) => void ) : void ;
600
600
601
601
/**
602
602
* Please Read Docs on Profile Sharing at https://github.com/paypal/PayPal-iOS-SDK#profile-sharing
603
- *
603
+ *
604
604
* @param scopes scopes Set of requested scope-values. Accepted scopes are: openid, profile, address, email, phone, futurepayments and paypalattributes
605
605
* See https://developer.paypal.com/docs/integration/direct/identity/attributes/ for more details
606
606
* @param completionCallback a callback function accepting a js object with future payment authorization
0 commit comments