File tree Expand file tree Collapse file tree 6 files changed +21
-7
lines changed Expand file tree Collapse file tree 6 files changed +21
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on : [pull_request]
3
+
4
+ jobs :
5
+ build :
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - uses : actions/checkout@v2
9
+ - uses : actions/setup-node@v1
10
+ with :
11
+ node-version : 16.x
12
+ - run : npm ci
13
+ - run : npm run lint
14
+ - run : npm run build
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { AccountEndOfDay } from "../types/accountEndOfDay"
7
7
export class AccountsEndOfDay extends BaseResource {
8
8
9
9
constructor ( token : string , basePath : string , config ?: UnitConfig ) {
10
- super ( token , basePath + ' /account-end-of-day' , config )
10
+ super ( token , basePath + " /account-end-of-day" , config )
11
11
}
12
12
13
13
public async list ( params ?: AccountEndOfDayParams ) : Promise < UnitResponse < AccountEndOfDay [ ] > & Include < Customer > & Include < Account > & Include < Customer [ ] > > {
Original file line number Diff line number Diff line change 1
1
import axiosStatic , { AxiosInstance } from "axios"
2
- import { extractUnitError , UnitConfig , UnitError } from "../types/common"
2
+ import { extractUnitError , UnitConfig } from "../types/common"
3
3
4
4
export class BaseResource {
5
5
private resourcePath : string
6
- private headers : { }
6
+ private headers : object
7
7
private readonly axios : AxiosInstance
8
8
9
9
constructor ( token : string , resourcePath : string , config ?: UnitConfig ) {
@@ -12,7 +12,7 @@ export class BaseResource {
12
12
this . headers = {
13
13
"Authorization" : `Bearer ${ token } ` ,
14
14
"Content-Type" : "application/vnd.api+json" ,
15
- ' User-Agent' : "unit-node-sdk"
15
+ " User-Agent" : "unit-node-sdk"
16
16
}
17
17
18
18
this . axios = config ?. axios ?? axiosStatic
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export interface PaymentListParams {
71
71
* Optional. Filter Applications by Tags.
72
72
* default: empty
73
73
*/
74
- tags ?: Object
74
+ tags ?: object
75
75
76
76
/**
77
77
* Optional. .Leave empty or provide sort = createdAt for ascending order.Provide sort = -createdAt(leading minus sign) for descending order.
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ export interface BatchAccount {
218
218
accountNumber : string
219
219
balance : number
220
220
hold : number
221
- } ,
221
+ }
222
222
relationships : {
223
223
org : Relationship
224
224
}
Original file line number Diff line number Diff line change 1
- import { Relationship } from "./common" ;
1
+ import { Relationship } from "./common"
2
2
3
3
export interface ReturnReceivedAchTransactionRequest {
4
4
transactionId : string
You can’t perform that action at this time.
0 commit comments