From 36e3efd0421bd38b94505822ebe4dc7b5639258a Mon Sep 17 00:00:00 2001 From: Jigar Dafda Date: Wed, 8 May 2024 20:48:43 +0000 Subject: [PATCH] [Auto Generated] 1.4.5 --- .../com/sdk/application/share/ShareModels.kt | 7 +- .../companyprofile/CompanyProfileApiList.kt | 4 +- .../CompanyProfileDataManagerClass.kt | 4 +- .../companyprofile/CompanyProfileModels.kt | 75 ++++++++++++++++++- 4 files changed, 81 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/sdk/application/share/ShareModels.kt b/src/main/java/com/sdk/application/share/ShareModels.kt index e120e43c..64747a55 100644 --- a/src/main/java/com/sdk/application/share/ShareModels.kt +++ b/src/main/java/com/sdk/application/share/ShareModels.kt @@ -301,7 +301,10 @@ data class UrlInfo( var original: String?=null, @SerializedName("hash") - var hash: String?=null + var hash: String?=null, + + @SerializedName("short_url") + var shortUrl: String?=null ): Parcelable { @@ -311,6 +314,8 @@ data class UrlInfo( + + } diff --git a/src/main/java/com/sdk/platform/companyprofile/CompanyProfileApiList.kt b/src/main/java/com/sdk/platform/companyprofile/CompanyProfileApiList.kt index 09009786..b9120c6e 100644 --- a/src/main/java/com/sdk/platform/companyprofile/CompanyProfileApiList.kt +++ b/src/main/java/com/sdk/platform/companyprofile/CompanyProfileApiList.kt @@ -25,11 +25,11 @@ interface CompanyProfileApiList { : Response @PUT ("/service/platform/company-profile/v1.0/company/{company_id}/brand/{brand_id}") - suspend fun editBrand(@Path("company_id") companyId: String, @Path("brand_id") brandId: String,@Body body: CreateUpdateBrandRequestSerializer) + suspend fun editBrand(@Path("company_id") companyId: String, @Path("brand_id") brandId: String,@Body body: UpdateBrandRequestSerializer) : Response @POST ("/service/platform/company-profile/v1.0/company/{company_id}/brand/") - suspend fun createBrand(@Path("company_id") companyId: String,@Body body: CreateUpdateBrandRequestSerializer) + suspend fun createBrand(@Path("company_id") companyId: String,@Body body: CreateBrandRequestSerializer) : Response @GET ("/service/platform/company-profile/v1.0/company/{company_id}/company-brand") diff --git a/src/main/java/com/sdk/platform/companyprofile/CompanyProfileDataManagerClass.kt b/src/main/java/com/sdk/platform/companyprofile/CompanyProfileDataManagerClass.kt index 7398ec7a..206bc16b 100644 --- a/src/main/java/com/sdk/platform/companyprofile/CompanyProfileDataManagerClass.kt +++ b/src/main/java/com/sdk/platform/companyprofile/CompanyProfileDataManagerClass.kt @@ -92,7 +92,7 @@ class CompanyProfileDataManagerClass(val config: PlatformConfig, val unauthorize } - suspend fun editBrand(brandId: String,body: CreateUpdateBrandRequestSerializer) + suspend fun editBrand(brandId: String,body: UpdateBrandRequestSerializer) : Response? { return if (config.oauthClient.isAccessTokenValid()) { @@ -104,7 +104,7 @@ class CompanyProfileDataManagerClass(val config: PlatformConfig, val unauthorize } - suspend fun createBrand(body: CreateUpdateBrandRequestSerializer) + suspend fun createBrand(body: CreateBrandRequestSerializer) : Response? { return if (config.oauthClient.isAccessTokenValid()) { diff --git a/src/main/java/com/sdk/platform/companyprofile/CompanyProfileModels.kt b/src/main/java/com/sdk/platform/companyprofile/CompanyProfileModels.kt index 2919593a..7609f63c 100644 --- a/src/main/java/com/sdk/platform/companyprofile/CompanyProfileModels.kt +++ b/src/main/java/com/sdk/platform/companyprofile/CompanyProfileModels.kt @@ -979,10 +979,10 @@ data class GetBrandResponseSerializer( /* - Model: CreateUpdateBrandRequestSerializer + Model: CreateBrandRequestSerializer */ @Parcelize -data class CreateUpdateBrandRequestSerializer( +data class CreateBrandRequestSerializer( @@ -1016,8 +1016,8 @@ data class CreateUpdateBrandRequestSerializer( @SerializedName("name") var name: String?=null, - @SerializedName("slug") - var slug: String?=null + @SerializedName("slug_key") + var slugKey: String?=null ): Parcelable { @@ -1040,6 +1040,73 @@ data class CreateUpdateBrandRequestSerializer( + + + + + +} + + + + +/* + Model: UpdateBrandRequestSerializer +*/ +@Parcelize +data class UpdateBrandRequestSerializer( + + + + @SerializedName("_custom_json") + var customJson: @RawValue HashMap?=null, + + @SerializedName("_locale_language") + var localeLanguage: @RawValue HashMap?=null, + + @SerializedName("synonyms") + var synonyms: ArrayList?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("description") + var description: String?=null, + + @SerializedName("logo") + var logo: String?=null, + + @SerializedName("brand_tier") + var brandTier: String?=null, + + @SerializedName("uid") + var uid: Int?=null, + + @SerializedName("banner") + var banner: BrandBannerSerializer?=null, + + @SerializedName("name") + var name: String?=null + +): Parcelable { + + + + + + + + + + + + + + + + + +