Skip to content

Commit

Permalink
[Auto Generated] 1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed May 8, 2024
1 parent fd00635 commit 36e3efd
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 9 deletions.
7 changes: 6 additions & 1 deletion src/main/java/com/sdk/application/share/ShareModels.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -311,6 +314,8 @@ data class UrlInfo(





}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ interface CompanyProfileApiList {
: Response<GetBrandResponseSerializer>

@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<ProfileSuccessResponse>

@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<ProfileSuccessResponse>

@GET ("/service/platform/company-profile/v1.0/company/{company_id}/company-brand")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ProfileSuccessResponse>? {

return if (config.oauthClient.isAccessTokenValid()) {
Expand All @@ -104,7 +104,7 @@ class CompanyProfileDataManagerClass(val config: PlatformConfig, val unauthorize
}


suspend fun createBrand(body: CreateUpdateBrandRequestSerializer)
suspend fun createBrand(body: CreateBrandRequestSerializer)
: Response<ProfileSuccessResponse>? {

return if (config.oauthClient.isAccessTokenValid()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -979,10 +979,10 @@ data class GetBrandResponseSerializer(


/*
Model: CreateUpdateBrandRequestSerializer
Model: CreateBrandRequestSerializer
*/
@Parcelize
data class CreateUpdateBrandRequestSerializer(
data class CreateBrandRequestSerializer(



Expand Down Expand Up @@ -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 {

Expand All @@ -1040,6 +1040,73 @@ data class CreateUpdateBrandRequestSerializer(








}




/*
Model: UpdateBrandRequestSerializer
*/
@Parcelize
data class UpdateBrandRequestSerializer(



@SerializedName("_custom_json")
var customJson: @RawValue HashMap<String,Any>?=null,

@SerializedName("_locale_language")
var localeLanguage: @RawValue HashMap<String,Any>?=null,

@SerializedName("synonyms")
var synonyms: ArrayList<String>?=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 {





















Expand Down

0 comments on commit 36e3efd

Please sign in to comment.