@soltech/fluid-common 0.1.10 → 0.1.11

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 CHANGED
@@ -72,11 +72,26 @@ export interface CreditcardTransactionParams extends TransactionParams {
72
72
  expiryYear?: string;
73
73
  }
74
74
  export interface BankTransferTransactionParams extends TransactionParams {
75
+ accountId?: string;
76
+ accountName?: string;
75
77
  accountNumber?: string;
78
+ accountType?: string;
79
+ bankCode?: string;
76
80
  bankName?: string;
81
+ beneficiaryCity?: string;
82
+ beneficiaryCountry?: string;
83
+ beneficiaryName?: string;
84
+ beneficiaryState?: string;
85
+ beneficiaryStreet?: string;
86
+ beneficiaryZip?: string;
77
87
  bic?: string;
78
88
  branchAddress?: string;
89
+ branchCode?: string;
79
90
  branchName?: string;
91
+ clearingNumber?: string;
92
+ countryCode?: string;
93
+ iban?: string;
94
+ nationalId?: string;
80
95
  }
81
96
  export interface DigitalWalletTransactionParams extends TransactionParams {
82
97
  email?: string;
@@ -87,10 +102,8 @@ export interface TransactionOptions {
87
102
  userAgent?: string;
88
103
  }
89
104
  export interface TransactionResult {
90
- error?: ProviderTransactionError;
91
105
  redirectOutput?: RedirectOutput;
92
- state: TransactionState;
93
- statusCode: string;
106
+ status: string;
94
107
  transactionId: string;
95
108
  }
96
109
  export interface RedirectOutput {
@@ -100,19 +113,3 @@ export interface RedirectOutput {
100
113
  width?: number;
101
114
  url: string;
102
115
  }
103
- export declare enum TransactionState {
104
- SUCCESS = "SUCCESS",
105
- FAIL = "FAIL",
106
- PROCESSING = "PROCESSING",
107
- WAITING_INPUT = "WAITING_INPUT"
108
- }
109
- export interface ProviderTransactionError {
110
- code: string;
111
- text: string;
112
- action: ErrorAction;
113
- }
114
- export declare enum ErrorAction {
115
- RETURN_STEP1 = "RETURN_STEP1",
116
- RETURN_STEP2 = "RETURN_STEP2",
117
- BLOCK_DEPOSITS = "BLOCK_DEPOSITS"
118
- }
package/lib/index.js CHANGED
@@ -18,16 +18,3 @@ export var PaymentType;
18
18
  PaymentType["PREPAID_CARD"] = "PrepaidCard";
19
19
  PaymentType["VOUCHER"] = "Voucher";
20
20
  })(PaymentType || (PaymentType = {}));
21
- export var TransactionState;
22
- (function (TransactionState) {
23
- TransactionState["SUCCESS"] = "SUCCESS";
24
- TransactionState["FAIL"] = "FAIL";
25
- TransactionState["PROCESSING"] = "PROCESSING";
26
- TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
27
- })(TransactionState || (TransactionState = {}));
28
- export var ErrorAction;
29
- (function (ErrorAction) {
30
- ErrorAction["RETURN_STEP1"] = "RETURN_STEP1";
31
- ErrorAction["RETURN_STEP2"] = "RETURN_STEP2";
32
- ErrorAction["BLOCK_DEPOSITS"] = "BLOCK_DEPOSITS";
33
- })(ErrorAction || (ErrorAction = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend and API commons",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -85,11 +85,26 @@ export interface CreditcardTransactionParams extends TransactionParams {
85
85
  }
86
86
 
87
87
  export interface BankTransferTransactionParams extends TransactionParams {
88
- accountNumber?: string;
89
- bankName?: string;
90
- bic?: string;
91
- branchAddress?: string;
92
- branchName?: string;
88
+ accountId?: string;
89
+ accountName?: string;
90
+ accountNumber?: string;
91
+ accountType?: string;
92
+ bankCode?: string;
93
+ bankName?: string;
94
+ beneficiaryCity?: string;
95
+ beneficiaryCountry?: string;
96
+ beneficiaryName?: string;
97
+ beneficiaryState?: string;
98
+ beneficiaryStreet?: string;
99
+ beneficiaryZip?: string;
100
+ bic?: string;
101
+ branchAddress?: string;
102
+ branchCode?: string;
103
+ branchName?: string;
104
+ clearingNumber?: string;
105
+ countryCode?: string;
106
+ iban?: string;
107
+ nationalId?: string;
93
108
  }
94
109
 
95
110
  export interface DigitalWalletTransactionParams extends TransactionParams {
@@ -103,10 +118,8 @@ export interface TransactionOptions {
103
118
  }
104
119
 
105
120
  export interface TransactionResult {
106
- error?: ProviderTransactionError;
107
121
  redirectOutput?: RedirectOutput;
108
- state: TransactionState;
109
- statusCode: string;
122
+ status: string;
110
123
  transactionId: string;
111
124
  }
112
125
 
@@ -118,22 +131,3 @@ export interface RedirectOutput {
118
131
  url: string;
119
132
  }
120
133
 
121
- export enum TransactionState {
122
- SUCCESS = 'SUCCESS',
123
- FAIL = 'FAIL',
124
- PROCESSING = 'PROCESSING',
125
- WAITING_INPUT = 'WAITING_INPUT'
126
- }
127
-
128
- export interface ProviderTransactionError {
129
- code: string;
130
- text: string;
131
- action: ErrorAction;
132
- }
133
-
134
- export enum ErrorAction {
135
- RETURN_STEP1 = 'RETURN_STEP1',
136
- RETURN_STEP2 = 'RETURN_STEP2',
137
- BLOCK_DEPOSITS = 'BLOCK_DEPOSITS'
138
- }
139
-