react-native-unit-components 2.0.0 → 2.0.2
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/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +25 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +2 -0
- package/lib/commonjs/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
- package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js +3 -3
- package/lib/commonjs/nativeComponents/UNBaseView/UNBaseView.js.map +1 -1
- package/lib/commonjs/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.js → UNSecureViewNativeComponent.android.js} +1 -1
- package/lib/commonjs/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.js.map → UNSecureViewNativeComponent.android.js.map} +1 -1
- package/lib/commonjs/types/shared/checkDeposit.types.js.map +1 -1
- package/lib/commonjs/unitComponentsSdkManager/UnitComponentsSdkManager.js +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js +25 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.js.map +1 -1
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js +2 -0
- package/lib/module/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.js.map +1 -1
- package/lib/module/nativeComponents/UNBaseView/UNBaseView.js +2 -1
- package/lib/module/nativeComponents/UNBaseView/UNBaseView.js.map +1 -1
- package/lib/module/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.js → UNSecureViewNativeComponent.android.js} +1 -1
- package/lib/module/nativeComponents/UNSecureView/UNSecureViewNativeComponent.android.js.map +1 -0
- package/lib/module/types/shared/checkDeposit.types.js.map +1 -1
- package/lib/module/unitComponentsSdkManager/UnitComponentsSdkManager.js +1 -1
- package/lib/typescript/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.d.ts.map +1 -1
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts +2 -0
- package/lib/typescript/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeComponents/UNBaseView/UNBaseView.d.ts.map +1 -1
- package/lib/typescript/src/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.d.ts → UNSecureViewNativeComponent.android.d.ts} +1 -1
- package/lib/typescript/src/nativeComponents/UNSecureView/UNSecureViewNativeComponent.android.d.ts.map +1 -0
- package/lib/typescript/src/types/shared/account.types.d.ts +3 -3
- package/lib/typescript/src/types/shared/account.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/authorization.types.d.ts +1 -1
- package/lib/typescript/src/types/shared/authorization.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/checkDeposit.types.d.ts +8 -5
- package/lib/typescript/src/types/shared/checkDeposit.types.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/counterparty.types.d.ts +2 -2
- package/lib/typescript/src/types/shared/payment/bookPayment.types.d.ts +2 -2
- package/lib/typescript/src/types/shared/payment/payments.types.d.ts +3 -3
- package/lib/typescript/src/types/shared/payment/wirePayment.types.d.ts +1 -1
- package/lib/typescript/src/types/shared/transaction/UNAccountLowBalanceClosureTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNAdjustmentTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNAtmTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNBankRepaymentTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNBillPayTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNBookTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNCardReversalTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNCardTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNCashDepositTransaction.d.ts +3 -3
- package/lib/typescript/src/types/shared/transaction/UNChargebackTransaction.d.ts +6 -6
- package/lib/typescript/src/types/shared/transaction/UNCheckDepositTransaction.d.ts +2 -2
- package/lib/typescript/src/types/shared/transaction/UNCustomerRepaymentReturnedTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNCustomerRepaymentTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNDishonoredAchTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNDisputeSettlementTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNDisputeTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNFeeReversalTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNFeeTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNInterchangeShareTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNInterestShareTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNInterestTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNNegativeBalanceCoverageTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNNegativeBalanceCoverageTransaction.d.ts.map +1 -1
- package/lib/typescript/src/types/shared/transaction/UNOriginatedAchTransaction.d.ts +3 -3
- package/lib/typescript/src/types/shared/transaction/UNPaymentAdvanceTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNPaymentCanceledTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNPurchaseTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNReceivedAchTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNReleaseTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNRepaidPaymentAdvanceTransaction.d.ts +6 -6
- package/lib/typescript/src/types/shared/transaction/UNReturnedAchTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNReturnedCheckDepositTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNReturnedReceivedAchTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNRewardTransaction.d.ts +5 -5
- package/lib/typescript/src/types/shared/transaction/UNSettlementTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNSponsoredInterestTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/UNWireTransaction.d.ts +4 -4
- package/lib/typescript/src/types/shared/transaction/transactions.types.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.utils.ts +24 -0
- package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx +6 -0
- package/src/nativeComponents/UNBaseView/UNBaseView.tsx +2 -1
- package/src/types/shared/account.types.ts +3 -3
- package/src/types/shared/authorization.types.ts +1 -1
- package/src/types/shared/checkDeposit.types.ts +8 -5
- package/src/types/shared/counterparty.types.ts +2 -2
- package/src/types/shared/payment/bookPayment.types.ts +2 -2
- package/src/types/shared/payment/payments.types.ts +3 -3
- package/src/types/shared/payment/wirePayment.types.ts +1 -1
- package/src/types/shared/transaction/UNAccountLowBalanceClosureTransaction.ts +4 -4
- package/src/types/shared/transaction/UNAdjustmentTransaction.ts +4 -4
- package/src/types/shared/transaction/UNAtmTransaction.ts +4 -4
- package/src/types/shared/transaction/UNBankRepaymentTransaction.ts +5 -5
- package/src/types/shared/transaction/UNBillPayTransaction.ts +4 -4
- package/src/types/shared/transaction/UNBookTransaction.ts +4 -4
- package/src/types/shared/transaction/UNCardReversalTransaction.ts +5 -5
- package/src/types/shared/transaction/UNCardTransaction.ts +4 -4
- package/src/types/shared/transaction/UNCashDepositTransaction.ts +3 -3
- package/src/types/shared/transaction/UNChargebackTransaction.ts +6 -6
- package/src/types/shared/transaction/UNCheckDepositTransaction.ts +2 -2
- package/src/types/shared/transaction/UNCustomerRepaymentReturnedTransaction.ts +5 -5
- package/src/types/shared/transaction/UNCustomerRepaymentTransaction.ts +5 -5
- package/src/types/shared/transaction/UNDishonoredAchTransaction.ts +4 -4
- package/src/types/shared/transaction/UNDisputeSettlementTransaction.ts +4 -4
- package/src/types/shared/transaction/UNDisputeTransaction.ts +4 -4
- package/src/types/shared/transaction/UNFeeReversalTransaction.ts +5 -5
- package/src/types/shared/transaction/UNFeeTransaction.ts +5 -5
- package/src/types/shared/transaction/UNInterchangeShareTransaction.ts +4 -4
- package/src/types/shared/transaction/UNInterestShareTransaction.ts +4 -4
- package/src/types/shared/transaction/UNInterestTransaction.ts +4 -4
- package/src/types/shared/transaction/UNNegativeBalanceCoverageTransaction.ts +5 -5
- package/src/types/shared/transaction/UNOriginatedAchTransaction.ts +3 -3
- package/src/types/shared/transaction/UNPaymentAdvanceTransaction.ts +5 -5
- package/src/types/shared/transaction/UNPaymentCanceledTransaction.ts +4 -4
- package/src/types/shared/transaction/UNPurchaseTransaction.ts +4 -4
- package/src/types/shared/transaction/UNReceivedAchTransaction.ts +5 -5
- package/src/types/shared/transaction/UNReleaseTransaction.ts +4 -4
- package/src/types/shared/transaction/UNRepaidPaymentAdvanceTransaction.ts +6 -6
- package/src/types/shared/transaction/UNReturnedAchTransaction.ts +4 -4
- package/src/types/shared/transaction/UNReturnedCheckDepositTransaction.ts +4 -4
- package/src/types/shared/transaction/UNReturnedReceivedAchTransaction.ts +5 -5
- package/src/types/shared/transaction/UNRewardTransaction.ts +5 -5
- package/src/types/shared/transaction/UNSettlementTransaction.ts +4 -4
- package/src/types/shared/transaction/UNSponsoredInterestTransaction.ts +4 -4
- package/src/types/shared/transaction/UNWireTransaction.ts +4 -4
- package/src/types/shared/transaction/transactions.types.ts +1 -1
- package/src/unitComponentsSdkManager/UnitComponentsSdkManager.ts +1 -1
- package/lib/module/nativeComponents/UNSecureView/UNSecureViewNativeComponent.js.map +0 -1
- package/lib/typescript/src/nativeComponents/UNSecureView/UNSecureViewNativeComponent.d.ts.map +0 -1
- /package/src/nativeComponents/UNSecureView/{UNSecureViewNativeComponent.ts → UNSecureViewNativeComponent.android.ts} +0 -0
|
@@ -3,7 +3,7 @@ import { UNTransactionTypes } from './transactions.types';
|
|
|
3
3
|
import { UNDirection } from '../types';
|
|
4
4
|
export type UNReturnedReceivedAchTransaction = {
|
|
5
5
|
type: UNTransactionTypes.ReturnedReceivedACH;
|
|
6
|
-
id:
|
|
6
|
+
id: string;
|
|
7
7
|
attributes: {
|
|
8
8
|
createdAt: Date;
|
|
9
9
|
amount: UNCents;
|
|
@@ -19,13 +19,13 @@ export type UNReturnedReceivedAchTransaction = {
|
|
|
19
19
|
account: {
|
|
20
20
|
data: {
|
|
21
21
|
type: string;
|
|
22
|
-
id:
|
|
22
|
+
id: string;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
customer?: {
|
|
26
26
|
data: {
|
|
27
27
|
type: string;
|
|
28
|
-
id:
|
|
28
|
+
id: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
customers?: {
|
|
@@ -39,13 +39,13 @@ export type UNReturnedReceivedAchTransaction = {
|
|
|
39
39
|
org?: {
|
|
40
40
|
data: {
|
|
41
41
|
type: string;
|
|
42
|
-
id:
|
|
42
|
+
id: string;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
returned: {
|
|
46
46
|
data: {
|
|
47
47
|
type: string;
|
|
48
|
-
id:
|
|
48
|
+
id: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
};
|
|
@@ -3,7 +3,7 @@ import { UNTransactionTypes } from './transactions.types';
|
|
|
3
3
|
import { UNDirection } from '../types';
|
|
4
4
|
export type UNRewardTransaction = {
|
|
5
5
|
type: UNTransactionTypes.Reward;
|
|
6
|
-
id:
|
|
6
|
+
id: string;
|
|
7
7
|
attributes: {
|
|
8
8
|
createdAt: Date;
|
|
9
9
|
amount: UNCents;
|
|
@@ -19,13 +19,13 @@ export type UNRewardTransaction = {
|
|
|
19
19
|
account: {
|
|
20
20
|
data: {
|
|
21
21
|
type: string;
|
|
22
|
-
id:
|
|
22
|
+
id: string;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
customer?: {
|
|
26
26
|
data: {
|
|
27
27
|
type: string;
|
|
28
|
-
id:
|
|
28
|
+
id: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
customers?: {
|
|
@@ -39,13 +39,13 @@ export type UNRewardTransaction = {
|
|
|
39
39
|
org?: {
|
|
40
40
|
data: {
|
|
41
41
|
type: string;
|
|
42
|
-
id:
|
|
42
|
+
id: string;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
reward: {
|
|
46
46
|
data: {
|
|
47
47
|
type: string;
|
|
48
|
-
id:
|
|
48
|
+
id: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
};
|
|
@@ -3,7 +3,7 @@ import { UNTransactionTypes } from './transactions.types';
|
|
|
3
3
|
import { UNDirection } from '../types';
|
|
4
4
|
export type UNSettlementTransaction = {
|
|
5
5
|
type: UNTransactionTypes.Settlement;
|
|
6
|
-
id:
|
|
6
|
+
id: string;
|
|
7
7
|
attributes: {
|
|
8
8
|
createdAt: Date;
|
|
9
9
|
amount: UNCents;
|
|
@@ -15,13 +15,13 @@ export type UNSettlementTransaction = {
|
|
|
15
15
|
account: {
|
|
16
16
|
data: {
|
|
17
17
|
type: string;
|
|
18
|
-
id:
|
|
18
|
+
id: string;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
customer?: {
|
|
22
22
|
data: {
|
|
23
23
|
type: string;
|
|
24
|
-
id:
|
|
24
|
+
id: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
customers?: {
|
|
@@ -35,7 +35,7 @@ export type UNSettlementTransaction = {
|
|
|
35
35
|
org?: {
|
|
36
36
|
data: {
|
|
37
37
|
type: string;
|
|
38
|
-
id:
|
|
38
|
+
id: string;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
};
|
|
@@ -3,7 +3,7 @@ import { UNTransactionTypes } from './transactions.types';
|
|
|
3
3
|
import { UNDirection } from '../types';
|
|
4
4
|
export type UNSponsoredInterestTransaction = {
|
|
5
5
|
type: UNTransactionTypes.SponsoredInterest;
|
|
6
|
-
id:
|
|
6
|
+
id: string;
|
|
7
7
|
attributes: {
|
|
8
8
|
createdAt: Date;
|
|
9
9
|
amount: UNCents;
|
|
@@ -15,13 +15,13 @@ export type UNSponsoredInterestTransaction = {
|
|
|
15
15
|
account: {
|
|
16
16
|
data: {
|
|
17
17
|
type: string;
|
|
18
|
-
id:
|
|
18
|
+
id: string;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
customer?: {
|
|
22
22
|
data: {
|
|
23
23
|
type: string;
|
|
24
|
-
id:
|
|
24
|
+
id: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
customers?: {
|
|
@@ -35,7 +35,7 @@ export type UNSponsoredInterestTransaction = {
|
|
|
35
35
|
org?: {
|
|
36
36
|
data: {
|
|
37
37
|
type: string;
|
|
38
|
-
id:
|
|
38
|
+
id: string;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
};
|
|
@@ -3,7 +3,7 @@ import { UNTransactionTypes } from './transactions.types';
|
|
|
3
3
|
import { UNDirection } from '../types';
|
|
4
4
|
export type UNWireTransaction = {
|
|
5
5
|
type: UNTransactionTypes.Wire;
|
|
6
|
-
id:
|
|
6
|
+
id: string;
|
|
7
7
|
attributes: {
|
|
8
8
|
createdAt: Date;
|
|
9
9
|
amount: UNCents;
|
|
@@ -16,13 +16,13 @@ export type UNWireTransaction = {
|
|
|
16
16
|
account: {
|
|
17
17
|
data: {
|
|
18
18
|
type: string;
|
|
19
|
-
id:
|
|
19
|
+
id: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
customer?: {
|
|
23
23
|
data: {
|
|
24
24
|
type: string;
|
|
25
|
-
id:
|
|
25
|
+
id: string;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
customers?: {
|
|
@@ -36,7 +36,7 @@ export type UNWireTransaction = {
|
|
|
36
36
|
org?: {
|
|
37
37
|
data: {
|
|
38
38
|
type: string;
|
|
39
|
-
id:
|
|
39
|
+
id: string;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
};
|
package/package.json
CHANGED
|
@@ -67,6 +67,8 @@ const extractValueFromRequestRenderingEvent = (event: RequestRenderingEvent, key
|
|
|
67
67
|
|
|
68
68
|
const getAddToWalletComponentDataFromEvent = (event: BottomSheetSlotData, customerToken: string): BottomSheetNativeAddToWalletComponentType | null => {
|
|
69
69
|
const cardId = event.componentResourceId ?? extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'card-id');
|
|
70
|
+
const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
|
|
71
|
+
const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
|
|
70
72
|
if (!cardId) {
|
|
71
73
|
console.error('componentResourceId is missing in getAddToWalletComponentDataFromEvent and no cardId in requestRenderingEvent');
|
|
72
74
|
return null;
|
|
@@ -76,12 +78,16 @@ const getAddToWalletComponentDataFromEvent = (event: BottomSheetSlotData, custom
|
|
|
76
78
|
props: {
|
|
77
79
|
cardId: cardId,
|
|
78
80
|
customerToken: customerToken,
|
|
81
|
+
theme: theme,
|
|
82
|
+
language: language
|
|
79
83
|
},
|
|
80
84
|
};
|
|
81
85
|
};
|
|
82
86
|
|
|
83
87
|
const getACHCreditComponentDataFromEvent = (event: BottomSheetSlotData): BottomSheetNativeACHCreditComponentType | null => {
|
|
84
88
|
const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
|
|
89
|
+
const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
|
|
90
|
+
const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
|
|
85
91
|
const fee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'fee');
|
|
86
92
|
const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
|
|
87
93
|
const finalStageDoneButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'final-stage-done-button');
|
|
@@ -96,6 +102,8 @@ const getACHCreditComponentDataFromEvent = (event: BottomSheetSlotData): BottomS
|
|
|
96
102
|
type: BottomSheetNativeComponentType.ACHCreditComponent,
|
|
97
103
|
props: {
|
|
98
104
|
accountId: accountId,
|
|
105
|
+
theme: theme,
|
|
106
|
+
language: language,
|
|
99
107
|
fee: fee ? parseInt(fee) : undefined,
|
|
100
108
|
initialStageBackButton: initialStageBackButton ? initialStageBackButton === 'true' : undefined,
|
|
101
109
|
finalStageDoneButton: finalStageDoneButton ? finalStageDoneButton === 'true' : undefined,
|
|
@@ -110,6 +118,8 @@ const getACHCreditComponentDataFromEvent = (event: BottomSheetSlotData): BottomS
|
|
|
110
118
|
|
|
111
119
|
const getACHDebitComponentDataFromEvent = (event: BottomSheetSlotData): BottomSheetNativeACHDebitComponentType | null => {
|
|
112
120
|
const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
|
|
121
|
+
const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
|
|
122
|
+
const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
|
|
113
123
|
const fee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'fee');
|
|
114
124
|
const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
|
|
115
125
|
const finalStageDoneButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'final-stage-done-button');
|
|
@@ -123,6 +133,8 @@ const getACHDebitComponentDataFromEvent = (event: BottomSheetSlotData): BottomSh
|
|
|
123
133
|
type: BottomSheetNativeComponentType.ACHDebitComponent,
|
|
124
134
|
props: {
|
|
125
135
|
accountId: accountId,
|
|
136
|
+
theme: theme,
|
|
137
|
+
language: language,
|
|
126
138
|
fee: fee ? parseInt(fee) : undefined,
|
|
127
139
|
initialStageBackButton: initialStageBackButton ? initialStageBackButton === 'true' : undefined,
|
|
128
140
|
finalStageDoneButton: finalStageDoneButton ? finalStageDoneButton === 'true' : undefined,
|
|
@@ -136,6 +148,8 @@ const getACHDebitComponentDataFromEvent = (event: BottomSheetSlotData): BottomSh
|
|
|
136
148
|
|
|
137
149
|
const getCheckDepositComponentDataFromEvent = (event: BottomSheetSlotData): BottomSheetNativeCheckDepositComponentType | null => {
|
|
138
150
|
const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
|
|
151
|
+
const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
|
|
152
|
+
const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
|
|
139
153
|
const fee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'fee');
|
|
140
154
|
const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
|
|
141
155
|
const finalStageDoneButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'final-stage-done-button');
|
|
@@ -147,6 +161,8 @@ const getCheckDepositComponentDataFromEvent = (event: BottomSheetSlotData): Bott
|
|
|
147
161
|
type: BottomSheetNativeComponentType.CheckDepositComponent,
|
|
148
162
|
props: {
|
|
149
163
|
accountId: accountId,
|
|
164
|
+
theme: theme,
|
|
165
|
+
language: language,
|
|
150
166
|
fee: fee ? parseInt(fee) : undefined,
|
|
151
167
|
initialStageBackButton: initialStageBackButton ? initialStageBackButton === 'true' : undefined,
|
|
152
168
|
finalStageDoneButton: finalStageDoneButton ? finalStageDoneButton === 'true' : undefined,
|
|
@@ -158,6 +174,8 @@ const getBookPaymentComponentDataFromEvent = (event: BottomSheetSlotData): Botto
|
|
|
158
174
|
const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
|
|
159
175
|
const counterPartyAccountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'counterparty-account-id');
|
|
160
176
|
const counterPartyName = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'counterparty-name');
|
|
177
|
+
const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
|
|
178
|
+
const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
|
|
161
179
|
const isSameCustomer = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'is-same-customer');
|
|
162
180
|
const isAutoFocus = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'is-auto-focus');
|
|
163
181
|
const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
|
|
@@ -167,6 +185,8 @@ const getBookPaymentComponentDataFromEvent = (event: BottomSheetSlotData): Botto
|
|
|
167
185
|
type: BottomSheetNativeComponentType.BookPaymentComponent,
|
|
168
186
|
props: {
|
|
169
187
|
accountId: accountId,
|
|
188
|
+
theme: theme,
|
|
189
|
+
language: language,
|
|
170
190
|
counterPartyAccountId: counterPartyAccountId,
|
|
171
191
|
counterPartyName: counterPartyName,
|
|
172
192
|
isSameCustomer: isSameCustomer ? isSameCustomer === 'true' : undefined,
|
|
@@ -179,6 +199,8 @@ const getBookPaymentComponentDataFromEvent = (event: BottomSheetSlotData): Botto
|
|
|
179
199
|
|
|
180
200
|
const getWirePaymentComponentDataFromEvent = (event: BottomSheetSlotData): BottomSheetNativeWirePaymentComponentType | null => {
|
|
181
201
|
const accountId = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'account-id');
|
|
202
|
+
const theme = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'theme');
|
|
203
|
+
const language = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'language');
|
|
182
204
|
const fee = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'fee');
|
|
183
205
|
const isAutoFocus = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'is-auto-focus');
|
|
184
206
|
const initialStageBackButton = extractValueFromRequestRenderingEvent(event.requestRenderingEvent, 'initial-stage-back-button');
|
|
@@ -192,6 +214,8 @@ const getWirePaymentComponentDataFromEvent = (event: BottomSheetSlotData): Botto
|
|
|
192
214
|
type: BottomSheetNativeComponentType.WirePaymentComponent,
|
|
193
215
|
props: {
|
|
194
216
|
accountId: accountId,
|
|
217
|
+
theme: theme,
|
|
218
|
+
language: language,
|
|
195
219
|
fee: fee ? parseInt(fee) : undefined,
|
|
196
220
|
isAutoFocus: isAutoFocus ? isAutoFocus === 'true' : undefined,
|
|
197
221
|
initialStageBackButton: initialStageBackButton ? initialStageBackButton === 'true' : undefined,
|
package/src/nativeComponents/UNAddToWallet/UNAddToWalletComponent/UNAddToWalletComponent.tsx
CHANGED
|
@@ -26,6 +26,10 @@ import { UNBaseView } from '../../UNBaseView';
|
|
|
26
26
|
export interface UNAddToWalletComponentProps {
|
|
27
27
|
customerToken: string;
|
|
28
28
|
cardId: string;
|
|
29
|
+
|
|
30
|
+
// ui
|
|
31
|
+
theme?: string;
|
|
32
|
+
language?: string;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
const UNAddToWalletComponent = (props: UNAddToWalletComponentProps) => {
|
|
@@ -73,6 +77,8 @@ const UNAddToWalletComponent = (props: UNAddToWalletComponentProps) => {
|
|
|
73
77
|
type={WebComponentType.cardAction}
|
|
74
78
|
presentationMode={PresentationMode.CoverInjectedHeight}
|
|
75
79
|
params={getAddToWalletParams(props)}
|
|
80
|
+
theme={props.theme}
|
|
81
|
+
language={props.language}
|
|
76
82
|
isScrollable={false}
|
|
77
83
|
onMessage={(message: WebViewMessage) => handleWebViewMessage(message)}
|
|
78
84
|
windowParams={getAddToWalletWindowParams(currentUNWallet)}
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
import { UNComponentsError, UNComponentsErrorCodes, UNComponentsErrorData } from '../../types/shared';
|
|
8
8
|
import { useIsJailbrokeDevice } from '../../hooks/useIsJailbrokeDevice';
|
|
9
9
|
import { useSnapshotProtection } from '../../hooks/useSnapshotProtection';
|
|
10
|
-
import UnitAndroidSecureView from '../UNSecureView/UNSecureViewNativeComponent';
|
|
11
10
|
import { RootState } from '../../store';
|
|
12
11
|
import { useSelector } from 'react-redux';
|
|
13
12
|
|
|
@@ -44,6 +43,8 @@ const UNBaseView = (props: UnitSecureViewProps) => {
|
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
if (Platform.OS == 'android') {
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
47
|
+
const UnitAndroidSecureView = require('../UNSecureView/UNSecureViewNativeComponent.android').default;
|
|
47
48
|
return <UnitAndroidSecureView filterTouchesWhenObscured={true} {...props}/>;
|
|
48
49
|
} else {
|
|
49
50
|
return (
|
|
@@ -20,7 +20,7 @@ export type UNDepositAccount = {
|
|
|
20
20
|
}
|
|
21
21
|
balance: number
|
|
22
22
|
hold: number
|
|
23
|
-
reserve
|
|
23
|
+
reserve?: number
|
|
24
24
|
available: number
|
|
25
25
|
overdraftLimit?: number
|
|
26
26
|
currency: string
|
|
@@ -71,7 +71,7 @@ export type UNBatchAccount = {
|
|
|
71
71
|
maskedAccountNumber?: string
|
|
72
72
|
balance: number
|
|
73
73
|
hold: number
|
|
74
|
-
reserve
|
|
74
|
+
reserve?: number
|
|
75
75
|
available: number
|
|
76
76
|
currency: string
|
|
77
77
|
status: UNAccountStatus
|
|
@@ -101,7 +101,7 @@ export type UNCreditAccount = {
|
|
|
101
101
|
creditTerms: string
|
|
102
102
|
balance: number
|
|
103
103
|
hold: number
|
|
104
|
-
reserve
|
|
104
|
+
reserve?: number
|
|
105
105
|
available: number
|
|
106
106
|
creditLimit: number
|
|
107
107
|
currency: string
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UNActivityType } from '../shared';
|
|
2
|
-
import { UNCents
|
|
2
|
+
import { UNCents } from './payment/payments.types';
|
|
3
3
|
|
|
4
4
|
export type UNCheckDeposit = {
|
|
5
5
|
id: string
|
|
@@ -13,18 +13,21 @@ export type UNCheckDeposit = {
|
|
|
13
13
|
amount: UNCents
|
|
14
14
|
vendor?: UNCheckDepositVendors
|
|
15
15
|
checkNumber?: string
|
|
16
|
-
counterparty
|
|
16
|
+
counterparty?: UNCheckCounterparty
|
|
17
17
|
frontImage?: string
|
|
18
18
|
backImage?: string
|
|
19
19
|
settlementDate?: Date
|
|
20
20
|
statusCreatedAt?: Date
|
|
21
21
|
statusSetBy?: string
|
|
22
|
-
statusHistory
|
|
22
|
+
statusHistory?: UNStatusEvent[]
|
|
23
23
|
tags?: { [key: string]: string }
|
|
24
24
|
}
|
|
25
25
|
relationships: {
|
|
26
26
|
account: {
|
|
27
|
-
data:
|
|
27
|
+
data: {
|
|
28
|
+
type: string
|
|
29
|
+
id: string
|
|
30
|
+
}
|
|
28
31
|
}
|
|
29
32
|
customer?: {
|
|
30
33
|
data: {
|
|
@@ -48,7 +51,7 @@ export type UNCheckDeposit = {
|
|
|
48
51
|
}
|
|
49
52
|
transaction?: {
|
|
50
53
|
data: {
|
|
51
|
-
type: UNActivityType
|
|
54
|
+
type: UNActivityType.Transaction
|
|
52
55
|
id: string
|
|
53
56
|
}
|
|
54
57
|
}
|
|
@@ -15,7 +15,7 @@ export type UNCounterparty = {
|
|
|
15
15
|
customer: {
|
|
16
16
|
data: {
|
|
17
17
|
type: 'customer'
|
|
18
|
-
id:
|
|
18
|
+
id: string
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -47,7 +47,7 @@ export type UNConnectedAccount = {
|
|
|
47
47
|
customer: {
|
|
48
48
|
data: {
|
|
49
49
|
type: 'customer'
|
|
50
|
-
id:
|
|
50
|
+
id: string
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -55,17 +55,17 @@ export type UNCents = number
|
|
|
55
55
|
|
|
56
56
|
export type UNRelationshipsTransaction = {
|
|
57
57
|
type: string
|
|
58
|
-
id:
|
|
58
|
+
id: string
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export type UNRelationshipsCounterparty = {
|
|
62
62
|
type: string
|
|
63
|
-
id:
|
|
63
|
+
id: string
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export type UNRelationshipsRecurringPayment = {
|
|
67
67
|
type: string
|
|
68
|
-
id:
|
|
68
|
+
id: string
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export type UNRelationshipsAccount = {
|
|
@@ -4,7 +4,7 @@ import { UNTransactionTypes } from './transactions.types';
|
|
|
4
4
|
|
|
5
5
|
export type UNAccountLowBalanceClosureTransaction = {
|
|
6
6
|
type: UNTransactionTypes.AccountLowBalanceClosure
|
|
7
|
-
id:
|
|
7
|
+
id: string
|
|
8
8
|
attributes: {
|
|
9
9
|
createdAt: Date
|
|
10
10
|
amount: UNCents
|
|
@@ -16,13 +16,13 @@ export type UNAccountLowBalanceClosureTransaction = {
|
|
|
16
16
|
account: {
|
|
17
17
|
data: {
|
|
18
18
|
type: string
|
|
19
|
-
id:
|
|
19
|
+
id: string
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
customer?: {
|
|
23
23
|
data: {
|
|
24
24
|
type: string
|
|
25
|
-
id:
|
|
25
|
+
id: string
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
customers?: {
|
|
@@ -36,7 +36,7 @@ export type UNAccountLowBalanceClosureTransaction = {
|
|
|
36
36
|
org?: {
|
|
37
37
|
data: {
|
|
38
38
|
type: string
|
|
39
|
-
id:
|
|
39
|
+
id: string
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -4,7 +4,7 @@ import { UNDirection } from '../types';
|
|
|
4
4
|
|
|
5
5
|
export type UNAdjustmentTransaction = {
|
|
6
6
|
type: UNTransactionTypes.Adjustment
|
|
7
|
-
id:
|
|
7
|
+
id: string
|
|
8
8
|
attributes: {
|
|
9
9
|
createdAt: Date
|
|
10
10
|
amount: UNCents
|
|
@@ -16,13 +16,13 @@ export type UNAdjustmentTransaction = {
|
|
|
16
16
|
account: {
|
|
17
17
|
data: {
|
|
18
18
|
type: string
|
|
19
|
-
id:
|
|
19
|
+
id: string
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
customer?: {
|
|
23
23
|
data: {
|
|
24
24
|
type: string
|
|
25
|
-
id:
|
|
25
|
+
id: string
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
customers?: {
|
|
@@ -36,7 +36,7 @@ export type UNAdjustmentTransaction = {
|
|
|
36
36
|
org?: {
|
|
37
37
|
data: {
|
|
38
38
|
type: string
|
|
39
|
-
id:
|
|
39
|
+
id: string
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -4,7 +4,7 @@ import { UNTransactionTypes } from './transactions.types';
|
|
|
4
4
|
|
|
5
5
|
export type UNAtmTransaction = {
|
|
6
6
|
type: UNTransactionTypes.ATM
|
|
7
|
-
id:
|
|
7
|
+
id: string
|
|
8
8
|
attributes: {
|
|
9
9
|
createdAt: Date
|
|
10
10
|
amount: UNCents
|
|
@@ -21,13 +21,13 @@ export type UNAtmTransaction = {
|
|
|
21
21
|
account: {
|
|
22
22
|
data: {
|
|
23
23
|
type: string
|
|
24
|
-
id:
|
|
24
|
+
id: string
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
customer?: {
|
|
28
28
|
data: {
|
|
29
29
|
type: string
|
|
30
|
-
id:
|
|
30
|
+
id: string
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
customers?: {
|
|
@@ -41,7 +41,7 @@ export type UNAtmTransaction = {
|
|
|
41
41
|
org?: {
|
|
42
42
|
data: {
|
|
43
43
|
type: string
|
|
44
|
-
id:
|
|
44
|
+
id: string
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -4,7 +4,7 @@ import { UNDirection } from '../types';
|
|
|
4
4
|
|
|
5
5
|
export type UNBankRepaymentTransaction = {
|
|
6
6
|
type: UNTransactionTypes.BankRepayment
|
|
7
|
-
id:
|
|
7
|
+
id: string
|
|
8
8
|
attributes: {
|
|
9
9
|
createdAt: Date
|
|
10
10
|
amount: UNCents
|
|
@@ -18,19 +18,19 @@ export type UNBankRepaymentTransaction = {
|
|
|
18
18
|
account: {
|
|
19
19
|
data: {
|
|
20
20
|
type: string
|
|
21
|
-
id:
|
|
21
|
+
id: string
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
receivingAccount: {
|
|
25
25
|
data: {
|
|
26
26
|
type: string
|
|
27
|
-
id:
|
|
27
|
+
id: string
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
customer?: {
|
|
31
31
|
data: {
|
|
32
32
|
type: string
|
|
33
|
-
id:
|
|
33
|
+
id: string
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
customers?: {
|
|
@@ -44,7 +44,7 @@ export type UNBankRepaymentTransaction = {
|
|
|
44
44
|
org?: {
|
|
45
45
|
data: {
|
|
46
46
|
type: string
|
|
47
|
-
id:
|
|
47
|
+
id: string
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -4,7 +4,7 @@ import { UNDirection } from '../types';
|
|
|
4
4
|
|
|
5
5
|
export type UNBillPayTransaction = {
|
|
6
6
|
type: UNTransactionTypes.BillPay
|
|
7
|
-
id:
|
|
7
|
+
id: string
|
|
8
8
|
attributes: {
|
|
9
9
|
createdAt: Date
|
|
10
10
|
amount: UNCents
|
|
@@ -16,13 +16,13 @@ export type UNBillPayTransaction = {
|
|
|
16
16
|
account: {
|
|
17
17
|
data: {
|
|
18
18
|
type: string
|
|
19
|
-
id:
|
|
19
|
+
id: string
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
customer?: {
|
|
23
23
|
data: {
|
|
24
24
|
type: string
|
|
25
|
-
id:
|
|
25
|
+
id: string
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
customers?: {
|
|
@@ -36,7 +36,7 @@ export type UNBillPayTransaction = {
|
|
|
36
36
|
org?: {
|
|
37
37
|
data: {
|
|
38
38
|
type: string
|
|
39
|
-
id:
|
|
39
|
+
id: string
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|