Skip to content

Commit

Permalink
[Auto Generated] 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Jan 16, 2024
1 parent 3bb3f34 commit c4ba6b3
Show file tree
Hide file tree
Showing 8 changed files with 5,735 additions and 196 deletions.
5,728 changes: 5,728 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Get started with the Kotlin Development SDK for Fynd Platform

# Usage

1. Add the dependency in your app build.gradle `implementation 'com.github.gofynd:fdk-client-kotlin:1.4.0'` in your app build.gradle
1. Add the dependency in your app build.gradle `implementation 'com.github.gofynd:fdk-client-kotlin:1.4.1'` in your app build.gradle
2. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android {
minSdkVersion 21
targetSdkVersion 31
versionCode 2
versionName "1.4.0"
versionName "1.4.1"
multiDexEnabled true

vectorDrawables.useSupportLibrary = true
Expand Down
50 changes: 1 addition & 49 deletions documentation/platform/WEBHOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -1824,54 +1824,6 @@ Success



#### [SubscriberFailureResponse](#SubscriberFailureResponse)

| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| message | String? | yes | |
| code | String? | yes | |
| stack | String? | yes | |

---




#### [EventConfigs](#EventConfigs)

| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| id | Int? | yes | |
| eventName | String? | yes | |
| eventType | String? | yes | |
| eventCategory | String? | yes | |
| eventSchema | HashMap<String,Any>? | yes | |
| version | String? | yes | |
| displayName | String? | yes | |
| description | String? | yes | |
| createdOn | String? | yes | |
| updatedOn | String? | yes | |
| subscriberEventMapping | [SubscriberEventMapping](#SubscriberEventMapping)? | yes | |

---




#### [SubscriberEventMapping](#SubscriberEventMapping)

| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| id | Int? | yes | |
| eventId | Int? | yes | |
| subscriberId | Int? | yes | |
| createdOn | String? | yes | |

---




#### [SubscriberResponse](#SubscriberResponse)

| Properties | Type | Nullable | Description |
Expand All @@ -1888,7 +1840,7 @@ Success
| createdOn | String? | yes | |
| type | String? | yes | |
| authMeta | [AuthMeta](#AuthMeta)? | yes | |
| eventConfigs | ArrayList<[EventConfigs](#EventConfigs)>? | yes | |
| eventConfigs | ArrayList<[EventConfig](#EventConfig)>? | yes | |

---

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sdk/common/AccessTokenInterceptor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AccessTokenInterceptor(
val builder = original.newBuilder().apply {
header("User-Agent", platformConfig?.userAgent ?: "")
header("Authorization", "Bearer ${platformConfig?.oauthClient?.token?.token}")
header("x-fp-sdk-version", "1.4.0")
header("x-fp-sdk-version", "1.4.1")
header("x-currency-code", platformConfig?.currencyCode ?: "INR")
platformConfig?.locationDetail?.let {
header("x-location-detail", HttpClient.gson.toJson(it))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ApplicationHeaderInterceptor(
header("x-location-detail", HttpClient.gson.toJson(it))
}
header("x-currency-code", currencyCode)
header("x-fp-sdk-version", "1.4.0")
header("x-fp-sdk-version", "1.4.1")
val bearerToken =
Base64.encodeToString(
"$applicationId:$applicationToken".toByteArray(),
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sdk/common/PublicHeaderInterceptor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PublicHeaderInterceptor(
val original = chain.request()

val builder = original.newBuilder()
.header("x-fp-sdk-version", "1.4.0")
.header("x-fp-sdk-version", "1.4.1")
publicConfig?.extraHeaders?.let {
for ((key, value) in it) {
builder.header(key,value)
Expand Down
143 changes: 1 addition & 142 deletions src/main/java/com/sdk/platform/webhook/WebhookModels.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1060,147 +1060,6 @@ data class AuthMeta(



}




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



@SerializedName("message")
var message: String?=null,

@SerializedName("code")
var code: String?=null,

@SerializedName("stack")
var stack: String?=null

): Parcelable {









}




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



@SerializedName("id")
var id: Int?=null,

@SerializedName("event_name")
var eventName: String?=null,

@SerializedName("event_type")
var eventType: String?=null,

@SerializedName("event_category")
var eventCategory: String?=null,

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

@SerializedName("version")
var version: String?=null,

@SerializedName("display_name")
var displayName: String?=null,

@SerializedName("description")
var description: String?=null,

@SerializedName("created_on")
var createdOn: String?=null,

@SerializedName("updated_on")
var updatedOn: String?=null,

@SerializedName("subscriber_event_mapping")
var subscriberEventMapping: SubscriberEventMapping?=null

): Parcelable {

























}




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



@SerializedName("id")
var id: Int?=null,

@SerializedName("event_id")
var eventId: Int?=null,

@SerializedName("subscriber_id")
var subscriberId: Int?=null,

@SerializedName("created_on")
var createdOn: String?=null

): Parcelable {











}


Expand Down Expand Up @@ -1251,7 +1110,7 @@ data class SubscriberResponse(
var authMeta: AuthMeta?=null,

@SerializedName("event_configs")
var eventConfigs: ArrayList<EventConfigs>?=null
var eventConfigs: ArrayList<EventConfig>?=null

): Parcelable {

Expand Down

0 comments on commit c4ba6b3

Please sign in to comment.