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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log

## [4.63.2](https://github.com/plivo/plivo-ruby/tree/v4.63.2) (2026-05-26)
**Feature - Profile API DBA field support**
- Added Doing Business As (DBA) field support to Profile API

**Feature - Expose sub_account_name on Number resource**
- Added `sub_account_name` to `Number#to_s` output, surfacing the subaccount's name alongside the existing `sub_account` (auth_id) on rented number listing and get APIs

Expand Down
2 changes: 1 addition & 1 deletion lib/plivo/resources/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def create(options = nil)

##
# Update a Profile
# {'address': {}, 'authorized_contact': {}, 'entity_type':'', 'vertical': '', 'company_name': '', 'website':'', 'business_contact_email':''}
# {'address': {}, 'authorized_contact': {}, 'entity_type':'', 'vertical': '', 'company_name': '', 'website':'', 'business_contact_email':'', 'doing_business_as':''}
def update(profile_uuid, options = nil)
valid_param?(:options, options, Hash, true)
perform_action_with_identifier(profile_uuid, "POST", options)
Expand Down
1 change: 1 addition & 0 deletions spec/mocks/profileGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"company_name": "ABC Inc",
"customer_type": "DIRECT",
"doing_business_as": "ABC DBA",
"ein": "111111111",
"ein_issuing_country": "US",
"entity_type": "GOVERNMENT",
Expand Down
12 changes: 8 additions & 4 deletions spec/resource_profile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def to_json_delete(object)
"title": "CEO",
"seniority": "C_LEVEL"
},
business_contact_email: "employee@company.com"
business_contact_email: "employee@company.com",
doing_business_as: "Test DBA"
}
))

Expand Down Expand Up @@ -171,7 +172,8 @@ def to_json_delete(object)
"title": "CEO",
"seniority": "C_LEVEL"
},
business_contact_email: "employee@company.com"
business_contact_email: "employee@company.com",
doing_business_as: "Test DBA"
})
end
it 'update profile' do
Expand All @@ -198,7 +200,8 @@ def to_json_delete(object)
"email": "xyz123@plivo.com",
"title": "ugigwc",
"seniority": "admin"
}
},
doing_business_as: "Updated DBA"
}
))

Expand Down Expand Up @@ -227,7 +230,8 @@ def to_json_delete(object)
"email": "xyz123@plivo.com",
"title": "ugigwc",
"seniority": "admin"
}
},
doing_business_as: "Updated DBA"
})
end
end
Loading