@soltech/fluid-common 0.1.4 → 0.1.5
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.
- package/lib/index.d.ts +8 -8
- package/lib/index.js +6 -6
- package/package.json +1 -1
- package/src/index.ts +8 -8
package/lib/index.d.ts
CHANGED
|
@@ -8,12 +8,12 @@ export declare enum TraitType {
|
|
|
8
8
|
TEXT = "TEXT"
|
|
9
9
|
}
|
|
10
10
|
export declare enum PaymentType {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
BANK_TRANSFER = "BankTransfer",
|
|
12
|
+
CREDIT_CARD = "CreditCard",
|
|
13
|
+
CRYPTO = "Crypto",
|
|
14
|
+
DIGITAL_WALLET = "DigitalWallet",
|
|
15
|
+
PREPAID_CARD = "PrepaidCard",
|
|
16
|
+
VOUCHER = "Voucher"
|
|
17
17
|
}
|
|
18
18
|
export interface WalletRequestBody {
|
|
19
19
|
payload?: object | string;
|
|
@@ -51,11 +51,10 @@ export interface PaymentMethod {
|
|
|
51
51
|
info: string;
|
|
52
52
|
paymentType: PaymentType;
|
|
53
53
|
}
|
|
54
|
-
export interface RecentMethod {
|
|
54
|
+
export interface RecentMethod extends PaymentMethod {
|
|
55
55
|
accountId: string;
|
|
56
56
|
maskedAccount: string;
|
|
57
57
|
lastSuccess: string;
|
|
58
|
-
paymentMethod: PaymentMethod;
|
|
59
58
|
}
|
|
60
59
|
export interface TransactionParams {
|
|
61
60
|
accountId?: string;
|
|
@@ -88,6 +87,7 @@ export interface TransactionOptions {
|
|
|
88
87
|
userAgent?: string;
|
|
89
88
|
}
|
|
90
89
|
export interface TransactionResult {
|
|
90
|
+
error?: ProviderTransactionError;
|
|
91
91
|
redirectOutput?: RedirectOutput;
|
|
92
92
|
status: string;
|
|
93
93
|
transactionId: string;
|
package/lib/index.js
CHANGED
|
@@ -11,12 +11,12 @@ export var TraitType;
|
|
|
11
11
|
})(TraitType || (TraitType = {}));
|
|
12
12
|
export var PaymentType;
|
|
13
13
|
(function (PaymentType) {
|
|
14
|
-
PaymentType[
|
|
15
|
-
PaymentType[
|
|
16
|
-
PaymentType[
|
|
17
|
-
PaymentType[
|
|
18
|
-
PaymentType[
|
|
19
|
-
PaymentType[
|
|
14
|
+
PaymentType["BANK_TRANSFER"] = "BankTransfer";
|
|
15
|
+
PaymentType["CREDIT_CARD"] = "CreditCard";
|
|
16
|
+
PaymentType["CRYPTO"] = "Crypto";
|
|
17
|
+
PaymentType["DIGITAL_WALLET"] = "DigitalWallet";
|
|
18
|
+
PaymentType["PREPAID_CARD"] = "PrepaidCard";
|
|
19
|
+
PaymentType["VOUCHER"] = "Voucher";
|
|
20
20
|
})(PaymentType || (PaymentType = {}));
|
|
21
21
|
export var ErrorAction;
|
|
22
22
|
(function (ErrorAction) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -11,12 +11,12 @@ export enum TraitType {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export enum PaymentType {
|
|
14
|
-
BankTransfer,
|
|
15
|
-
CreditCard,
|
|
16
|
-
Crypto,
|
|
17
|
-
DigitalWallet,
|
|
18
|
-
PrepaidCard,
|
|
19
|
-
Voucher
|
|
14
|
+
BANK_TRANSFER = 'BankTransfer',
|
|
15
|
+
CREDIT_CARD = 'CreditCard',
|
|
16
|
+
CRYPTO = 'Crypto',
|
|
17
|
+
DIGITAL_WALLET = 'DigitalWallet',
|
|
18
|
+
PREPAID_CARD = 'PrepaidCard',
|
|
19
|
+
VOUCHER = 'Voucher'
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface WalletRequestBody {
|
|
@@ -61,11 +61,10 @@ export interface PaymentMethod {
|
|
|
61
61
|
paymentType: PaymentType;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export interface RecentMethod {
|
|
64
|
+
export interface RecentMethod extends PaymentMethod {
|
|
65
65
|
accountId: string;
|
|
66
66
|
maskedAccount: string;
|
|
67
67
|
lastSuccess: string;
|
|
68
|
-
paymentMethod: PaymentMethod; //TODO extend PaymentMethod instead
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
export interface TransactionParams {
|
|
@@ -104,6 +103,7 @@ export interface TransactionOptions {
|
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
export interface TransactionResult {
|
|
106
|
+
error?: ProviderTransactionError;
|
|
107
107
|
redirectOutput?: RedirectOutput;
|
|
108
108
|
status: string;
|
|
109
109
|
transactionId: string;
|