@@ -3,34 +3,34 @@ import { Resource } from "./resource";
33
44export class Transactions extends Resource {
55 public async all < T = any > ( query ?: Record < string , any > ) : Promise < IResponse < T > > {
6- return this . connection . get ( "transactions" , query ) ;
6+ return this . sendGet ( "transactions" , query ) ;
77 }
88
99 public async create < T = any > ( payload : object [ ] ) : Promise < IResponse < T > > {
10- return this . connection . post ( "transactions" , payload ) ;
10+ return this . sendPost ( "transactions" , payload ) ;
1111 }
1212
1313 public async get < T = any > ( id : string ) : Promise < IResponse < T > > {
14- return this . connection . get ( `transactions/${ id } ` ) ;
14+ return this . sendGet ( `transactions/${ id } ` ) ;
1515 }
1616
1717 public async allUnconfirmed < T = any > ( query ?: Record < string , any > ) : Promise < IResponse < T > > {
18- return this . connection . get ( "transactions/unconfirmed" , query ) ;
18+ return this . sendGet ( "transactions/unconfirmed" , query ) ;
1919 }
2020
2121 public async getUnconfirmed < T = any > ( id : string ) : Promise < IResponse < T > > {
22- return this . connection . get ( `transactions/unconfirmed/${ id } ` ) ;
22+ return this . sendGet ( `transactions/unconfirmed/${ id } ` ) ;
2323 }
2424
2525 public async search < T = any > ( payload : Record < string , any > ) : Promise < IResponse < T > > {
26- return this . connection . post ( "transactions/search" , payload ) ;
26+ return this . sendPost ( "transactions/search" , payload ) ;
2727 }
2828
2929 public async types < T = any > ( ) : Promise < IResponse < T > > {
30- return this . connection . get ( "transactions/types" ) ;
30+ return this . sendGet ( "transactions/types" ) ;
3131 }
3232
3333 public async fees < T = any > ( ) : Promise < IResponse < T > > {
34- return this . connection . get ( "transactions/fees" ) ;
34+ return this . sendGet ( "transactions/fees" ) ;
3535 }
3636}
0 commit comments