diff --git a/.fern/metadata.json b/.fern/metadata.json index 5f54e64..7016aaa 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -10,9 +10,9 @@ "base-exception-class-name": "CloudPDFException", "base-api-exception-class-name": "CloudPDFApiException" }, - "originGitCommit": "3f7f3c650bb91d9c5a4277c920bbd6fab7142f98", + "originGitCommit": "af7d3403e384b397d49fca3bcf3e8afd5f869325", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "3.0.0-alpha.23", + "requestedVersion": "3.0.0", "ciProvider": "github" } \ No newline at end of file diff --git a/build.gradle b/build.gradle index c1aed73..cc5875b 100644 --- a/build.gradle +++ b/build.gradle @@ -46,7 +46,7 @@ java { group = 'com.cloudpdf' -version = '3.0.0-alpha.23' +version = '3.0.0' jar { dependsOn(":generatePomFileForMavenPublication") @@ -73,7 +73,7 @@ publishing { maven(MavenPublication) { groupId = 'com.cloudpdf' artifactId = 'sdk' - version = '3.0.0-alpha.23' + version = '3.0.0' from components.java pom { name = 'CloudPDF' diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json index fac34bd..690587b 100644 --- a/cloudpdf-generation.json +++ b/cloudpdf-generation.json @@ -1,12 +1,12 @@ { "language": "java", - "canonicalVersion": "3.0.0-next.23", - "sdkVersion": "3.0.0-alpha.23", + "canonicalVersion": "3.0.0", + "sdkVersion": "3.0.0", "source": { "repository": "embedpdf/embed-pdf-viewer", "openapi": "cloudpdf/contract/openapi.json", - "openapiSha256": "82488f8cc7c2cd27aee3dc6000d59164467f7dd3899074e309f0574a027e4524", - "gitCommit": "3f7f3c650bb91d9c5a4277c920bbd6fab7142f98", + "openapiSha256": "824b5b739971d3e536e9e5db28a67562867e3900df006fc2e77eb15bcb23cd8d", + "gitCommit": "af7d3403e384b397d49fca3bcf3e8afd5f869325", "gitCommitIsDirty": false }, "fern": { diff --git a/src/main/java/api/core/ClientOptions.java b/src/main/java/api/core/ClientOptions.java index c5afe23..3d56ab3 100644 --- a/src/main/java/api/core/ClientOptions.java +++ b/src/main/java/api/core/ClientOptions.java @@ -49,7 +49,7 @@ private ClientOptions( { put("X-Fern-Language", "JAVA"); put("X-Fern-SDK-Name", "com.cloudpdf:sdk"); - put("X-Fern-SDK-Version", "3.0.0-alpha.23"); + put("X-Fern-SDK-Version", "3.0.0"); } }); this.headerSuppliers = headerSuppliers; diff --git a/src/main/java/api/types/Font.java b/src/main/java/api/types/Font.java index 809e31f..5860f4a 100644 --- a/src/main/java/api/types/Font.java +++ b/src/main/java/api/types/Font.java @@ -30,6 +30,8 @@ public final class Font { private final FontSource source; + private final boolean builtIn; + private final String familyName; private final int weight; @@ -49,6 +51,7 @@ public final class Font { private Font( String name, FontSource source, + boolean builtIn, String familyName, int weight, boolean italic, @@ -59,6 +62,7 @@ private Font( Map additionalProperties) { this.name = name; this.source = source; + this.builtIn = builtIn; this.familyName = familyName; this.weight = weight; this.italic = italic; @@ -79,6 +83,11 @@ public FontSource getSource() { return source; } + @JsonProperty("builtIn") + public boolean getBuiltIn() { + return builtIn; + } + @JsonProperty("familyName") public String getFamilyName() { return familyName; @@ -137,6 +146,7 @@ public Map getAdditionalProperties() { private boolean equalTo(Font other) { return name.equals(other.name) && source.equals(other.source) + && builtIn == other.builtIn && familyName.equals(other.familyName) && weight == other.weight && italic == other.italic @@ -151,6 +161,7 @@ public int hashCode() { return Objects.hash( this.name, this.source, + this.builtIn, this.familyName, this.weight, this.italic, @@ -176,7 +187,11 @@ public interface NameStage { } public interface SourceStage { - FamilyNameStage source(@NotNull FontSource source); + BuiltInStage source(@NotNull FontSource source); + } + + public interface BuiltInStage { + FamilyNameStage builtIn(boolean builtIn); } public interface FamilyNameStage { @@ -223,11 +238,20 @@ public interface _FinalStage { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder - implements NameStage, SourceStage, FamilyNameStage, WeightStage, ItalicStage, CanChooseStage, _FinalStage { + implements NameStage, + SourceStage, + BuiltInStage, + FamilyNameStage, + WeightStage, + ItalicStage, + CanChooseStage, + _FinalStage { private String name; private FontSource source; + private boolean builtIn; + private String familyName; private int weight; @@ -251,6 +275,7 @@ private Builder() {} public Builder from(Font other) { name(other.getName()); source(other.getSource()); + builtIn(other.getBuiltIn()); familyName(other.getFamilyName()); weight(other.getWeight()); italic(other.getItalic()); @@ -270,11 +295,18 @@ public SourceStage name(@NotNull String name) { @java.lang.Override @JsonSetter("source") - public FamilyNameStage source(@NotNull FontSource source) { + public BuiltInStage source(@NotNull FontSource source) { this.source = Objects.requireNonNull(source, "source must not be null"); return this; } + @java.lang.Override + @JsonSetter("builtIn") + public FamilyNameStage builtIn(boolean builtIn) { + this.builtIn = builtIn; + return this; + } + @java.lang.Override @JsonSetter("familyName") public WeightStage familyName(@NotNull String familyName) { @@ -381,6 +413,7 @@ public Font build() { return new Font( name, source, + builtIn, familyName, weight, italic,