File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ export class Counterparties extends BaseResource {
2222
2323 public async list ( params ?: CounterpartyListParams ) : Promise < UnitResponse < AchCounterparty [ ] > > {
2424 const parameters = {
25- "page[limit]" : ( params ?. limit ? params ? .limit : 100 ) ,
26- "page[offset]" : ( params ?. offset ? params ? .offset : 0 ) ,
27- ...( params ?. customerId && { "filter[customerId]" : params ? .customerId } ) ,
25+ "page[limit]" : ( params ?. limit ? params . limit : 100 ) ,
26+ "page[offset]" : ( params ?. offset ? params . offset : 0 ) ,
27+ ...( params ?. customerId && { "filter[customerId]" : params . customerId } ) ,
2828 ...( params ?. tags && { "filter[tags]" : this . customStringify ( params . tags , ":" ) } ) ,
29+ ...( params ?. routingNumber && { "filter[routingNumber]" : params . routingNumber } ) ,
30+ ...( params ?. accountNumber && { "filter[accountNumber]" : params . accountNumber } ) ,
2931 }
3032
3133 return this . httpGet < UnitResponse < AchCounterparty [ ] > > ( "" , { params : parameters } )
@@ -56,4 +58,14 @@ export interface CounterpartyListParams extends BaseListParams {
5658 * Optional. Filter Counterparties by Tags.
5759 */
5860 tags ?: Tags
61+
62+ /**
63+ * Optional. Filter Counterparties by the specified routing number.
64+ */
65+ routingNumber ?: string
66+
67+ /**
68+ * Optional. Filter Counterparties by the specified account number.
69+ */
70+ accountNumber ?: string
5971}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export function createCounterpartyForTest(id: string) {
1212 "attributes" : {
1313 "name" : "Joe Doe" ,
1414 "routingNumber" : "123456789" ,
15- "accountNumber" : "123 " ,
15+ "accountNumber" : "123400023 " ,
1616 "accountType" : "Checking" ,
1717 "type" : "Person"
1818 } ,
You can’t perform that action at this time.
0 commit comments