Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions types/counterparty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ export interface CreateCounterpartyWithoutTokenRequest {
* Either Business, Person or Unknown.
*/
type: "Business" | "Person" | "Unknown"

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

/**
* See [Idempotency.](https://developers.unit.co/#intro-idempotency)
*/
idempotencyKey?: string
}

relationships: {
Expand Down Expand Up @@ -130,6 +140,16 @@ export interface CreateCounterpartyWithTokenRequest {
* Either Business, Person or Unknown.
*/
type: "Business" | "Person" | "Unknown"

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

/**
* See [Idempotency.](https://developers.unit.co/#intro-idempotency)
*/
idempotencyKey?: string
}

relationships: {
Expand All @@ -152,6 +172,16 @@ export interface PatchCounterpartyRequest {
* Optional, default to false. Verify the name of the counterparty, if the name verification fails the request will fail with code field set to NameVerificationFailed.
*/
verifyName?: boolean

/**
* Optional, custom counterparty permissions. Either CreditOnly, DebitOnly, CreditAndDebit
*/
permissions?: "CreditOnly" | "DebitOnly" | "CreditAndDebit"

/**
* See [Tags](https://developers.unit.co/#tags).
*/
tags?: object
}

export interface CounterpartyBalance {
Expand Down
2 changes: 1 addition & 1 deletion types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export type TransactionCreated = BaseEvent & {
attributes: {
summary: string
direction: "Credit" | "Debit"
amount: string
amount: number
}
relationships: {
transaction: Relationship
Expand Down