Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit 55fd46e

Browse files
authored
Release/2.1.0 (#11)
* SDK 2.1 RC (#4) * From connect-api-specification: [Java] Update java sdk version. * From connect-api-specification: [Java] Update java sdk version. * From connect-api-specification: [Java] Fix the authentication in ApiClient.mustache. * Add tests and CI and trigger CI build. * Add gradle-wrapper.jar * Add cache to travis settings, and skip signing for regular build. * From connect-api-specification: fix incorrect types for v1Item.available_online and v1Variation.ordinal (#46) (#5) * add beta instructions to readme (#6) * re-encrypt account info. * From connect-api-specification: Feature/add catalog api (#50) * Bump up version number to 3.0.0 * Remove authorization from individual API call. * [Python] Fix a typo preventing auth_setting been generated. * [Python] Update the sample code in README template. * [CSharp] Update the templates to accommodate API authorization change. * Update the version number to 2.1.0 * Merge in V1 apis. * Update push script to commit file removal. * Reorginzed V2 APIs. * [Python] fix the deploy script: was deleting wrong folder. * Update README templates. * Rename V1Location to V1Locations. * [Java] Update java sdk version. * [Java] Fix the authentication in ApiClient.mustache. * Add Catalog endpoint definition * Remove CreateOrderRequest endpoint from the spec * Fix parameters in v2/catalog/object/{id} GET/DELETE * Add the feedback slack channel to README. * Travis ci/feature/add catalog api (#10) * From connect-api-specification: Add Catalog endpoint definition * From connect-api-specification: Add Catalog endpoint definition * Fix the compiling error. * From connect-api-specification: Remove CreateOrderRequest endpoint from the spec * From connect-api-specification: turn off gzip feature on java sdk which is cause catalog APIs problems. (#47) * From connect-api-specification: Remove CreateOrderRequest endpoint from the spec * From connect-api-specification: Fix parameters in v2/catalog/object/{id} GET/DELETE * Add a test for the Catalog API (#9) * From connect-api-specification: Add the feedback slack channel to README. * Travis ci/feature/add catalog api (#12) * From connect-api-specification: Add Catalog endpoint definition * From connect-api-specification: Add Catalog endpoint definition * Fix the compiling error. * From connect-api-specification: Remove CreateOrderRequest endpoint from the spec * From connect-api-specification: turn off gzip feature on java sdk which is cause catalog APIs problems. (#47) * From connect-api-specification: Remove CreateOrderRequest endpoint from the spec * From connect-api-specification: Fix parameters in v2/catalog/object/{id} GET/DELETE * Add a test for the Catalog API (#9) * From connect-api-specification: Add the feedback slack channel to README.
1 parent fc686ad commit 55fd46e

File tree

241 files changed

+32928
-1626
lines changed

Some content is hidden

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

241 files changed

+32928
-1626
lines changed

Diff for: .travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: java
2+
jdk:
3+
- oraclejdk8
4+
before_cache:
5+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
6+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
7+
cache:
8+
directories:
9+
- $HOME/.gradle/caches/
10+
- $HOME/.gradle/wrapper/
11+
before_install:
12+
- openssl aes-256-cbc -K $encrypted_6342d3141ac0_key -iv $encrypted_6342d3141ac0_iv -in ./travis-ci/accounts.enc -out ./travis-ci/accounts.json -d
13+
- chmod a+x ./gradlew
14+
script:
15+
- ./gradlew test

Diff for: README.md

+204-28
Large diffs are not rendered by default.

Diff for: build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.squareup'
5-
version = '2.0.2'
5+
version = '2.1.0'
66

77
buildscript {
88
repositories {
@@ -131,4 +131,4 @@ dependencies {
131131
testCompile "junit:junit:$junit_version"
132132
}
133133

134-
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
134+
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')

Diff for: docs/BatchDeleteCatalogObjectsRequest.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# BatchDeleteCatalogObjectsRequest
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**objectIds** | **List<String>** | The IDs of the [CatalogObject](#type-catalogobject)s to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a [CatalogItem](#type-catalogitem) will delete its [CatalogItemVariation](#type-catalogitemvariation)s). | [optional]
8+
9+
10+

Diff for: docs/BatchDeleteCatalogObjectsResponse.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# BatchDeleteCatalogObjectsResponse
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**errors** | [**List<Error>**](Error.md) | The set of [Error](#type-error)s encountered. | [optional]
8+
**deletedObjectIds** | **List<String>** | The IDs of all [CatalogObject](#type-catalogobject)s deleted by this request. | [optional]
9+
**deletedAt** | **String** | The database [timestamp](#workingwithdates) of this deletion in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". | [optional]
10+
11+
12+

Diff for: docs/BatchRetrieveCatalogObjectsRequest.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# BatchRetrieveCatalogObjectsRequest
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**objectIds** | **List<String>** | The IDs of the [CatalogObject](#type-catalogobject)s to be retrieved. |
8+
**includeRelatedObjects** | **Boolean** | If `true`, the response will include additional objects that are related to the requested objects, as follows: If the `objects` field of the response contains a [CatalogItem](#type-catalogitem), its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es, and [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the `related_objects` field of the response. If the `objects` field of the response contains a [CatalogItemVariation](#type-catalogitemvariation), its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of the response. | [optional]
9+
10+
11+

Diff for: docs/BatchRetrieveCatalogObjectsResponse.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# BatchRetrieveCatalogObjectsResponse
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**errors** | [**List<Error>**](Error.md) | The set of [Error](#type-error)s encountered. | [optional]
8+
**objects** | [**List<CatalogObject>**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s returned. | [optional]
9+
**relatedObjects** | [**List<CatalogObject>**](CatalogObject.md) | A list of [CatalogObject](#type-catalogobject)s referenced by the object in the `objects` field. | [optional]
10+
11+
12+

Diff for: docs/BatchUpsertCatalogObjectsRequest.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# BatchUpsertCatalogObjectsRequest
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**idempotencyKey** | **String** | A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID). If you're unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects. See [Idempotency keys](#idempotencykeys) for more information. |
8+
**batches** | [**List<CatalogObjectBatch>**](CatalogObjectBatch.md) | A batch of [CatalogObject](#type-catalogobject)s to be inserted/updated atomically. The objects within a batch will be inserted in an all-or-nothing fashion, i.e., if an error occurs attempting to insert or update an object within a batch, the entire batch will be rejected. However, an error in one batch will not affect other batches within the same request. For each object, its `updated_at` field is ignored and replaced with a current [timestamp](#workingwithdates), and its `is_deleted` field must not be set to `true`. To modify an existing object, supply its ID. To create a new object, use an ID starting with `#`. These IDs may be used to create relationships between an object and attributes of other objects that reference it. For example, you can create a [CatalogItem](#type-catalogitem) with ID `#ABC` and a [CatalogItemVariation](#type-catalogitemvariation) with its `item_id` attribute set to `#ABC` in order to associate the [CatalogItemVariation](#type-catalogitemvariation) with its parent [CatalogItem](#type-catalogitem). Any `#`-prefixed IDs are valid only within a single atomic batch, and will be replaced by server-generated IDs. Each batch may contain up to 1,000 objects. The total number of objects across all batches for a single request may not exceed 10,000. If either of these limits is violated, an error will be returned and no objects will be inserted or updated. | [optional]
9+
10+
11+

Diff for: docs/BatchUpsertCatalogObjectsResponse.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# BatchUpsertCatalogObjectsResponse
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**errors** | [**List<Error>**](Error.md) | The set of [Error](#type-error)s encountered. | [optional]
8+
**objects** | [**List<CatalogObject>**](CatalogObject.md) | The created [CatalogObject](#type-catalogobject)s | [optional]
9+
**updatedAt** | **String** | The database [timestamp](#workingwithdates) of this update in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\". | [optional]
10+
**idMappings** | [**List<CatalogIdMapping>**](CatalogIdMapping.md) | The mapping between client and server IDs for this Upsert. | [optional]
11+
12+
13+

0 commit comments

Comments
 (0)