99 * Do not edit the class manually.
1010 */
1111
12-
1312/* tslint:disable:no-unused-locals */
1413import { AccountDetail } from '../model/accountDetail' ;
1514import { AccountRateLimit } from '../model/accountRateLimit' ;
@@ -36,13 +35,13 @@ export class AccountApi {
3635 }
3736
3837 /**
39- *
38+ *
4039 * @summary Get account detail
4140 */
42- public async getAccountDetail ( ) : Promise < { response : AxiosResponse ; body : AccountDetail ; } > {
41+ public async getAccountDetail ( ) : Promise < { response : AxiosResponse ; body : AccountDetail } > {
4342 const localVarPath = this . client . basePath + '/account/detail' ;
44- let localVarQueryParameters : any = { } ;
45- let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
43+ const localVarQueryParameters : any = { } ;
44+ const localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
4645 const produces = [ 'application/json' ] ;
4746 // give precedence to 'application/json'
4847 if ( produces . indexOf ( 'application/json' ) >= 0 ) {
@@ -51,7 +50,6 @@ export class AccountApi {
5150 localVarHeaderParams . Accept = produces . join ( ',' ) ;
5251 }
5352
54-
5553 const config : AxiosRequestConfig = {
5654 method : 'GET' ,
5755 params : localVarQueryParameters ,
@@ -60,17 +58,17 @@ export class AccountApi {
6058 } ;
6159
6260 const authSettings = [ 'apiv4' ] ;
63- return this . client . request < AccountDetail > ( config , " AccountDetail" , authSettings ) ;
61+ return this . client . request < AccountDetail > ( config , ' AccountDetail' , authSettings ) ;
6462 }
6563
6664 /**
67- *
65+ *
6866 * @summary Get user transaction rate limit information
6967 */
70- public async getAccountRateLimit ( ) : Promise < { response : AxiosResponse ; body : Array < AccountRateLimit > ; } > {
68+ public async getAccountRateLimit ( ) : Promise < { response : AxiosResponse ; body : Array < AccountRateLimit > } > {
7169 const localVarPath = this . client . basePath + '/account/rate_limit' ;
72- let localVarQueryParameters : any = { } ;
73- let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
70+ const localVarQueryParameters : any = { } ;
71+ const localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
7472 const produces = [ 'application/json' ] ;
7573 // give precedence to 'application/json'
7674 if ( produces . indexOf ( 'application/json' ) >= 0 ) {
@@ -79,7 +77,6 @@ export class AccountApi {
7977 localVarHeaderParams . Accept = produces . join ( ',' ) ;
8078 }
8179
82-
8380 const config : AxiosRequestConfig = {
8481 method : 'GET' ,
8582 params : localVarQueryParameters ,
@@ -88,7 +85,7 @@ export class AccountApi {
8885 } ;
8986
9087 const authSettings = [ 'apiv4' ] ;
91- return this . client . request < Array < AccountRateLimit > > ( config , " Array<AccountRateLimit>" , authSettings ) ;
88+ return this . client . request < Array < AccountRateLimit > > ( config , ' Array<AccountRateLimit>' , authSettings ) ;
9289 }
9390
9491 /**
@@ -97,10 +94,10 @@ export class AccountApi {
9794 * @param opts Optional parameters
9895 * @param opts.name Perform a fuzzy search based on the name
9996 */
100- public async listSTPGroups ( opts : { name ?: string , } ) : Promise < { response : AxiosResponse ; body : Array < StpGroup > ; } > {
97+ public async listSTPGroups ( opts : { name ?: string } ) : Promise < { response : AxiosResponse ; body : Array < StpGroup > } > {
10198 const localVarPath = this . client . basePath + '/account/stp_groups' ;
102- let localVarQueryParameters : any = { } ;
103- let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
99+ const localVarQueryParameters : any = { } ;
100+ const localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
104101 const produces = [ 'application/json' ] ;
105102 // give precedence to 'application/json'
106103 if ( produces . indexOf ( 'application/json' ) >= 0 ) {
@@ -111,10 +108,9 @@ export class AccountApi {
111108
112109 opts = opts || { } ;
113110 if ( opts . name !== undefined ) {
114- localVarQueryParameters [ 'name' ] = ObjectSerializer . serialize ( opts . name , " string" ) ;
111+ localVarQueryParameters [ 'name' ] = ObjectSerializer . serialize ( opts . name , ' string' ) ;
115112 }
116113
117-
118114 const config : AxiosRequestConfig = {
119115 method : 'GET' ,
120116 params : localVarQueryParameters ,
@@ -123,18 +119,18 @@ export class AccountApi {
123119 } ;
124120
125121 const authSettings = [ 'apiv4' ] ;
126- return this . client . request < Array < StpGroup > > ( config , " Array<StpGroup>" , authSettings ) ;
122+ return this . client . request < Array < StpGroup > > ( config , ' Array<StpGroup>' , authSettings ) ;
127123 }
128124
129125 /**
130126 * Only the main account is allowed to create a new STP user group
131127 * @summary Create STP Group
132- * @param stpGroup
128+ * @param stpGroup
133129 */
134- public async createSTPGroup ( stpGroup : StpGroup ) : Promise < { response : AxiosResponse ; body : StpGroup ; } > {
130+ public async createSTPGroup ( stpGroup : StpGroup ) : Promise < { response : AxiosResponse ; body : StpGroup } > {
135131 const localVarPath = this . client . basePath + '/account/stp_groups' ;
136- let localVarQueryParameters : any = { } ;
137- let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
132+ const localVarQueryParameters : any = { } ;
133+ const localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
138134 const produces = [ 'application/json' ] ;
139135 // give precedence to 'application/json'
140136 if ( produces . indexOf ( 'application/json' ) >= 0 ) {
@@ -148,29 +144,29 @@ export class AccountApi {
148144 throw new Error ( 'Required parameter stpGroup was null or undefined when calling createSTPGroup.' ) ;
149145 }
150146
151-
152147 const config : AxiosRequestConfig = {
153148 method : 'POST' ,
154149 params : localVarQueryParameters ,
155150 headers : localVarHeaderParams ,
156151 url : localVarPath ,
157- data : ObjectSerializer . serialize ( stpGroup , " StpGroup" )
152+ data : ObjectSerializer . serialize ( stpGroup , ' StpGroup' ) ,
158153 } ;
159154
160155 const authSettings = [ 'apiv4' ] ;
161- return this . client . request < StpGroup > ( config , " StpGroup" , authSettings ) ;
156+ return this . client . request < StpGroup > ( config , ' StpGroup' , authSettings ) ;
162157 }
163158
164159 /**
165160 * Only the main account that created this STP group is allowed to list the user ID of the STP group
166161 * @summary List users of the STP group
167162 * @param stpId STP Group ID
168163 */
169- public async listSTPGroupsUsers ( stpId : number ) : Promise < { response : AxiosResponse ; body : Array < StpGroupUser > ; } > {
170- const localVarPath = this . client . basePath + '/account/stp_groups/{stp_id}/users'
171- . replace ( '{' + 'stp_id' + '}' , encodeURIComponent ( String ( stpId ) ) ) ;
172- let localVarQueryParameters : any = { } ;
173- let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
164+ public async listSTPGroupsUsers ( stpId : number ) : Promise < { response : AxiosResponse ; body : Array < StpGroupUser > } > {
165+ const localVarPath =
166+ this . client . basePath +
167+ '/account/stp_groups/{stp_id}/users' . replace ( '{' + 'stp_id' + '}' , encodeURIComponent ( String ( stpId ) ) ) ;
168+ const localVarQueryParameters : any = { } ;
169+ const localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
174170 const produces = [ 'application/json' ] ;
175171 // give precedence to 'application/json'
176172 if ( produces . indexOf ( 'application/json' ) >= 0 ) {
@@ -184,7 +180,6 @@ export class AccountApi {
184180 throw new Error ( 'Required parameter stpId was null or undefined when calling listSTPGroupsUsers.' ) ;
185181 }
186182
187-
188183 const config : AxiosRequestConfig = {
189184 method : 'GET' ,
190185 params : localVarQueryParameters ,
@@ -193,7 +188,7 @@ export class AccountApi {
193188 } ;
194189
195190 const authSettings = [ 'apiv4' ] ;
196- return this . client . request < Array < StpGroupUser > > ( config , " Array<StpGroupUser>" , authSettings ) ;
191+ return this . client . request < Array < StpGroupUser > > ( config , ' Array<StpGroupUser>' , authSettings ) ;
197192 }
198193
199194 /**
@@ -202,11 +197,15 @@ export class AccountApi {
202197 * @param stpId STP Group ID
203198 * @param requestBody User ID
204199 */
205- public async addSTPGroupUsers ( stpId : number , requestBody : Array < number > ) : Promise < { response : AxiosResponse ; body : Array < StpGroupUser > ; } > {
206- const localVarPath = this . client . basePath + '/account/stp_groups/{stp_id}/users'
207- . replace ( '{' + 'stp_id' + '}' , encodeURIComponent ( String ( stpId ) ) ) ;
208- let localVarQueryParameters : any = { } ;
209- let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
200+ public async addSTPGroupUsers (
201+ stpId : number ,
202+ requestBody : Array < number > ,
203+ ) : Promise < { response : AxiosResponse ; body : Array < StpGroupUser > } > {
204+ const localVarPath =
205+ this . client . basePath +
206+ '/account/stp_groups/{stp_id}/users' . replace ( '{' + 'stp_id' + '}' , encodeURIComponent ( String ( stpId ) ) ) ;
207+ const localVarQueryParameters : any = { } ;
208+ const localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
210209 const produces = [ 'application/json' ] ;
211210 // give precedence to 'application/json'
212211 if ( produces . indexOf ( 'application/json' ) >= 0 ) {
@@ -225,17 +224,16 @@ export class AccountApi {
225224 throw new Error ( 'Required parameter requestBody was null or undefined when calling addSTPGroupUsers.' ) ;
226225 }
227226
228-
229227 const config : AxiosRequestConfig = {
230228 method : 'POST' ,
231229 params : localVarQueryParameters ,
232230 headers : localVarHeaderParams ,
233231 url : localVarPath ,
234- data : ObjectSerializer . serialize ( requestBody , " Array<number>" )
232+ data : ObjectSerializer . serialize ( requestBody , ' Array<number>' ) ,
235233 } ;
236234
237235 const authSettings = [ 'apiv4' ] ;
238- return this . client . request < Array < StpGroupUser > > ( config , " Array<StpGroupUser>" , authSettings ) ;
236+ return this . client . request < Array < StpGroupUser > > ( config , ' Array<StpGroupUser>' , authSettings ) ;
239237 }
240238
241239 /**
@@ -244,11 +242,15 @@ export class AccountApi {
244242 * @param stpId STP Group ID
245243 * @param userId STP user ID, multiple can be separated by commas
246244 */
247- public async deleteSTPGroupUsers ( stpId : number , userId : number ) : Promise < { response : AxiosResponse ; body : Array < StpGroupUser > ; } > {
248- const localVarPath = this . client . basePath + '/account/stp_groups/{stp_id}/users'
249- . replace ( '{' + 'stp_id' + '}' , encodeURIComponent ( String ( stpId ) ) ) ;
250- let localVarQueryParameters : any = { } ;
251- let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
245+ public async deleteSTPGroupUsers (
246+ stpId : number ,
247+ userId : number ,
248+ ) : Promise < { response : AxiosResponse ; body : Array < StpGroupUser > } > {
249+ const localVarPath =
250+ this . client . basePath +
251+ '/account/stp_groups/{stp_id}/users' . replace ( '{' + 'stp_id' + '}' , encodeURIComponent ( String ( stpId ) ) ) ;
252+ const localVarQueryParameters : any = { } ;
253+ const localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
252254 const produces = [ 'application/json' ] ;
253255 // give precedence to 'application/json'
254256 if ( produces . indexOf ( 'application/json' ) >= 0 ) {
@@ -267,8 +269,7 @@ export class AccountApi {
267269 throw new Error ( 'Required parameter userId was null or undefined when calling deleteSTPGroupUsers.' ) ;
268270 }
269271
270- localVarQueryParameters [ 'user_id' ] = ObjectSerializer . serialize ( userId , "number" ) ;
271-
272+ localVarQueryParameters [ 'user_id' ] = ObjectSerializer . serialize ( userId , 'number' ) ;
272273
273274 const config : AxiosRequestConfig = {
274275 method : 'DELETE' ,
@@ -278,17 +279,17 @@ export class AccountApi {
278279 } ;
279280
280281 const authSettings = [ 'apiv4' ] ;
281- return this . client . request < Array < StpGroupUser > > ( config , " Array<StpGroupUser>" , authSettings ) ;
282+ return this . client . request < Array < StpGroupUser > > ( config , ' Array<StpGroupUser>' , authSettings ) ;
282283 }
283284
284285 /**
285286 * Query the current GT deduction configuration for the account.
286287 * @summary Query GT deduction configuration.
287288 */
288- public async getDebitFee ( ) : Promise < { response : AxiosResponse ; body : DebitFee ; } > {
289+ public async getDebitFee ( ) : Promise < { response : AxiosResponse ; body : DebitFee } > {
289290 const localVarPath = this . client . basePath + '/account/debit_fee' ;
290- let localVarQueryParameters : any = { } ;
291- let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
291+ const localVarQueryParameters : any = { } ;
292+ const localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
292293 const produces = [ 'application/json' ] ;
293294 // give precedence to 'application/json'
294295 if ( produces . indexOf ( 'application/json' ) >= 0 ) {
@@ -297,7 +298,6 @@ export class AccountApi {
297298 localVarHeaderParams . Accept = produces . join ( ',' ) ;
298299 }
299300
300-
301301 const config : AxiosRequestConfig = {
302302 method : 'GET' ,
303303 params : localVarQueryParameters ,
@@ -306,34 +306,33 @@ export class AccountApi {
306306 } ;
307307
308308 const authSettings = [ 'apiv4' ] ;
309- return this . client . request < DebitFee > ( config , " DebitFee" , authSettings ) ;
309+ return this . client . request < DebitFee > ( config , ' DebitFee' , authSettings ) ;
310310 }
311311
312312 /**
313313 * Enable or disable GT deduction for the current account.
314314 * @summary Set GT deduction.
315- * @param debitFee
315+ * @param debitFee
316316 */
317- public async setDebitFee ( debitFee : DebitFee ) : Promise < { response : AxiosResponse ; body ?: any ; } > {
317+ public async setDebitFee ( debitFee : DebitFee ) : Promise < { response : AxiosResponse ; body ?: any } > {
318318 const localVarPath = this . client . basePath + '/account/debit_fee' ;
319- let localVarQueryParameters : any = { } ;
320- let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
319+ const localVarQueryParameters : any = { } ;
320+ const localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . client . defaultHeaders ) ;
321321
322322 // verify required parameter 'debitFee' is not null or undefined
323323 if ( debitFee === null || debitFee === undefined ) {
324324 throw new Error ( 'Required parameter debitFee was null or undefined when calling setDebitFee.' ) ;
325325 }
326326
327-
328327 const config : AxiosRequestConfig = {
329328 method : 'POST' ,
330329 params : localVarQueryParameters ,
331330 headers : localVarHeaderParams ,
332331 url : localVarPath ,
333- data : ObjectSerializer . serialize ( debitFee , " DebitFee" )
332+ data : ObjectSerializer . serialize ( debitFee , ' DebitFee' ) ,
334333 } ;
335334
336335 const authSettings = [ 'apiv4' ] ;
337- return this . client . request < any > ( config , "" , authSettings ) ;
336+ return this . client . request < any > ( config , '' , authSettings ) ;
338337 }
339338}
0 commit comments