From ae12163c1369eab7020fa33e7f830d8f54952f90 Mon Sep 17 00:00:00 2001 From: Jigar Dafda Date: Fri, 3 May 2024 10:37:03 +0000 Subject: [PATCH] [Auto Generated] 1.4.3 --- CHANGELOG.md | 2 + README.md | 7 - .../com/sdk/application/order/OrderApiList.kt | 5 - .../order/OrderDataManagerClass.kt | 11 - .../java/com/sdk/platform/PlatformClient.kt | 5 - .../platform/inventory/InventoryApiList.kt | 59 - .../inventory/InventoryDataManagerClass.kt | 207 - .../sdk/platform/inventory/InventoryModels.kt | 3359 ----------------- .../com/sdk/platform/order/OrderApiList.kt | 4 - .../platform/order/OrderDataManagerClass.kt | 13 - .../com/sdk/platform/order/OrderModels.kt | 12 +- .../com/sdk/platform/payment/PaymentModels.kt | 5 + .../com/sdk/platform/share/ShareModels.kt | 7 +- .../com/sdk/platform/theme/ThemeApiList.kt | 28 - .../platform/theme/ThemeDataManagerClass.kt | 77 - 15 files changed, 24 insertions(+), 3777 deletions(-) delete mode 100644 src/main/java/com/sdk/platform/inventory/InventoryApiList.kt delete mode 100644 src/main/java/com/sdk/platform/inventory/InventoryDataManagerClass.kt delete mode 100644 src/main/java/com/sdk/platform/inventory/InventoryModels.kt diff --git a/CHANGELOG.md b/CHANGELOG.md index 33a97e4a..f3c42fd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ + + # CHANGE LOG (1.4.3) - fp-v1.9.2 ## Application Client diff --git a/README.md b/README.md index 9dfbc683..98bbd4bf 100644 --- a/README.md +++ b/README.md @@ -76,10 +76,3 @@ Get started with the Kotlin Development SDK for Fynd Platform } ``` - -### Documentation - -- [Application Front](documentation/application/README.md) -- [Platform Front](documentation/platform/README.md) -- [Public Front](documentation/public/README.md) - diff --git a/src/main/java/com/sdk/application/order/OrderApiList.kt b/src/main/java/com/sdk/application/order/OrderApiList.kt index 347501d9..44422921 100644 --- a/src/main/java/com/sdk/application/order/OrderApiList.kt +++ b/src/main/java/com/sdk/application/order/OrderApiList.kt @@ -20,11 +20,6 @@ interface OrderApiList { : Response - @GET - suspend fun getPosOrderById(@Url url1: String? ) - : Response - - @GET suspend fun getShipmentById(@Url url1: String? , @Query("allow_inactive") allowInactive: Boolean?) : Response diff --git a/src/main/java/com/sdk/application/order/OrderDataManagerClass.kt b/src/main/java/com/sdk/application/order/OrderDataManagerClass.kt index 8b45f3f6..709cf05d 100644 --- a/src/main/java/com/sdk/application/order/OrderDataManagerClass.kt +++ b/src/main/java/com/sdk/application/order/OrderDataManagerClass.kt @@ -23,8 +23,6 @@ class OrderDataManagerClass(val config: ApplicationConfig, val unauthorizedActio _relativeUrls["getOrderById"] = "/service/application/order/v1.0/orders/{order_id}".substring(1) - _relativeUrls["getPosOrderById"] = "/service/application/order/v1.0/orders/pos-order/{order_id}".substring(1) - _relativeUrls["getShipmentById"] = "/service/application/order/v1.0/orders/shipments/{shipment_id}".substring(1) _relativeUrls["getInvoiceByShipmentId"] = "/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice".substring(1) @@ -94,15 +92,6 @@ class OrderDataManagerClass(val config: ApplicationConfig, val unauthorizedActio - suspend fun getPosOrderById(orderId: String): Response? { - var fullUrl : String? = _relativeUrls["getPosOrderById"] - - fullUrl = fullUrl?.replace("{" + "order_id" +"}",orderId.toString()) - - return orderApiList?.getPosOrderById(fullUrl )} - - - suspend fun getShipmentById(shipmentId: String, allowInactive: Boolean?=null): Response? { var fullUrl : String? = _relativeUrls["getShipmentById"] diff --git a/src/main/java/com/sdk/platform/PlatformClient.kt b/src/main/java/com/sdk/platform/PlatformClient.kt index db27e6c3..85abe557 100644 --- a/src/main/java/com/sdk/platform/PlatformClient.kt +++ b/src/main/java/com/sdk/platform/PlatformClient.kt @@ -16,7 +16,6 @@ import com.sdk.platform.content.* import com.sdk.platform.discount.* import com.sdk.platform.filestorage.* import com.sdk.platform.finance.* -import com.sdk.platform.inventory.* import com.sdk.platform.lead.* import com.sdk.platform.serviceability.* import com.sdk.platform.order.* @@ -68,8 +67,6 @@ class PlatformClient(val config:PlatformConfig, val unauthorizedAction: ((url: S val finance by lazy { FinanceDataManagerClass(config, unauthorizedAction)} - val inventory by lazy { InventoryDataManagerClass(config, unauthorizedAction)} - val lead by lazy { LeadDataManagerClass(config, unauthorizedAction)} val serviceability by lazy { ServiceabilityDataManagerClass(config, unauthorizedAction)} @@ -120,8 +117,6 @@ class PlatformClient(val config:PlatformConfig, val unauthorizedAction: ((url: S val finance by lazy { this@PlatformClient.finance.ApplicationClient(applicationId,config)} - val inventory by lazy { this@PlatformClient.inventory.ApplicationClient(applicationId,config)} - val lead by lazy { this@PlatformClient.lead.ApplicationClient(applicationId,config)} val serviceability by lazy { this@PlatformClient.serviceability.ApplicationClient(applicationId,config)} diff --git a/src/main/java/com/sdk/platform/inventory/InventoryApiList.kt b/src/main/java/com/sdk/platform/inventory/InventoryApiList.kt deleted file mode 100644 index b3256da6..00000000 --- a/src/main/java/com/sdk/platform/inventory/InventoryApiList.kt +++ /dev/null @@ -1,59 +0,0 @@ -package com.sdk.platform.inventory - -import kotlinx.coroutines.Deferred -import retrofit2.Response -import okhttp3.ResponseBody -import retrofit2.http.* -import com.sdk.platform.* - -interface InventoryApiList { - - @GET ("/service/platform/inventory/v1.0/company/{company_id}/jobs") - suspend fun getJobsByCompany(@Path("company_id") companyId: String, @Query("page_no") pageNo: Int?, @Query("page_size") pageSize: Int?) - : Response - - @PUT ("/service/platform/inventory/v1.0/company/{company_id}/jobs") - suspend fun updateJob(@Path("company_id") companyId: String,@Body body: JobConfigDTO) - : Response - - @POST ("/service/platform/inventory/v1.0/company/{company_id}/jobs") - suspend fun createJob(@Path("company_id") companyId: String,@Body body: JobConfigDTO) - : Response - - @POST ("/service/platform/inventory/v1.0/company/{company_id}/kafka/suppressStore") - suspend fun suppressStores(@Path("company_id") companyId: String,@Body body: SuppressStorePayload) - : Response - - @GET ("/service/platform/inventory/v1.0/company/{company_id}/slingshot") - suspend fun getConfigByCompany(@Path("company_id") companyId: String) - : Response - - @GET ("/service/platform/inventory/v1.0/company/{company_id}/jobs/steps/{job_id}") - suspend fun getJobSteps(@Path("company_id") companyId: String, @Path("job_id") jobId: String) - : Response - - @GET ("/service/platform/inventory/v1.0/company/{company_id}/jobs/integration/{integration_id}") - suspend fun getJobByCompanyAndIntegration(@Path("company_id") companyId: String, @Path("integration_id") integrationId: String, @Query("page_no") pageNo: Int?, @Query("page_size") pageSize: Int?) - : Response - - @GET ("/service/platform/inventory/v1.0/company/{company_id}/jobs/disable/integration/{integration_id}") - suspend fun disable(@Path("company_id") companyId: String, @Path("integration_id") integrationId: String) - : Response - - @GET ("/service/platform/inventory/v1.0/company/{company_id}/jobs/defaults") - suspend fun getJobConfigDefaults(@Path("company_id") companyId: String) - : Response - - @GET ("/service/platform/inventory/v1.0/company/{company_id}/jobs/code/{code}") - suspend fun getJobByCode(@Path("company_id") companyId: String, @Path("code") code: String) - : Response - - @GET ("/service/platform/inventory/v1.0/company/{company_id}/jobs/code/{code}/metrics") - suspend fun getJobCodeMetrics(@Path("company_id") companyId: String, @Path("code") code: String, @Query("page_no") pageNo: Int?, @Query("page_size") pageSize: Int?, @Query("status") status: String?, @Query("date") date: String?) - : Response - - @GET ("/service/platform/inventory/v1.0/company/{company_id}/jobs/code/integration/{integration_id}") - suspend fun getJobCodesByCompanyAndIntegration(@Path("company_id") companyId: String, @Path("integration_id") integrationId: String, @Query("page_no") pageNo: Int?, @Query("page_size") pageSize: Int?) - : Response - -} \ No newline at end of file diff --git a/src/main/java/com/sdk/platform/inventory/InventoryDataManagerClass.kt b/src/main/java/com/sdk/platform/inventory/InventoryDataManagerClass.kt deleted file mode 100644 index 54d52db8..00000000 --- a/src/main/java/com/sdk/platform/inventory/InventoryDataManagerClass.kt +++ /dev/null @@ -1,207 +0,0 @@ -package com.sdk.platform.inventory - -import kotlinx.coroutines.Deferred -import okhttp3.Interceptor -import okhttp3.logging.HttpLoggingInterceptor -import retrofit2.Response -import okhttp3.ResponseBody -import com.sdk.common.* -import com.sdk.platform.* - - - - -class InventoryDataManagerClass(val config: PlatformConfig, val unauthorizedAction: ((url: String, responseCode: Int) -> Unit)? = null) : BaseRepository() { - - private val inventoryApiList by lazy { - generateinventoryApiList() - } - - private fun generateinventoryApiList(): InventoryApiList? { - val interceptorMap = HashMap>() - val headerInterceptor = AccessTokenInterceptor(platformConfig = config) - val requestSignerInterceptor = RequestSignerInterceptor() - val interceptorList = ArrayList() - interceptorList.add(headerInterceptor) - interceptorList.add(requestSignerInterceptor) - if(unauthorizedAction != null){ - val accessUnauthorizedInterceptor = AccessUnauthorizedInterceptor(unauthorizedAction) - interceptorList.add(accessUnauthorizedInterceptor) - } - config.interceptors?.let { - interceptorList.addAll(it) - } - interceptorMap["interceptor"] = interceptorList - HttpClient.setDebuggable(config.debuggable) - val retrofitHttpClient = HttpClient.initialize( - baseUrl = config.domain, - interceptorList = interceptorMap, - namespace = "PlatformInventory", - persistentCookieStore = config.persistentCookieStore, - certPublicKey = config.certPublicKey - ) - return retrofitHttpClient?.initializeRestClient(InventoryApiList::class.java) as? InventoryApiList - } - - - suspend fun getJobsByCompany(pageNo: Int?=null, pageSize: Int?=null) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.getJobsByCompany( - companyId = config.companyId, pageNo = pageNo, pageSize = pageSize ) - } else { - null - } - } - - - suspend fun updateJob(body: JobConfigDTO) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.updateJob( - companyId = config.companyId, body = body) - } else { - null - } - } - - - suspend fun createJob(body: JobConfigDTO) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.createJob( - companyId = config.companyId, body = body) - } else { - null - } - } - - - suspend fun suppressStores(body: SuppressStorePayload) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.suppressStores( - companyId = config.companyId, body = body) - } else { - null - } - } - - - suspend fun getConfigByCompany() - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.getConfigByCompany( - companyId = config.companyId ) - } else { - null - } - } - - - suspend fun getJobSteps(jobId: String) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.getJobSteps( - companyId = config.companyId, jobId = jobId ) - } else { - null - } - } - - - suspend fun getJobByCompanyAndIntegration(integrationId: String, pageNo: Int?=null, pageSize: Int?=null) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.getJobByCompanyAndIntegration( - companyId = config.companyId, integrationId = integrationId, pageNo = pageNo, pageSize = pageSize ) - } else { - null - } - } - - - suspend fun disable(integrationId: String) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.disable( - companyId = config.companyId, integrationId = integrationId ) - } else { - null - } - } - - - suspend fun getJobConfigDefaults() - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.getJobConfigDefaults( - companyId = config.companyId ) - } else { - null - } - } - - - suspend fun getJobByCode(code: String) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.getJobByCode( - companyId = config.companyId, code = code ) - } else { - null - } - } - - - suspend fun getJobCodeMetrics(code: String, pageNo: Int?=null, pageSize: Int?=null, status: String?=null, date: String?=null) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.getJobCodeMetrics( - companyId = config.companyId, code = code, pageNo = pageNo, pageSize = pageSize, status = status, date = date ) - } else { - null - } - } - - - suspend fun getJobCodesByCompanyAndIntegration(integrationId: String, pageNo: Int?=null, pageSize: Int?=null) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - inventoryApiList?.getJobCodesByCompanyAndIntegration( - companyId = config.companyId, integrationId = integrationId, pageNo = pageNo, pageSize = pageSize ) - } else { - null - } - } - - -inner class ApplicationClient(val applicationId:String,val config: PlatformConfig){ - - - - - - - - - - - - - - -} -} \ No newline at end of file diff --git a/src/main/java/com/sdk/platform/inventory/InventoryModels.kt b/src/main/java/com/sdk/platform/inventory/InventoryModels.kt deleted file mode 100644 index 74c924e3..00000000 --- a/src/main/java/com/sdk/platform/inventory/InventoryModels.kt +++ /dev/null @@ -1,3359 +0,0 @@ -package com.sdk.platform.inventory - -import com.sdk.platform.* - - - - - -import android.os.Parcelable -import kotlinx.parcelize.Parcelize -import kotlinx.parcelize.RawValue -import android.util.Base64 -import com.google.gson.annotations.SerializedName - - -/* - Model: DataTresholdDTO -*/ -@Parcelize -data class DataTresholdDTO( - - - - @SerializedName("min_price") - var minPrice: Double?=null, - - @SerializedName("safe_stock") - var safeStock: Int?=null, - - @SerializedName("period_threshold") - var periodThreshold: Int?=null, - - @SerializedName("period_threshold_type") - var periodThresholdType: String?=null, - - @SerializedName("period_type_list") - var periodTypeList: ArrayList?=null - -): Parcelable { - - - - - - - - - - - - - -} - - - - -/* - Model: GenericDTO -*/ -@Parcelize -data class GenericDTO( - - - - @SerializedName("text") - var text: String?=null, - - @SerializedName("value") - var value: @RawValue HashMap?=null - -): Parcelable { - - - - - - - -} - - - - -/* - Model: JobConfigDTO -*/ -@Parcelize -data class JobConfigDTO( - - - - @SerializedName("integration_data") - var integrationData: @RawValue HashMap>?=null, - - @SerializedName("company_name") - var companyName: String?=null, - - @SerializedName("integration") - var integration: String?=null, - - @SerializedName("company_id") - var companyId: Int?=null, - - @SerializedName("task_details") - var taskDetails: TaskDTO?=null, - - @SerializedName("threshold_details") - var thresholdDetails: DataTresholdDTO?=null, - - @SerializedName("job_code") - var jobCode: String?=null, - - @SerializedName("alias") - var alias: String?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: TaskDTO -*/ -@Parcelize -data class TaskDTO( - - - - @SerializedName("type") - var type: Int?=null, - - @SerializedName("group_list") - var groupList: ArrayList?=null - -): Parcelable { - - - - - - - -} - - - - -/* - Model: Page -*/ -@Parcelize -data class Page( - - - - @SerializedName("item_total") - var itemTotal: Int?=null, - - @SerializedName("next_id") - var nextId: String?=null, - - @SerializedName("has_previous") - var hasPrevious: Boolean?=null, - - @SerializedName("has_next") - var hasNext: Boolean?=null, - - @SerializedName("current") - var current: Int?=null, - - @SerializedName("type") - var type: String?=null, - - @SerializedName("size") - var size: Int?=null - -): Parcelable { - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: ResponseEnvelopeString -*/ -@Parcelize -data class ResponseEnvelopeString( - - - - @SerializedName("timestamp") - var timestamp: String?=null, - - @SerializedName("status") - var status: Int?=null, - - @SerializedName("error") - var error: String?=null, - - @SerializedName("exception") - var exception: String?=null, - - @SerializedName("message") - var message: String?=null, - - @SerializedName("total_time_taken_in_millis") - var totalTimeTakenInMillis: Int?=null, - - @SerializedName("http_status") - var httpStatus: String?=null, - - @SerializedName("items") - var items: String?=null, - - @SerializedName("payload") - var payload: String?=null, - - @SerializedName("trace_id") - var traceId: String?=null, - - @SerializedName("page") - var page: Page?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: KafkaMetaModel -*/ -@Parcelize -data class KafkaMetaModel( - - - - @SerializedName("job_type") - var jobType: String?=null, - - @SerializedName("batch_id") - var batchId: Int?=null, - - @SerializedName("action") - var action: String?=null, - - @SerializedName("trace") - var trace: ArrayList?=null, - - @SerializedName("created_on") - var createdOn: String?=null, - - @SerializedName("created_timestamp") - var createdTimestamp: Int?=null - -): Parcelable { - - - - - - - - - - - - - - - -} - - - - -/* - Model: SuppressStoreModel -*/ -@Parcelize -data class SuppressStoreModel( - - - - @SerializedName("stores") - var stores: ArrayList?=null - -): Parcelable { - - - - - -} - - - - -/* - Model: SuppressStorePayload -*/ -@Parcelize -data class SuppressStorePayload( - - - - @SerializedName("payload") - var payload: ArrayList?=null, - - @SerializedName("meta") - var meta: KafkaMetaModel?=null - -): Parcelable { - - - - - - - -} - - - - -/* - Model: KafkaResponse -*/ -@Parcelize -data class KafkaResponse( - - - - @SerializedName("offset") - var offset: Int?=null, - - @SerializedName("partition") - var partition: Int?=null - -): Parcelable { - - - - - - - -} - - - - -/* - Model: ResponseEnvelopeKafkaResponse -*/ -@Parcelize -data class ResponseEnvelopeKafkaResponse( - - - - @SerializedName("timestamp") - var timestamp: String?=null, - - @SerializedName("status") - var status: Int?=null, - - @SerializedName("error") - var error: String?=null, - - @SerializedName("exception") - var exception: String?=null, - - @SerializedName("message") - var message: String?=null, - - @SerializedName("total_time_taken_in_millis") - var totalTimeTakenInMillis: Int?=null, - - @SerializedName("http_status") - var httpStatus: String?=null, - - @SerializedName("items") - var items: KafkaResponse?=null, - - @SerializedName("payload") - var payload: KafkaResponse?=null, - - @SerializedName("trace_id") - var traceId: String?=null, - - @SerializedName("page") - var page: Page?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: GCompany -*/ -@Parcelize -data class GCompany( - - - - @SerializedName("_id") - var id: String?=null, - - @SerializedName("integration") - var integration: String?=null, - - @SerializedName("level") - var level: String?=null, - - @SerializedName("uid") - var uid: Int?=null, - - @SerializedName("opted") - var opted: Boolean?=null, - - @SerializedName("permissions") - var permissions: ArrayList?=null, - - @SerializedName("token") - var token: String?=null, - - @SerializedName("name") - var name: String?=null, - - @SerializedName("stores") - var stores: ArrayList?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: GStore -*/ -@Parcelize -data class GStore( - - - - @SerializedName("_id") - var id: String?=null, - - @SerializedName("integration") - var integration: String?=null, - - @SerializedName("level") - var level: String?=null, - - @SerializedName("uid") - var uid: Int?=null, - - @SerializedName("opted") - var opted: Boolean?=null, - - @SerializedName("permissions") - var permissions: ArrayList?=null, - - @SerializedName("token") - var token: String?=null, - - @SerializedName("code") - var code: String?=null, - - @SerializedName("name") - var name: String?=null, - - @SerializedName("data") - var data: StoreData?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: Metum -*/ -@Parcelize -data class Metum( - - - - @SerializedName("_id") - var id: String?=null, - - @SerializedName("name") - var name: String?=null, - - @SerializedName("value") - var value: String?=null - -): Parcelable { - - - - - - - - - -} - - - - -/* - Model: ResponseEnvelopeListSlingshotConfigurationDetail -*/ -@Parcelize -data class ResponseEnvelopeListSlingshotConfigurationDetail( - - - - @SerializedName("timestamp") - var timestamp: String?=null, - - @SerializedName("status") - var status: Int?=null, - - @SerializedName("error") - var error: String?=null, - - @SerializedName("exception") - var exception: String?=null, - - @SerializedName("message") - var message: String?=null, - - @SerializedName("total_time_taken_in_millis") - var totalTimeTakenInMillis: Int?=null, - - @SerializedName("http_status") - var httpStatus: String?=null, - - @SerializedName("items") - var items: ArrayList?=null, - - @SerializedName("payload") - var payload: ArrayList?=null, - - @SerializedName("trace_id") - var traceId: String?=null, - - @SerializedName("page") - var page: Page?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: SlingshotConfigurationDetail -*/ -@Parcelize -data class SlingshotConfigurationDetail( - - - - @SerializedName("integration") - var integration: SlingshotIntegration?=null, - - @SerializedName("companies") - var companies: ArrayList?=null - -): Parcelable { - - - - - - - -} - - - - -/* - Model: SlingshotIntegration -*/ -@Parcelize -data class SlingshotIntegration( - - - - @SerializedName("_id") - var id: String?=null, - - @SerializedName("description") - var description: String?=null, - - @SerializedName("name") - var name: String?=null, - - @SerializedName("slug") - var slug: String?=null, - - @SerializedName("meta") - var meta: ArrayList?=null - -): Parcelable { - - - - - - - - - - - - - -} - - - - -/* - Model: StoreData -*/ -@Parcelize -data class StoreData( - - - - @SerializedName("location_id") - var locationId: String?=null - -): Parcelable { - - - - - -} - - - - -/* - Model: AWSS3config -*/ -@Parcelize -data class AWSS3config( - - - - @SerializedName("bucket") - var bucket: String?=null, - - @SerializedName("region") - var region: String?=null, - - @SerializedName("dir") - var dir: String?=null, - - @SerializedName("access_key") - var accessKey: String?=null, - - @SerializedName("secret_key") - var secretKey: String?=null, - - @SerializedName("local_file_path") - var localFilePath: String?=null, - - @SerializedName("archive_path") - var archivePath: String?=null, - - @SerializedName("archive") - var archive: Boolean?=null, - - @SerializedName("delete") - var delete: Boolean?=null, - - @SerializedName("unzip") - var unzip: Boolean?=null, - - @SerializedName("zip_format") - var zipFormat: String?=null, - - @SerializedName("file_regex") - var fileRegex: String?=null, - - @SerializedName("archive_config") - var archiveConfig: ArchiveConfig?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: ArchiveConfig -*/ -@Parcelize -data class ArchiveConfig( - - - - @SerializedName("delete") - var delete: Boolean?=null, - - @SerializedName("archive") - var archive: Boolean?=null, - - @SerializedName("archive_dir") - var archiveDir: String?=null - -): Parcelable { - - - - - - - - - -} - - - - -/* - Model: Audit -*/ -@Parcelize -data class Audit( - - - - @SerializedName("created_by") - var createdBy: String?=null, - - @SerializedName("modified_by") - var modifiedBy: String?=null, - - @SerializedName("created_on") - var createdOn: String?=null, - - @SerializedName("modified_on") - var modifiedOn: String?=null - -): Parcelable { - - - - - - - - - - - -} - - - - -/* - Model: CatalogMasterConfig -*/ -@Parcelize -data class CatalogMasterConfig( - - - - @SerializedName("source_slug") - var sourceSlug: String?=null - -): Parcelable { - - - - - -} - - - - -/* - Model: CompanyConfig -*/ -@Parcelize -data class CompanyConfig( - - - - @SerializedName("company_id") - var companyId: Int?=null, - - @SerializedName("exclude_steps") - var excludeSteps: ArrayList?=null, - - @SerializedName("hidden_closet_keys") - var hiddenClosetKeys: ArrayList?=null, - - @SerializedName("open_tags") - var openTags: @RawValue HashMap>?=null, - - @SerializedName("tax_identifiers") - var taxIdentifiers: ArrayList?=null, - - @SerializedName("delete_quantity_threshold") - var deleteQuantityThreshold: Int?=null - -): Parcelable { - - - - - - - - - - - - - - - -} - - - - -/* - Model: DBConfig -*/ -@Parcelize -data class DBConfig( - - - - @SerializedName("vendor") - var vendor: String?=null, - - @SerializedName("host") - var host: String?=null, - - @SerializedName("port") - var port: Int?=null, - - @SerializedName("username") - var username: String?=null, - - @SerializedName("password") - var password: String?=null, - - @SerializedName("dbname") - var dbname: String?=null, - - @SerializedName("query") - var query: String?=null, - - @SerializedName("procedure") - var procedure: Boolean?=null, - - @SerializedName("driver_class") - var driverClass: String?=null, - - @SerializedName("jdbc_url") - var jdbcUrl: String?=null, - - @SerializedName("optional_properties") - var optionalProperties: HashMap?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: DBConnectionProfile -*/ -@Parcelize -data class DBConnectionProfile( - - - - @SerializedName("inventory") - var inventory: String?=null - -): Parcelable { - - - - - -} - - - - -/* - Model: DBParamConfig -*/ -@Parcelize -data class DBParamConfig( - - - - @SerializedName("params") - var params: @RawValue HashMap>?=null - -): Parcelable { - - - - - -} - - - - -/* - Model: DefaultHeadersDTO -*/ -@Parcelize -data class DefaultHeadersDTO( - - - - @SerializedName("store") - var store: PropBeanDTO?=null, - - @SerializedName("intf_article_id") - var intfArticleId: PropBeanDTO?=null, - - @SerializedName("price_effective") - var priceEffective: PropBeanDTO?=null, - - @SerializedName("quantity") - var quantity: PropBeanDTO?=null - -): Parcelable { - - - - - - - - - - - -} - - - - -/* - Model: DocMappingConfig -*/ -@Parcelize -data class DocMappingConfig( - - - - @SerializedName("properties") - var properties: @RawValue HashMap>?=null, - - @SerializedName("junk_data_threshold_count") - var junkDataThresholdCount: Int?=null, - - @SerializedName("prop_bean_configs") - var propBeanConfigs: ArrayList?=null, - - @SerializedName("unwind_field") - var unwindField: String?=null, - - @SerializedName("default_headers") - var defaultHeaders: DefaultHeadersDTO?=null - -): Parcelable { - - - - - - - - - - - - - -} - - - - -/* - Model: EmailConfig -*/ -@Parcelize -data class EmailConfig( - - - - @SerializedName("recepient") - var recepient: String?=null, - - @SerializedName("host") - var host: String?=null, - - @SerializedName("username") - var username: String?=null, - - @SerializedName("password") - var password: String?=null, - - @SerializedName("unzip") - var unzip: Boolean?=null, - - @SerializedName("read_from_content") - var readFromContent: Boolean?=null, - - @SerializedName("filter_based_on_recepients") - var filterBasedOnRecepients: Boolean?=null, - - @SerializedName("pcol") - var pcol: String?=null, - - @SerializedName("subject_line_regex") - var subjectLineRegex: String?=null, - - @SerializedName("sender_address") - var senderAddress: String?=null, - - @SerializedName("local_dir") - var localDir: String?=null, - - @SerializedName("folder_name_hierarchies") - var folderNameHierarchies: ArrayList?=null, - - @SerializedName("attachment_regex") - var attachmentRegex: String?=null, - - @SerializedName("body_content_regex") - var bodyContentRegex: String?=null, - - @SerializedName("password_protected") - var passwordProtected: Boolean?=null, - - @SerializedName("zip_format") - var zipFormat: String?=null, - - @SerializedName("attachment_mandate") - var attachmentMandate: Boolean?=null, - - @SerializedName("filter_files_after_extraction") - var filterFilesAfterExtraction: Boolean?=null, - - @SerializedName("archive_config") - var archiveConfig: ArchiveConfig?=null, - - @SerializedName("read_all_unread_mails") - var readAllUnreadMails: Boolean?=null, - - @SerializedName("content_type") - var contentType: String?=null, - - @SerializedName("downloadable_link") - var downloadableLink: Boolean?=null, - - @SerializedName("properties") - var properties: HashMap?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: FTPConfig -*/ -@Parcelize -data class FTPConfig( - - - - @SerializedName("host") - var host: String?=null, - - @SerializedName("port") - var port: Int?=null, - - @SerializedName("username") - var username: String?=null, - - @SerializedName("password") - var password: String?=null, - - @SerializedName("unzip") - var unzip: Boolean?=null, - - @SerializedName("retries") - var retries: Int?=null, - - @SerializedName("interval") - var interval: Int?=null, - - @SerializedName("local_dir") - var localDir: String?=null, - - @SerializedName("remote_dir") - var remoteDir: String?=null, - - @SerializedName("zip_file_regex") - var zipFileRegex: String?=null, - - @SerializedName("archive_config") - var archiveConfig: ArchiveConfig?=null, - - @SerializedName("file_regex") - var fileRegex: String?=null, - - @SerializedName("zip_format") - var zipFormat: String?=null, - - @SerializedName("read_all_files") - var readAllFiles: Boolean?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: FileConfig -*/ -@Parcelize -data class FileConfig( - - - - @SerializedName("delimiter") - var delimiter: String?=null, - - @SerializedName("charset") - var charset: String?=null, - - @SerializedName("properties") - var properties: @RawValue HashMap>?=null, - - @SerializedName("file_has_header") - var fileHasHeader: Boolean?=null, - - @SerializedName("header_index") - var headerIndex: Int?=null, - - @SerializedName("header_array") - var headerArray: ArrayList?=null, - - @SerializedName("data_start_index") - var dataStartIndex: Int?=null, - - @SerializedName("prop_bean_configs") - var propBeanConfigs: ArrayList?=null, - - @SerializedName("junk_data_threshold_count") - var junkDataThresholdCount: Int?=null, - - @SerializedName("file_type") - var fileType: String?=null, - - @SerializedName("line_validity_check") - var lineValidityCheck: Boolean?=null, - - @SerializedName("sheet_names") - var sheetNames: ArrayList?=null, - - @SerializedName("read_all_sheets") - var readAllSheets: Boolean?=null, - - @SerializedName("quote_char") - var quoteChar: String?=null, - - @SerializedName("escape_char") - var escapeChar: String?=null, - - @SerializedName("default_headers") - var defaultHeaders: DefaultHeadersDTO?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: GoogleSpreadSheetConfig -*/ -@Parcelize -data class GoogleSpreadSheetConfig( - - - - @SerializedName("range") - var range: String?=null, - - @SerializedName("sheet_id") - var sheetId: String?=null, - - @SerializedName("client_secret_location") - var clientSecretLocation: String?=null, - - @SerializedName("cred_storage_directory") - var credStorageDirectory: String?=null, - - @SerializedName("local_dir") - var localDir: String?=null, - - @SerializedName("archive_config") - var archiveConfig: ArchiveConfig?=null - -): Parcelable { - - - - - - - - - - - - - - - -} - - - - -/* - Model: HttpConfig -*/ -@Parcelize -data class HttpConfig( - - - - @SerializedName("hosturl") - var hosturl: String?=null, - - @SerializedName("username") - var username: String?=null, - - @SerializedName("password") - var password: String?=null, - - @SerializedName("request_params") - var requestParams: HashMap?=null, - - @SerializedName("http_method") - var httpMethod: String?=null, - - @SerializedName("request_payload") - var requestPayload: String?=null, - - @SerializedName("local_path") - var localPath: String?=null, - - @SerializedName("archive_config") - var archiveConfig: ArchiveConfig?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: JobConfig -*/ -@Parcelize -data class JobConfig( - - - - @SerializedName("_id") - var id: Int?=null, - - @SerializedName("job_code") - var jobCode: String?=null, - - @SerializedName("task_type") - var taskType: String?=null, - - @SerializedName("sync_delay") - var syncDelay: Int?=null, - - @SerializedName("cron_expression") - var cronExpression: String?=null, - - @SerializedName("store_filter") - var storeFilter: StoreFilter?=null, - - @SerializedName("process_config") - var processConfig: ProcessConfig?=null, - - @SerializedName("store_config") - var storeConfig: ArrayList?=null, - - @SerializedName("properties") - var properties: HashMap?=null, - - @SerializedName("immediate_first_run") - var immediateFirstRun: Boolean?=null, - - @SerializedName("disable") - var disable: Boolean?=null, - - @SerializedName("dependent_job_codes") - var dependentJobCodes: ArrayList?=null, - - @SerializedName("company_config") - var companyConfig: ArrayList?=null, - - @SerializedName("company_ids") - var companyIds: ArrayList?=null, - - @SerializedName("tax_identifiers") - var taxIdentifiers: ArrayList?=null, - - @SerializedName("priority") - var priority: String?=null, - - @SerializedName("period_threshold") - var periodThreshold: Int?=null, - - @SerializedName("period_threshold_type") - var periodThresholdType: String?=null, - - @SerializedName("db_connection_profile") - var dbConnectionProfile: DBConnectionProfile?=null, - - @SerializedName("params") - var params: @RawValue HashMap>?=null, - - @SerializedName("open_tags") - var openTags: @RawValue HashMap>?=null, - - @SerializedName("delete_quantity_threshold") - var deleteQuantityThreshold: Int?=null, - - @SerializedName("catalog_master_config") - var catalogMasterConfig: CatalogMasterConfig?=null, - - @SerializedName("aggregator_types") - var aggregatorTypes: ArrayList?=null, - - @SerializedName("integration_type") - var integrationType: String?=null, - - @SerializedName("min_price") - var minPrice: Double?=null, - - @SerializedName("audit") - var audit: Audit?=null, - - @SerializedName("version") - var version: Int?=null, - - @SerializedName("alias") - var alias: String?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: JobConfigRawDTO -*/ -@Parcelize -data class JobConfigRawDTO( - - - - @SerializedName("company_name") - var companyName: String?=null, - - @SerializedName("integration") - var integration: String?=null, - - @SerializedName("company_id") - var companyId: Int?=null, - - @SerializedName("data") - var data: JobConfig?=null - -): Parcelable { - - - - - - - - - - - -} - - - - -/* - Model: JsonDocConfig -*/ -@Parcelize -data class JsonDocConfig( - - - - @SerializedName("prop_bean_configs") - var propBeanConfigs: ArrayList?=null - -): Parcelable { - - - - - -} - - - - -/* - Model: LocalFileConfig -*/ -@Parcelize -data class LocalFileConfig( - - - - @SerializedName("retries") - var retries: Int?=null, - - @SerializedName("interval") - var interval: Int?=null, - - @SerializedName("local_dir") - var localDir: String?=null, - - @SerializedName("working_dir") - var workingDir: String?=null, - - @SerializedName("unzip") - var unzip: Boolean?=null, - - @SerializedName("zip_file_regex") - var zipFileRegex: String?=null, - - @SerializedName("file_regex") - var fileRegex: String?=null, - - @SerializedName("zip_format") - var zipFormat: String?=null, - - @SerializedName("archive_config") - var archiveConfig: ArchiveConfig?=null, - - @SerializedName("read_all_files") - var readAllFiles: Boolean?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: MongoDocConfig -*/ -@Parcelize -data class MongoDocConfig( - - - - @SerializedName("collection_name") - var collectionName: String?=null, - - @SerializedName("find_query") - var findQuery: @RawValue HashMap>?=null, - - @SerializedName("projection_query") - var projectionQuery: @RawValue HashMap>?=null, - - @SerializedName("prop_bean_configs") - var propBeanConfigs: ArrayList?=null, - - @SerializedName("aggregate_pipeline") - var aggregatePipeline: @RawValue ArrayList>>?=null, - - @SerializedName("skip_save") - var skipSave: Boolean?=null - -): Parcelable { - - - - - - - - - - - - - - - -} - - - - -/* - Model: OAuthConfig -*/ -@Parcelize -data class OAuthConfig( - - - - @SerializedName("limit") - var limit: Int?=null, - - @SerializedName("pages") - var pages: Int?=null, - - @SerializedName("interval") - var interval: Int?=null, - - @SerializedName("consumer_key") - var consumerKey: String?=null, - - @SerializedName("consumer_secret") - var consumerSecret: String?=null, - - @SerializedName("token") - var token: String?=null, - - @SerializedName("token_secret") - var tokenSecret: String?=null, - - @SerializedName("rest_url") - var restUrl: String?=null, - - @SerializedName("rest_base_url") - var restBaseUrl: String?=null, - - @SerializedName("function_name") - var functionName: String?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: ProcessConfig -*/ -@Parcelize -data class ProcessConfig( - - - - @SerializedName("db_config") - var dbConfig: DBConfig?=null, - - @SerializedName("db_param_config") - var dbParamConfig: DBParamConfig?=null, - - @SerializedName("sftp_config") - var sftpConfig: SFTPConfig?=null, - - @SerializedName("aws_s3_config") - var awsS3Config: AWSS3config?=null, - - @SerializedName("mongo_doc_config") - var mongoDocConfig: MongoDocConfig?=null, - - @SerializedName("ftp_config") - var ftpConfig: FTPConfig?=null, - - @SerializedName("email_config") - var emailConfig: EmailConfig?=null, - - @SerializedName("file_config") - var fileConfig: FileConfig?=null, - - @SerializedName("json_doc_config") - var jsonDocConfig: JsonDocConfig?=null, - - @SerializedName("doc_mapping_config") - var docMappingConfig: DocMappingConfig?=null, - - @SerializedName("task_step_config") - var taskStepConfig: TaskStepConfig?=null, - - @SerializedName("http_config") - var httpConfig: HttpConfig?=null, - - @SerializedName("local_file_config") - var localFileConfig: LocalFileConfig?=null, - - @SerializedName("oauth_config") - var oauthConfig: OAuthConfig?=null, - - @SerializedName("google_spreadsheet_config") - var googleSpreadsheetConfig: GoogleSpreadSheetConfig?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: PropBeanConfig -*/ -@Parcelize -data class PropBeanConfig( - - - - @SerializedName("required") - var required: Boolean?=null, - - @SerializedName("optional") - var optional: Boolean?=null, - - @SerializedName("send") - var send: Send?=null, - - @SerializedName("validations") - var validations: @RawValue ArrayList>>?=null, - - @SerializedName("values") - var values: ArrayList?=null, - - @SerializedName("include") - var include: Boolean?=null, - - @SerializedName("source_field") - var sourceField: String?=null, - - @SerializedName("source_fields") - var sourceFields: ArrayList?=null, - - @SerializedName("destination_field") - var destinationField: String?=null, - - @SerializedName("data_type") - var dataType: String?=null, - - @SerializedName("default_value") - var defaultValue: @RawValue HashMap?=null, - - @SerializedName("const_value") - var constValue: @RawValue HashMap?=null, - - @SerializedName("concat_str") - var concatStr: String?=null, - - @SerializedName("function_name") - var functionName: String?=null, - - @SerializedName("transformer_name") - var transformerName: String?=null, - - @SerializedName("all_param_function_name") - var allParamFunctionName: String?=null, - - @SerializedName("sub_separator") - var subSeparator: String?=null, - - @SerializedName("index_field") - var indexField: String?=null, - - @SerializedName("ignore_if_not_exists") - var ignoreIfNotExists: Boolean?=null, - - @SerializedName("identifier_type") - var identifierType: String?=null, - - @SerializedName("projection_query") - var projectionQuery: @RawValue HashMap>?=null, - - @SerializedName("enrich_from_master") - var enrichFromMaster: Boolean?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: PropBeanDTO -*/ -@Parcelize -data class PropBeanDTO( - - - - @SerializedName("required") - var required: Boolean?=null, - - @SerializedName("optional") - var optional: Boolean?=null, - - @SerializedName("include") - var include: Boolean?=null, - - @SerializedName("source_field") - var sourceField: String?=null, - - @SerializedName("source_fields") - var sourceFields: ArrayList?=null, - - @SerializedName("destination_field") - var destinationField: String?=null, - - @SerializedName("data_type") - var dataType: String?=null, - - @SerializedName("default_value") - var defaultValue: @RawValue HashMap?=null, - - @SerializedName("const_value") - var constValue: @RawValue HashMap?=null, - - @SerializedName("concat_str") - var concatStr: String?=null, - - @SerializedName("function_name") - var functionName: String?=null, - - @SerializedName("transformer_name") - var transformerName: String?=null, - - @SerializedName("all_param_function_name") - var allParamFunctionName: String?=null, - - @SerializedName("sub_separator") - var subSeparator: String?=null, - - @SerializedName("index_field") - var indexField: String?=null, - - @SerializedName("ignore_if_not_exists") - var ignoreIfNotExists: Boolean?=null, - - @SerializedName("identifier_type") - var identifierType: String?=null, - - @SerializedName("projection_query") - var projectionQuery: @RawValue HashMap>?=null, - - @SerializedName("enrich_from_master") - var enrichFromMaster: Boolean?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: ResponseEnvelopeListJobConfigRawDTO -*/ -@Parcelize -data class ResponseEnvelopeListJobConfigRawDTO( - - - - @SerializedName("timestamp") - var timestamp: String?=null, - - @SerializedName("status") - var status: Int?=null, - - @SerializedName("error") - var error: String?=null, - - @SerializedName("exception") - var exception: String?=null, - - @SerializedName("message") - var message: String?=null, - - @SerializedName("total_time_taken_in_millis") - var totalTimeTakenInMillis: Int?=null, - - @SerializedName("http_status") - var httpStatus: String?=null, - - @SerializedName("items") - var items: ArrayList?=null, - - @SerializedName("payload") - var payload: ArrayList?=null, - - @SerializedName("trace_id") - var traceId: String?=null, - - @SerializedName("page") - var page: Page?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: SFTPConfig -*/ -@Parcelize -data class SFTPConfig( - - - - @SerializedName("host") - var host: String?=null, - - @SerializedName("port") - var port: Int?=null, - - @SerializedName("username") - var username: String?=null, - - @SerializedName("password") - var password: String?=null, - - @SerializedName("unzip") - var unzip: Boolean?=null, - - @SerializedName("retries") - var retries: Int?=null, - - @SerializedName("interval") - var interval: Int?=null, - - @SerializedName("private_key_path") - var privateKeyPath: String?=null, - - @SerializedName("strict_host_key_checking") - var strictHostKeyChecking: Boolean?=null, - - @SerializedName("local_dir") - var localDir: String?=null, - - @SerializedName("remote_dir") - var remoteDir: String?=null, - - @SerializedName("password_protected") - var passwordProtected: Boolean?=null, - - @SerializedName("zip_file_regex") - var zipFileRegex: String?=null, - - @SerializedName("file_regex") - var fileRegex: String?=null, - - @SerializedName("zip_format") - var zipFormat: String?=null, - - @SerializedName("archive_config") - var archiveConfig: ArchiveConfig?=null, - - @SerializedName("read_all_files") - var readAllFiles: Boolean?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: Send -*/ -@Parcelize -data class Send( - - - - @SerializedName("raw") - var raw: Boolean?=null, - - @SerializedName("processed") - var processed: Boolean?=null - -): Parcelable { - - - - - - - -} - - - - -/* - Model: StoreConfig -*/ -@Parcelize -data class StoreConfig( - - - - @SerializedName("job_code") - var jobCode: String?=null, - - @SerializedName("storeid") - var storeid: String?=null, - - @SerializedName("store_alias") - var storeAlias: String?=null, - - @SerializedName("store_file_regex") - var storeFileRegex: String?=null, - - @SerializedName("store_file_name") - var storeFileName: String?=null, - - @SerializedName("process_config") - var processConfig: ProcessConfig?=null, - - @SerializedName("properties") - var properties: HashMap?=null - -): Parcelable { - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: StoreFilter -*/ -@Parcelize -data class StoreFilter( - - - - @SerializedName("include_tags") - var includeTags: ArrayList?=null, - - @SerializedName("exclude_tags") - var excludeTags: ArrayList?=null, - - @SerializedName("query") - var query: @RawValue HashMap>?=null - -): Parcelable { - - - - - - - - - -} - - - - -/* - Model: TaskConfig -*/ -@Parcelize -data class TaskConfig( - - - - @SerializedName("name") - var name: String?=null, - - @SerializedName("task_config_id") - var taskConfigId: Int?=null, - - @SerializedName("task_params") - var taskParams: ArrayList?=null - -): Parcelable { - - - - - - - - - -} - - - - -/* - Model: TaskParam -*/ -@Parcelize -data class TaskParam( - - - - @SerializedName("name") - var name: String?=null, - - @SerializedName("value") - var value: @RawValue HashMap?=null - -): Parcelable { - - - - - - - -} - - - - -/* - Model: TaskStepConfig -*/ -@Parcelize -data class TaskStepConfig( - - - - @SerializedName("task_configs") - var taskConfigs: ArrayList?=null, - - @SerializedName("task_config_ids") - var taskConfigIds: ArrayList?=null, - - @SerializedName("task_config_group_ids") - var taskConfigGroupIds: ArrayList?=null - -): Parcelable { - - - - - - - - - -} - - - - -/* - Model: JobStepsDTO -*/ -@Parcelize -data class JobStepsDTO( - - - - @SerializedName("step_name") - var stepName: String?=null, - - @SerializedName("type") - var type: String?=null, - - @SerializedName("step_execution_time") - var stepExecutionTime: Int?=null, - - @SerializedName("start_count") - var startCount: Int?=null, - - @SerializedName("end_count") - var endCount: Int?=null, - - @SerializedName("deleted_count") - var deletedCount: Int?=null, - - @SerializedName("processed_start_time") - var processedStartTime: String?=null, - - @SerializedName("processed_at") - var processedAt: String?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: ResponseEnvelopeListJobStepsDTO -*/ -@Parcelize -data class ResponseEnvelopeListJobStepsDTO( - - - - @SerializedName("timestamp") - var timestamp: String?=null, - - @SerializedName("status") - var status: Int?=null, - - @SerializedName("error") - var error: String?=null, - - @SerializedName("exception") - var exception: String?=null, - - @SerializedName("message") - var message: String?=null, - - @SerializedName("total_time_taken_in_millis") - var totalTimeTakenInMillis: Int?=null, - - @SerializedName("http_status") - var httpStatus: String?=null, - - @SerializedName("items") - var items: ArrayList?=null, - - @SerializedName("payload") - var payload: ArrayList?=null, - - @SerializedName("trace_id") - var traceId: String?=null, - - @SerializedName("page") - var page: Page?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: ResponseEnvelopeListJobConfigDTO -*/ -@Parcelize -data class ResponseEnvelopeListJobConfigDTO( - - - - @SerializedName("timestamp") - var timestamp: String?=null, - - @SerializedName("status") - var status: Int?=null, - - @SerializedName("error") - var error: String?=null, - - @SerializedName("exception") - var exception: String?=null, - - @SerializedName("message") - var message: String?=null, - - @SerializedName("total_time_taken_in_millis") - var totalTimeTakenInMillis: Int?=null, - - @SerializedName("http_status") - var httpStatus: String?=null, - - @SerializedName("items") - var items: ArrayList?=null, - - @SerializedName("payload") - var payload: ArrayList?=null, - - @SerializedName("trace_id") - var traceId: String?=null, - - @SerializedName("page") - var page: Page?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: ResponseEnvelopeJobConfigDTO -*/ -@Parcelize -data class ResponseEnvelopeJobConfigDTO( - - - - @SerializedName("timestamp") - var timestamp: String?=null, - - @SerializedName("status") - var status: Int?=null, - - @SerializedName("error") - var error: String?=null, - - @SerializedName("exception") - var exception: String?=null, - - @SerializedName("message") - var message: String?=null, - - @SerializedName("total_time_taken_in_millis") - var totalTimeTakenInMillis: Int?=null, - - @SerializedName("http_status") - var httpStatus: String?=null, - - @SerializedName("items") - var items: JobConfigDTO?=null, - - @SerializedName("payload") - var payload: JobConfigDTO?=null, - - @SerializedName("trace_id") - var traceId: String?=null, - - @SerializedName("page") - var page: Page?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: JobHistoryDto -*/ -@Parcelize -data class JobHistoryDto( - - - - @SerializedName("total_added_count") - var totalAddedCount: Int?=null, - - @SerializedName("total_updated_count") - var totalUpdatedCount: Int?=null, - - @SerializedName("total_suppressed_count") - var totalSuppressedCount: Int?=null, - - @SerializedName("total_initial_count") - var totalInitialCount: Int?=null, - - @SerializedName("job_id") - var jobId: Int?=null, - - @SerializedName("status") - var status: String?=null, - - @SerializedName("job_code") - var jobCode: String?=null, - - @SerializedName("processed_on") - var processedOn: String?=null, - - @SerializedName("filename") - var filename: ArrayList?=null, - - @SerializedName("error_type") - var errorType: String?=null, - - @SerializedName("message") - var message: String?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: JobMetricsDto -*/ -@Parcelize -data class JobMetricsDto( - - - - @SerializedName("job_code") - var jobCode: String?=null, - - @SerializedName("is_run_more_than_usual") - var isRunMoreThanUsual: String?=null, - - @SerializedName("job_history") - var jobHistory: ArrayList?=null, - - @SerializedName("total_success_count") - var totalSuccessCount: Int?=null, - - @SerializedName("total_failure_count") - var totalFailureCount: Int?=null, - - @SerializedName("total_warning_count") - var totalWarningCount: Int?=null, - - @SerializedName("total_suppressed_count") - var totalSuppressedCount: Int?=null, - - @SerializedName("total_job_runs") - var totalJobRuns: Int?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: ResponseEnvelopeJobMetricsDto -*/ -@Parcelize -data class ResponseEnvelopeJobMetricsDto( - - - - @SerializedName("timestamp") - var timestamp: String?=null, - - @SerializedName("status") - var status: Int?=null, - - @SerializedName("error") - var error: String?=null, - - @SerializedName("exception") - var exception: String?=null, - - @SerializedName("message") - var message: String?=null, - - @SerializedName("total_time_taken_in_millis") - var totalTimeTakenInMillis: Int?=null, - - @SerializedName("http_status") - var httpStatus: String?=null, - - @SerializedName("items") - var items: JobMetricsDto?=null, - - @SerializedName("payload") - var payload: JobMetricsDto?=null, - - @SerializedName("trace_id") - var traceId: String?=null, - - @SerializedName("page") - var page: Page?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: JobConfigListDTO -*/ -@Parcelize -data class JobConfigListDTO( - - - - @SerializedName("code") - var code: String?=null, - - @SerializedName("alias") - var alias: String?=null, - - @SerializedName("modified_by") - var modifiedBy: String?=null, - - @SerializedName("created_by") - var createdBy: String?=null, - - @SerializedName("modified_on") - var modifiedOn: String?=null, - - @SerializedName("created_on") - var createdOn: String?=null, - - @SerializedName("active") - var active: Boolean?=null, - - @SerializedName("type") - var type: String?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - -} - - - - -/* - Model: ResponseEnvelopeListJobConfigListDTO -*/ -@Parcelize -data class ResponseEnvelopeListJobConfigListDTO( - - - - @SerializedName("timestamp") - var timestamp: String?=null, - - @SerializedName("status") - var status: Int?=null, - - @SerializedName("error") - var error: String?=null, - - @SerializedName("exception") - var exception: String?=null, - - @SerializedName("message") - var message: String?=null, - - @SerializedName("total_time_taken_in_millis") - var totalTimeTakenInMillis: Int?=null, - - @SerializedName("http_status") - var httpStatus: String?=null, - - @SerializedName("items") - var items: ArrayList?=null, - - @SerializedName("payload") - var payload: ArrayList?=null, - - @SerializedName("trace_id") - var traceId: String?=null, - - @SerializedName("page") - var page: Page?=null - -): Parcelable { - - - - - - - - - - - - - - - - - - - - - - - - - -} - - - - - diff --git a/src/main/java/com/sdk/platform/order/OrderApiList.kt b/src/main/java/com/sdk/platform/order/OrderApiList.kt index e335076b..716281fa 100644 --- a/src/main/java/com/sdk/platform/order/OrderApiList.kt +++ b/src/main/java/com/sdk/platform/order/OrderApiList.kt @@ -28,10 +28,6 @@ interface OrderApiList { suspend fun updateAddress(@Query("shipment_id") shipmentId: String, @Query("name") name: String?, @Query("address") address: String?, @Query("address_type") addressType: String?, @Query("pincode") pincode: String?, @Query("phone") phone: String?, @Query("email") email: String?, @Query("landmark") landmark: String?, @Query("address_category") addressCategory: String, @Query("city") city: String?, @Query("state") state: String?, @Query("country") country: String?, @Path("company_id") companyId: String) : Response - @GET ("/service/platform/order-manage/v1.0/company/{company_id}/ninja/click2call") - suspend fun click2Call(@Query("caller") caller: String, @Query("receiver") receiver: String, @Query("bag_id") bagId: String, @Query("caller_id") callerId: String?, @Query("method") method: String?, @Path("company_id") companyId: String) - : Response - @PUT ("/service/platform/order-manage/v1.0/company/{company_id}/shipment/status-internal") suspend fun updateShipmentStatus(@Path("company_id") companyId: String,@Body body: UpdateShipmentStatusRequest) : Response diff --git a/src/main/java/com/sdk/platform/order/OrderDataManagerClass.kt b/src/main/java/com/sdk/platform/order/OrderDataManagerClass.kt index 580ad609..63c64b23 100644 --- a/src/main/java/com/sdk/platform/order/OrderDataManagerClass.kt +++ b/src/main/java/com/sdk/platform/order/OrderDataManagerClass.kt @@ -104,18 +104,6 @@ class OrderDataManagerClass(val config: PlatformConfig, val unauthorizedAction: } - suspend fun click2Call(caller: String, receiver: String, bagId: String, callerId: String?=null, method: String?=null, ) - : Response? { - - return if (config.oauthClient.isAccessTokenValid()) { - orderApiList?.click2Call( - caller = caller, receiver = receiver, bagId = bagId, callerId = callerId, method = method, companyId = config.companyId ) - } else { - null - } - } - - suspend fun updateShipmentStatus(body: UpdateShipmentStatusRequest) : Response? { @@ -775,7 +763,6 @@ inner class ApplicationClient(val applicationId:String,val config: PlatformConfi - suspend fun getShipmentBagReasons(shipmentId: String, lineNumber: String) diff --git a/src/main/java/com/sdk/platform/order/OrderModels.kt b/src/main/java/com/sdk/platform/order/OrderModels.kt index 1c3d1c78..defb1521 100644 --- a/src/main/java/com/sdk/platform/order/OrderModels.kt +++ b/src/main/java/com/sdk/platform/order/OrderModels.kt @@ -308,7 +308,13 @@ data class UpdateShipmentLockPayload( var entities: ArrayList?=null, @SerializedName("resume_tasks_after_unlock") - var resumeTasksAfterUnlock: Boolean?=null + var resumeTasksAfterUnlock: Boolean?=null, + + @SerializedName("lock_after_transition") + var lockAfterTransition: Boolean?=null, + + @SerializedName("unlock_before_transition") + var unlockBeforeTransition: Boolean?=null ): Parcelable { @@ -324,6 +330,10 @@ data class UpdateShipmentLockPayload( + + + + } diff --git a/src/main/java/com/sdk/platform/payment/PaymentModels.kt b/src/main/java/com/sdk/platform/payment/PaymentModels.kt index 663eb0eb..39b2b57f 100644 --- a/src/main/java/com/sdk/platform/payment/PaymentModels.kt +++ b/src/main/java/com/sdk/platform/payment/PaymentModels.kt @@ -4699,6 +4699,9 @@ data class RefundSessionDetail( @SerializedName("receipt_number") var receiptNumber: String?=null, + @SerializedName("pg_refund_id") + var pgRefundId: String?=null, + @SerializedName("currency") var currency: String?=null, @@ -4733,6 +4736,8 @@ data class RefundSessionDetail( + + diff --git a/src/main/java/com/sdk/platform/share/ShareModels.kt b/src/main/java/com/sdk/platform/share/ShareModels.kt index 5c477850..ece3d000 100644 --- a/src/main/java/com/sdk/platform/share/ShareModels.kt +++ b/src/main/java/com/sdk/platform/share/ShareModels.kt @@ -323,7 +323,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 { @@ -333,6 +336,8 @@ data class UrlInfo( + + } diff --git a/src/main/java/com/sdk/platform/theme/ThemeApiList.kt b/src/main/java/com/sdk/platform/theme/ThemeApiList.kt index ada053d4..a68e5d74 100644 --- a/src/main/java/com/sdk/platform/theme/ThemeApiList.kt +++ b/src/main/java/com/sdk/platform/theme/ThemeApiList.kt @@ -32,38 +32,10 @@ interface ThemeApiList { suspend fun deletePage(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Path("theme_id") themeId: String, @Path("page_value") pageValue: String) : Response - @GET ("/service/platform/theme/v1.0/company/{company_id}/application/{application_id}/library") - suspend fun getThemeLibrary(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Query("page_size") pageSize: Int?, @Query("page_no") pageNo: Int?) - : Response - - @POST ("/service/platform/theme/v1.0/company/{company_id}/application/{application_id}/library") - suspend fun addToThemeLibrary(@Path("company_id") companyId: String, @Path("application_id") applicationId: String,@Body body: AddThemeRequestSchema) - : Response - - @GET ("/service/platform/theme/v1.0/company/{company_id}/application/{application_id}/list/public") - suspend fun getPublicThemes(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Query("page_size") pageSize: Int?, @Query("page_no") pageNo: Int?) - : Response - @GET ("/service/platform/theme/v1.0/company/{company_id}/application/{application_id}/fonts") suspend fun getFonts(@Path("company_id") companyId: String, @Path("application_id") applicationId: String) : Response - @PUT ("/service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/publish") - suspend fun publishTheme(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Path("theme_id") themeId: String) - : Response - - @PUT ("/service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/unpublish") - suspend fun unpublishTheme(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Path("theme_id") themeId: String) - : Response - - @PUT ("/service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/archive") - suspend fun archiveTheme(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Path("theme_id") themeId: String) - : Response - - @PUT ("/service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/unarchive") - suspend fun unarchiveTheme(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Path("theme_id") themeId: String) - : Response - @GET ("/service/platform/theme/v2.0/company/{company_id}/themes") suspend fun getCompanyLevelThemes(@Path("company_id") companyId: String, @Query("search_text") searchText: String?) : Response> diff --git a/src/main/java/com/sdk/platform/theme/ThemeDataManagerClass.kt b/src/main/java/com/sdk/platform/theme/ThemeDataManagerClass.kt index 10fd38aa..17615155 100644 --- a/src/main/java/com/sdk/platform/theme/ThemeDataManagerClass.kt +++ b/src/main/java/com/sdk/platform/theme/ThemeDataManagerClass.kt @@ -51,13 +51,6 @@ class ThemeDataManagerClass(val config: PlatformConfig, val unauthorizedAction: - - - - - - - suspend fun getCompanyLevelThemes(searchText: String?=null) : Response>? { @@ -184,36 +177,6 @@ inner class ApplicationClient(val applicationId:String,val config: PlatformConfi } - suspend fun getThemeLibrary(pageSize: Int?=null, pageNo: Int?=null) - : Response? { - return if (config.oauthClient.isAccessTokenValid()) { - themeApiList?.getThemeLibrary(companyId = config.companyId , applicationId = applicationId , pageSize = pageSize, pageNo = pageNo ) - } else { - null - } - } - - - suspend fun addToThemeLibrary(body: AddThemeRequestSchema) - : Response? { - return if (config.oauthClient.isAccessTokenValid()) { - themeApiList?.addToThemeLibrary(companyId = config.companyId , applicationId = applicationId , body = body) - } else { - null - } - } - - - suspend fun getPublicThemes(pageSize: Int?=null, pageNo: Int?=null) - : Response? { - return if (config.oauthClient.isAccessTokenValid()) { - themeApiList?.getPublicThemes(companyId = config.companyId , applicationId = applicationId , pageSize = pageSize, pageNo = pageNo ) - } else { - null - } - } - - suspend fun getFonts() : Response? { return if (config.oauthClient.isAccessTokenValid()) { @@ -224,46 +187,6 @@ inner class ApplicationClient(val applicationId:String,val config: PlatformConfi } - suspend fun publishTheme(themeId: String) - : Response? { - return if (config.oauthClient.isAccessTokenValid()) { - themeApiList?.publishTheme(companyId = config.companyId , applicationId = applicationId , themeId = themeId ) - } else { - null - } - } - - - suspend fun unpublishTheme(themeId: String) - : Response? { - return if (config.oauthClient.isAccessTokenValid()) { - themeApiList?.unpublishTheme(companyId = config.companyId , applicationId = applicationId , themeId = themeId ) - } else { - null - } - } - - - suspend fun archiveTheme(themeId: String) - : Response? { - return if (config.oauthClient.isAccessTokenValid()) { - themeApiList?.archiveTheme(companyId = config.companyId , applicationId = applicationId , themeId = themeId ) - } else { - null - } - } - - - suspend fun unarchiveTheme(themeId: String) - : Response? { - return if (config.oauthClient.isAccessTokenValid()) { - themeApiList?.unarchiveTheme(companyId = config.companyId , applicationId = applicationId , themeId = themeId ) - } else { - null - } - } - -