mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
chore(package): bump dependencies and lint rules
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
/**
|
||||
* @name PayPal
|
||||
@@ -78,7 +78,9 @@ export class PayPal extends IonicNativePlugin {
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
@Cordova()
|
||||
version(): Promise<string> { return; }
|
||||
version(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* You must preconnect to PayPal to prepare the device for processing payments.
|
||||
@@ -90,7 +92,9 @@ export class PayPal extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
init(clientIdsForEnvironments: PayPalEnvironment): Promise<any> { return; }
|
||||
init(clientIdsForEnvironments: PayPalEnvironment): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* You must preconnect to PayPal to prepare the device for processing payments.
|
||||
@@ -102,7 +106,12 @@ export class PayPal extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
prepareToRender(environment: string, configuration: PayPalConfiguration): Promise<any> { return; }
|
||||
prepareToRender(
|
||||
environment: string,
|
||||
configuration: PayPalConfiguration
|
||||
): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Start PayPal UI to collect payment from the user.
|
||||
@@ -113,7 +122,9 @@ export class PayPal extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
renderSinglePaymentUI(payment: PayPalPayment): Promise<any> { return; }
|
||||
renderSinglePaymentUI(payment: PayPalPayment): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Once a user has consented to future payments, when the user subsequently initiates a PayPal payment
|
||||
@@ -126,14 +137,18 @@ export class PayPal extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
clientMetadataID(): Promise<any> { return; }
|
||||
clientMetadataID(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please Read Docs on Future Payments at https://github.com/paypal/PayPal-iOS-SDK#future-payments
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
renderFuturePaymentUI(): Promise<any> { return; }
|
||||
renderFuturePaymentUI(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Please Read Docs on Profile Sharing at https://github.com/paypal/PayPal-iOS-SDK#profile-sharing
|
||||
@@ -143,7 +158,9 @@ export class PayPal extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
renderProfileSharingUI(scopes: string[]): Promise<any> { return; }
|
||||
renderProfileSharingUI(scopes: string[]): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
export interface PayPalEnvironment {
|
||||
@@ -155,7 +172,13 @@ export interface PayPalEnvironment {
|
||||
* @hidden
|
||||
*/
|
||||
export class PayPalPayment {
|
||||
constructor(amount: string, currency: string, shortDescription: string, intent: string, details?: PayPalPaymentDetails) {
|
||||
constructor(
|
||||
amount: string,
|
||||
currency: string,
|
||||
shortDescription: string,
|
||||
intent: string,
|
||||
details?: PayPalPaymentDetails
|
||||
) {
|
||||
this.amount = amount;
|
||||
this.currency = currency;
|
||||
this.shortDescription = shortDescription;
|
||||
@@ -205,9 +228,9 @@ export class PayPalPayment {
|
||||
items: Array<PayPalItem>;
|
||||
|
||||
/**
|
||||
* Optional payee email, if your app is paying a third-party merchant.
|
||||
* The payee's email. It must be a valid PayPal email address.
|
||||
*/
|
||||
* Optional payee email, if your app is paying a third-party merchant.
|
||||
* The payee's email. It must be a valid PayPal email address.
|
||||
*/
|
||||
payeeEmail: string;
|
||||
|
||||
/**
|
||||
@@ -235,7 +258,13 @@ export class PayPalItem {
|
||||
* @param {String} currency: ISO standard currency code.
|
||||
* @param {String} sku: The stock keeping unit for this item. 50 characters max (optional)
|
||||
*/
|
||||
constructor(name: string, quantity: number, price: string, currency: string, sku?: string) {
|
||||
constructor(
|
||||
name: string,
|
||||
quantity: number,
|
||||
price: string,
|
||||
currency: string,
|
||||
sku?: string
|
||||
) {
|
||||
this.name = name;
|
||||
this.quantity = quantity;
|
||||
this.price = price;
|
||||
@@ -405,7 +434,6 @@ export class PayPalConfiguration implements PayPalConfigurationOptions {
|
||||
* see defaults for options available
|
||||
*/
|
||||
constructor(options?: PayPalConfigurationOptions) {
|
||||
|
||||
let defaults: PayPalConfigurationOptions = {
|
||||
defaultUserEmail: null,
|
||||
defaultUserPhoneCountryCode: null,
|
||||
@@ -450,7 +478,15 @@ export class PayPalShippingAddress {
|
||||
* @param {String} postalCode: ZIP code or equivalent is usually required for countries that have them. 20 characters max. Required in certain countries.
|
||||
* @param {String} countryCode: 2-letter country code. 2 characters max.
|
||||
*/
|
||||
constructor(recipientName: string, line1: string, line2: string, city: string, state: string, postalCode: string, countryCode: string) {
|
||||
constructor(
|
||||
recipientName: string,
|
||||
line1: string,
|
||||
line2: string,
|
||||
city: string,
|
||||
state: string,
|
||||
postalCode: string,
|
||||
countryCode: string
|
||||
) {
|
||||
this.recipientName = recipientName;
|
||||
this.line1 = line1;
|
||||
this.line2 = line2;
|
||||
|
||||
Reference in New Issue
Block a user