Skip to content

Commit d20b4cd

Browse files
authored
Merge pull request #18 from codatio/speakeasy-sdk-regen-1708524444
chore: 🐝 Update SDK - Generate Lending library
2 parents a1c0b88 + 77655c0 commit d20b4cd

File tree

1,038 files changed

+6991
-2683
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,038 files changed

+6991
-2683
lines changed

lending/.speakeasy/gen.lock

Lines changed: 875 additions & 837 deletions
Large diffs are not rendered by default.

lending/README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Lending helps you make smarter credit decisions on small businesses by enabling
1010
### Gradle
1111

1212
```groovy
13-
implementation 'io.codat.lending:openapi:0.1.0'
13+
implementation 'io.codat.lending:openapi:1.0.0'
1414
```
1515
<!-- End SDK Installation [installation] -->
1616

@@ -32,6 +32,7 @@ import io.codat.lending.models.shared.Items;
3232
import io.codat.lending.models.shared.Security;
3333
import java.time.LocalDate;
3434
import java.time.OffsetDateTime;
35+
import java.util.Optional;
3536
import static java.util.Map.entry;
3637

3738
public class Application {
@@ -60,7 +61,6 @@ public class Application {
6061
if (res.company().isPresent()) {
6162
// handle response
6263
}
63-
6464
} catch (io.codat.lending.models.errors.SDKError e) {
6565
// handle exception
6666
} catch (Exception e) {
@@ -90,6 +90,13 @@ public class Application {
9090
* [list](docs/sdks/connections/README.md#list) - List connections
9191
* [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
9292

93+
### [bankStatements()](docs/sdks/bankstatements/README.md)
94+
95+
* [endUploadSession](docs/sdks/bankstatements/README.md#enduploadsession) - End upload session
96+
* [getUploadConfiguration](docs/sdks/bankstatements/README.md#getuploadconfiguration) - Get upload configuration
97+
* [setUploadConfiguration](docs/sdks/bankstatements/README.md#setuploadconfiguration) - Set upload configuration
98+
* [startUploadSession](docs/sdks/bankstatements/README.md#startuploadsession) - Start upload session
99+
93100

94101
### [transactions().accountTransactions()](docs/sdks/accounttransactions/README.md)
95102

@@ -409,6 +416,7 @@ import io.codat.lending.models.shared.Items;
409416
import io.codat.lending.models.shared.Security;
410417
import java.time.LocalDate;
411418
import java.time.OffsetDateTime;
419+
import java.util.Optional;
412420
import static java.util.Map.entry;
413421

414422
public class Application {
@@ -437,7 +445,6 @@ public class Application {
437445
if (res.company().isPresent()) {
438446
// handle response
439447
}
440-
441448
} catch (io.codat.lending.models.errors.SDKError e) {
442449
// handle exception
443450
} catch (Exception e) {
@@ -473,6 +480,7 @@ import io.codat.lending.models.shared.Items;
473480
import io.codat.lending.models.shared.Security;
474481
import java.time.LocalDate;
475482
import java.time.OffsetDateTime;
483+
import java.util.Optional;
476484
import static java.util.Map.entry;
477485

478486
public class Application {
@@ -502,7 +510,6 @@ public class Application {
502510
if (res.company().isPresent()) {
503511
// handle response
504512
}
505-
506513
} catch (io.codat.lending.models.errors.SDKError e) {
507514
// handle exception
508515
} catch (Exception e) {
@@ -528,6 +535,7 @@ import io.codat.lending.models.shared.Items;
528535
import io.codat.lending.models.shared.Security;
529536
import java.time.LocalDate;
530537
import java.time.OffsetDateTime;
538+
import java.util.Optional;
531539
import static java.util.Map.entry;
532540

533541
public class Application {
@@ -557,7 +565,6 @@ public class Application {
557565
if (res.company().isPresent()) {
558566
// handle response
559567
}
560-
561568
} catch (io.codat.lending.models.errors.SDKError e) {
562569
// handle exception
563570
} catch (Exception e) {
@@ -592,6 +599,7 @@ import io.codat.lending.models.shared.Items;
592599
import io.codat.lending.models.shared.Security;
593600
import java.time.LocalDate;
594601
import java.time.OffsetDateTime;
602+
import java.util.Optional;
595603
import static java.util.Map.entry;
596604

597605
public class Application {
@@ -620,7 +628,6 @@ public class Application {
620628
if (res.company().isPresent()) {
621629
// handle response
622630
}
623-
624631
} catch (io.codat.lending.models.errors.SDKError e) {
625632
// handle exception
626633
} catch (Exception e) {

lending/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@ Based on:
88
### Generated
99
- [java v0.1.0] lending
1010
### Releases
11-
- [Maven Central v0.1.0] https://central.sonatype.com/artifact/io.codat/lending/0.1.0 - lending
11+
- [Maven Central v0.1.0] https://central.sonatype.com/artifact/io.codat/lending/0.1.0 - lending
12+
13+
## 2024-02-21 14:07:20
14+
### Changes
15+
Based on:
16+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml
17+
- Speakeasy CLI 1.185.0 (2.263.3) https://github.com/speakeasy-api/speakeasy
18+
### Generated
19+
- [java v1.0.0] lending
20+
### Releases
21+
- [Maven Central v1.0.0] https://central.sonatype.com/artifact/io.codat/lending/1.0.0 - lending

lending/USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import io.codat.lending.models.shared.Items;
1111
import io.codat.lending.models.shared.Security;
1212
import java.time.LocalDate;
1313
import java.time.OffsetDateTime;
14+
import java.util.Optional;
1415
import static java.util.Map.entry;
1516

1617
public class Application {
@@ -39,7 +40,6 @@ public class Application {
3940
if (res.company().isPresent()) {
4041
// handle response
4142
}
42-
4343
} catch (io.codat.lending.models.errors.SDKError e) {
4444
// handle exception
4545
} catch (Exception e) {
Lines changed: 55 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
/*
2-
* This file was generated by the Gradle 'init' task.
3-
*
4-
* This generated file contains a sample Java library project to get you started.
5-
* For more details take a look at the 'Building Java and JVM projects' chapter in the Gradle
6-
* User Manual available at https://docs.gradle.org/7.5.1/userguide/building_java_projects.html
7-
*/
81

92
plugins {
103
// Apply the java-library plugin for API and implementation separation.
114
id 'java-library'
125
id 'maven-publish'
136
id 'signing'
7+
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.0'
148
}
159

1610
compileJava.options.encoding = "UTF-8"
@@ -20,10 +14,9 @@ repositories {
2014
// Use Maven Central for resolving dependencies.
2115
mavenCentral()
2216
}
23-
2417
java {
2518
sourceCompatibility = JavaVersion.VERSION_11
26-
targetCompatibility = JavaVersion.VERSION_11
19+
targetCompatibility = JavaVersion.VERSION_11
2720
withSourcesJar()
2821
withJavadocJar()
2922
}
@@ -35,28 +28,67 @@ model {
3528
}
3629

3730
jar {
38-
dependsOn(":$project.name:generatePomFileForMavenPublication")
31+
dependsOn(":generatePomFileForMavenPublication")
32+
archiveBaseName = "lending"
33+
3934
into("META-INF/maven/io.codat/lending") {
40-
from("$buildDir/pom.xml")
35+
from("$buildDir/pom.xml")
4136
}
4237
}
4338

44-
publishing {
45-
repositories {
46-
maven {
47-
name = "OSSRH"
48-
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
49-
credentials {
50-
username = System.getenv("MAVEN_USERNAME")
51-
password = System.getenv("MAVEN_PASSWORD")
52-
}
53-
}
39+
javadoc {
40+
options.encoding = "UTF-8"
41+
42+
if(JavaVersion.current().isJava9Compatible()) {
43+
options.addBooleanOption('html5', true)
5444
}
45+
options.addStringOption('Xdoclint:none', '-quiet')
46+
}
47+
48+
49+
tasks.withType(Javadoc) {
50+
failOnError false
51+
options.addStringOption('Xdoclint:none', '-quiet')
52+
}
53+
group = "io.codat"
54+
version = "1.0.0"
55+
56+
sourcesJar {
57+
archiveBaseName = "lending"
58+
}
59+
60+
javadocJar {
61+
archiveBaseName = "lending"
62+
}
63+
64+
sonatypeCentralUpload {
65+
// This is your Sonatype generated username
66+
username = System.getenv("SONATYPE_USERNAME")
67+
// This is your sonatype generated password
68+
password = System.getenv("SONATYPE_PASSWORD")
69+
70+
// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
71+
archives = files(
72+
"$buildDir/libs/lending-${version}.jar",
73+
"$buildDir/libs/lending-${version}-sources.jar",
74+
"$buildDir/libs/lending-${version}-javadoc.jar"
75+
)
76+
77+
// This is the pom file to upload. This is required by central
78+
pom = file("$buildDir/pom.xml")
79+
80+
// This is your PGP private key. This is required to sign your files
81+
signingKey = System.getenv("SONATYPE_SIGNING_KEY")
82+
// This is your PGP private key passphrase to decrypt your private key
83+
signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE")
84+
}
85+
publishing {
86+
5587
publications {
5688
maven(MavenPublication) {
5789
groupId = 'io.codat'
5890
artifactId = 'lending'
59-
version = '0.1.0'
91+
version = '1.0.0'
6092

6193
from components.java
6294

@@ -99,22 +131,14 @@ if (!project.hasProperty('skip.signing')) {
99131
}
100132
}
101133

102-
javadoc {
103-
options.encoding = "UTF-8"
104-
105-
if(JavaVersion.current().isJava9Compatible()) {
106-
options.addBooleanOption('html5', true)
107-
}
108-
options.addStringOption('Xdoclint:none', '-quiet')
109-
}
110-
111134
dependencies {
112135
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.1'
113136
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.16.1'
114137
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.16.1'
115138
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
116139
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
117140
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
141+
implementation 'com.jayway.jsonpath:json-path:2.9.0'
118142
implementation 'commons-io:commons-io:2.15.1'
119143
}
120144

0 commit comments

Comments
 (0)