From 0bcd72769bb5139a944b63cba8a00bc3bd9dc796 Mon Sep 17 00:00:00 2001 From: Nikhil Manapure Date: Wed, 11 Sep 2024 16:55:41 +0000 Subject: [PATCH] [Auto Generated] v1.0 --- documentation/application/MULTIKYC.md | 20 + documentation/application/PAYMENT.md | 245 +- documentation/application/TRANSACTION.md | 546 ++- documentation/application/USER.md | 97 +- documentation/platform/CREDIT.md | 660 +++- documentation/platform/CUSTOMER.md | 111 +- documentation/platform/MERCHANT.md | 4 + documentation/platform/MULTIKYC.md | 20 + documentation/platform/PAYMENTS.md | 16 + documentation/public/MERCHANT.md | 4 + documentation/public/MULTIKYC.md | 25 +- documentation/public/TRANSACTION.md | 440 ++- documentation/public/USER.md | 38 +- .../com/sdk/platform/PlatformApiList.java | 36 + .../java/com/sdk/platform/PlatformModels.java | 3038 +++++++++++++---- .../com/sdk/platform/PlatformService.java | 70 + 16 files changed, 4560 insertions(+), 810 deletions(-) diff --git a/documentation/application/MULTIKYC.md b/documentation/application/MULTIKYC.md index b3b8aa2..83164a7 100644 --- a/documentation/application/MULTIKYC.md +++ b/documentation/application/MULTIKYC.md @@ -10379,6 +10379,20 @@ API endpoint to create a signed URL for uploading documents to and downloading d + #### [RetriggerLenderOnboardRequestV2](#RetriggerLenderOnboardRequestV2) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | lenderUserId | String | no | | + | stepName | String | no | | + | data | Object | no | | + | entityMapId | String | no | | + +--- + + + + #### [BusinessDetail](#BusinessDetail) | Properties | Type | Nullable | Description | @@ -10849,6 +10863,10 @@ API endpoint to create a signed URL for uploading documents to and downloading d | id | String | no | | | name | String | no | | | active | Boolean | no | | + | baseUrl | String? | yes | | + | config | Object? | yes | | + | paymentOptions | ArrayList? | yes | | + | credentialsSchema | Object? | yes | | --- @@ -10866,6 +10884,8 @@ API endpoint to create a signed URL for uploading documents to and downloading d | lenderId | String | no | | | pgId | String | no | | | active | Boolean | no | | + | config | Object? | yes | | + | paymentOptions | ArrayList? | yes | | --- diff --git a/documentation/application/PAYMENT.md b/documentation/application/PAYMENT.md index b43bcdf..199dd18 100644 --- a/documentation/application/PAYMENT.md +++ b/documentation/application/PAYMENT.md @@ -10,14 +10,15 @@ KYC Service * [downpaymentUsingNetbanking](#downpaymentusingnetbanking) * [downpaymentUsingUPI](#downpaymentusingupi) * [checkDownpaymentStatus](#checkdownpaymentstatus) -* [paymentOptions](#paymentoptions) +* [registerUPIMandate](#registerupimandate) +* [mandateStatusCheck](#mandatestatuscheck) * [autoPayStatus](#autopaystatus) +* [paymentOptions](#paymentoptions) * [repaymentUsingNetbanking](#repaymentusingnetbanking) * [repaymentUsingUPI](#repaymentusingupi) -* [registerUPIMandate](#registerupimandate) -* [mandateStatusCheck](#mandatestatuscheck) * [checkPaymentStatus](#checkpaymentstatus) * [getOutstandingAmount](#getoutstandingamount) +* [getOutstandingAmountByEntityMapId](#getoutstandingamountbyentitymapid) @@ -271,14 +272,14 @@ Success. Returns a success message as shown below. Refer `TransactionStatusRespo --- -### paymentOptions -Get List of Payment Options Available +### registerUPIMandate +MandateRegistration ```java -payment.paymentOptions( lenderSlug) { +payment.registerUPIMandate( lenderSlug, body body) { //use response } ``` @@ -288,19 +289,19 @@ payment.paymentOptions( lenderSlug) { | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | lenderSlug | String | yes | This is lender slug | +| body | [RegisterUPIMandateRequest](#RegisterUPIMandateRequest) | yes | Request body | - -Use this API to get list of payment options available +Use this API to register upi mandate for user. *Returned Response:* -[PaymentOptionsResponse](#PaymentOptionsResponse) +[RegisterUPIMandateResponse](#RegisterUPIMandateResponse) -Success. Returns a JSON object as shown below. Refer `PaymentOptionsResponse` for more details. +Success. Returns a success message as shown below. Refer `RegisterUPIMandateResponse` for more details. @@ -310,36 +311,9 @@ Success. Returns a JSON object as shown below. Refer `PaymentOptionsResponse` fo ```json { - "paymentOptions": [ - { - "title": "UPI ID", - "kind": "upiID", - "options": null - }, - { - "title": "UPI Apps", - "kind": "upiApps", - "options": [ - { - "title": "Google PAY", - "imageUrl": "", - "uid": "GPAY" - } - ] - }, - { - "title": "Netbanking", - "kind": "netBanking", - "options": [ - { - "title": "State Bank of India", - "shortTitle": "SBI", - "uid": "1038", - "imageUrl": "https://pp-checkout.jiopay.com:8443/images/logos/StateBankofIndia.gif" - } - ] - } - ] + "transactionId": "10322234354461670000", + "expiry": 180, + "interval": 5 } ``` @@ -355,31 +329,36 @@ Success. Returns a JSON object as shown below. Refer `PaymentOptionsResponse` fo --- -### autoPayStatus -Get status of AutoPay +### mandateStatusCheck +Repayment ```java -payment.autoPayStatus() { +payment.mandateStatusCheck( lenderSlug, body body) { //use response } ``` +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| lenderSlug | String | yes | This is lender slug | +| body | [RegisterUPIMandateStatusCheckRequest](#RegisterUPIMandateStatusCheckRequest) | yes | Request body | + -Use this API to get status of AutoPay +Use this API to repayment for user. *Returned Response:* -[AutoPayStatusResponse](#AutoPayStatusResponse) +[RegisterMandateStatusCheckResponse](#RegisterMandateStatusCheckResponse) -Success. Returns a JSON object as shown below. Refer `AutoPayStatusResponse` for more details. +Success. Returns a success message as shown below. Refer `RegisterMandateStatusCheckResponse` for more details. @@ -389,7 +368,7 @@ Success. Returns a JSON object as shown below. Refer `AutoPayStatusResponse` for ```json { - "status": "PENDING" + "status": "INITIATED" } ``` @@ -405,36 +384,31 @@ Success. Returns a JSON object as shown below. Refer `AutoPayStatusResponse` for --- -### repaymentUsingNetbanking -Repayment +### autoPayStatus +Get status of AutoPay ```java -payment.repaymentUsingNetbanking( lenderSlug, body body) { +payment.autoPayStatus() { //use response } ``` -| Argument | Type | Required | Description | -| --------- | ----- | -------- | ----------- | -| lenderSlug | String | yes | This is lender slug | -| body | [RepaymentUsingNetbanking](#RepaymentUsingNetbanking) | yes | Request body | - -Use this API to repayment for user. +Use this API to get status of AutoPay *Returned Response:* -[RepaymentUsingNetbankingResponse](#RepaymentUsingNetbankingResponse) +[AutoPayStatusResponse](#AutoPayStatusResponse) -Success. Returns a html as shown below. for more details. +Success. Returns a JSON object as shown below. Refer `AutoPayStatusResponse` for more details. @@ -444,7 +418,7 @@ Success. Returns a html as shown below. for more details. ```json { - "form": "" + "status": "PENDING" } ``` @@ -460,14 +434,14 @@ Success. Returns a html as shown below. for more details. --- -### repaymentUsingUPI -Repayment +### paymentOptions +Get List of Payment Options Available ```java -payment.repaymentUsingUPI( lenderSlug, body body) { +payment.paymentOptions( lenderSlug) { //use response } ``` @@ -477,19 +451,19 @@ payment.repaymentUsingUPI( lenderSlug, body body) { | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | lenderSlug | String | yes | This is lender slug | -| body | [RepaymentUsingUPI](#RepaymentUsingUPI) | yes | Request body | -Use this API to repayment for user + +Use this API to get list of payment options available *Returned Response:* -[RepaymentUsingUPIResponse](#RepaymentUsingUPIResponse) +[PaymentOptionsResponse](#PaymentOptionsResponse) -Success. Returns a success message as shown below. Refer `RepaymentUsingUPIResponse` for more details. +Success. Returns a JSON object as shown below. Refer `PaymentOptionsResponse` for more details. @@ -499,7 +473,36 @@ Success. Returns a success message as shown below. Refer `RepaymentUsingUPIRespo ```json { - "status": "INITIATED" + "paymentOptions": [ + { + "title": "UPI ID", + "kind": "upiID", + "options": null + }, + { + "title": "UPI Apps", + "kind": "upiApps", + "options": [ + { + "title": "Google PAY", + "imageUrl": "", + "uid": "GPAY" + } + ] + }, + { + "title": "Netbanking", + "kind": "netBanking", + "options": [ + { + "title": "State Bank of India", + "shortTitle": "SBI", + "uid": "1038", + "imageUrl": "https://pp-checkout.jiopay.com:8443/images/logos/StateBankofIndia.gif" + } + ] + } + ] } ``` @@ -515,14 +518,14 @@ Success. Returns a success message as shown below. Refer `RepaymentUsingUPIRespo --- -### registerUPIMandate -MandateRegistration +### repaymentUsingNetbanking +Repayment ```java -payment.registerUPIMandate( lenderSlug, body body) { +payment.repaymentUsingNetbanking( lenderSlug, body body) { //use response } ``` @@ -532,19 +535,19 @@ payment.registerUPIMandate( lenderSlug, body body) { | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | lenderSlug | String | yes | This is lender slug | -| body | [RegisterUPIMandateRequest](#RegisterUPIMandateRequest) | yes | Request body | +| body | [RepaymentUsingNetbanking](#RepaymentUsingNetbanking) | yes | Request body | -Use this API to register upi mandate for user. +Use this API to repayment for user. *Returned Response:* -[RegisterUPIMandateResponse](#RegisterUPIMandateResponse) +[RepaymentUsingNetbankingResponse](#RepaymentUsingNetbankingResponse) -Success. Returns a success message as shown below. Refer `RegisterUPIMandateResponse` for more details. +Success. Returns a html as shown below. for more details. @@ -554,9 +557,7 @@ Success. Returns a success message as shown below. Refer `RegisterUPIMandateResp ```json { - "transactionId": "10322234354461670000", - "expiry": 180, - "interval": 5 + "form": "" } ``` @@ -572,14 +573,14 @@ Success. Returns a success message as shown below. Refer `RegisterUPIMandateResp --- -### mandateStatusCheck +### repaymentUsingUPI Repayment ```java -payment.mandateStatusCheck( lenderSlug, body body) { +payment.repaymentUsingUPI( lenderSlug, body body) { //use response } ``` @@ -589,19 +590,19 @@ payment.mandateStatusCheck( lenderSlug, body body) { | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | lenderSlug | String | yes | This is lender slug | -| body | [RegisterUPIMandateStatusCheckRequest](#RegisterUPIMandateStatusCheckRequest) | yes | Request body | +| body | [RepaymentUsingUPI](#RepaymentUsingUPI) | yes | Request body | -Use this API to repayment for user. +Use this API to repayment for user *Returned Response:* -[RegisterMandateStatusCheckResponse](#RegisterMandateStatusCheckResponse) +[RepaymentUsingUPIResponse](#RepaymentUsingUPIResponse) -Success. Returns a success message as shown below. Refer `RegisterMandateStatusCheckResponse` for more details. +Success. Returns a success message as shown below. Refer `RepaymentUsingUPIResponse` for more details. @@ -687,7 +688,7 @@ Get Outstanding amount for repayment ```java -payment.getOutstandingAmount( lenderSlug, viewType) { +payment.getOutstandingAmount( lenderSlug, viewType, leadId) { //use response } ``` @@ -697,7 +698,65 @@ payment.getOutstandingAmount( lenderSlug, viewType) { | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | lenderSlug | String | yes | This is lender slug | -| viewType | String | yes | This is lender slug | +| viewType | String | yes | This is lender slug | +| leadId | String? | no | This is TRXN Id, to be used for single TRXN repayment | + + + +Use this API to get Outstanding amount for repayment + +*Returned Response:* + + + + +[OutstandingDetail](#OutstandingDetail) + +Success. Returns a JSON object as shown below. Refer `OutstandingDetail` for more details. + + + + +
+  Example: + +```json +{ + "outstanding": "100" +} +``` +
+ + + + + + + + + +--- + + +### getOutstandingAmountByEntityMapId +Get Outstanding amount for repayment + + + + +```java +payment.getOutstandingAmountByEntityMapId( entityMapId, viewType, leadId) { + //use response +} +``` + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| entityMapId | String | yes | This is entity map id | +| viewType | String | yes | This is lender slug | +| leadId | String? | no | This is TRXN Id, to be used for single TRXN repayment | @@ -819,6 +878,7 @@ Success. Returns a JSON object as shown below. Refer `OutstandingDetail` for mor | bankId | String | no | | | bankName | String | no | | | chargeToken | String? | yes | | + | transactionId | String? | yes | | --- @@ -846,6 +906,7 @@ Success. Returns a JSON object as shown below. Refer `OutstandingDetail` for mor | amount | Double | no | | | vpa | String | no | | | chargeToken | String? | yes | | + | transactionId | String? | yes | | --- @@ -1165,6 +1226,20 @@ Success. Returns a JSON object as shown below. Refer `OutstandingDetail` for mor + #### [CheckEMandateStatusRequest](#CheckEMandateStatusRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderId | String? | yes | | + | paymentId | String? | yes | | + | scheduledEnd | String? | yes | | + | ruleAmountValue | String? | yes | | + +--- + + + + #### [AutoPayStatusResponse](#AutoPayStatusResponse) | Properties | Type | Nullable | Description | diff --git a/documentation/application/TRANSACTION.md b/documentation/application/TRANSACTION.md index 0d05736..c9146de 100644 --- a/documentation/application/TRANSACTION.md +++ b/documentation/application/TRANSACTION.md @@ -9,6 +9,8 @@ Transaction Service * [disburse](#disburse) * [plans](#plans) * [kfs](#kfs) +* [registerTransaction](#registertransaction) +* [updateTransaction](#updatetransaction) * [listOfTransactions](#listoftransactions) * [loadTransactionById](#loadtransactionbyid) @@ -191,6 +193,110 @@ true +--- + + +### registerTransaction +Registers a transaction against an order. + + + + +```java +transaction.registerTransaction(body body) { + //use response +} +``` + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [RegisterTransaction](#RegisterTransaction) | yes | Request body | + + +This endpoint uses ONBOARDING TOKEN responsible for creating a new transaction record in the database with states such as PENDING or CANCELLED, based on the provided details. + +*Returned Response:* + + + + +[RegisterTransactionResponse](#RegisterTransactionResponse) + +Success. Returns a JSON object as shown below. Refer `RegisterTransactionResponse` for more details. + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + +--- + + +### updateTransaction +Updates a transaction's status to CANCELLED in the database. + + + + +```java +transaction.updateTransaction(body body) { + //use response +} +``` + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| body | [UpdateTransactionRequest](#UpdateTransactionRequest) | yes | Request body | + + +This endpoint uses CHARGE_TOKEN to update the status of a transaction and its associated order to CANCELLED, effectively marking the transaction as void. + +*Returned Response:* + + + + +[UpdateTransactionResponse](#UpdateTransactionResponse) + +Transaction updated successfully. Refer `UpdateTransactionResponse` schema for response format. + + + + +
+  Example: + +```json + +``` +
+ + + + + + + + + --- @@ -259,7 +365,7 @@ Success. Returns a JSON object as shown below. Refer `TransactionResponse` for m ### loadTransactionById -Get List of transactions +Get transaction details @@ -278,16 +384,16 @@ transaction.loadTransactionById( transactionId) { -Use this API to get list of user's transaction. +Use this API to get transaction details by transaction id. *Returned Response:* -[Transactions](#Transactions) +[TransactionDetails](#TransactionDetails) -Success. Returns a JSON object as shown below. Refer `Transactions` for more details. +Success. Returns a JSON object as shown below. Refer `TransactionDetails` for more details. @@ -534,6 +640,87 @@ Success. Returns a JSON object as shown below. Refer `Transactions` for more det | paidPercent | Double? | yes | | | lenderDetail | [LenderDetail](#LenderDetail)? | yes | | | emis | ArrayList<[Emi](#Emi)>? | yes | | + +--- + + + + + #### [GroupedEmiLoanAccount](#GroupedEmiLoanAccount) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | loanAccountNumber | String | no | | + | kfs | String? | yes | | + | sanctionLetter | String? | yes | | + | remark | String? | yes | | + | createdAt | String | no | | + | updatedAt | String | no | | + | amount | Double | no | | + | repaidAmount | Double | no | | + | paid | Boolean | no | | + | overdue | Boolean | no | | + | repaymentDate | String? | yes | | + | paidPercent | Double | no | | + | lenderDetail | [LenderDetail](#LenderDetail) | no | | + +--- + + + + + #### [GroupedEmi](#GroupedEmi) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String? | yes | | + | installmentno | Double? | yes | | + | amount | Double? | yes | | + | dueDate | String? | yes | | + | referenceTransactionId | String? | yes | | + | createdAt | String? | yes | | + | updatedAt | String? | yes | | + | paid | Boolean? | yes | | + | overdue | Boolean? | yes | | + | repaymentDate | String? | yes | | + | paidPercent | Double? | yes | | + | repaidAmount | Double? | yes | | + | loanAccounts | ArrayList<[GroupedEmiLoanAccount](#GroupedEmiLoanAccount)>? | yes | | + +--- + + + + + #### [TransactionDetails](#TransactionDetails) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String | no | | + | userId | String | no | | + | partnerId | String | no | | + | partner | String | no | | + | partnerLogo | String | no | | + | status | String | no | | + | type | String? | yes | | + | remark | String? | yes | | + | amount | Double | no | | + | loanAccountNumber | String? | yes | | + | kfs | String? | yes | | + | utr | String? | yes | | + | sanctionLetter | String? | yes | | + | orderId | String? | yes | | + | refundId | String? | yes | | + | createdAt | String | no | | + | lenderId | String? | yes | | + | lenderName | String? | yes | | + | lenderLogo | String? | yes | | + | loanType | String? | yes | | + | nextDueDate | String? | yes | | + | paidPercent | Double? | yes | | + | lenderDetail | [LenderDetail](#LenderDetail)? | yes | | + | emis | ArrayList<[GroupedEmi](#GroupedEmi)>? | yes | | + | summary | [TransactionSummary](#TransactionSummary)? | yes | | | headers | HashMap? | yes | | --- @@ -541,6 +728,55 @@ Success. Returns a JSON object as shown below. Refer `Transactions` for more det + #### [TransactionSummary](#TransactionSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | capturedAmount | Double | no | The total captured amount. This is the sum of the amounts of all captured shipments. | + | uncapturedAmount | Double | no | The total uncaptured amount. This is calculated as totalAmount - capturedAmount. | + | capturedAmountForDisbursal | Double | no | The total amount captured for disbursal. This represents the sum of amounts from all shipments marked for disbursal. | + | capturedAmountForCancellation | Double | no | The total amount captured for cancellation. This aggregates the amounts from all shipments identified for cancellation. | + | data | ArrayList<[TransactionSummaryData](#TransactionSummaryData)> | no | | + +--- + + + + + #### [TransactionSummaryData](#TransactionSummaryData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | display | [TransactionSummaryDataDisplay](#TransactionSummaryDataDisplay)? | yes | | + +--- + + + + + #### [TransactionSummaryDataDisplay](#TransactionSummaryDataDisplay) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | primary | [TransactionSummaryDataDisplayType](#TransactionSummaryDataDisplayType)? | yes | | + | secondary | [TransactionSummaryDataDisplayType](#TransactionSummaryDataDisplayType)? | yes | | + +--- + + + + + #### [TransactionSummaryDataDisplayType](#TransactionSummaryDataDisplayType) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | text | String? | yes | | + +--- + + + + #### [LenderDetail](#LenderDetail) | Properties | Type | Nullable | Description | @@ -1145,12 +1381,188 @@ Success. Returns a JSON object as shown below. Refer `Transactions` for more det + #### [OrderShipmentAddressGeoLocation](#OrderShipmentAddressGeoLocation) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | latitude | Double | no | The latitude of the location. | + | longitude | Double | no | The longitude of the location. | + +--- + + + + + #### [OrderShipmentAddress](#OrderShipmentAddress) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | line1 | String? | yes | The first line of the address. | + | line2 | String? | yes | The second line of the address. | + | city | String? | yes | The city of the address. | + | state | String? | yes | The state of the address. | + | country | String? | yes | The country of the address. | + | pincode | String? | yes | The postal code of the address. | + | type | String? | yes | The type of address (e.g., residential, business). | + | geoLocation | [OrderShipmentAddressGeoLocation](#OrderShipmentAddressGeoLocation)? | yes | The geographical location of the address. | + +--- + + + + + #### [OrderShipmentItem](#OrderShipmentItem) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | category | String? | yes | The category of the item. | + | sku | String? | yes | The stock keeping unit for the item. | + | rate | Double? | yes | The price of a single item. | + | quantity | Double? | yes | The quantity of the item. | + +--- + + + + + #### [OrderShipment](#OrderShipment) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String | no | The identifier for the shipment. | + | urn | String? | yes | A unique reference number for the shipment. This is optional; the system will generate a URN if not provided. There can be multiple shipment objects with the same shipment ID, making the URN a unique identifier within the system. | + | amount | Double | no | The amount corresponding to the shipment that is subject to the status update. | + | timestamp | String | no | The timestamp when the status of the shipment was updated. | + | status | String | no | The current status of the shipment. | + | remark | String? | yes | Any remarks regarding the shipment. | + | items | ArrayList<[OrderShipmentItem](#OrderShipmentItem)>? | yes | The list of items in the shipment. | + | shippingAddress | [OrderShipmentAddress](#OrderShipmentAddress)? | yes | The shipping address for the shipment. | + | billingAddress | [OrderShipmentAddress](#OrderShipmentAddress)? | yes | The billing address for the shipment. | + +--- + + + + + #### [OrderDeliveryUpdatesBody](#OrderDeliveryUpdatesBody) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderId | String? | yes | The unique identifier for the order. Required if transactionId is not provided. | + | transactionId | String? | yes | The unique identifier for the transaction. Required if orderId is not provided. | + | includeSummary | Boolean? | yes | A flag to include a summary object in the response, containing data like processed amount and unprocessed amount. | + | shipments | ArrayList<[OrderShipment](#OrderShipment)> | no | The list of shipments for which the status needs to be updated. Only include shipments requiring a status change. | + +--- + + + + + #### [OrderShipmentSummary](#OrderShipmentSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderAmount | Double | no | The total order amount. | + | capturedAmount | Double | no | The total captured amount. This is the sum of the amounts of all captured shipments. | + | uncapturedAmount | Double | no | The total uncaptured amount. This is calculated as totalAmount - capturedAmount. | + | capturedAmountForDisbursal | Double | no | The total amount captured for disbursal. This represents the sum of amounts from all shipments marked for disbursal. | + | capturedAmountForCancellation | Double | no | The total amount captured for cancellation. This aggregates the amounts from all shipments identified for cancellation. | + +--- + + + + + #### [OrderShipmentResponse](#OrderShipmentResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String | no | The unique identifier of the shipment. | + | urn | String | no | A unique resource identifier for the shipment. | + | shipmentStatus | String | no | The status of the shipment. | + | shipmentAmount | Double | no | The total amount associated with the shipment. | + | processingStatus | String | no | The processing status of the order shipment. | + +--- + + + + + #### [OrderDeliveryUpdatesData](#OrderDeliveryUpdatesData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderId | String | no | The unique identifier for the order. | + | transactionId | String | no | The unique identifier for the order. | + | shipments | ArrayList<[OrderShipmentResponse](#OrderShipmentResponse)> | no | The list of shipments for which the status was updated. | + | summary | [OrderShipmentSummary](#OrderShipmentSummary)? | yes | A summary object containing various amounts related to the order. | + +--- + + + + + #### [OrderDeliveryUpdatesResponse](#OrderDeliveryUpdatesResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [OrderDeliveryUpdatesData](#OrderDeliveryUpdatesData) | no | | + +--- + + + + + #### [OrderDeliveryUpdatesPartialResponse](#OrderDeliveryUpdatesPartialResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [OrderDeliveryUpdatesData](#OrderDeliveryUpdatesData) | no | | + | errors | ArrayList<[OrderDeliveryUpdatesError](#OrderDeliveryUpdatesError)>? | yes | | + +--- + + + + + #### [OrderDeliveryUpdatesError](#OrderDeliveryUpdatesError) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | code | String | no | Error code representing the type of error. | + | message | String | no | A human-readable message providing more details about the error. | + | exception | String | no | The exception name or type. | + +--- + + + + + #### [TransactionOrderSummary](#TransactionOrderSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | capturedAmount | Double | no | The total captured amount. This is the sum of the amounts of all captured shipments. | + | uncapturedAmount | Double | no | The total uncaptured amount. This is calculated as totalAmount - capturedAmount. | + | capturedAmountForDisbursal | Double | no | The total amount captured for disbursal. This represents the sum of amounts from all shipments marked for disbursal. | + | capturedAmountForCancellation | Double | no | The total amount captured for cancellation. This aggregates the amounts from all shipments identified for cancellation. | + +--- + + + + #### [TransactionOrder](#TransactionOrder) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | id | String | no | Unique identifier of the order. | | amount | Double | no | Total amount of the order. | + | summary | [TransactionOrderSummary](#TransactionOrderSummary)? | yes | | --- @@ -1278,6 +1690,48 @@ Success. Returns a JSON object as shown below. Refer `Transactions` for more det + #### [SettlementTransactions](#SettlementTransactions) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String? | yes | Unique identifier for the transaction. | + | utr | String? | yes | Unique transaction reference number. | + | amount | Double? | yes | The amount involved in the transaction. | + | settlementStatus | String? | yes | Status of the transaction. | + | orderId | String? | yes | Identifier for the associated order. | + | createdAt | String? | yes | The time the transaction occurred | + | settlementTime | String? | yes | The time the transaction settles and transaction status updated | + +--- + + + + + #### [GetSettlementTransactionsData](#GetSettlementTransactionsData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | transactions | ArrayList<[SettlementTransactions](#SettlementTransactions)> | no | | + | page | [Pagination](#Pagination) | no | | + +--- + + + + + #### [GetSettlementTransactionsResponse](#GetSettlementTransactionsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [GetSettlementTransactionsData](#GetSettlementTransactionsData) | no | | + +--- + + + + #### [SummaryRequest](#SummaryRequest) | Properties | Type | Nullable | Description | @@ -1290,4 +1744,88 @@ Success. Returns a JSON object as shown below. Refer `Transactions` for more det --- + + + #### [RegisterTransaction](#RegisterTransaction) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | intent | String? | yes | | + | token | String | no | | + +--- + + + + + #### [RegisterTransactionResponseData](#RegisterTransactionResponseData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | isExistingOrder | Boolean? | yes | Indicates whether the order already exists. | + | transaction | Object? | yes | The transaction details, which is unkown. | + | action | Boolean? | yes | | + | status | String? | yes | The status of the transaction. | + | message | String? | yes | A message related to the transaction status. | + +--- + + + + + #### [RegisterTransactionResponseResult](#RegisterTransactionResponseResult) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | redirectUrl | String? | yes | URL to redirect the user to, if applicable. | + +--- + + + + + #### [RegisterTransactionResponse](#RegisterTransactionResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | result | [RegisterTransactionResponseResult](#RegisterTransactionResponseResult)? | yes | | + | action | HashMap? | yes | An object for future use, currently empty. | + | data | [RegisterTransactionResponseData](#RegisterTransactionResponseData)? | yes | | + | transactionId | String? | yes | The unique identifier of the transaction. | + | status | String? | yes | The status of the user related to the payment process. | + | message | String? | yes | A message related to the user status. | + | headers | HashMap? | yes | | + +--- + + + + + #### [UpdateTransactionRequest](#UpdateTransactionRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | intent | String | no | | + | token | String | no | | + +--- + + + + + #### [UpdateTransactionResponse](#UpdateTransactionResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | result | [RegisterTransactionResponseResult](#RegisterTransactionResponseResult)? | yes | | + | action | HashMap? | yes | An object for future use, currently empty. | + | data | [RegisterTransactionResponseData](#RegisterTransactionResponseData)? | yes | | + | transactionId | String? | yes | The unique identifier of the transaction. | + | status | String? | yes | The status of the user related to the payment process. | + | message | String? | yes | A message related to the user status. | + | headers | HashMap? | yes | | + +--- + + diff --git a/documentation/application/USER.md b/documentation/application/USER.md index 23b8a82..52a257c 100644 --- a/documentation/application/USER.md +++ b/documentation/application/USER.md @@ -29,6 +29,7 @@ Authentication Service * [getFaqs](#getfaqs) * [getFaqById](#getfaqbyid) * [verifyMagicLink](#verifymagiclink) +* [getMerchantDetails](#getmerchantdetails) * [getMobileNavigations](#getmobilenavigations) * [getDesktopNavigations](#getdesktopnavigations) * [getUserState](#getuserstate) @@ -1418,6 +1419,65 @@ Success. Returns a JSON object as shown below. Refer `VerifyMagicLinkResponse` f +--- + + +### getMerchantDetails +Get Merchant Detials + + + + +```java +user.getMerchantDetails( merchantId) { + //use response +} +``` + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| merchantId | String | yes | This is merchantId | + + + +Use this API to get merchant related details for a user. + +*Returned Response:* + + + + +[MerchantDetailsResponse](#MerchantDetailsResponse) + +Success. Check the example shown below or refer `MerchantDetailsResponse` for more details. + + + + +
+  Examples: + + +
+  $ref + +```json +"#/components/examples/MerchantDetailsResponseExample" +``` +
+ +
+ + + + + + + + + --- @@ -2405,6 +2465,7 @@ Success. Check the example shown below or refer `ProfileEditSuccess` for more de | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | token | String | no | | + | intent | String? | yes | | --- @@ -2827,6 +2888,27 @@ Success. Check the example shown below or refer `ProfileEditSuccess` for more de + #### [MerchantDetailsResponse](#MerchantDetailsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String? | yes | Unique identifier for the business | + | website | String? | yes | Website URL of the business | + | businessAddress | String? | yes | Physical address of the business | + | pincode | String? | yes | Pincode for the business address | + | logo | String? | yes | URL to the business logo | + | gstIn | String? | yes | GST number of the business, can be null | + | businessName | String? | yes | Business name of the merchant | + | name | String? | yes | Name of the merchant | + | supportEmail | String? | yes | Support email of the merchant | + | description | String? | yes | Description of the Merchant. | + | headers | HashMap? | yes | | + +--- + + + + #### [NavigationsMobileResponse](#NavigationsMobileResponse) | Properties | Type | Nullable | Description | @@ -3314,7 +3396,7 @@ Success. Check the example shown below or refer `ProfileEditSuccess` for more de - #### [UserResponse](#UserResponse) + #### [UserResponseData](#UserResponseData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | @@ -3327,6 +3409,19 @@ Success. Check the example shown below or refer `ProfileEditSuccess` for more de + #### [UserResponse](#UserResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [UserResponseData](#UserResponseData) | no | | + +--- + + + + #### [UserDetailRequest](#UserDetailRequest) | Properties | Type | Nullable | Description | diff --git a/documentation/platform/CREDIT.md b/documentation/platform/CREDIT.md index 7000e16..d3eff7c 100644 --- a/documentation/platform/CREDIT.md +++ b/documentation/platform/CREDIT.md @@ -8,7 +8,9 @@ Transaction Service * [getOrderStatus](#getorderstatus) * [getEligiblePlans](#geteligibleplans) +* [updateOrderDeliveryStatus](#updateorderdeliverystatus) * [getTransactions](#gettransactions) +* [getSettledTransactions](#getsettledtransactions) @@ -156,6 +158,132 @@ true +--- + + +### updateOrderDeliveryStatus +Update delivery status for an order + + + + +```java +credit.updateOrderDeliveryStatus(body body) { + //use response +} +``` + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| organizationId | String | yes | This is organization id | +| body | [OrderDeliveryUpdatesBody](#OrderDeliveryUpdatesBody) | yes | Request body | + + +This API updates an order's delivery status using the order ID or transaction ID and manages loan disbursal or cancellation following delivery. It is utilized when the system configuration is set to delay loan disbursal until after delivery, indicated by the 'DELAYED' type and 'DELIVERY' event. If 'delayDays' is set to 0, disbursal occurs within an hour after delivery. Additionally, this API facilitates loan cancellation through specific shipment statuses, offering a precise method for loan management based on delivery outcomes. + +*Returned Response:* + + + + +[OrderDeliveryUpdatesResponse](#OrderDeliveryUpdatesResponse) + +Success. Returns a JSON object as shown below. Refer `OrderDeliveryUpdatesResponse` for more details. + + + + +
+  Examples: + + +
+  OrderDeliveryUpdatesResponseExample + +```json +{ + "value": { + "message": "The request has been processed successfully.", + "data": { + "orderId": "ORD1234", + "transactionId": "TXN1234", + "shipments": [ + { + "id": "ship12345", + "urn": "ship12345_0", + "shipmentStatus": "CANCELLED", + "shipmentAmount": 100, + "processingStatus": "CAPTURED" + }, + { + "id": "ship12345", + "urn": "ship12345_1", + "shipmentStatus": "DELIVERED", + "shipmentAmount": 500, + "processingStatus": "CAPTURED" + } + ], + "summary": { + "orderAmount": 600, + "capturedAmount": 600, + "uncapturedAmount": 0, + "capturedAmountForDisbursal": 500, + "capturedAmountForCancellation": 100 + } + }, + "meta": { + "timestamp": "2024-07-16T12:07:26.979Z", + "version": "v1.0", + "product": "Settle Checkout" + } + } +} +``` +
+ +
+ + + + + + + + + +[OrderDeliveryUpdatesPartialResponse](#OrderDeliveryUpdatesPartialResponse) + +Partial Success. The request was successfully processed for some shipments, but not for others. The response includes detailed information about which parts of the request were successful and which were not. + + + + +
+  Examples: + + +
+  OrderDeliveryUpdatesPartialExample + +```json +{ + "$ref": "#/components/examples/OrderDeliveryUpdatesPartialExample" +} +``` +
+ +
+ + + + + + + + + --- @@ -229,7 +357,13 @@ Success. The request has been processed successfully and the response contains t }, "order": { "id": "ORD1234", - "amount": 5000 + "amount": 5000, + "summary": { + "uncapturedAmount": 2000, + "capturedAmount": 3000, + "capturedAmountForDisbursal": 1800, + "capturedAmountForCancellation": 1200 + } }, "loans": [ { @@ -308,6 +442,100 @@ Success. The request has been processed successfully and the response contains t +--- + + +### getSettledTransactions +Get list of settled transactions + + + + +```java +credit.getSettledTransactions( page, limit, orderId, transactionId, startDate, endDate) { + //use response +} +``` + + + +| Argument | Type | Required | Description | +| --------- | ----- | -------- | ----------- | +| organizationId | String | yes | The unique identifier of the organization | +| page | Integer? | no | The page number of the transaction list | +| limit | Integer? | no | The number of transactions to fetch | +| orderId | String? | no | The order ID | +| transactionId | String? | no | The transaction ID | +| startDate | String? | no | This is used to filter from date | +| endDate | String? | no | This is used to filter till date | + + + +Retrieves a paginated list of Settled transactions associated with a specific organization, sorted from the latest to the oldest. This endpoint allows filtering transactions based on various criteria and supports pagination. + +*Returned Response:* + + + + +[GetSettlementTransactionsResponse](#GetSettlementTransactionsResponse) + +Success. The request has been processed successfully and the response contains the requested data. + + + + +
+  Examples: + + +
+  GetSettlemetTransactionsExample + +```json +{ + "value": { + "message": "The request has been processed successfully.", + "data": { + "transactions": [ + { + "id": "TXN", + "amount": 10000, + "createdAt": "2024-08-20T06:37:27.150Z", + "orderId": "DEMO-TRANSACTIOn", + "settlementStatus": "PENDING", + "settlementTime": "2024-08-22T15:20:02.274Z" + } + ], + "page": { + "type": "number", + "current": 1, + "hasPrevious": false, + "hasNext": false, + "size": 100, + "itemTotal": null + } + }, + "meta": { + "timestamp": "2024-08-30T10:48:01.915Z", + "version": "v1.0", + "product": "Settle Checkout" + } + } +} +``` +
+ +
+ + + + + + + + + --- @@ -531,6 +759,136 @@ Success. The request has been processed successfully and the response contains t + #### [GroupedEmiLoanAccount](#GroupedEmiLoanAccount) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | loanAccountNumber | String | no | | + | kfs | String? | yes | | + | sanctionLetter | String? | yes | | + | remark | String? | yes | | + | createdAt | String | no | | + | updatedAt | String | no | | + | amount | Double | no | | + | repaidAmount | Double | no | | + | paid | Boolean | no | | + | overdue | Boolean | no | | + | repaymentDate | String? | yes | | + | paidPercent | Double | no | | + | lenderDetail | [LenderDetail](#LenderDetail) | no | | + +--- + + + + + #### [GroupedEmi](#GroupedEmi) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String? | yes | | + | installmentno | Double? | yes | | + | amount | Double? | yes | | + | dueDate | String? | yes | | + | referenceTransactionId | String? | yes | | + | createdAt | String? | yes | | + | updatedAt | String? | yes | | + | paid | Boolean? | yes | | + | overdue | Boolean? | yes | | + | repaymentDate | String? | yes | | + | paidPercent | Double? | yes | | + | repaidAmount | Double? | yes | | + | loanAccounts | ArrayList<[GroupedEmiLoanAccount](#GroupedEmiLoanAccount)>? | yes | | + +--- + + + + + #### [TransactionDetails](#TransactionDetails) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String | no | | + | userId | String | no | | + | partnerId | String | no | | + | partner | String | no | | + | partnerLogo | String | no | | + | status | String | no | | + | type | String? | yes | | + | remark | String? | yes | | + | amount | Double | no | | + | loanAccountNumber | String? | yes | | + | kfs | String? | yes | | + | utr | String? | yes | | + | sanctionLetter | String? | yes | | + | orderId | String? | yes | | + | refundId | String? | yes | | + | createdAt | String | no | | + | lenderId | String? | yes | | + | lenderName | String? | yes | | + | lenderLogo | String? | yes | | + | loanType | String? | yes | | + | nextDueDate | String? | yes | | + | paidPercent | Double? | yes | | + | lenderDetail | [LenderDetail](#LenderDetail)? | yes | | + | emis | ArrayList<[GroupedEmi](#GroupedEmi)>? | yes | | + | summary | [TransactionSummary](#TransactionSummary)? | yes | | + +--- + + + + + #### [TransactionSummary](#TransactionSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | capturedAmount | Double | no | The total captured amount. This is the sum of the amounts of all captured shipments. | + | uncapturedAmount | Double | no | The total uncaptured amount. This is calculated as totalAmount - capturedAmount. | + | capturedAmountForDisbursal | Double | no | The total amount captured for disbursal. This represents the sum of amounts from all shipments marked for disbursal. | + | capturedAmountForCancellation | Double | no | The total amount captured for cancellation. This aggregates the amounts from all shipments identified for cancellation. | + | data | ArrayList<[TransactionSummaryData](#TransactionSummaryData)> | no | | + +--- + + + + + #### [TransactionSummaryData](#TransactionSummaryData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | display | [TransactionSummaryDataDisplay](#TransactionSummaryDataDisplay)? | yes | | + +--- + + + + + #### [TransactionSummaryDataDisplay](#TransactionSummaryDataDisplay) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | primary | [TransactionSummaryDataDisplayType](#TransactionSummaryDataDisplayType)? | yes | | + | secondary | [TransactionSummaryDataDisplayType](#TransactionSummaryDataDisplayType)? | yes | | + +--- + + + + + #### [TransactionSummaryDataDisplayType](#TransactionSummaryDataDisplayType) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | text | String? | yes | | + +--- + + + + #### [LenderDetail](#LenderDetail) | Properties | Type | Nullable | Description | @@ -1133,12 +1491,188 @@ Success. The request has been processed successfully and the response contains t + #### [OrderShipmentAddressGeoLocation](#OrderShipmentAddressGeoLocation) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | latitude | Double | no | The latitude of the location. | + | longitude | Double | no | The longitude of the location. | + +--- + + + + + #### [OrderShipmentAddress](#OrderShipmentAddress) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | line1 | String? | yes | The first line of the address. | + | line2 | String? | yes | The second line of the address. | + | city | String? | yes | The city of the address. | + | state | String? | yes | The state of the address. | + | country | String? | yes | The country of the address. | + | pincode | String? | yes | The postal code of the address. | + | type | String? | yes | The type of address (e.g., residential, business). | + | geoLocation | [OrderShipmentAddressGeoLocation](#OrderShipmentAddressGeoLocation)? | yes | The geographical location of the address. | + +--- + + + + + #### [OrderShipmentItem](#OrderShipmentItem) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | category | String? | yes | The category of the item. | + | sku | String? | yes | The stock keeping unit for the item. | + | rate | Double? | yes | The price of a single item. | + | quantity | Double? | yes | The quantity of the item. | + +--- + + + + + #### [OrderShipment](#OrderShipment) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String | no | The identifier for the shipment. | + | urn | String? | yes | A unique reference number for the shipment. This is optional; the system will generate a URN if not provided. There can be multiple shipment objects with the same shipment ID, making the URN a unique identifier within the system. | + | amount | Double | no | The amount corresponding to the shipment that is subject to the status update. | + | timestamp | String | no | The timestamp when the status of the shipment was updated. | + | status | String | no | The current status of the shipment. | + | remark | String? | yes | Any remarks regarding the shipment. | + | items | ArrayList<[OrderShipmentItem](#OrderShipmentItem)>? | yes | The list of items in the shipment. | + | shippingAddress | [OrderShipmentAddress](#OrderShipmentAddress)? | yes | The shipping address for the shipment. | + | billingAddress | [OrderShipmentAddress](#OrderShipmentAddress)? | yes | The billing address for the shipment. | + +--- + + + + + #### [OrderDeliveryUpdatesBody](#OrderDeliveryUpdatesBody) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderId | String? | yes | The unique identifier for the order. Required if transactionId is not provided. | + | transactionId | String? | yes | The unique identifier for the transaction. Required if orderId is not provided. | + | includeSummary | Boolean? | yes | A flag to include a summary object in the response, containing data like processed amount and unprocessed amount. | + | shipments | ArrayList<[OrderShipment](#OrderShipment)> | no | The list of shipments for which the status needs to be updated. Only include shipments requiring a status change. | + +--- + + + + + #### [OrderShipmentSummary](#OrderShipmentSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderAmount | Double | no | The total order amount. | + | capturedAmount | Double | no | The total captured amount. This is the sum of the amounts of all captured shipments. | + | uncapturedAmount | Double | no | The total uncaptured amount. This is calculated as totalAmount - capturedAmount. | + | capturedAmountForDisbursal | Double | no | The total amount captured for disbursal. This represents the sum of amounts from all shipments marked for disbursal. | + | capturedAmountForCancellation | Double | no | The total amount captured for cancellation. This aggregates the amounts from all shipments identified for cancellation. | + +--- + + + + + #### [OrderShipmentResponse](#OrderShipmentResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String | no | The unique identifier of the shipment. | + | urn | String | no | A unique resource identifier for the shipment. | + | shipmentStatus | String | no | The status of the shipment. | + | shipmentAmount | Double | no | The total amount associated with the shipment. | + | processingStatus | String | no | The processing status of the order shipment. | + +--- + + + + + #### [OrderDeliveryUpdatesData](#OrderDeliveryUpdatesData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderId | String | no | The unique identifier for the order. | + | transactionId | String | no | The unique identifier for the order. | + | shipments | ArrayList<[OrderShipmentResponse](#OrderShipmentResponse)> | no | The list of shipments for which the status was updated. | + | summary | [OrderShipmentSummary](#OrderShipmentSummary)? | yes | A summary object containing various amounts related to the order. | + +--- + + + + + #### [OrderDeliveryUpdatesResponse](#OrderDeliveryUpdatesResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [OrderDeliveryUpdatesData](#OrderDeliveryUpdatesData) | no | | + +--- + + + + + #### [OrderDeliveryUpdatesPartialResponse](#OrderDeliveryUpdatesPartialResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [OrderDeliveryUpdatesData](#OrderDeliveryUpdatesData) | no | | + | errors | ArrayList<[OrderDeliveryUpdatesError](#OrderDeliveryUpdatesError)>? | yes | | + +--- + + + + + #### [OrderDeliveryUpdatesError](#OrderDeliveryUpdatesError) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | code | String | no | Error code representing the type of error. | + | message | String | no | A human-readable message providing more details about the error. | + | exception | String | no | The exception name or type. | + +--- + + + + + #### [TransactionOrderSummary](#TransactionOrderSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | capturedAmount | Double | no | The total captured amount. This is the sum of the amounts of all captured shipments. | + | uncapturedAmount | Double | no | The total uncaptured amount. This is calculated as totalAmount - capturedAmount. | + | capturedAmountForDisbursal | Double | no | The total amount captured for disbursal. This represents the sum of amounts from all shipments marked for disbursal. | + | capturedAmountForCancellation | Double | no | The total amount captured for cancellation. This aggregates the amounts from all shipments identified for cancellation. | + +--- + + + + #### [TransactionOrder](#TransactionOrder) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | id | String | no | Unique identifier of the order. | | amount | Double | no | Total amount of the order. | + | summary | [TransactionOrderSummary](#TransactionOrderSummary)? | yes | | --- @@ -1266,6 +1800,48 @@ Success. The request has been processed successfully and the response contains t + #### [SettlementTransactions](#SettlementTransactions) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String? | yes | Unique identifier for the transaction. | + | utr | String? | yes | Unique transaction reference number. | + | amount | Double? | yes | The amount involved in the transaction. | + | settlementStatus | String? | yes | Status of the transaction. | + | orderId | String? | yes | Identifier for the associated order. | + | createdAt | String? | yes | The time the transaction occurred | + | settlementTime | String? | yes | The time the transaction settles and transaction status updated | + +--- + + + + + #### [GetSettlementTransactionsData](#GetSettlementTransactionsData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | transactions | ArrayList<[SettlementTransactions](#SettlementTransactions)> | no | | + | page | [Pagination](#Pagination) | no | | + +--- + + + + + #### [GetSettlementTransactionsResponse](#GetSettlementTransactionsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [GetSettlementTransactionsData](#GetSettlementTransactionsData) | no | | + +--- + + + + #### [SummaryRequest](#SummaryRequest) | Properties | Type | Nullable | Description | @@ -1278,4 +1854,86 @@ Success. The request has been processed successfully and the response contains t --- + + + #### [RegisterTransaction](#RegisterTransaction) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | intent | String? | yes | | + | token | String | no | | + +--- + + + + + #### [RegisterTransactionResponseData](#RegisterTransactionResponseData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | isExistingOrder | Boolean? | yes | Indicates whether the order already exists. | + | transaction | Object? | yes | The transaction details, which is unkown. | + | action | Boolean? | yes | | + | status | String? | yes | The status of the transaction. | + | message | String? | yes | A message related to the transaction status. | + +--- + + + + + #### [RegisterTransactionResponseResult](#RegisterTransactionResponseResult) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | redirectUrl | String? | yes | URL to redirect the user to, if applicable. | + +--- + + + + + #### [RegisterTransactionResponse](#RegisterTransactionResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | result | [RegisterTransactionResponseResult](#RegisterTransactionResponseResult)? | yes | | + | action | HashMap? | yes | An object for future use, currently empty. | + | data | [RegisterTransactionResponseData](#RegisterTransactionResponseData)? | yes | | + | transactionId | String? | yes | The unique identifier of the transaction. | + | status | String? | yes | The status of the user related to the payment process. | + | message | String? | yes | A message related to the user status. | + +--- + + + + + #### [UpdateTransactionRequest](#UpdateTransactionRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | intent | String | no | | + | token | String | no | | + +--- + + + + + #### [UpdateTransactionResponse](#UpdateTransactionResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | result | [RegisterTransactionResponseResult](#RegisterTransactionResponseResult)? | yes | | + | action | HashMap? | yes | An object for future use, currently empty. | + | data | [RegisterTransactionResponseData](#RegisterTransactionResponseData)? | yes | | + | transactionId | String? | yes | The unique identifier of the transaction. | + | status | String? | yes | The status of the user related to the payment process. | + | message | String? | yes | A message related to the user status. | + +--- + + diff --git a/documentation/platform/CUSTOMER.md b/documentation/platform/CUSTOMER.md index b13636f..b963954 100644 --- a/documentation/platform/CUSTOMER.md +++ b/documentation/platform/CUSTOMER.md @@ -769,22 +769,71 @@ Success. Returns a JSON object as shown below. Refer `UserResponse` for more det
-  UserExample +  UserResponseExample ```json { - "value": { - "gender": "male", - "active": true, - "profilePicUrl": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png", - "id": "5e68af49cfa09bf7233022f1", - "firstName": "Akash", - "lastName": "Mane", - "mobile": "8652523958", - "countryCode": 91, - "email": "akashmane@gofynd.com", - "createdAt": "2020-03-11T09:28:41.982Z", - "updatedAt": "2021-02-04T10:10:44.981Z" + "message": "The request has been processed successfully.", + "data": { + "listOfUsers": [ + { + "id": "07c5e487-e017-43b7-9c4e-e8f4010b4f88", + "firstName": "Avula", + "lastName": "Josh", + "gender": "male", + "dob": "2004-05-08", + "email": "1020d1b57b16aa0d4edcbe7e97557ada4eb7b015b448073bc8c684dffc7a4db6", + "mobile": "df20c2fc3c0a4df8429a598c61975a04", + "profilePictureUrl": null, + "active": true, + "createdAt": "2024-06-23T09:12:05.274Z", + "updatedAt": "2024-06-23T10:06:26.258Z" + } + ], + "page": { + "type": "number", + "current": 1, + "hasPrevious": false, + "hasNext": false, + "size": null, + "itemTotal": 178 + }, + "filters": [ + { + "key": { + "display": "Search", + "name": "search", + "kind": "multivalued" + }, + "values": [ + { + "display": "Name", + "isSelected": false, + "value": "FIRSTNAME" + }, + { + "display": "Name", + "isSelected": false, + "value": "LASTNAME" + }, + { + "display": "Id", + "isSelected": false, + "value": "ID" + }, + { + "display": "Mobile", + "isSelected": false, + "value": "MOBILE" + } + ] + } + ] + }, + "meta": { + "timestamp": "2024-08-14T05:23:51.794Z", + "version": "v1.0", + "product": "Settle Checkout" } } ``` @@ -1610,6 +1659,7 @@ Success. Returns a JSON object as shown below. Refer `AddVintageResponse` for mo | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | token | String | no | | + | intent | String? | yes | | --- @@ -2030,6 +2080,26 @@ Success. Returns a JSON object as shown below. Refer `AddVintageResponse` for mo + #### [MerchantDetailsResponse](#MerchantDetailsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String? | yes | Unique identifier for the business | + | website | String? | yes | Website URL of the business | + | businessAddress | String? | yes | Physical address of the business | + | pincode | String? | yes | Pincode for the business address | + | logo | String? | yes | URL to the business logo | + | gstIn | String? | yes | GST number of the business, can be null | + | businessName | String? | yes | Business name of the merchant | + | name | String? | yes | Name of the merchant | + | supportEmail | String? | yes | Support email of the merchant | + | description | String? | yes | Description of the Merchant. | + +--- + + + + #### [NavigationsMobileResponse](#NavigationsMobileResponse) | Properties | Type | Nullable | Description | @@ -2509,7 +2579,7 @@ Success. Returns a JSON object as shown below. Refer `AddVintageResponse` for mo - #### [UserResponse](#UserResponse) + #### [UserResponseData](#UserResponseData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | @@ -2522,6 +2592,19 @@ Success. Returns a JSON object as shown below. Refer `AddVintageResponse` for mo + #### [UserResponse](#UserResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [UserResponseData](#UserResponseData) | no | | + +--- + + + + #### [UserDetailRequest](#UserDetailRequest) | Properties | Type | Nullable | Description | diff --git a/documentation/platform/MERCHANT.md b/documentation/platform/MERCHANT.md index 3217f23..312f1fe 100644 --- a/documentation/platform/MERCHANT.md +++ b/documentation/platform/MERCHANT.md @@ -721,6 +721,8 @@ Success. Returns a JSON object as shown below. Refer `ValidateCredentialsRespons | disbursementIfsc | String? | yes | | | businessName | String? | yes | | | email | String? | yes | | + | supportEmail | String? | yes | | + | description | String? | yes | | | businessAddress | String? | yes | | | pincode | String? | yes | | | b2B | Boolean? | yes | | @@ -825,6 +827,8 @@ Success. Returns a JSON object as shown below. Refer `ValidateCredentialsRespons | b2C | Boolean? | yes | | | businessName | String? | yes | | | email | String? | yes | | + | supportEmail | String? | yes | | + | description | String? | yes | | | businessAddress | String? | yes | | | pincode | String? | yes | | | documents | ArrayList<[Documents](#Documents)>? | yes | | diff --git a/documentation/platform/MULTIKYC.md b/documentation/platform/MULTIKYC.md index fcd4b50..6f16ff1 100644 --- a/documentation/platform/MULTIKYC.md +++ b/documentation/platform/MULTIKYC.md @@ -1055,6 +1055,20 @@ multikyc.approvedLenders() { + #### [RetriggerLenderOnboardRequestV2](#RetriggerLenderOnboardRequestV2) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | lenderUserId | String | no | | + | stepName | String | no | | + | data | Object | no | | + | entityMapId | String | no | | + +--- + + + + #### [BusinessDetail](#BusinessDetail) | Properties | Type | Nullable | Description | @@ -1523,6 +1537,10 @@ multikyc.approvedLenders() { | id | String | no | | | name | String | no | | | active | Boolean | no | | + | baseUrl | String? | yes | | + | config | Object? | yes | | + | paymentOptions | ArrayList? | yes | | + | credentialsSchema | Object? | yes | | --- @@ -1540,6 +1558,8 @@ multikyc.approvedLenders() { | lenderId | String | no | | | pgId | String | no | | | active | Boolean | no | | + | config | Object? | yes | | + | paymentOptions | ArrayList? | yes | | --- diff --git a/documentation/platform/PAYMENTS.md b/documentation/platform/PAYMENTS.md index 12b1935..262bfa1 100644 --- a/documentation/platform/PAYMENTS.md +++ b/documentation/platform/PAYMENTS.md @@ -187,6 +187,7 @@ Success. Returns a JSON object as shown below. Refer `PaymentLinkResponse` for m | bankId | String | no | | | bankName | String | no | | | chargeToken | String? | yes | | + | transactionId | String? | yes | | --- @@ -213,6 +214,7 @@ Success. Returns a JSON object as shown below. Refer `PaymentLinkResponse` for m | amount | Double | no | | | vpa | String | no | | | chargeToken | String? | yes | | + | transactionId | String? | yes | | --- @@ -526,6 +528,20 @@ Success. Returns a JSON object as shown below. Refer `PaymentLinkResponse` for m + #### [CheckEMandateStatusRequest](#CheckEMandateStatusRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderId | String? | yes | | + | paymentId | String? | yes | | + | scheduledEnd | String? | yes | | + | ruleAmountValue | String? | yes | | + +--- + + + + #### [AutoPayStatusResponse](#AutoPayStatusResponse) | Properties | Type | Nullable | Description | diff --git a/documentation/public/MERCHANT.md b/documentation/public/MERCHANT.md index 69ac946..75327f1 100644 --- a/documentation/public/MERCHANT.md +++ b/documentation/public/MERCHANT.md @@ -2654,6 +2654,8 @@ Success. Returns a JSON object as shown below. Refer `PaymentLinkResponse` for m | disbursementIfsc | String? | yes | | | businessName | String? | yes | | | email | String? | yes | | + | supportEmail | String? | yes | | + | description | String? | yes | | | businessAddress | String? | yes | | | pincode | String? | yes | | | b2B | Boolean? | yes | | @@ -2760,6 +2762,8 @@ Success. Returns a JSON object as shown below. Refer `PaymentLinkResponse` for m | b2C | Boolean? | yes | | | businessName | String? | yes | | | email | String? | yes | | + | supportEmail | String? | yes | | + | description | String? | yes | | | businessAddress | String? | yes | | | pincode | String? | yes | | | documents | ArrayList<[Documents](#Documents)>? | yes | | diff --git a/documentation/public/MULTIKYC.md b/documentation/public/MULTIKYC.md index 834cb5f..976b8a6 100644 --- a/documentation/public/MULTIKYC.md +++ b/documentation/public/MULTIKYC.md @@ -240,7 +240,7 @@ Get available limit ```java -multikyc.getAvailableLimit( lenderSlug, entityId) { +multikyc.getAvailableLimit( lenderSlug, entityId, merchantId) { //use response } ``` @@ -250,7 +250,8 @@ multikyc.getAvailableLimit( lenderSlug, entityId) { | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | | lenderSlug | String | yes | | -| entityId | String | yes | | +| entityId | String | yes | | +| merchantId | String? | no | | @@ -1368,6 +1369,20 @@ multikyc.createPixelbinSignedUrl( documentName, purpose, extention) { + #### [RetriggerLenderOnboardRequestV2](#RetriggerLenderOnboardRequestV2) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | lenderUserId | String | no | | + | stepName | String | no | | + | data | Object | no | | + | entityMapId | String | no | | + +--- + + + + #### [BusinessDetail](#BusinessDetail) | Properties | Type | Nullable | Description | @@ -1836,6 +1851,10 @@ multikyc.createPixelbinSignedUrl( documentName, purpose, extention) { | id | String | no | | | name | String | no | | | active | Boolean | no | | + | baseUrl | String? | yes | | + | config | Object? | yes | | + | paymentOptions | ArrayList? | yes | | + | credentialsSchema | Object? | yes | | --- @@ -1853,6 +1872,8 @@ multikyc.createPixelbinSignedUrl( documentName, purpose, extention) { | lenderId | String | no | | | pgId | String | no | | | active | Boolean | no | | + | config | Object? | yes | | + | paymentOptions | ArrayList? | yes | | --- diff --git a/documentation/public/TRANSACTION.md b/documentation/public/TRANSACTION.md index 104e0fd..8961339 100644 --- a/documentation/public/TRANSACTION.md +++ b/documentation/public/TRANSACTION.md @@ -100,7 +100,7 @@ Get List of transactions ```java -transaction.getAllTransactionsCSV( page, type, limit, id, orderId, name, mobile, userId) { +transaction.getAllTransactionsCSV( status, type, id, orderId, startDate, endDate) { //use response } ``` @@ -109,15 +109,13 @@ transaction.getAllTransactionsCSV( page, type, limit, id, orderId, name, m | Argument | Type | Required | Description | | --------- | ----- | -------- | ----------- | -| page | Double | yes | This is page number | +| status | Double? | no | This is page number | | type | List? | no | This is transaction type | -| limit | Double | yes | This is no of transaction | | organizationId | String | yes | This is the organization ID | | id | String? | no | This is the search term | | orderId | String? | no | This is the search term | -| name | String? | no | This is the search term | -| mobile | String? | no | This is the search term | -| userId | String? | no | This is the user id | +| startDate | String? | no | This is used to filter from date | +| endDate | String? | no | This is used to filter till date | @@ -792,6 +790,136 @@ Success. Returns a JSON object as shown below. Refer `UniqueCustomersInOrg` for + #### [GroupedEmiLoanAccount](#GroupedEmiLoanAccount) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | loanAccountNumber | String | no | | + | kfs | String? | yes | | + | sanctionLetter | String? | yes | | + | remark | String? | yes | | + | createdAt | String | no | | + | updatedAt | String | no | | + | amount | Double | no | | + | repaidAmount | Double | no | | + | paid | Boolean | no | | + | overdue | Boolean | no | | + | repaymentDate | String? | yes | | + | paidPercent | Double | no | | + | lenderDetail | [LenderDetail](#LenderDetail) | no | | + +--- + + + + + #### [GroupedEmi](#GroupedEmi) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String? | yes | | + | installmentno | Double? | yes | | + | amount | Double? | yes | | + | dueDate | String? | yes | | + | referenceTransactionId | String? | yes | | + | createdAt | String? | yes | | + | updatedAt | String? | yes | | + | paid | Boolean? | yes | | + | overdue | Boolean? | yes | | + | repaymentDate | String? | yes | | + | paidPercent | Double? | yes | | + | repaidAmount | Double? | yes | | + | loanAccounts | ArrayList<[GroupedEmiLoanAccount](#GroupedEmiLoanAccount)>? | yes | | + +--- + + + + + #### [TransactionDetails](#TransactionDetails) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String | no | | + | userId | String | no | | + | partnerId | String | no | | + | partner | String | no | | + | partnerLogo | String | no | | + | status | String | no | | + | type | String? | yes | | + | remark | String? | yes | | + | amount | Double | no | | + | loanAccountNumber | String? | yes | | + | kfs | String? | yes | | + | utr | String? | yes | | + | sanctionLetter | String? | yes | | + | orderId | String? | yes | | + | refundId | String? | yes | | + | createdAt | String | no | | + | lenderId | String? | yes | | + | lenderName | String? | yes | | + | lenderLogo | String? | yes | | + | loanType | String? | yes | | + | nextDueDate | String? | yes | | + | paidPercent | Double? | yes | | + | lenderDetail | [LenderDetail](#LenderDetail)? | yes | | + | emis | ArrayList<[GroupedEmi](#GroupedEmi)>? | yes | | + | summary | [TransactionSummary](#TransactionSummary)? | yes | | + +--- + + + + + #### [TransactionSummary](#TransactionSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | capturedAmount | Double | no | The total captured amount. This is the sum of the amounts of all captured shipments. | + | uncapturedAmount | Double | no | The total uncaptured amount. This is calculated as totalAmount - capturedAmount. | + | capturedAmountForDisbursal | Double | no | The total amount captured for disbursal. This represents the sum of amounts from all shipments marked for disbursal. | + | capturedAmountForCancellation | Double | no | The total amount captured for cancellation. This aggregates the amounts from all shipments identified for cancellation. | + | data | ArrayList<[TransactionSummaryData](#TransactionSummaryData)> | no | | + +--- + + + + + #### [TransactionSummaryData](#TransactionSummaryData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | display | [TransactionSummaryDataDisplay](#TransactionSummaryDataDisplay)? | yes | | + +--- + + + + + #### [TransactionSummaryDataDisplay](#TransactionSummaryDataDisplay) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | primary | [TransactionSummaryDataDisplayType](#TransactionSummaryDataDisplayType)? | yes | | + | secondary | [TransactionSummaryDataDisplayType](#TransactionSummaryDataDisplayType)? | yes | | + +--- + + + + + #### [TransactionSummaryDataDisplayType](#TransactionSummaryDataDisplayType) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | text | String? | yes | | + +--- + + + + #### [LenderDetail](#LenderDetail) | Properties | Type | Nullable | Description | @@ -1401,12 +1529,188 @@ Success. Returns a JSON object as shown below. Refer `UniqueCustomersInOrg` for + #### [OrderShipmentAddressGeoLocation](#OrderShipmentAddressGeoLocation) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | latitude | Double | no | The latitude of the location. | + | longitude | Double | no | The longitude of the location. | + +--- + + + + + #### [OrderShipmentAddress](#OrderShipmentAddress) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | line1 | String? | yes | The first line of the address. | + | line2 | String? | yes | The second line of the address. | + | city | String? | yes | The city of the address. | + | state | String? | yes | The state of the address. | + | country | String? | yes | The country of the address. | + | pincode | String? | yes | The postal code of the address. | + | type | String? | yes | The type of address (e.g., residential, business). | + | geoLocation | [OrderShipmentAddressGeoLocation](#OrderShipmentAddressGeoLocation)? | yes | The geographical location of the address. | + +--- + + + + + #### [OrderShipmentItem](#OrderShipmentItem) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | category | String? | yes | The category of the item. | + | sku | String? | yes | The stock keeping unit for the item. | + | rate | Double? | yes | The price of a single item. | + | quantity | Double? | yes | The quantity of the item. | + +--- + + + + + #### [OrderShipment](#OrderShipment) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String | no | The identifier for the shipment. | + | urn | String? | yes | A unique reference number for the shipment. This is optional; the system will generate a URN if not provided. There can be multiple shipment objects with the same shipment ID, making the URN a unique identifier within the system. | + | amount | Double | no | The amount corresponding to the shipment that is subject to the status update. | + | timestamp | String | no | The timestamp when the status of the shipment was updated. | + | status | String | no | The current status of the shipment. | + | remark | String? | yes | Any remarks regarding the shipment. | + | items | ArrayList<[OrderShipmentItem](#OrderShipmentItem)>? | yes | The list of items in the shipment. | + | shippingAddress | [OrderShipmentAddress](#OrderShipmentAddress)? | yes | The shipping address for the shipment. | + | billingAddress | [OrderShipmentAddress](#OrderShipmentAddress)? | yes | The billing address for the shipment. | + +--- + + + + + #### [OrderDeliveryUpdatesBody](#OrderDeliveryUpdatesBody) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderId | String? | yes | The unique identifier for the order. Required if transactionId is not provided. | + | transactionId | String? | yes | The unique identifier for the transaction. Required if orderId is not provided. | + | includeSummary | Boolean? | yes | A flag to include a summary object in the response, containing data like processed amount and unprocessed amount. | + | shipments | ArrayList<[OrderShipment](#OrderShipment)> | no | The list of shipments for which the status needs to be updated. Only include shipments requiring a status change. | + +--- + + + + + #### [OrderShipmentSummary](#OrderShipmentSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderAmount | Double | no | The total order amount. | + | capturedAmount | Double | no | The total captured amount. This is the sum of the amounts of all captured shipments. | + | uncapturedAmount | Double | no | The total uncaptured amount. This is calculated as totalAmount - capturedAmount. | + | capturedAmountForDisbursal | Double | no | The total amount captured for disbursal. This represents the sum of amounts from all shipments marked for disbursal. | + | capturedAmountForCancellation | Double | no | The total amount captured for cancellation. This aggregates the amounts from all shipments identified for cancellation. | + +--- + + + + + #### [OrderShipmentResponse](#OrderShipmentResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String | no | The unique identifier of the shipment. | + | urn | String | no | A unique resource identifier for the shipment. | + | shipmentStatus | String | no | The status of the shipment. | + | shipmentAmount | Double | no | The total amount associated with the shipment. | + | processingStatus | String | no | The processing status of the order shipment. | + +--- + + + + + #### [OrderDeliveryUpdatesData](#OrderDeliveryUpdatesData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | orderId | String | no | The unique identifier for the order. | + | transactionId | String | no | The unique identifier for the order. | + | shipments | ArrayList<[OrderShipmentResponse](#OrderShipmentResponse)> | no | The list of shipments for which the status was updated. | + | summary | [OrderShipmentSummary](#OrderShipmentSummary)? | yes | A summary object containing various amounts related to the order. | + +--- + + + + + #### [OrderDeliveryUpdatesResponse](#OrderDeliveryUpdatesResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [OrderDeliveryUpdatesData](#OrderDeliveryUpdatesData) | no | | + +--- + + + + + #### [OrderDeliveryUpdatesPartialResponse](#OrderDeliveryUpdatesPartialResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [OrderDeliveryUpdatesData](#OrderDeliveryUpdatesData) | no | | + | errors | ArrayList<[OrderDeliveryUpdatesError](#OrderDeliveryUpdatesError)>? | yes | | + +--- + + + + + #### [OrderDeliveryUpdatesError](#OrderDeliveryUpdatesError) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | code | String | no | Error code representing the type of error. | + | message | String | no | A human-readable message providing more details about the error. | + | exception | String | no | The exception name or type. | + +--- + + + + + #### [TransactionOrderSummary](#TransactionOrderSummary) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | capturedAmount | Double | no | The total captured amount. This is the sum of the amounts of all captured shipments. | + | uncapturedAmount | Double | no | The total uncaptured amount. This is calculated as totalAmount - capturedAmount. | + | capturedAmountForDisbursal | Double | no | The total amount captured for disbursal. This represents the sum of amounts from all shipments marked for disbursal. | + | capturedAmountForCancellation | Double | no | The total amount captured for cancellation. This aggregates the amounts from all shipments identified for cancellation. | + +--- + + + + #### [TransactionOrder](#TransactionOrder) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | id | String | no | Unique identifier of the order. | | amount | Double | no | Total amount of the order. | + | summary | [TransactionOrderSummary](#TransactionOrderSummary)? | yes | | --- @@ -1534,6 +1838,48 @@ Success. Returns a JSON object as shown below. Refer `UniqueCustomersInOrg` for + #### [SettlementTransactions](#SettlementTransactions) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String? | yes | Unique identifier for the transaction. | + | utr | String? | yes | Unique transaction reference number. | + | amount | Double? | yes | The amount involved in the transaction. | + | settlementStatus | String? | yes | Status of the transaction. | + | orderId | String? | yes | Identifier for the associated order. | + | createdAt | String? | yes | The time the transaction occurred | + | settlementTime | String? | yes | The time the transaction settles and transaction status updated | + +--- + + + + + #### [GetSettlementTransactionsData](#GetSettlementTransactionsData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | transactions | ArrayList<[SettlementTransactions](#SettlementTransactions)> | no | | + | page | [Pagination](#Pagination) | no | | + +--- + + + + + #### [GetSettlementTransactionsResponse](#GetSettlementTransactionsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [GetSettlementTransactionsData](#GetSettlementTransactionsData) | no | | + +--- + + + + #### [SummaryRequest](#SummaryRequest) | Properties | Type | Nullable | Description | @@ -1546,4 +1892,86 @@ Success. Returns a JSON object as shown below. Refer `UniqueCustomersInOrg` for --- + + + #### [RegisterTransaction](#RegisterTransaction) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | intent | String? | yes | | + | token | String | no | | + +--- + + + + + #### [RegisterTransactionResponseData](#RegisterTransactionResponseData) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | isExistingOrder | Boolean? | yes | Indicates whether the order already exists. | + | transaction | Object? | yes | The transaction details, which is unkown. | + | action | Boolean? | yes | | + | status | String? | yes | The status of the transaction. | + | message | String? | yes | A message related to the transaction status. | + +--- + + + + + #### [RegisterTransactionResponseResult](#RegisterTransactionResponseResult) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | redirectUrl | String? | yes | URL to redirect the user to, if applicable. | + +--- + + + + + #### [RegisterTransactionResponse](#RegisterTransactionResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | result | [RegisterTransactionResponseResult](#RegisterTransactionResponseResult)? | yes | | + | action | HashMap? | yes | An object for future use, currently empty. | + | data | [RegisterTransactionResponseData](#RegisterTransactionResponseData)? | yes | | + | transactionId | String? | yes | The unique identifier of the transaction. | + | status | String? | yes | The status of the user related to the payment process. | + | message | String? | yes | A message related to the user status. | + +--- + + + + + #### [UpdateTransactionRequest](#UpdateTransactionRequest) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | intent | String | no | | + | token | String | no | | + +--- + + + + + #### [UpdateTransactionResponse](#UpdateTransactionResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | result | [RegisterTransactionResponseResult](#RegisterTransactionResponseResult)? | yes | | + | action | HashMap? | yes | An object for future use, currently empty. | + | data | [RegisterTransactionResponseData](#RegisterTransactionResponseData)? | yes | | + | transactionId | String? | yes | The unique identifier of the transaction. | + | status | String? | yes | The status of the user related to the payment process. | + | message | String? | yes | A message related to the user status. | + +--- + + diff --git a/documentation/public/USER.md b/documentation/public/USER.md index cd90ebe..c34d30e 100644 --- a/documentation/public/USER.md +++ b/documentation/public/USER.md @@ -184,7 +184,7 @@ Success. Returns a JSON object as shown below. Refer `UserResponse` for more det   $ref ```json -"#/components/examples/UserExample" +"#/components/examples/UserResponseExample" ``` @@ -940,6 +940,7 @@ Success. Returns a JSON object as shown below. Refer `UserResponse` for more det | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | token | String | no | | + | intent | String? | yes | | --- @@ -1361,6 +1362,26 @@ Success. Returns a JSON object as shown below. Refer `UserResponse` for more det + #### [MerchantDetailsResponse](#MerchantDetailsResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | id | String? | yes | Unique identifier for the business | + | website | String? | yes | Website URL of the business | + | businessAddress | String? | yes | Physical address of the business | + | pincode | String? | yes | Pincode for the business address | + | logo | String? | yes | URL to the business logo | + | gstIn | String? | yes | GST number of the business, can be null | + | businessName | String? | yes | Business name of the merchant | + | name | String? | yes | Name of the merchant | + | supportEmail | String? | yes | Support email of the merchant | + | description | String? | yes | Description of the Merchant. | + +--- + + + + #### [NavigationsMobileResponse](#NavigationsMobileResponse) | Properties | Type | Nullable | Description | @@ -1840,13 +1861,26 @@ Success. Returns a JSON object as shown below. Refer `UserResponse` for more det - #### [UserResponse](#UserResponse) + #### [UserResponseData](#UserResponseData) | Properties | Type | Nullable | Description | | ---------- | ---- | -------- | ----------- | | filters | ArrayList<[Filters](#Filters)> | no | | | page | [PageResponse](#PageResponse) | no | | | listOfUsers | ArrayList<[UserSchema](#UserSchema)> | no | | + +--- + + + + + #### [UserResponse](#UserResponse) + + | Properties | Type | Nullable | Description | + | ---------- | ---- | -------- | ----------- | + | message | String | no | Response message indicating the result of the operation. | + | meta | [IntegrationResponseMeta](#IntegrationResponseMeta) | no | | + | data | [UserResponseData](#UserResponseData) | no | | | headers | HashMap? | yes | | --- diff --git a/src/main/java/com/sdk/platform/PlatformApiList.java b/src/main/java/com/sdk/platform/PlatformApiList.java index 06ab56d..5a36ff4 100644 --- a/src/main/java/com/sdk/platform/PlatformApiList.java +++ b/src/main/java/com/sdk/platform/PlatformApiList.java @@ -161,6 +161,15 @@ interface CreditApiList { + @POST ("/service/integration/credit/orders/organization/{organizationId}/delivery-updates") + Call updateOrderDeliveryStatus(@Path("organizationId") String organizationId ,@Body PlatformModels.OrderDeliveryUpdatesBody payload); + + + + + + + @@ -194,6 +203,33 @@ interface CreditApiList { @GET ("/service/integration/credit/summary/organization/{organizationId}/transactions") Call getTransactions(@Path("organizationId") String organizationId , @Query("mobile") String mobile , @Query("countryCode") String countryCode , @Query("page") Integer page , @Query("limit") Integer limit , @Query("orderId") String orderId , @Query("transactionId") String transactionId , @Query("type") Object type , @Query("status") Object status , @Query("onlySelf") Boolean onlySelf , @Query("granularity") String granularity ); + + + + + + + + + + + + + + + + + + + + + + + + + @GET ("/service/integration/credit/summary/organization/{organizationId}/settled/transactions") + Call getSettledTransactions(@Path("organizationId") String organizationId , @Query("page") Integer page , @Query("limit") Integer limit , @Query("orderId") String orderId , @Query("transactionId") String transactionId , @Query("startDate") String startDate , @Query("endDate") String endDate ); + } interface MultiKycApiList { diff --git a/src/main/java/com/sdk/platform/PlatformModels.java b/src/main/java/com/sdk/platform/PlatformModels.java index 085e918..678323e 100644 --- a/src/main/java/com/sdk/platform/PlatformModels.java +++ b/src/main/java/com/sdk/platform/PlatformModels.java @@ -2292,6 +2292,12 @@ public static class InitiateTransactions { + @JsonProperty("intent") + private String intent; + + + + } /* @@ -3572,6 +3578,83 @@ public static class UpdateTips { +} + +/* + Model: MerchantDetailsResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class MerchantDetailsResponse { + + + + + @JsonProperty("id") + private String id; + + + + + @JsonProperty("website") + private String website; + + + + + @JsonProperty("businessAddress") + private String businessAddress; + + + + + @JsonProperty("pincode") + private String pincode; + + + + + @JsonProperty("logo") + private String logo; + + + + + @JsonProperty("gstIn") + private String gstIn; + + + + + @JsonProperty("businessName") + private String businessName; + + + + + @JsonProperty("name") + private String name; + + + + + @JsonProperty("supportEmail") + private String supportEmail; + + + + + @JsonProperty("description") + private String description; + + + + } /* @@ -4858,7 +4941,7 @@ public static class PageResponse { } /* - Model: UserResponse + Model: UserResponseData */ @AllArgsConstructor @NoArgsConstructor @@ -4867,7 +4950,7 @@ public static class PageResponse { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class UserResponse { +public static class UserResponseData { @@ -4890,6 +4973,41 @@ public static class UserResponse { +} + +/* + Model: UserResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class UserResponse { + + + + + @JsonProperty("message") + private String message; + + + + + @JsonProperty("meta") + private IntegrationResponseMeta meta; + + + + + @JsonProperty("data") + private UserResponseData data; + + + + } /* @@ -7610,7 +7728,7 @@ public static class Transactions { } /* - Model: LenderDetail + Model: GroupedEmiLoanAccount */ @AllArgsConstructor @NoArgsConstructor @@ -7619,73 +7737,85 @@ public static class Transactions { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class LenderDetail { +public static class GroupedEmiLoanAccount { - @JsonProperty("id") - private String id; + @JsonProperty("loanAccountNumber") + private String loanAccountNumber; - @JsonProperty("name") - private String name; + @JsonProperty("kfs") + private String kfs; - @JsonProperty("imageUrl") - private String imageUrl; + @JsonProperty("sanctionLetter") + private String sanctionLetter; - @JsonProperty("slug") - private String slug; + @JsonProperty("remark") + private String remark; - @JsonProperty("active") - private Boolean active; + @JsonProperty("createdAt") + private String createdAt; - @JsonProperty("b2b") - private Boolean b2B; + @JsonProperty("updatedAt") + private String updatedAt; - @JsonProperty("b2c") - private Boolean b2C; + @JsonProperty("amount") + private Double amount; - @JsonProperty("theme") - private Theme theme; + @JsonProperty("repaidAmount") + private Double repaidAmount; - @JsonProperty("createdAt") - private String createdAt; + @JsonProperty("paid") + private Boolean paid; - @JsonProperty("updatedAt") - private String updatedAt; + @JsonProperty("overdue") + private Boolean overdue; - @JsonProperty("deletedAt") - private String deletedAt; + @JsonProperty("repaymentDate") + private String repaymentDate; + + + + + @JsonProperty("paidPercent") + private Double paidPercent; + + + + + @JsonProperty("lenderDetail") + private LenderDetail lenderDetail; @@ -7693,7 +7823,7 @@ public static class LenderDetail { } /* - Model: TransactionResponse + Model: GroupedEmi */ @AllArgsConstructor @NoArgsConstructor @@ -7702,120 +7832,1234 @@ public static class LenderDetail { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionResponse { +public static class GroupedEmi { - @JsonProperty("filters") - private List filters; + @JsonProperty("id") + private String id; - @JsonProperty("page") - private PageResponse page; + @JsonProperty("installmentno") + private Double installmentno; - @JsonProperty("transactions") - private List transactions; + @JsonProperty("amount") + private Double amount; -} - -/* - Model: GetReconciliationFileResponse -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class GetReconciliationFileResponse { + @JsonProperty("dueDate") + private String dueDate; - @JsonProperty("files") - private List files; + @JsonProperty("referenceTransactionId") + private String referenceTransactionId; -} - -/* - Model: ReconFile -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class ReconFile { + @JsonProperty("createdAt") + private String createdAt; - @JsonProperty("base64") - private String base64; + @JsonProperty("updatedAt") + private String updatedAt; - @JsonProperty("name") - private String name; + @JsonProperty("paid") + private Boolean paid; -} - -/* - Model: UploadReconciliationFileRequest -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class UploadReconciliationFileRequest { + @JsonProperty("overdue") + private Boolean overdue; - @JsonProperty("base64File") - private String base64File; + @JsonProperty("repaymentDate") + private String repaymentDate; - @JsonProperty("format") - private String format; + @JsonProperty("paidPercent") + private Double paidPercent; - @JsonProperty("lenderId") - private String lenderId; + @JsonProperty("repaidAmount") + private Double repaidAmount; -} - + @JsonProperty("loanAccounts") + private List loanAccounts; + + + + +} + +/* + Model: TransactionDetails +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionDetails { + + + + + @JsonProperty("id") + private String id; + + + + + @JsonProperty("userId") + private String userId; + + + + + @JsonProperty("partnerId") + private String partnerId; + + + + + @JsonProperty("partner") + private String partner; + + + + + @JsonProperty("partnerLogo") + private String partnerLogo; + + + + + @JsonProperty("status") + private String status; + + + + + @JsonProperty("type") + private String type; + + + + + @JsonProperty("remark") + private String remark; + + + + + @JsonProperty("amount") + private Double amount; + + + + + @JsonProperty("loanAccountNumber") + private String loanAccountNumber; + + + + + @JsonProperty("kfs") + private String kfs; + + + + + @JsonProperty("utr") + private String utr; + + + + + @JsonProperty("sanctionLetter") + private String sanctionLetter; + + + + + @JsonProperty("orderId") + private String orderId; + + + + + @JsonProperty("refundId") + private String refundId; + + + + + @JsonProperty("createdAt") + private String createdAt; + + + + + @JsonProperty("lenderId") + private String lenderId; + + + + + @JsonProperty("lenderName") + private String lenderName; + + + + + @JsonProperty("lenderLogo") + private String lenderLogo; + + + + + @JsonProperty("loanType") + private String loanType; + + + + + @JsonProperty("nextDueDate") + private String nextDueDate; + + + + + @JsonProperty("paidPercent") + private Double paidPercent; + + + + + @JsonProperty("lenderDetail") + private LenderDetail lenderDetail; + + + + + @JsonProperty("emis") + private List emis; + + + + + @JsonProperty("summary") + private TransactionSummary summary; + + + + +} + +/* + Model: TransactionSummary +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionSummary { + + + + + @JsonProperty("capturedAmount") + private Double capturedAmount; + + + + + @JsonProperty("uncapturedAmount") + private Double uncapturedAmount; + + + + + @JsonProperty("capturedAmountForDisbursal") + private Double capturedAmountForDisbursal; + + + + + @JsonProperty("capturedAmountForCancellation") + private Double capturedAmountForCancellation; + + + + + @JsonProperty("data") + private List data; + + + + +} + +/* + Model: TransactionSummaryData +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionSummaryData { + + + + + @JsonProperty("display") + private TransactionSummaryDataDisplay display; + + + + +} + +/* + Model: TransactionSummaryDataDisplay +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionSummaryDataDisplay { + + + + + @JsonProperty("primary") + private TransactionSummaryDataDisplayType primary; + + + + + @JsonProperty("secondary") + private TransactionSummaryDataDisplayType secondary; + + + + +} + +/* + Model: TransactionSummaryDataDisplayType +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionSummaryDataDisplayType { + + + + + @JsonProperty("text") + private String text; + + + + +} + +/* + Model: LenderDetail +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class LenderDetail { + + + + + @JsonProperty("id") + private String id; + + + + + @JsonProperty("name") + private String name; + + + + + @JsonProperty("imageUrl") + private String imageUrl; + + + + + @JsonProperty("slug") + private String slug; + + + + + @JsonProperty("active") + private Boolean active; + + + + + @JsonProperty("b2b") + private Boolean b2B; + + + + + @JsonProperty("b2c") + private Boolean b2C; + + + + + @JsonProperty("theme") + private Theme theme; + + + + + @JsonProperty("createdAt") + private String createdAt; + + + + + @JsonProperty("updatedAt") + private String updatedAt; + + + + + @JsonProperty("deletedAt") + private String deletedAt; + + + + +} + +/* + Model: TransactionResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionResponse { + + + + + @JsonProperty("filters") + private List filters; + + + + + @JsonProperty("page") + private PageResponse page; + + + + + @JsonProperty("transactions") + private List transactions; + + + + +} + +/* + Model: GetReconciliationFileResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class GetReconciliationFileResponse { + + + + + @JsonProperty("files") + private List files; + + + + +} + +/* + Model: ReconFile +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class ReconFile { + + + + + @JsonProperty("base64") + private String base64; + + + + + @JsonProperty("name") + private String name; + + + + +} + +/* + Model: UploadReconciliationFileRequest +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class UploadReconciliationFileRequest { + + + + + @JsonProperty("base64File") + private String base64File; + + + + + @JsonProperty("format") + private String format; + + + + + @JsonProperty("lenderId") + private String lenderId; + + + + +} + +/* + Model: UploadReconciliationFileResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class UploadReconciliationFileResponse { + + + + + @JsonProperty("success") + private Boolean success; + + + + +} + +/* + Model: TransactionCount +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionCount { + + + + + @JsonProperty("totalTransactions") + private String totalTransactions; + + + + +} + +/* + Model: RefundCount +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class RefundCount { + + + + + @JsonProperty("refundTransactions") + private String refundTransactions; + + + + +} + +/* + Model: OrganizationTransactionsCount +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class OrganizationTransactionsCount { + + + + + @JsonProperty("count") + private Double count; + + + + +} + +/* + Model: OrganizationTransactionsSum +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class OrganizationTransactionsSum { + + + + + @JsonProperty("sum") + private Double sum; + + + + +} + +/* + Model: UniqueCustomersInOrg +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class UniqueCustomersInOrg { + + + + + @JsonProperty("count") + private Double count; + + + + +} + +/* + Model: TransactionAmount +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionAmount { + + + + + @JsonProperty("totalTransactionAmount") + private String totalTransactionAmount; + + + + +} + +/* + Model: SchemaForOneDayTotal +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class SchemaForOneDayTotal { + + + + + @JsonProperty("orgId") + private String orgId; + + + + + @JsonProperty("createdAt") + private String createdAt; + + + + + @JsonProperty("count") + private Double count; + + + + + @JsonProperty("sum") + private String sum; + + + + + @JsonProperty("refund") + private String refund; + + + + + @JsonProperty("difference") + private String difference; + + + + +} + +/* + Model: SumofOneDayTransactions +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class SumofOneDayTransactions { + + + + + @JsonProperty("dayTotal") + private List dayTotal; + + + + +} + +/* + Model: AverageTransaction +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class AverageTransaction { + + + + + @JsonProperty("average") + private Double average; + + + + +} + +/* + Model: AllTransactionsResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class AllTransactionsResponse { + + + + + @JsonProperty("id") + private String id; + + + + + @JsonProperty("userId") + private String userId; + + + + + @JsonProperty("partnerId") + private String partnerId; + + + + + @JsonProperty("status") + private String status; + + + + + @JsonProperty("type") + private String type; + + + + + @JsonProperty("remark") + private String remark; + + + + + @JsonProperty("amount") + private Double amount; + + + + + @JsonProperty("loanAccountNumber") + private String loanAccountNumber; + + + + + @JsonProperty("createdAt") + private String createdAt; + + + + +} + +/* + Model: TotalRefund +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TotalRefund { + + + + + @JsonProperty("totalRefund") + private String totalRefund; + + + + +} + +/* + Model: TotalRepayment +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TotalRepayment { + + + + + @JsonProperty("totalRepayment") + private String totalRepayment; + + + + +} + +/* + Model: TotalOverDue +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TotalOverDue { + + + + + @JsonProperty("totalDue") + private String totalDue; + + + + +} + +/* + Model: TotalLoansDisbursed +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TotalLoansDisbursed { + + + + + @JsonProperty("totalLoansDisbursed") + private String totalLoansDisbursed; + + + + +} + +/* + Model: OrganizationTransactionResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class OrganizationTransactionResponse { + + + + + @JsonProperty("filters") + private List filters; + + + + + @JsonProperty("page") + private TrPageResponse page; + + + + + @JsonProperty("transactions") + private List transactions; + + + + +} + +/* + Model: TrFilters +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TrFilters { + + + + + @JsonProperty("key") + private TrFilterKeys key; + + + + + @JsonProperty("values") + private List values; + + + + +} + +/* + Model: TrPageResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TrPageResponse { + + + + + @JsonProperty("type") + private String type; + + + + + @JsonProperty("current") + private Double current; + + + + + @JsonProperty("hasPrevious") + private Boolean hasPrevious; + + + + + @JsonProperty("hasNext") + private Boolean hasNext; + + + + + @JsonProperty("size") + private Double size; + + + + + @JsonProperty("itemTotal") + private Double itemTotal; + + + + +} + +/* + Model: OrgTransactions +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class OrgTransactions { + + + + + @JsonProperty("id") + private String id; + + + + + @JsonProperty("userId") + private String userId; + + + + + @JsonProperty("userName") + private String userName; + + + + + @JsonProperty("partnerId") + private String partnerId; + + + + + @JsonProperty("partner") + private String partner; + + + + + @JsonProperty("partnerLogo") + private String partnerLogo; + + + + + @JsonProperty("status") + private String status; + + + + + @JsonProperty("type") + private String type; + + + + + @JsonProperty("remark") + private String remark; + + + + + @JsonProperty("amount") + private Double amount; + + + + + @JsonProperty("orderId") + private String orderId; + + + + + @JsonProperty("loanAccountNumber") + private String loanAccountNumber; + + + + + @JsonProperty("kfs") + private String kfs; + + + + + @JsonProperty("sanctionLetter") + private String sanctionLetter; + + + + + @JsonProperty("createdAt") + private String createdAt; + + + + +} + /* - Model: UploadReconciliationFileResponse + Model: TrFilterKeys */ @AllArgsConstructor @NoArgsConstructor @@ -7824,13 +9068,225 @@ public static class UploadReconciliationFileRequest { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class UploadReconciliationFileResponse { +public static class TrFilterKeys { + + + + + @JsonProperty("display") + private String display; + + + + + @JsonProperty("name") + private String name; + + + + + @JsonProperty("kind") + private String kind; + + + + +} + +/* + Model: TrFilterValues +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TrFilterValues { + + + + + @JsonProperty("display") + private String display; + + + + + @JsonProperty("isSelected") + private Boolean isSelected; + + + + + @JsonProperty("value") + private String value; + + + + +} + +/* + Model: KfsRequest +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class KfsRequest { + + + + + @JsonProperty("loanTypeId") + private Double loanTypeId; + + + + + @JsonProperty("chargeToken") + private String chargeToken; + + + + +} + +/* + Model: KfsResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class KfsResponse { + + + + + @JsonProperty("kfsTable") + private String kfsTable; + + + + +} + +/* + Model: LenderTransactionState +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class LenderTransactionState { + + + + + @JsonProperty("id") + private String id; + + + + + @JsonProperty("stepIndex") + private Double stepIndex; + + + + + @JsonProperty("lenderId") + private String lenderId; + + + + + @JsonProperty("workflowId") + private String workflowId; + + + + + @JsonProperty("workflowName") + private String workflowName; + + + + + @JsonProperty("parentStateId") + private String parentStateId; + + + + + @JsonProperty("workflowUrl") + private String workflowUrl; + + + + + @JsonProperty("isInternal") + private Boolean isInternal; + + + + + @JsonProperty("active") + private Boolean active; + + + + + @JsonProperty("ttl") + private Double ttl; + + + + + @JsonProperty("name") + private String name; + + + + + @JsonProperty("type") + private String type; + + + + + @JsonProperty("inputData") + private Object inputData; + + + + + @JsonProperty("createdAt") + private String createdAt; + + + + @JsonProperty("updatedAt") + private String updatedAt; - @JsonProperty("success") - private Boolean success; + + @JsonProperty("deletedAt") + private String deletedAt; @@ -7838,7 +9294,7 @@ public static class UploadReconciliationFileResponse { } /* - Model: TransactionCount + Model: TransactionStateResponse */ @AllArgsConstructor @NoArgsConstructor @@ -7847,13 +9303,13 @@ public static class UploadReconciliationFileResponse { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionCount { +public static class TransactionStateResponse { - @JsonProperty("totalTransactions") - private String totalTransactions; + @JsonProperty("transactionState") + private List transactionState; @@ -7861,7 +9317,7 @@ public static class TransactionCount { } /* - Model: RefundCount + Model: Theme */ @AllArgsConstructor @NoArgsConstructor @@ -7870,59 +9326,37 @@ public static class TransactionCount { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class RefundCount { +public static class Theme { - @JsonProperty("refundTransactions") - private String refundTransactions; + @JsonProperty("logoUrl") + private String logoUrl; -} - -/* - Model: OrganizationTransactionsCount -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class OrganizationTransactionsCount { + @JsonProperty("iconUrl") + private String iconUrl; - @JsonProperty("count") - private Double count; + @JsonProperty("landscapeBgUrl") + private String landscapeBgUrl; -} - -/* - Model: OrganizationTransactionsSum -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class OrganizationTransactionsSum { + @JsonProperty("portraitBgUrl") + private String portraitBgUrl; - @JsonProperty("sum") - private Double sum; + @JsonProperty("shortName") + private String shortName; @@ -7930,7 +9364,7 @@ public static class OrganizationTransactionsSum { } /* - Model: UniqueCustomersInOrg + Model: Emi */ @AllArgsConstructor @NoArgsConstructor @@ -7939,135 +9373,91 @@ public static class OrganizationTransactionsSum { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class UniqueCustomersInOrg { +public static class Emi { - @JsonProperty("count") - private Double count; + @JsonProperty("id") + private String id; -} - -/* - Model: TransactionAmount -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionAmount { + @JsonProperty("userId") + private String userId; - @JsonProperty("totalTransactionAmount") - private String totalTransactionAmount; + @JsonProperty("installmentno") + private Double installmentno; -} - -/* - Model: SchemaForOneDayTotal -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class SchemaForOneDayTotal { + @JsonProperty("loanAccountNumber") + private String loanAccountNumber; - @JsonProperty("orgId") - private String orgId; + @JsonProperty("amount") + private Double amount; - @JsonProperty("createdAt") - private String createdAt; + @JsonProperty("dueDate") + private String dueDate; - @JsonProperty("count") - private Double count; + @JsonProperty("referenceTransactionId") + private String referenceTransactionId; - @JsonProperty("sum") - private String sum; + @JsonProperty("remark") + private String remark; - @JsonProperty("refund") - private String refund; + @JsonProperty("createdAt") + private String createdAt; - @JsonProperty("difference") - private String difference; + @JsonProperty("updatedAt") + private String updatedAt; -} - -/* - Model: SumofOneDayTransactions -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class SumofOneDayTransactions { + @JsonProperty("entityId") + private String entityId; - @JsonProperty("dayTotal") - private List dayTotal; + @JsonProperty("paid") + private Boolean paid; -} - -/* - Model: AverageTransaction -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class AverageTransaction { + @JsonProperty("overdue") + private Boolean overdue; - @JsonProperty("average") - private Double average; + @JsonProperty("repaymentDate") + private String repaymentDate; @@ -8075,7 +9465,7 @@ public static class AverageTransaction { } /* - Model: AllTransactionsResponse + Model: MetricPivots */ @AllArgsConstructor @NoArgsConstructor @@ -8084,61 +9474,72 @@ public static class AverageTransaction { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class AllTransactionsResponse { +public static class MetricPivots { - @JsonProperty("id") - private String id; + @JsonProperty("date") + private String date; - @JsonProperty("userId") - private String userId; + @JsonProperty("sum") + private Double sum; - @JsonProperty("partnerId") - private String partnerId; +} + +/* + Model: TransactionMetricSubResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionMetricSubResponse { - @JsonProperty("status") - private String status; + @JsonProperty("total") + private String total; - @JsonProperty("type") - private String type; + @JsonProperty("pivots") + private List pivots; - @JsonProperty("remark") - private String remark; + @JsonProperty("title") + private String title; - @JsonProperty("amount") - private Double amount; + @JsonProperty("description") + private String description; - @JsonProperty("loanAccountNumber") - private String loanAccountNumber; + @JsonProperty("valueFormat") + private String valueFormat; - @JsonProperty("createdAt") - private String createdAt; + @JsonProperty("logo") + private String logo; @@ -8146,7 +9547,7 @@ public static class AllTransactionsResponse { } /* - Model: TotalRefund + Model: TransactionMetrics */ @AllArgsConstructor @NoArgsConstructor @@ -8155,36 +9556,25 @@ public static class AllTransactionsResponse { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TotalRefund { +public static class TransactionMetrics { - @JsonProperty("totalRefund") - private String totalRefund; + @JsonProperty("totalDisbursement") + private TransactionMetricSubResponse totalDisbursement; -} - -/* - Model: TotalRepayment -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class TotalRepayment { + @JsonProperty("totalOverdue") + private TransactionMetricSubResponse totalOverdue; @JsonProperty("totalRepayment") - private String totalRepayment; + private TransactionMetricSubResponse totalRepayment; @@ -8192,7 +9582,7 @@ public static class TotalRepayment { } /* - Model: TotalOverDue + Model: LenderCustomerTransactionMetricsFilters */ @AllArgsConstructor @NoArgsConstructor @@ -8201,36 +9591,37 @@ public static class TotalRepayment { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TotalOverDue { +public static class LenderCustomerTransactionMetricsFilters { + + + + + @JsonProperty("type") + private String type; + + + + + @JsonProperty("display") + private String display; - @JsonProperty("totalDue") - private String totalDue; + @JsonProperty("value") + private List value; -} - -/* - Model: TotalLoansDisbursed -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class TotalLoansDisbursed { + @JsonProperty("isSelected") + private Boolean isSelected; - @JsonProperty("totalLoansDisbursed") - private String totalLoansDisbursed; + @JsonProperty("isActive") + private Boolean isActive; @@ -8238,7 +9629,7 @@ public static class TotalLoansDisbursed { } /* - Model: OrganizationTransactionResponse + Model: LenderCustomerTransactionMetrics */ @AllArgsConstructor @NoArgsConstructor @@ -8247,25 +9638,25 @@ public static class TotalLoansDisbursed { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class OrganizationTransactionResponse { +public static class LenderCustomerTransactionMetrics { - @JsonProperty("filters") - private List filters; + @JsonProperty("metrics") + private TransactionMetrics metrics; - @JsonProperty("page") - private TrPageResponse page; + @JsonProperty("filters") + private List filters; - @JsonProperty("transactions") - private List transactions; + @JsonProperty("sort") + private List sort; @@ -8273,7 +9664,7 @@ public static class OrganizationTransactionResponse { } /* - Model: TrFilters + Model: LenderCustomerTransactionMetricsResponse */ @AllArgsConstructor @NoArgsConstructor @@ -8282,19 +9673,13 @@ public static class OrganizationTransactionResponse { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TrFilters { - - - - - @JsonProperty("key") - private TrFilterKeys key; +public static class LenderCustomerTransactionMetricsResponse { - @JsonProperty("values") - private List values; + @JsonProperty("data") + private Object data; @@ -8302,7 +9687,7 @@ public static class TrFilters { } /* - Model: TrPageResponse + Model: LenderCustomerTransactionMetricsRequest */ @AllArgsConstructor @NoArgsConstructor @@ -8311,43 +9696,49 @@ public static class TrFilters { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TrPageResponse { +public static class LenderCustomerTransactionMetricsRequest { - @JsonProperty("type") - private String type; + @JsonProperty("filters") + private List filters; - @JsonProperty("current") - private Double current; + @JsonProperty("sort") + private List sort; - @JsonProperty("hasPrevious") - private Boolean hasPrevious; + @JsonProperty("startDate") + private String startDate; - @JsonProperty("hasNext") - private Boolean hasNext; + @JsonProperty("endDate") + private String endDate; - @JsonProperty("size") - private Double size; + @JsonProperty("merchantId") + private String merchantId; - @JsonProperty("itemTotal") - private Double itemTotal; + @JsonProperty("lenderId") + private String lenderId; + + + + + @JsonProperty("pivotPoints") + private Double pivotPoints; @@ -8355,7 +9746,7 @@ public static class TrPageResponse { } /* - Model: OrgTransactions + Model: OrderShipmentAddressGeoLocation */ @AllArgsConstructor @NoArgsConstructor @@ -8364,97 +9755,125 @@ public static class TrPageResponse { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class OrgTransactions { +public static class OrderShipmentAddressGeoLocation { - @JsonProperty("id") - private String id; + @JsonProperty("latitude") + private Double latitude; - @JsonProperty("userId") - private String userId; + @JsonProperty("longitude") + private Double longitude; - @JsonProperty("userName") - private String userName; +} + +/* + Model: OrderShipmentAddress +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class OrderShipmentAddress { - @JsonProperty("partnerId") - private String partnerId; + @JsonProperty("line1") + private String line1; - @JsonProperty("partner") - private String partner; + @JsonProperty("line2") + private String line2; - @JsonProperty("partnerLogo") - private String partnerLogo; + @JsonProperty("city") + private String city; - @JsonProperty("status") - private String status; + @JsonProperty("state") + private String state; - @JsonProperty("type") - private String type; + @JsonProperty("country") + private String country; - @JsonProperty("remark") - private String remark; + @JsonProperty("pincode") + private String pincode; - @JsonProperty("amount") - private Double amount; + @JsonProperty("type") + private String type; - @JsonProperty("orderId") - private String orderId; + @JsonProperty("geoLocation") + private OrderShipmentAddressGeoLocation geoLocation; - @JsonProperty("loanAccountNumber") - private String loanAccountNumber; +} + +/* + Model: OrderShipmentItem +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class OrderShipmentItem { - @JsonProperty("kfs") - private String kfs; + @JsonProperty("category") + private String category; - @JsonProperty("sanctionLetter") - private String sanctionLetter; + @JsonProperty("sku") + private String sku; - @JsonProperty("createdAt") - private String createdAt; + @JsonProperty("rate") + private Double rate; + + + + + @JsonProperty("quantity") + private Double quantity; @@ -8462,7 +9881,7 @@ public static class OrgTransactions { } /* - Model: TrFilterKeys + Model: OrderShipment */ @AllArgsConstructor @NoArgsConstructor @@ -8471,60 +9890,61 @@ public static class OrgTransactions { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TrFilterKeys { +public static class OrderShipment { - @JsonProperty("display") - private String display; + @JsonProperty("id") + private String id; - @JsonProperty("name") - private String name; + @JsonProperty("urn") + private String urn; - @JsonProperty("kind") - private String kind; + @JsonProperty("amount") + private Double amount; -} - -/* - Model: TrFilterValues -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class TrFilterValues { + @JsonProperty("timestamp") + private String timestamp; - @JsonProperty("display") - private String display; + @JsonProperty("status") + private String status; - @JsonProperty("isSelected") - private Boolean isSelected; + @JsonProperty("remark") + private String remark; - @JsonProperty("value") - private String value; + @JsonProperty("items") + private List items; + + + + + @JsonProperty("shippingAddress") + private OrderShipmentAddress shippingAddress; + + + + + @JsonProperty("billingAddress") + private OrderShipmentAddress billingAddress; @@ -8532,7 +9952,7 @@ public static class TrFilterValues { } /* - Model: KfsRequest + Model: OrderDeliveryUpdatesBody */ @AllArgsConstructor @NoArgsConstructor @@ -8541,42 +9961,31 @@ public static class TrFilterValues { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class KfsRequest { +public static class OrderDeliveryUpdatesBody { - @JsonProperty("loanTypeId") - private Double loanTypeId; + @JsonProperty("orderId") + private String orderId; - @JsonProperty("chargeToken") - private String chargeToken; + @JsonProperty("transactionId") + private String transactionId; -} - -/* - Model: KfsResponse -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class KfsResponse { + @JsonProperty("includeSummary") + private Boolean includeSummary; - @JsonProperty("kfsTable") - private String kfsTable; + @JsonProperty("shipments") + private List shipments; @@ -8584,7 +9993,7 @@ public static class KfsResponse { } /* - Model: LenderTransactionState + Model: OrderShipmentSummary */ @AllArgsConstructor @NoArgsConstructor @@ -8593,103 +10002,125 @@ public static class KfsResponse { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class LenderTransactionState { +public static class OrderShipmentSummary { - @JsonProperty("id") - private String id; + @JsonProperty("orderAmount") + private Double orderAmount; - @JsonProperty("stepIndex") - private Double stepIndex; + @JsonProperty("capturedAmount") + private Double capturedAmount; - @JsonProperty("lenderId") - private String lenderId; + @JsonProperty("uncapturedAmount") + private Double uncapturedAmount; - @JsonProperty("workflowId") - private String workflowId; + @JsonProperty("capturedAmountForDisbursal") + private Double capturedAmountForDisbursal; - @JsonProperty("workflowName") - private String workflowName; + @JsonProperty("capturedAmountForCancellation") + private Double capturedAmountForCancellation; - @JsonProperty("parentStateId") - private String parentStateId; +} + +/* + Model: OrderShipmentResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class OrderShipmentResponse { - @JsonProperty("workflowUrl") - private String workflowUrl; + @JsonProperty("id") + private String id; - @JsonProperty("isInternal") - private Boolean isInternal; + @JsonProperty("urn") + private String urn; - @JsonProperty("active") - private Boolean active; + @JsonProperty("shipmentStatus") + private String shipmentStatus; - @JsonProperty("ttl") - private Double ttl; + @JsonProperty("shipmentAmount") + private Double shipmentAmount; - @JsonProperty("name") - private String name; + @JsonProperty("processingStatus") + private String processingStatus; - @JsonProperty("type") - private String type; +} + +/* + Model: OrderDeliveryUpdatesData +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class OrderDeliveryUpdatesData { - @JsonProperty("inputData") - private Object inputData; + @JsonProperty("orderId") + private String orderId; - @JsonProperty("createdAt") - private String createdAt; + @JsonProperty("transactionId") + private String transactionId; - @JsonProperty("updatedAt") - private String updatedAt; + @JsonProperty("shipments") + private List shipments; - @JsonProperty("deletedAt") - private String deletedAt; + @JsonProperty("summary") + private OrderShipmentSummary summary; @@ -8697,7 +10128,7 @@ public static class LenderTransactionState { } /* - Model: TransactionStateResponse + Model: OrderDeliveryUpdatesResponse */ @AllArgsConstructor @NoArgsConstructor @@ -8706,13 +10137,25 @@ public static class LenderTransactionState { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionStateResponse { +public static class OrderDeliveryUpdatesResponse { - @JsonProperty("transactionState") - private List transactionState; + @JsonProperty("message") + private String message; + + + + + @JsonProperty("meta") + private IntegrationResponseMeta meta; + + + + + @JsonProperty("data") + private OrderDeliveryUpdatesData data; @@ -8720,7 +10163,7 @@ public static class TransactionStateResponse { } /* - Model: Theme + Model: OrderDeliveryUpdatesPartialResponse */ @AllArgsConstructor @NoArgsConstructor @@ -8729,37 +10172,31 @@ public static class TransactionStateResponse { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class Theme { - +public static class OrderDeliveryUpdatesPartialResponse { - @JsonProperty("logoUrl") - private String logoUrl; - - - - @JsonProperty("iconUrl") - private String iconUrl; + @JsonProperty("message") + private String message; - @JsonProperty("landscapeBgUrl") - private String landscapeBgUrl; + @JsonProperty("meta") + private IntegrationResponseMeta meta; - @JsonProperty("portraitBgUrl") - private String portraitBgUrl; + @JsonProperty("data") + private OrderDeliveryUpdatesData data; - @JsonProperty("shortName") - private String shortName; + @JsonProperty("errors") + private List errors; @@ -8767,7 +10204,7 @@ public static class Theme { } /* - Model: Emi + Model: OrderDeliveryUpdatesError */ @AllArgsConstructor @NoArgsConstructor @@ -8776,91 +10213,130 @@ public static class Theme { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class Emi { +public static class OrderDeliveryUpdatesError { - @JsonProperty("id") - private String id; + @JsonProperty("code") + private String code; - @JsonProperty("userId") - private String userId; + @JsonProperty("message") + private String message; - @JsonProperty("installmentno") - private Double installmentno; + @JsonProperty("exception") + private String exception; - @JsonProperty("loanAccountNumber") - private String loanAccountNumber; +} + +/* + Model: TransactionOrderSummary +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionOrderSummary { - @JsonProperty("amount") - private Double amount; + @JsonProperty("capturedAmount") + private Double capturedAmount; - @JsonProperty("dueDate") - private String dueDate; + @JsonProperty("uncapturedAmount") + private Double uncapturedAmount; - @JsonProperty("referenceTransactionId") - private String referenceTransactionId; + @JsonProperty("capturedAmountForDisbursal") + private Double capturedAmountForDisbursal; - @JsonProperty("remark") - private String remark; + @JsonProperty("capturedAmountForCancellation") + private Double capturedAmountForCancellation; - @JsonProperty("createdAt") - private String createdAt; +} + +/* + Model: TransactionOrder +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionOrder { - @JsonProperty("updatedAt") - private String updatedAt; + @JsonProperty("id") + private String id; - @JsonProperty("entityId") - private String entityId; + @JsonProperty("amount") + private Double amount; - @JsonProperty("paid") - private Boolean paid; + @JsonProperty("summary") + private TransactionOrderSummary summary; - @JsonProperty("overdue") - private Boolean overdue; +} + +/* + Model: TransactionMerchant +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class TransactionMerchant { - @JsonProperty("repaymentDate") - private String repaymentDate; + @JsonProperty("name") + private String name; + + + + + @JsonProperty("logo") + private String logo; @@ -8868,7 +10344,7 @@ public static class Emi { } /* - Model: MetricPivots + Model: TransactionLoan */ @AllArgsConstructor @NoArgsConstructor @@ -8877,19 +10353,49 @@ public static class Emi { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class MetricPivots { +public static class TransactionLoan { - @JsonProperty("date") - private String date; + @JsonProperty("number") + private String number; - @JsonProperty("sum") - private Double sum; + @JsonProperty("amount") + private Double amount; + + + + + @JsonProperty("type") + private String type; + + + + + @JsonProperty("dueDate") + private String dueDate; + + + + + @JsonProperty("repaidAmount") + private Double repaidAmount; + + + + + @JsonProperty("isSettled") + private Boolean isSettled; + + + + + @JsonProperty("emis") + private List emis; @@ -8897,7 +10403,7 @@ public static class MetricPivots { } /* - Model: TransactionMetricSubResponse + Model: TransactionLoanEmi */ @AllArgsConstructor @NoArgsConstructor @@ -8906,43 +10412,37 @@ public static class MetricPivots { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionMetricSubResponse { - - - - - @JsonProperty("total") - private String total; +public static class TransactionLoanEmi { - @JsonProperty("pivots") - private List pivots; + @JsonProperty("amount") + private Double amount; - @JsonProperty("title") - private String title; + @JsonProperty("dueDate") + private String dueDate; - @JsonProperty("description") - private String description; + @JsonProperty("installmentNo") + private Integer installmentNo; - @JsonProperty("valueFormat") - private String valueFormat; + @JsonProperty("repaidAmount") + private Double repaidAmount; - @JsonProperty("logo") - private String logo; + @JsonProperty("isSettled") + private Boolean isSettled; @@ -8950,7 +10450,7 @@ public static class TransactionMetricSubResponse { } /* - Model: TransactionMetrics + Model: TransactionLender */ @AllArgsConstructor @NoArgsConstructor @@ -8959,25 +10459,31 @@ public static class TransactionMetricSubResponse { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionMetrics { +public static class TransactionLender { + + + + + @JsonProperty("name") + private String name; - @JsonProperty("totalDisbursement") - private TransactionMetricSubResponse totalDisbursement; + @JsonProperty("slug") + private String slug; - @JsonProperty("totalOverdue") - private TransactionMetricSubResponse totalOverdue; + @JsonProperty("logo") + private String logo; - @JsonProperty("totalRepayment") - private TransactionMetricSubResponse totalRepayment; + @JsonProperty("shortName") + private String shortName; @@ -8985,7 +10491,7 @@ public static class TransactionMetrics { } /* - Model: LenderCustomerTransactionMetricsFilters + Model: UserTransaction */ @AllArgsConstructor @NoArgsConstructor @@ -8994,95 +10500,79 @@ public static class TransactionMetrics { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class LenderCustomerTransactionMetricsFilters { +public static class UserTransaction { - @JsonProperty("type") - private String type; + @JsonProperty("id") + private String id; - @JsonProperty("display") - private String display; + @JsonProperty("amount") + private Double amount; - @JsonProperty("value") - private List value; + @JsonProperty("type") + private String type; - @JsonProperty("isSelected") - private Boolean isSelected; + @JsonProperty("status") + private String status; - @JsonProperty("isActive") - private Boolean isActive; + @JsonProperty("settlementUtr") + private String settlementUtr; -} - -/* - Model: LenderCustomerTransactionMetrics -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class LenderCustomerTransactionMetrics { + @JsonProperty("refundId") + private String refundId; - @JsonProperty("metrics") - private TransactionMetrics metrics; + @JsonProperty("createdAt") + private String createdAt; - @JsonProperty("filters") - private List filters; + @JsonProperty("isMasked") + private Boolean isMasked; - @JsonProperty("sort") - private List sort; + @JsonProperty("order") + private TransactionOrder order; -} - -/* - Model: LenderCustomerTransactionMetricsResponse -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class LenderCustomerTransactionMetricsResponse { + @JsonProperty("merchant") + private TransactionMerchant merchant; - @JsonProperty("data") - private Object data; + @JsonProperty("loans") + private List loans; + + + + + @JsonProperty("lender") + private TransactionLender lender; @@ -9090,7 +10580,7 @@ public static class LenderCustomerTransactionMetricsResponse { } /* - Model: LenderCustomerTransactionMetricsRequest + Model: Pagination */ @AllArgsConstructor @NoArgsConstructor @@ -9099,49 +10589,43 @@ public static class LenderCustomerTransactionMetricsResponse { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class LenderCustomerTransactionMetricsRequest { - - - - - @JsonProperty("filters") - private List filters; +public static class Pagination { - @JsonProperty("sort") - private List sort; + @JsonProperty("type") + private String type; - @JsonProperty("startDate") - private String startDate; + @JsonProperty("current") + private Integer current; - @JsonProperty("endDate") - private String endDate; + @JsonProperty("hasPrevious") + private Boolean hasPrevious; - @JsonProperty("merchantId") - private String merchantId; + @JsonProperty("hasNext") + private Boolean hasNext; - @JsonProperty("lenderId") - private String lenderId; + @JsonProperty("size") + private Integer size; - @JsonProperty("pivotPoints") - private Double pivotPoints; + @JsonProperty("itemTotal") + private Integer itemTotal; @@ -9149,7 +10633,7 @@ public static class LenderCustomerTransactionMetricsRequest { } /* - Model: TransactionOrder + Model: GetTransactionsData */ @AllArgsConstructor @NoArgsConstructor @@ -9158,19 +10642,19 @@ public static class LenderCustomerTransactionMetricsRequest { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionOrder { +public static class GetTransactionsData { - @JsonProperty("id") - private String id; + @JsonProperty("transactions") + private List transactions; - @JsonProperty("amount") - private Double amount; + @JsonProperty("page") + private Pagination page; @@ -9178,7 +10662,7 @@ public static class TransactionOrder { } /* - Model: TransactionMerchant + Model: GetTransactionsResponse */ @AllArgsConstructor @NoArgsConstructor @@ -9187,19 +10671,25 @@ public static class TransactionOrder { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionMerchant { +public static class GetTransactionsResponse { - @JsonProperty("name") - private String name; + @JsonProperty("message") + private String message; - @JsonProperty("logo") - private String logo; + @JsonProperty("meta") + private IntegrationResponseMeta meta; + + + + + @JsonProperty("data") + private GetTransactionsData data; @@ -9207,7 +10697,7 @@ public static class TransactionMerchant { } /* - Model: TransactionLoan + Model: SettlementTransactions */ @AllArgsConstructor @NoArgsConstructor @@ -9216,49 +10706,49 @@ public static class TransactionMerchant { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionLoan { +public static class SettlementTransactions { - @JsonProperty("number") - private String number; + @JsonProperty("id") + private String id; - @JsonProperty("amount") - private Double amount; + @JsonProperty("utr") + private String utr; - @JsonProperty("type") - private String type; + @JsonProperty("amount") + private Double amount; - @JsonProperty("dueDate") - private String dueDate; + @JsonProperty("settlementStatus") + private String settlementStatus; - @JsonProperty("repaidAmount") - private Double repaidAmount; + @JsonProperty("orderId") + private String orderId; - @JsonProperty("isSettled") - private Boolean isSettled; + @JsonProperty("createdAt") + private String createdAt; - @JsonProperty("emis") - private List emis; + @JsonProperty("settlementTime") + private String settlementTime; @@ -9266,7 +10756,7 @@ public static class TransactionLoan { } /* - Model: TransactionLoanEmi + Model: GetSettlementTransactionsData */ @AllArgsConstructor @NoArgsConstructor @@ -9275,37 +10765,54 @@ public static class TransactionLoan { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionLoanEmi { +public static class GetSettlementTransactionsData { - @JsonProperty("amount") - private Double amount; + @JsonProperty("transactions") + private List transactions; - @JsonProperty("dueDate") - private String dueDate; + @JsonProperty("page") + private Pagination page; - @JsonProperty("installmentNo") - private Integer installmentNo; +} + +/* + Model: GetSettlementTransactionsResponse +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class GetSettlementTransactionsResponse { - @JsonProperty("repaidAmount") - private Double repaidAmount; + @JsonProperty("message") + private String message; - @JsonProperty("isSettled") - private Boolean isSettled; + @JsonProperty("meta") + private IntegrationResponseMeta meta; + + + + + @JsonProperty("data") + private GetSettlementTransactionsData data; @@ -9313,7 +10820,7 @@ public static class TransactionLoanEmi { } /* - Model: TransactionLender + Model: SummaryRequest */ @AllArgsConstructor @NoArgsConstructor @@ -9322,31 +10829,31 @@ public static class TransactionLoanEmi { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class TransactionLender { +public static class SummaryRequest { - @JsonProperty("name") - private String name; + @JsonProperty("startDate") + private String startDate; - @JsonProperty("slug") - private String slug; + @JsonProperty("endDate") + private String endDate; - @JsonProperty("logo") - private String logo; + @JsonProperty("merchantId") + private String merchantId; - @JsonProperty("shortName") - private String shortName; + @JsonProperty("type") + private String type; @@ -9354,7 +10861,7 @@ public static class TransactionLender { } /* - Model: UserTransaction + Model: RegisterTransaction */ @AllArgsConstructor @NoArgsConstructor @@ -9363,79 +10870,89 @@ public static class TransactionLender { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class UserTransaction { - - - +public static class RegisterTransaction { - @JsonProperty("id") - private String id; - - - - - @JsonProperty("amount") - private Double amount; - - @JsonProperty("type") - private String type; - + @JsonProperty("intent") + private String intent; - @JsonProperty("status") - private String status; + @JsonProperty("token") + private String token; - @JsonProperty("settlementUtr") - private String settlementUtr; +} + +/* + Model: RegisterTransactionResponseData +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class RegisterTransactionResponseData { - @JsonProperty("refundId") - private String refundId; + @JsonProperty("isExistingOrder") + private Boolean isExistingOrder; - @JsonProperty("createdAt") - private String createdAt; + @JsonProperty("transaction") + private Object transaction; - @JsonProperty("isMasked") - private Boolean isMasked; + @JsonProperty("action") + private Boolean action; - @JsonProperty("order") - private TransactionOrder order; + @JsonProperty("status") + private String status; - @JsonProperty("merchant") - private TransactionMerchant merchant; + @JsonProperty("message") + private String message; - @JsonProperty("loans") - private List loans; + +} + +/* + Model: RegisterTransactionResponseResult +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class RegisterTransactionResponseResult { - @JsonProperty("lender") - private TransactionLender lender; + @JsonProperty("redirectUrl") + private String redirectUrl; @@ -9443,7 +10960,7 @@ public static class UserTransaction { } /* - Model: Pagination + Model: RegisterTransactionResponse */ @AllArgsConstructor @NoArgsConstructor @@ -9452,43 +10969,43 @@ public static class UserTransaction { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class Pagination { +public static class RegisterTransactionResponse { - @JsonProperty("type") - private String type; + @JsonProperty("result") + private RegisterTransactionResponseResult result; - @JsonProperty("current") - private Integer current; + @JsonProperty("action") + private Object action; - @JsonProperty("hasPrevious") - private Boolean hasPrevious; + @JsonProperty("data") + private RegisterTransactionResponseData data; - @JsonProperty("hasNext") - private Boolean hasNext; + @JsonProperty("transactionId") + private String transactionId; - @JsonProperty("size") - private Integer size; + @JsonProperty("status") + private String status; - @JsonProperty("itemTotal") - private Integer itemTotal; + @JsonProperty("message") + private String message; @@ -9496,7 +11013,7 @@ public static class Pagination { } /* - Model: GetTransactionsData + Model: UpdateTransactionRequest */ @AllArgsConstructor @NoArgsConstructor @@ -9505,19 +11022,19 @@ public static class Pagination { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class GetTransactionsData { +public static class UpdateTransactionRequest { - @JsonProperty("transactions") - private List transactions; + @JsonProperty("intent") + private String intent; - @JsonProperty("page") - private Pagination page; + @JsonProperty("token") + private String token; @@ -9525,7 +11042,7 @@ public static class GetTransactionsData { } /* - Model: GetTransactionsResponse + Model: UpdateTransactionResponse */ @AllArgsConstructor @NoArgsConstructor @@ -9534,66 +11051,43 @@ public static class GetTransactionsData { @Setter @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) -public static class GetTransactionsResponse { +public static class UpdateTransactionResponse { - @JsonProperty("message") - private String message; + @JsonProperty("result") + private RegisterTransactionResponseResult result; - @JsonProperty("meta") - private IntegrationResponseMeta meta; + @JsonProperty("action") + private Object action; @JsonProperty("data") - private GetTransactionsData data; - - - - -} - -/* - Model: SummaryRequest -*/ -@AllArgsConstructor -@NoArgsConstructor -@Builder -@Getter -@Setter -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -public static class SummaryRequest { - - - - - @JsonProperty("startDate") - private String startDate; + private RegisterTransactionResponseData data; - @JsonProperty("endDate") - private String endDate; + @JsonProperty("transactionId") + private String transactionId; - @JsonProperty("merchantId") - private String merchantId; + @JsonProperty("status") + private String status; - @JsonProperty("type") - private String type; + @JsonProperty("message") + private String message; @@ -12724,6 +14218,47 @@ public static class RetriggerLenderOnboardRequest { +} + +/* + Model: RetriggerLenderOnboardRequestV2 +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class RetriggerLenderOnboardRequestV2 { + + + + + @JsonProperty("lenderUserId") + private String lenderUserId; + + + + + @JsonProperty("stepName") + private String stepName; + + + + + @JsonProperty("data") + private Object data; + + + + + @JsonProperty("entityMapId") + private String entityMapId; + + + + } /* @@ -14203,6 +15738,30 @@ public static class Pg { + @JsonProperty("baseUrl") + private String baseUrl; + + + + + @JsonProperty("config") + private Object config; + + + + + @JsonProperty("paymentOptions") + private List paymentOptions; + + + + + @JsonProperty("credentialsSchema") + private Object credentialsSchema; + + + + } /* @@ -14262,6 +15821,18 @@ public static class LenderPgConfig { + @JsonProperty("config") + private Object config; + + + + + @JsonProperty("paymentOptions") + private List paymentOptions; + + + + } /* @@ -17542,6 +19113,18 @@ public static class CreateOrganization { + @JsonProperty("supportEmail") + private String supportEmail; + + + + + @JsonProperty("description") + private String description; + + + + @JsonProperty("businessAddress") private String businessAddress; @@ -17836,6 +19419,18 @@ public static class FinancialDetails { + @JsonProperty("supportEmail") + private String supportEmail; + + + + + @JsonProperty("description") + private String description; + + + + @JsonProperty("businessAddress") private String businessAddress; @@ -20172,6 +21767,12 @@ public static class RepaymentUsingNetbanking { + @JsonProperty("transactionId") + private String transactionId; + + + + } /* @@ -20242,6 +21843,12 @@ public static class RepaymentUsingUPI { + @JsonProperty("transactionId") + private String transactionId; + + + + } /* @@ -21070,6 +22677,47 @@ public static class PaymentOptionsResponse { +} + +/* + Model: CheckEMandateStatusRequest +*/ +@AllArgsConstructor +@NoArgsConstructor +@Builder +@Getter +@Setter +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +public static class CheckEMandateStatusRequest { + + + + + @JsonProperty("orderId") + private String orderId; + + + + + @JsonProperty("paymentId") + private String paymentId; + + + + + @JsonProperty("scheduledEnd") + private String scheduledEnd; + + + + + @JsonProperty("ruleAmountValue") + private String ruleAmountValue; + + + + } /* diff --git a/src/main/java/com/sdk/platform/PlatformService.java b/src/main/java/com/sdk/platform/PlatformService.java index 7347de8..ca9b403 100644 --- a/src/main/java/com/sdk/platform/PlatformService.java +++ b/src/main/java/com/sdk/platform/PlatformService.java @@ -423,6 +423,27 @@ public PlatformModels.EligiblePlansResponse getEligiblePlans(String organization + public PlatformModels.OrderDeliveryUpdatesResponse updateOrderDeliveryStatus(String organizationId ,PlatformModels.OrderDeliveryUpdatesBody body) throws IOException { + Response response = creditApiList.updateOrderDeliveryStatus(organizationId , body).execute(); + if (!response.isSuccessful()) { + throw new IOException(response.errorBody() != null + ? response.errorBody().string() : Fields.UNKNOWN_ERROR); + } + return response.body(); + } + + + + + + + + + + + + + @@ -474,6 +495,51 @@ public PlatformModels.GetTransactionsResponse getTransactions(String organizatio + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public PlatformModels.GetSettlementTransactionsResponse getSettledTransactions(String organizationId , Integer page , Integer limit , String orderId , String transactionId , String startDate , String endDate ) throws IOException { + Response response = creditApiList.getSettledTransactions(organizationId ,page , limit , orderId , transactionId , startDate , endDate ).execute(); + if (!response.isSuccessful()) { + throw new IOException(response.errorBody() != null + ? response.errorBody().string() : Fields.UNKNOWN_ERROR); + } + return response.body(); + } + + + public class ApplicationClient { @@ -496,6 +562,10 @@ public class ApplicationClient { + + + + }