Skip to content

Commit 328d303

Browse files
authored
Few changes 0.9.2 (#108)
* small changes * fix dishonoredAchTransaction type * tags is always optional
1 parent a74a66b commit 328d303

File tree

8 files changed

+37
-21
lines changed

8 files changed

+37
-21
lines changed

resources/batchAccounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface CraeteBatchReleaseRequest {
4343
/**
4444
* See Tags will be passed to the related Release Transaction.
4545
*/
46-
tags: object
46+
tags?: object
4747
}
4848

4949
/**

types/account.ts

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,28 @@ export interface DepositAccount {
6767
/**
6868
* See [Tags](https://developers.unit.co/#tags).
6969
*/
70-
tags: object
70+
tags?: object
7171

7272
/**
7373
* Status of the account, either Open or Closed.
7474
*/
75-
status: string
75+
status: "Open" | "Frozen" | "Closed"
76+
77+
/**
78+
* Optional. The reason the account was frozen, either Fraud or free-text description.
79+
*/
80+
freezeReason?: string
81+
82+
/**
83+
* Optional. The reason the account was closed, either ByCustomer or Fraud.
84+
*/
85+
closeReason?: "ByCustomer" |"Fraud"
86+
87+
/**
88+
* Optional. The expanded fraud reason for closing the account when Fraud is specified as the reason.
89+
* Can be one of: (ACHActivity, CardActivity, CheckActivity, ApplicationHistory, AccountActivity, ClientIdentified).
90+
*/
91+
fraudReason?: "ACHActivity" | "CardActivity" | "CheckActivity" | "ApplicationHistory" | "AccountActivity" | "ClientIdentified"
7692
}
7793

7894
/**
@@ -106,7 +122,7 @@ export interface CreateDepositAccountRequest {
106122
/**
107123
* See [Tags](https://developers.unit.co/#tags).
108124
*/
109-
tags: object
125+
tags?: object
110126

111127
/**
112128
* See [Idempotency.](https://developers.unit.co/#intro-idempotency)
@@ -209,7 +225,7 @@ export interface PatchDepositAccountRequest {
209225

210226
data: {
211227
type: "depositAccount"
212-
attributes: {
228+
attributes: {
213229
tags?: object
214230
depositProduct?: string
215231
}

types/accountEndOfDay.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ export interface AccountsEndOfDay {
2323
date: string
2424

2525
/**
26-
* The balance amount (in cents).
26+
* The balance amount (in cents). The balance equals thee sum of 'available' and 'hold'.
2727
*/
2828
balance: number
2929

3030
/**
31-
* The hold amount (in cents).
31+
* The hold amount (in cents). Not available for spending.
3232
*/
3333
hold: number
3434

@@ -43,18 +43,18 @@ export interface AccountsEndOfDay {
4343
*/
4444
relationships: {
4545
/**
46-
* The account.
46+
* The account the resource belongs to.
4747
*/
4848
account: Relationship
4949

5050
/**
51-
* The customer.
51+
* The Customer the deposit account belongs to. This relationship is only available if the account belongs to a single customer, business or individual.
5252
*/
53-
customer: Relationship
53+
customer?: Relationship
5454

5555
/**
56-
* The customers.
56+
* The list of Customers the deposit account belongs to. This relationship is only available if the account belongs to multiple individual customers.
5757
*/
58-
customers: Relationship[]
58+
customers?: Relationship[]
5959
}
6060
}

types/application.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export interface IndividualApplication extends BaseApplication {
132132
/**
133133
* See [Tags](https://developers.unit.co/#tags).
134134
*/
135-
tags: object
135+
tags?: object
136136
}
137137
}
138138

@@ -209,7 +209,7 @@ export interface BusinessApplication extends BaseApplication {
209209
/**
210210
* See [Tags](https://developers.unit.co/#tags).
211211
*/
212-
tags: object
212+
tags?: object
213213

214214
}
215215
}

types/applicationForm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export interface ApplicationForm {
171171
/**
172172
* See [Tags](https://developers.unit.co/#tags).
173173
*/
174-
tags: object
174+
tags?: object
175175
}
176176

177177
/**

types/customer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export interface IndividualCustomer extends BaseCustomer {
9090
/**
9191
* See [Tags](https://developers.unit.co/#tags).
9292
*/
93-
tags: object
93+
tags?: object
9494
}
9595
}
9696

@@ -161,7 +161,7 @@ export interface BusinessCustomer extends BaseCustomer {
161161
* See [Tags](https://developers.unit.co/#tags).
162162
* Inherited from the application tags(see [Tag Inheritance](https://developers.unit.co/#tag-inheritance)).
163163
*/
164-
tags: object
164+
tags?: object
165165

166166
}
167167
}

types/fee.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface Fee {
2828
/**
2929
* See [Tags](https://developers.unit.co/#tags).
3030
*/
31-
tags: object
31+
tags?: object
3232
}
3333

3434
/**
@@ -65,7 +65,7 @@ export interface CreateFeeRequest {
6565
/**
6666
* See [Tags](https://developers.unit.co/#tags).
6767
*/
68-
tags: object
68+
tags?: object
6969

7070
/**
7171
* See [Idempotency.](https://developers.unit.co/#intro-idempotency)

types/transactions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ export type ReturnedReceivedAchTransaction = BaseTransaction & {
230230

231231
export type DishonoredAchTransaction = BaseTransaction & {
232232
/**
233-
* Type of the transaction resource. The value is always dishonoredReceivedAchTransaction.
233+
* Type of the transaction resource. The value is always dishonoredAchTransaction.
234234
*/
235-
type: "dishonoredReceivedAchTransaction"
235+
type: "dishonoredAchTransaction"
236236

237237
/**
238238
* JSON object representing the transaction data.

0 commit comments

Comments
 (0)