mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 18:46:46 +00:00
Merge pull request #1084 from constantine2nd/develop-wei
creditLimitOrderRequestJson - (remove the word Order or Request).
This commit is contained in:
commit
74a0ab6548
@ -2733,7 +2733,7 @@ object SwaggerDefinitionsJSON {
|
||||
cards = List(cardObjectJson)
|
||||
)
|
||||
|
||||
val creditLimitOrderRequestJson = CreditLimitOrderRequestJson(
|
||||
val creditLimitRequestJson = CreditLimitRequestJson(
|
||||
requested_current_rate_amount1 = "String",
|
||||
requested_current_rate_amount2 = "String",
|
||||
requested_current_valid_end_date = "String",
|
||||
|
||||
@ -57,9 +57,9 @@ object NewStyle {
|
||||
(nameOf(Implementations2_0_0.getAllEntitlements), ApiVersion.v2_0_0.toString),
|
||||
(nameOf(Implementations3_1_0.getCheckbookOrders), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.getStatusOfCreditCardOrder), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.createCreditLimitOrderRequest), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.getCreditLimitOrderRequests), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.getCreditLimitOrderRequestByRequestId), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.createCreditLimitRequest), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.getCreditLimitRequests), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.getCreditLimitRequestByRequestId), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.getTopAPIs), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.getMetricsTopConsumers), ApiVersion.v3_1_0.toString),
|
||||
(nameOf(Implementations3_1_0.getFirehoseCustomers), ApiVersion.v3_1_0.toString),
|
||||
|
||||
@ -108,21 +108,21 @@ trait APIMethods310 {
|
||||
}
|
||||
|
||||
resourceDocs += ResourceDoc(
|
||||
createCreditLimitOrderRequest,
|
||||
createCreditLimitRequest,
|
||||
implementedInApiVersion,
|
||||
"createCreditLimitOrderRequest",
|
||||
"createCreditLimitRequest",
|
||||
"POST",
|
||||
"/banks/BANK_ID/customers/CUSTOMER_ID/credit_limit/requests",
|
||||
"Create Credit Limit Order Request",
|
||||
"""Create credit limit order request
|
||||
|""",
|
||||
creditLimitOrderRequestJson,
|
||||
creditLimitRequestJson,
|
||||
creditLimitOrderResponseJson,
|
||||
List(UserNotLoggedIn, UnknownError, BankNotFound),
|
||||
Catalogs(Core, notPSD2, OBWG),
|
||||
apiTagBank :: Nil)
|
||||
|
||||
lazy val createCreditLimitOrderRequest : OBPEndpoint = {
|
||||
lazy val createCreditLimitRequest : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customers" :: CustomerId(customerId) :: "credit_limit" :: "requests" :: Nil JsonPost json -> _ => {
|
||||
cc =>
|
||||
// val a: Future[(ChecksOrderStatusResponseDetails, Some[CallContext])] = for {
|
||||
@ -134,9 +134,9 @@ trait APIMethods310 {
|
||||
}
|
||||
|
||||
resourceDocs += ResourceDoc(
|
||||
getCreditLimitOrderRequests,
|
||||
getCreditLimitRequests,
|
||||
implementedInApiVersion,
|
||||
"getCreditLimitOrderRequests",
|
||||
"getCreditLimitRequests",
|
||||
"GET",
|
||||
"/banks/BANK_ID/customers/CUSTOMER_ID/credit_limit/requests",
|
||||
"Get Credit Limit Order Requests ",
|
||||
@ -148,7 +148,7 @@ trait APIMethods310 {
|
||||
Catalogs(Core, notPSD2, OBWG),
|
||||
apiTagBank :: Nil)
|
||||
|
||||
lazy val getCreditLimitOrderRequests : OBPEndpoint = {
|
||||
lazy val getCreditLimitRequests : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customers" :: CustomerId(customerId) :: "credit_limit" :: "requests" :: Nil JsonGet req => {
|
||||
cc =>
|
||||
// val a: Future[(ChecksOrderStatusResponseDetails, Some[CallContext])] = for {
|
||||
@ -160,9 +160,9 @@ trait APIMethods310 {
|
||||
}
|
||||
|
||||
resourceDocs += ResourceDoc(
|
||||
getCreditLimitOrderRequestByRequestId,
|
||||
getCreditLimitRequestByRequestId,
|
||||
implementedInApiVersion,
|
||||
"getCreditLimitOrderRequestByRequestId",
|
||||
"getCreditLimitRequestByRequestId",
|
||||
"GET",
|
||||
"/banks/BANK_ID/customers/CUSTOMER_ID/credit_limit/requests/REQUEST_ID",
|
||||
"Get Credit Limit Order Request By Request Id",
|
||||
@ -174,7 +174,7 @@ trait APIMethods310 {
|
||||
Catalogs(Core, notPSD2, OBWG),
|
||||
apiTagBank :: Nil)
|
||||
|
||||
lazy val getCreditLimitOrderRequestByRequestId : OBPEndpoint = {
|
||||
lazy val getCreditLimitRequestByRequestId : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customers" :: CustomerId(customerId) :: "credit_limit" :: "requests" :: requestId :: Nil JsonGet req => {
|
||||
cc =>
|
||||
// val a: Future[(ChecksOrderStatusResponseDetails, Some[CallContext])] = for {
|
||||
|
||||
@ -75,7 +75,7 @@ case class CreditCardOrderStatusResponseJson(
|
||||
)
|
||||
|
||||
|
||||
case class CreditLimitOrderRequestJson(
|
||||
case class CreditLimitRequestJson(
|
||||
requested_current_rate_amount1: String,
|
||||
requested_current_rate_amount2: String,
|
||||
requested_current_valid_end_date: String,
|
||||
|
||||
@ -282,9 +282,9 @@ object OBPAPI3_1_0 extends OBPRestHelper with APIMethods130 with APIMethods140 w
|
||||
// Possible Endpoints from 3.1.0
|
||||
val endpointsOf3_1_0 = Implementations3_1_0.getCheckbookOrders ::
|
||||
Implementations3_1_0.getStatusOfCreditCardOrder ::
|
||||
Implementations3_1_0.createCreditLimitOrderRequest ::
|
||||
Implementations3_1_0.getCreditLimitOrderRequests ::
|
||||
Implementations3_1_0.getCreditLimitOrderRequestByRequestId ::
|
||||
Implementations3_1_0.createCreditLimitRequest ::
|
||||
Implementations3_1_0.getCreditLimitRequests ::
|
||||
Implementations3_1_0.getCreditLimitRequestByRequestId ::
|
||||
Implementations3_1_0.getTopAPIs ::
|
||||
Implementations3_1_0.getMetricsTopConsumers ::
|
||||
Implementations3_1_0.getFirehoseCustomers ::
|
||||
|
||||
Loading…
Reference in New Issue
Block a user