From 54ac46c3b7fe5ac44c4f3d53ce545efaeef7025b Mon Sep 17 00:00:00 2001 From: jorgemucientesfayos Date: Fri, 8 Nov 2024 18:27:58 +0100 Subject: [PATCH] Send cta text value when creating Blaze campaign --- .../android/fluxc/model/blaze/BlazeCampaignCreationRequest.kt | 1 + .../fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/model/blaze/BlazeCampaignCreationRequest.kt b/fluxc/src/main/java/org/wordpress/android/fluxc/model/blaze/BlazeCampaignCreationRequest.kt index 905d8317e9..e98cf974da 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/model/blaze/BlazeCampaignCreationRequest.kt +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/model/blaze/BlazeCampaignCreationRequest.kt @@ -12,6 +12,7 @@ data class BlazeCampaignCreationRequest( val paymentMethodId: String, val tagLine: String, val description: String, + val ctaText: String, val startDate: Date, val endDate: Date, val budget: BlazeCampaignCreationRequestBudget, diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt b/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt index c0a2832664..dff6c1b78c 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/blaze/BlazeCreationRestClient.kt @@ -234,6 +234,7 @@ class BlazeCreationRestClient @Inject constructor( ), "site_name" to request.tagLine, "text_snippet" to request.description, + "cta_text" to request.ctaText, "target_url" to request.targetUrl, "url_params" to request.urlParams.entries.joinToString(separator = "&") { "${it.key}=${it.value}" }, "main_image" to JsonObject().apply {