Skip to content

Commit

Permalink
fix: Numbers Available: Rent request parameters are optional for SMS/…
Browse files Browse the repository at this point in the history
…Voice and callbackUrl (#20)
  • Loading branch information
JPPortier authored Nov 28, 2023
1 parent 2aaf1ba commit b69423f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ public AvailableNumberRentRequestParameters(
}

public Optional<RentSMSConfigurationRequestParameters> getSmsConfiguration() {
return Optional.of(smsConfiguration);
return Optional.ofNullable(smsConfiguration);
}

public Optional<RentVoiceConfigurationRequestParameters> getVoiceConfiguration() {
return Optional.of(voiceConfiguration);
return Optional.ofNullable(voiceConfiguration);
}

public Optional<String> getCallBackUrl() {
return Optional.of(callbackUrl);
return Optional.ofNullable(callbackUrl);
}

public static Builder builder() {
Expand Down

0 comments on commit b69423f

Please sign in to comment.