Skip to content

Commit

Permalink
Make appId non mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjan01 committed Jan 18, 2022
1 parent 7450f68 commit d97b162
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/resources/numbers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class PhoneNumber extends PlivoResource {
* @promise {@link PlivoGenericResponse} return PlivoGenericResponse Object if success
* @fail {Error} return Error
*/
buy(appId: string): Promise < any > ;
buy(appId?: string): Promise < any > ;
[clientKey]: symbol;
}
/**
Expand All @@ -67,7 +67,7 @@ export class PhoneNumberInterface extends PlivoResourceInterface {
* @promise {@link PlivoGenericResponse} return PlivoGenericResponse Object if success
* @fail {Error} return Error
*/
buy(number: string, appId: string): Promise < any > ;
buy(number: string, appId?: string): Promise < any > ;
[clientKey]: symbol;
}
/**
Expand Down Expand Up @@ -104,7 +104,7 @@ export class NumberInterface extends PlivoResourceInterface {
* @promise {@link PlivoGenericResponse} return PlivoGenericResponse Object if success
* @fail {Error} return Error
*/
buy(number: string, appId: string): Promise < BuyNumberResponse > ;
buy(number: string, appId?: string): Promise < BuyNumberResponse > ;
/**
* Add own number from carrier
* @method
Expand All @@ -124,7 +124,7 @@ export class NumberInterface extends PlivoResourceInterface {
* @promise {@link PhoneNumberInterface} return PhoneNumbers Object if success
* @fail {Error} return Error
*/
search(countryISO: string, optionalParams: object): Promise < SearchNumberResponse > ;
search(countryISO: string, optionalParams: object): Promise < SearchNumberResponse[] > ;
/**
* Update Number
* @method
Expand Down

0 comments on commit d97b162

Please sign in to comment.