Skip to content

Commit 6bef37e

Browse files
axshaniilyamerman
andauthored
small updates (#161)
* small updates * Update account.ts Co-authored-by: Ilya Merman <[email protected]>
1 parent b4b1e41 commit 6bef37e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

types/account.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,13 @@ export interface AccountLimits {
222222
dailyWithdrawal: number
223223
dailyDeposit: number
224224
dailyPurchase: number
225+
dailyCardTransaction: number
225226
}
226227
totalsDaily: {
227228
withdrawals: number
228229
deposits: number
229230
purchases: number
231+
cardTransactions: number
230232
}
231233
}
232234
}

types/counterparty.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { Relationship } from "./common"
22

3+
type Permissions = "CreditOnly" | "DebitOnly" | "CreditAndDebit"
4+
35
export interface AchCounterparty {
46
/**
57
* Identifier of the ACH counterparty resource.
@@ -54,7 +56,7 @@ export interface AchCounterparty {
5456
/**
5557
* Either CreditOnly or CreditAndDebit.
5658
*/
57-
permissions: string
59+
permissions: Permissions
5860
}
5961

6062
/**
@@ -146,6 +148,11 @@ export interface CreateCounterpartyWithTokenRequest {
146148
*/
147149
tags?: object
148150

151+
/**
152+
* Optional, custom counterparty permissions. Either CreditOnly, DebitOnly, CreditAndDebit. Default is CreditAndDebit.
153+
*/
154+
permissions?: Permissions
155+
149156
/**
150157
* See [Idempotency.](https://developers.unit.co/#intro-idempotency)
151158
*/
@@ -176,7 +183,7 @@ export interface PatchCounterpartyRequest {
176183
/**
177184
* Optional, custom counterparty permissions. Either CreditOnly, DebitOnly, CreditAndDebit
178185
*/
179-
permissions?: "CreditOnly" | "DebitOnly" | "CreditAndDebit"
186+
permissions?: Permissions
180187

181188
/**
182189
* See [Tags](https://developers.unit.co/#tags).

0 commit comments

Comments
 (0)