react-native-unit-components 1.1.0 → 1.2.1
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/README.md +70 -1
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js +8 -0
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +12 -0
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js +4 -0
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem.js +6 -5
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/commonjs/messages/nativeMessages/cardMessage.js +1 -13
- package/lib/commonjs/messages/nativeMessages/cardMessage.js.map +1 -1
- package/lib/commonjs/messages/webMessages/accountMessage.js +12 -0
- package/lib/commonjs/messages/webMessages/accountMessage.js.map +1 -0
- package/lib/commonjs/messages/webMessages/index.js.map +1 -1
- package/lib/commonjs/messages/webMessages/unitMessages.js.map +1 -1
- package/lib/commonjs/scripts/html/bodyScript.js +14 -3
- package/lib/commonjs/scripts/html/bodyScript.js.map +1 -1
- package/lib/commonjs/sharedTypes/account.types.js +31 -0
- package/lib/commonjs/sharedTypes/account.types.js.map +1 -0
- package/lib/commonjs/sharedTypes/achCredit.types.js.map +1 -1
- package/lib/commonjs/sharedTypes/bookPayment.types.js.map +1 -1
- package/lib/commonjs/sharedTypes/card.types.js.map +1 -1
- package/lib/commonjs/sharedTypes/index.js +11 -0
- package/lib/commonjs/sharedTypes/index.js.map +1 -1
- package/lib/commonjs/sharedTypes/onLoadResponse.types.js.map +1 -1
- package/lib/commonjs/sharedTypes/payments.types.js +6 -6
- package/lib/commonjs/sharedTypes/payments.types.js.map +1 -1
- package/lib/commonjs/sharedTypes/types.js.map +1 -1
- package/lib/commonjs/sharedTypes/wallet.types.js +13 -1
- package/lib/commonjs/sharedTypes/wallet.types.js.map +1 -1
- package/lib/commonjs/webComponent/WebComponent.js +2 -1
- package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
- package/lib/commonjs/webComponent/html.js +2 -0
- package/lib/commonjs/webComponent/html.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js +8 -0
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js +11 -0
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js +4 -0
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem.js +7 -6
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/module/messages/nativeMessages/cardMessage.js +0 -11
- package/lib/module/messages/nativeMessages/cardMessage.js.map +1 -1
- package/lib/module/messages/webMessages/accountMessage.js +5 -0
- package/lib/module/messages/webMessages/accountMessage.js.map +1 -0
- package/lib/module/messages/webMessages/index.js.map +1 -1
- package/lib/module/messages/webMessages/unitMessages.js.map +1 -1
- package/lib/module/scripts/html/bodyScript.js +14 -3
- package/lib/module/scripts/html/bodyScript.js.map +1 -1
- package/lib/module/sharedTypes/account.types.js +23 -0
- package/lib/module/sharedTypes/account.types.js.map +1 -0
- package/lib/module/sharedTypes/achCredit.types.js.map +1 -1
- package/lib/module/sharedTypes/bookPayment.types.js.map +1 -1
- package/lib/module/sharedTypes/card.types.js.map +1 -1
- package/lib/module/sharedTypes/index.js +1 -0
- package/lib/module/sharedTypes/index.js.map +1 -1
- package/lib/module/sharedTypes/onLoadResponse.types.js.map +1 -1
- package/lib/module/sharedTypes/payments.types.js +4 -4
- package/lib/module/sharedTypes/payments.types.js.map +1 -1
- package/lib/module/sharedTypes/types.js.map +1 -1
- package/lib/module/sharedTypes/wallet.types.js +11 -0
- package/lib/module/sharedTypes/wallet.types.js.map +1 -1
- package/lib/module/webComponent/WebComponent.js +2 -1
- package/lib/module/webComponent/WebComponent.js.map +1 -1
- package/lib/module/webComponent/html.js +2 -0
- package/lib/module/webComponent/html.js.map +1 -1
- package/lib/typescript/components/UNACHCreditComponent/UNACHCreditComponent.d.ts +2 -2
- package/lib/typescript/components/UNACHDebitComponent/UNACHDebitComponent.d.ts +2 -2
- package/lib/typescript/components/UNAccountComponent/UNAccountComponent.d.ts +4 -2
- package/lib/typescript/components/UNActivityComponent/UNActivityComponent.d.ts +2 -2
- package/lib/typescript/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +2 -2
- package/lib/typescript/components/UNCardComponent/UNCardComponent.d.ts +2 -2
- package/lib/typescript/messages/nativeMessages/cardMessage.d.ts +4 -13
- package/lib/typescript/messages/webMessages/accountMessage.d.ts +8 -0
- package/lib/typescript/messages/webMessages/index.d.ts +3 -2
- package/lib/typescript/messages/webMessages/unitMessages.d.ts +2 -2
- package/lib/typescript/scripts/html/bodyScript.d.ts +1 -0
- package/lib/typescript/sharedTypes/account.types.d.ts +114 -0
- package/lib/typescript/sharedTypes/achCredit.types.d.ts +13 -13
- package/lib/typescript/sharedTypes/bookPayment.types.d.ts +11 -11
- package/lib/typescript/sharedTypes/card.types.d.ts +18 -18
- package/lib/typescript/sharedTypes/index.d.ts +1 -0
- package/lib/typescript/sharedTypes/onLoadResponse.types.d.ts +3 -3
- package/lib/typescript/sharedTypes/payments.types.d.ts +5 -5
- package/lib/typescript/sharedTypes/types.d.ts +7 -7
- package/lib/typescript/sharedTypes/wallet.types.d.ts +11 -2
- package/package.json +1 -1
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +3 -3
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +3 -3
- package/src/components/UNAccountComponent/UNAccountComponent.tsx +11 -3
- package/src/components/UNActivityComponent/UNActivityComponent.tsx +15 -4
- package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +3 -3
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +11 -1
- package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem.tsx +8 -7
- package/src/components/UNCardComponent/UNCardComponent.tsx +5 -5
- package/src/messages/nativeMessages/cardMessage.ts +5 -15
- package/src/messages/webMessages/accountMessage.ts +12 -0
- package/src/messages/webMessages/index.ts +3 -0
- package/src/messages/webMessages/unitMessages.ts +2 -2
- package/src/scripts/html/bodyScript.ts +14 -2
- package/src/sharedTypes/account.types.ts +117 -0
- package/src/sharedTypes/achCredit.types.ts +13 -13
- package/src/sharedTypes/bookPayment.types.ts +11 -11
- package/src/sharedTypes/card.types.ts +18 -18
- package/src/sharedTypes/index.ts +1 -0
- package/src/sharedTypes/onLoadResponse.types.ts +5 -5
- package/src/sharedTypes/payments.types.ts +5 -5
- package/src/sharedTypes/types.ts +8 -8
- package/src/sharedTypes/wallet.types.ts +13 -3
- package/src/webComponent/WebComponent.tsx +1 -1
- package/src/webComponent/html.ts +2 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { UNRelationship, UNTags } from './types';
|
|
2
|
+
|
|
3
|
+
export type UNAccountData = UNDepositAccount | UNBatchAccount | UNCreditAccount
|
|
4
|
+
|
|
5
|
+
enum UNAccountStatus {
|
|
6
|
+
Open = "Open",
|
|
7
|
+
Closed = "Closed",
|
|
8
|
+
Frozen = "Frozen",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum UNCloseReason {
|
|
12
|
+
Fraud = "Fraud",
|
|
13
|
+
ByCustomer = "ByCustomer",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum UNFraudReason {
|
|
17
|
+
ACHActivity = "ACHActivity",
|
|
18
|
+
CardActivity = "CardActivity",
|
|
19
|
+
CheckActivity = "CheckActivity",
|
|
20
|
+
ApplicationHistory = "ApplicationHistory",
|
|
21
|
+
AccountActivity = "AccountActivity",
|
|
22
|
+
ClientIdentified = "ClientIdentified",
|
|
23
|
+
IdentityTheft = "IdentityTheft",
|
|
24
|
+
LinkedToFraudulentCustomer = "LinkedToFraudulentCustomer",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type UNDepositAccount = {
|
|
28
|
+
id: string
|
|
29
|
+
type: "depositAccount"
|
|
30
|
+
attributes: {
|
|
31
|
+
createdAt: string
|
|
32
|
+
updatedAt?: string
|
|
33
|
+
name: string
|
|
34
|
+
depositProduct: string
|
|
35
|
+
routingNumber: string
|
|
36
|
+
accountNumber: string
|
|
37
|
+
maskedAccountNumber?: string
|
|
38
|
+
secondaryAccountNumber?: {
|
|
39
|
+
routingNumber: string
|
|
40
|
+
accountNumber: string
|
|
41
|
+
}
|
|
42
|
+
balance: number
|
|
43
|
+
hold: number
|
|
44
|
+
reserve: number
|
|
45
|
+
available: number
|
|
46
|
+
overdraftLimit?: number
|
|
47
|
+
currency: string
|
|
48
|
+
tags: UNTags
|
|
49
|
+
status: UNAccountStatus
|
|
50
|
+
closeReason?: string
|
|
51
|
+
fraudReason?: UNFraudReason
|
|
52
|
+
closeReasonText?: string
|
|
53
|
+
freezeReason?: string
|
|
54
|
+
isOverdrawnWithinLimit?: boolean
|
|
55
|
+
}
|
|
56
|
+
relationships: {
|
|
57
|
+
customer?: UNRelationship
|
|
58
|
+
customers?: UNRelationship
|
|
59
|
+
org: UNRelationship
|
|
60
|
+
}
|
|
61
|
+
// included?: Individual[]
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type UNBatchAccount = {
|
|
65
|
+
id: string
|
|
66
|
+
type: "batchAccount"
|
|
67
|
+
attributes: {
|
|
68
|
+
createdAt: Date
|
|
69
|
+
updatedAt?: Date
|
|
70
|
+
name: string
|
|
71
|
+
depositProduct: string
|
|
72
|
+
routingNumber: string
|
|
73
|
+
accountNumber: string
|
|
74
|
+
maskedAccountNumber?: string
|
|
75
|
+
balance: number
|
|
76
|
+
hold: number
|
|
77
|
+
reserve: number
|
|
78
|
+
available: number
|
|
79
|
+
currency: string
|
|
80
|
+
status: "Open" | "Closed"
|
|
81
|
+
closeReason?: string
|
|
82
|
+
fraudReason?: UNFraudReason
|
|
83
|
+
closeReasonText?: string
|
|
84
|
+
freezeReason?: string
|
|
85
|
+
tags?: {[key: string]: string}
|
|
86
|
+
}
|
|
87
|
+
relationships: {
|
|
88
|
+
org: UNRelationship
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type UNCreditAccount = {
|
|
93
|
+
id: string
|
|
94
|
+
type: "creditAccount"
|
|
95
|
+
attributes: {
|
|
96
|
+
createdAt: Date
|
|
97
|
+
updatedAt?: Date
|
|
98
|
+
name: string
|
|
99
|
+
creditTerms: string
|
|
100
|
+
balance: number
|
|
101
|
+
hold: number
|
|
102
|
+
reserve: number
|
|
103
|
+
available: number
|
|
104
|
+
creditLimit: number
|
|
105
|
+
currency: string
|
|
106
|
+
tags: {[key: string]: string}
|
|
107
|
+
status: UNAccountStatus
|
|
108
|
+
closeReason?: UNCloseReason
|
|
109
|
+
fraudReason?: UNFraudReason
|
|
110
|
+
closeReasonText?: string
|
|
111
|
+
freezeReason?: string
|
|
112
|
+
}
|
|
113
|
+
relationships: {
|
|
114
|
+
customer: UNRelationship,
|
|
115
|
+
org: UNRelationship
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { UNAchCounterparty, UNCounterpartyVerificationMethod, UNPaymentStatus } from './payments.types';
|
|
2
|
+
import type { UNTags, UNRelationship } from './types';
|
|
3
3
|
|
|
4
4
|
export type UNACHData = {
|
|
5
5
|
type: 'achPayment',
|
|
6
6
|
id: string,
|
|
7
7
|
attributes: {
|
|
8
8
|
createdAt: string | Date,
|
|
9
|
-
status:
|
|
9
|
+
status: UNPaymentStatus,
|
|
10
10
|
settlementDate?: Date,
|
|
11
11
|
reason: string,
|
|
12
12
|
direction: 'Debit' | 'Credit',
|
|
13
13
|
description: string,
|
|
14
14
|
transactionSummaryOverride?: string,
|
|
15
15
|
amount: string,
|
|
16
|
-
tags:
|
|
16
|
+
tags: UNTags,
|
|
17
17
|
addenda?: string
|
|
18
|
-
counterparty:
|
|
18
|
+
counterparty: UNAchCounterparty
|
|
19
19
|
expectedCompletionDate?: Date
|
|
20
|
-
counterpartyVerificationMethod?:keyof typeof
|
|
20
|
+
counterpartyVerificationMethod?:keyof typeof UNCounterpartyVerificationMethod
|
|
21
21
|
sameDay?: boolean
|
|
22
22
|
},
|
|
23
23
|
relationships: {
|
|
24
|
-
account:
|
|
25
|
-
customer?:
|
|
26
|
-
customers?:
|
|
27
|
-
counterpartyAccount:
|
|
28
|
-
counterpartyCustomer:
|
|
29
|
-
transaction:
|
|
30
|
-
recurringPayment:
|
|
24
|
+
account: UNRelationship,
|
|
25
|
+
customer?: UNRelationship,
|
|
26
|
+
customers?: UNRelationship,
|
|
27
|
+
counterpartyAccount: UNRelationship,
|
|
28
|
+
counterpartyCustomer: UNRelationship,
|
|
29
|
+
transaction: UNRelationship,
|
|
30
|
+
recurringPayment: UNRelationship
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { UNPaymentStatus } from './payments.types';
|
|
2
|
+
import type { UNTags, UNRelationship } from './types';
|
|
3
3
|
|
|
4
4
|
export type UNBookPaymentData = {
|
|
5
5
|
type: 'bookPayment',
|
|
6
6
|
id: string,
|
|
7
7
|
attributes: {
|
|
8
8
|
createdAt: string | Date,
|
|
9
|
-
status:
|
|
9
|
+
status: UNPaymentStatus,
|
|
10
10
|
reason: string,
|
|
11
11
|
direction: 'Debit' | 'Credit',
|
|
12
12
|
description: string,
|
|
13
13
|
transactionSummaryOverride?: string,
|
|
14
14
|
amount: string,
|
|
15
|
-
tags:
|
|
15
|
+
tags: UNTags,
|
|
16
16
|
},
|
|
17
17
|
relationships: {
|
|
18
|
-
account:
|
|
19
|
-
customer?:
|
|
20
|
-
customers?:
|
|
21
|
-
counterpartyAccount:
|
|
22
|
-
counterpartyCustomer:
|
|
23
|
-
transaction:
|
|
24
|
-
recurringPayment:
|
|
18
|
+
account: UNRelationship,
|
|
19
|
+
customer?: UNRelationship,
|
|
20
|
+
customers?: UNRelationship,
|
|
21
|
+
counterpartyAccount: UNRelationship,
|
|
22
|
+
counterpartyCustomer: UNRelationship,
|
|
23
|
+
transaction: UNRelationship,
|
|
24
|
+
recurringPayment: UNRelationship
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UNAddress, UNFullName, UNLimits, UNRelationship, UNTags } from './types';
|
|
2
2
|
|
|
3
|
-
export type UNCardData =
|
|
3
|
+
export type UNCardData = UNIndividualDebitCard | UNBusinessDebitCard
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
type UNCardStatus = 'Active' | 'Inactive' | 'Stolen' | 'Lost' | 'Frozen' | 'ClosedByCustomer' | 'SuspectedFraud'
|
|
6
6
|
|
|
7
|
-
export type
|
|
7
|
+
export type UNIndividualDebitCard = {
|
|
8
8
|
id: string,
|
|
9
9
|
type: 'individualDebitCard' | 'individualVirtualDebitCard',
|
|
10
10
|
attributes: {
|
|
11
11
|
createdAt: string,
|
|
12
12
|
last4Digits: string,
|
|
13
13
|
expirationDate: string,
|
|
14
|
-
status:
|
|
15
|
-
shippingAddress?:
|
|
14
|
+
status: UNCardStatus,
|
|
15
|
+
shippingAddress?: UNAddress, /* not exists in virtual card */
|
|
16
16
|
updatedAt?: string,
|
|
17
17
|
design?: string,
|
|
18
18
|
additionalEmbossedText?: string,
|
|
19
19
|
idempotencyKey?: string,
|
|
20
|
-
tags?:
|
|
21
|
-
limits?:
|
|
20
|
+
tags?: UNTags,
|
|
21
|
+
limits?: UNLimits,
|
|
22
22
|
printOnlyBusinessName?: boolean
|
|
23
23
|
},
|
|
24
24
|
relationships: {
|
|
25
|
-
account:
|
|
26
|
-
customer:
|
|
25
|
+
account: UNRelationship,
|
|
26
|
+
customer: UNRelationship
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export type
|
|
30
|
+
export type UNBusinessDebitCard = {
|
|
31
31
|
id: string,
|
|
32
32
|
type: 'businessDebitCard' | 'businessVirtualDebitCard',
|
|
33
33
|
attributes: {
|
|
34
|
-
fullName:
|
|
34
|
+
fullName: UNFullName,
|
|
35
35
|
dateOfBirth: string,
|
|
36
|
-
address:
|
|
37
|
-
shippingAddress?:
|
|
36
|
+
address: UNAddress,
|
|
37
|
+
shippingAddress?: UNAddress,
|
|
38
38
|
phone: string,
|
|
39
39
|
email: string,
|
|
40
40
|
createdAt: string,
|
|
41
41
|
last4Digits: string,
|
|
42
42
|
expirationDate: string,
|
|
43
|
-
status:
|
|
43
|
+
status: UNCardStatus,
|
|
44
44
|
updatedAt?: string,
|
|
45
45
|
ssn?: string,
|
|
46
46
|
passport?: string,
|
|
@@ -49,11 +49,11 @@ export type BusinessDebitCard = {
|
|
|
49
49
|
additionalEmbossedText?: string,
|
|
50
50
|
idempotencyKey?: string,
|
|
51
51
|
tags?: Record<string, string>
|
|
52
|
-
limits?:
|
|
52
|
+
limits?: UNLimits,
|
|
53
53
|
printOnlyBusinessName?: boolean
|
|
54
54
|
},
|
|
55
55
|
relationships: {
|
|
56
|
-
account:
|
|
57
|
-
customer:
|
|
56
|
+
account: UNRelationship,
|
|
57
|
+
customer: UNRelationship
|
|
58
58
|
}
|
|
59
59
|
}
|
package/src/sharedTypes/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
2
2
|
import type { UNCardData } from '../sharedTypes';
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type UNSuccessResponseUnitOnLoad = {
|
|
5
5
|
/*
|
|
6
6
|
Object since the current response data types from 'Activities' and 'BookPayment' do not have documentation.
|
|
7
7
|
When things are determined, we may update it
|
|
@@ -11,7 +11,7 @@ export type SuccessResponseUnitOnLoad = {
|
|
|
11
11
|
errors: null
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export type
|
|
14
|
+
export type UNErrorResponseUnitOnLoad = {
|
|
15
15
|
errors: [
|
|
16
16
|
{
|
|
17
17
|
status: string,
|
|
@@ -22,6 +22,6 @@ export type ErrorResponseUnitOnLoad = {
|
|
|
22
22
|
}
|
|
23
23
|
]
|
|
24
24
|
}
|
|
25
|
-
export type
|
|
26
|
-
|
|
|
27
|
-
|
|
|
25
|
+
export type UNResponseUnitOnLoadEvent =
|
|
26
|
+
| UNSuccessResponseUnitOnLoad
|
|
27
|
+
| UNErrorResponseUnitOnLoad
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type UNPaymentStatus = 'Sent' | 'Rejected'
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type UNAchCounterparty = {
|
|
4
4
|
name: string
|
|
5
5
|
accountNumber: string
|
|
6
6
|
routingNumber: string
|
|
7
|
-
accountType:
|
|
7
|
+
accountType: UNAccountType
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
type
|
|
10
|
+
type UNAccountType = 'Savings' | 'Checking'
|
|
11
11
|
|
|
12
|
-
export enum
|
|
12
|
+
export enum UNCounterpartyVerificationMethod {
|
|
13
13
|
Plaid = 'Plaid',
|
|
14
14
|
}
|
package/src/sharedTypes/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type UNAddress = {
|
|
2
2
|
street: string,
|
|
3
3
|
street2?: string,
|
|
4
4
|
city: string,
|
|
@@ -7,29 +7,29 @@ export type Address = {
|
|
|
7
7
|
country: string
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type UNLimits = {
|
|
11
11
|
dailyWithdrawal?: string | number,
|
|
12
12
|
dailyPurchase?: string | number,
|
|
13
13
|
monthlyWithdrawal?: string | number,
|
|
14
14
|
monthlyPurchase?: string | number,
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
type
|
|
17
|
+
type UNData = {
|
|
18
18
|
type: string,
|
|
19
19
|
id: string
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export type
|
|
22
|
+
export type UNRelationship = {
|
|
23
23
|
data:
|
|
24
24
|
| null
|
|
25
25
|
| []
|
|
26
|
-
|
|
|
27
|
-
|
|
|
26
|
+
| UNData
|
|
27
|
+
| UNData[]
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export type
|
|
30
|
+
export type UNFullName = {
|
|
31
31
|
first: string,
|
|
32
32
|
last: string
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export type
|
|
35
|
+
export type UNTags = Record<string, string> // TODO: specify Tag type
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { CardAddToWalletStatus } from 'src/messages/nativeMessages/cardMessage';
|
|
2
|
-
|
|
3
1
|
export enum UNWalletCode {
|
|
4
2
|
Apple = 'ApplePayPushProvision',
|
|
5
3
|
Google = 'GooglePayPushProvision',
|
|
@@ -13,5 +11,17 @@ export enum UNWalletName {
|
|
|
13
11
|
export interface UNWallet {
|
|
14
12
|
name: string;
|
|
15
13
|
code: string;
|
|
16
|
-
status:
|
|
14
|
+
status: UNCardAddToWalletStatus
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum UNCardAddToWalletStatus {
|
|
18
|
+
pending,
|
|
19
|
+
readyToProvisioning = 'ReadyToProvision',
|
|
20
|
+
addedToWallet = 'AlreadyProvisioned',
|
|
21
|
+
iosProvisionedInCurrentDevice = 'ProvisionedInCurrentDevice',
|
|
22
|
+
iosProvisionedInPairedDevice = 'ProvisionedInPairedDevice',
|
|
23
|
+
androidNotInstalled = 'NotInstalled',
|
|
24
|
+
androidWalletSetupNotCompleted = 'WalletSetupNotCompleted',
|
|
25
|
+
androidWalletAppUpdateAvailable = 'WalletAppUpdateAvailable'
|
|
26
|
+
|
|
17
27
|
}
|
|
@@ -101,7 +101,7 @@ export const WebComponent = React.forwardRef<WebView, WebComponentProps>(functio
|
|
|
101
101
|
onScroll={_onScroll}
|
|
102
102
|
overScrollMode="never"
|
|
103
103
|
injectedJavaScript={unitScript}
|
|
104
|
-
style={{ width: width, flex: 1 }}
|
|
104
|
+
style={{ width: width, flex: 1, opacity: 0.99}}
|
|
105
105
|
source={{ html: sourceHtml }}
|
|
106
106
|
onMessage={onMessage} />
|
|
107
107
|
);
|