diff --git a/schemas/CustomerConsentRequest.json b/schemas/CustomerConsentRequest.json index 8789e18..e8e831f 100644 --- a/schemas/CustomerConsentRequest.json +++ b/schemas/CustomerConsentRequest.json @@ -1,11 +1,6 @@ { "type": "object", "properties": { - "$type": { - "type": "string", - "description": "Fixed value for this request type", - "example": "CustomerConsentRequest" - }, "transactionId": { "type": "string", "description": "Unique identifier of transaction in FIRSTBANK system", @@ -36,8 +31,7 @@ "channel": { "type": "string", "description": "Request channel: 'USSD' or 'APP'", - "enum": ["USSD", "APP"], - "example": "USSD" + "example": "100" } }, "required": [ diff --git a/schemas/EligibilityCheckRequest.json b/schemas/EligibilityCheckRequest.json index 7d28251..9b90d25 100644 --- a/schemas/EligibilityCheckRequest.json +++ b/schemas/EligibilityCheckRequest.json @@ -1,7 +1,6 @@ { "type": "object", "required": [ - "$type", "transactionId", "countryCode", "customerId", @@ -9,11 +8,6 @@ "channel" ], "properties": { - "$type": { - "type": "string", - "description": "Fixed value to identify request type", - "example": "EligibilityCheckRequest" - }, "transactionId": { "type": "string", "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", @@ -37,13 +31,12 @@ "msisdn": { "type": "string", "description": "User's mobile number in an international format", - "example": "2348012345678" + "example": "8012345678" }, "channel": { "type": "string", - "description": "Request channel: USSD, MobApp, or Web", - "enum": ["USSD", "MobApp", "Web"], - "example": "USSD" + "description": "Request channel: USSD, MobApp, or Web - type Channel", + "example": "100" } }, "xml": { diff --git a/schemas/EligibilityCheckResponse.json b/schemas/EligibilityCheckResponse.json index db3c0a3..54151eb 100644 --- a/schemas/EligibilityCheckResponse.json +++ b/schemas/EligibilityCheckResponse.json @@ -35,13 +35,18 @@ "items": { "type": "object", "properties": { - "minamount": { + "offerId": { + "type": "string", + "description": "Offer identifier", + "example": "101" + }, + "minAmount": { "type": "number", "format": "double", "description": "Minimum loan amount", "example": 5000 }, - "maxamount": { + "maxAmount": { "type": "number", "format": "double", "description": "Maximum loan amount", @@ -50,14 +55,9 @@ "productId": { "type": "string", "description": "Product identifier", - "example": "101" + "example": "2030" }, - "offerid": { - "type": "string", - "description": "Offer identifier", - "example": "101" - }, - "Tenor": { + "tenor": { "type": "integer", "description": "Loan tenor in days", "example": 30 diff --git a/schemas/LoanStatusRequest.json b/schemas/LoanStatusRequest.json index 3867395..9f4e94e 100644 --- a/schemas/LoanStatusRequest.json +++ b/schemas/LoanStatusRequest.json @@ -1,17 +1,11 @@ { "type": "object", "required": [ - "$type", "transactionId", "customerId", "channel" ], "properties": { - "$type": { - "type": "string", - "description": "Fixed value to identify request type", - "example": "LoanStatusRequest" - }, "transactionId": { "type": "string", "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", @@ -30,8 +24,7 @@ "channel": { "type": "string", "description": "Request channel: USSD, MobileApp, or Web", - "enum": ["USSD", "MobileApp", "Web"], - "example": "USSD" + "example": "100" } }, "xml": { diff --git a/schemas/ProvideLoanRequest.json b/schemas/ProvideLoanRequest.json index 8e5b37b..e9cdecd 100644 --- a/schemas/ProvideLoanRequest.json +++ b/schemas/ProvideLoanRequest.json @@ -1,11 +1,6 @@ { "type": "object", "properties": { - "$type": { - "type": "string", - "description": "Value is fixed to 'ProvideLoanRequest'", - "example": "ProvideLoanRequest" - }, "requestId": { "type": "string", "description": "Unique identifier of request", diff --git a/schemas/RepaymentRequest.json b/schemas/RepaymentRequest.json index c2d3978..0b0403b 100644 --- a/schemas/RepaymentRequest.json +++ b/schemas/RepaymentRequest.json @@ -1,7 +1,6 @@ { "type": "object", "required": [ - "$type", "transactionId", "customerId", "debtId", @@ -9,11 +8,6 @@ "channel" ], "properties": { - "$type": { - "type": "string", - "description": "Fixed value to identify request type", - "example": "RepaymentRequest" - }, "msisdn": { "type": "string", "description": "User's mobile number in an international format", @@ -42,8 +36,7 @@ "channel": { "type": "string", "description": "Request channel: USSD or APP", - "enum": ["USSD", "APP"], - "example": "USSD" + "example": "100" } }, "xml": { diff --git a/schemas/RevokeEnableConsentResponse.json b/schemas/RevokeEnableConsentResponse.json index afbd3b1..9c5dca9 100644 --- a/schemas/RevokeEnableConsentResponse.json +++ b/schemas/RevokeEnableConsentResponse.json @@ -1,11 +1,6 @@ { "type": "object", "properties": { - "$type": { - "type": "string", - "description": "Value is fixed to 'RevokeEnableConsentResponse'", - "example": "RevokeEnableConsentResponse" - }, "customerId": { "type": "string", "description": "Unique identifier of a user", diff --git a/schemas/SelectOfferResponse.json b/schemas/SelectOfferResponse.json index 8e56f25..0af0339 100644 --- a/schemas/SelectOfferResponse.json +++ b/schemas/SelectOfferResponse.json @@ -10,11 +10,6 @@ "resultDescription" ], "properties": { - "requestId": { - "type": "string", - "description": "Unique identifier of request", - "example": "202111170001371256908" - }, "transactionId": { "type": "string", "description": "Unique identifier of transaction. This transaction Id must be consistent across all platform", diff --git a/schemas/TransactionVerifyResponse.json b/schemas/TransactionVerifyResponse.json index 781430e..1911db8 100644 --- a/schemas/TransactionVerifyResponse.json +++ b/schemas/TransactionVerifyResponse.json @@ -1,11 +1,7 @@ { "type": "object", "properties": { - "$type": { - "type": "string", - "description": "Value is fixed to 'TransactionCheckResponse'", - "example": "TransactionCheckResponse" - }, + "nativeId": { "type": "string", "description": "Unique identifier of transaction in FIRSTBANK system",