Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ java {

group = 'com.cloudpdf'

version = '3.0.0-alpha.23'
version = '3.0.0'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand All @@ -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'
Expand Down
8 changes: 4 additions & 4 deletions cloudpdf-generation.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
39 changes: 36 additions & 3 deletions src/main/java/api/types/Font.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public final class Font {

private final FontSource source;

private final boolean builtIn;

private final String familyName;

private final int weight;
Expand All @@ -49,6 +51,7 @@ public final class Font {
private Font(
String name,
FontSource source,
boolean builtIn,
String familyName,
int weight,
boolean italic,
Expand All @@ -59,6 +62,7 @@ private Font(
Map<String, Object> additionalProperties) {
this.name = name;
this.source = source;
this.builtIn = builtIn;
this.familyName = familyName;
this.weight = weight;
this.italic = italic;
Expand All @@ -79,6 +83,11 @@ public FontSource getSource() {
return source;
}

@JsonProperty("builtIn")
public boolean getBuiltIn() {
return builtIn;
}

@JsonProperty("familyName")
public String getFamilyName() {
return familyName;
Expand Down Expand Up @@ -137,6 +146,7 @@ public Map<String, Object> 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
Expand All @@ -151,6 +161,7 @@ public int hashCode() {
return Objects.hash(
this.name,
this.source,
this.builtIn,
this.familyName,
this.weight,
this.italic,
Expand All @@ -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 {
Expand Down Expand Up @@ -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;
Expand All @@ -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());
Expand All @@ -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) {
Expand Down Expand Up @@ -381,6 +413,7 @@ public Font build() {
return new Font(
name,
source,
builtIn,
familyName,
weight,
italic,
Expand Down
Loading