Skip to content

Commit

Permalink
fix: set correct Parameter name (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
isha689 authored Jan 31, 2023
1 parent 61acfef commit 489ab34
Show file tree
Hide file tree
Showing 21 changed files with 146 additions and 146 deletions.
76 changes: 38 additions & 38 deletions src/main/java/com/twilio/rest/chat/v1/ServiceUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,31 +442,31 @@ private void addPostParams(final Request request) {

}
if (notificationsNewMessageEnabled != null) {
request.addPostParam("NotificationsNewMessageEnabled", notificationsNewMessageEnabled.toString());
request.addPostParam("Notifications.NewMessage.Enabled", notificationsNewMessageEnabled.toString());

}
if (notificationsNewMessageTemplate != null) {
request.addPostParam("Notifications.NewMessage.Template", notificationsNewMessageTemplate);

}
if (notificationsAddedToChannelEnabled != null) {
request.addPostParam("NotificationsAddedToChannelEnabled", notificationsAddedToChannelEnabled.toString());
request.addPostParam("Notifications.AddedToChannel.Enabled", notificationsAddedToChannelEnabled.toString());

}
if (notificationsAddedToChannelTemplate != null) {
request.addPostParam("Notifications.AddedToChannel.Template", notificationsAddedToChannelTemplate);

}
if (notificationsRemovedFromChannelEnabled != null) {
request.addPostParam("NotificationsRemovedFromChannelEnabled", notificationsRemovedFromChannelEnabled.toString());
request.addPostParam("Notifications.RemovedFromChannel.Enabled", notificationsRemovedFromChannelEnabled.toString());

}
if (notificationsRemovedFromChannelTemplate != null) {
request.addPostParam("Notifications.RemovedFromChannel.Template", notificationsRemovedFromChannelTemplate);

}
if (notificationsInvitedToChannelEnabled != null) {
request.addPostParam("NotificationsInvitedToChannelEnabled", notificationsInvitedToChannelEnabled.toString());
request.addPostParam("Notifications.InvitedToChannel.Enabled", notificationsInvitedToChannelEnabled.toString());

}
if (notificationsInvitedToChannelTemplate != null) {
Expand All @@ -492,139 +492,139 @@ private void addPostParams(final Request request) {

}
if (webhooksOnMessageSendUrl != null) {
request.addPostParam("WebhooksOnMessageSendUrl", webhooksOnMessageSendUrl.toString());
request.addPostParam("Webhooks.OnMessageSend.Url", webhooksOnMessageSendUrl.toString());

}
if (webhooksOnMessageSendMethod != null) {
request.addPostParam("WebhooksOnMessageSendMethod", webhooksOnMessageSendMethod.toString());
request.addPostParam("Webhooks.OnMessageSend.Method", webhooksOnMessageSendMethod.toString());

}
if (webhooksOnMessageUpdateUrl != null) {
request.addPostParam("WebhooksOnMessageUpdateUrl", webhooksOnMessageUpdateUrl.toString());
request.addPostParam("Webhooks.OnMessageUpdate.Url", webhooksOnMessageUpdateUrl.toString());

}
if (webhooksOnMessageUpdateMethod != null) {
request.addPostParam("WebhooksOnMessageUpdateMethod", webhooksOnMessageUpdateMethod.toString());
request.addPostParam("Webhooks.OnMessageUpdate.Method", webhooksOnMessageUpdateMethod.toString());

}
if (webhooksOnMessageRemoveUrl != null) {
request.addPostParam("WebhooksOnMessageRemoveUrl", webhooksOnMessageRemoveUrl.toString());
request.addPostParam("Webhooks.OnMessageRemove.Url", webhooksOnMessageRemoveUrl.toString());

}
if (webhooksOnMessageRemoveMethod != null) {
request.addPostParam("WebhooksOnMessageRemoveMethod", webhooksOnMessageRemoveMethod.toString());
request.addPostParam("Webhooks.OnMessageRemove.Method", webhooksOnMessageRemoveMethod.toString());

}
if (webhooksOnChannelAddUrl != null) {
request.addPostParam("WebhooksOnChannelAddUrl", webhooksOnChannelAddUrl.toString());
request.addPostParam("Webhooks.OnChannelAdd.Url", webhooksOnChannelAddUrl.toString());

}
if (webhooksOnChannelAddMethod != null) {
request.addPostParam("WebhooksOnChannelAddMethod", webhooksOnChannelAddMethod.toString());
request.addPostParam("Webhooks.OnChannelAdd.Method", webhooksOnChannelAddMethod.toString());

}
if (webhooksOnChannelDestroyUrl != null) {
request.addPostParam("WebhooksOnChannelDestroyUrl", webhooksOnChannelDestroyUrl.toString());
request.addPostParam("Webhooks.OnChannelDestroy.Url", webhooksOnChannelDestroyUrl.toString());

}
if (webhooksOnChannelDestroyMethod != null) {
request.addPostParam("WebhooksOnChannelDestroyMethod", webhooksOnChannelDestroyMethod.toString());
request.addPostParam("Webhooks.OnChannelDestroy.Method", webhooksOnChannelDestroyMethod.toString());

}
if (webhooksOnChannelUpdateUrl != null) {
request.addPostParam("WebhooksOnChannelUpdateUrl", webhooksOnChannelUpdateUrl.toString());
request.addPostParam("Webhooks.OnChannelUpdate.Url", webhooksOnChannelUpdateUrl.toString());

}
if (webhooksOnChannelUpdateMethod != null) {
request.addPostParam("WebhooksOnChannelUpdateMethod", webhooksOnChannelUpdateMethod.toString());
request.addPostParam("Webhooks.OnChannelUpdate.Method", webhooksOnChannelUpdateMethod.toString());

}
if (webhooksOnMemberAddUrl != null) {
request.addPostParam("WebhooksOnMemberAddUrl", webhooksOnMemberAddUrl.toString());
request.addPostParam("Webhooks.OnMemberAdd.Url", webhooksOnMemberAddUrl.toString());

}
if (webhooksOnMemberAddMethod != null) {
request.addPostParam("WebhooksOnMemberAddMethod", webhooksOnMemberAddMethod.toString());
request.addPostParam("Webhooks.OnMemberAdd.Method", webhooksOnMemberAddMethod.toString());

}
if (webhooksOnMemberRemoveUrl != null) {
request.addPostParam("WebhooksOnMemberRemoveUrl", webhooksOnMemberRemoveUrl.toString());
request.addPostParam("Webhooks.OnMemberRemove.Url", webhooksOnMemberRemoveUrl.toString());

}
if (webhooksOnMemberRemoveMethod != null) {
request.addPostParam("WebhooksOnMemberRemoveMethod", webhooksOnMemberRemoveMethod.toString());
request.addPostParam("Webhooks.OnMemberRemove.Method", webhooksOnMemberRemoveMethod.toString());

}
if (webhooksOnMessageSentUrl != null) {
request.addPostParam("WebhooksOnMessageSentUrl", webhooksOnMessageSentUrl.toString());
request.addPostParam("Webhooks.OnMessageSent.Url", webhooksOnMessageSentUrl.toString());

}
if (webhooksOnMessageSentMethod != null) {
request.addPostParam("WebhooksOnMessageSentMethod", webhooksOnMessageSentMethod.toString());
request.addPostParam("Webhooks.OnMessageSent.Method", webhooksOnMessageSentMethod.toString());

}
if (webhooksOnMessageUpdatedUrl != null) {
request.addPostParam("WebhooksOnMessageUpdatedUrl", webhooksOnMessageUpdatedUrl.toString());
request.addPostParam("Webhooks.OnMessageUpdated.Url", webhooksOnMessageUpdatedUrl.toString());

}
if (webhooksOnMessageUpdatedMethod != null) {
request.addPostParam("WebhooksOnMessageUpdatedMethod", webhooksOnMessageUpdatedMethod.toString());
request.addPostParam("Webhooks.OnMessageUpdated.Method", webhooksOnMessageUpdatedMethod.toString());

}
if (webhooksOnMessageRemovedUrl != null) {
request.addPostParam("WebhooksOnMessageRemovedUrl", webhooksOnMessageRemovedUrl.toString());
request.addPostParam("Webhooks.OnMessageRemoved.Url", webhooksOnMessageRemovedUrl.toString());

}
if (webhooksOnMessageRemovedMethod != null) {
request.addPostParam("WebhooksOnMessageRemovedMethod", webhooksOnMessageRemovedMethod.toString());
request.addPostParam("Webhooks.OnMessageRemoved.Method", webhooksOnMessageRemovedMethod.toString());

}
if (webhooksOnChannelAddedUrl != null) {
request.addPostParam("WebhooksOnChannelAddedUrl", webhooksOnChannelAddedUrl.toString());
request.addPostParam("Webhooks.OnChannelAdded.Url", webhooksOnChannelAddedUrl.toString());

}
if (webhooksOnChannelAddedMethod != null) {
request.addPostParam("WebhooksOnChannelAddedMethod", webhooksOnChannelAddedMethod.toString());
request.addPostParam("Webhooks.OnChannelAdded.Method", webhooksOnChannelAddedMethod.toString());

}
if (webhooksOnChannelDestroyedUrl != null) {
request.addPostParam("WebhooksOnChannelDestroyedUrl", webhooksOnChannelDestroyedUrl.toString());
request.addPostParam("Webhooks.OnChannelDestroyed.Url", webhooksOnChannelDestroyedUrl.toString());

}
if (webhooksOnChannelDestroyedMethod != null) {
request.addPostParam("WebhooksOnChannelDestroyedMethod", webhooksOnChannelDestroyedMethod.toString());
request.addPostParam("Webhooks.OnChannelDestroyed.Method", webhooksOnChannelDestroyedMethod.toString());

}
if (webhooksOnChannelUpdatedUrl != null) {
request.addPostParam("WebhooksOnChannelUpdatedUrl", webhooksOnChannelUpdatedUrl.toString());
request.addPostParam("Webhooks.OnChannelUpdated.Url", webhooksOnChannelUpdatedUrl.toString());

}
if (webhooksOnChannelUpdatedMethod != null) {
request.addPostParam("WebhooksOnChannelUpdatedMethod", webhooksOnChannelUpdatedMethod.toString());
request.addPostParam("Webhooks.OnChannelUpdated.Method", webhooksOnChannelUpdatedMethod.toString());

}
if (webhooksOnMemberAddedUrl != null) {
request.addPostParam("WebhooksOnMemberAddedUrl", webhooksOnMemberAddedUrl.toString());
request.addPostParam("Webhooks.OnMemberAdded.Url", webhooksOnMemberAddedUrl.toString());

}
if (webhooksOnMemberAddedMethod != null) {
request.addPostParam("WebhooksOnMemberAddedMethod", webhooksOnMemberAddedMethod.toString());
request.addPostParam("Webhooks.OnMemberAdded.Method", webhooksOnMemberAddedMethod.toString());

}
if (webhooksOnMemberRemovedUrl != null) {
request.addPostParam("WebhooksOnMemberRemovedUrl", webhooksOnMemberRemovedUrl.toString());
request.addPostParam("Webhooks.OnMemberRemoved.Url", webhooksOnMemberRemovedUrl.toString());

}
if (webhooksOnMemberRemovedMethod != null) {
request.addPostParam("WebhooksOnMemberRemovedMethod", webhooksOnMemberRemovedMethod.toString());
request.addPostParam("Webhooks.OnMemberRemoved.Method", webhooksOnMemberRemovedMethod.toString());

}
if (limitsChannelMembers != null) {
request.addPostParam("LimitsChannelMembers", limitsChannelMembers.toString());
request.addPostParam("Limits.ChannelMembers", limitsChannelMembers.toString());

}
if (limitsUserChannels != null) {
request.addPostParam("LimitsUserChannels", limitsUserChannels.toString());
request.addPostParam("Limits.UserChannels", limitsUserChannels.toString());

}
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/twilio/rest/chat/v2/ServiceUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private void addPostParams(final Request request) {

}
if (notificationsNewMessageEnabled != null) {
request.addPostParam("NotificationsNewMessageEnabled", notificationsNewMessageEnabled.toString());
request.addPostParam("Notifications.NewMessage.Enabled", notificationsNewMessageEnabled.toString());

}
if (notificationsNewMessageTemplate != null) {
Expand All @@ -275,11 +275,11 @@ private void addPostParams(final Request request) {

}
if (notificationsNewMessageBadgeCountEnabled != null) {
request.addPostParam("NotificationsNewMessageBadgeCountEnabled", notificationsNewMessageBadgeCountEnabled.toString());
request.addPostParam("Notifications.NewMessage.BadgeCountEnabled", notificationsNewMessageBadgeCountEnabled.toString());

}
if (notificationsAddedToChannelEnabled != null) {
request.addPostParam("NotificationsAddedToChannelEnabled", notificationsAddedToChannelEnabled.toString());
request.addPostParam("Notifications.AddedToChannel.Enabled", notificationsAddedToChannelEnabled.toString());

}
if (notificationsAddedToChannelTemplate != null) {
Expand All @@ -291,7 +291,7 @@ private void addPostParams(final Request request) {

}
if (notificationsRemovedFromChannelEnabled != null) {
request.addPostParam("NotificationsRemovedFromChannelEnabled", notificationsRemovedFromChannelEnabled.toString());
request.addPostParam("Notifications.RemovedFromChannel.Enabled", notificationsRemovedFromChannelEnabled.toString());

}
if (notificationsRemovedFromChannelTemplate != null) {
Expand All @@ -303,7 +303,7 @@ private void addPostParams(final Request request) {

}
if (notificationsInvitedToChannelEnabled != null) {
request.addPostParam("NotificationsInvitedToChannelEnabled", notificationsInvitedToChannelEnabled.toString());
request.addPostParam("Notifications.InvitedToChannel.Enabled", notificationsInvitedToChannelEnabled.toString());

}
if (notificationsInvitedToChannelTemplate != null) {
Expand Down Expand Up @@ -333,11 +333,11 @@ private void addPostParams(final Request request) {

}
if (limitsChannelMembers != null) {
request.addPostParam("LimitsChannelMembers", limitsChannelMembers.toString());
request.addPostParam("Limits.ChannelMembers", limitsChannelMembers.toString());

}
if (limitsUserChannels != null) {
request.addPostParam("LimitsUserChannels", limitsUserChannels.toString());
request.addPostParam("Limits.UserChannels", limitsUserChannels.toString());

}
if (mediaCompatibilityMessage != null) {
Expand All @@ -353,7 +353,7 @@ private void addPostParams(final Request request) {

}
if (notificationsLogEnabled != null) {
request.addPostParam("NotificationsLogEnabled", notificationsLogEnabled.toString());
request.addPostParam("Notifications.LogEnabled", notificationsLogEnabled.toString());

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private void addPostParams(final Request request) {

}
if (configurationMethod != null) {
request.addPostParam("ConfigurationMethod", configurationMethod.toString());
request.addPostParam("Configuration.Method", configurationMethod.toString());

}
if (configurationFilters != null) {
Expand All @@ -139,7 +139,7 @@ private void addPostParams(final Request request) {

}
if (configurationRetryCount != null) {
request.addPostParam("ConfigurationRetryCount", configurationRetryCount.toString());
request.addPostParam("Configuration.RetryCount", configurationRetryCount.toString());

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void addPostParams(final Request request) {

}
if (configurationMethod != null) {
request.addPostParam("ConfigurationMethod", configurationMethod.toString());
request.addPostParam("Configuration.Method", configurationMethod.toString());

}
if (configurationFilters != null) {
Expand All @@ -130,7 +130,7 @@ private void addPostParams(final Request request) {

}
if (configurationRetryCount != null) {
request.addPostParam("ConfigurationRetryCount", configurationRetryCount.toString());
request.addPostParam("Configuration.RetryCount", configurationRetryCount.toString());

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ private void addPostParams(final Request request) {

}
if (autoCreationEnabled != null) {
request.addPostParam("AutoCreationEnabled", autoCreationEnabled.toString());
request.addPostParam("AutoCreation.Enabled", autoCreationEnabled.toString());

}
if (autoCreationType != null) {
request.addPostParam("AutoCreationType", autoCreationType.toString());
request.addPostParam("AutoCreation.Type", autoCreationType.toString());

}
if (autoCreationConversationServiceSid != null) {
Expand All @@ -152,7 +152,7 @@ private void addPostParams(final Request request) {

}
if (autoCreationWebhookMethod != null) {
request.addPostParam("AutoCreationWebhookMethod", autoCreationWebhookMethod.toString());
request.addPostParam("AutoCreation.WebhookMethod", autoCreationWebhookMethod.toString());

}
if (autoCreationWebhookFilters != null) {
Expand All @@ -166,7 +166,7 @@ private void addPostParams(final Request request) {

}
if (autoCreationStudioRetryCount != null) {
request.addPostParam("AutoCreationStudioRetryCount", autoCreationStudioRetryCount.toString());
request.addPostParam("AutoCreation.StudioRetryCount", autoCreationStudioRetryCount.toString());

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ private void addPostParams(final Request request) {

}
if (autoCreationEnabled != null) {
request.addPostParam("AutoCreationEnabled", autoCreationEnabled.toString());
request.addPostParam("AutoCreation.Enabled", autoCreationEnabled.toString());

}
if (autoCreationType != null) {
request.addPostParam("AutoCreationType", autoCreationType.toString());
request.addPostParam("AutoCreation.Type", autoCreationType.toString());

}
if (autoCreationConversationServiceSid != null) {
Expand All @@ -132,7 +132,7 @@ private void addPostParams(final Request request) {

}
if (autoCreationWebhookMethod != null) {
request.addPostParam("AutoCreationWebhookMethod", autoCreationWebhookMethod.toString());
request.addPostParam("AutoCreation.WebhookMethod", autoCreationWebhookMethod.toString());

}
if (autoCreationWebhookFilters != null) {
Expand All @@ -146,7 +146,7 @@ private void addPostParams(final Request request) {

}
if (autoCreationStudioRetryCount != null) {
request.addPostParam("AutoCreationStudioRetryCount", autoCreationStudioRetryCount.toString());
request.addPostParam("AutoCreation.StudioRetryCount", autoCreationStudioRetryCount.toString());

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private void addPostParams(final Request request) {

}
if (configurationMethod != null) {
request.addPostParam("ConfigurationMethod", configurationMethod.toString());
request.addPostParam("Configuration.Method", configurationMethod.toString());

}
if (configurationFilters != null) {
Expand All @@ -136,7 +136,7 @@ private void addPostParams(final Request request) {

}
if (configurationReplayAfter != null) {
request.addPostParam("ConfigurationReplayAfter", configurationReplayAfter.toString());
request.addPostParam("Configuration.ReplayAfter", configurationReplayAfter.toString());

}
}
Expand Down
Loading

0 comments on commit 489ab34

Please sign in to comment.