@@ -311,11 +311,11 @@ export class PrintOne {
311
311
/**
312
312
* Get an order by its id.
313
313
* @param { string } id The id of the order.
314
- * @param url The url to use for this request
314
+ * @param basePath The basePath to use for this request
315
315
* @throws { PrintOneError } If the order could not be found.
316
316
*/
317
- public async getOrder ( id : string , url = "orders" ) : Promise < Order > {
318
- const data = await this . client . GET < IOrder > ( `${ url } /${ id } ` ) ;
317
+ public async getOrder ( id : string , basePath = "orders" ) : Promise < Order > {
318
+ const data = await this . client . GET < IOrder > ( `${ basePath } /${ id } ` ) ;
319
319
320
320
return new Order ( this . protected , data ) ;
321
321
}
@@ -327,12 +327,12 @@ export class PrintOne {
327
327
* @param options.page The page to return.
328
328
* @param options.sortBy The fields to sort by, can be "createdAt", "anonymizedAt", "updatedAt", "friendlyStatus", "sendDate".
329
329
* @param options.filter The filters to apply.
330
- * @param url The url to use for this request
330
+ * @param basePath The basePath to use for this request
331
331
* @throws { PrintOneError } If the order could not be found.
332
332
*/
333
333
public async getOrders (
334
334
options : OrderPaginatedQuery = { } ,
335
- url = "orders" ,
335
+ basePath = "orders" ,
336
336
) : Promise < PaginatedResponse < Order > > {
337
337
let params = {
338
338
...sortToQuery ( options ) ,
@@ -369,7 +369,7 @@ export class PrintOne {
369
369
} ;
370
370
}
371
371
372
- const data = await this . client . GET < IPaginatedResponse < IOrder > > ( url , {
372
+ const data = await this . client . GET < IPaginatedResponse < IOrder > > ( basePath , {
373
373
params,
374
374
} ) ;
375
375
0 commit comments