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
38 changes: 37 additions & 1 deletion types/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export interface DepositAccount {
}
}

export type CreateAccountRequest = CreateDepositAccountRequest
export type CreateAccountRequest = CreateDepositAccountRequest | CreateBatchAccountRequest

export interface CreateDepositAccountRequest {
/**
Expand Down Expand Up @@ -124,6 +124,42 @@ export interface CreateDepositAccountRequest {
customer: Relationship
}
}
export interface CreateBatchAccountRequest {
/**
* Type of the resource, the value is always batchAccount.
*/
type: "batchAccount"

/**
* Representing the batch account data.
*/
attributes: {
/**
* The name of the batch account.
*/
name: string

/**
* The name of the deposit product.
*/
depositProduct: string

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

/**
* Describes relationships between the batch account resource and the org.
*/
relationships: {
/**
* The org.
*/
org: Relationship
}
}

export interface AccountLimits {
type: "limits"
Expand Down
2 changes: 1 addition & 1 deletion types/cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export interface CreateBusinessVirtualDebitCardRequest {

export interface ReplaceCardRequest {
id: string
shippingAddress: Address
shippingAddress?: Address
}


5 changes: 5 additions & 0 deletions types/payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ export interface CreateBookPaymentRequest {
*/
amount: number

/**
* Debit or Credit
*/
direction?: "Debit" | "Credit"

/**
* Payment description (maximum of 50 characters), this will show up on statement of the counterparty.
*/
Expand Down