From eb2c023e2a6782f5ddf29b4721f96fe3231176b7 Mon Sep 17 00:00:00 2001 From: Thiago Youssef Date: Wed, 20 Jul 2022 10:07:19 -0300 Subject: [PATCH] Update registrant api doc --- doc/registrant-api/v1/contact.md | 25 ++++++++++--------- .../v1/registrant/contacts/details_test.rb | 3 ++- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/doc/registrant-api/v1/contact.md b/doc/registrant-api/v1/contact.md index 37a60e1a2..a36e0c1c6 100644 --- a/doc/registrant-api/v1/contact.md +++ b/doc/registrant-api/v1/contact.md @@ -102,18 +102,19 @@ Update contact. #### Parameters -| Field name | Required | Type | Allowed values | Description | -| ---- | --- | --- | --- | --- | -| name | false | String | | New name | -| email | false | String | | New email | -| phone | false | String | | New phone number | -| fax | false | String | | New fax number | -| address[street] | false | String | | New street name | -| address[zip] | false | String | | New zip | -| address[city] | false | String | | New city name | -| address[state] | false | String | | New state name | -| address[country_code] | false | String | | New country code in 2 letter format (ISO 3166-1 alpha-2) | -| disclosed_attributes | false | Array | | Possible values: "name", "email", "phone" +| Field name | Required | Type | Allowed values | Description | +| ---- | --- | --- | --- | --- | +| name | false | String | | New name | +| email | false | String | | New email | +| phone | false | String | | New phone number | +| fax | false | String | | New fax number | +| address[street] | false | String | | New street name | +| address[zip] | false | String | | New zip | +| address[city] | false | String | | New city name | +| address[state] | false | String | | New state name | +| address[country_code] | false | String | | New country code in 2 letter format (ISO 3166-1 alpha-2) | +| disclosed_attributes | false | Array | | Possible values: "name", "email", "phone" | +| registrant_publishable | false | Boolean | | Possible values: true, false | #### Request diff --git a/test/integration/api/v1/registrant/contacts/details_test.rb b/test/integration/api/v1/registrant/contacts/details_test.rb index 0352ade8d..66aecb28a 100644 --- a/test/integration/api/v1/registrant/contacts/details_test.rb +++ b/test/integration/api/v1/registrant/contacts/details_test.rb @@ -38,7 +38,8 @@ class RegistrantApiV1ContactDetailsTest < ActionDispatch::IntegrationTest }, auth_info: @contact.auth_info, statuses: @contact.statuses, - disclosed_attributes: @contact.disclosed_attributes }), + disclosed_attributes: @contact.disclosed_attributes, + registrant_publishable: @contact.registrant_publishable }), JSON.parse(response.body, symbolize_names: true) end