Revert "chore(package): bump dependencies and lint rules"

This reverts commit 21ad4734fa.
This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 21ad4734fa
commit 6c938bfdb7
178 changed files with 4221 additions and 10592 deletions
+15 -51
View File
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
/**
* @name PayPal
@@ -78,9 +78,7 @@ 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.
@@ -92,9 +90,7 @@ 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.
@@ -106,12 +102,7 @@ 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.
@@ -122,9 +113,7 @@ 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
@@ -137,18 +126,14 @@ 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
@@ -158,9 +143,7 @@ export class PayPal extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
renderProfileSharingUI(scopes: string[]): Promise<any> {
return;
}
renderProfileSharingUI(scopes: string[]): Promise<any> { return; }
}
export interface PayPalEnvironment {
@@ -172,13 +155,7 @@ 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;
@@ -228,9 +205,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;
/**
@@ -258,13 +235,7 @@ 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;
@@ -434,6 +405,7 @@ export class PayPalConfiguration implements PayPalConfigurationOptions {
* see defaults for options available
*/
constructor(options?: PayPalConfigurationOptions) {
let defaults: PayPalConfigurationOptions = {
defaultUserEmail: null,
defaultUserPhoneCountryCode: null,
@@ -478,15 +450,7 @@ 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;