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
14 changes: 0 additions & 14 deletions resources/billPays.ts

This file was deleted.

1 change: 0 additions & 1 deletion resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export * from "./authorization"
export * from "./authorizationRequest"
export * from "./baseResource"
export * from "./batchAccounts"
export * from "./billPays"
export * from "./cards"
export * from "./checkDeposit"
export * from "./counterparty"
Expand Down
2 changes: 1 addition & 1 deletion resources/payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export interface PaymentListParams extends BaseListParams {
status?: PaymentStatus[]

/**
* Optional. Filter Payments by Payment type. such as (ACHPayment, BookPayment, WirePayment or BillPayment).
* Optional. Filter Payments by Payment type. such as (ACHPayment, BookPayment, WirePayment).
*/
type?: string[]

Expand Down
18 changes: 0 additions & 18 deletions tests/billPays.spec.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tests/payments.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("Payments List", () => {

describe("Get Payment Test", () => {
test("get each payment", async () => {
const paymentsList = (await unit.payments.list({type: ["AchPayment", "BillPayment", "WirePayment"]})).data
const paymentsList = (await unit.payments.list({type: ["AchPayment", "WirePayment"]})).data
paymentsList.forEach(async p => {
const res = await unit.payments.get(p.id, "account")
expect(res.data.type).toContain("Payment")
Expand Down
38 changes: 0 additions & 38 deletions types/billPay.ts

This file was deleted.

1 change: 0 additions & 1 deletion types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export * from "./atmLocation"
export * from "./authorization"
export * from "./authorizationRequest"
export * from "./batchAccount"
export * from "./billPay"
export * from "./cards"
export * from "./checkDeposit"
export * from "./common"
Expand Down
24 changes: 1 addition & 23 deletions types/payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Relationship, Counterparty, WireCounterparty, Direction, RelationshipsA

export type PaymentStatus = "Pending" | "PendingReview" | "Rejected" | "Clearing" | "Sent" | "Canceled" | "Returned"

export type Payment = AchPayment | BookPayment | WirePayment | BillPayment
export type Payment = AchPayment | BookPayment | WirePayment

interface BasePaymentAttributes {
/**
Expand Down Expand Up @@ -204,28 +204,6 @@ export interface WirePayment {
relationships: BasePaymentRelationships
}

export interface BillPayment {
/**
* Identifier of the bill payment resource.
*/
id: string

/**
* Type of the payment resource. The value is always billPayment.
*/
type: "billPayment"

/**
* JSON object representing the payment resource.
*/
attributes: Pick<BasePaymentAttributes, "createdAt" | "status" | "direction" | "description" | "amount" | "tags">

/**
* Describes relationships between the Wire payment and the originating deposit account and customer.
*/
relationships: BasePaymentRelationships
}

export type ReceivedPaymentStatus = "Pending" | "Advanced" | "Completed" | "Returned"

export interface AchReceivedPayment {
Expand Down
4 changes: 1 addition & 3 deletions unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Statments } from "./resources/statements"
import { Returns } from "./resources/returns"
import { ApplicationForms } from "./resources/applicationForm"
import { AccountsEndOfDay } from "./resources/accountEndOfDay"
import { BillPays, CheckPayments, Rewards, TaxForms } from "./resources"
import { CheckPayments, Rewards, TaxForms } from "./resources"
import { Institutions } from "./resources/institutions"
import { AtmLocations } from "./resources/atmLocations"
import { CheckDeposits } from "./resources/checkDeposit"
Expand Down Expand Up @@ -55,7 +55,6 @@ export class Unit {
public events: Events
public applicationForms: ApplicationForms
public returns: Returns
public billPays: BillPays
public institutions: Institutions
public atmLocations: AtmLocations
public checkDeposits: CheckDeposits
Expand Down Expand Up @@ -96,7 +95,6 @@ export class Unit {
this.statements = new Statments(token, basePath, config)
this.applicationForms = new ApplicationForms(token, basePath, config)
this.returns = new Returns(token, basePath, config)
this.billPays = new BillPays(token, basePath, config)
this.institutions = new Institutions(token, basePath, config)
this.atmLocations = new AtmLocations(token, basePath, config)
this.checkDeposits = new CheckDeposits(token, basePath, config)
Expand Down