Skip to content

Commit 41f78dd

Browse files
authored
Remove billpay (#484)
1 parent 78733ae commit 41f78dd

File tree

9 files changed

+4
-100
lines changed

9 files changed

+4
-100
lines changed

resources/billPays.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export * from "./authorization"
66
export * from "./authorizationRequest"
77
export * from "./baseResource"
88
export * from "./batchAccounts"
9-
export * from "./billPays"
109
export * from "./cards"
1110
export * from "./checkDeposit"
1211
export * from "./counterparty"

resources/payments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export interface PaymentListParams extends BaseListParams {
101101
status?: PaymentStatus[]
102102

103103
/**
104-
* Optional. Filter Payments by Payment type. such as (ACHPayment, BookPayment, WirePayment or BillPayment).
104+
* Optional. Filter Payments by Payment type. such as (ACHPayment, BookPayment, WirePayment).
105105
*/
106106
type?: string[]
107107

tests/billPays.spec.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

tests/payments.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("Payments List", () => {
1919

2020
describe("Get Payment Test", () => {
2121
test("get each payment", async () => {
22-
const paymentsList = (await unit.payments.list({type: ["AchPayment", "BillPayment", "WirePayment"]})).data
22+
const paymentsList = (await unit.payments.list({type: ["AchPayment", "WirePayment"]})).data
2323
paymentsList.forEach(async p => {
2424
const res = await unit.payments.get(p.id, "account")
2525
expect(res.data.type).toContain("Payment")

types/billPay.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export * from "./atmLocation"
66
export * from "./authorization"
77
export * from "./authorizationRequest"
88
export * from "./batchAccount"
9-
export * from "./billPay"
109
export * from "./cards"
1110
export * from "./checkDeposit"
1211
export * from "./common"

types/payments.ts

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Relationship, Counterparty, WireCounterparty, Direction, RelationshipsA
22

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

5-
export type Payment = AchPayment | BookPayment | WirePayment | BillPayment
5+
export type Payment = AchPayment | BookPayment | WirePayment
66

77
interface BasePaymentAttributes {
88
/**
@@ -204,28 +204,6 @@ export interface WirePayment {
204204
relationships: BasePaymentRelationships
205205
}
206206

207-
export interface BillPayment {
208-
/**
209-
* Identifier of the bill payment resource.
210-
*/
211-
id: string
212-
213-
/**
214-
* Type of the payment resource. The value is always billPayment.
215-
*/
216-
type: "billPayment"
217-
218-
/**
219-
* JSON object representing the payment resource.
220-
*/
221-
attributes: Pick<BasePaymentAttributes, "createdAt" | "status" | "direction" | "description" | "amount" | "tags">
222-
223-
/**
224-
* Describes relationships between the Wire payment and the originating deposit account and customer.
225-
*/
226-
relationships: BasePaymentRelationships
227-
}
228-
229207
export type ReceivedPaymentStatus = "Pending" | "Advanced" | "Completed" | "Returned"
230208

231209
export interface AchReceivedPayment {

unit.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Statments } from "./resources/statements"
1818
import { Returns } from "./resources/returns"
1919
import { ApplicationForms } from "./resources/applicationForm"
2020
import { AccountsEndOfDay } from "./resources/accountEndOfDay"
21-
import { BillPays, CheckPayments, Rewards, TaxForms } from "./resources"
21+
import { CheckPayments, Rewards, TaxForms } from "./resources"
2222
import { Institutions } from "./resources/institutions"
2323
import { AtmLocations } from "./resources/atmLocations"
2424
import { CheckDeposits } from "./resources/checkDeposit"
@@ -55,7 +55,6 @@ export class Unit {
5555
public events: Events
5656
public applicationForms: ApplicationForms
5757
public returns: Returns
58-
public billPays: BillPays
5958
public institutions: Institutions
6059
public atmLocations: AtmLocations
6160
public checkDeposits: CheckDeposits
@@ -96,7 +95,6 @@ export class Unit {
9695
this.statements = new Statments(token, basePath, config)
9796
this.applicationForms = new ApplicationForms(token, basePath, config)
9897
this.returns = new Returns(token, basePath, config)
99-
this.billPays = new BillPays(token, basePath, config)
10098
this.institutions = new Institutions(token, basePath, config)
10199
this.atmLocations = new AtmLocations(token, basePath, config)
102100
this.checkDeposits = new CheckDeposits(token, basePath, config)

0 commit comments

Comments
 (0)