diff --git a/documentation/application/LEAD.md b/documentation/application/LEAD.md index c05462c91..827cbabfa 100644 --- a/documentation/application/LEAD.md +++ b/documentation/application/LEAD.md @@ -1533,6 +1533,7 @@ Success | category | String | no | Category of the ticket | | content | [TicketContent](#TicketContent) | no | Content for the ticket | | customJson | HashMap? | yes | optional custom data that needs to be sent | + | subscribers | ArrayList? | yes | | --- @@ -1862,6 +1863,7 @@ Success | rating | rating | This means history event is a rating | | log | log | This means history event is a changelog | | comment | comment | This means history event is a comment | + | thread | thread | This means history event is a thread | --- diff --git a/documentation/platform/CATALOG.md b/documentation/platform/CATALOG.md index eef0b2e28..e7d0f3809 100644 --- a/documentation/platform/CATALOG.md +++ b/documentation/platform/CATALOG.md @@ -21054,9 +21054,9 @@ Returns a success response | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | name | Any | no | | - | type | String? | yes | | | address | ArrayList? | yes | | + | name | String | no | | + | type | String? | yes | | --- @@ -21067,8 +21067,8 @@ Returns a success response | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | unit | Any? | yes | The unit of measurement used for the net quantity of the product. | | value | Double? | yes | The value of the net quantity of the product. | + | unit | String? | yes | The unit of measurement used for the net quantity of the product. | --- diff --git a/documentation/platform/ORDER.md b/documentation/platform/ORDER.md index 715940028..256813ff0 100644 --- a/documentation/platform/ORDER.md +++ b/documentation/platform/ORDER.md @@ -2001,7 +2001,7 @@ Verify OTP ```kotlin -platformClient.order.getShipments(lane: lane, bagStatus: bagStatus, statusOverrideLane: statusOverrideLane, timeToDispatch: timeToDispatch, searchType: searchType, searchValue: searchValue, fromDate: fromDate, toDate: toDate, dpIds: dpIds, stores: stores, salesChannels: salesChannels, pageNo: pageNo, pageSize: pageSize, fetchActiveShipment: fetchActiveShipment, excludeLockedShipments: excludeLockedShipments, paymentMethods: paymentMethods, channelShipmentId: channelShipmentId, channelOrderId: channelOrderId, customMeta: customMeta, orderingChannel: orderingChannel, companyAffiliateTag: companyAffiliateTag, myOrders: myOrders, platformUserId: platformUserId).safeAwait{ response, error-> +platformClient.order.getShipments(lane: lane, bagStatus: bagStatus, statusOverrideLane: statusOverrideLane, timeToDispatch: timeToDispatch, searchType: searchType, searchValue: searchValue, fromDate: fromDate, toDate: toDate, dpIds: dpIds, stores: stores, salesChannels: salesChannels, pageNo: pageNo, pageSize: pageSize, fetchActiveShipment: fetchActiveShipment, excludeLockedShipments: excludeLockedShipments, paymentMethods: paymentMethods, channelShipmentId: channelShipmentId, channelOrderId: channelOrderId, customMeta: customMeta, orderingChannel: orderingChannel, companyAffiliateTag: companyAffiliateTag, myOrders: myOrders, platformUserId: platformUserId, tags: tags).safeAwait{ response, error-> response?.let{ // Use response } -> @@ -2039,7 +2039,8 @@ platformClient.order.getShipments(lane: lane, bagStatus: bagStatus, statusOverri | orderingChannel | String? | no | | | companyAffiliateTag | String? | no | | | myOrders | Boolean? | no | | -| platformUserId | String? | no | | +| platformUserId | String? | no | | +| tags | String? | no | Comma separated values of tags | @@ -6409,7 +6410,7 @@ We are processing the request! | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | cgstTaxPercentage | Double? | yes | | - | gstinCode | String | no | | + | gstinCode | String? | yes | | | valueOfGood | Double | no | | | gstFee | Double | no | | | igstTaxPercentage | Double? | yes | | @@ -6449,30 +6450,30 @@ We are processing the request! | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | - | refundCredit | Int | no | | + | refundCredit | Double | no | | | amountPaidRoundoff | Int? | yes | | - | priceEffective | Int | no | | + | priceEffective | Double | no | | | promotionEffectiveDiscount | Double | no | | - | transferPrice | Int | no | | + | transferPrice | Double | no | | | couponEffectiveDiscount | Double | no | | | gstFee | Double | no | | - | taxCollectedAtSource | Int? | yes | | + | taxCollectedAtSource | Double? | yes | | | brandCalculatedAmount | Double | no | | | deliveryCharge | Double | no | | | gstTag | String | no | | | hsnCode | String | no | | - | cashback | Int | no | | + | cashback | Double | no | | | itemName | String | no | | | valueOfGood | Double | no | | - | cashbackApplied | Int | no | | - | codCharges | Int | no | | - | priceMarked | Int | no | | + | cashbackApplied | Double | no | | + | codCharges | Double | no | | + | priceMarked | Double | no | | | size | String | no | | | amountPaid | Double | no | | | couponValue | Double | no | | - | discount | Int | no | | - | fyndCredits | Int | no | | - | gstTaxPercentage | Int | no | | + | discount | Double | no | | + | fyndCredits | Double | no | | + | gstTaxPercentage | Double | no | | | identifiers | [Identifier](#Identifier) | no | | | totalUnits | Int | no | | | addedToFyndCash | Boolean | no | | diff --git a/documentation/platform/README.md b/documentation/platform/README.md index 74f28f7b5..7dab23f61 100644 --- a/documentation/platform/README.md +++ b/documentation/platform/README.md @@ -21,6 +21,7 @@ * [Partner](PARTNER.md) - Partner configuration apis * [Payment](PAYMENT.md) - Collect payment through many payment gateway i.e Stripe, Razorpay, Juspay etc.into Fynd or Self account * [Rewards](REWARDS.md) - Earn and redeem reward points +* [Serviceability](SERVICEABILITY.md) - Logistics Configuration API's allows you to configure zone, application logistics and many more useful features. * [Share](SHARE.md) - Short link and QR Code * [Theme](THEME.md) - Responsible for themes * [User](USER.md) - Authentication Service diff --git a/documentation/platform/SERVICEABILITY.md b/documentation/platform/SERVICEABILITY.md new file mode 100644 index 000000000..7d2bd60e9 --- /dev/null +++ b/documentation/platform/SERVICEABILITY.md @@ -0,0 +1,3448 @@ + + + + +##### [Back to Platform docs](./README.md) + +## Serviceability Methods +Logistics Configuration API's allows you to configure zone, application logistics and many more useful features. +* [getApplicationServiceability](#getapplicationserviceability) +* [getEntityRegionView](#getentityregionview) +* [getListView](#getlistview) +* [getCompanyStoreView](#getcompanystoreview) +* [updateZoneControllerView](#updatezonecontrollerview) +* [getZoneDataView](#getzonedataview) +* [createZone](#createzone) +* [getZoneFromPincodeView](#getzonefrompincodeview) +* [getZonesFromApplicationIdView](#getzonesfromapplicationidview) +* [getZoneListView](#getzonelistview) +* [getStore](#getstore) +* [getAllStores](#getallstores) +* [getOptimalLocations](#getoptimallocations) +* [addAppDp](#addappdp) +* [deleteAppDp](#deleteappdp) +* [updatePincodeMopView](#updatepincodemopview) +* [updatePincodeBulkView](#updatepincodebulkview) +* [updatePincodeCoDListing](#updatepincodecodlisting) +* [updatePincodeAuditHistory](#updatepincodeaudithistory) +* [upsertDpAccount](#upsertdpaccount) +* [getDpAccount](#getdpaccount) +* [updateDpRule](#updatedprule) +* [getDpRules](#getdprules) +* [upsertDpRules](#upsertdprules) +* [getDpRuleInsert](#getdpruleinsert) +* [upsertDpCompanyRules](#upsertdpcompanyrules) +* [getDpCompanyRules](#getdpcompanyrules) +* [upsertDpApplicationRules](#upsertdpapplicationrules) +* [getDpApplicationRules](#getdpapplicationrules) +* [patchApplicationServiceabilitySelfShipment](#patchapplicationserviceabilityselfshipment) +* [getApplicationServiceabilitySelfShipment](#getapplicationserviceabilityselfshipment) + + + +## Methods with example and description + + +### getApplicationServiceability +Zone configuration of application. + + + + +```kotlin +platformClient.application("").serviceability.getApplicationServiceability().safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + + +This API returns serviceability config of the application. + +*Returned Response:* + + + + +[ApplicationServiceabilityConfigResponse](#ApplicationServiceabilityConfigResponse) + +Response Data + + + + +
+  Example: + +```json +{ + "error": { + "type": null, + "value": null, + "message": null + }, + "success": true, + "data": { + "channel_id": "5d656121a81320c2e6ee2a72", + "channel_type": "application", + "serviceability_type": "all" + } +} +``` +
+ + + + + + + + + +--- + + +### getEntityRegionView +Get country and state list + + + + +```kotlin +platformClient.serviceability.getEntityRegionView(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [EntityRegionView_Request](#EntityRegionView_Request) | yes | Request body | + + +This API returns response for Entity Region View. + +*Returned Response:* + + + + +[EntityRegionView_Response](#EntityRegionView_Response) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getListView +Zone List of application. + + + + +```kotlin +platformClient.serviceability.getListView(pageNumber: pageNumber, pageSize: pageSize, name: name, isActive: isActive, channelIds: channelIds, q: q).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| pageNumber | Int? | no | index of the item to start returning with | +| pageSize | Int? | no | determines the items to be displayed in a page | +| name | String? | no | Name of particular zone in the seller account | +| isActive | Boolean? | no | status of zone whether active or inactive | +| channelIds | String? | no | zones associated with the given channel ids' | +| q | String? | no | search with name as a free text | + + + +This API returns Zone List View of the application. + +*Returned Response:* + + + + +[ListViewResponse](#ListViewResponse) + +Zone List of application in descending order of their last modified date. + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getCompanyStoreView +Company Store View of application. + + + + +```kotlin +platformClient.serviceability.getCompanyStoreView(pageNumber: pageNumber, pageSize: pageSize).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| pageNumber | Int? | no | index of the item to start returning with | +| pageSize | Int? | no | determines the items to be displayed in a page | + + + +This API returns Company Store View of the application. + +*Returned Response:* + + + + +[CompanyStoreView_Response](#CompanyStoreView_Response) + +Get Company Store View Data + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### updateZoneControllerView +Updation of zone collections in database. + + + + +```kotlin +platformClient.serviceability.updateZoneControllerView(zoneId: zoneId, body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| zoneId | String | yes | A `zone_id` is a unique identifier for a particular zone. | +| body | [ZoneUpdateRequest](#ZoneUpdateRequest) | yes | Request body | + + +This API returns response of updation of zone in mongo database. + +*Returned Response:* + + + + +[ZoneSuccessResponse](#ZoneSuccessResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getZoneDataView +Zone Data View of application. + + + + +```kotlin +platformClient.serviceability.getZoneDataView(zoneId: zoneId).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| zoneId | String | yes | A `zone_id` is a unique identifier for a particular zone. | + + + +This API returns Zone Data View of the application. + +*Returned Response:* + + + + +[GetSingleZoneDataViewResponse](#GetSingleZoneDataViewResponse) + +Get Application Zone Data + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### createZone +Creation of a new zone + + + + +```kotlin +platformClient.serviceability.createZone(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [ZoneRequest](#ZoneRequest) | yes | Request body | + + +This API allows you to create a new zone with the specified information. A zone enables serviceability based on given pincodes or regions. By creating a zone and including specific pincodes or regions, you can ensure that the stores associated with the zone are serviceable for those added pincodes or regions. This functionality is particularly useful when you need to ensure serviceability for multiple pincodes or regions by grouping them into a single zone. + +*Returned Response:* + + + + +[ZoneResponse](#ZoneResponse) + +Response status_code + + + + +
+  Example: + +```json +{ + "success": true, + "status_code": 200, + "zone_id": "64809f27f2b8f575d5cb9c56" +} +``` +
+ + + + + + + + + +--- + + +### getZoneFromPincodeView +GET zone from the Pincode. + + + + +```kotlin +platformClient.application("").serviceability.getZoneFromPincodeView(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [GetZoneFromPincodeViewRequest](#GetZoneFromPincodeViewRequest) | yes | Request body | + + +This API returns zone from the Pincode View. + +*Returned Response:* + + + + +[GetZoneFromPincodeViewResponse](#GetZoneFromPincodeViewResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getZonesFromApplicationIdView +GET zones from the application_id. + + + + +```kotlin +platformClient.application("").serviceability.getZonesFromApplicationIdView(pageNo: pageNo, pageSize: pageSize, zoneId: zoneId, q: q).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| pageNo | Int? | no | index of the item to start returning with | +| pageSize | Int? | no | determines the items to be displayed in a page | +| zoneId | ArrayList? | no | list of zones to query for | +| q | String? | no | search with name as a free text | + + + +This API returns zones from the application_id View. + +*Returned Response:* + + + + +[GetZoneFromApplicationIdViewResponse](#GetZoneFromApplicationIdViewResponse) + +List of zones for the given application_id + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getZoneListView +Zone List of application. + + + + +```kotlin +platformClient.serviceability.getZoneListView(pageNumber: pageNumber, pageNo: pageNo, pageSize: pageSize, name: name, isActive: isActive, channelIds: channelIds, q: q, zoneId: zoneId).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| pageNumber | Int? | no | index of the item to start returning with | +| pageNo | Int? | no | index of the item to start returning with | +| pageSize | Int? | no | determines the items to be displayed in a page | +| name | String? | no | Name of particular zone in the seller account | +| isActive | Boolean? | no | status of zone whether active or inactive | +| channelIds | String? | no | zones associated with the given channel ids' | +| q | String? | no | search with name as a free text | +| zoneId | ArrayList? | no | list of zones to query for | + + + +This API returns Zone List View of the application. + +*Returned Response:* + + + + +[ListViewResponse](#ListViewResponse) + +Zone List of application in descending order of their last modified date. + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getStore +GET stores data + + + + +```kotlin +platformClient.serviceability.getStore(storeUid: storeUid).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| storeUid | Int | yes | A `store_uid` contains a specific ID of a store. | + + + +This API returns stores data. + +*Returned Response:* + + + + +[GetStoresViewResponse](#GetStoresViewResponse) + +Response status_code + + + + +
+  Example: + +```json +{ + "items": [ + { + "uid": 2, + "_cls": "Store", + "address": { + "city": "MUMBAI", + "country": "INDIA", + "address2": "", + "address1": "POLARIS 2ND FLOOR, ANDHERI", + "landmark": "", + "state": "MAHARASHTRA", + "pincode": 400001, + "longitude": 72.8776559, + "latitude": 19.0759837 + }, + "code": "HS-a0c85", + "company_id": 2, + "contact_numbers": [ + { + "country_code": 91, + "number": "9096686804" + } + ], + "created_by": { + "user_id": "605e8e86493f54a9ccaa47be", + "username": "parvezshaikh_gofynd_com_07710" + }, + "created_on": "2021-08-07T06:21:25.293000", + "display_name": "Test", + "documents": [ + { + "type": "gst", + "verified": true, + "value": "27AALCA0442L1ZM", + "legal_name": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED" + } + ], + "gst_credentials": { + "e_waybill": { + "enabled": false + }, + "e_invoice": { + "enabled": false + } + }, + "integration_type": { + "order": "pulse", + "inventory": "pulse" + }, + "logistics": { + "dp": { + "1": { + "fm_priority": 1, + "lm_priority": 1, + "rvp_priority": 1, + "payment_mode": "all", + "operations": [ + "inter_city" + ], + "area_code": null, + "assign_dp_from_sb": true, + "transport_mode": "air", + "external_account_id": null, + "internal_account_id": "1" + }, + "19": { + "fm_priority": 2, + "lm_priority": 2, + "rvp_priority": 2, + "payment_mode": "all", + "operations": "inter_city", + "area_code": null, + "assign_dp_from_sb": true, + "transport_mode": "air", + "external_account_id": null, + "internal_account_id": "19" + } + }, + "override": false + }, + "manager": { + "name": "Parvez Shaikh", + "mobile_no": { + "country_code": 91, + "number": "9096686804" + }, + "email": "parvezshaikh@gofynd.com" + }, + "modified_by": { + "user_id": "38ac93a8a5495305fc794e76", + "username": "919594495254_32111" + }, + "modified_on": "2021-08-17T14:18:10.788000", + "name": "Test", + "notification_emails": [ + "parvezshaikh@gofynd.com" + ], + "product_return_config": { + "on_same_store": true + }, + "stage": "verified", + "store_type": "high_street", + "sub_type": "store", + "timing": [ + { + "open": true, + "opening": { + "hour": 11, + "minute": 0 + }, + "closing": { + "hour": 21, + "minute": 30 + }, + "weekday": "monday" + }, + { + "open": true, + "opening": { + "hour": 11, + "minute": 0 + }, + "closing": { + "hour": 21, + "minute": 30 + }, + "weekday": "tuesday" + }, + { + "open": true, + "opening": { + "hour": 11, + "minute": 0 + }, + "closing": { + "hour": 21, + "minute": 30 + }, + "weekday": "wednesday" + }, + { + "open": true, + "opening": { + "hour": 11, + "minute": 0 + }, + "closing": { + "hour": 21, + "minute": 30 + }, + "weekday": "thursday" + }, + { + "open": true, + "opening": { + "hour": 11, + "minute": 0 + }, + "closing": { + "hour": 21, + "minute": 30 + }, + "weekday": "friday" + }, + { + "open": true, + "opening": { + "hour": 11, + "minute": 0 + }, + "closing": { + "hour": 21, + "minute": 30 + }, + "weekday": "saturday" + }, + { + "open": true, + "opening": { + "hour": 11, + "minute": 0 + }, + "closing": { + "hour": 21, + "minute": 30 + }, + "weekday": "sunday" + } + ], + "verified_by": { + "user_id": "0", + "username": "Silverbolt" + }, + "verified_on": "2022-03-23T13:35:46.869000", + "warnings": { + "store_address": "Address: Address seems to be inappropriate this might affect the delivery." + }, + "_custom_json": {}, + "company": 2 + } + ], + "page": { + "type": "number", + "size": 2, + "current": 1, + "has_next": true, + "item_total": 3276 + } +} +``` +
+ + + + + + + + + +--- + + +### getAllStores +GET stores data + + + + +```kotlin +platformClient.serviceability.getAllStores().safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + + +This API returns stores data. + +*Returned Response:* + + + + +[GetStoresViewResponse](#GetStoresViewResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getOptimalLocations +Get serviceable store of the item + + + + +```kotlin +platformClient.serviceability.getOptimalLocations(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [ReAssignStoreRequest](#ReAssignStoreRequest) | yes | Request body | + + +This API returns serviceable store of the item. + +*Returned Response:* + + + + +[ReAssignStoreResponse](#ReAssignStoreResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### addAppDp +Add application dp data + + + + +```kotlin +platformClient.application("").serviceability.addAppDp(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [ApplicationCompanyDpViewRequest](#ApplicationCompanyDpViewRequest) | yes | Request body | + + +This API add application dp data. + +*Returned Response:* + + + + +[ApplicationCompanyDpViewResponse](#ApplicationCompanyDpViewResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### deleteAppDp +Delete application dp data + + + + +```kotlin +platformClient.application("").serviceability.deleteAppDp(courierPartnerId: courierPartnerId).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| courierPartnerId | Int | yes | A `courier_partner_id` is a unique identifier of a particular delivery partner. | + + + +This API remove application dp data. + +*Returned Response:* + + + + +[ApplicationCompanyDpViewResponse](#ApplicationCompanyDpViewResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### updatePincodeMopView +PincodeView update of MOP. + + + + +```kotlin +platformClient.application("").serviceability.updatePincodeMopView(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [PincodeMopData](#PincodeMopData) | yes | Request body | + + +This API updates Pincode method of payment. + +*Returned Response:* + + + + +[PincodeMOPresponse](#PincodeMOPresponse) + +Response Data + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### updatePincodeBulkView +Bulk Update of pincode in the application. + + + + +```kotlin +platformClient.application("").serviceability.updatePincodeBulkView(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [PincodeMopBulkData](#PincodeMopBulkData) | yes | Request body | + + +This API constructs bulk write operations to update the MOP data for each pincode in the payload. + +*Returned Response:* + + + + +[PincodeBulkViewResponse](#PincodeBulkViewResponse) + +Response Data + + + + +
+  Example: + +```json +{ + "batch_id": "string", + "s3_url": "string" +} +``` +
+ + + + + + + + + +--- + + +### updatePincodeCoDListing +Pincode count view of application. + + + + +```kotlin +platformClient.application("").serviceability.updatePincodeCoDListing(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [PincodeCodStatusListingRequest](#PincodeCodStatusListingRequest) | yes | Request body | + + +This API returns count of active pincode. + +*Returned Response:* + + + + +[PincodeCodStatusListingResponse](#PincodeCodStatusListingResponse) + +Response Data + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### updatePincodeAuditHistory +Auditlog configuration of application. + + + + +```kotlin +platformClient.application("").serviceability.updatePincodeAuditHistory(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [PincodeMopUpdateAuditHistoryRequest](#PincodeMopUpdateAuditHistoryRequest) | yes | Request body | + + +This API returns Audit logs of Pincode. + +*Returned Response:* + + + + +[PincodeMopUpdateAuditHistoryResponseData](#PincodeMopUpdateAuditHistoryResponseData) + +Response Data + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### upsertDpAccount +Upsertion of DpAccount in database. + + + + +```kotlin +platformClient.serviceability.upsertDpAccount(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [CompanyDpAccountRequest](#CompanyDpAccountRequest) | yes | Request body | + + +This API returns response of upsertion of DpAccount in mongo database. + +*Returned Response:* + + + + +[CompanyDpAccountResponse](#CompanyDpAccountResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getDpAccount +Getting DpAccount of a company from database. + + + + +```kotlin +platformClient.serviceability.getDpAccount(pageNumber: pageNumber, pageSize: pageSize, stage: stage, paymentMode: paymentMode, transportType: transportType).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| pageNumber | Int? | no | index of the item to start returning with | +| pageSize | Int? | no | determines the items to be displayed in a page | +| stage | String? | no | stage of the account. enabled/disabled | +| paymentMode | String? | no | Filters dp accounts based on payment mode | +| transportType | String? | no | Filters dp accounts based on transport_type | + + + +This API returns response DpAccount of a company from mongo database. + +*Returned Response:* + + + + +[CompanyDpAccountListResponse](#CompanyDpAccountListResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### updateDpRule +Updating of DpRules from database. + + + + +```kotlin +platformClient.serviceability.updateDpRule(ruleUid: ruleUid, body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| ruleUid | String | yes | A `rule_uid` is a unique identifier for a particular Dp. | +| body | [DpRulesUpdateRequest](#DpRulesUpdateRequest) | yes | Request body | + + +This API updates and returns response of DpRules from mongo database. + +*Returned Response:* + + + + +[DpRuleUpdateSuccessResponse](#DpRuleUpdateSuccessResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getDpRules +Fetching of DpRules from database. + + + + +```kotlin +platformClient.serviceability.getDpRules(ruleUid: ruleUid).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| ruleUid | String | yes | A `rule_uid` is a unique identifier for a particular Dp. | + + + +This API returns response of DpRules from mongo database. + +*Returned Response:* + + + + +[DpRuleSuccessResponse](#DpRuleSuccessResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### upsertDpRules +Upsert of DpRules in database. + + + + +```kotlin +platformClient.serviceability.upsertDpRules(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [DpRuleRequest](#DpRuleRequest) | yes | Request body | + + +This API returns response of upsert of DpRules in mongo database. + +*Returned Response:* + + + + +[DpRuleSuccessResponse](#DpRuleSuccessResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getDpRuleInsert +Fetching of DpRules from database. + + + + +```kotlin +platformClient.serviceability.getDpRuleInsert(pageNumber: pageNumber, pageSize: pageSize).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| pageNumber | Int? | no | index of the item to start returning with | +| pageSize | Int? | no | determines the items to be displayed in a page | + + + +This API returns response of DpRules from mongo database. + +*Returned Response:* + + + + +[DpMultipleRuleSuccessResponse](#DpMultipleRuleSuccessResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### upsertDpCompanyRules +Upsert of DpCompanyRules in database. + + + + +```kotlin +platformClient.serviceability.upsertDpCompanyRules(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [DPCompanyRuleRequest](#DPCompanyRuleRequest) | yes | Request body | + + +This API returns response of upsert of DpCompanyRules in mongo database. + +*Returned Response:* + + + + +[DPCompanyRuleResponse](#DPCompanyRuleResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getDpCompanyRules +Get All DpCompanyRules applied to company from database. + + + + +```kotlin +platformClient.serviceability.getDpCompanyRules().safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + + +This API returns response of all DpCompanyRules from mongo database. + +*Returned Response:* + + + + +[DPCompanyRuleResponse](#DPCompanyRuleResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### upsertDpApplicationRules +Upsert of DpApplicationRules in database. + + + + +```kotlin +platformClient.application("").serviceability.upsertDpApplicationRules(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [DPApplicationRuleRequest](#DPApplicationRuleRequest) | yes | Request body | + + +This API returns response of upsert of DpApplicationRules in mongo database. + +*Returned Response:* + + + + +[DPApplicationRuleResponse](#DPApplicationRuleResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### getDpApplicationRules +Get All DpApplicationRules rules added at application level from database. + + + + +```kotlin +platformClient.application("").serviceability.getDpApplicationRules().safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + + +This API returns response of all rules of DpApplicationRules from mongo database. + +*Returned Response:* + + + + +[DPApplicationRuleResponse](#DPApplicationRuleResponse) + +Response status_code + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### patchApplicationServiceabilitySelfShipment +Self-ship configuration of application. + + + + +```kotlin +platformClient.application("").serviceability.patchApplicationServiceabilitySelfShipment(body: body).safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [SelfShipResponse](#SelfShipResponse) | yes | Request body | + + +This API updates Self-ship configuration of the application. + +*Returned Response:* + + + + +[ApplicationSelfShipConfigResponse](#ApplicationSelfShipConfigResponse) + +Response Data + + + + +
+  Example: + +```json +{ + "data": { + "is_active": true, + "tat": 3 + }, + "success": true, + "error": { + "type": null, + "value": null, + "message": null + } +} +``` +
+ + + + + + + + + +--- + + +### getApplicationServiceabilitySelfShipment +Self-ship configuration of application. + + + + +```kotlin +platformClient.application("").serviceability.getApplicationServiceabilitySelfShipment().safeAwait{ response, error-> + response?.let{ + // Use response + } -> + error?.let{ + + } +} +``` + + + + + + +This API returns Self-ship configuration of the application. + +*Returned Response:* + + + + +[ApplicationSelfShipConfigResponse](#ApplicationSelfShipConfigResponse) + +Response Data + + + + +
+  Example: + +```json +{ + "data": { + "is_active": true, + "tat": 3 + }, + "success": true, + "error": { + "type": null, + "value": null, + "message": null + } +} +``` +
+ + + + + + + + + +--- + + + +### Schemas + + + + #### [ServiceabilityErrorResponse](#ServiceabilityErrorResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | | + | value | String | no | | + | type | String | no | | + +--- + + + + + #### [ApplicationServiceabilityConfig](#ApplicationServiceabilityConfig) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | channelId | String | no | | + | serviceabilityType | String | no | | + | channelType | String | no | | + +--- + + + + + #### [ApplicationServiceabilityConfigResponse](#ApplicationServiceabilityConfigResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | error | [ServiceabilityErrorResponse](#ServiceabilityErrorResponse)? | yes | | + | data | [ApplicationServiceabilityConfig](#ApplicationServiceabilityConfig)? | yes | | + | success | Boolean | no | | + +--- + + + + + #### [EntityRegionView_Request](#EntityRegionView_Request) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | subType | ArrayList | no | | + | parentId | ArrayList? | yes | | + +--- + + + + + #### [EntityRegionView_Error](#EntityRegionView_Error) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String? | yes | | + | value | String? | yes | | + | type | String? | yes | | + +--- + + + + + #### [EntityRegionView_page](#EntityRegionView_page) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | type | String | no | | + | hasNext | Boolean | no | | + | itemTotal | Int | no | | + | size | Int | no | | + | current | Int | no | | + +--- + + + + + #### [EntityRegionView_Items](#EntityRegionView_Items) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | subType | String | no | | + | uid | String | no | | + | name | String | no | | + +--- + + + + + #### [EntityRegionView_Response](#EntityRegionView_Response) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | error | [EntityRegionView_Error](#EntityRegionView_Error) | no | | + | page | [EntityRegionView_page](#EntityRegionView_page) | no | | + | items | ArrayList<[EntityRegionView_Items](#EntityRegionView_Items)>? | yes | | + | success | Boolean | no | | + +--- + + + + + #### [ListViewSummary](#ListViewSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | totalZones | Int | no | | + | totalPincodesServed | Int | no | | + | totalActiveZones | Int | no | | + +--- + + + + + #### [ZoneDataItem](#ZoneDataItem) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | hasNext | Boolean | no | | + | itemTotal | Int | no | | + | size | Int | no | | + | current | Int | no | | + | type | String | no | | + +--- + + + + + #### [ListViewProduct](#ListViewProduct) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | count | Int | no | | + | type | String | no | | + +--- + + + + + #### [ListViewChannels](#ListViewChannels) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | channelId | String | no | | + | channelType | String | no | | + +--- + + + + + #### [ListViewItems](#ListViewItems) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | zoneId | String | no | | + | name | String | no | | + | slug | String | no | | + | storesCount | Int | no | | + | isActive | Boolean | no | | + | product | [ListViewProduct](#ListViewProduct) | no | | + | pincodesCount | Int | no | | + | companyId | Int | no | | + | channels | ArrayList<[ListViewChannels](#ListViewChannels)> | no | | + +--- + + + + + #### [ListViewResponse](#ListViewResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | summary | ArrayList<[ListViewSummary](#ListViewSummary)> | no | | + | page | ArrayList<[ZoneDataItem](#ZoneDataItem)> | no | | + | items | ArrayList<[ListViewItems](#ListViewItems)> | no | | + +--- + + + + + #### [CompanyStoreView_PageItems](#CompanyStoreView_PageItems) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | type | String | no | | + | hasNext | Boolean | no | | + | itemTotal | Int | no | | + | size | Int | no | | + | current | Int | no | | + +--- + + + + + #### [CompanyStoreView_Response](#CompanyStoreView_Response) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | page | ArrayList<[CompanyStoreView_PageItems](#CompanyStoreView_PageItems)> | no | | + | items | ArrayList>? | yes | | + +--- + + + + + #### [GetZoneDataViewChannels](#GetZoneDataViewChannels) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | channelId | String | no | | + | channelType | String | no | | + +--- + + + + + #### [ZoneProductTypes](#ZoneProductTypes) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | type | String | no | | + | tags | ArrayList | no | | + +--- + + + + + #### [ZoneMappingType](#ZoneMappingType) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | country | String | no | | + | pincode | ArrayList? | yes | | + | state | ArrayList? | yes | | + +--- + + + + + #### [UpdateZoneData](#UpdateZoneData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | zoneId | String | no | | + | name | String | no | | + | slug | String | no | | + | companyId | Int | no | | + | isActive | Boolean | no | | + | channels | ArrayList<[GetZoneDataViewChannels](#GetZoneDataViewChannels)> | no | | + | product | [ZoneProductTypes](#ZoneProductTypes) | no | | + | storeIds | ArrayList | no | | + | regionType | String | no | | + | mapping | ArrayList<[ZoneMappingType](#ZoneMappingType)> | no | | + | assignmentPreference | String? | yes | | + +--- + + + + + #### [ZoneUpdateRequest](#ZoneUpdateRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | identifier | String | no | | + | data | [UpdateZoneData](#UpdateZoneData) | no | | + +--- + + + + + #### [ZoneSuccessResponse](#ZoneSuccessResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | statusCode | Int | no | | + | success | Boolean | no | | + +--- + + + + + #### [GetZoneDataViewItems](#GetZoneDataViewItems) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | zoneId | String | no | | + | name | String | no | | + | slug | String | no | | + | companyId | Int? | yes | | + | isActive | Boolean | no | | + | channels | ArrayList<[GetZoneDataViewChannels](#GetZoneDataViewChannels)> | no | | + | product | [ZoneProductTypes](#ZoneProductTypes) | no | | + | storeIds | ArrayList | no | | + | regionType | String | no | | + | mapping | ArrayList<[ZoneMappingType](#ZoneMappingType)> | no | | + | assignmentPreference | String? | yes | | + | storesCount | Int | no | | + | pincodesCount | Int | no | | + +--- + + + + + #### [GetSingleZoneDataViewResponse](#GetSingleZoneDataViewResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | data | [GetZoneDataViewItems](#GetZoneDataViewItems) | no | | + +--- + + + + + #### [CreateZoneData](#CreateZoneData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | name | String | no | | + | slug | String | no | | + | companyId | Int | no | | + | isActive | Boolean | no | | + | channels | ArrayList<[GetZoneDataViewChannels](#GetZoneDataViewChannels)> | no | | + | product | [ZoneProductTypes](#ZoneProductTypes) | no | | + | storeIds | ArrayList | no | | + | regionType | String | no | | + | mapping | ArrayList<[ZoneMappingType](#ZoneMappingType)> | no | | + | assignmentPreference | String? | yes | | + +--- + + + + + #### [ZoneRequest](#ZoneRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | identifier | String | no | | + | data | [CreateZoneData](#CreateZoneData) | no | | + +--- + + + + + #### [ZoneResponse](#ZoneResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | statusCode | Int | no | | + | zoneId | String | no | | + | success | Boolean | no | | + +--- + + + + + #### [GetZoneFromPincodeViewRequest](#GetZoneFromPincodeViewRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | country | String | no | | + | pincode | String | no | | + +--- + + + + + #### [Zone](#Zone) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | zoneId | String | no | | + | type | String | no | | + | name | String | no | | + | tags | ArrayList | no | | + | slug | String | no | | + | isActive | Boolean | no | | + | storeIds | ArrayList | no | | + | assignmentPreference | String | no | | + +--- + + + + + #### [GetZoneFromPincodeViewResponse](#GetZoneFromPincodeViewResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | serviceabilityType | String | no | | + | zones | ArrayList<[Zone](#Zone)> | no | | + +--- + + + + + #### [GetZoneFromApplicationIdViewResponse](#GetZoneFromApplicationIdViewResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | page | ArrayList<[ZoneDataItem](#ZoneDataItem)> | no | | + | items | ArrayList<[ListViewItems](#ListViewItems)> | no | | + +--- + + + + + #### [ServiceabilityPageResponse](#ServiceabilityPageResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | type | String? | yes | | + | hasNext | Boolean? | yes | | + | itemTotal | Int? | yes | | + | size | Int? | yes | | + | current | Int? | yes | | + +--- + + + + + #### [MobileNo](#MobileNo) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | number | String? | yes | | + | countryCode | Int? | yes | | + +--- + + + + + #### [ManagerResponse](#ManagerResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | email | String? | yes | | + | mobileNo | [MobileNo](#MobileNo)? | yes | | + | name | String? | yes | | + +--- + + + + + #### [ModifiedByResponse](#ModifiedByResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | username | String? | yes | | + | userId | String? | yes | | + +--- + + + + + #### [IntegrationTypeResponse](#IntegrationTypeResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | inventory | String? | yes | | + | order | String? | yes | | + +--- + + + + + #### [ProductReturnConfigResponse](#ProductReturnConfigResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | onSameStore | Boolean? | yes | | + +--- + + + + + #### [ContactNumberResponse](#ContactNumberResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | number | String? | yes | | + | countryCode | Int? | yes | | + +--- + + + + + #### [AddressResponse](#AddressResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | city | String? | yes | | + | address1 | String? | yes | | + | pincode | Int? | yes | | + | address2 | String? | yes | | + | landmark | String? | yes | | + | state | String? | yes | | + | country | String? | yes | | + | latitude | Double? | yes | | + | longitude | Double? | yes | | + +--- + + + + + #### [CreatedByResponse](#CreatedByResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | username | String? | yes | | + | userId | String? | yes | | + +--- + + + + + #### [EwayBillResponse](#EwayBillResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | enabled | Boolean? | yes | | + +--- + + + + + #### [EinvoiceResponse](#EinvoiceResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | enabled | Boolean? | yes | | + +--- + + + + + #### [GstCredentialsResponse](#GstCredentialsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | eWaybill | [EwayBillResponse](#EwayBillResponse)? | yes | | + | eInvoice | [EinvoiceResponse](#EinvoiceResponse)? | yes | | + +--- + + + + + #### [WarningsResponse](#WarningsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | storeAddress | String? | yes | | + +--- + + + + + #### [OpeningClosing](#OpeningClosing) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | minute | Int? | yes | | + | hour | Int? | yes | | + +--- + + + + + #### [TimmingResponse](#TimmingResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | open | Boolean? | yes | | + | weekday | String? | yes | | + | closing | [OpeningClosing](#OpeningClosing)? | yes | | + | opening | [OpeningClosing](#OpeningClosing)? | yes | | + +--- + + + + + #### [DocumentsResponse](#DocumentsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | legalName | String? | yes | | + | value | String? | yes | | + | type | String? | yes | | + | verified | Boolean? | yes | | + +--- + + + + + #### [Dp](#Dp) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | fmPriority | Int? | yes | | + | rvpPriority | Int? | yes | | + | lmPriority | Int? | yes | | + | internalAccountId | String? | yes | | + | areaCode | Int? | yes | | + | paymentMode | String? | yes | | + | operations | ArrayList? | yes | | + | externalAccountId | String? | yes | | + | transportMode | String? | yes | | + | assignDpFromSb | Boolean? | yes | | + +--- + + + + + #### [LogisticsResponse](#LogisticsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | override | Boolean? | yes | | + | dp | [Dp](#Dp)? | yes | | + +--- + + + + + #### [ItemResponse](#ItemResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | createdOn | String? | yes | | + | manager | [ManagerResponse](#ManagerResponse)? | yes | | + | modifiedBy | [ModifiedByResponse](#ModifiedByResponse)? | yes | | + | integrationType | [IntegrationTypeResponse](#IntegrationTypeResponse)? | yes | | + | verifiedOn | String? | yes | | + | productReturnConfig | [ProductReturnConfigResponse](#ProductReturnConfigResponse)? | yes | | + | contactNumbers | ArrayList<[ContactNumberResponse](#ContactNumberResponse)>? | yes | | + | verifiedBy | [ModifiedByResponse](#ModifiedByResponse)? | yes | | + | stage | String? | yes | | + | address | [AddressResponse](#AddressResponse)? | yes | | + | modifiedOn | String? | yes | | + | createdBy | [CreatedByResponse](#CreatedByResponse)? | yes | | + | gstCredentials | [GstCredentialsResponse](#GstCredentialsResponse)? | yes | | + | displayName | String? | yes | | + | companyId | Int? | yes | | + | uid | Int? | yes | | + | customJson | HashMap? | yes | | + | code | String? | yes | | + | warnings | [WarningsResponse](#WarningsResponse)? | yes | | + | name | String? | yes | | + | timing | ArrayList<[TimmingResponse](#TimmingResponse)>? | yes | | + | documents | ArrayList<[DocumentsResponse](#DocumentsResponse)>? | yes | | + | storeType | String? | yes | | + | subType | String? | yes | | + | company | Int? | yes | | + | cls | String? | yes | | + | logistics | [LogisticsResponse](#LogisticsResponse)? | yes | | + | notificationEmails | ArrayList? | yes | | + +--- + + + + + #### [GetStoresViewResponse](#GetStoresViewResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | page | [ServiceabilityPageResponse](#ServiceabilityPageResponse) | no | | + | items | ArrayList<[ItemResponse](#ItemResponse)>? | yes | | + +--- + + + + + #### [ReAssignStoreRequest](#ReAssignStoreRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | toPincode | String | no | | + | identifier | String | no | | + | configuration | HashMap | no | | + | ignoredLocations | ArrayList | no | | + | articles | ArrayList> | no | | + +--- + + + + + #### [ReAssignStoreResponse](#ReAssignStoreResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | toPincode | String | no | | + | success | Boolean | no | | + | error | HashMap | no | | + | articles | ArrayList>? | yes | | + +--- + + + + + #### [ApplicationCompanyDpViewResponse](#ApplicationCompanyDpViewResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | courierPartnerId | Int? | yes | | + | companyId | Int | no | | + | applicationId | String | no | | + | success | Boolean | no | | + +--- + + + + + #### [ApplicationCompanyDpViewRequest](#ApplicationCompanyDpViewRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | dpId | String? | yes | | + +--- + + + + + #### [PincodeMopData](#PincodeMopData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | pincodes | ArrayList | no | | + | country | String | no | | + | action | String | no | | + +--- + + + + + #### [PincodeMopUpdateResponse](#PincodeMopUpdateResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | pincode | Int | no | | + | channelId | String | no | | + | country | String | no | | + | isActive | Boolean | no | | + +--- + + + + + #### [PincodeMOPresponse](#PincodeMOPresponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | success | Boolean | no | | + | statusCode | Int | no | | + | batchId | String | no | | + | country | String | no | | + | action | String | no | | + | pincodes | ArrayList? | yes | | + | updatedPincodes | ArrayList<[PincodeMopUpdateResponse](#PincodeMopUpdateResponse)>? | yes | | + +--- + + + + + #### [CommonError](#CommonError) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | statusCode | String? | yes | | + | error | Any? | yes | | + | success | String? | yes | | + +--- + + + + + #### [PincodeMopBulkData](#PincodeMopBulkData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | batchId | String | no | | + | s3Url | String | no | | + +--- + + + + + #### [PincodeBulkViewResponse](#PincodeBulkViewResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | batchId | String | no | | + | s3Url | String | no | | + +--- + + + + + #### [PincodeCodStatusListingRequest](#PincodeCodStatusListingRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | country | String? | yes | | + | isActive | Boolean? | yes | | + | pincode | Int? | yes | | + | current | Int? | yes | | + | pageSize | Int? | yes | | + +--- + + + + + #### [PincodeCodStatusListingResponse](#PincodeCodStatusListingResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | country | String | no | | + | data | ArrayList<[PincodeCodStatusListingResponse](#PincodeCodStatusListingResponse)> | no | | + | success | Boolean | no | | + | errors | ArrayList<[Error](#Error)>? | yes | | + | page | [PincodeCodStatusListingPage](#PincodeCodStatusListingPage) | no | | + | summary | [PincodeCodStatusListingSummary](#PincodeCodStatusListingSummary) | no | | + +--- + + + + + #### [Error](#Error) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | type | String? | yes | | + | value | String? | yes | | + | message | String? | yes | | + +--- + + + + + #### [PincodeCodStatusListingPage](#PincodeCodStatusListingPage) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | type | String | no | | + | hasNext | Boolean | no | | + | itemTotal | Int | no | | + | size | Int | no | | + | current | Int | no | | + +--- + + + + + #### [PincodeCodStatusListingSummary](#PincodeCodStatusListingSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | totalActivePincodes | Int | no | | + | totalInactivePincodes | Int | no | | + +--- + + + + + #### [PincodeMopUpdateAuditHistoryRequest](#PincodeMopUpdateAuditHistoryRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | entityType | String | no | | + | fileName | String? | yes | | + +--- + + + + + #### [PincodeMopUpdateAuditHistoryPaging](#PincodeMopUpdateAuditHistoryPaging) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | type | String? | yes | | + | size | Int? | yes | | + | current | Int? | yes | | + | hasNext | Boolean? | yes | | + | itemTotal | Int? | yes | | + +--- + + + + + #### [PincodeMopUpdateAuditHistoryResponse](#PincodeMopUpdateAuditHistoryResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | batchId | String? | yes | | + | entityType | String? | yes | | + | errorFileS3Url | String? | yes | | + | s3Url | String? | yes | | + | fileName | String? | yes | | + | updatedAt | String? | yes | | + | updatedBy | String? | yes | | + | success | Boolean? | yes | | + +--- + + + + + #### [PincodeMopUpdateAuditHistoryResponseData](#PincodeMopUpdateAuditHistoryResponseData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | entityType | String? | yes | | + | page | [PincodeMopUpdateAuditHistoryPaging](#PincodeMopUpdateAuditHistoryPaging) | no | | + | data | ArrayList<[PincodeMopUpdateAuditHistoryResponse](#PincodeMopUpdateAuditHistoryResponse)> | no | | + +--- + + + + + #### [Dp1](#Dp1) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | isSelfShip | Boolean | no | | + | name | String | no | | + | planId | String | no | | + | stage | String | no | | + | accountId | String | no | | + | dpId | String | no | | + | planRules | HashMap | no | | + +--- + + + + + #### [CompanyDpAccountRequest](#CompanyDpAccountRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | data | ArrayList<[Dp1](#Dp1)> | no | | + +--- + + + + + #### [CompanyDpAccountResponse](#CompanyDpAccountResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | success | Boolean | no | | + +--- + + + + + #### [ErrorResponse](#ErrorResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | | + | value | String | no | | + | type | String | no | | + +--- + + + + + #### [DpAccountFailureResponse](#DpAccountFailureResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | statusCode | Int | no | | + | error | ArrayList<[ErrorResponse](#ErrorResponse)> | no | | + | success | Boolean | no | | + +--- + + + + + #### [Page](#Page) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | type | String | no | | + | hasPrevious | Boolean | no | | + | hasNext | Boolean | no | | + | itemTotal | Int | no | | + | size | Int | no | | + | current | Int | no | | + | total | Int | no | | + +--- + + + + + #### [CompanyDpAccountListResponse](#CompanyDpAccountListResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | success | Boolean | no | | + | page | [Page](#Page) | no | | + | items | ArrayList<[Dp1](#Dp1)> | no | | + +--- + + + + + #### [DpRulesUpdateRequest](#DpRulesUpdateRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | isActive | Boolean | no | | + | conditions | ArrayList> | no | | + | dpIds | HashMap> | no | | + | name | String | no | | + +--- + + + + + #### [DpRuleResponse](#DpRuleResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | createdOn | String? | yes | | + | name | String | no | | + | modifiedBy | HashMap? | yes | | + | dpIds | HashMap | no | | + | isActive | Boolean? | yes | | + | modifiedOn | String? | yes | | + | uid | String | no | | + | createdBy | HashMap? | yes | | + | companyId | Int | no | | + | conditions | ArrayList | no | | + +--- + + + + + #### [DpRuleUpdateSuccessResponse](#DpRuleUpdateSuccessResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | statusCode | Int | no | | + | data | [DpRuleResponse](#DpRuleResponse) | no | | + | success | Boolean | no | | + +--- + + + + + #### [FailureResponse](#FailureResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | statusCode | Int | no | | + | error | ArrayList<[ErrorResponse](#ErrorResponse)> | no | | + | success | Boolean | no | | + +--- + + + + + #### [DpSchemaInRuleListing](#DpSchemaInRuleListing) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | isSelfShip | Boolean | no | | + | name | String | no | | + | planId | String | no | | + | stage | String | no | | + | accountId | String | no | | + | priority | Int | no | | + | dpId | String | no | | + | planRules | HashMap | no | | + +--- + + + + + #### [DpRule](#DpRule) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | name | String | no | | + | dpIds | HashMap | no | | + | isActive | Boolean? | yes | | + | companyId | Int? | yes | | + | conditions | ArrayList> | no | | + +--- + + + + + #### [DpRuleSuccessResponse](#DpRuleSuccessResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | statusCode | Int | no | | + | data | [DpRule](#DpRule) | no | | + | success | Boolean | no | | + +--- + + + + + #### [DpIds](#DpIds) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | enabled | Boolean | no | | + | priority | Int | no | | + | meta | HashMap? | yes | | + +--- + + + + + #### [DpRuleRequest](#DpRuleRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | name | String | no | | + | dpIds | HashMap | no | | + | isActive | Boolean? | yes | | + | companyId | Int? | yes | | + | conditions | ArrayList> | no | | + +--- + + + + + #### [DpMultipleRuleSuccessResponse](#DpMultipleRuleSuccessResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | success | Boolean | no | | + | page | [Page](#Page) | no | | + | items | ArrayList<[DpRule](#DpRule)> | no | | + +--- + + + + + #### [DPCompanyRuleRequest](#DPCompanyRuleRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | ruleIds | ArrayList | no | | + +--- + + + + + #### [DPCompanyRuleResponse](#DPCompanyRuleResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | statusCode | Int | no | | + | data | ArrayList<[DpRuleResponse](#DpRuleResponse)> | no | | + | success | Boolean | no | | + +--- + + + + + #### [DPApplicationRuleRequest](#DPApplicationRuleRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | shippingRules | ArrayList | no | | + +--- + + + + + #### [DPApplicationRuleResponse](#DPApplicationRuleResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | statusCode | Boolean | no | | + | data | ArrayList<[DpRuleResponse](#DpRuleResponse)> | no | | + | success | Boolean | no | | + +--- + + + + + #### [SelfShipResponse](#SelfShipResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | isActive | Boolean | no | | + | tat | Double | no | | + +--- + + + + + #### [ApplicationSelfShipConfig](#ApplicationSelfShipConfig) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | selfShip | [SelfShipResponse](#SelfShipResponse)? | yes | | + +--- + + + + + #### [ApplicationSelfShipConfigResponse](#ApplicationSelfShipConfigResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | error | [ServiceabilityErrorResponse](#ServiceabilityErrorResponse)? | yes | | + | data | [ApplicationSelfShipConfig](#ApplicationSelfShipConfig)? | yes | | + | success | Boolean | no | | + +--- + + + diff --git a/src/main/java/com/sdk/application/ApplicationEnums.kt b/src/main/java/com/sdk/application/ApplicationEnums.kt index 015817cf2..c4581df2a 100644 --- a/src/main/java/com/sdk/application/ApplicationEnums.kt +++ b/src/main/java/com/sdk/application/ApplicationEnums.kt @@ -58,7 +58,10 @@ import com.google.gson.annotations.SerializedName log("log"), @SerializedName("comment") - comment("comment"); + comment("comment"), + + @SerializedName("thread") + thread("thread"); companion object { diff --git a/src/main/java/com/sdk/application/models/lead/LeadModels.kt b/src/main/java/com/sdk/application/models/lead/LeadModels.kt index 590c6322b..371174cc3 100644 --- a/src/main/java/com/sdk/application/models/lead/LeadModels.kt +++ b/src/main/java/com/sdk/application/models/lead/LeadModels.kt @@ -996,7 +996,10 @@ data class AddTicketPayload( var content: TicketContent?=null, @SerializedName("_custom_json") - var customJson: @RawValue HashMap?=null + var customJson: @RawValue HashMap?=null, + + @SerializedName("subscribers") + var subscribers: ArrayList?=null ): Parcelable { @@ -1014,6 +1017,8 @@ data class AddTicketPayload( + + } diff --git a/src/main/java/com/sdk/platform/PlatformClient.kt b/src/main/java/com/sdk/platform/PlatformClient.kt index 2032d4e9a..e24260674 100644 --- a/src/main/java/com/sdk/platform/PlatformClient.kt +++ b/src/main/java/com/sdk/platform/PlatformClient.kt @@ -46,6 +46,8 @@ class PlatformClient(val config:PlatformConfig, val unauthorizedAction: ((url: S val rewards by lazy { RewardsDataManagerClass(config, unauthorizedAction)} + val serviceability by lazy { ServiceabilityDataManagerClass(config, unauthorizedAction)} + val share by lazy { ShareDataManagerClass(config, unauthorizedAction)} val theme by lazy { ThemeDataManagerClass(config, unauthorizedAction)} @@ -96,6 +98,8 @@ class PlatformClient(val config:PlatformConfig, val unauthorizedAction: ((url: S val rewards by lazy { this@PlatformClient.rewards.ApplicationClient(applicationId,config)} + val serviceability by lazy { this@PlatformClient.serviceability.ApplicationClient(applicationId,config)} + val share by lazy { this@PlatformClient.share.ApplicationClient(applicationId,config)} val theme by lazy { this@PlatformClient.theme.ApplicationClient(applicationId,config)} diff --git a/src/main/java/com/sdk/platform/PlatformEnums.kt b/src/main/java/com/sdk/platform/PlatformEnums.kt index df1b907a6..7d78b09e8 100644 --- a/src/main/java/com/sdk/platform/PlatformEnums.kt +++ b/src/main/java/com/sdk/platform/PlatformEnums.kt @@ -208,6 +208,7 @@ import com.google.gson.annotations.SerializedName + /* Enum: SubscriberStatus Used By: Webhook diff --git a/src/main/java/com/sdk/platform/apis/order/OrderApiList.kt b/src/main/java/com/sdk/platform/apis/order/OrderApiList.kt index fcbd0bc5d..43934eae1 100644 --- a/src/main/java/com/sdk/platform/apis/order/OrderApiList.kt +++ b/src/main/java/com/sdk/platform/apis/order/OrderApiList.kt @@ -114,7 +114,7 @@ interface OrderApiList { : Deferred> @GET ("/service/platform/order/v1.0/company/{company_id}/shipments-listing") - fun getShipments(@Path("company_id") companyId: String, @Query("lane") lane: String?, @Query("bag_status") bagStatus: String?, @Query("status_override_lane") statusOverrideLane: Boolean?, @Query("time_to_dispatch") timeToDispatch: String?, @Query("search_type") searchType: String?, @Query("search_value") searchValue: String?, @Query("from_date") fromDate: String?, @Query("to_date") toDate: String?, @Query("dp_ids") dpIds: String?, @Query("stores") stores: String?, @Query("sales_channels") salesChannels: String?, @Query("page_no") pageNo: Int?, @Query("page_size") pageSize: Int?, @Query("fetch_active_shipment") fetchActiveShipment: Boolean?, @Query("exclude_locked_shipments") excludeLockedShipments: Boolean?, @Query("payment_methods") paymentMethods: String?, @Query("channel_shipment_id") channelShipmentId: String?, @Query("channel_order_id") channelOrderId: String?, @Query("custom_meta") customMeta: String?, @Query("ordering_channel") orderingChannel: String?, @Query("company_affiliate_tag") companyAffiliateTag: String?, @Query("my_orders") myOrders: Boolean?, @Query("platform_user_id") platformUserId: String?) + fun getShipments(@Path("company_id") companyId: String, @Query("lane") lane: String?, @Query("bag_status") bagStatus: String?, @Query("status_override_lane") statusOverrideLane: Boolean?, @Query("time_to_dispatch") timeToDispatch: String?, @Query("search_type") searchType: String?, @Query("search_value") searchValue: String?, @Query("from_date") fromDate: String?, @Query("to_date") toDate: String?, @Query("dp_ids") dpIds: String?, @Query("stores") stores: String?, @Query("sales_channels") salesChannels: String?, @Query("page_no") pageNo: Int?, @Query("page_size") pageSize: Int?, @Query("fetch_active_shipment") fetchActiveShipment: Boolean?, @Query("exclude_locked_shipments") excludeLockedShipments: Boolean?, @Query("payment_methods") paymentMethods: String?, @Query("channel_shipment_id") channelShipmentId: String?, @Query("channel_order_id") channelOrderId: String?, @Query("custom_meta") customMeta: String?, @Query("ordering_channel") orderingChannel: String?, @Query("company_affiliate_tag") companyAffiliateTag: String?, @Query("my_orders") myOrders: Boolean?, @Query("platform_user_id") platformUserId: String?, @Query("tags") tags: String?) : Deferred> @GET ("/service/platform/order/v1.0/company/{company_id}/shipment-details") diff --git a/src/main/java/com/sdk/platform/apis/serviceability/ServiceabilityApiList.kt b/src/main/java/com/sdk/platform/apis/serviceability/ServiceabilityApiList.kt new file mode 100644 index 000000000..02603a62f --- /dev/null +++ b/src/main/java/com/sdk/platform/apis/serviceability/ServiceabilityApiList.kt @@ -0,0 +1,136 @@ +package com.sdk.platform.apis.serviceability + +import kotlinx.coroutines.Deferred +import retrofit2.Response +import okhttp3.ResponseBody +import retrofit2.http.* +import com.sdk.platform.* +import com.sdk.platform.models.serviceability.* + +interface ServiceabilityApiList { + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/serviceability") + fun getApplicationServiceability(@Path("company_id") companyId: String, @Path("application_id") applicationId: String) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/regions") + fun getEntityRegionView(@Path("company_id") companyId: String,@Body body: EntityRegionView_Request) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/zones") + fun getListView(@Path("company_id") companyId: String, @Query("page_number") pageNumber: Int?, @Query("page_size") pageSize: Int?, @Query("name") name: String?, @Query("is_active") isActive: Boolean?, @Query("channel_ids") channelIds: String?, @Query("q") q: String?) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/all-stores") + fun getCompanyStoreView(@Path("company_id") companyId: String, @Query("page_number") pageNumber: Int?, @Query("page_size") pageSize: Int?) + : Deferred> + + @PUT ("/service/platform/logistics/v1.0/company/{company_id}/zone/{zone_id}") + fun updateZoneControllerView(@Path("zone_id") zoneId: String, @Path("company_id") companyId: String,@Body body: ZoneUpdateRequest) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/zone/{zone_id}") + fun getZoneDataView(@Path("company_id") companyId: String, @Path("zone_id") zoneId: String) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/zone") + fun createZone(@Path("company_id") companyId: String,@Body body: ZoneRequest) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/zones") + fun getZoneFromPincodeView(@Path("company_id") companyId: String, @Path("application_id") applicationId: String,@Body body: GetZoneFromPincodeViewRequest) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/zones") + fun getZonesFromApplicationIdView(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Query("page_no") pageNo: Int?, @Query("page_size") pageSize: Int?, @Query("zone_id") zoneId: ArrayList?, @Query("q") q: String?) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/zones-list") + fun getZoneListView(@Path("company_id") companyId: String, @Query("page_number") pageNumber: Int?, @Query("page_no") pageNo: Int?, @Query("page_size") pageSize: Int?, @Query("name") name: String?, @Query("is_active") isActive: Boolean?, @Query("channel_ids") channelIds: String?, @Query("q") q: String?, @Query("zone_id") zoneId: ArrayList?) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/stores/{store_uid}") + fun getStore(@Path("company_id") companyId: String, @Path("store_uid") storeUid: String) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/logistics/stores") + fun getAllStores(@Path("company_id") companyId: String) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/reassign") + fun getOptimalLocations(@Path("company_id") companyId: String,@Body body: ReAssignStoreRequest) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}") + fun addAppDp(@Path("company_id") companyId: String, @Path("application_id") applicationId: String,@Body body: ApplicationCompanyDpViewRequest) + : Deferred> + + @DELETE ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/courier-partner/{courier_partner_id}") + fun deleteAppDp(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Path("courier_partner_id") courierPartnerId: String) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/pincode-mop-update") + fun updatePincodeMopView(@Path("company_id") companyId: String, @Path("application_id") applicationId: String,@Body body: PincodeMopData) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/pincode-mop-bulk-update") + fun updatePincodeBulkView(@Path("company_id") companyId: String, @Path("application_id") applicationId: String,@Body body: PincodeMopBulkData) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/pincode-mop-data") + fun updatePincodeCoDListing(@Path("company_id") companyId: String, @Path("application_id") applicationId: String,@Body body: PincodeCodStatusListingRequest) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/history") + fun updatePincodeAuditHistory(@Path("company_id") companyId: String, @Path("application_id") applicationId: String,@Body body: PincodeMopUpdateAuditHistoryRequest) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/courier/account") + fun upsertDpAccount(@Path("company_id") companyId: String,@Body body: CompanyDpAccountRequest) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/courier/account") + fun getDpAccount(@Path("company_id") companyId: String, @Query("page_number") pageNumber: Int?, @Query("page_size") pageSize: Int?, @Query("stage") stage: String?, @Query("payment_mode") paymentMode: String?, @Query("transport_type") transportType: String?) + : Deferred> + + @PUT ("/service/platform/logistics/v1.0/company/{company_id}/courier/rules/{rule_uid}") + fun updateDpRule(@Path("company_id") companyId: String, @Path("rule_uid") ruleUid: String,@Body body: DpRulesUpdateRequest) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/courier/rules/{rule_uid}") + fun getDpRules(@Path("company_id") companyId: String, @Path("rule_uid") ruleUid: String) + : Deferred> + + @POST ("/service/platform/logistics/v1.0/company/{company_id}/courier/rules") + fun upsertDpRules(@Path("company_id") companyId: String,@Body body: DpRuleRequest) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/courier/rules") + fun getDpRuleInsert(@Path("company_id") companyId: String, @Query("page_number") pageNumber: Int?, @Query("page_size") pageSize: Int?) + : Deferred> + + @PUT ("/service/platform/logistics/v1.0/company/{company_id}/courier/priority") + fun upsertDpCompanyRules(@Path("company_id") companyId: String,@Body body: DPCompanyRuleRequest) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/courier/priority") + fun getDpCompanyRules(@Path("company_id") companyId: String) + : Deferred> + + @PUT ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/courier/priority") + fun upsertDpApplicationRules(@Path("company_id") companyId: String, @Path("application_id") applicationId: String,@Body body: DPApplicationRuleRequest) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/courier/priority") + fun getDpApplicationRules(@Path("company_id") companyId: String, @Path("application_id") applicationId: String) + : Deferred> + + @PATCH ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/selfship") + fun patchApplicationServiceabilitySelfShipment(@Path("company_id") companyId: String, @Path("application_id") applicationId: String,@Body body: SelfShipResponse) + : Deferred> + + @GET ("/service/platform/logistics/v1.0/company/{company_id}/application/{application_id}/selfship") + fun getApplicationServiceabilitySelfShipment(@Path("company_id") companyId: String, @Path("application_id") applicationId: String) + : Deferred> + +} \ No newline at end of file diff --git a/src/main/java/com/sdk/platform/datamanager/OrderDataManagerClass.kt b/src/main/java/com/sdk/platform/datamanager/OrderDataManagerClass.kt index f5ced3345..fc323f70c 100644 --- a/src/main/java/com/sdk/platform/datamanager/OrderDataManagerClass.kt +++ b/src/main/java/com/sdk/platform/datamanager/OrderDataManagerClass.kt @@ -357,12 +357,12 @@ class OrderDataManagerClass(val config: PlatformConfig, val unauthorizedAction: } - suspend fun getShipments(lane: String?=null, bagStatus: String?=null, statusOverrideLane: Boolean?=null, timeToDispatch: String?=null, searchType: String?=null, searchValue: String?=null, fromDate: String?=null, toDate: String?=null, dpIds: String?=null, stores: String?=null, salesChannels: String?=null, pageNo: Int?=null, pageSize: Int?=null, fetchActiveShipment: Boolean?=null, excludeLockedShipments: Boolean?=null, paymentMethods: String?=null, channelShipmentId: String?=null, channelOrderId: String?=null, customMeta: String?=null, orderingChannel: String?=null, companyAffiliateTag: String?=null, myOrders: Boolean?=null, platformUserId: String?=null) + suspend fun getShipments(lane: String?=null, bagStatus: String?=null, statusOverrideLane: Boolean?=null, timeToDispatch: String?=null, searchType: String?=null, searchValue: String?=null, fromDate: String?=null, toDate: String?=null, dpIds: String?=null, stores: String?=null, salesChannels: String?=null, pageNo: Int?=null, pageSize: Int?=null, fetchActiveShipment: Boolean?=null, excludeLockedShipments: Boolean?=null, paymentMethods: String?=null, channelShipmentId: String?=null, channelOrderId: String?=null, customMeta: String?=null, orderingChannel: String?=null, companyAffiliateTag: String?=null, myOrders: Boolean?=null, platformUserId: String?=null, tags: String?=null) : Deferred>? { return if (config.oauthClient.isAccessTokenValid()) { orderApiList?.getShipments( - companyId = config.companyId, lane = lane, bagStatus = bagStatus, statusOverrideLane = statusOverrideLane, timeToDispatch = timeToDispatch, searchType = searchType, searchValue = searchValue, fromDate = fromDate, toDate = toDate, dpIds = dpIds, stores = stores, salesChannels = salesChannels, pageNo = pageNo, pageSize = pageSize, fetchActiveShipment = fetchActiveShipment, excludeLockedShipments = excludeLockedShipments, paymentMethods = paymentMethods, channelShipmentId = channelShipmentId, channelOrderId = channelOrderId, customMeta = customMeta, orderingChannel = orderingChannel, companyAffiliateTag = companyAffiliateTag, myOrders = myOrders, platformUserId = platformUserId ) + companyId = config.companyId, lane = lane, bagStatus = bagStatus, statusOverrideLane = statusOverrideLane, timeToDispatch = timeToDispatch, searchType = searchType, searchValue = searchValue, fromDate = fromDate, toDate = toDate, dpIds = dpIds, stores = stores, salesChannels = salesChannels, pageNo = pageNo, pageSize = pageSize, fetchActiveShipment = fetchActiveShipment, excludeLockedShipments = excludeLockedShipments, paymentMethods = paymentMethods, channelShipmentId = channelShipmentId, channelOrderId = channelOrderId, customMeta = customMeta, orderingChannel = orderingChannel, companyAffiliateTag = companyAffiliateTag, myOrders = myOrders, platformUserId = platformUserId, tags = tags ) } else { null } diff --git a/src/main/java/com/sdk/platform/datamanager/ServiceabilityDataManagerClass.kt b/src/main/java/com/sdk/platform/datamanager/ServiceabilityDataManagerClass.kt new file mode 100644 index 000000000..9c3d358c9 --- /dev/null +++ b/src/main/java/com/sdk/platform/datamanager/ServiceabilityDataManagerClass.kt @@ -0,0 +1,429 @@ +package com.sdk.platform.datamanager + +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.* +import com.sdk.platform.models.serviceability.* +import com.sdk.platform.apis.serviceability.* + + + + +class ServiceabilityDataManagerClass(val config: PlatformConfig, val unauthorizedAction: ((url: String, responseCode: Int) -> Unit)? = null) : BaseRepository() { + + private val serviceabilityApiList by lazy { + generateserviceabilityApiList() + } + + private fun generateserviceabilityApiList(): ServiceabilityApiList? { + 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 = "PlatformServiceability", + persistentCookieStore = config.persistentCookieStore + ) + return retrofitHttpClient?.initializeRestClient(ServiceabilityApiList::class.java) as? ServiceabilityApiList + } + + + + suspend fun getEntityRegionView(body: EntityRegionView_Request) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getEntityRegionView( + companyId = config.companyId, body = body) + } else { + null + } + } + + + suspend fun getListView(pageNumber: Int?=null, pageSize: Int?=null, name: String?=null, isActive: Boolean?=null, channelIds: String?=null, q: String?=null) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getListView( + companyId = config.companyId, pageNumber = pageNumber, pageSize = pageSize, name = name, isActive = isActive, channelIds = channelIds, q = q ) + } else { + null + } + } + + + suspend fun getCompanyStoreView(pageNumber: Int?=null, pageSize: Int?=null) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getCompanyStoreView( + companyId = config.companyId, pageNumber = pageNumber, pageSize = pageSize ) + } else { + null + } + } + + + suspend fun updateZoneControllerView(zoneId: String,body: ZoneUpdateRequest) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.updateZoneControllerView( + zoneId = zoneId, companyId = config.companyId, body = body) + } else { + null + } + } + + + suspend fun getZoneDataView(zoneId: String) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getZoneDataView( + companyId = config.companyId, zoneId = zoneId ) + } else { + null + } + } + + + suspend fun createZone(body: ZoneRequest) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.createZone( + companyId = config.companyId, body = body) + } else { + null + } + } + + + + + suspend fun getZoneListView(pageNumber: Int?=null, pageNo: Int?=null, pageSize: Int?=null, name: String?=null, isActive: Boolean?=null, channelIds: String?=null, q: String?=null, zoneId: ArrayList?=null) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getZoneListView( + companyId = config.companyId, pageNumber = pageNumber, pageNo = pageNo, pageSize = pageSize, name = name, isActive = isActive, channelIds = channelIds, q = q, zoneId = zoneId ) + } else { + null + } + } + + + suspend fun getStore(storeUid: String) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getStore( + companyId = config.companyId, storeUid = storeUid ) + } else { + null + } + } + + + suspend fun getAllStores() + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getAllStores( + companyId = config.companyId ) + } else { + null + } + } + + + suspend fun getOptimalLocations(body: ReAssignStoreRequest) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getOptimalLocations( + companyId = config.companyId, body = body) + } else { + null + } + } + + + + + + + + + suspend fun upsertDpAccount(body: CompanyDpAccountRequest) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.upsertDpAccount( + companyId = config.companyId, body = body) + } else { + null + } + } + + + suspend fun getDpAccount(pageNumber: Int?=null, pageSize: Int?=null, stage: String?=null, paymentMode: String?=null, transportType: String?=null) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getDpAccount( + companyId = config.companyId, pageNumber = pageNumber, pageSize = pageSize, stage = stage, paymentMode = paymentMode, transportType = transportType ) + } else { + null + } + } + + + suspend fun updateDpRule(ruleUid: String,body: DpRulesUpdateRequest) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.updateDpRule( + companyId = config.companyId, ruleUid = ruleUid, body = body) + } else { + null + } + } + + + suspend fun getDpRules(ruleUid: String) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getDpRules( + companyId = config.companyId, ruleUid = ruleUid ) + } else { + null + } + } + + + suspend fun upsertDpRules(body: DpRuleRequest) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.upsertDpRules( + companyId = config.companyId, body = body) + } else { + null + } + } + + + suspend fun getDpRuleInsert(pageNumber: Int?=null, pageSize: Int?=null) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getDpRuleInsert( + companyId = config.companyId, pageNumber = pageNumber, pageSize = pageSize ) + } else { + null + } + } + + + suspend fun upsertDpCompanyRules(body: DPCompanyRuleRequest) + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.upsertDpCompanyRules( + companyId = config.companyId, body = body) + } else { + null + } + } + + + suspend fun getDpCompanyRules() + : Deferred>? { + + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getDpCompanyRules( + companyId = config.companyId ) + } else { + null + } + } + + + + + + +inner class ApplicationClient(val applicationId:String,val config: PlatformConfig){ + + + + suspend fun getApplicationServiceability() + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getApplicationServiceability(companyId = config.companyId , applicationId = applicationId ) + } else { + null + } + } + + + + + + + + + suspend fun getZoneFromPincodeView(body: GetZoneFromPincodeViewRequest) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getZoneFromPincodeView(companyId = config.companyId , applicationId = applicationId , body = body) + } else { + null + } + } + + + suspend fun getZonesFromApplicationIdView(pageNo: Int?=null, pageSize: Int?=null, zoneId: ArrayList?=null, q: String?=null) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getZonesFromApplicationIdView(companyId = config.companyId , applicationId = applicationId , pageNo = pageNo, pageSize = pageSize, zoneId = zoneId, q = q ) + } else { + null + } + } + + + + + + + suspend fun addAppDp(body: ApplicationCompanyDpViewRequest) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.addAppDp(companyId = config.companyId , applicationId = applicationId , body = body) + } else { + null + } + } + + + suspend fun deleteAppDp(courierPartnerId: String) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.deleteAppDp(companyId = config.companyId , applicationId = applicationId , courierPartnerId = courierPartnerId ) + } else { + null + } + } + + + suspend fun updatePincodeMopView(body: PincodeMopData) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.updatePincodeMopView(companyId = config.companyId , applicationId = applicationId , body = body) + } else { + null + } + } + + + suspend fun updatePincodeBulkView(body: PincodeMopBulkData) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.updatePincodeBulkView(companyId = config.companyId , applicationId = applicationId , body = body) + } else { + null + } + } + + + suspend fun updatePincodeCoDListing(body: PincodeCodStatusListingRequest) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.updatePincodeCoDListing(companyId = config.companyId , applicationId = applicationId , body = body) + } else { + null + } + } + + + suspend fun updatePincodeAuditHistory(body: PincodeMopUpdateAuditHistoryRequest) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.updatePincodeAuditHistory(companyId = config.companyId , applicationId = applicationId , body = body) + } else { + null + } + } + + + + + + + + + + + suspend fun upsertDpApplicationRules(body: DPApplicationRuleRequest) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.upsertDpApplicationRules(companyId = config.companyId , applicationId = applicationId , body = body) + } else { + null + } + } + + + suspend fun getDpApplicationRules() + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getDpApplicationRules(companyId = config.companyId , applicationId = applicationId ) + } else { + null + } + } + + + suspend fun patchApplicationServiceabilitySelfShipment(body: SelfShipResponse) + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.patchApplicationServiceabilitySelfShipment(companyId = config.companyId , applicationId = applicationId , body = body) + } else { + null + } + } + + + suspend fun getApplicationServiceabilitySelfShipment() + : Deferred>? { + return if (config.oauthClient.isAccessTokenValid()) { + serviceabilityApiList?.getApplicationServiceabilitySelfShipment(companyId = config.companyId , applicationId = applicationId ) + } else { + null + } + } + +} +} \ No newline at end of file diff --git a/src/main/java/com/sdk/platform/models/catalog/CatalogModels.kt b/src/main/java/com/sdk/platform/models/catalog/CatalogModels.kt index ea9afb5c0..4e2095a4c 100644 --- a/src/main/java/com/sdk/platform/models/catalog/CatalogModels.kt +++ b/src/main/java/com/sdk/platform/models/catalog/CatalogModels.kt @@ -7532,14 +7532,14 @@ data class Trader( + @SerializedName("address") + var address: ArrayList?=null, + @SerializedName("name") - var name: @RawValue Any?=null, + var name: String?=null, @SerializedName("type") - var type: String?=null, - - @SerializedName("address") - var address: ArrayList?=null + var type: String?=null ): Parcelable { @@ -7564,11 +7564,11 @@ data class NetQuantity( - @SerializedName("unit") - var unit: @RawValue Any?=null, - @SerializedName("value") - var value: Double?=null + var value: Double?=null, + + @SerializedName("unit") + var unit: String?=null ): Parcelable { diff --git a/src/main/java/com/sdk/platform/models/order/OrderModels.kt b/src/main/java/com/sdk/platform/models/order/OrderModels.kt index defb2250e..3b8f5aaef 100644 --- a/src/main/java/com/sdk/platform/models/order/OrderModels.kt +++ b/src/main/java/com/sdk/platform/models/order/OrderModels.kt @@ -5198,19 +5198,19 @@ data class FinancialBreakup( @SerializedName("refund_credit") - var refundCredit: Int?=null, + var refundCredit: Double?=null, @SerializedName("amount_paid_roundoff") var amountPaidRoundoff: Int?=null, @SerializedName("price_effective") - var priceEffective: Int?=null, + var priceEffective: Double?=null, @SerializedName("promotion_effective_discount") var promotionEffectiveDiscount: Double?=null, @SerializedName("transfer_price") - var transferPrice: Int?=null, + var transferPrice: Double?=null, @SerializedName("coupon_effective_discount") var couponEffectiveDiscount: Double?=null, @@ -5219,7 +5219,7 @@ data class FinancialBreakup( var gstFee: Double?=null, @SerializedName("tax_collected_at_source") - var taxCollectedAtSource: Int?=null, + var taxCollectedAtSource: Double?=null, @SerializedName("brand_calculated_amount") var brandCalculatedAmount: Double?=null, @@ -5234,7 +5234,7 @@ data class FinancialBreakup( var hsnCode: String?=null, @SerializedName("cashback") - var cashback: Int?=null, + var cashback: Double?=null, @SerializedName("item_name") var itemName: String?=null, @@ -5243,13 +5243,13 @@ data class FinancialBreakup( var valueOfGood: Double?=null, @SerializedName("cashback_applied") - var cashbackApplied: Int?=null, + var cashbackApplied: Double?=null, @SerializedName("cod_charges") - var codCharges: Int?=null, + var codCharges: Double?=null, @SerializedName("price_marked") - var priceMarked: Int?=null, + var priceMarked: Double?=null, @SerializedName("size") var size: String?=null, @@ -5261,13 +5261,13 @@ data class FinancialBreakup( var couponValue: Double?=null, @SerializedName("discount") - var discount: Int?=null, + var discount: Double?=null, @SerializedName("fynd_credits") - var fyndCredits: Int?=null, + var fyndCredits: Double?=null, @SerializedName("gst_tax_percentage") - var gstTaxPercentage: Int?=null, + var gstTaxPercentage: Double?=null, @SerializedName("identifiers") var identifiers: Identifier?=null, diff --git a/src/main/java/com/sdk/platform/models/serviceability/ServiceabilityModels.kt b/src/main/java/com/sdk/platform/models/serviceability/ServiceabilityModels.kt new file mode 100644 index 000000000..d5d84c6c2 --- /dev/null +++ b/src/main/java/com/sdk/platform/models/serviceability/ServiceabilityModels.kt @@ -0,0 +1,3444 @@ +package com.sdk.platform.models.serviceability + +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: ServiceabilityErrorResponse +*/ +@Parcelize +data class ServiceabilityErrorResponse( + + + + @SerializedName("message") + var message: String?=null, + + @SerializedName("value") + var value: String?=null, + + @SerializedName("type") + var type: String?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: ApplicationServiceabilityConfig +*/ +@Parcelize +data class ApplicationServiceabilityConfig( + + + + @SerializedName("channel_id") + var channelId: String?=null, + + @SerializedName("serviceability_type") + var serviceabilityType: String?=null, + + @SerializedName("channel_type") + var channelType: String?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: ApplicationServiceabilityConfigResponse +*/ +@Parcelize +data class ApplicationServiceabilityConfigResponse( + + + + @SerializedName("error") + var error: ServiceabilityErrorResponse?=null, + + @SerializedName("data") + var data: ApplicationServiceabilityConfig?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: EntityRegionView_Request +*/ +@Parcelize +data class EntityRegionView_Request( + + + + @SerializedName("sub_type") + var subType: ArrayList?=null, + + @SerializedName("parent_id") + var parentId: ArrayList?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: EntityRegionView_Error +*/ +@Parcelize +data class EntityRegionView_Error( + + + + @SerializedName("message") + var message: String?=null, + + @SerializedName("value") + var value: String?=null, + + @SerializedName("type") + var type: String?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: EntityRegionView_page +*/ +@Parcelize +data class EntityRegionView_page( + + + + @SerializedName("type") + var type: String?=null, + + @SerializedName("has_next") + var hasNext: Boolean?=null, + + @SerializedName("item_total") + var itemTotal: Int?=null, + + @SerializedName("size") + var size: Int?=null, + + @SerializedName("current") + var current: Int?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: EntityRegionView_Items +*/ +@Parcelize +data class EntityRegionView_Items( + + + + @SerializedName("sub_type") + var subType: String?=null, + + @SerializedName("uid") + var uid: String?=null, + + @SerializedName("name") + var name: String?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: EntityRegionView_Response +*/ +@Parcelize +data class EntityRegionView_Response( + + + + @SerializedName("error") + var error: EntityRegionView_Error?=null, + + @SerializedName("page") + var page: EntityRegionView_page?=null, + + @SerializedName("items") + var items: ArrayList?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + + + +} + + + + +/* + Model: ListViewSummary +*/ +@Parcelize +data class ListViewSummary( + + + + @SerializedName("total_zones") + var totalZones: Int?=null, + + @SerializedName("total_pincodes_served") + var totalPincodesServed: Int?=null, + + @SerializedName("total_active_zones") + var totalActiveZones: Int?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: ZoneDataItem +*/ +@Parcelize +data class ZoneDataItem( + + + + @SerializedName("has_next") + var hasNext: Boolean?=null, + + @SerializedName("item_total") + var itemTotal: Int?=null, + + @SerializedName("size") + var size: Int?=null, + + @SerializedName("current") + var current: Int?=null, + + @SerializedName("type") + var type: String?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: ListViewProduct +*/ +@Parcelize +data class ListViewProduct( + + + + @SerializedName("count") + var count: Int?=null, + + @SerializedName("type") + var type: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ListViewChannels +*/ +@Parcelize +data class ListViewChannels( + + + + @SerializedName("channel_id") + var channelId: String?=null, + + @SerializedName("channel_type") + var channelType: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ListViewItems +*/ +@Parcelize +data class ListViewItems( + + + + @SerializedName("zone_id") + var zoneId: String?=null, + + @SerializedName("name") + var name: String?=null, + + @SerializedName("slug") + var slug: String?=null, + + @SerializedName("stores_count") + var storesCount: Int?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("product") + var product: ListViewProduct?=null, + + @SerializedName("pincodes_count") + var pincodesCount: Int?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("channels") + var channels: ArrayList?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: ListViewResponse +*/ +@Parcelize +data class ListViewResponse( + + + + @SerializedName("summary") + var summary: ArrayList?=null, + + @SerializedName("page") + var page: ArrayList?=null, + + @SerializedName("items") + var items: ArrayList?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: CompanyStoreView_PageItems +*/ +@Parcelize +data class CompanyStoreView_PageItems( + + + + @SerializedName("type") + var type: String?=null, + + @SerializedName("has_next") + var hasNext: Boolean?=null, + + @SerializedName("item_total") + var itemTotal: Int?=null, + + @SerializedName("size") + var size: Int?=null, + + @SerializedName("current") + var current: Int?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: CompanyStoreView_Response +*/ +@Parcelize +data class CompanyStoreView_Response( + + + + @SerializedName("page") + var page: ArrayList?=null, + + @SerializedName("items") + var items: @RawValue ArrayList>?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: GetZoneDataViewChannels +*/ +@Parcelize +data class GetZoneDataViewChannels( + + + + @SerializedName("channel_id") + var channelId: String?=null, + + @SerializedName("channel_type") + var channelType: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ZoneProductTypes +*/ +@Parcelize +data class ZoneProductTypes( + + + + @SerializedName("type") + var type: String?=null, + + @SerializedName("tags") + var tags: ArrayList?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ZoneMappingType +*/ +@Parcelize +data class ZoneMappingType( + + + + @SerializedName("country") + var country: String?=null, + + @SerializedName("pincode") + var pincode: ArrayList?=null, + + @SerializedName("state") + var state: ArrayList?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: UpdateZoneData +*/ +@Parcelize +data class UpdateZoneData( + + + + @SerializedName("zone_id") + var zoneId: String?=null, + + @SerializedName("name") + var name: String?=null, + + @SerializedName("slug") + var slug: String?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("channels") + var channels: ArrayList?=null, + + @SerializedName("product") + var product: ZoneProductTypes?=null, + + @SerializedName("store_ids") + var storeIds: ArrayList?=null, + + @SerializedName("region_type") + var regionType: String?=null, + + @SerializedName("mapping") + var mapping: ArrayList?=null, + + @SerializedName("assignment_preference") + var assignmentPreference: String?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: ZoneUpdateRequest +*/ +@Parcelize +data class ZoneUpdateRequest( + + + + @SerializedName("identifier") + var identifier: String?=null, + + @SerializedName("data") + var data: UpdateZoneData?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ZoneSuccessResponse +*/ +@Parcelize +data class ZoneSuccessResponse( + + + + @SerializedName("status_code") + var statusCode: Int?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: GetZoneDataViewItems +*/ +@Parcelize +data class GetZoneDataViewItems( + + + + @SerializedName("zone_id") + var zoneId: String?=null, + + @SerializedName("name") + var name: String?=null, + + @SerializedName("slug") + var slug: String?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("channels") + var channels: ArrayList?=null, + + @SerializedName("product") + var product: ZoneProductTypes?=null, + + @SerializedName("store_ids") + var storeIds: ArrayList?=null, + + @SerializedName("region_type") + var regionType: String?=null, + + @SerializedName("mapping") + var mapping: ArrayList?=null, + + @SerializedName("assignment_preference") + var assignmentPreference: String?=null, + + @SerializedName("stores_count") + var storesCount: Int?=null, + + @SerializedName("pincodes_count") + var pincodesCount: Int?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: GetSingleZoneDataViewResponse +*/ +@Parcelize +data class GetSingleZoneDataViewResponse( + + + + @SerializedName("data") + var data: GetZoneDataViewItems?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: CreateZoneData +*/ +@Parcelize +data class CreateZoneData( + + + + @SerializedName("name") + var name: String?=null, + + @SerializedName("slug") + var slug: String?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("channels") + var channels: ArrayList?=null, + + @SerializedName("product") + var product: ZoneProductTypes?=null, + + @SerializedName("store_ids") + var storeIds: ArrayList?=null, + + @SerializedName("region_type") + var regionType: String?=null, + + @SerializedName("mapping") + var mapping: ArrayList?=null, + + @SerializedName("assignment_preference") + var assignmentPreference: String?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: ZoneRequest +*/ +@Parcelize +data class ZoneRequest( + + + + @SerializedName("identifier") + var identifier: String?=null, + + @SerializedName("data") + var data: CreateZoneData?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ZoneResponse +*/ +@Parcelize +data class ZoneResponse( + + + + @SerializedName("status_code") + var statusCode: Int?=null, + + @SerializedName("zone_id") + var zoneId: String?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: GetZoneFromPincodeViewRequest +*/ +@Parcelize +data class GetZoneFromPincodeViewRequest( + + + + @SerializedName("country") + var country: String?=null, + + @SerializedName("pincode") + var pincode: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: Zone +*/ +@Parcelize +data class Zone( + + + + @SerializedName("zone_id") + var zoneId: String?=null, + + @SerializedName("type") + var type: String?=null, + + @SerializedName("name") + var name: String?=null, + + @SerializedName("tags") + var tags: ArrayList?=null, + + @SerializedName("slug") + var slug: String?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("store_ids") + var storeIds: ArrayList?=null, + + @SerializedName("assignment_preference") + var assignmentPreference: String?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: GetZoneFromPincodeViewResponse +*/ +@Parcelize +data class GetZoneFromPincodeViewResponse( + + + + @SerializedName("serviceability_type") + var serviceabilityType: String?=null, + + @SerializedName("zones") + var zones: ArrayList?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: GetZoneFromApplicationIdViewResponse +*/ +@Parcelize +data class GetZoneFromApplicationIdViewResponse( + + + + @SerializedName("page") + var page: ArrayList?=null, + + @SerializedName("items") + var items: ArrayList?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ServiceabilityPageResponse +*/ +@Parcelize +data class ServiceabilityPageResponse( + + + + @SerializedName("type") + var type: String?=null, + + @SerializedName("has_next") + var hasNext: Boolean?=null, + + @SerializedName("item_total") + var itemTotal: Int?=null, + + @SerializedName("size") + var size: Int?=null, + + @SerializedName("current") + var current: Int?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: MobileNo +*/ +@Parcelize +data class MobileNo( + + + + @SerializedName("number") + var number: String?=null, + + @SerializedName("country_code") + var countryCode: Int?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ManagerResponse +*/ +@Parcelize +data class ManagerResponse( + + + + @SerializedName("email") + var email: String?=null, + + @SerializedName("mobile_no") + var mobileNo: MobileNo?=null, + + @SerializedName("name") + var name: String?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: ModifiedByResponse +*/ +@Parcelize +data class ModifiedByResponse( + + + + @SerializedName("username") + var username: String?=null, + + @SerializedName("user_id") + var userId: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: IntegrationTypeResponse +*/ +@Parcelize +data class IntegrationTypeResponse( + + + + @SerializedName("inventory") + var inventory: String?=null, + + @SerializedName("order") + var order: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ProductReturnConfigResponse +*/ +@Parcelize +data class ProductReturnConfigResponse( + + + + @SerializedName("on_same_store") + var onSameStore: Boolean?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: ContactNumberResponse +*/ +@Parcelize +data class ContactNumberResponse( + + + + @SerializedName("number") + var number: String?=null, + + @SerializedName("country_code") + var countryCode: Int?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: AddressResponse +*/ +@Parcelize +data class AddressResponse( + + + + @SerializedName("city") + var city: String?=null, + + @SerializedName("address1") + var address1: String?=null, + + @SerializedName("pincode") + var pincode: Int?=null, + + @SerializedName("address2") + var address2: String?=null, + + @SerializedName("landmark") + var landmark: String?=null, + + @SerializedName("state") + var state: String?=null, + + @SerializedName("country") + var country: String?=null, + + @SerializedName("latitude") + var latitude: Double?=null, + + @SerializedName("longitude") + var longitude: Double?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: CreatedByResponse +*/ +@Parcelize +data class CreatedByResponse( + + + + @SerializedName("username") + var username: String?=null, + + @SerializedName("user_id") + var userId: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: EwayBillResponse +*/ +@Parcelize +data class EwayBillResponse( + + + + @SerializedName("enabled") + var enabled: Boolean?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: EinvoiceResponse +*/ +@Parcelize +data class EinvoiceResponse( + + + + @SerializedName("enabled") + var enabled: Boolean?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: GstCredentialsResponse +*/ +@Parcelize +data class GstCredentialsResponse( + + + + @SerializedName("e_waybill") + var eWaybill: EwayBillResponse?=null, + + @SerializedName("e_invoice") + var eInvoice: EinvoiceResponse?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: WarningsResponse +*/ +@Parcelize +data class WarningsResponse( + + + + @SerializedName("store_address") + var storeAddress: String?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: OpeningClosing +*/ +@Parcelize +data class OpeningClosing( + + + + @SerializedName("minute") + var minute: Int?=null, + + @SerializedName("hour") + var hour: Int?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: TimmingResponse +*/ +@Parcelize +data class TimmingResponse( + + + + @SerializedName("open") + var open: Boolean?=null, + + @SerializedName("weekday") + var weekday: String?=null, + + @SerializedName("closing") + var closing: OpeningClosing?=null, + + @SerializedName("opening") + var opening: OpeningClosing?=null + +): Parcelable { + + + + + + + + + + + +} + + + + +/* + Model: DocumentsResponse +*/ +@Parcelize +data class DocumentsResponse( + + + + @SerializedName("legal_name") + var legalName: String?=null, + + @SerializedName("value") + var value: String?=null, + + @SerializedName("type") + var type: String?=null, + + @SerializedName("verified") + var verified: Boolean?=null + +): Parcelable { + + + + + + + + + + + +} + + + + +/* + Model: Dp +*/ +@Parcelize +data class Dp( + + + + @SerializedName("fm_priority") + var fmPriority: Int?=null, + + @SerializedName("rvp_priority") + var rvpPriority: Int?=null, + + @SerializedName("lm_priority") + var lmPriority: Int?=null, + + @SerializedName("internal_account_id") + var internalAccountId: String?=null, + + @SerializedName("area_code") + var areaCode: Int?=null, + + @SerializedName("payment_mode") + var paymentMode: String?=null, + + @SerializedName("operations") + var operations: ArrayList?=null, + + @SerializedName("external_account_id") + var externalAccountId: String?=null, + + @SerializedName("transport_mode") + var transportMode: String?=null, + + @SerializedName("assign_dp_from_sb") + var assignDpFromSb: Boolean?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: LogisticsResponse +*/ +@Parcelize +data class LogisticsResponse( + + + + @SerializedName("override") + var override: Boolean?=null, + + @SerializedName("dp") + var dp: Dp?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ItemResponse +*/ +@Parcelize +data class ItemResponse( + + + + @SerializedName("created_on") + var createdOn: String?=null, + + @SerializedName("manager") + var manager: ManagerResponse?=null, + + @SerializedName("modified_by") + var modifiedBy: ModifiedByResponse?=null, + + @SerializedName("integration_type") + var integrationType: IntegrationTypeResponse?=null, + + @SerializedName("verified_on") + var verifiedOn: String?=null, + + @SerializedName("product_return_config") + var productReturnConfig: ProductReturnConfigResponse?=null, + + @SerializedName("contact_numbers") + var contactNumbers: ArrayList?=null, + + @SerializedName("verified_by") + var verifiedBy: ModifiedByResponse?=null, + + @SerializedName("stage") + var stage: String?=null, + + @SerializedName("address") + var address: AddressResponse?=null, + + @SerializedName("modified_on") + var modifiedOn: String?=null, + + @SerializedName("created_by") + var createdBy: CreatedByResponse?=null, + + @SerializedName("gst_credentials") + var gstCredentials: GstCredentialsResponse?=null, + + @SerializedName("display_name") + var displayName: String?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("uid") + var uid: Int?=null, + + @SerializedName("_custom_json") + var customJson: @RawValue HashMap?=null, + + @SerializedName("code") + var code: String?=null, + + @SerializedName("warnings") + var warnings: WarningsResponse?=null, + + @SerializedName("name") + var name: String?=null, + + @SerializedName("timing") + var timing: ArrayList?=null, + + @SerializedName("documents") + var documents: ArrayList?=null, + + @SerializedName("store_type") + var storeType: String?=null, + + @SerializedName("sub_type") + var subType: String?=null, + + @SerializedName("company") + var company: Int?=null, + + @SerializedName("_cls") + var cls: String?=null, + + @SerializedName("logistics") + var logistics: LogisticsResponse?=null, + + @SerializedName("notification_emails") + var notificationEmails: ArrayList?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: GetStoresViewResponse +*/ +@Parcelize +data class GetStoresViewResponse( + + + + @SerializedName("page") + var page: ServiceabilityPageResponse?=null, + + @SerializedName("items") + var items: ArrayList?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ReAssignStoreRequest +*/ +@Parcelize +data class ReAssignStoreRequest( + + + + @SerializedName("to_pincode") + var toPincode: String?=null, + + @SerializedName("identifier") + var identifier: String?=null, + + @SerializedName("configuration") + var configuration: @RawValue HashMap?=null, + + @SerializedName("ignored_locations") + var ignoredLocations: ArrayList?=null, + + @SerializedName("articles") + var articles: @RawValue ArrayList>?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: ReAssignStoreResponse +*/ +@Parcelize +data class ReAssignStoreResponse( + + + + @SerializedName("to_pincode") + var toPincode: String?=null, + + @SerializedName("success") + var success: Boolean?=null, + + @SerializedName("error") + var error: @RawValue HashMap?=null, + + @SerializedName("articles") + var articles: @RawValue ArrayList>?=null + +): Parcelable { + + + + + + + + + + + +} + + + + +/* + Model: ApplicationCompanyDpViewResponse +*/ +@Parcelize +data class ApplicationCompanyDpViewResponse( + + + + @SerializedName("courier_partner_id") + var courierPartnerId: Int?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("application_id") + var applicationId: String?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + + + +} + + + + +/* + Model: ApplicationCompanyDpViewRequest +*/ +@Parcelize +data class ApplicationCompanyDpViewRequest( + + + + @SerializedName("dp_id") + var dpId: String?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: PincodeMopData +*/ +@Parcelize +data class PincodeMopData( + + + + @SerializedName("pincodes") + var pincodes: ArrayList?=null, + + @SerializedName("country") + var country: String?=null, + + @SerializedName("action") + var action: String?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: PincodeMopUpdateResponse +*/ +@Parcelize +data class PincodeMopUpdateResponse( + + + + @SerializedName("pincode") + var pincode: Int?=null, + + @SerializedName("channel_id") + var channelId: String?=null, + + @SerializedName("country") + var country: String?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null + +): Parcelable { + + + + + + + + + + + +} + + + + +/* + Model: PincodeMOPresponse +*/ +@Parcelize +data class PincodeMOPresponse( + + + + @SerializedName("success") + var success: Boolean?=null, + + @SerializedName("status_code") + var statusCode: Int?=null, + + @SerializedName("batch_id") + var batchId: String?=null, + + @SerializedName("country") + var country: String?=null, + + @SerializedName("action") + var action: String?=null, + + @SerializedName("pincodes") + var pincodes: ArrayList?=null, + + @SerializedName("updated_pincodes") + var updatedPincodes: ArrayList?=null + +): Parcelable { + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: CommonError +*/ +@Parcelize +data class CommonError( + + + + @SerializedName("status_code") + var statusCode: String?=null, + + @SerializedName("error") + var error: @RawValue Any?=null, + + @SerializedName("success") + var success: String?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: PincodeMopBulkData +*/ +@Parcelize +data class PincodeMopBulkData( + + + + @SerializedName("batch_id") + var batchId: String?=null, + + @SerializedName("s3_url") + var s3Url: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: PincodeBulkViewResponse +*/ +@Parcelize +data class PincodeBulkViewResponse( + + + + @SerializedName("batch_id") + var batchId: String?=null, + + @SerializedName("s3_url") + var s3Url: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: PincodeCodStatusListingRequest +*/ +@Parcelize +data class PincodeCodStatusListingRequest( + + + + @SerializedName("country") + var country: String?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("pincode") + var pincode: Int?=null, + + @SerializedName("current") + var current: Int?=null, + + @SerializedName("page_size") + var pageSize: Int?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: PincodeCodStatusListingResponse +*/ +@Parcelize +data class PincodeCodStatusListingResponse( + + + + @SerializedName("country") + var country: String?=null, + + @SerializedName("data") + var data: ArrayList?=null, + + @SerializedName("success") + var success: Boolean?=null, + + @SerializedName("errors") + var errors: ArrayList?=null, + + @SerializedName("page") + var page: PincodeCodStatusListingPage?=null, + + @SerializedName("summary") + var summary: PincodeCodStatusListingSummary?=null + +): Parcelable { + + + + + + + + + + + + + + + +} + + + + +/* + Model: Error +*/ +@Parcelize +data class Error( + + + + @SerializedName("type") + var type: String?=null, + + @SerializedName("value") + var value: String?=null, + + @SerializedName("message") + var message: String?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: PincodeCodStatusListingPage +*/ +@Parcelize +data class PincodeCodStatusListingPage( + + + + @SerializedName("type") + var type: String?=null, + + @SerializedName("has_next") + var hasNext: Boolean?=null, + + @SerializedName("item_total") + var itemTotal: Int?=null, + + @SerializedName("size") + var size: Int?=null, + + @SerializedName("current") + var current: Int?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: PincodeCodStatusListingSummary +*/ +@Parcelize +data class PincodeCodStatusListingSummary( + + + + @SerializedName("total_active_pincodes") + var totalActivePincodes: Int?=null, + + @SerializedName("total_inactive_pincodes") + var totalInactivePincodes: Int?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: PincodeMopUpdateAuditHistoryRequest +*/ +@Parcelize +data class PincodeMopUpdateAuditHistoryRequest( + + + + @SerializedName("entity_type") + var entityType: String?=null, + + @SerializedName("file_name") + var fileName: String?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: PincodeMopUpdateAuditHistoryPaging +*/ +@Parcelize +data class PincodeMopUpdateAuditHistoryPaging( + + + + @SerializedName("type") + var type: String?=null, + + @SerializedName("size") + var size: Int?=null, + + @SerializedName("current") + var current: Int?=null, + + @SerializedName("has_next") + var hasNext: Boolean?=null, + + @SerializedName("item_total") + var itemTotal: Int?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: PincodeMopUpdateAuditHistoryResponse +*/ +@Parcelize +data class PincodeMopUpdateAuditHistoryResponse( + + + + @SerializedName("batch_id") + var batchId: String?=null, + + @SerializedName("entity_type") + var entityType: String?=null, + + @SerializedName("error_file_s3_url") + var errorFileS3Url: String?=null, + + @SerializedName("s3_url") + var s3Url: String?=null, + + @SerializedName("file_name") + var fileName: String?=null, + + @SerializedName("updated_at") + var updatedAt: String?=null, + + @SerializedName("updated_by") + var updatedBy: String?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: PincodeMopUpdateAuditHistoryResponseData +*/ +@Parcelize +data class PincodeMopUpdateAuditHistoryResponseData( + + + + @SerializedName("entity_type") + var entityType: String?=null, + + @SerializedName("page") + var page: PincodeMopUpdateAuditHistoryPaging?=null, + + @SerializedName("data") + var data: ArrayList?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: Dp1 +*/ +@Parcelize +data class Dp1( + + + + @SerializedName("is_self_ship") + var isSelfShip: Boolean?=null, + + @SerializedName("name") + var name: String?=null, + + @SerializedName("plan_id") + var planId: String?=null, + + @SerializedName("stage") + var stage: String?=null, + + @SerializedName("account_id") + var accountId: String?=null, + + @SerializedName("dp_id") + var dpId: String?=null, + + @SerializedName("plan_rules") + var planRules: @RawValue HashMap?=null + +): Parcelable { + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: CompanyDpAccountRequest +*/ +@Parcelize +data class CompanyDpAccountRequest( + + + + @SerializedName("data") + var data: ArrayList?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: CompanyDpAccountResponse +*/ +@Parcelize +data class CompanyDpAccountResponse( + + + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: ErrorResponse +*/ +@Parcelize +data class ErrorResponse( + + + + @SerializedName("message") + var message: String?=null, + + @SerializedName("value") + var value: String?=null, + + @SerializedName("type") + var type: String?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: DpAccountFailureResponse +*/ +@Parcelize +data class DpAccountFailureResponse( + + + + @SerializedName("status_code") + var statusCode: Int?=null, + + @SerializedName("error") + var error: ArrayList?=null, + + @SerializedName("success") + var success: Boolean?=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: CompanyDpAccountListResponse +*/ +@Parcelize +data class CompanyDpAccountListResponse( + + + + @SerializedName("success") + var success: Boolean?=null, + + @SerializedName("page") + var page: Page?=null, + + @SerializedName("items") + var items: ArrayList?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: DpRulesUpdateRequest +*/ +@Parcelize +data class DpRulesUpdateRequest( + + + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("conditions") + var conditions: @RawValue ArrayList>?=null, + + @SerializedName("dp_ids") + var dpIds: @RawValue HashMap>?=null, + + @SerializedName("name") + var name: String?=null + +): Parcelable { + + + + + + + + + + + +} + + + + +/* + Model: DpRuleResponse +*/ +@Parcelize +data class DpRuleResponse( + + + + @SerializedName("created_on") + var createdOn: String?=null, + + @SerializedName("name") + var name: String?=null, + + @SerializedName("modified_by") + var modifiedBy: @RawValue HashMap?=null, + + @SerializedName("dp_ids") + var dpIds: @RawValue HashMap?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("modified_on") + var modifiedOn: String?=null, + + @SerializedName("uid") + var uid: String?=null, + + @SerializedName("created_by") + var createdBy: @RawValue HashMap?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("conditions") + var conditions: ArrayList?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: DpRuleUpdateSuccessResponse +*/ +@Parcelize +data class DpRuleUpdateSuccessResponse( + + + + @SerializedName("status_code") + var statusCode: Int?=null, + + @SerializedName("data") + var data: DpRuleResponse?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: FailureResponse +*/ +@Parcelize +data class FailureResponse( + + + + @SerializedName("status_code") + var statusCode: Int?=null, + + @SerializedName("error") + var error: ArrayList?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: DpSchemaInRuleListing +*/ +@Parcelize +data class DpSchemaInRuleListing( + + + + @SerializedName("is_self_ship") + var isSelfShip: Boolean?=null, + + @SerializedName("name") + var name: String?=null, + + @SerializedName("plan_id") + var planId: String?=null, + + @SerializedName("stage") + var stage: String?=null, + + @SerializedName("account_id") + var accountId: String?=null, + + @SerializedName("priority") + var priority: Int?=null, + + @SerializedName("dp_id") + var dpId: String?=null, + + @SerializedName("plan_rules") + var planRules: @RawValue HashMap?=null + +): Parcelable { + + + + + + + + + + + + + + + + + + + +} + + + + +/* + Model: DpRule +*/ +@Parcelize +data class DpRule( + + + + @SerializedName("name") + var name: String?=null, + + @SerializedName("dp_ids") + var dpIds: HashMap?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("conditions") + var conditions: @RawValue ArrayList>?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: DpRuleSuccessResponse +*/ +@Parcelize +data class DpRuleSuccessResponse( + + + + @SerializedName("status_code") + var statusCode: Int?=null, + + @SerializedName("data") + var data: DpRule?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: DpIds +*/ +@Parcelize +data class DpIds( + + + + @SerializedName("enabled") + var enabled: Boolean?=null, + + @SerializedName("priority") + var priority: Int?=null, + + @SerializedName("meta") + var meta: @RawValue HashMap?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: DpRuleRequest +*/ +@Parcelize +data class DpRuleRequest( + + + + @SerializedName("name") + var name: String?=null, + + @SerializedName("dp_ids") + var dpIds: HashMap?=null, + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("company_id") + var companyId: Int?=null, + + @SerializedName("conditions") + var conditions: @RawValue ArrayList>?=null + +): Parcelable { + + + + + + + + + + + + + +} + + + + +/* + Model: DpMultipleRuleSuccessResponse +*/ +@Parcelize +data class DpMultipleRuleSuccessResponse( + + + + @SerializedName("success") + var success: Boolean?=null, + + @SerializedName("page") + var page: Page?=null, + + @SerializedName("items") + var items: ArrayList?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: DPCompanyRuleRequest +*/ +@Parcelize +data class DPCompanyRuleRequest( + + + + @SerializedName("rule_ids") + var ruleIds: ArrayList?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: DPCompanyRuleResponse +*/ +@Parcelize +data class DPCompanyRuleResponse( + + + + @SerializedName("status_code") + var statusCode: Int?=null, + + @SerializedName("data") + var data: ArrayList?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: DPApplicationRuleRequest +*/ +@Parcelize +data class DPApplicationRuleRequest( + + + + @SerializedName("shipping_rules") + var shippingRules: ArrayList?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: DPApplicationRuleResponse +*/ +@Parcelize +data class DPApplicationRuleResponse( + + + + @SerializedName("status_code") + var statusCode: Boolean?=null, + + @SerializedName("data") + var data: ArrayList?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + +} + + + + +/* + Model: SelfShipResponse +*/ +@Parcelize +data class SelfShipResponse( + + + + @SerializedName("is_active") + var isActive: Boolean?=null, + + @SerializedName("tat") + var tat: Double?=null + +): Parcelable { + + + + + + + +} + + + + +/* + Model: ApplicationSelfShipConfig +*/ +@Parcelize +data class ApplicationSelfShipConfig( + + + + @SerializedName("self_ship") + var selfShip: SelfShipResponse?=null + +): Parcelable { + + + + + +} + + + + +/* + Model: ApplicationSelfShipConfigResponse +*/ +@Parcelize +data class ApplicationSelfShipConfigResponse( + + + + @SerializedName("error") + var error: ServiceabilityErrorResponse?=null, + + @SerializedName("data") + var data: ApplicationSelfShipConfig?=null, + + @SerializedName("success") + var success: Boolean?=null + +): Parcelable { + + + + + + + + + +} + + +