Skip to content

Commit

Permalink
[Auto Generated] 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Sep 8, 2023
1 parent cb80c90 commit 1b54a60
Show file tree
Hide file tree
Showing 4 changed files with 445 additions and 9 deletions.
96 changes: 89 additions & 7 deletions documentation/platform/CATALOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14956,7 +14956,7 @@ Products are the core resource of an application. Products can be associated by



[ProductListingResponse](#ProductListingResponse)
[RawProductListingResponse](#RawProductListingResponse)

The Product object. See example below or refer `ApplicationProductListingResponseDatabasePowered` for details.

Expand Down Expand Up @@ -15106,12 +15106,10 @@ The Product object. See example below or refer `ApplicationProductListingRespons
"uid": 13
},
"images": [
{
"aspect_ratio": "16:25",
"aspect_ratio_f": 0.64,
"url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png",
"secure_url": "https://hdn-1.addsale.com/x0/products/pictures/item/free/135x0/dcizgsG_Y-Tv-Set.png"
}
"https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/8hn0-cPlN0-1.jpg",
"https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/1ODGjR9NLY-2.jpg",
"https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/mJqqfEQilY-3.jpg",
"https://cdn.fynd.com/v2/falling-surf-7c8bb8/fyprod/wrkr/products/pictures/item/free/original/5050407896640/htM1r1aHwa-4.jpg"
],
"price": {
"marked": {
Expand Down Expand Up @@ -19009,6 +19007,90 @@ Returns a success response



#### [RawProduct](#RawProduct)

| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| customJson | HashMap<String,Any>? | yes | |
| allCompanyIds | ArrayList<Int>? | yes | |
| allIdentifiers | ArrayList<String>? | yes | |
| allSizes | ArrayList<HashMap<String,Any>>? | yes | |
| attributes | HashMap<String,Any>? | yes | |
| brand | [Brand](#Brand)? | yes | |
| brandUid | Int? | yes | |
| category | HashMap<String,Any>? | yes | |
| categorySlug | String? | yes | |
| categoryUid | Int? | yes | |
| color | String? | yes | |
| companyId | Int? | yes | |
| countryOfOrigin | String? | yes | |
| createdBy | HashMap<String,Any>? | yes | |
| createdOn | String? | yes | |
| currency | String? | yes | |
| customOrder | HashMap<String,Any>? | yes | |
| departments | ArrayList<Int>? | yes | |
| description | String? | yes | |
| highlights | ArrayList<String>? | yes | |
| hsnCode | String? | yes | |
| id | String? | yes | |
| imageNature | String? | yes | |
| images | ArrayList<String>? | yes | |
| isActive | Boolean? | yes | |
| isDependent | Boolean? | yes | |
| isExpirable | Boolean? | yes | |
| isImageLessProduct | Boolean? | yes | |
| isPhysical | Boolean? | yes | |
| isSet | Boolean? | yes | |
| itemCode | String? | yes | |
| itemType | String? | yes | |
| l3Mapping | ArrayList<String>? | yes | |
| media | ArrayList<[Media](#Media)>? | yes | |
| modifiedBy | HashMap<String,Any>? | yes | |
| modifiedOn | String? | yes | |
| moq | HashMap<String,Any>? | yes | |
| multiSize | Boolean? | yes | |
| name | String? | yes | |
| netQuantity | [NetQuantityResponse](#NetQuantityResponse)? | yes | |
| noOfBoxes | Int? | yes | |
| pending | String? | yes | |
| primaryColor | String? | yes | |
| productGroupTag | ArrayList<String>? | yes | |
| productPublish | [ProductPublished](#ProductPublished)? | yes | |
| returnConfig | [ReturnConfigResponse](#ReturnConfigResponse)? | yes | |
| shortDescription | String? | yes | |
| sizeGuide | String? | yes | |
| sizes | ArrayList<HashMap<String,Any>>? | yes | |
| slug | String? | yes | |
| stage | String? | yes | |
| tags | ArrayList<String>? | yes | |
| taxIdentifier | HashMap<String,Any>? | yes | |
| teaserTag | HashMap<String,Any>? | yes | |
| templateTag | String? | yes | |
| trader | ArrayList<[Trader](#Trader)>? | yes | |
| uid | Int? | yes | |
| variantGroup | HashMap<String,Any>? | yes | |
| variantMedia | HashMap<String,Any>? | yes | |
| variants | HashMap<String,Any>? | yes | |
| verifiedBy | [VerifiedBy](#VerifiedBy)? | yes | |
| verifiedOn | String? | yes | |

---




#### [RawProductListingResponse](#RawProductListingResponse)

| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| items | ArrayList<[RawProduct](#RawProduct)>? | yes | |
| page | [Page](#Page)? | yes | |

---




#### [ReturnConfig](#ReturnConfig)

| Properties | Type | Nullable | Description |
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sdk/platform/catalog/CatalogApiList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ interface CatalogApiList {

@GET ("/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/raw-products/")
suspend fun getAppProducts(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Query("brand_ids") brandIds: ArrayList<Int>?, @Query("category_ids") categoryIds: ArrayList<Int>?, @Query("department_ids") departmentIds: ArrayList<Int>?, @Query("tags") tags: ArrayList<String>?, @Query("item_ids") itemIds: ArrayList<Int>?, @Query("page_no") pageNo: Int?, @Query("page_size") pageSize: Int?, @Query("q") q: String?)
: Response<ProductListingResponse>
: Response<RawProductListingResponse>

@GET ("/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/inventory/")
suspend fun getAppInventory(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Query("item_ids") itemIds: ArrayList<Int>?, @Query("store_ids") storeIds: ArrayList<Int>?, @Query("brand_ids") brandIds: ArrayList<Int>?, @Query("seller_identifiers") sellerIdentifiers: ArrayList<String>?, @Query("timestamp") timestamp: String?, @Query("page_size") pageSize: Int?, @Query("page_id") pageId: String?)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ inner class ApplicationClient(val applicationId:String,val config: PlatformConfi


suspend fun getAppProducts(brandIds: ArrayList<Int>?=null, categoryIds: ArrayList<Int>?=null, departmentIds: ArrayList<Int>?=null, tags: ArrayList<String>?=null, itemIds: ArrayList<Int>?=null, pageNo: Int?=null, pageSize: Int?=null, q: String?=null)
: Response<ProductListingResponse>? {
: Response<RawProductListingResponse>? {
return if (config.oauthClient.isAccessTokenValid()) {
catalogApiList?.getAppProducts(companyId = config.companyId , applicationId = applicationId , brandIds = brandIds, categoryIds = categoryIds, departmentIds = departmentIds, tags = tags, itemIds = itemIds, pageNo = pageNo, pageSize = pageSize, q = q )
} else {
Expand Down
Loading

0 comments on commit 1b54a60

Please sign in to comment.