File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @token-io/core" ,
3- "version" : " 1.0.26 " ,
3+ "version" : " 1.0.27 " ,
44 "description" : " Token JavaScript Core SDK" ,
55 "license" : " ISC" ,
66 "author" : {
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ export class HttpClient {
9191 const formattedOptions = Object . assign ( { } , {
9292 // Can be at most 1000
9393 ids : options . ids || [ ] ,
94+ supportedPaymentNetworks : options . supportedPaymentNetworks || [ ] ,
9495 search : options . search || '' ,
9596 country : options . country || '' ,
9697 // Default to 1 if not specified
@@ -112,6 +113,7 @@ export class HttpClient {
112113 } ) ;
113114 const {
114115 ids,
116+ supportedPaymentNetworks,
115117 search,
116118 country,
117119 page,
@@ -126,6 +128,9 @@ export class HttpClient {
126128 for ( const id of ids ) {
127129 url += `ids=${ encodeURIComponent ( id ) } &` ;
128130 }
131+ for ( const paymentNetwork of supportedPaymentNetworks ) {
132+ url += `supportedPaymentNetworks=${ encodeURIComponent ( paymentNetwork ) } &` ;
133+ }
129134 if ( search ) url += `search=${ encodeURIComponent ( search ) } &` ;
130135 if ( country ) url += `country=${ encodeURIComponent ( country ) } &` ;
131136 if ( page ) url += `page=${ encodeURIComponent ( page ) } &` ;
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ export class TokenClient {
148148 destinationCountry ?: string ,
149149 bankFeatures ?: Object ,
150150 memberId ?: string ,
151+ supportedPaymentNetworks ?: Array < string > ,
151152 }
152153 ) : Promise < { banks : Array < Bank > , paging : Paging } > {
153154 return Util . callAsync ( this . getBanks , async ( ) => {
You can’t perform that action at this time.
0 commit comments