Skip to content

Commit

Permalink
rename from sdk to shippoSDK (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkeur7 authored Nov 26, 2024
1 parent 5ec0735 commit 7f0a012
Show file tree
Hide file tree
Showing 567 changed files with 2,626 additions and 2,626 deletions.
1,098 changes: 549 additions & 549 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
java:
version: 1.0.0-beta.3
version: 1.0.0-beta.5
additionalDependencies: []
additionalPlugins:
- id 'groovy'
artifactID: sdk
artifactID: shippoSDK
clientServerStatusCodesAsErrors: true
companyEmail: [email protected]
companyName: Shippo
Expand Down
13 changes: 6 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
speakeasyVersion: 1.447.0
speakeasyVersion: 1.447.2
sources:
my-first-source:
sourceNamespace: my-first-source
sourceRevisionDigest: sha256:51cbf2c29a2a89dc71af0d38a4f3f2f11a81f90d219fb6521a5cee773c80a0be
sourceRevisionDigest: sha256:030038a1fd1ba2c5e90a725e3c516861b549e455b264cca99da98f235bf0b32f
sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5
tags:
- latest
- speakeasy-sdk-regen-1732636848
- "2018-02-08"
targets:
my-first-target:
source: my-first-source
sourceNamespace: my-first-source
sourceRevisionDigest: sha256:51cbf2c29a2a89dc71af0d38a4f3f2f11a81f90d219fb6521a5cee773c80a0be
sourceRevisionDigest: sha256:030038a1fd1ba2c5e90a725e3c516861b549e455b264cca99da98f235bf0b32f
sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5
codeSamplesNamespace: my-first-source-code-samples
codeSamplesRevisionDigest: sha256:1a3fab9eca9f717747d5e4fd4dc0cd75aab7c33b14be7c886ba185a803f64a11
codeSamplesNamespace: my-first-source-java-code-samples
codeSamplesRevisionDigest: sha256:ee4ad78b96b9cbba8da9e8a06576bfa9c5f3498d8b50dcce45185178f64eae09
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -37,5 +36,5 @@ workflow:
gpgPassPhrase: $java_gpg_passphrase
codeSamples:
registry:
location: registry.speakeasyapi.dev/shippo/shippo/my-first-source-code-samples
location: registry.speakeasyapi.dev/shippo/shippo/my-first-source-java-code-samples
blocking: false
2 changes: 1 addition & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ targets:
gpgPassPhrase: $java_gpg_passphrase
codeSamples:
registry:
location: registry.speakeasyapi.dev/shippo/shippo/my-first-source-code-samples
location: registry.speakeasyapi.dev/shippo/shippo/my-first-source-java-code-samples
blocking: false
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LOCAL_SPEC_FILE=${BUILD_DIR}public-api.yaml
check: test

clean:
rm -rf ./build
./gradlew clean

build:
./gradlew build
Expand Down
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.goshippo:sdk:1.0.0-beta.1'
implementation 'com.goshippo:shippoSDK:1.0.0-beta.1'
```

Maven:
```xml
<dependency>
<groupId>com.goshippo</groupId>
<artifactId>sdk</artifactId>
<artifactId>shippoSDK</artifactId>
<version>1.0.0-beta.1</version>
</dependency>
```
Expand Down Expand Up @@ -79,8 +79,9 @@ gradlew.bat publishToMavenLocal -Pskip.signing
```java
package hello.world;

import com.goshippo.sdk.Shippo;
import com.goshippo.sdk.models.operations.ListAddressesResponse;
import com.goshippo.shippoSDK.Shippo;
import com.goshippo.shippoSDK.models.operations.ListAddressesResponse;

import java.lang.Exception;

public class Application {
Expand All @@ -90,7 +91,7 @@ public class Application {
Shippo sdk = Shippo.builder()
.apiKeyHeader("<YOUR_API_KEY_HERE>")
.shippoApiVersion("2018-02-08")
.build();
.build();

ListAddressesResponse res = sdk.addresses().list()
.page(1L)
Expand Down Expand Up @@ -282,11 +283,11 @@ By default, an API error will throw a `models/errors/SDKError` exception. When c
```java
package hello.world;

import com.goshippo.sdk.Shippo;
import com.goshippo.sdk.models.errors.InitiateOauth2SigninCarrierAccountsResponseBody;
import com.goshippo.sdk.models.errors.InitiateOauth2SigninCarrierAccountsResponseResponseBody;
import com.goshippo.sdk.models.errors.InitiateOauth2SigninResponseBody;
import com.goshippo.sdk.models.operations.InitiateOauth2SigninResponse;
import com.goshippo.shippoSDK.Shippo;
import com.goshippo.shippoSDK.models.errors.InitiateOauth2SigninCarrierAccountsResponseBody;
import com.goshippo.shippoSDK.models.errors.InitiateOauth2SigninCarrierAccountsResponseResponseBody;
import com.goshippo.shippoSDK.models.errors.InitiateOauth2SigninResponseBody;
import com.goshippo.shippoSDK.models.operations.InitiateOauth2SigninResponse;
import java.lang.Exception;

public class Application {
Expand Down Expand Up @@ -320,8 +321,8 @@ The default server can also be overridden globally using the `.serverURL(String
```java
package hello.world;

import com.goshippo.sdk.Shippo;
import com.goshippo.sdk.models.operations.ListAddressesResponse;
import com.goshippo.shippoSDK.Shippo;
import com.goshippo.shippoSDK.models.operations.ListAddressesResponse;
import java.lang.Exception;

public class Application {
Expand Down Expand Up @@ -363,8 +364,8 @@ To authenticate with the API the `apiKeyHeader` parameter must be set when initi
```java
package hello.world;

import com.goshippo.sdk.Shippo;
import com.goshippo.sdk.models.operations.ListAddressesResponse;
import com.goshippo.shippoSDK.Shippo;
import com.goshippo.shippoSDK.models.operations.ListAddressesResponse;
import java.lang.Exception;

public class Application {
Expand Down
4 changes: 2 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
```java
package hello.world;

import com.goshippo.sdk.Shippo;
import com.goshippo.sdk.models.operations.ListAddressesResponse;
import com.goshippo.shippoSDK.Shippo;
import com.goshippo.shippoSDK.models.operations.ListAddressesResponse;
import java.lang.Exception;

public class Application {
Expand Down
20 changes: 10 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ model {

jar {
dependsOn(":generatePomFileForMavenPublication")
archiveBaseName = "sdk"
archiveBaseName = "shippoSDK"

into("META-INF/maven/com.goshippo/sdk") {
into("META-INF/maven/com.goshippo/shippoSDK") {
from("$buildDir/pom.xml")
}
}
Expand All @@ -64,14 +64,14 @@ tasks.withType(Javadoc) {
}

group = "com.goshippo"
version = "1.0.0-beta.3"
version = "1.0.0-beta.5"

sourcesJar {
archiveBaseName = "sdk"
archiveBaseName = "shippoSDK"
}

javadocJar {
archiveBaseName = "sdk"
archiveBaseName = "shippoSDK"
}
sonatypeCentralUpload {
// This is your Sonatype generated username
Expand All @@ -81,9 +81,9 @@ sonatypeCentralUpload {

// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
archives = files(
"$buildDir/libs/sdk-${version}.jar",
"$buildDir/libs/sdk-${version}-sources.jar",
"$buildDir/libs/sdk-${version}-javadoc.jar"
"$buildDir/libs/shippoSDK-${version}.jar",
"$buildDir/libs/shippoSDK-${version}-sources.jar",
"$buildDir/libs/shippoSDK-${version}-javadoc.jar"
)

// This is the pom file to upload. This is required by central
Expand All @@ -101,8 +101,8 @@ publishing {
publications {
maven(MavenPublication) {
groupId = 'com.goshippo'
artifactId = 'sdk'
version = '1.0.0-beta.3'
artifactId = 'shippoSDK'
version = '1.0.0-beta.5'

from components.java

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* in the user manual at https://docs.gradle.org/7.5.1/userguide/multi_project_builds.html
*/

rootProject.name = 'sdk'
rootProject.name = 'shippoSDK'
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

package com.goshippo.sdk;
package com.goshippo.shippoSDK;

import com.fasterxml.jackson.core.type.TypeReference;
import com.goshippo.sdk.models.components.Address;
import com.goshippo.sdk.models.components.AddressCreateRequest;
import com.goshippo.sdk.models.components.AddressPaginatedList;
import com.goshippo.sdk.models.errors.SDKError;
import com.goshippo.sdk.models.operations.CreateAddressRequest;
import com.goshippo.sdk.models.operations.CreateAddressRequestBuilder;
import com.goshippo.sdk.models.operations.CreateAddressResponse;
import com.goshippo.sdk.models.operations.GetAddressRequest;
import com.goshippo.sdk.models.operations.GetAddressRequestBuilder;
import com.goshippo.sdk.models.operations.GetAddressResponse;
import com.goshippo.sdk.models.operations.ListAddressesRequest;
import com.goshippo.sdk.models.operations.ListAddressesRequestBuilder;
import com.goshippo.sdk.models.operations.ListAddressesResponse;
import com.goshippo.sdk.models.operations.SDKMethodInterfaces.*;
import com.goshippo.sdk.models.operations.ValidateAddressRequest;
import com.goshippo.sdk.models.operations.ValidateAddressRequestBuilder;
import com.goshippo.sdk.models.operations.ValidateAddressResponse;
import com.goshippo.sdk.utils.HTTPClient;
import com.goshippo.sdk.utils.HTTPRequest;
import com.goshippo.sdk.utils.Hook.AfterErrorContextImpl;
import com.goshippo.sdk.utils.Hook.AfterSuccessContextImpl;
import com.goshippo.sdk.utils.Hook.BeforeRequestContextImpl;
import com.goshippo.sdk.utils.SerializedBody;
import com.goshippo.sdk.utils.Utils.JsonShape;
import com.goshippo.sdk.utils.Utils;
import com.goshippo.shippoSDK.models.components.Address;
import com.goshippo.shippoSDK.models.components.AddressCreateRequest;
import com.goshippo.shippoSDK.models.components.AddressPaginatedList;
import com.goshippo.shippoSDK.models.errors.SDKError;
import com.goshippo.shippoSDK.models.operations.CreateAddressRequest;
import com.goshippo.shippoSDK.models.operations.CreateAddressRequestBuilder;
import com.goshippo.shippoSDK.models.operations.CreateAddressResponse;
import com.goshippo.shippoSDK.models.operations.GetAddressRequest;
import com.goshippo.shippoSDK.models.operations.GetAddressRequestBuilder;
import com.goshippo.shippoSDK.models.operations.GetAddressResponse;
import com.goshippo.shippoSDK.models.operations.ListAddressesRequest;
import com.goshippo.shippoSDK.models.operations.ListAddressesRequestBuilder;
import com.goshippo.shippoSDK.models.operations.ListAddressesResponse;
import com.goshippo.shippoSDK.models.operations.SDKMethodInterfaces.*;
import com.goshippo.shippoSDK.models.operations.ValidateAddressRequest;
import com.goshippo.shippoSDK.models.operations.ValidateAddressRequestBuilder;
import com.goshippo.shippoSDK.models.operations.ValidateAddressResponse;
import com.goshippo.shippoSDK.utils.HTTPClient;
import com.goshippo.shippoSDK.utils.HTTPRequest;
import com.goshippo.shippoSDK.utils.Hook.AfterErrorContextImpl;
import com.goshippo.shippoSDK.utils.Hook.AfterSuccessContextImpl;
import com.goshippo.shippoSDK.utils.Hook.BeforeRequestContextImpl;
import com.goshippo.shippoSDK.utils.SerializedBody;
import com.goshippo.shippoSDK.utils.Utils.JsonShape;
import com.goshippo.shippoSDK.utils.Utils;
import java.io.InputStream;
import java.lang.Exception;
import java.lang.Long;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

package com.goshippo.sdk;
package com.goshippo.shippoSDK;

import com.fasterxml.jackson.core.type.TypeReference;
import com.goshippo.sdk.models.components.Batch;
import com.goshippo.sdk.models.components.BatchCreateRequest;
import com.goshippo.sdk.models.components.BatchShipmentCreateRequest;
import com.goshippo.sdk.models.errors.SDKError;
import com.goshippo.sdk.models.operations.AddShipmentsToBatchRequest;
import com.goshippo.sdk.models.operations.AddShipmentsToBatchRequestBuilder;
import com.goshippo.sdk.models.operations.AddShipmentsToBatchResponse;
import com.goshippo.sdk.models.operations.CreateBatchRequest;
import com.goshippo.sdk.models.operations.CreateBatchRequestBuilder;
import com.goshippo.sdk.models.operations.CreateBatchResponse;
import com.goshippo.sdk.models.operations.GetBatchRequest;
import com.goshippo.sdk.models.operations.GetBatchRequestBuilder;
import com.goshippo.sdk.models.operations.GetBatchResponse;
import com.goshippo.sdk.models.operations.PurchaseBatchRequest;
import com.goshippo.sdk.models.operations.PurchaseBatchRequestBuilder;
import com.goshippo.sdk.models.operations.PurchaseBatchResponse;
import com.goshippo.sdk.models.operations.RemoveShipmentsFromBatchRequest;
import com.goshippo.sdk.models.operations.RemoveShipmentsFromBatchRequestBuilder;
import com.goshippo.sdk.models.operations.RemoveShipmentsFromBatchResponse;
import com.goshippo.sdk.models.operations.SDKMethodInterfaces.*;
import com.goshippo.sdk.utils.HTTPClient;
import com.goshippo.sdk.utils.HTTPRequest;
import com.goshippo.sdk.utils.Hook.AfterErrorContextImpl;
import com.goshippo.sdk.utils.Hook.AfterSuccessContextImpl;
import com.goshippo.sdk.utils.Hook.BeforeRequestContextImpl;
import com.goshippo.sdk.utils.SerializedBody;
import com.goshippo.sdk.utils.Utils.JsonShape;
import com.goshippo.sdk.utils.Utils;
import com.goshippo.shippoSDK.models.components.Batch;
import com.goshippo.shippoSDK.models.components.BatchCreateRequest;
import com.goshippo.shippoSDK.models.components.BatchShipmentCreateRequest;
import com.goshippo.shippoSDK.models.errors.SDKError;
import com.goshippo.shippoSDK.models.operations.AddShipmentsToBatchRequest;
import com.goshippo.shippoSDK.models.operations.AddShipmentsToBatchRequestBuilder;
import com.goshippo.shippoSDK.models.operations.AddShipmentsToBatchResponse;
import com.goshippo.shippoSDK.models.operations.CreateBatchRequest;
import com.goshippo.shippoSDK.models.operations.CreateBatchRequestBuilder;
import com.goshippo.shippoSDK.models.operations.CreateBatchResponse;
import com.goshippo.shippoSDK.models.operations.GetBatchRequest;
import com.goshippo.shippoSDK.models.operations.GetBatchRequestBuilder;
import com.goshippo.shippoSDK.models.operations.GetBatchResponse;
import com.goshippo.shippoSDK.models.operations.PurchaseBatchRequest;
import com.goshippo.shippoSDK.models.operations.PurchaseBatchRequestBuilder;
import com.goshippo.shippoSDK.models.operations.PurchaseBatchResponse;
import com.goshippo.shippoSDK.models.operations.RemoveShipmentsFromBatchRequest;
import com.goshippo.shippoSDK.models.operations.RemoveShipmentsFromBatchRequestBuilder;
import com.goshippo.shippoSDK.models.operations.RemoveShipmentsFromBatchResponse;
import com.goshippo.shippoSDK.models.operations.SDKMethodInterfaces.*;
import com.goshippo.shippoSDK.utils.HTTPClient;
import com.goshippo.shippoSDK.utils.HTTPRequest;
import com.goshippo.shippoSDK.utils.Hook.AfterErrorContextImpl;
import com.goshippo.shippoSDK.utils.Hook.AfterSuccessContextImpl;
import com.goshippo.shippoSDK.utils.Hook.BeforeRequestContextImpl;
import com.goshippo.shippoSDK.utils.SerializedBody;
import com.goshippo.shippoSDK.utils.Utils.JsonShape;
import com.goshippo.shippoSDK.utils.Utils;
import java.io.InputStream;
import java.lang.Exception;
import java.lang.Long;
Expand Down
Loading

0 comments on commit 7f0a012

Please sign in to comment.