diff --git a/documentation/platform/CATALOG.md b/documentation/platform/CATALOG.md index bd6bac3f..27c52fc0 100644 --- a/documentation/platform/CATALOG.md +++ b/documentation/platform/CATALOG.md @@ -14336,7 +14336,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. @@ -14486,12 +14486,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": { @@ -18338,6 +18336,90 @@ Returns a success response + #### [RawProduct](#RawProduct) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | customJson | HashMap? | yes | | + | allCompanyIds | ArrayList? | yes | | + | allIdentifiers | ArrayList? | yes | | + | allSizes | ArrayList>? | yes | | + | attributes | HashMap? | yes | | + | brand | [Brand](#Brand)? | yes | | + | brandUid | Integer? | yes | | + | category | HashMap? | yes | | + | categorySlug | String? | yes | | + | categoryUid | Integer? | yes | | + | color | String? | yes | | + | companyId | Integer? | yes | | + | countryOfOrigin | String? | yes | | + | createdBy | HashMap? | yes | | + | createdOn | String? | yes | | + | currency | String? | yes | | + | customOrder | HashMap? | yes | | + | departments | ArrayList? | yes | | + | description | String? | yes | | + | highlights | ArrayList? | yes | | + | hsnCode | String? | yes | | + | id | String? | yes | | + | imageNature | String? | yes | | + | images | ArrayList? | 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? | yes | | + | media | ArrayList<[Media](#Media)>? | yes | | + | modifiedBy | HashMap? | yes | | + | modifiedOn | String? | yes | | + | moq | HashMap? | yes | | + | multiSize | Boolean? | yes | | + | name | String? | yes | | + | netQuantity | [NetQuantityResponse](#NetQuantityResponse)? | yes | | + | noOfBoxes | Integer? | yes | | + | pending | String? | yes | | + | primaryColor | String? | yes | | + | productGroupTag | ArrayList? | yes | | + | productPublish | [ProductPublished](#ProductPublished)? | yes | | + | returnConfig | [ReturnConfigResponse](#ReturnConfigResponse)? | yes | | + | shortDescription | String? | yes | | + | sizeGuide | String? | yes | | + | sizes | ArrayList>? | yes | | + | slug | String? | yes | | + | stage | String? | yes | | + | tags | ArrayList? | yes | | + | taxIdentifier | HashMap? | yes | | + | teaserTag | HashMap? | yes | | + | templateTag | String? | yes | | + | trader | ArrayList<[Trader](#Trader)>? | yes | | + | uid | Integer? | yes | | + | variantGroup | HashMap? | yes | | + | variantMedia | HashMap? | yes | | + | variants | HashMap? | 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 | diff --git a/src/main/java/com/sdk/platform/catalog/CatalogPlatformApiList.java b/src/main/java/com/sdk/platform/catalog/CatalogPlatformApiList.java index f295843d..64886eed 100644 --- a/src/main/java/com/sdk/platform/catalog/CatalogPlatformApiList.java +++ b/src/main/java/com/sdk/platform/catalog/CatalogPlatformApiList.java @@ -1863,7 +1863,7 @@ interface CatalogPlatformApiList { @GET ("/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/raw-products/") - Call getAppProducts(@Path("company_id") String companyId , @Path("application_id") String applicationId , @Query("brand_ids") List brandIds , @Query("category_ids") List categoryIds , @Query("department_ids") List departmentIds , @Query("tags") List tags , @Query("item_ids") List itemIds , @Query("page_no") Integer pageNo , @Query("page_size") Integer pageSize , @Query("q") String q ); + Call getAppProducts(@Path("company_id") String companyId , @Path("application_id") String applicationId , @Query("brand_ids") List brandIds , @Query("category_ids") List categoryIds , @Query("department_ids") List departmentIds , @Query("tags") List tags , @Query("item_ids") List itemIds , @Query("page_no") Integer pageNo , @Query("page_size") Integer pageSize , @Query("q") String q ); diff --git a/src/main/java/com/sdk/platform/catalog/CatalogPlatformModels.java b/src/main/java/com/sdk/platform/catalog/CatalogPlatformModels.java index 0c20cf3e..80b1c8c9 100644 --- a/src/main/java/com/sdk/platform/catalog/CatalogPlatformModels.java +++ b/src/main/java/com/sdk/platform/catalog/CatalogPlatformModels.java @@ -8181,6 +8181,422 @@ public static class CustomOrder{ +} + + +/* + Model: RawProduct +*/ +@AllArgsConstructor +@NoArgsConstructor +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class RawProduct{ + + + + + @JsonProperty("_custom_json") + private Object customJson; + + + + + @JsonProperty("all_company_ids") + private List allCompanyIds; + + + + + @JsonProperty("all_identifiers") + private List allIdentifiers; + + + + + @JsonProperty("all_sizes") + private List allSizes; + + + + + @JsonProperty("attributes") + private Object attributes; + + + + + @JsonProperty("brand") + private Brand brand; + + + + + @JsonProperty("brand_uid") + private Integer brandUid; + + + + + @JsonProperty("category") + private Object category; + + + + + @JsonProperty("category_slug") + private String categorySlug; + + + + + @JsonProperty("category_uid") + private Integer categoryUid; + + + + + @JsonProperty("color") + private String color; + + + + + @JsonProperty("company_id") + private Integer companyId; + + + + + @JsonProperty("country_of_origin") + private String countryOfOrigin; + + + + + @JsonProperty("created_by") + private Object createdBy; + + + + + @JsonProperty("created_on") + private String createdOn; + + + + + @JsonProperty("currency") + private String currency; + + + + + @JsonProperty("custom_order") + private Object customOrder; + + + + + @JsonProperty("departments") + private List departments; + + + + + @JsonProperty("description") + private String description; + + + + + @JsonProperty("highlights") + private List highlights; + + + + + @JsonProperty("hsn_code") + private String hsnCode; + + + + + @JsonProperty("id") + private String id; + + + + + @JsonProperty("image_nature") + private String imageNature; + + + + + @JsonProperty("images") + private List images; + + + + + @JsonProperty("is_active") + private Boolean isActive; + + + + + @JsonProperty("is_dependent") + private Boolean isDependent; + + + + + @JsonProperty("is_expirable") + private Boolean isExpirable; + + + + + @JsonProperty("is_image_less_product") + private Boolean isImageLessProduct; + + + + + @JsonProperty("is_physical") + private Boolean isPhysical; + + + + + @JsonProperty("is_set") + private Boolean isSet; + + + + + @JsonProperty("item_code") + private String itemCode; + + + + + @JsonProperty("item_type") + private String itemType; + + + + + @JsonProperty("l3_mapping") + private List l3Mapping; + + + + + @JsonProperty("media") + private List media; + + + + + @JsonProperty("modified_by") + private Object modifiedBy; + + + + + @JsonProperty("modified_on") + private String modifiedOn; + + + + + @JsonProperty("moq") + private Object moq; + + + + + @JsonProperty("multi_size") + private Boolean multiSize; + + + + + @JsonProperty("name") + private String name; + + + + + @JsonProperty("net_quantity") + private NetQuantityResponse netQuantity; + + + + + @JsonProperty("no_of_boxes") + private Integer noOfBoxes; + + + + + @JsonProperty("pending") + private String pending; + + + + + @JsonProperty("primary_color") + private String primaryColor; + + + + + @JsonProperty("product_group_tag") + private List productGroupTag; + + + + + @JsonProperty("product_publish") + private ProductPublished productPublish; + + + + + @JsonProperty("return_config") + private ReturnConfigResponse returnConfig; + + + + + @JsonProperty("short_description") + private String shortDescription; + + + + + @JsonProperty("size_guide") + private String sizeGuide; + + + + + @JsonProperty("sizes") + private List sizes; + + + + + @JsonProperty("slug") + private String slug; + + + + + @JsonProperty("stage") + private String stage; + + + + + @JsonProperty("tags") + private List tags; + + + + + @JsonProperty("tax_identifier") + private Object taxIdentifier; + + + + + @JsonProperty("teaser_tag") + private Object teaserTag; + + + + + @JsonProperty("template_tag") + private String templateTag; + + + + + @JsonProperty("trader") + private List trader; + + + + + @JsonProperty("uid") + private Integer uid; + + + + + @JsonProperty("variant_group") + private Object variantGroup; + + + + + @JsonProperty("variant_media") + private Object variantMedia; + + + + + @JsonProperty("variants") + private Object variants; + + + + + @JsonProperty("verified_by") + private VerifiedBy verifiedBy; + + + + + @JsonProperty("verified_on") + private String verifiedOn; + + + +} + + +/* + Model: RawProductListingResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class RawProductListingResponse{ + + + + + @JsonProperty("items") + private List items; + + + + + @JsonProperty("page") + private Page page; + + + } diff --git a/src/main/java/com/sdk/platform/catalog/CatalogPlatformService.java b/src/main/java/com/sdk/platform/catalog/CatalogPlatformService.java index 8669988f..2d1c38b1 100644 --- a/src/main/java/com/sdk/platform/catalog/CatalogPlatformService.java +++ b/src/main/java/com/sdk/platform/catalog/CatalogPlatformService.java @@ -5942,9 +5942,9 @@ public CatalogPlatformModels.ProductDetail getProductDetailBySlug(String slug ) - public CatalogPlatformModels.ProductListingResponse getAppProducts(List brandIds , List categoryIds , List departmentIds , List tags , List itemIds , Integer pageNo , Integer pageSize , String q ) throws FDKServerResponseError, FDKException { + public CatalogPlatformModels.RawProductListingResponse getAppProducts(List brandIds , List categoryIds , List departmentIds , List tags , List itemIds , Integer pageNo , Integer pageSize , String q ) throws FDKServerResponseError, FDKException { if (this.platformConfig.getPlatformOauthClient().isAccessTokenValid()) { - Response response = null; + Response response = null; try { response = catalogPlatformApiList.getAppProducts(this.companyId , this.applicationId ,brandIds , categoryIds , departmentIds , tags , itemIds , pageNo , pageSize , q ).execute(); if (!response.isSuccessful()) {