mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
refactor(paytabs): run prettier
This commit is contained in:
parent
f64b67310a
commit
83cb98f115
@ -2,8 +2,8 @@ import { Injectable } from '@angular/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
/**
|
||||
* PaymentSDKConfiguration: payment request configuration
|
||||
*/
|
||||
* PaymentSDKConfiguration: payment request configuration
|
||||
*/
|
||||
export interface PaymentSDKConfiguration {
|
||||
/**
|
||||
* merchant profile id
|
||||
@ -128,8 +128,8 @@ export interface PaymentSDKConfiguration {
|
||||
}
|
||||
|
||||
/**
|
||||
* PaymentSDKBillingDetails
|
||||
*/
|
||||
* PaymentSDKBillingDetails
|
||||
*/
|
||||
export interface PaymentSDKBillingDetails {
|
||||
/**
|
||||
* billing: customer name
|
||||
@ -166,8 +166,8 @@ export interface PaymentSDKBillingDetails {
|
||||
}
|
||||
|
||||
/**
|
||||
* PaymentSDKShippingDetails
|
||||
*/
|
||||
* PaymentSDKShippingDetails
|
||||
*/
|
||||
export interface PaymentSDKShippingDetails {
|
||||
/**
|
||||
* shipping: customer name
|
||||
@ -204,8 +204,8 @@ export interface PaymentSDKShippingDetails {
|
||||
}
|
||||
|
||||
/**
|
||||
* PaymentSDKTheme
|
||||
*/
|
||||
* PaymentSDKTheme
|
||||
*/
|
||||
export interface PaymentSDKTheme {
|
||||
/**
|
||||
* theme: primary color
|
||||
@ -274,121 +274,121 @@ export interface PaymentSDKTheme {
|
||||
}
|
||||
|
||||
/**
|
||||
* TokeniseType: define the behaviour of of saving card option inside the SDKs.
|
||||
*/
|
||||
* TokeniseType: define the behaviour of of saving card option inside the SDKs.
|
||||
*/
|
||||
export enum TokeniseType {
|
||||
/**
|
||||
* none: tokenise is off
|
||||
*/
|
||||
none = "none",
|
||||
none = 'none',
|
||||
/**
|
||||
* merchantMandatory: tokenise is forced
|
||||
*/
|
||||
merchantMandatory = "merchantMandatory",
|
||||
merchantMandatory = 'merchantMandatory',
|
||||
/**
|
||||
* userMandatory: tokenise is forced as per user approval
|
||||
*/
|
||||
userMandatory = "userMandatory",
|
||||
userMandatory = 'userMandatory',
|
||||
/**
|
||||
* userOptinoal: tokenise if optional as per user approval
|
||||
*/
|
||||
userOptinoal = "userOptinoal",
|
||||
userOptinoal = 'userOptinoal',
|
||||
}
|
||||
|
||||
/**
|
||||
* TokeniseFromat: the returned token format
|
||||
*/
|
||||
* TokeniseFromat: the returned token format
|
||||
*/
|
||||
export enum TokeniseFromat {
|
||||
/**
|
||||
* none: no format
|
||||
*/
|
||||
none = "1",
|
||||
none = '1',
|
||||
/**
|
||||
* hex32: Hex with 32 length
|
||||
*/
|
||||
hex32 = "2",
|
||||
hex32 = '2',
|
||||
/**
|
||||
* alphaNum20: alpha numeric 20 length
|
||||
*/
|
||||
alphaNum20 = "3",
|
||||
alphaNum20 = '3',
|
||||
/**
|
||||
* digit22: digits with 22 length
|
||||
*/
|
||||
digit22 = "3",
|
||||
digit22 = '3',
|
||||
/**
|
||||
* digit16: digits with 16 length
|
||||
*/
|
||||
digit16 = "5",
|
||||
digit16 = '5',
|
||||
/**
|
||||
* alphaNum32: alpha numeric 32 length
|
||||
*/
|
||||
alphaNum32 = "6"
|
||||
alphaNum32 = '6',
|
||||
}
|
||||
|
||||
/**
|
||||
* TransactionType
|
||||
*/
|
||||
* TransactionType
|
||||
*/
|
||||
export enum TransactionType {
|
||||
/**
|
||||
* sale
|
||||
*/
|
||||
sale = "sale",
|
||||
sale = 'sale',
|
||||
/**
|
||||
* authorize / capture option
|
||||
*/
|
||||
authorize = "auth"
|
||||
authorize = 'auth',
|
||||
}
|
||||
|
||||
/**
|
||||
* TransactionClass
|
||||
*/
|
||||
* TransactionClass
|
||||
*/
|
||||
export enum TransactionClass {
|
||||
/**
|
||||
* ecom: default transaction
|
||||
*/
|
||||
ecom = "ecom",
|
||||
ecom = 'ecom',
|
||||
/**
|
||||
* recurring: recurring transaction
|
||||
*/
|
||||
recurring = "recur"
|
||||
recurring = 'recur',
|
||||
}
|
||||
|
||||
/**
|
||||
* AlternativePaymentMethod
|
||||
*/
|
||||
* AlternativePaymentMethod
|
||||
*/
|
||||
export enum AlternativePaymentMethod {
|
||||
/**
|
||||
* unionpay: for supporting payment with unionpay
|
||||
*/
|
||||
unionPay = "unionpay",
|
||||
unionPay = 'unionpay',
|
||||
/**
|
||||
* stcpay: for supporting payment with stcpay
|
||||
*/
|
||||
stcPay = "stcpay",
|
||||
stcPay = 'stcpay',
|
||||
/**
|
||||
* valu: for supporting payment with valu
|
||||
*/
|
||||
valu = "valu",
|
||||
valu = 'valu',
|
||||
/**
|
||||
* meezaqr: for supporting payment with meezaqr
|
||||
*/
|
||||
meezaQR = "meezaqr",
|
||||
meezaQR = 'meezaqr',
|
||||
/**
|
||||
* omannet: for supporting payment with omannet
|
||||
*/
|
||||
omannet = "omannet",
|
||||
omannet = 'omannet',
|
||||
/**
|
||||
* knetcredit: for supporting payment with knetcredit
|
||||
*/
|
||||
knetCredit = "knetcredit",
|
||||
knetCredit = 'knetcredit',
|
||||
/**
|
||||
* knetdebit: for supporting payment with knetdebit
|
||||
*/
|
||||
knetDebit = "knetdebit",
|
||||
knetDebit = 'knetdebit',
|
||||
/**
|
||||
* fawry: for supporting payment with fawry
|
||||
*/
|
||||
fawry = "fawry"
|
||||
fawry = 'fawry',
|
||||
}
|
||||
|
||||
/**
|
||||
@ -441,7 +441,7 @@ export enum AlternativePaymentMethod {
|
||||
* .catch(error => console.error(error));
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'PayTabs',
|
||||
plugin: 'com.paytabs.cordova.plugin',
|
||||
@ -449,7 +449,6 @@ export enum AlternativePaymentMethod {
|
||||
repo: 'https://github.com/paytabscom/paytabs-cordova',
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
|
||||
@Injectable()
|
||||
export class PayTabs extends IonicNativePlugin {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user