Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [5.46.5](https://github.com/plivo/plivo-java/tree/v5.46.5) (2026-01-20)
**Feature - HA Number support**
- Added `haEnable` optional parameter to `PhoneNumberCreator` for enabling HA functionality during phone number rent
- Added `fallbackNumber` optional field to `PhoneNumberCreationStatus` response

## [5.46.4](https://github.com/plivo/plivo-java/tree/v5.46.4) (2026-01-13)
**Feature - Profile API business_contact_email support**
- Added `businessContactEmail` parameter support to Profile `create` and `update` methods for PUBLIC entity types
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.plivo</groupId>
<artifactId>plivo-java</artifactId>
<version>5.46.3</version>
<version>5.46.5</version>
<name>plivo-java</name>
<description>A Java SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML</description>
<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public class PhoneNumberCreationStatus {

private String number;
private String status;
private String fallbackNumber;

public String getNumber() {
return number;
Expand All @@ -12,4 +13,8 @@ public String getNumber() {
public String getStatus() {
return status;
}

public String getFallbackNumber() {
return fallbackNumber;
}
}
10 changes: 10 additions & 0 deletions src/main/java/com/plivo/api/models/number/PhoneNumberCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class PhoneNumberCreator extends Creator<PhoneNumberCreateResponse> {
private String number;
private String appId;
private String cnamLookup;
private Boolean haEnable;

public PhoneNumberCreator(String number) {
if (number == null) {
Expand Down Expand Up @@ -35,6 +36,15 @@ public PhoneNumberCreator cnamLookup(final String cnamLookup) {
return this;
}

public Boolean haEnable() {
return this.haEnable;
}

public PhoneNumberCreator haEnable(final Boolean haEnable) {
this.haEnable = haEnable;
return this;
}

@Override
protected Call<PhoneNumberCreateResponse> obtainCall() {
return client().getApiService().phoneNumberCreate(client().getAuthId(), number, this);
Expand Down
Loading