diff --git a/courier-java-core/src/main/kotlin/com/courier/models/ElementalImageNode.kt b/courier-java-core/src/main/kotlin/com/courier/models/ElementalImageNode.kt index 7440c3ee..399a776e 100644 --- a/courier-java-core/src/main/kotlin/com/courier/models/ElementalImageNode.kt +++ b/courier-java-core/src/main/kotlin/com/courier/models/ElementalImageNode.kt @@ -48,7 +48,7 @@ private constructor( @JsonProperty("ref") @ExcludeMissing ref: JsonField = JsonMissing.of(), @JsonProperty("src") @ExcludeMissing src: JsonField = JsonMissing.of(), @JsonProperty("align") @ExcludeMissing align: JsonField = JsonMissing.of(), - @JsonProperty("altText") @ExcludeMissing altText: JsonField = JsonMissing.of(), + @JsonProperty("alt_text") @ExcludeMissing altText: JsonField = JsonMissing.of(), @JsonProperty("border_color") @ExcludeMissing borderColor: JsonField = JsonMissing.of(), @@ -123,7 +123,7 @@ private constructor( * @throws CourierInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun altText(): Optional = altText.getOptional("altText") + fun altText(): Optional = altText.getOptional("alt_text") /** * CSS border color applied to the image. For example, `#ccc` @@ -212,7 +212,7 @@ private constructor( * * Unlike [altText], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("altText") @ExcludeMissing fun _altText(): JsonField = altText + @JsonProperty("alt_text") @ExcludeMissing fun _altText(): JsonField = altText /** * Returns the raw JSON value of [borderColor]. diff --git a/courier-java-core/src/main/kotlin/com/courier/models/ElementalImageNodeWithType.kt b/courier-java-core/src/main/kotlin/com/courier/models/ElementalImageNodeWithType.kt index 3df8aa7f..246b2f50 100644 --- a/courier-java-core/src/main/kotlin/com/courier/models/ElementalImageNodeWithType.kt +++ b/courier-java-core/src/main/kotlin/com/courier/models/ElementalImageNodeWithType.kt @@ -50,7 +50,7 @@ private constructor( @JsonProperty("ref") @ExcludeMissing ref: JsonField = JsonMissing.of(), @JsonProperty("src") @ExcludeMissing src: JsonField = JsonMissing.of(), @JsonProperty("align") @ExcludeMissing align: JsonField = JsonMissing.of(), - @JsonProperty("altText") @ExcludeMissing altText: JsonField = JsonMissing.of(), + @JsonProperty("alt_text") @ExcludeMissing altText: JsonField = JsonMissing.of(), @JsonProperty("border_color") @ExcludeMissing borderColor: JsonField = JsonMissing.of(), @@ -140,7 +140,7 @@ private constructor( * @throws CourierInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun altText(): Optional = altText.getOptional("altText") + fun altText(): Optional = altText.getOptional("alt_text") /** * CSS border color applied to the image. For example, `#ccc` @@ -235,7 +235,7 @@ private constructor( * * Unlike [altText], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("altText") @ExcludeMissing fun _altText(): JsonField = altText + @JsonProperty("alt_text") @ExcludeMissing fun _altText(): JsonField = altText /** * Returns the raw JSON value of [borderColor]. diff --git a/courier-java-core/src/main/kotlin/com/courier/models/ElementalQuoteNode.kt b/courier-java-core/src/main/kotlin/com/courier/models/ElementalQuoteNode.kt index 9a5cd8d7..d9afb590 100644 --- a/courier-java-core/src/main/kotlin/com/courier/models/ElementalQuoteNode.kt +++ b/courier-java-core/src/main/kotlin/com/courier/models/ElementalQuoteNode.kt @@ -47,7 +47,7 @@ private constructor( @JsonProperty("ref") @ExcludeMissing ref: JsonField = JsonMissing.of(), @JsonProperty("content") @ExcludeMissing content: JsonField = JsonMissing.of(), @JsonProperty("align") @ExcludeMissing align: JsonField = JsonMissing.of(), - @JsonProperty("borderColor") + @JsonProperty("border_color") @ExcludeMissing borderColor: JsonField = JsonMissing.of(), @JsonProperty("font_size") @ExcludeMissing fontSize: JsonField = JsonMissing.of(), @@ -122,7 +122,7 @@ private constructor( * @throws CourierInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun borderColor(): Optional = borderColor.getOptional("borderColor") + fun borderColor(): Optional = borderColor.getOptional("border_color") /** * CSS px font size for this quote block, e.g. `16px`. Overrides the size of the `text_style` @@ -205,7 +205,9 @@ private constructor( * * Unlike [borderColor], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("borderColor") @ExcludeMissing fun _borderColor(): JsonField = borderColor + @JsonProperty("border_color") + @ExcludeMissing + fun _borderColor(): JsonField = borderColor /** * Returns the raw JSON value of [fontSize]. diff --git a/courier-java-core/src/main/kotlin/com/courier/models/ElementalQuoteNodeWithType.kt b/courier-java-core/src/main/kotlin/com/courier/models/ElementalQuoteNodeWithType.kt index 7c2cd50e..c07796f1 100644 --- a/courier-java-core/src/main/kotlin/com/courier/models/ElementalQuoteNodeWithType.kt +++ b/courier-java-core/src/main/kotlin/com/courier/models/ElementalQuoteNodeWithType.kt @@ -49,7 +49,7 @@ private constructor( @JsonProperty("ref") @ExcludeMissing ref: JsonField = JsonMissing.of(), @JsonProperty("content") @ExcludeMissing content: JsonField = JsonMissing.of(), @JsonProperty("align") @ExcludeMissing align: JsonField = JsonMissing.of(), - @JsonProperty("borderColor") + @JsonProperty("border_color") @ExcludeMissing borderColor: JsonField = JsonMissing.of(), @JsonProperty("font_size") @ExcludeMissing fontSize: JsonField = JsonMissing.of(), @@ -138,7 +138,7 @@ private constructor( * @throws CourierInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun borderColor(): Optional = borderColor.getOptional("borderColor") + fun borderColor(): Optional = borderColor.getOptional("border_color") /** * CSS px font size for this quote block, e.g. `16px`. Overrides the size of the `text_style` @@ -227,7 +227,9 @@ private constructor( * * Unlike [borderColor], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("borderColor") @ExcludeMissing fun _borderColor(): JsonField = borderColor + @JsonProperty("border_color") + @ExcludeMissing + fun _borderColor(): JsonField = borderColor /** * Returns the raw JSON value of [fontSize]. diff --git a/courier-java-core/src/test/kotlin/com/courier/models/ElementalImageNodeTest.kt b/courier-java-core/src/test/kotlin/com/courier/models/ElementalImageNodeTest.kt index c8415a9e..9d075a53 100644 --- a/courier-java-core/src/test/kotlin/com/courier/models/ElementalImageNodeTest.kt +++ b/courier-java-core/src/test/kotlin/com/courier/models/ElementalImageNodeTest.kt @@ -20,7 +20,7 @@ internal class ElementalImageNodeTest { .ref("ref") .src("src") .align(Alignment.CENTER) - .altText("altText") + .altText("alt_text") .borderColor("border_color") .borderSize("border_size") .href("href") @@ -34,7 +34,7 @@ internal class ElementalImageNodeTest { assertThat(elementalImageNode.ref()).contains("ref") assertThat(elementalImageNode.src()).isEqualTo("src") assertThat(elementalImageNode.align()).contains(Alignment.CENTER) - assertThat(elementalImageNode.altText()).contains("altText") + assertThat(elementalImageNode.altText()).contains("alt_text") assertThat(elementalImageNode.borderColor()).contains("border_color") assertThat(elementalImageNode.borderSize()).contains("border_size") assertThat(elementalImageNode.href()).contains("href") @@ -53,7 +53,7 @@ internal class ElementalImageNodeTest { .ref("ref") .src("src") .align(Alignment.CENTER) - .altText("altText") + .altText("alt_text") .borderColor("border_color") .borderSize("border_size") .href("href") diff --git a/courier-java-core/src/test/kotlin/com/courier/models/ElementalQuoteNodeTest.kt b/courier-java-core/src/test/kotlin/com/courier/models/ElementalQuoteNodeTest.kt index a309eba0..f213e413 100644 --- a/courier-java-core/src/test/kotlin/com/courier/models/ElementalQuoteNodeTest.kt +++ b/courier-java-core/src/test/kotlin/com/courier/models/ElementalQuoteNodeTest.kt @@ -21,7 +21,7 @@ internal class ElementalQuoteNodeTest { .ref("ref") .content("content") .align(Alignment.CENTER) - .borderColor("borderColor") + .borderColor("border_color") .fontSize("font_size") .lineHeight("line_height") .locales( @@ -38,7 +38,7 @@ internal class ElementalQuoteNodeTest { assertThat(elementalQuoteNode.ref()).contains("ref") assertThat(elementalQuoteNode.content()).isEqualTo("content") assertThat(elementalQuoteNode.align()).contains(Alignment.CENTER) - assertThat(elementalQuoteNode.borderColor()).contains("borderColor") + assertThat(elementalQuoteNode.borderColor()).contains("border_color") assertThat(elementalQuoteNode.fontSize()).contains("font_size") assertThat(elementalQuoteNode.lineHeight()).contains("line_height") assertThat(elementalQuoteNode.locales()) @@ -61,7 +61,7 @@ internal class ElementalQuoteNodeTest { .ref("ref") .content("content") .align(Alignment.CENTER) - .borderColor("borderColor") + .borderColor("border_color") .fontSize("font_size") .lineHeight("line_height") .locales(