diff --git a/obp-api/src/main/scala/code/bankconnectors/generator/ConnectorBuilderUtil.scala b/obp-api/src/main/scala/code/bankconnectors/generator/ConnectorBuilderUtil.scala index 0654c465dd..0ae4ea0330 100644 --- a/obp-api/src/main/scala/code/bankconnectors/generator/ConnectorBuilderUtil.scala +++ b/obp-api/src/main/scala/code/bankconnectors/generator/ConnectorBuilderUtil.scala @@ -440,6 +440,9 @@ object ConnectorBuilderUtil { "getBankAccountBalanceById", "createOrUpdateBankAccountBalance", "deleteBankAccountBalance", + "checkExternalUserCredentials",// this is not a standard connector method. + "checkExternalUserExists", // this is not a standard connector method. + "getCurrentFxRate", // this is speical method ).distinct /** @@ -452,7 +455,7 @@ object ConnectorBuilderUtil { "createOrUpdateAtm", "createOrUpdateProduct", "createOrUpdateFXRate", - "getCurrentFxRate", +// "getCurrentFxRate", "getCounterpartyFromTransaction", "getCounterpartiesFromTransaction", ).distinct @@ -468,8 +471,6 @@ object ConnectorBuilderUtil { "createDynamicEndpoint", "getDynamicEndpoint", "getDynamicEndpoints", - "checkExternalUserCredentials",// this is not a standard connector method. - "checkExternalUserExists", // this is not a standard connector method. "getBankAccountByRoutingLegacy", "getAccountRoutingsByScheme", "getAccountRouting", diff --git a/obp-api/src/main/scala/code/bankconnectors/storedprocedure/MSsqlStoredProcedure.sql b/obp-api/src/main/scala/code/bankconnectors/storedprocedure/MSsqlStoredProcedure.sql index 00531ecb4b..43938b60d5 100644 --- a/obp-api/src/main/scala/code/bankconnectors/storedprocedure/MSsqlStoredProcedure.sql +++ b/obp-api/src/main/scala/code/bankconnectors/storedprocedure/MSsqlStoredProcedure.sql @@ -1,4 +1,4 @@ --- auto generated MS sql server procedures script, create on 2024-10-30T12:20:39Z +-- auto generated MS sql server procedures script, create on 2026-02-10T14:42:15Z -- drop procedure obp_get_adapter_info DROP PROCEDURE IF EXISTS obp_get_adapter_info; @@ -170,7 +170,7 @@ this is example of parameter @outbound_json "name":"NAME", "version":"version string", "git_commit":"git_commit", - "date":"date String" + "date":"1100-01-01T01:01:01.000Z" } }' ); @@ -1407,7 +1407,7 @@ this is example of parameter @outbound_json "transactionRequestId":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1", "scaMethod":"SMS", "scaStatus":"received", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "authenticationMethodId":"string" }' */ @@ -1447,12 +1447,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } ] }' @@ -1597,7 +1600,7 @@ this is example of parameter @outbound_json "transactionRequestId":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1", "scaMethod":"SMS", "scaStatus":"received", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "authenticationMethodId":"string" }' @@ -1638,12 +1641,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } ] }' @@ -2117,7 +2123,7 @@ this is example of parameter @outbound_json } }, "transactionRequestId":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "challengeId":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", "hashOfSuppliedAnswer":"a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3" }' @@ -2157,12 +2163,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } }' ); @@ -2300,7 +2309,7 @@ this is example of parameter @outbound_json } }, "transactionRequestId":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "challengeId":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", "hashOfSuppliedAnswer":"a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3" @@ -2341,12 +2350,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } }' ); @@ -2484,7 +2496,7 @@ this is example of parameter @outbound_json } }, "transactionRequestId":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "challengeId":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", "suppliedAnswer":"123456", "suppliedAnswerType":"PLAIN_TEXT_VALUE" @@ -2525,12 +2537,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } }' ); @@ -2668,7 +2683,7 @@ this is example of parameter @outbound_json } }, "transactionRequestId":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "challengeId":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", "suppliedAnswer":"123456", @@ -2710,12 +2725,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } }' ); @@ -2891,12 +2909,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } ] }' @@ -3034,7 +3055,7 @@ this is example of parameter @outbound_json ] } }, - "consentId":"" + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947" }' */ @@ -3073,12 +3094,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } ] }' @@ -3255,12 +3279,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } ] }' @@ -3436,12 +3463,15 @@ this is example of parameter @outbound_json "salt":"string", "successful":true, "challengeType":"", - "consentId":"", + "consentId":"9d429899-24f5-42c8-8565-943ffa6a7947", "basketId":"", "scaMethod":"SMS", "scaStatus":"received", "authenticationMethodId":"string", - "attemptCounter":123 + "attemptCounter":123, + "challengePurpose":"string", + "challengeContextHash":"string", + "challengeContextStructure":"string" } }' ); @@ -3981,11 +4011,11 @@ GO --- drop procedure obp_get_bank_account_by_iban -DROP PROCEDURE IF EXISTS obp_get_bank_account_by_iban; +-- drop procedure obp_check_external_user_credentials +DROP PROCEDURE IF EXISTS obp_check_external_user_credentials; GO --- create procedure obp_get_bank_account_by_iban -CREATE PROCEDURE obp_get_bank_account_by_iban +-- create procedure obp_check_external_user_credentials +CREATE PROCEDURE obp_check_external_user_credentials @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -4108,7 +4138,8 @@ this is example of parameter @outbound_json ] } }, - "iban":"DE91 1000 0000 0123 4567 89" + "username":"felixsmith", + "password":"password" }' */ @@ -4139,30 +4170,19 @@ this is example of parameter @outbound_json ] }, "data":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "attributes":[ + "aud":"String", + "exp":"60", + "iat":"60", + "iss":"String", + "sub":"felixsmith", + "azp":"string", + "email":"felixsmith@example.com", + "emailVerified":"String", + "name":"felixsmith", + "userAuthContext":[ { - "name":"STATUS", - "type":"STRING", - "value":"closed" + "key":"CustomerNumber", + "value":"5987953" } ] } @@ -4174,11 +4194,11 @@ GO --- drop procedure obp_get_bank_account_by_routing -DROP PROCEDURE IF EXISTS obp_get_bank_account_by_routing; +-- drop procedure obp_check_external_user_exists +DROP PROCEDURE IF EXISTS obp_check_external_user_exists; GO --- create procedure obp_get_bank_account_by_routing -CREATE PROCEDURE obp_get_bank_account_by_routing +-- create procedure obp_check_external_user_exists +CREATE PROCEDURE obp_check_external_user_exists @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -4301,11 +4321,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "scheme":"scheme value", - "address":"" + "username":"felixsmith" }' */ @@ -4336,30 +4352,19 @@ this is example of parameter @outbound_json ] }, "data":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "attributes":[ + "aud":"String", + "exp":"60", + "iat":"60", + "iss":"String", + "sub":"felixsmith", + "azp":"string", + "email":"felixsmith@example.com", + "emailVerified":"String", + "name":"felixsmith", + "userAuthContext":[ { - "name":"STATUS", - "type":"STRING", - "value":"closed" + "key":"CustomerNumber", + "value":"5987953" } ] } @@ -4371,11 +4376,11 @@ GO --- drop procedure obp_get_bank_accounts -DROP PROCEDURE IF EXISTS obp_get_bank_accounts; +-- drop procedure obp_get_bank_account_by_iban +DROP PROCEDURE IF EXISTS obp_get_bank_account_by_iban; GO --- create procedure obp_get_bank_accounts -CREATE PROCEDURE obp_get_bank_accounts +-- create procedure obp_get_bank_account_by_iban +CREATE PROCEDURE obp_get_bank_account_by_iban @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -4498,16 +4503,7 @@ this is example of parameter @outbound_json ] } }, - "bankIdAccountIds":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - } - } - ] + "iban":"DE91 1000 0000 0123 4567 89" }' */ @@ -4537,36 +4533,34 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - } - ] + "data":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + } }' ); GO @@ -4575,11 +4569,11 @@ GO --- drop procedure obp_get_bank_accounts_balances -DROP PROCEDURE IF EXISTS obp_get_bank_accounts_balances; +-- drop procedure obp_get_bank_account_by_routing +DROP PROCEDURE IF EXISTS obp_get_bank_account_by_routing; GO --- create procedure obp_get_bank_accounts_balances -CREATE PROCEDURE obp_get_bank_accounts_balances +-- create procedure obp_get_bank_account_by_routing +CREATE PROCEDURE obp_get_bank_account_by_routing @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -4702,16 +4696,11 @@ this is example of parameter @outbound_json ] } }, - "bankIdAccountIds":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - } - } - ] + "bankId":{ + "value":"gh.29.uk" + }, + "scheme":"OBP", + "address":"" }' */ @@ -4742,28 +4731,32 @@ this is example of parameter @outbound_json ] }, "data":{ - "accounts":[ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ { - "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", - "label":"My Account", - "bankId":"gh.29.uk", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "balance":{ - "currency":"EUR", - "amount":"50.89" - } + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" } ], - "overallBalance":{ - "currency":"EUR", - "amount":"10.12" - }, - "overallBalanceDate":"2020-01-27T00:00:00Z" + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] } }' ); @@ -4773,11 +4766,11 @@ GO --- drop procedure obp_get_bank_account_balances -DROP PROCEDURE IF EXISTS obp_get_bank_account_balances; +-- drop procedure obp_get_bank_accounts +DROP PROCEDURE IF EXISTS obp_get_bank_accounts; GO --- create procedure obp_get_bank_account_balances -CREATE PROCEDURE obp_get_bank_account_balances +-- create procedure obp_get_bank_accounts +CREATE PROCEDURE obp_get_bank_accounts @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -4900,14 +4893,16 @@ this is example of parameter @outbound_json ] } }, - "bankIdAccountId":{ - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "bankIdAccountIds":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + } } - } + ] }' */ @@ -4937,31 +4932,36 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", - "label":"My Account", - "bankId":"gh.29.uk", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "balances":[ - { - "balance":{ - "currency":"EUR", - "amount":"50.89" - }, - "balanceType":"string" - } - ], - "overallBalance":{ - "currency":"EUR", - "amount":"10.12" - }, - "overallBalanceDate":"2020-01-27T00:00:00Z" - } + "data":[ + { + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + } + ] }' ); GO @@ -4970,11 +4970,11 @@ GO --- drop procedure obp_get_core_bank_accounts -DROP PROCEDURE IF EXISTS obp_get_core_bank_accounts; +-- drop procedure obp_get_bank_accounts_balances +DROP PROCEDURE IF EXISTS obp_get_bank_accounts_balances; GO --- create procedure obp_get_core_bank_accounts -CREATE PROCEDURE obp_get_core_bank_accounts +-- create procedure obp_get_bank_accounts_balances +CREATE PROCEDURE obp_get_bank_accounts_balances @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -5136,20 +5136,30 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", - "label":"My Account", - "bankId":"gh.29.uk", - "accountType":"AC", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" + "data":{ + "accounts":[ + { + "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", + "label":"My Account", + "bankId":"gh.29.uk", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "balance":{ + "currency":"EUR", + "amount":"50.89" } - ] - } - ] + } + ], + "overallBalance":{ + "currency":"EUR", + "amount":"10.12" + }, + "overallBalanceDate":"2020-01-27T00:00:00Z" + } }' ); GO @@ -5158,11 +5168,11 @@ GO --- drop procedure obp_get_bank_accounts_held -DROP PROCEDURE IF EXISTS obp_get_bank_accounts_held; +-- drop procedure obp_get_bank_account_balances +DROP PROCEDURE IF EXISTS obp_get_bank_account_balances; GO --- create procedure obp_get_bank_accounts_held -CREATE PROCEDURE obp_get_bank_accounts_held +-- create procedure obp_get_bank_account_balances +CREATE PROCEDURE obp_get_bank_account_balances @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -5285,16 +5295,14 @@ this is example of parameter @outbound_json ] } }, - "bankIdAccountIds":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - } + "bankIdAccountId":{ + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" } - ] + } }' */ @@ -5324,20 +5332,31 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", - "label":"My Account", - "bankId":"gh.29.uk", - "number":"", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ] - } - ] + "data":{ + "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", + "label":"My Account", + "bankId":"gh.29.uk", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "balances":[ + { + "balance":{ + "currency":"EUR", + "amount":"50.89" + }, + "balanceType":"openingBooked" + } + ], + "overallBalance":{ + "currency":"EUR", + "amount":"10.12" + }, + "overallBalanceDate":"2020-01-27T00:00:00Z" + } }' ); GO @@ -5346,11 +5365,11 @@ GO --- drop procedure obp_check_bank_account_exists -DROP PROCEDURE IF EXISTS obp_check_bank_account_exists; +-- drop procedure obp_get_core_bank_accounts +DROP PROCEDURE IF EXISTS obp_get_core_bank_accounts; GO --- create procedure obp_check_bank_account_exists -CREATE PROCEDURE obp_check_bank_account_exists +-- create procedure obp_get_core_bank_accounts +CREATE PROCEDURE obp_get_core_bank_accounts @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -5473,12 +5492,16 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - } + "bankIdAccountIds":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + } + } + ] }' */ @@ -5508,34 +5531,20 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - } + "data":[ + { + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "label":"My Account", + "bankId":"gh.29.uk", + "accountType":"AC", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ] + } + ] }' ); GO @@ -5544,11 +5553,11 @@ GO --- drop procedure obp_get_counterparty_trait -DROP PROCEDURE IF EXISTS obp_get_counterparty_trait; +-- drop procedure obp_get_bank_accounts_held +DROP PROCEDURE IF EXISTS obp_get_bank_accounts_held; GO --- create procedure obp_get_counterparty_trait -CREATE PROCEDURE obp_get_counterparty_trait +-- create procedure obp_get_bank_accounts_held +CREATE PROCEDURE obp_get_bank_accounts_held @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -5671,13 +5680,16 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "couterpartyId":"string" + "bankIdAccountIds":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + } + } + ] }' */ @@ -5707,44 +5719,33 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "createdByUserId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "currency":"EUR", - "thisBankId":"", - "thisAccountId":"", - "thisViewId":"", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "otherAccountRoutingScheme":"", - "otherAccountRoutingAddress":"", - "otherAccountSecondaryRoutingScheme":"", - "otherAccountSecondaryRoutingAddress":"", - "otherBankRoutingScheme":"", - "otherBankRoutingAddress":"", - "otherBranchRoutingScheme":"", - "otherBranchRoutingAddress":"", - "isBeneficiary":false, - "bespoke":[ - { - "key":"CustomerNumber", - "value":"5987953" - } - ] - } - }' - ); -GO - - + "data":[ + { + "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", + "label":"My Account", + "bankId":"gh.29.uk", + "number":"", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ] + } + ] + }' + ); +GO + + --- drop procedure obp_get_counterparty_by_counterparty_id -DROP PROCEDURE IF EXISTS obp_get_counterparty_by_counterparty_id; +-- drop procedure obp_get_accounts_held +DROP PROCEDURE IF EXISTS obp_get_accounts_held; GO --- create procedure obp_get_counterparty_by_counterparty_id -CREATE PROCEDURE obp_get_counterparty_by_counterparty_id +-- create procedure obp_get_accounts_held +CREATE PROCEDURE obp_get_accounts_held @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -5867,8 +5868,22 @@ this is example of parameter @outbound_json ] } }, - "counterpartyId":{ - "value":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "bankId":{ + "value":"gh.29.uk" + }, + "user":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" } }' */ @@ -5899,31 +5914,16 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "createdByUserId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "currency":"EUR", - "thisBankId":"", - "thisAccountId":"", - "thisViewId":"", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "otherAccountRoutingScheme":"", - "otherAccountRoutingAddress":"", - "otherAccountSecondaryRoutingScheme":"", - "otherAccountSecondaryRoutingAddress":"", - "otherBankRoutingScheme":"", - "otherBankRoutingAddress":"", - "otherBranchRoutingScheme":"", - "otherBranchRoutingAddress":"", - "isBeneficiary":false, - "bespoke":[ - { - "key":"CustomerNumber", - "value":"5987953" + "data":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" } - ] - } + } + ] }' ); GO @@ -5932,11 +5932,11 @@ GO --- drop procedure obp_get_counterparty_by_iban -DROP PROCEDURE IF EXISTS obp_get_counterparty_by_iban; +-- drop procedure obp_get_accounts_held_by_user +DROP PROCEDURE IF EXISTS obp_get_accounts_held_by_user; GO --- create procedure obp_get_counterparty_by_iban -CREATE PROCEDURE obp_get_counterparty_by_iban +-- create procedure obp_get_accounts_held_by_user +CREATE PROCEDURE obp_get_accounts_held_by_user @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -6059,7 +6059,20 @@ this is example of parameter @outbound_json ] } }, - "iban":"DE91 1000 0000 0123 4567 89" + "user":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + } }' */ @@ -6089,31 +6102,16 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "createdByUserId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "currency":"EUR", - "thisBankId":"", - "thisAccountId":"", - "thisViewId":"", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "otherAccountRoutingScheme":"", - "otherAccountRoutingAddress":"", - "otherAccountSecondaryRoutingScheme":"", - "otherAccountSecondaryRoutingAddress":"", - "otherBankRoutingScheme":"", - "otherBankRoutingAddress":"", - "otherBranchRoutingScheme":"", - "otherBranchRoutingAddress":"", - "isBeneficiary":false, - "bespoke":[ - { - "key":"CustomerNumber", - "value":"5987953" + "data":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" } - ] - } + } + ] }' ); GO @@ -6122,11 +6120,11 @@ GO --- drop procedure obp_get_counterparty_by_iban_and_bank_account_id -DROP PROCEDURE IF EXISTS obp_get_counterparty_by_iban_and_bank_account_id; +-- drop procedure obp_check_bank_account_exists +DROP PROCEDURE IF EXISTS obp_check_bank_account_exists; GO --- create procedure obp_get_counterparty_by_iban_and_bank_account_id -CREATE PROCEDURE obp_get_counterparty_by_iban_and_bank_account_id +-- create procedure obp_check_bank_account_exists +CREATE PROCEDURE obp_check_bank_account_exists @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -6249,7 +6247,6 @@ this is example of parameter @outbound_json ] } }, - "iban":"DE91 1000 0000 0123 4567 89", "bankId":{ "value":"gh.29.uk" }, @@ -6286,27 +6283,30 @@ this is example of parameter @outbound_json ] }, "data":{ - "createdByUserId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", "currency":"EUR", - "thisBankId":"", - "thisAccountId":"", - "thisViewId":"", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "otherAccountRoutingScheme":"", - "otherAccountRoutingAddress":"", - "otherAccountSecondaryRoutingScheme":"", - "otherAccountSecondaryRoutingAddress":"", - "otherBankRoutingScheme":"", - "otherBankRoutingAddress":"", - "otherBranchRoutingScheme":"", - "otherBranchRoutingAddress":"", - "isBeneficiary":false, - "bespoke":[ + "name":"bankAccount name string", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ { - "key":"CustomerNumber", - "value":"5987953" + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" } ] } @@ -6318,11 +6318,11 @@ GO --- drop procedure obp_get_counterparties -DROP PROCEDURE IF EXISTS obp_get_counterparties; +-- drop procedure obp_get_counterparty_trait +DROP PROCEDURE IF EXISTS obp_get_counterparty_trait; GO --- create procedure obp_get_counterparties -CREATE PROCEDURE obp_get_counterparties +-- create procedure obp_get_counterparty_trait +CREATE PROCEDURE obp_get_counterparty_trait @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -6445,15 +6445,13 @@ this is example of parameter @outbound_json ] } }, - "thisBankId":{ - "value":"" + "bankId":{ + "value":"gh.29.uk" }, - "thisAccountId":{ - "value":"" + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }, - "viewId":{ - "value":"owner" - } + "couterpartyId":"string" }' */ @@ -6483,33 +6481,31 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "createdByUserId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "currency":"EUR", - "thisBankId":"", - "thisAccountId":"", - "thisViewId":"", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "otherAccountRoutingScheme":"", - "otherAccountRoutingAddress":"", - "otherAccountSecondaryRoutingScheme":"", - "otherAccountSecondaryRoutingAddress":"", - "otherBankRoutingScheme":"", - "otherBankRoutingAddress":"", - "otherBranchRoutingScheme":"", - "otherBranchRoutingAddress":"", - "isBeneficiary":false, - "bespoke":[ - { - "key":"CustomerNumber", - "value":"5987953" - } - ] - } - ] + "data":{ + "createdByUserId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "currency":"EUR", + "thisBankId":"", + "thisAccountId":"", + "thisViewId":"", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountSecondaryRoutingScheme":"", + "otherAccountSecondaryRoutingAddress":"", + "otherBankRoutingScheme":"", + "otherBankRoutingAddress":"", + "otherBranchRoutingScheme":"", + "otherBranchRoutingAddress":"", + "isBeneficiary":false, + "bespoke":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + } }' ); GO @@ -6518,11 +6514,11 @@ GO --- drop procedure obp_get_transactions -DROP PROCEDURE IF EXISTS obp_get_transactions; +-- drop procedure obp_get_counterparty_by_counterparty_id +DROP PROCEDURE IF EXISTS obp_get_counterparty_by_counterparty_id; GO --- create procedure obp_get_transactions -CREATE PROCEDURE obp_get_transactions +-- create procedure obp_get_counterparty_by_counterparty_id +CREATE PROCEDURE obp_get_counterparty_by_counterparty_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -6645,16 +6641,9 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "limit":100, - "offset":100, - "fromDate":"2018-03-09", - "toDate":"2018-03-09" + "counterpartyId":{ + "value":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh" + } }' */ @@ -6684,68 +6673,31 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "id":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - }, - "thisAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "otherAccount":{ - "kind":"Counterparty kind string", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "counterpartyName":"John Smith Ltd.", - "thisBankId":{ - "value":"" - }, - "thisAccountId":{ - "value":"" - }, - "isBeneficiary":false - }, - "transactionType":"DEBIT", - "amount":"19.64", - "currency":"EUR", - "description":"The piano lession-Invoice No:68", - "startDate":"2019-09-07T00:00:00Z", - "finishDate":"2019-09-08T00:00:00Z", - "balance":"10" - } - ] + "data":{ + "createdByUserId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "currency":"EUR", + "thisBankId":"", + "thisAccountId":"", + "thisViewId":"", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountSecondaryRoutingScheme":"", + "otherAccountSecondaryRoutingAddress":"", + "otherBankRoutingScheme":"", + "otherBankRoutingAddress":"", + "otherBranchRoutingScheme":"", + "otherBranchRoutingAddress":"", + "isBeneficiary":false, + "bespoke":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + } }' ); GO @@ -6754,11 +6706,11 @@ GO --- drop procedure obp_get_transactions_core -DROP PROCEDURE IF EXISTS obp_get_transactions_core; +-- drop procedure obp_get_counterparty_by_iban +DROP PROCEDURE IF EXISTS obp_get_counterparty_by_iban; GO --- create procedure obp_get_transactions_core -CREATE PROCEDURE obp_get_transactions_core +-- create procedure obp_get_counterparty_by_iban +CREATE PROCEDURE obp_get_counterparty_by_iban @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -6881,16 +6833,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "limit":100, - "offset":100, - "fromDate":"", - "toDate":"" + "iban":"DE91 1000 0000 0123 4567 89" }' */ @@ -6920,73 +6863,31 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "id":{ - "value":"d8839721-ad8f-45dd-9f78-2080414b93f9" - }, - "thisAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "otherAccount":{ - "kind":"", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "counterpartyName":"John Smith Ltd.", - "thisBankId":{ - "value":"" - }, - "thisAccountId":{ - "value":"" - }, - "otherBankRoutingScheme":"", - "otherBankRoutingAddress":"", - "otherAccountRoutingScheme":"", - "otherAccountRoutingAddress":"", - "otherAccountProvider":"", - "isBeneficiary":false - }, - "transactionType":"DEBIT", - "amount":"10.12", - "currency":"EUR", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "startDate":"2020-01-27T00:00:00Z", - "finishDate":"2020-01-27T00:00:00Z", - "balance":"10" - } - ] + "data":{ + "createdByUserId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "currency":"EUR", + "thisBankId":"", + "thisAccountId":"", + "thisViewId":"", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountSecondaryRoutingScheme":"", + "otherAccountSecondaryRoutingAddress":"", + "otherBankRoutingScheme":"", + "otherBankRoutingAddress":"", + "otherBranchRoutingScheme":"", + "otherBranchRoutingAddress":"", + "isBeneficiary":false, + "bespoke":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + } }' ); GO @@ -6995,11 +6896,11 @@ GO --- drop procedure obp_get_transaction -DROP PROCEDURE IF EXISTS obp_get_transaction; +-- drop procedure obp_get_counterparty_by_iban_and_bank_account_id +DROP PROCEDURE IF EXISTS obp_get_counterparty_by_iban_and_bank_account_id; GO --- create procedure obp_get_transaction -CREATE PROCEDURE obp_get_transaction +-- create procedure obp_get_counterparty_by_iban_and_bank_account_id +CREATE PROCEDURE obp_get_counterparty_by_iban_and_bank_account_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -7122,14 +7023,12 @@ this is example of parameter @outbound_json ] } }, + "iban":"DE91 1000 0000 0123 4567 89", "bankId":{ "value":"gh.29.uk" }, "accountId":{ "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "transactionId":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" } }' */ @@ -7161,65 +7060,30 @@ this is example of parameter @outbound_json ] }, "data":{ - "id":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - }, - "thisAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "otherAccount":{ - "kind":"Counterparty kind string", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "counterpartyName":"John Smith Ltd.", - "thisBankId":{ - "value":"" - }, - "thisAccountId":{ - "value":"" - }, - "isBeneficiary":false - }, - "transactionType":"DEBIT", - "amount":"19.64", + "createdByUserId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", "currency":"EUR", - "description":"The piano lession-Invoice No:68", - "startDate":"2019-09-07T00:00:00Z", - "finishDate":"2019-09-08T00:00:00Z", - "balance":"10" - } + "thisBankId":"", + "thisAccountId":"", + "thisViewId":"", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountSecondaryRoutingScheme":"", + "otherAccountSecondaryRoutingAddress":"", + "otherBankRoutingScheme":"", + "otherBankRoutingAddress":"", + "otherBranchRoutingScheme":"", + "otherBranchRoutingAddress":"", + "isBeneficiary":false, + "bespoke":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + } }' ); GO @@ -7228,11 +7092,11 @@ GO --- drop procedure obp_get_physical_cards_for_user -DROP PROCEDURE IF EXISTS obp_get_physical_cards_for_user; +-- drop procedure obp_get_counterparties +DROP PROCEDURE IF EXISTS obp_get_counterparties; GO --- create procedure obp_get_physical_cards_for_user -CREATE PROCEDURE obp_get_physical_cards_for_user +-- create procedure obp_get_counterparties +CREATE PROCEDURE obp_get_counterparties @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -7355,19 +7219,14 @@ this is example of parameter @outbound_json ] } }, - "user":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + "thisBankId":{ + "value":"" + }, + "thisAccountId":{ + "value":"" + }, + "viewId":{ + "value":"owner" } }' */ @@ -7400,80 +7259,29 @@ this is example of parameter @outbound_json }, "data":[ { - "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", - "bankId":"gh.29.uk", - "bankCardNumber":"364435172576215", - "cardType":"Credit", - "nameOnCard":"SusanSmith", - "issueNumber":"1", - "serialNumber":"1324234", - "validFrom":"2020-01-27T00:00:00Z", - "expires":"2021-01-27T00:00:00Z", - "enabled":false, - "cancelled":false, - "onHotList":false, - "technology":"technology1", - "networks":[ - "" - ], - "allows":[ - "DEBIT" - ], - "account":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"546387432", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "replacement":{ - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FIRST" - }, - "pinResets":[ + "createdByUserId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "currency":"EUR", + "thisBankId":"", + "thisAccountId":"", + "thisViewId":"", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountSecondaryRoutingScheme":"", + "otherAccountSecondaryRoutingAddress":"", + "otherBankRoutingScheme":"", + "otherBankRoutingAddress":"", + "otherBranchRoutingScheme":"", + "otherBranchRoutingAddress":"", + "isBeneficiary":false, + "bespoke":[ { - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FORGOT" + "key":"CustomerNumber", + "value":"5987953" } - ], - "collected":{ - "date":"2020-01-27T00:00:00Z" - }, - "posted":{ - "date":"2020-01-27T00:00:00Z" - }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "cvv":"123", - "brand":"Visa" + ] } ] }' @@ -7484,11 +7292,11 @@ GO --- drop procedure obp_get_physical_card_for_bank -DROP PROCEDURE IF EXISTS obp_get_physical_card_for_bank; +-- drop procedure obp_get_transactions +DROP PROCEDURE IF EXISTS obp_get_transactions; GO --- create procedure obp_get_physical_card_for_bank -CREATE PROCEDURE obp_get_physical_card_for_bank +-- create procedure obp_get_transactions +CREATE PROCEDURE obp_get_transactions @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -7614,7 +7422,13 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e " + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "limit":100, + "offset":100, + "fromDate":"2018-03-09", + "toDate":"2018-03-09" }' */ @@ -7644,82 +7458,71 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", - "bankId":"gh.29.uk", - "bankCardNumber":"364435172576215", - "cardType":"Credit", - "nameOnCard":"SusanSmith", - "issueNumber":"1", - "serialNumber":"1324234", - "validFrom":"2020-01-27T00:00:00Z", - "expires":"2021-01-27T00:00:00Z", - "enabled":false, - "cancelled":false, - "onHotList":false, - "technology":"technology1", - "networks":[ - "" - ], - "allows":[ - "DEBIT" - ], - "account":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "data":[ + { + "id":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"546387432", - "bankId":{ - "value":"gh.29.uk" + "thisAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "replacement":{ - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FIRST" - }, - "pinResets":[ - { - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FORGOT" - } - ], - "collected":{ - "date":"2020-01-27T00:00:00Z" - }, - "posted":{ - "date":"2020-01-27T00:00:00Z" - }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "cvv":"123", - "brand":"Visa" - } + "otherAccount":{ + "kind":"Counterparty kind string", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "counterpartyName":"John Smith Ltd.", + "thisBankId":{ + "value":"" + }, + "thisAccountId":{ + "value":"" + }, + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "isBeneficiary":false + }, + "transactionType":"DEBIT", + "amount":"19.64", + "currency":"EUR", + "description":"The piano lession-Invoice No:68", + "startDate":"2019-09-07T00:00:00Z", + "finishDate":"2019-09-08T00:00:00Z", + "balance":"10", + "status":" COMPLETED" + } + ] }' ); GO @@ -7728,11 +7531,11 @@ GO --- drop procedure obp_delete_physical_card_for_bank -DROP PROCEDURE IF EXISTS obp_delete_physical_card_for_bank; +-- drop procedure obp_get_transactions_core +DROP PROCEDURE IF EXISTS obp_get_transactions_core; GO --- create procedure obp_delete_physical_card_for_bank -CREATE PROCEDURE obp_delete_physical_card_for_bank +-- create procedure obp_get_transactions_core +CREATE PROCEDURE obp_get_transactions_core @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -7858,7 +7661,13 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e " + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "limit":100, + "offset":100, + "fromDate":"1100-01-01T01:01:01.000Z", + "toDate":"1100-01-01T01:01:01.000Z" }' */ @@ -7888,7 +7697,73 @@ this is example of parameter @outbound_json } ] }, - "data":true + "data":[ + { + "id":{ + "value":"d8839721-ad8f-45dd-9f78-2080414b93f9" + }, + "thisAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "otherAccount":{ + "kind":"", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "counterpartyName":"John Smith Ltd.", + "thisBankId":{ + "value":"" + }, + "thisAccountId":{ + "value":"" + }, + "otherBankRoutingScheme":"", + "otherBankRoutingAddress":"", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountProvider":"", + "isBeneficiary":false + }, + "transactionType":"DEBIT", + "amount":"10.12", + "currency":"EUR", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "startDate":"2020-01-27T00:00:00Z", + "finishDate":"2020-01-27T00:00:00Z", + "balance":"10" + } + ] }' ); GO @@ -7897,11 +7772,11 @@ GO --- drop procedure obp_get_physical_cards_for_bank -DROP PROCEDURE IF EXISTS obp_get_physical_cards_for_bank; +-- drop procedure obp_get_transaction +DROP PROCEDURE IF EXISTS obp_get_transaction; GO --- create procedure obp_get_physical_cards_for_bank -CREATE PROCEDURE obp_get_physical_cards_for_bank +-- create procedure obp_get_transaction +CREATE PROCEDURE obp_get_transaction @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -8024,37 +7899,15 @@ this is example of parameter @outbound_json ] } }, - "bank":{ - "bankId":{ - "value":"gh.29.uk" - }, - "shortName":"bank shortName string", - "fullName":"bank fullName string", - "logoUrl":"bank logoUrl string", - "websiteUrl":"bank websiteUrl string", - "bankRoutingScheme":"BIC", - "bankRoutingAddress":"GENODEM1GLS", - "swiftBic":"bank swiftBic string", - "nationalIdentifier":"bank nationalIdentifier string" + "bankId":{ + "value":"gh.29.uk" }, - "user":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }, - "limit":100, - "offset":100, - "fromDate":"", - "toDate":"" + "transactionId":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + } }' */ @@ -8084,97 +7937,82 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", - "bankId":"gh.29.uk", - "bankCardNumber":"364435172576215", - "cardType":"Credit", - "nameOnCard":"SusanSmith", - "issueNumber":"1", - "serialNumber":"1324234", - "validFrom":"2020-01-27T00:00:00Z", - "expires":"2021-01-27T00:00:00Z", - "enabled":false, - "cancelled":false, - "onHotList":false, - "technology":"technology1", - "networks":[ - "" - ], - "allows":[ - "DEBIT" - ], - "account":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"546387432", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] + "data":{ + "id":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + }, + "thisAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }, - "replacement":{ - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FIRST" + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" }, - "pinResets":[ + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ { - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FORGOT" + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" } ], - "collected":{ - "date":"2020-01-27T00:00:00Z" - }, - "posted":{ - "date":"2020-01-27T00:00:00Z" - }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "cvv":"123", - "brand":"Visa" - } - ] - }' - ); -GO - - - - - --- drop procedure obp_create_physical_card -DROP PROCEDURE IF EXISTS obp_create_physical_card; -GO --- create procedure obp_create_physical_card -CREATE PROCEDURE obp_create_physical_card + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "otherAccount":{ + "kind":"Counterparty kind string", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "counterpartyName":"John Smith Ltd.", + "thisBankId":{ + "value":"" + }, + "thisAccountId":{ + "value":"" + }, + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "isBeneficiary":false + }, + "transactionType":"DEBIT", + "amount":"19.64", + "currency":"EUR", + "description":"The piano lession-Invoice No:68", + "startDate":"2019-09-07T00:00:00Z", + "finishDate":"2019-09-08T00:00:00Z", + "balance":"10", + "status":" COMPLETED" + } + }' + ); +GO + + + + + +-- drop procedure obp_get_physical_cards_for_user +DROP PROCEDURE IF EXISTS obp_get_physical_cards_for_user; +GO +-- create procedure obp_get_physical_cards_for_user +CREATE PROCEDURE obp_get_physical_cards_for_user @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -8297,46 +8135,20 @@ this is example of parameter @outbound_json ] } }, - "bankCardNumber":"364435172576215", - "nameOnCard":"SusanSmith", - "cardType":"Credit", - "issueNumber":"1", - "serialNumber":"1324234", - "validFrom":"2020-01-27T00:00:00Z", - "expires":"2021-01-27T00:00:00Z", - "enabled":false, - "cancelled":false, - "onHotList":false, - "technology":"technology1", - "networks":[ - "" - ], - "allows":[ - "credit", - "debit", - "cash_withdrawal" - ], - "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", - "bankId":"gh.29.uk", - "replacement":{ - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FIRST" - }, - "pinResets":[ - { - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FORGOT" - } - ], - "collected":{ - "date":"2020-01-27T00:00:00Z" - }, - "posted":{ - "date":"2020-01-27T00:00:00Z" - }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "cvv":"123", - "brand":"Visa" + "user":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + } }' */ @@ -8366,82 +8178,84 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", - "bankId":"gh.29.uk", - "bankCardNumber":"364435172576215", - "cardType":"Credit", - "nameOnCard":"SusanSmith", - "issueNumber":"1", - "serialNumber":"1324234", - "validFrom":"2020-01-27T00:00:00Z", - "expires":"2021-01-27T00:00:00Z", - "enabled":false, - "cancelled":false, - "onHotList":false, - "technology":"technology1", - "networks":[ - "" - ], - "allows":[ - "DEBIT" - ], - "account":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "data":[ + { + "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", + "bankId":"gh.29.uk", + "bankCardNumber":"364435172576215", + "cardType":"Credit", + "nameOnCard":"SusanSmith", + "issueNumber":"1", + "serialNumber":"1324234", + "validFrom":"2020-01-27T00:00:00Z", + "expires":"2021-01-27T00:00:00Z", + "enabled":false, + "cancelled":false, + "onHotList":false, + "technology":"technology1", + "networks":[ + "" + ], + "allows":[ + "DEBIT" + ], + "account":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"546387432", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"546387432", - "bankId":{ - "value":"gh.29.uk" + "replacement":{ + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FIRST" }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ + "pinResets":[ { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FORGOT" } ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "replacement":{ - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FIRST" - }, - "pinResets":[ - { - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FORGOT" - } - ], - "collected":{ - "date":"2020-01-27T00:00:00Z" - }, - "posted":{ - "date":"2020-01-27T00:00:00Z" - }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "cvv":"123", - "brand":"Visa" - } + "collected":{ + "date":"2020-01-27T00:00:00Z" + }, + "posted":{ + "date":"2020-01-27T00:00:00Z" + }, + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "cvv":"123", + "brand":"Visa" + } + ] }' ); GO @@ -8450,11 +8264,11 @@ GO --- drop procedure obp_update_physical_card -DROP PROCEDURE IF EXISTS obp_update_physical_card; +-- drop procedure obp_get_physical_card_for_bank +DROP PROCEDURE IF EXISTS obp_get_physical_card_for_bank; GO --- create procedure obp_update_physical_card -CREATE PROCEDURE obp_update_physical_card +-- create procedure obp_get_physical_card_for_bank +CREATE PROCEDURE obp_get_physical_card_for_bank @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -8577,45 +8391,10 @@ this is example of parameter @outbound_json ] } }, - "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", - "bankCardNumber":"364435172576215", - "nameOnCard":"SusanSmith", - "cardType":"Credit", - "issueNumber":"1", - "serialNumber":"1324234", - "validFrom":"2020-01-27T00:00:00Z", - "expires":"2021-01-27T00:00:00Z", - "enabled":false, - "cancelled":false, - "onHotList":false, - "technology":"technology1", - "networks":[ - "" - ], - "allows":[ - "credit", - "debit", - "cash_withdrawal" - ], - "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", - "bankId":"gh.29.uk", - "replacement":{ - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FIRST" - }, - "pinResets":[ - { - "requestedDate":"2020-01-27T00:00:00Z", - "reasonRequested":"FORGOT" - } - ], - "collected":{ - "date":"2020-01-27T00:00:00Z" - }, - "posted":{ - "date":"2020-01-27T00:00:00Z" + "bankId":{ + "value":"gh.29.uk" }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e " }' */ @@ -8729,11 +8508,11 @@ GO --- drop procedure obp_make_paymentv210 -DROP PROCEDURE IF EXISTS obp_make_paymentv210; +-- drop procedure obp_delete_physical_card_for_bank +DROP PROCEDURE IF EXISTS obp_delete_physical_card_for_bank; GO --- create procedure obp_make_paymentv210 -CREATE PROCEDURE obp_make_paymentv210 +-- create procedure obp_delete_physical_card_for_bank +CREATE PROCEDURE obp_delete_physical_card_for_bank @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -8856,94 +8635,10 @@ this is example of parameter @outbound_json ] } }, - "fromAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "toAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "transactionRequestId":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" - }, - "transactionRequestCommonBody":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "amount":"10.12", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "transactionRequestType":{ - "value":"SEPA" + "bankId":{ + "value":"gh.29.uk" }, - "chargePolicy":"SHARED" + "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e " }' */ @@ -8973,9 +8668,7 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - } + "data":true }' ); GO @@ -8984,11 +8677,11 @@ GO --- drop procedure obp_get_charge_value -DROP PROCEDURE IF EXISTS obp_get_charge_value; +-- drop procedure obp_get_physical_cards_for_bank +DROP PROCEDURE IF EXISTS obp_get_physical_cards_for_bank; GO --- create procedure obp_get_charge_value -CREATE PROCEDURE obp_get_charge_value +-- create procedure obp_get_physical_cards_for_bank +CREATE PROCEDURE obp_get_physical_cards_for_bank @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -9111,8 +8804,37 @@ this is example of parameter @outbound_json ] } }, - "chargeLevelAmount":"123.321", - "transactionRequestCommonBodyAmount":"123.321" + "bank":{ + "bankId":{ + "value":"gh.29.uk" + }, + "shortName":"bank shortName string", + "fullName":"bank fullName string", + "logoUrl":"bank logoUrl string", + "websiteUrl":"bank websiteUrl string", + "bankRoutingScheme":"BIC", + "bankRoutingAddress":"GENODEM1GLS", + "swiftBic":"bank swiftBic string", + "nationalIdentifier":"bank nationalIdentifier string" + }, + "user":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "limit":100, + "offset":100, + "fromDate":"1100-01-01T01:01:01.000Z", + "toDate":"1100-01-01T01:01:01.000Z" }' */ @@ -9142,65 +8864,3141 @@ this is example of parameter @outbound_json } ] }, - "data":"string" - }' - ); -GO - - - - - --- drop procedure obp_create_transaction_requestv210 -DROP PROCEDURE IF EXISTS obp_create_transaction_requestv210; -GO --- create procedure obp_create_transaction_requestv210 -CREATE PROCEDURE obp_create_transaction_requestv210 - @outbound_json NVARCHAR(MAX), - @inbound_json NVARCHAR(MAX) OUT - AS - SET nocount on - --- replace the follow example to real logic -/* -this is example of parameter @outbound_json - N'{ - "outboundAdapterCallContext":{ - "correlationId":"1flssoftxq0cr1nssr68u0mioj", - "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", - "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "generalContext":[ - { - "key":"CustomerNumber", - "value":"5987953" - } - ], - "outboundAdapterAuthInfo":{ - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "username":"felixsmith", - "linkedCustomers":[ - { - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "customerNumber":"5987953", - "legalName":"Eveline Tripman" - } + "data":[ + { + "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", + "bankId":"gh.29.uk", + "bankCardNumber":"364435172576215", + "cardType":"Credit", + "nameOnCard":"SusanSmith", + "issueNumber":"1", + "serialNumber":"1324234", + "validFrom":"2020-01-27T00:00:00Z", + "expires":"2021-01-27T00:00:00Z", + "enabled":false, + "cancelled":false, + "onHotList":false, + "technology":"technology1", + "networks":[ + "" ], - "userAuthContext":[ - { - "key":"CustomerNumber", - "value":"5987953" - } + "allows":[ + "DEBIT" ], - "authViews":[ - { - "view":{ - "id":"owner", - "name":"owner", - "description":"This view is for the owner for the account." - }, - "account":{ - "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", - "accountRoutings":[ + "account":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"546387432", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "replacement":{ + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FIRST" + }, + "pinResets":[ + { + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FORGOT" + } + ], + "collected":{ + "date":"2020-01-27T00:00:00Z" + }, + "posted":{ + "date":"2020-01-27T00:00:00Z" + }, + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "cvv":"123", + "brand":"Visa" + } + ] + }' + ); +GO + + + + + +-- drop procedure obp_create_physical_card +DROP PROCEDURE IF EXISTS obp_create_physical_card; +GO +-- create procedure obp_create_physical_card +CREATE PROCEDURE obp_create_physical_card + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "bankCardNumber":"364435172576215", + "nameOnCard":"SusanSmith", + "cardType":"Credit", + "issueNumber":"1", + "serialNumber":"1324234", + "validFrom":"2020-01-27T00:00:00Z", + "expires":"2021-01-27T00:00:00Z", + "enabled":false, + "cancelled":false, + "onHotList":false, + "technology":"technology1", + "networks":[ + "" + ], + "allows":[ + "credit", + "debit", + "cash_withdrawal" + ], + "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "bankId":"gh.29.uk", + "replacement":{ + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FIRST" + }, + "pinResets":[ + { + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FORGOT" + } + ], + "collected":{ + "date":"2020-01-27T00:00:00Z" + }, + "posted":{ + "date":"2020-01-27T00:00:00Z" + }, + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "cvv":"123", + "brand":"Visa" + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", + "bankId":"gh.29.uk", + "bankCardNumber":"364435172576215", + "cardType":"Credit", + "nameOnCard":"SusanSmith", + "issueNumber":"1", + "serialNumber":"1324234", + "validFrom":"2020-01-27T00:00:00Z", + "expires":"2021-01-27T00:00:00Z", + "enabled":false, + "cancelled":false, + "onHotList":false, + "technology":"technology1", + "networks":[ + "" + ], + "allows":[ + "DEBIT" + ], + "account":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"546387432", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "replacement":{ + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FIRST" + }, + "pinResets":[ + { + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FORGOT" + } + ], + "collected":{ + "date":"2020-01-27T00:00:00Z" + }, + "posted":{ + "date":"2020-01-27T00:00:00Z" + }, + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "cvv":"123", + "brand":"Visa" + } + }' + ); +GO + + + + + +-- drop procedure obp_update_physical_card +DROP PROCEDURE IF EXISTS obp_update_physical_card; +GO +-- create procedure obp_update_physical_card +CREATE PROCEDURE obp_update_physical_card + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", + "bankCardNumber":"364435172576215", + "nameOnCard":"SusanSmith", + "cardType":"Credit", + "issueNumber":"1", + "serialNumber":"1324234", + "validFrom":"2020-01-27T00:00:00Z", + "expires":"2021-01-27T00:00:00Z", + "enabled":false, + "cancelled":false, + "onHotList":false, + "technology":"technology1", + "networks":[ + "" + ], + "allows":[ + "credit", + "debit", + "cash_withdrawal" + ], + "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "bankId":"gh.29.uk", + "replacement":{ + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FIRST" + }, + "pinResets":[ + { + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FORGOT" + } + ], + "collected":{ + "date":"2020-01-27T00:00:00Z" + }, + "posted":{ + "date":"2020-01-27T00:00:00Z" + }, + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", + "bankId":"gh.29.uk", + "bankCardNumber":"364435172576215", + "cardType":"Credit", + "nameOnCard":"SusanSmith", + "issueNumber":"1", + "serialNumber":"1324234", + "validFrom":"2020-01-27T00:00:00Z", + "expires":"2021-01-27T00:00:00Z", + "enabled":false, + "cancelled":false, + "onHotList":false, + "technology":"technology1", + "networks":[ + "" + ], + "allows":[ + "DEBIT" + ], + "account":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"546387432", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "replacement":{ + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FIRST" + }, + "pinResets":[ + { + "requestedDate":"2020-01-27T00:00:00Z", + "reasonRequested":"FORGOT" + } + ], + "collected":{ + "date":"2020-01-27T00:00:00Z" + }, + "posted":{ + "date":"2020-01-27T00:00:00Z" + }, + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "cvv":"123", + "brand":"Visa" + } + }' + ); +GO + + + + + +-- drop procedure obp_make_paymentv210 +DROP PROCEDURE IF EXISTS obp_make_paymentv210; +GO +-- create procedure obp_make_paymentv210 +CREATE PROCEDURE obp_make_paymentv210 + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "fromAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "toAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "transactionRequestId":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "transactionRequestCommonBody":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "amount":"10.12", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "transactionRequestType":{ + "value":"SEPA" + }, + "chargePolicy":"SHARED" + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + } + }' + ); +GO + + + + + +-- drop procedure obp_get_charge_value +DROP PROCEDURE IF EXISTS obp_get_charge_value; +GO +-- create procedure obp_get_charge_value +CREATE PROCEDURE obp_get_charge_value + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "chargeLevelAmount":"123.321", + "transactionRequestCommonBodyAmount":"123.321" + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":"string" + }' + ); +GO + + + + + +-- drop procedure obp_create_transaction_requestv210 +DROP PROCEDURE IF EXISTS obp_create_transaction_requestv210; +GO +-- create procedure obp_create_transaction_requestv210 +CREATE PROCEDURE obp_create_transaction_requestv210 + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "initiator":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "viewId":{ + "value":"owner" + }, + "fromAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "toAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "transactionRequestType":{ + "value":"SEPA" + }, + "transactionRequestCommonBody":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "detailsPlain":"string", + "chargePolicy":"SHARED", + "challengeType":"", + "scaMethod":"SMS" + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "id":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "type":"SEPA", + "from":{ + "bank_id":"gh.29.uk", + "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "body":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "transaction_ids":"string", + "status":"", + "start_date":"2019-09-07T00:00:00Z", + "end_date":"2019-09-08T00:00:00Z", + "challenge":{ + "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", + "allowed_attempts":123, + "challenge_type":"string" + }, + "charge":{ + "summary":"", + "value":{ + "currency":"EUR", + "amount":"10.12" + } + } + } + }' + ); +GO + + + + + +-- drop procedure obp_create_transaction_requestv400 +DROP PROCEDURE IF EXISTS obp_create_transaction_requestv400; +GO +-- create procedure obp_create_transaction_requestv400 +CREATE PROCEDURE obp_create_transaction_requestv400 + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "initiator":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "viewId":{ + "value":"owner" + }, + "fromAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "toAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "transactionRequestType":{ + "value":"SEPA" + }, + "transactionRequestCommonBody":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "detailsPlain":"string", + "chargePolicy":"SHARED", + "challengeType":"", + "scaMethod":"SMS", + "reasons":[ + { + "code":"125", + "documentNumber":"", + "amount":"10.12", + "currency":"EUR", + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + } + ] + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "id":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "type":"SEPA", + "from":{ + "bank_id":"gh.29.uk", + "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "body":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "transaction_ids":"string", + "status":"", + "start_date":"2019-09-07T00:00:00Z", + "end_date":"2019-09-08T00:00:00Z", + "challenge":{ + "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", + "allowed_attempts":123, + "challenge_type":"string" + }, + "charge":{ + "summary":"", + "value":{ + "currency":"EUR", + "amount":"10.12" + } + } + } + }' + ); +GO + + + + + +-- drop procedure obp_create_transaction_request_sepa_credit_transfers_bgv1 +DROP PROCEDURE IF EXISTS obp_create_transaction_request_sepa_credit_transfers_bgv1; +GO +-- create procedure obp_create_transaction_request_sepa_credit_transfers_bgv1 +CREATE PROCEDURE obp_create_transaction_request_sepa_credit_transfers_bgv1 + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "initiator":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "paymentServiceType":"payments", + "transactionRequestType":"SANDBOX_TAN", + "transactionRequestBody":{ + "endToEndIdentification":"string", + "instructionIdentification":"string", + "debtorName":"string", + "debtorAccount":{ + "iban":"string" + }, + "debtorId":"string", + "ultimateDebtor":"string", + "instructedAmount":{ + "currency":"EUR", + "amount":"10.12" + }, + "currencyOfTransfer":"string", + "exchangeRateInformation":"string", + "creditorAccount":{ + "iban":"string" + }, + "creditorAgent":"string", + "creditorAgentName":"string", + "creditorName":"string", + "creditorId":"string", + "creditorAddress":"string", + "creditorNameAndAddress":"string", + "ultimateCreditor":"string", + "purposeCode":"string", + "chargeBearer":"string", + "serviceLevel":"string", + "remittanceInformationUnstructured":"string", + "remittanceInformationUnstructuredArray":"string", + "remittanceInformationStructured":"string", + "remittanceInformationStructuredArray":"string", + "requestedExecutionDate":"string", + "requestedExecutionTime":"string" + } + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "id":{ + "value":"d8839721-ad8f-45dd-9f78-2080414b93f9" + }, + "status":"" + } + }' + ); +GO + + + + + +-- drop procedure obp_create_transaction_request_periodic_sepa_credit_transfers_bgv1 +DROP PROCEDURE IF EXISTS obp_create_transaction_request_periodic_sepa_credit_transfers_bgv1; +GO +-- create procedure obp_create_transaction_request_periodic_sepa_credit_transfers_bgv1 +CREATE PROCEDURE obp_create_transaction_request_periodic_sepa_credit_transfers_bgv1 + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "initiator":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "paymentServiceType":"payments", + "transactionRequestType":"SANDBOX_TAN", + "transactionRequestBody":{ + "endToEndIdentification":"string", + "instructionIdentification":"string", + "debtorName":"string", + "debtorAccount":{ + "iban":"string" + }, + "debtorId":"string", + "ultimateDebtor":"string", + "instructedAmount":{ + "currency":"EUR", + "amount":"10.12" + }, + "currencyOfTransfer":"string", + "exchangeRateInformation":"string", + "creditorAccount":{ + "iban":"string" + }, + "creditorAgent":"string", + "creditorAgentName":"string", + "creditorName":"string", + "creditorId":"string", + "creditorAddress":"string", + "creditorNameAndAddress":"string", + "ultimateCreditor":"string", + "purposeCode":"string", + "chargeBearer":"string", + "serviceLevel":"string", + "remittanceInformationUnstructured":"string", + "remittanceInformationUnstructuredArray":"string", + "remittanceInformationStructured":"string", + "remittanceInformationStructuredArray":"string", + "requestedExecutionDate":"string", + "requestedExecutionTime":"string", + "startDate":"2020-01-27", + "executionRule":"string", + "endDate":"", + "frequency":"DAILY", + "dayOfExecution":"string" + } + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "id":{ + "value":"d8839721-ad8f-45dd-9f78-2080414b93f9" + }, + "status":"" + } + }' + ); +GO + + + + + +-- drop procedure obp_save_transaction_request_transaction +DROP PROCEDURE IF EXISTS obp_save_transaction_request_transaction; +GO +-- create procedure obp_save_transaction_request_transaction +CREATE PROCEDURE obp_save_transaction_request_transaction + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "transactionRequestId":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "transactionId":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + } + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":true + }' + ); +GO + + + + + +-- drop procedure obp_save_transaction_request_challenge +DROP PROCEDURE IF EXISTS obp_save_transaction_request_challenge; +GO +-- create procedure obp_save_transaction_request_challenge +CREATE PROCEDURE obp_save_transaction_request_challenge + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "transactionRequestId":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "challenge":{ + "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", + "allowed_attempts":123, + "challenge_type":"string" + } + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":true + }' + ); +GO + + + + + +-- drop procedure obp_save_transaction_request_status_impl +DROP PROCEDURE IF EXISTS obp_save_transaction_request_status_impl; +GO +-- create procedure obp_save_transaction_request_status_impl +CREATE PROCEDURE obp_save_transaction_request_status_impl + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "transactionRequestId":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "status":"" + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":true + }' + ); +GO + + + + + +-- drop procedure obp_get_transaction_requests210 +DROP PROCEDURE IF EXISTS obp_get_transaction_requests210; +GO +-- create procedure obp_get_transaction_requests210 +CREATE PROCEDURE obp_get_transaction_requests210 + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "initiator":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "fromAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + } + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":[ + { + "id":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "type":"SEPA", + "from":{ + "bank_id":"gh.29.uk", + "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "body":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "transaction_ids":"string", + "status":"", + "start_date":"2019-09-07T00:00:00Z", + "end_date":"2019-09-08T00:00:00Z", + "challenge":{ + "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", + "allowed_attempts":123, + "challenge_type":"string" + }, + "charge":{ + "summary":"", + "value":{ + "currency":"EUR", + "amount":"10.12" + } + } + } + ] + }' + ); +GO + + + + + +-- drop procedure obp_get_transaction_request_impl +DROP PROCEDURE IF EXISTS obp_get_transaction_request_impl; +GO +-- create procedure obp_get_transaction_request_impl +CREATE PROCEDURE obp_get_transaction_request_impl + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + }, + "outboundAdapterConsenterInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "transactionRequestId":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + } + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "id":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "type":"SEPA", + "from":{ + "bank_id":"gh.29.uk", + "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "body":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "transaction_ids":"string", + "status":"", + "start_date":"2019-09-07T00:00:00Z", + "end_date":"2019-09-08T00:00:00Z", + "challenge":{ + "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", + "allowed_attempts":123, + "challenge_type":"string" + }, + "charge":{ + "summary":"", + "value":{ + "currency":"EUR", + "amount":"10.12" + } + } + } + }' + ); +GO + + + + + +-- drop procedure obp_get_transaction_request_types +DROP PROCEDURE IF EXISTS obp_get_transaction_request_types; +GO +-- create procedure obp_get_transaction_request_types +CREATE PROCEDURE obp_get_transaction_request_types + @outbound_json NVARCHAR(MAX), + @inbound_json NVARCHAR(MAX) OUT + AS + SET nocount on + +-- replace the follow example to real logic +/* +this is example of parameter @outbound_json + N'{ + "outboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "outboundAdapterAuthInfo":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "username":"felixsmith", + "linkedCustomers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman" + } + ], + "userAuthContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ], + "authViews":[ + { + "view":{ + "id":"owner", + "name":"owner", + "description":"This view is for the owner for the account." + }, + "account":{ + "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "accountRoutings":[ { "scheme":"IBAN", "address":"DE91 1000 0000 0123 4567 89" @@ -9292,9 +12090,6 @@ this is example of parameter @outbound_json "isDeleted":true, "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" }, - "viewId":{ - "value":"owner" - }, "fromAccount":{ "accountId":{ "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" @@ -9330,57 +12125,7 @@ this is example of parameter @outbound_json "value":"closed" } ] - }, - "toAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "transactionRequestType":{ - "value":"SEPA" - }, - "transactionRequestCommonBody":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "detailsPlain":"string", - "chargePolicy":"SHARED", - "challengeType":"", - "scaMethod":"SMS" + } }' */ @@ -9410,39 +12155,11 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "id":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" - }, - "type":"SEPA", - "from":{ - "bank_id":"gh.29.uk", - "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "body":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "transaction_ids":"string", - "status":"", - "start_date":"2019-09-07T00:00:00Z", - "end_date":"2019-09-08T00:00:00Z", - "challenge":{ - "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", - "allowed_attempts":123, - "challenge_type":"string" - }, - "charge":{ - "summary":"", - "value":{ - "currency":"EUR", - "amount":"10.12" - } + "data":[ + { + "value":"SEPA" } - } + ] }' ); GO @@ -9451,11 +12168,11 @@ GO --- drop procedure obp_create_transaction_requestv400 -DROP PROCEDURE IF EXISTS obp_create_transaction_requestv400; +-- drop procedure obp_create_transaction_after_challenge_v210 +DROP PROCEDURE IF EXISTS obp_create_transaction_after_challenge_v210; GO --- create procedure obp_create_transaction_requestv400 -CREATE PROCEDURE obp_create_transaction_requestv400 +-- create procedure obp_create_transaction_after_challenge_v210 +CREATE PROCEDURE obp_create_transaction_after_challenge_v210 @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -9578,23 +12295,6 @@ this is example of parameter @outbound_json ] } }, - "initiator":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" - }, - "viewId":{ - "value":"owner" - }, "fromAccount":{ "accountId":{ "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" @@ -9631,65 +12331,39 @@ this is example of parameter @outbound_json } ] }, - "toAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "transactionRequest":{ + "id":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" + "type":"SEPA", + "from":{ + "bank_id":"gh.29.uk", + "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "transactionRequestType":{ - "value":"SEPA" - }, - "transactionRequestCommonBody":{ - "value":{ - "currency":"EUR", - "amount":"10.12" + "body":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "detailsPlain":"string", - "chargePolicy":"SHARED", - "challengeType":"", - "scaMethod":"SMS", - "reasons":[ - { - "code":"125", - "documentNumber":"", - "amount":"10.12", - "currency":"EUR", - "description":"This an optional field. Maximum length is 2000. It can be any characters here." + "transaction_ids":"string", + "status":"", + "start_date":"2019-09-07T00:00:00Z", + "end_date":"2019-09-08T00:00:00Z", + "challenge":{ + "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", + "allowed_attempts":123, + "challenge_type":"string" + }, + "charge":{ + "summary":"", + "value":{ + "currency":"EUR", + "amount":"10.12" + } } - ] + } }' */ @@ -9733,7 +12407,7 @@ this is example of parameter @outbound_json "currency":"EUR", "amount":"10.12" }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." + "description":"Description of the object. Maximum length is 2000. It can be any characters here." }, "transaction_ids":"string", "status":"", @@ -9760,11 +12434,11 @@ GO --- drop procedure obp_create_transaction_request_sepa_credit_transfers_bgv1 -DROP PROCEDURE IF EXISTS obp_create_transaction_request_sepa_credit_transfers_bgv1; +-- drop procedure obp_update_bank_account +DROP PROCEDURE IF EXISTS obp_update_bank_account; GO --- create procedure obp_create_transaction_request_sepa_credit_transfers_bgv1 -CREATE PROCEDURE obp_create_transaction_request_sepa_credit_transfers_bgv1 +-- create procedure obp_update_bank_account +CREATE PROCEDURE obp_update_bank_account @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -9887,57 +12561,21 @@ this is example of parameter @outbound_json ] } }, - "initiator":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }, - "paymentServiceType":"payments", - "transactionRequestType":"SANDBOX_TAN", - "transactionRequestBody":{ - "endToEndIdentification":"string", - "instructionIdentification":"string", - "debtorName":"string", - "debtorAccount":{ - "iban":"string" - }, - "debtorId":"string", - "ultimateDebtor":"string", - "instructedAmount":{ - "currency":"EUR", - "amount":"10.12" - }, - "currencyOfTransfer":"string", - "exchangeRateInformation":"string", - "creditorAccount":{ - "iban":"string" - }, - "creditorAgent":"string", - "creditorAgentName":"string", - "creditorName":"string", - "creditorId":"string", - "creditorAddress":"string", - "creditorNameAndAddress":"string", - "ultimateCreditor":"string", - "purposeCode":"string", - "chargeBearer":"string", - "serviceLevel":"string", - "remittanceInformationUnstructured":"string", - "remittanceInformationUnstructuredArray":"string", - "remittanceInformationStructured":"string", - "remittanceInformationStructuredArray":"string", - "requestedExecutionDate":"string", - "requestedExecutionTime":"string" - } + "accountType":"AC", + "accountLabel":"string", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ] }' */ @@ -9968,10 +12606,32 @@ this is example of parameter @outbound_json ] }, "data":{ - "id":{ - "value":"d8839721-ad8f-45dd-9f78-2080414b93f9" + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }, - "status":"" + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] } }' ); @@ -9981,11 +12641,11 @@ GO --- drop procedure obp_create_transaction_request_periodic_sepa_credit_transfers_bgv1 -DROP PROCEDURE IF EXISTS obp_create_transaction_request_periodic_sepa_credit_transfers_bgv1; +-- drop procedure obp_create_bank_account +DROP PROCEDURE IF EXISTS obp_create_bank_account; GO --- create procedure obp_create_transaction_request_periodic_sepa_credit_transfers_bgv1 -CREATE PROCEDURE obp_create_transaction_request_periodic_sepa_credit_transfers_bgv1 +-- create procedure obp_create_bank_account +CREATE PROCEDURE obp_create_bank_account @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -10108,62 +12768,24 @@ this is example of parameter @outbound_json ] } }, - "initiator":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + "bankId":{ + "value":"gh.29.uk" }, - "paymentServiceType":"payments", - "transactionRequestType":"SANDBOX_TAN", - "transactionRequestBody":{ - "endToEndIdentification":"string", - "instructionIdentification":"string", - "debtorName":"string", - "debtorAccount":{ - "iban":"string" - }, - "debtorId":"string", - "ultimateDebtor":"string", - "instructedAmount":{ - "currency":"EUR", - "amount":"10.12" - }, - "currencyOfTransfer":"string", - "exchangeRateInformation":"string", - "creditorAccount":{ - "iban":"string" - }, - "creditorAgent":"string", - "creditorAgentName":"string", - "creditorName":"string", - "creditorId":"string", - "creditorAddress":"string", - "creditorNameAndAddress":"string", - "ultimateCreditor":"string", - "purposeCode":"string", - "chargeBearer":"string", - "serviceLevel":"string", - "remittanceInformationUnstructured":"string", - "remittanceInformationUnstructuredArray":"string", - "remittanceInformationStructured":"string", - "remittanceInformationStructuredArray":"string", - "requestedExecutionDate":"string", - "requestedExecutionTime":"string", - "startDate":"2020-01-27", - "executionRule":"string", - "endDate":"", - "frequency":"DAILY", - "dayOfExecution":"string" - } + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "accountLabel":"string", + "currency":"EUR", + "initialBalance":"123.321", + "accountHolderName":"string", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ] }' */ @@ -10194,10 +12816,32 @@ this is example of parameter @outbound_json ] }, "data":{ - "id":{ - "value":"d8839721-ad8f-45dd-9f78-2080414b93f9" + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }, - "status":"" + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] } }' ); @@ -10207,11 +12851,11 @@ GO --- drop procedure obp_save_transaction_request_transaction -DROP PROCEDURE IF EXISTS obp_save_transaction_request_transaction; +-- drop procedure obp_update_account_label +DROP PROCEDURE IF EXISTS obp_update_account_label; GO --- create procedure obp_save_transaction_request_transaction -CREATE PROCEDURE obp_save_transaction_request_transaction +-- create procedure obp_update_account_label +CREATE PROCEDURE obp_update_account_label @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -10334,12 +12978,13 @@ this is example of parameter @outbound_json ] } }, - "transactionRequestId":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + "bankId":{ + "value":"gh.29.uk" }, - "transactionId":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - } + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "label":"My Account" }' */ @@ -10378,11 +13023,11 @@ GO --- drop procedure obp_save_transaction_request_challenge -DROP PROCEDURE IF EXISTS obp_save_transaction_request_challenge; +-- drop procedure obp_get_products +DROP PROCEDURE IF EXISTS obp_get_products; GO --- create procedure obp_save_transaction_request_challenge -CREATE PROCEDURE obp_save_transaction_request_challenge +-- create procedure obp_get_products +CREATE PROCEDURE obp_get_products @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -10505,14 +13150,17 @@ this is example of parameter @outbound_json ] } }, - "transactionRequestId":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + "bankId":{ + "value":"gh.29.uk" }, - "challenge":{ - "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", - "allowed_attempts":123, - "challenge_type":"string" - } + "params":[ + { + "name":"ACCOUNT_MANAGEMENT_FEE", + "value":[ + "5987953" + ] + } + ] }' */ @@ -10540,9 +13188,35 @@ this is example of parameter @outbound_json "text":"", "duration":"5.123" } - ] - }, - "data":true + ] + }, + "data":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "code":{ + "value":"1234BW" + }, + "parentProductCode":{ + "value":"787LOW" + }, + "name":"Deposit Account 1", + "category":"", + "family":"", + "superFamily":"", + "moreInfoUrl":"www.example.com/abc", + "termsAndConditionsUrl":"www.example.com/xyz", + "details":"", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "meta":{ + "license":{ + "id":"ODbL-1.0", + "name":"Open Database License" + } + } + } + ] }' ); GO @@ -10551,11 +13225,11 @@ GO --- drop procedure obp_save_transaction_request_status_impl -DROP PROCEDURE IF EXISTS obp_save_transaction_request_status_impl; +-- drop procedure obp_get_product +DROP PROCEDURE IF EXISTS obp_get_product; GO --- create procedure obp_save_transaction_request_status_impl -CREATE PROCEDURE obp_save_transaction_request_status_impl +-- create procedure obp_get_product +CREATE PROCEDURE obp_get_product @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -10678,10 +13352,12 @@ this is example of parameter @outbound_json ] } }, - "transactionRequestId":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + "bankId":{ + "value":"gh.29.uk" }, - "status":"" + "productCode":{ + "value":"1234BW" + } }' */ @@ -10711,7 +13387,31 @@ this is example of parameter @outbound_json } ] }, - "data":true + "data":{ + "bankId":{ + "value":"gh.29.uk" + }, + "code":{ + "value":"1234BW" + }, + "parentProductCode":{ + "value":"787LOW" + }, + "name":"Deposit Account 1", + "category":"", + "family":"", + "superFamily":"", + "moreInfoUrl":"www.example.com/abc", + "termsAndConditionsUrl":"www.example.com/xyz", + "details":"", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "meta":{ + "license":{ + "id":"ODbL-1.0", + "name":"Open Database License" + } + } + } }' ); GO @@ -10720,11 +13420,11 @@ GO --- drop procedure obp_get_transaction_requests210 -DROP PROCEDURE IF EXISTS obp_get_transaction_requests210; +-- drop procedure obp_get_branch +DROP PROCEDURE IF EXISTS obp_get_branch; GO --- create procedure obp_get_transaction_requests210 -CREATE PROCEDURE obp_get_transaction_requests210 +-- create procedure obp_get_branch +CREATE PROCEDURE obp_get_branch @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -10847,55 +13547,11 @@ this is example of parameter @outbound_json ] } }, - "initiator":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + "bankId":{ + "value":"gh.29.uk" }, - "fromAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] + "branchId":{ + "value":"DERBY6" } }' */ @@ -10926,41 +13582,131 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "id":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + "data":{ + "branchId":{ + "value":"DERBY6" + }, + "bankId":{ + "value":"gh.29.uk" + }, + "name":"ACCOUNT_MANAGEMENT_FEE", + "address":{ + "line1":"", + "line2":"", + "line3":"", + "city":"", + "county":"", + "state":"", + "postCode":"789", + "countryCode":"1254" + }, + "location":{ + "latitude":38.8951, + "longitude":-77.0364, + "date":"2020-01-27T00:00:00Z", + "user":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "provider":"ETHEREUM", + "username":"felixsmith" + } + }, + "lobbyString":{ + "hours":"string" + }, + "driveUpString":{ + "hours":"string" + }, + "meta":{ + "license":{ + "id":"ODbL-1.0", + "name":"Open Database License" + } + }, + "branchRouting":{ + "scheme":"BRANCH-CODE", + "address":"DERBY6" + }, + "lobby":{ + "monday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "tuesday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "wednesday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "thursday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "friday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "saturday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "sunday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ] + }, + "driveUp":{ + "monday":{ + "openingTime":"", + "closingTime":"2020-01-27" }, - "type":"SEPA", - "from":{ - "bank_id":"gh.29.uk", - "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "tuesday":{ + "openingTime":"", + "closingTime":"2020-01-27" }, - "body":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." + "wednesday":{ + "openingTime":"", + "closingTime":"2020-01-27" }, - "transaction_ids":"string", - "status":"", - "start_date":"2019-09-07T00:00:00Z", - "end_date":"2019-09-08T00:00:00Z", - "challenge":{ - "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", - "allowed_attempts":123, - "challenge_type":"string" + "thursday":{ + "openingTime":"", + "closingTime":"2020-01-27" }, - "charge":{ - "summary":"", - "value":{ - "currency":"EUR", - "amount":"10.12" - } + "friday":{ + "openingTime":"", + "closingTime":"2020-01-27" + }, + "saturday":{ + "openingTime":"", + "closingTime":"2020-01-27" + }, + "sunday":{ + "openingTime":"", + "closingTime":"2020-01-27" } - } - ] + }, + "isAccessible":false, + "accessibleFeatures":"string", + "branchType":"", + "moreInfo":"More information about this fee", + "phoneNumber":"", + "isDeleted":true + } }' ); GO @@ -10969,11 +13715,11 @@ GO --- drop procedure obp_get_transaction_request_impl -DROP PROCEDURE IF EXISTS obp_get_transaction_request_impl; +-- drop procedure obp_get_branches +DROP PROCEDURE IF EXISTS obp_get_branches; GO --- create procedure obp_get_transaction_request_impl -CREATE PROCEDURE obp_get_transaction_request_impl +-- create procedure obp_get_branches +CREATE PROCEDURE obp_get_branches @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -11096,9 +13842,13 @@ this is example of parameter @outbound_json ] } }, - "transactionRequestId":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" - } + "bankId":{ + "value":"gh.29.uk" + }, + "limit":100, + "offset":100, + "fromDate":"1100-01-01T01:01:01.000Z", + "toDate":"1100-01-01T01:01:01.000Z" }' */ @@ -11128,39 +13878,133 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "id":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" - }, - "type":"SEPA", - "from":{ - "bank_id":"gh.29.uk", - "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "body":{ - "value":{ - "currency":"EUR", - "amount":"10.12" + "data":[ + { + "branchId":{ + "value":"DERBY6" }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "transaction_ids":"string", - "status":"", - "start_date":"2019-09-07T00:00:00Z", - "end_date":"2019-09-08T00:00:00Z", - "challenge":{ - "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", - "allowed_attempts":123, - "challenge_type":"string" - }, - "charge":{ - "summary":"", - "value":{ - "currency":"EUR", - "amount":"10.12" - } + "bankId":{ + "value":"gh.29.uk" + }, + "name":"ACCOUNT_MANAGEMENT_FEE", + "address":{ + "line1":"", + "line2":"", + "line3":"", + "city":"", + "county":"", + "state":"", + "postCode":"789", + "countryCode":"1254" + }, + "location":{ + "latitude":38.8951, + "longitude":-77.0364, + "date":"2020-01-27T00:00:00Z", + "user":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "provider":"ETHEREUM", + "username":"felixsmith" + } + }, + "lobbyString":{ + "hours":"string" + }, + "driveUpString":{ + "hours":"string" + }, + "meta":{ + "license":{ + "id":"ODbL-1.0", + "name":"Open Database License" + } + }, + "branchRouting":{ + "scheme":"BRANCH-CODE", + "address":"DERBY6" + }, + "lobby":{ + "monday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "tuesday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "wednesday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "thursday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "friday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "saturday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ], + "sunday":[ + { + "openingTime":"", + "closingTime":"2020-01-27" + } + ] + }, + "driveUp":{ + "monday":{ + "openingTime":"", + "closingTime":"2020-01-27" + }, + "tuesday":{ + "openingTime":"", + "closingTime":"2020-01-27" + }, + "wednesday":{ + "openingTime":"", + "closingTime":"2020-01-27" + }, + "thursday":{ + "openingTime":"", + "closingTime":"2020-01-27" + }, + "friday":{ + "openingTime":"", + "closingTime":"2020-01-27" + }, + "saturday":{ + "openingTime":"", + "closingTime":"2020-01-27" + }, + "sunday":{ + "openingTime":"", + "closingTime":"2020-01-27" + } + }, + "isAccessible":false, + "accessibleFeatures":"string", + "branchType":"", + "moreInfo":"More information about this fee", + "phoneNumber":"", + "isDeleted":true } - } + ] }' ); GO @@ -11169,11 +14013,11 @@ GO --- drop procedure obp_get_transaction_request_types -DROP PROCEDURE IF EXISTS obp_get_transaction_request_types; +-- drop procedure obp_get_atm +DROP PROCEDURE IF EXISTS obp_get_atm; GO --- create procedure obp_get_transaction_request_types -CREATE PROCEDURE obp_get_transaction_request_types +-- create procedure obp_get_atm +CREATE PROCEDURE obp_get_atm @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -11280,71 +14124,27 @@ this is example of parameter @outbound_json "bankId":"gh.29.uk", "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", "customerNumber":"5987953", - "legalName":"Eveline Tripman", - "dateOfBirth":"2018-03-09T00:00:00Z" - } - ], - "userOwners":[ - { - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "emailAddress":"felixsmith@example.com", - "name":"felixsmith" - } - ] - } - } - ] - } - }, - "initiator":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" - }, - "fromAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] + } + }, + "bankId":{ + "value":"gh.29.uk" + }, + "atmId":{ + "value":"atme-9a0f-4bfa-b30b-9003aa467f51" } }' */ @@ -11375,11 +14175,94 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "value":"SEPA" - } - ] + "data":{ + "atmId":{ + "value":"atme-9a0f-4bfa-b30b-9003aa467f51" + }, + "bankId":{ + "value":"gh.29.uk" + }, + "name":"ACCOUNT_MANAGEMENT_FEE", + "address":{ + "line1":"", + "line2":"", + "line3":"", + "city":"", + "county":"", + "state":"", + "postCode":"789", + "countryCode":"1254" + }, + "location":{ + "latitude":38.8951, + "longitude":-77.0364, + "date":"2020-01-27T00:00:00Z", + "user":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "provider":"ETHEREUM", + "username":"felixsmith" + } + }, + "meta":{ + "license":{ + "id":"ODbL-1.0", + "name":"Open Database License" + } + }, + "OpeningTimeOnMonday":"string", + "ClosingTimeOnMonday":"string", + "OpeningTimeOnTuesday":"string", + "ClosingTimeOnTuesday":"string", + "OpeningTimeOnWednesday":"string", + "ClosingTimeOnWednesday":"string", + "OpeningTimeOnThursday":"string", + "ClosingTimeOnThursday":"string", + "OpeningTimeOnFriday":"string", + "ClosingTimeOnFriday":"string", + "OpeningTimeOnSaturday":"string", + "ClosingTimeOnSaturday":"string", + "OpeningTimeOnSunday":"string", + "ClosingTimeOnSunday":"string", + "isAccessible":false, + "locatedAt":"", + "moreInfo":"More information about this fee", + "hasDepositCapability":false, + "supportedLanguages":[ + "\"es\"", + "\"fr\"", + "\"de\"" + ], + "services":[ + "{\"CY\":\"PS_010\"", + "\"PS_020\"", + "\"PS_03C\"", + "\"PS_04C\"}" + ], + "accessibilityFeatures":[ + "\"ATAC\"", + "\"ATAD\"" + ], + "supportedCurrencies":[ + "\"EUR\"", + "\"MXN\"", + "\"USD\"" + ], + "notes":[ + "" + ], + "locationCategories":[ + "" + ], + "minimumWithdrawal":"string", + "branchIdentification":"string", + "siteIdentification":"", + "siteName":"string", + "cashWithdrawalNationalFee":"", + "cashWithdrawalInternationalFee":"", + "balanceInquiryFee":"", + "atmType":"", + "phone":"" + } }' ); GO @@ -11388,11 +14271,11 @@ GO --- drop procedure obp_create_transaction_after_challenge_v210 -DROP PROCEDURE IF EXISTS obp_create_transaction_after_challenge_v210; +-- drop procedure obp_get_atms +DROP PROCEDURE IF EXISTS obp_get_atms; GO --- create procedure obp_create_transaction_after_challenge_v210 -CREATE PROCEDURE obp_create_transaction_after_challenge_v210 +-- create procedure obp_get_atms +CREATE PROCEDURE obp_get_atms @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -11515,75 +14398,13 @@ this is example of parameter @outbound_json ] } }, - "fromAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] + "bankId":{ + "value":"gh.29.uk" }, - "transactionRequest":{ - "id":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" - }, - "type":"SEPA", - "from":{ - "bank_id":"gh.29.uk", - "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "body":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "transaction_ids":"string", - "status":"", - "start_date":"2019-09-07T00:00:00Z", - "end_date":"2019-09-08T00:00:00Z", - "challenge":{ - "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", - "allowed_attempts":123, - "challenge_type":"string" - }, - "charge":{ - "summary":"", - "value":{ - "currency":"EUR", - "amount":"10.12" - } - } - } + "limit":100, + "offset":100, + "fromDate":"1100-01-01T01:01:01.000Z", + "toDate":"1100-01-01T01:01:01.000Z" }' */ @@ -11613,39 +14434,96 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "id":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" - }, - "type":"SEPA", - "from":{ - "bank_id":"gh.29.uk", - "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "body":{ - "value":{ - "currency":"EUR", - "amount":"10.12" + "data":[ + { + "atmId":{ + "value":"atme-9a0f-4bfa-b30b-9003aa467f51" }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "transaction_ids":"string", - "status":"", - "start_date":"2019-09-07T00:00:00Z", - "end_date":"2019-09-08T00:00:00Z", - "challenge":{ - "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", - "allowed_attempts":123, - "challenge_type":"string" - }, - "charge":{ - "summary":"", - "value":{ - "currency":"EUR", - "amount":"10.12" - } + "bankId":{ + "value":"gh.29.uk" + }, + "name":"ACCOUNT_MANAGEMENT_FEE", + "address":{ + "line1":"", + "line2":"", + "line3":"", + "city":"", + "county":"", + "state":"", + "postCode":"789", + "countryCode":"1254" + }, + "location":{ + "latitude":38.8951, + "longitude":-77.0364, + "date":"2020-01-27T00:00:00Z", + "user":{ + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "provider":"ETHEREUM", + "username":"felixsmith" + } + }, + "meta":{ + "license":{ + "id":"ODbL-1.0", + "name":"Open Database License" + } + }, + "OpeningTimeOnMonday":"string", + "ClosingTimeOnMonday":"string", + "OpeningTimeOnTuesday":"string", + "ClosingTimeOnTuesday":"string", + "OpeningTimeOnWednesday":"string", + "ClosingTimeOnWednesday":"string", + "OpeningTimeOnThursday":"string", + "ClosingTimeOnThursday":"string", + "OpeningTimeOnFriday":"string", + "ClosingTimeOnFriday":"string", + "OpeningTimeOnSaturday":"string", + "ClosingTimeOnSaturday":"string", + "OpeningTimeOnSunday":"string", + "ClosingTimeOnSunday":"string", + "isAccessible":false, + "locatedAt":"", + "moreInfo":"More information about this fee", + "hasDepositCapability":false, + "supportedLanguages":[ + "\"es\"", + "\"fr\"", + "\"de\"" + ], + "services":[ + "{\"CY\":\"PS_010\"", + "\"PS_020\"", + "\"PS_03C\"", + "\"PS_04C\"}" + ], + "accessibilityFeatures":[ + "\"ATAC\"", + "\"ATAD\"" + ], + "supportedCurrencies":[ + "\"EUR\"", + "\"MXN\"", + "\"USD\"" + ], + "notes":[ + "" + ], + "locationCategories":[ + "" + ], + "minimumWithdrawal":"string", + "branchIdentification":"string", + "siteIdentification":"", + "siteName":"string", + "cashWithdrawalNationalFee":"", + "cashWithdrawalInternationalFee":"", + "balanceInquiryFee":"", + "atmType":"", + "phone":"" } - } + ] }' ); GO @@ -11654,11 +14532,11 @@ GO --- drop procedure obp_update_bank_account -DROP PROCEDURE IF EXISTS obp_update_bank_account; +-- drop procedure obp_get_current_fx_rate +DROP PROCEDURE IF EXISTS obp_get_current_fx_rate; GO --- create procedure obp_update_bank_account -CREATE PROCEDURE obp_update_bank_account +-- create procedure obp_get_current_fx_rate +CREATE PROCEDURE obp_get_current_fx_rate @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -11784,18 +14662,8 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "accountLabel":"string", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ] + "fromCurrencyCode":"", + "toCurrencyCode":"EUR" }' */ @@ -11826,32 +14694,14 @@ this is example of parameter @outbound_json ] }, "data":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "number":"bankAccount number string", "bankId":{ "value":"gh.29.uk" }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] + "fromCurrencyCode":"", + "toCurrencyCode":"EUR", + "conversionValue":100.0, + "inverseConversionValue":50.0, + "effectiveDate":"2020-01-27T00:00:00Z" } }' ); @@ -11861,11 +14711,11 @@ GO --- drop procedure obp_create_bank_account -DROP PROCEDURE IF EXISTS obp_create_bank_account; +-- drop procedure obp_create_transaction_after_challengev300 +DROP PROCEDURE IF EXISTS obp_create_transaction_after_challengev300; GO --- create procedure obp_create_bank_account -CREATE PROCEDURE obp_create_bank_account +-- create procedure obp_create_transaction_after_challengev300 +CREATE PROCEDURE obp_create_transaction_after_challengev300 @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -11988,24 +14838,62 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" + "initiator":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "fromAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] }, - "accountType":"AC", - "accountLabel":"string", - "currency":"EUR", - "initialBalance":"123.321", - "accountHolderName":"string", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ] + "transReqId":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "transactionRequestType":{ + "value":"SEPA" + } }' */ @@ -12036,32 +14924,37 @@ this is example of parameter @outbound_json ] }, "data":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "id":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" + "type":"SEPA", + "from":{ + "bank_id":"gh.29.uk", + "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" + "body":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "transaction_ids":"string", + "status":"", + "start_date":"2019-09-07T00:00:00Z", + "end_date":"2019-09-08T00:00:00Z", + "challenge":{ + "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", + "allowed_attempts":123, + "challenge_type":"string" + }, + "charge":{ + "summary":"", + "value":{ + "currency":"EUR", + "amount":"10.12" } - ] + } } }' ); @@ -12071,11 +14964,11 @@ GO --- drop procedure obp_update_account_label -DROP PROCEDURE IF EXISTS obp_update_account_label; +-- drop procedure obp_make_paymentv300 +DROP PROCEDURE IF EXISTS obp_make_paymentv300; GO --- create procedure obp_update_account_label -CREATE PROCEDURE obp_update_account_label +-- create procedure obp_make_paymentv300 +CREATE PROCEDURE obp_make_paymentv300 @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -12198,13 +15091,128 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" + "initiator":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "fromAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "toAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "toCounterparty":{ + "createdByUserId":"", + "name":"John Smith Ltd.", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "currency":"EUR", + "thisBankId":"", + "thisAccountId":"", + "thisViewId":"", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountSecondaryRoutingScheme":"IBAN", + "otherAccountSecondaryRoutingAddress":"DE89370400440532013000", + "otherBankRoutingScheme":"OBP", + "otherBankRoutingAddress":"gh.29.uk", + "otherBranchRoutingScheme":"OBP", + "otherBranchRoutingAddress":"12f8a9e6-c2b1-407a-8bd0-421b7119307e", + "isBeneficiary":false, + "bespoke":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] }, - "label":"My Account" + "transactionRequestCommonBody":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "transactionRequestType":{ + "value":"SEPA" + }, + "chargePolicy":"SHARED" }' */ @@ -12234,7 +15242,9 @@ this is example of parameter @outbound_json } ] }, - "data":true + "data":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + } }' ); GO @@ -12243,11 +15253,11 @@ GO --- drop procedure obp_get_products -DROP PROCEDURE IF EXISTS obp_get_products; +-- drop procedure obp_create_transaction_requestv300 +DROP PROCEDURE IF EXISTS obp_create_transaction_requestv300; GO --- create procedure obp_get_products -CREATE PROCEDURE obp_get_products +-- create procedure obp_create_transaction_requestv300 +CREATE PROCEDURE obp_create_transaction_requestv300 @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -12370,17 +15380,132 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" + "initiator":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" }, - "params":[ - { - "name":"ACCOUNT_MANAGEMENT_FEE", - "value":[ - "5987953" - ] - } - ] + "viewId":{ + "value":"owner" + }, + "fromAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "toAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "toCounterparty":{ + "createdByUserId":"", + "name":"John Smith Ltd.", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "currency":"EUR", + "thisBankId":"", + "thisAccountId":"", + "thisViewId":"", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountSecondaryRoutingScheme":"IBAN", + "otherAccountSecondaryRoutingAddress":"DE89370400440532013000", + "otherBankRoutingScheme":"OBP", + "otherBankRoutingAddress":"gh.29.uk", + "otherBranchRoutingScheme":"OBP", + "otherBranchRoutingAddress":"12f8a9e6-c2b1-407a-8bd0-421b7119307e", + "isBeneficiary":false, + "bespoke":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "transactionRequestType":{ + "value":"SEPA" + }, + "transactionRequestCommonBody":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "detailsPlain":"string", + "chargePolicy":"SHARED" }' */ @@ -12410,33 +15535,39 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "code":{ - "value":"1234BW" - }, - "parentProductCode":{ - "value":"787LOW" - }, - "name":"Deposit Account 1", - "category":"", - "family":"", - "superFamily":"", - "moreInfoUrl":"www.example.com/abc", - "termsAndConditionsUrl":"www.example.com/xyz", - "details":"", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "meta":{ - "license":{ - "id":"ODbL-1.0", - "name":"Open Database License" - } + "data":{ + "id":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "type":"SEPA", + "from":{ + "bank_id":"gh.29.uk", + "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "body":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "transaction_ids":"string", + "status":"", + "start_date":"2019-09-07T00:00:00Z", + "end_date":"2019-09-08T00:00:00Z", + "challenge":{ + "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", + "allowed_attempts":123, + "challenge_type":"string" + }, + "charge":{ + "summary":"", + "value":{ + "currency":"EUR", + "amount":"10.12" } } - ] + } }' ); GO @@ -12445,11 +15576,11 @@ GO --- drop procedure obp_get_product -DROP PROCEDURE IF EXISTS obp_get_product; +-- drop procedure obp_make_payment_v400 +DROP PROCEDURE IF EXISTS obp_make_payment_v400; GO --- create procedure obp_get_product -CREATE PROCEDURE obp_get_product +-- create procedure obp_make_payment_v400 +CREATE PROCEDURE obp_make_payment_v400 @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -12572,12 +15703,48 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" + "transactionRequest":{ + "id":{ + "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + }, + "type":"SEPA", + "from":{ + "bank_id":"gh.29.uk", + "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "body":{ + "value":{ + "currency":"EUR", + "amount":"10.12" + }, + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + }, + "transaction_ids":"string", + "status":"", + "start_date":"2019-09-07T00:00:00Z", + "end_date":"2019-09-08T00:00:00Z", + "challenge":{ + "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", + "allowed_attempts":123, + "challenge_type":"string" + }, + "charge":{ + "summary":"", + "value":{ + "currency":"EUR", + "amount":"10.12" + } + } }, - "productCode":{ - "value":"1234BW" - } + "reasons":[ + { + "code":"125", + "documentNumber":"", + "amount":"10.12", + "currency":"EUR", + "description":"Description of the object. Maximum length is 2000. It can be any characters here." + } + ] }' */ @@ -12608,29 +15775,7 @@ this is example of parameter @outbound_json ] }, "data":{ - "bankId":{ - "value":"gh.29.uk" - }, - "code":{ - "value":"1234BW" - }, - "parentProductCode":{ - "value":"787LOW" - }, - "name":"Deposit Account 1", - "category":"", - "family":"", - "superFamily":"", - "moreInfoUrl":"www.example.com/abc", - "termsAndConditionsUrl":"www.example.com/xyz", - "details":"", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "meta":{ - "license":{ - "id":"ODbL-1.0", - "name":"Open Database License" - } - } + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" } }' ); @@ -12640,11 +15785,11 @@ GO --- drop procedure obp_get_branch -DROP PROCEDURE IF EXISTS obp_get_branch; +-- drop procedure obp_cancel_payment_v400 +DROP PROCEDURE IF EXISTS obp_cancel_payment_v400; GO --- create procedure obp_get_branch -CREATE PROCEDURE obp_get_branch +-- create procedure obp_cancel_payment_v400 +CREATE PROCEDURE obp_cancel_payment_v400 @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -12742,190 +15887,66 @@ this is example of parameter @outbound_json "id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", "accountRoutings":[ { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "customerOwners":[ - { - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "customerNumber":"5987953", - "legalName":"Eveline Tripman", - "dateOfBirth":"2018-03-09T00:00:00Z" - } - ], - "userOwners":[ - { - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "emailAddress":"felixsmith@example.com", - "name":"felixsmith" - } - ] - } - } - ] - } - }, - "bankId":{ - "value":"gh.29.uk" - }, - "branchId":{ - "value":"DERBY6" - } - }' -*/ - --- return example value - SELECT @inbound_json = ( - SELECT - N'{ - "inboundAdapterCallContext":{ - "correlationId":"1flssoftxq0cr1nssr68u0mioj", - "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", - "generalContext":[ - { - "key":"CustomerNumber", - "value":"5987953" - } - ] - }, - "status":{ - "errorCode":"", - "backendMessages":[ - { - "source":"", - "status":"", - "errorCode":"", - "text":"", - "duration":"5.123" - } - ] - }, - "data":{ - "branchId":{ - "value":"DERBY6" - }, - "bankId":{ - "value":"gh.29.uk" - }, - "name":"ACCOUNT_MANAGEMENT_FEE", - "address":{ - "line1":"", - "line2":"", - "line3":"", - "city":"", - "county":"", - "state":"", - "postCode":"789", - "countryCode":"1254" - }, - "location":{ - "latitude":38.8951, - "longitude":-77.0364, - "date":"2020-01-27T00:00:00Z", - "user":{ - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "provider":"ETHEREUM", - "username":"felixsmith" - } - }, - "lobbyString":{ - "hours":"string" - }, - "driveUpString":{ - "hours":"string" - }, - "meta":{ - "license":{ - "id":"ODbL-1.0", - "name":"Open Database License" - } - }, - "branchRouting":{ - "scheme":"BRANCH-CODE", - "address":"DERBY6" - }, - "lobby":{ - "monday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "tuesday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "wednesday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "thursday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "friday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "saturday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "sunday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "customerOwners":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "legalName":"Eveline Tripman", + "dateOfBirth":"2018-03-09T00:00:00Z" + } + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } } ] - }, - "driveUp":{ - "monday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "tuesday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "wednesday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "thursday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "friday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "saturday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "sunday":{ - "openingTime":"", - "closingTime":"2020-01-27" + } + }, + "transactionId":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + } + }' +*/ + +-- return example value + SELECT @inbound_json = ( + SELECT + N'{ + "inboundAdapterCallContext":{ + "correlationId":"1flssoftxq0cr1nssr68u0mioj", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" } - }, - "isAccessible":false, - "accessibleFeatures":"string", - "branchType":"", - "moreInfo":"More information about this fee", - "phoneNumber":"", - "isDeleted":true + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "canBeCancelled":true, + "startSca":true } }' ); @@ -12935,11 +15956,11 @@ GO --- drop procedure obp_get_branches -DROP PROCEDURE IF EXISTS obp_get_branches; +-- drop procedure obp_get_transaction_request_type_charges +DROP PROCEDURE IF EXISTS obp_get_transaction_request_type_charges; GO --- create procedure obp_get_branches -CREATE PROCEDURE obp_get_branches +-- create procedure obp_get_transaction_request_type_charges +CREATE PROCEDURE obp_get_transaction_request_type_charges @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -13065,10 +16086,17 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "limit":100, - "offset":100, - "fromDate":"", - "toDate":"" + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "viewId":{ + "value":"owner" + }, + "transactionRequestTypes":[ + { + "value":"" + } + ] }' */ @@ -13100,129 +16128,11 @@ this is example of parameter @outbound_json }, "data":[ { - "branchId":{ - "value":"DERBY6" - }, - "bankId":{ - "value":"gh.29.uk" - }, - "name":"ACCOUNT_MANAGEMENT_FEE", - "address":{ - "line1":"", - "line2":"", - "line3":"", - "city":"", - "county":"", - "state":"", - "postCode":"789", - "countryCode":"1254" - }, - "location":{ - "latitude":38.8951, - "longitude":-77.0364, - "date":"2020-01-27T00:00:00Z", - "user":{ - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "provider":"ETHEREUM", - "username":"felixsmith" - } - }, - "lobbyString":{ - "hours":"string" - }, - "driveUpString":{ - "hours":"string" - }, - "meta":{ - "license":{ - "id":"ODbL-1.0", - "name":"Open Database License" - } - }, - "branchRouting":{ - "scheme":"BRANCH-CODE", - "address":"DERBY6" - }, - "lobby":{ - "monday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "tuesday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "wednesday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "thursday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "friday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "saturday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ], - "sunday":[ - { - "openingTime":"", - "closingTime":"2020-01-27" - } - ] - }, - "driveUp":{ - "monday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "tuesday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "wednesday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "thursday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "friday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "saturday":{ - "openingTime":"", - "closingTime":"2020-01-27" - }, - "sunday":{ - "openingTime":"", - "closingTime":"2020-01-27" - } - }, - "isAccessible":false, - "accessibleFeatures":"string", - "branchType":"", - "moreInfo":"More information about this fee", - "phoneNumber":"", - "isDeleted":true + "transactionRequestTypeId":"string", + "bankId":"gh.29.uk", + "chargeCurrency":"string", + "chargeAmount":"string", + "chargeSummary":"string" } ] }' @@ -13233,11 +16143,11 @@ GO --- drop procedure obp_get_atm -DROP PROCEDURE IF EXISTS obp_get_atm; +-- drop procedure obp_create_counterparty +DROP PROCEDURE IF EXISTS obp_create_counterparty; GO --- create procedure obp_get_atm -CREATE PROCEDURE obp_get_atm +-- create procedure obp_create_counterparty +CREATE PROCEDURE obp_create_counterparty @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -13359,13 +16269,29 @@ this is example of parameter @outbound_json } ] } - }, - "bankId":{ - "value":"gh.29.uk" - }, - "atmId":{ - "value":"atme-9a0f-4bfa-b30b-9003aa467f51" - } + }, + "name":"ACCOUNT_MANAGEMENT_FEE", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "currency":"EUR", + "createdByUserId":"", + "thisBankId":"", + "thisAccountId":"", + "thisViewId":"", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountSecondaryRoutingScheme":"", + "otherAccountSecondaryRoutingAddress":"", + "otherBankRoutingScheme":"", + "otherBankRoutingAddress":"", + "otherBranchRoutingScheme":"", + "otherBranchRoutingAddress":"", + "isBeneficiary":false, + "bespoke":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] }' */ @@ -13396,89 +16322,29 @@ this is example of parameter @outbound_json ] }, "data":{ - "atmId":{ - "value":"atme-9a0f-4bfa-b30b-9003aa467f51" - }, - "bankId":{ - "value":"gh.29.uk" - }, + "createdByUserId":"", "name":"ACCOUNT_MANAGEMENT_FEE", - "address":{ - "line1":"", - "line2":"", - "line3":"", - "city":"", - "county":"", - "state":"", - "postCode":"789", - "countryCode":"1254" - }, - "location":{ - "latitude":38.8951, - "longitude":-77.0364, - "date":"2020-01-27T00:00:00Z", - "user":{ - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "provider":"ETHEREUM", - "username":"felixsmith" - } - }, - "meta":{ - "license":{ - "id":"ODbL-1.0", - "name":"Open Database License" + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "currency":"EUR", + "thisBankId":"", + "thisAccountId":"", + "thisViewId":"", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "otherAccountRoutingScheme":"IBAN", + "otherAccountRoutingAddress":"DE89370400440532013000", + "otherAccountSecondaryRoutingScheme":"", + "otherAccountSecondaryRoutingAddress":"", + "otherBankRoutingScheme":"", + "otherBankRoutingAddress":"", + "otherBranchRoutingScheme":"", + "otherBranchRoutingAddress":"", + "isBeneficiary":false, + "bespoke":[ + { + "key":"CustomerNumber", + "value":"5987953" } - }, - "OpeningTimeOnMonday":"string", - "ClosingTimeOnMonday":"string", - "OpeningTimeOnTuesday":"string", - "ClosingTimeOnTuesday":"string", - "OpeningTimeOnWednesday":"string", - "ClosingTimeOnWednesday":"string", - "OpeningTimeOnThursday":"string", - "ClosingTimeOnThursday":"string", - "OpeningTimeOnFriday":"string", - "ClosingTimeOnFriday":"string", - "OpeningTimeOnSaturday":"string", - "ClosingTimeOnSaturday":"string", - "OpeningTimeOnSunday":"string", - "ClosingTimeOnSunday":"string", - "isAccessible":false, - "locatedAt":"", - "moreInfo":"More information about this fee", - "hasDepositCapability":false, - "supportedLanguages":[ - "\"es\"", - "\"fr\"", - "\"de\"" - ], - "services":[ - "" - ], - "accessibilityFeatures":[ - "\"ATAC\"", - "\"ATAD\"" - ], - "supportedCurrencies":[ - "\"EUR\"", - "\"MXN\"", - "\"USD\"" - ], - "notes":[ - "" - ], - "locationCategories":[ - "" - ], - "minimumWithdrawal":"string", - "branchIdentification":"string", - "siteIdentification":"", - "siteName":"string", - "cashWithdrawalNationalFee":"", - "cashWithdrawalInternationalFee":"", - "balanceInquiryFee":"", - "atmType":"", - "phone":"" + ] } }' ); @@ -13488,11 +16354,11 @@ GO --- drop procedure obp_get_atms -DROP PROCEDURE IF EXISTS obp_get_atms; +-- drop procedure obp_check_customer_number_available +DROP PROCEDURE IF EXISTS obp_check_customer_number_available; GO --- create procedure obp_get_atms -CREATE PROCEDURE obp_get_atms +-- create procedure obp_check_customer_number_available +CREATE PROCEDURE obp_check_customer_number_available @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -13618,10 +16484,7 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "limit":100, - "offset":100, - "fromDate":"", - "toDate":"" + "customerNumber":"5987953" }' */ @@ -13651,93 +16514,7 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "atmId":{ - "value":"atme-9a0f-4bfa-b30b-9003aa467f51" - }, - "bankId":{ - "value":"gh.29.uk" - }, - "name":"ACCOUNT_MANAGEMENT_FEE", - "address":{ - "line1":"", - "line2":"", - "line3":"", - "city":"", - "county":"", - "state":"", - "postCode":"789", - "countryCode":"1254" - }, - "location":{ - "latitude":38.8951, - "longitude":-77.0364, - "date":"2020-01-27T00:00:00Z", - "user":{ - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "provider":"ETHEREUM", - "username":"felixsmith" - } - }, - "meta":{ - "license":{ - "id":"ODbL-1.0", - "name":"Open Database License" - } - }, - "OpeningTimeOnMonday":"string", - "ClosingTimeOnMonday":"string", - "OpeningTimeOnTuesday":"string", - "ClosingTimeOnTuesday":"string", - "OpeningTimeOnWednesday":"string", - "ClosingTimeOnWednesday":"string", - "OpeningTimeOnThursday":"string", - "ClosingTimeOnThursday":"string", - "OpeningTimeOnFriday":"string", - "ClosingTimeOnFriday":"string", - "OpeningTimeOnSaturday":"string", - "ClosingTimeOnSaturday":"string", - "OpeningTimeOnSunday":"string", - "ClosingTimeOnSunday":"string", - "isAccessible":false, - "locatedAt":"", - "moreInfo":"More information about this fee", - "hasDepositCapability":false, - "supportedLanguages":[ - "\"es\"", - "\"fr\"", - "\"de\"" - ], - "services":[ - "" - ], - "accessibilityFeatures":[ - "\"ATAC\"", - "\"ATAD\"" - ], - "supportedCurrencies":[ - "\"EUR\"", - "\"MXN\"", - "\"USD\"" - ], - "notes":[ - "" - ], - "locationCategories":[ - "" - ], - "minimumWithdrawal":"string", - "branchIdentification":"string", - "siteIdentification":"", - "siteName":"string", - "cashWithdrawalNationalFee":"", - "cashWithdrawalInternationalFee":"", - "balanceInquiryFee":"", - "atmType":"", - "phone":"" - } - ] + "data":true }' ); GO @@ -13746,11 +16523,11 @@ GO --- drop procedure obp_create_transaction_after_challengev300 -DROP PROCEDURE IF EXISTS obp_create_transaction_after_challengev300; +-- drop procedure obp_create_customer +DROP PROCEDURE IF EXISTS obp_create_customer; GO --- create procedure obp_create_transaction_after_challengev300 -CREATE PROCEDURE obp_create_transaction_after_challengev300 +-- create procedure obp_create_customer +CREATE PROCEDURE obp_create_customer @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -13873,62 +16650,38 @@ this is example of parameter @outbound_json ] } }, - "initiator":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + "bankId":{ + "value":"gh.29.uk" + }, + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "kycStatus":false, + "lastOkDate":"2019-09-12T00:00:00Z", + "creditRating":{ + "rating":"", + "source":"" }, - "fromAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", + "creditLimit":{ "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "transReqId":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" + "amount":"1000.00" }, - "transactionRequestType":{ - "value":"SEPA" - } + "title":"Dr.", + "branchId":"DERBY6", + "nameSuffix":"Sr" }' */ @@ -13959,37 +16712,38 @@ this is example of parameter @outbound_json ] }, "data":{ - "id":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" - }, - "type":"SEPA", - "from":{ - "bank_id":"gh.29.uk", - "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" }, - "body":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" }, - "transaction_ids":"string", - "status":"", - "start_date":"2019-09-07T00:00:00Z", - "end_date":"2019-09-08T00:00:00Z", - "challenge":{ - "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", - "allowed_attempts":123, - "challenge_type":"string" + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" }, - "charge":{ - "summary":"", - "value":{ - "currency":"EUR", - "amount":"10.12" - } - } + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" } }' ); @@ -13999,11 +16753,11 @@ GO --- drop procedure obp_make_paymentv300 -DROP PROCEDURE IF EXISTS obp_make_paymentv300; +-- drop procedure obp_update_customer_sca_data +DROP PROCEDURE IF EXISTS obp_update_customer_sca_data; GO --- create procedure obp_make_paymentv300 -CREATE PROCEDURE obp_make_paymentv300 +-- create procedure obp_update_customer_sca_data +CREATE PROCEDURE obp_update_customer_sca_data @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -14126,128 +16880,10 @@ this is example of parameter @outbound_json ] } }, - "initiator":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" - }, - "fromAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "toAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "toCounterparty":{ - "createdByUserId":"", - "name":"John Smith Ltd.", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "currency":"EUR", - "thisBankId":"", - "thisAccountId":"", - "thisViewId":"", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "otherAccountRoutingScheme":"OBP", - "otherAccountRoutingAddress":"36f8a9e6-c2b1-407a-8bd0-421b7119307e", - "otherAccountSecondaryRoutingScheme":"IBAN", - "otherAccountSecondaryRoutingAddress":"DE89370400440532013000", - "otherBankRoutingScheme":"OBP", - "otherBankRoutingAddress":"gh.29.uk", - "otherBranchRoutingScheme":"OBP", - "otherBranchRoutingAddress":"12f8a9e6-c2b1-407a-8bd0-421b7119307e", - "isBeneficiary":false, - "bespoke":[ - { - "key":"CustomerNumber", - "value":"5987953" - } - ] - }, - "transactionRequestCommonBody":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "transactionRequestType":{ - "value":"SEPA" - }, - "chargePolicy":"SHARED" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "customerNumber":"5987953" }' */ @@ -14278,7 +16914,38 @@ this is example of parameter @outbound_json ] }, "data":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" + }, + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" + }, + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" } }' ); @@ -14288,11 +16955,11 @@ GO --- drop procedure obp_create_transaction_requestv300 -DROP PROCEDURE IF EXISTS obp_create_transaction_requestv300; +-- drop procedure obp_update_customer_credit_data +DROP PROCEDURE IF EXISTS obp_update_customer_credit_data; GO --- create procedure obp_create_transaction_requestv300 -CREATE PROCEDURE obp_create_transaction_requestv300 +-- create procedure obp_update_customer_credit_data +CREATE PROCEDURE obp_update_customer_credit_data @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -14415,132 +17082,13 @@ this is example of parameter @outbound_json ] } }, - "initiator":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" - }, - "viewId":{ - "value":"owner" - }, - "fromAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "toAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "toCounterparty":{ - "createdByUserId":"", - "name":"John Smith Ltd.", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "creditRating":"", + "creditSource":"string", + "creditLimit":{ "currency":"EUR", - "thisBankId":"", - "thisAccountId":"", - "thisViewId":"", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "otherAccountRoutingScheme":"OBP", - "otherAccountRoutingAddress":"36f8a9e6-c2b1-407a-8bd0-421b7119307e", - "otherAccountSecondaryRoutingScheme":"IBAN", - "otherAccountSecondaryRoutingAddress":"DE89370400440532013000", - "otherBankRoutingScheme":"OBP", - "otherBankRoutingAddress":"gh.29.uk", - "otherBranchRoutingScheme":"OBP", - "otherBranchRoutingAddress":"12f8a9e6-c2b1-407a-8bd0-421b7119307e", - "isBeneficiary":false, - "bespoke":[ - { - "key":"CustomerNumber", - "value":"5987953" - } - ] - }, - "transactionRequestType":{ - "value":"SEPA" - }, - "transactionRequestCommonBody":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "detailsPlain":"string", - "chargePolicy":"SHARED" + "amount":"1000.00" + } }' */ @@ -14571,37 +17119,38 @@ this is example of parameter @outbound_json ] }, "data":{ - "id":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" - }, - "type":"SEPA", - "from":{ - "bank_id":"gh.29.uk", - "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" }, - "body":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" }, - "transaction_ids":"string", - "status":"", - "start_date":"2019-09-07T00:00:00Z", - "end_date":"2019-09-08T00:00:00Z", - "challenge":{ - "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", - "allowed_attempts":123, - "challenge_type":"string" + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" }, - "charge":{ - "summary":"", - "value":{ - "currency":"EUR", - "amount":"10.12" - } - } + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" } }' ); @@ -14611,11 +17160,11 @@ GO --- drop procedure obp_make_payment_v400 -DROP PROCEDURE IF EXISTS obp_make_payment_v400; +-- drop procedure obp_update_customer_general_data +DROP PROCEDURE IF EXISTS obp_update_customer_general_data; GO --- create procedure obp_make_payment_v400 -CREATE PROCEDURE obp_make_payment_v400 +-- create procedure obp_update_customer_general_data +CREATE PROCEDURE obp_update_customer_general_data @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -14737,49 +17286,21 @@ this is example of parameter @outbound_json } ] } - }, - "transactionRequest":{ - "id":{ - "value":"8138a7e4-6d02-40e3-a129-0b2bf89de9f1" - }, - "type":"SEPA", - "from":{ - "bank_id":"gh.29.uk", - "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "body":{ - "value":{ - "currency":"EUR", - "amount":"10.12" - }, - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - }, - "transaction_ids":"string", - "status":"", - "start_date":"2019-09-07T00:00:00Z", - "end_date":"2019-09-08T00:00:00Z", - "challenge":{ - "id":"123chaneid13-6d02-40e3-a129-0b2bf89de9f0", - "allowed_attempts":123, - "challenge_type":"string" - }, - "charge":{ - "summary":"", - "value":{ - "currency":"EUR", - "amount":"10.12" - } - } - }, - "reasons":[ - { - "code":"125", - "documentNumber":"", - "amount":"10.12", - "currency":"EUR", - "description":"This an optional field. Maximum length is 2000. It can be any characters here." - } - ] + }, + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "legalName":"Eveline Tripman", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "title":"Dr.", + "branchId":"DERBY6", + "nameSuffix":"Sr" }' */ @@ -14810,7 +17331,38 @@ this is example of parameter @outbound_json ] }, "data":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" + }, + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" + }, + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" } }' ); @@ -14820,11 +17372,11 @@ GO --- drop procedure obp_cancel_payment_v400 -DROP PROCEDURE IF EXISTS obp_cancel_payment_v400; +-- drop procedure obp_get_customers_by_user_id +DROP PROCEDURE IF EXISTS obp_get_customers_by_user_id; GO --- create procedure obp_cancel_payment_v400 -CREATE PROCEDURE obp_cancel_payment_v400 +-- create procedure obp_get_customers_by_user_id +CREATE PROCEDURE obp_get_customers_by_user_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -14947,9 +17499,7 @@ this is example of parameter @outbound_json ] } }, - "transactionId":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - } + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1" }' */ @@ -14979,10 +17529,42 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "canBeCancelled":true, - "startSca":true - } + "data":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" + }, + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" + }, + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" + } + ] }' ); GO @@ -14991,11 +17573,11 @@ GO --- drop procedure obp_get_transaction_request_type_charges -DROP PROCEDURE IF EXISTS obp_get_transaction_request_type_charges; +-- drop procedure obp_get_customer_by_customer_id +DROP PROCEDURE IF EXISTS obp_get_customer_by_customer_id; GO --- create procedure obp_get_transaction_request_type_charges -CREATE PROCEDURE obp_get_transaction_request_type_charges +-- create procedure obp_get_customer_by_customer_id +CREATE PROCEDURE obp_get_customer_by_customer_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -15118,20 +17700,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "viewId":{ - "value":"owner" - }, - "transactionRequestTypes":[ - { - "value":"" - } - ] + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -15161,15 +17730,40 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "transactionRequestTypeId":"string", - "bankId":"gh.29.uk", - "chargeCurrency":"string", - "chargeAmount":"string", - "chargeSummary":"string" - } - ] + "data":{ + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" + }, + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" + }, + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" + } }' ); GO @@ -15178,11 +17772,11 @@ GO --- drop procedure obp_create_counterparty -DROP PROCEDURE IF EXISTS obp_create_counterparty; +-- drop procedure obp_get_customer_by_customer_number +DROP PROCEDURE IF EXISTS obp_get_customer_by_customer_number; GO --- create procedure obp_create_counterparty -CREATE PROCEDURE obp_create_counterparty +-- create procedure obp_get_customer_by_customer_number +CREATE PROCEDURE obp_get_customer_by_customer_number @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -15305,28 +17899,10 @@ this is example of parameter @outbound_json ] } }, - "name":"ACCOUNT_MANAGEMENT_FEE", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "currency":"EUR", - "createdByUserId":"", - "thisBankId":"", - "thisAccountId":"", - "thisViewId":"", - "otherAccountRoutingScheme":"", - "otherAccountRoutingAddress":"", - "otherAccountSecondaryRoutingScheme":"", - "otherAccountSecondaryRoutingAddress":"", - "otherBankRoutingScheme":"", - "otherBankRoutingAddress":"", - "otherBranchRoutingScheme":"", - "otherBranchRoutingAddress":"", - "isBeneficiary":false, - "bespoke":[ - { - "key":"CustomerNumber", - "value":"5987953" - } - ] + "customerNumber":"5987953", + "bankId":{ + "value":"gh.29.uk" + } }' */ @@ -15357,29 +17933,38 @@ this is example of parameter @outbound_json ] }, "data":{ - "createdByUserId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "currency":"EUR", - "thisBankId":"", - "thisAccountId":"", - "thisViewId":"", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "otherAccountRoutingScheme":"", - "otherAccountRoutingAddress":"", - "otherAccountSecondaryRoutingScheme":"", - "otherAccountSecondaryRoutingAddress":"", - "otherBankRoutingScheme":"", - "otherBankRoutingAddress":"", - "otherBranchRoutingScheme":"", - "otherBranchRoutingAddress":"", - "isBeneficiary":false, - "bespoke":[ - { - "key":"CustomerNumber", - "value":"5987953" - } - ] + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" + }, + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" + }, + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" } }' ); @@ -15389,11 +17974,11 @@ GO --- drop procedure obp_check_customer_number_available -DROP PROCEDURE IF EXISTS obp_check_customer_number_available; +-- drop procedure obp_get_customer_address +DROP PROCEDURE IF EXISTS obp_get_customer_address; GO --- create procedure obp_check_customer_number_available -CREATE PROCEDURE obp_check_customer_number_available +-- create procedure obp_get_customer_address +CREATE PROCEDURE obp_get_customer_address @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -15516,10 +18101,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "customerNumber":"5987953" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -15549,7 +18131,23 @@ this is example of parameter @outbound_json } ] }, - "data":true + "data":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerAddressId":"", + "line1":"", + "line2":"", + "line3":"", + "city":"", + "county":"", + "state":"", + "postcode":"", + "countryCode":"1254", + "status":"", + "tags":"Create-My-User", + "insertDate":"2020-01-27T00:00:00Z" + } + ] }' ); GO @@ -15558,11 +18156,11 @@ GO --- drop procedure obp_create_customer -DROP PROCEDURE IF EXISTS obp_create_customer; +-- drop procedure obp_create_customer_address +DROP PROCEDURE IF EXISTS obp_create_customer_address; GO --- create procedure obp_create_customer -CREATE PROCEDURE obp_create_customer +-- create procedure obp_create_customer_address +CREATE PROCEDURE obp_create_customer_address @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -15685,38 +18283,17 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "kycStatus":false, - "lastOkDate":"2019-09-12T00:00:00Z", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "title":"Dr.", - "branchId":"DERBY6", - "nameSuffix":"Sr" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "line1":"", + "line2":"", + "line3":"", + "city":"", + "county":"", + "state":"", + "postcode":"", + "countryCode":"1254", + "tags":"Create-My-User", + "status":"" }' */ @@ -15748,37 +18325,18 @@ this is example of parameter @outbound_json }, "data":{ "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" + "customerAddressId":"", + "line1":"", + "line2":"", + "line3":"", + "city":"", + "county":"", + "state":"", + "postcode":"", + "countryCode":"1254", + "status":"", + "tags":"Create-My-User", + "insertDate":"2020-01-27T00:00:00Z" } }' ); @@ -15788,11 +18346,11 @@ GO --- drop procedure obp_update_customer_sca_data -DROP PROCEDURE IF EXISTS obp_update_customer_sca_data; +-- drop procedure obp_update_customer_address +DROP PROCEDURE IF EXISTS obp_update_customer_address; GO --- create procedure obp_update_customer_sca_data -CREATE PROCEDURE obp_update_customer_sca_data +-- create procedure obp_update_customer_address +CREATE PROCEDURE obp_update_customer_address @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -15915,10 +18473,17 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "customerNumber":"5987953" + "customerAddressId":"", + "line1":"", + "line2":"", + "line3":"", + "city":"", + "county":"", + "state":"", + "postcode":"", + "countryCode":"1254", + "tags":"Create-My-User", + "status":"" }' */ @@ -15950,37 +18515,18 @@ this is example of parameter @outbound_json }, "data":{ "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" + "customerAddressId":"", + "line1":"", + "line2":"", + "line3":"", + "city":"", + "county":"", + "state":"", + "postcode":"", + "countryCode":"1254", + "status":"", + "tags":"Create-My-User", + "insertDate":"2020-01-27T00:00:00Z" } }' ); @@ -15990,11 +18536,11 @@ GO --- drop procedure obp_update_customer_credit_data -DROP PROCEDURE IF EXISTS obp_update_customer_credit_data; +-- drop procedure obp_delete_customer_address +DROP PROCEDURE IF EXISTS obp_delete_customer_address; GO --- create procedure obp_update_customer_credit_data -CREATE PROCEDURE obp_update_customer_credit_data +-- create procedure obp_delete_customer_address +CREATE PROCEDURE obp_delete_customer_address @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -16117,13 +18663,7 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "creditRating":"", - "creditSource":"string", - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - } + "customerAddressId":"" }' */ @@ -16153,40 +18693,7 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" - } + "data":true }' ); GO @@ -16195,11 +18702,11 @@ GO --- drop procedure obp_update_customer_general_data -DROP PROCEDURE IF EXISTS obp_update_customer_general_data; +-- drop procedure obp_create_tax_residence +DROP PROCEDURE IF EXISTS obp_create_tax_residence; GO --- create procedure obp_update_customer_general_data -CREATE PROCEDURE obp_update_customer_general_data +-- create procedure obp_create_tax_residence +CREATE PROCEDURE obp_create_tax_residence @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -16323,19 +18830,8 @@ this is example of parameter @outbound_json } }, "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "legalName":"Eveline Tripman", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "title":"Dr.", - "branchId":"DERBY6", - "nameSuffix":"Sr" + "domain":"", + "taxNumber":"456" }' */ @@ -16367,37 +18863,9 @@ this is example of parameter @outbound_json }, "data":{ "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" + "taxResidenceId":"", + "domain":"", + "taxNumber":"456" } }' ); @@ -16407,11 +18875,11 @@ GO --- drop procedure obp_get_customers_by_user_id -DROP PROCEDURE IF EXISTS obp_get_customers_by_user_id; +-- drop procedure obp_get_tax_residence +DROP PROCEDURE IF EXISTS obp_get_tax_residence; GO --- create procedure obp_get_customers_by_user_id -CREATE PROCEDURE obp_get_customers_by_user_id +-- create procedure obp_get_tax_residence +CREATE PROCEDURE obp_get_tax_residence @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -16534,7 +19002,7 @@ this is example of parameter @outbound_json ] } }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -16567,37 +19035,9 @@ this is example of parameter @outbound_json "data":[ { "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" + "taxResidenceId":"", + "domain":"", + "taxNumber":"456" } ] }' @@ -16608,11 +19048,11 @@ GO --- drop procedure obp_get_customer_by_customer_id -DROP PROCEDURE IF EXISTS obp_get_customer_by_customer_id; +-- drop procedure obp_delete_tax_residence +DROP PROCEDURE IF EXISTS obp_delete_tax_residence; GO --- create procedure obp_get_customer_by_customer_id -CREATE PROCEDURE obp_get_customer_by_customer_id +-- create procedure obp_delete_tax_residence +CREATE PROCEDURE obp_delete_tax_residence @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -16735,7 +19175,7 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "taxResourceId":"string" }' */ @@ -16765,40 +19205,7 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" - } + "data":true }' ); GO @@ -16807,11 +19214,11 @@ GO --- drop procedure obp_get_customer_by_customer_number -DROP PROCEDURE IF EXISTS obp_get_customer_by_customer_number; +-- drop procedure obp_get_customers +DROP PROCEDURE IF EXISTS obp_get_customers; GO --- create procedure obp_get_customer_by_customer_number -CREATE PROCEDURE obp_get_customer_by_customer_number +-- create procedure obp_get_customers +CREATE PROCEDURE obp_get_customers @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -16934,10 +19341,13 @@ this is example of parameter @outbound_json ] } }, - "customerNumber":"5987953", "bankId":{ "value":"gh.29.uk" - } + }, + "limit":100, + "offset":100, + "fromDate":"1100-01-01T01:01:01.000Z", + "toDate":"1100-01-01T01:01:01.000Z" }' */ @@ -16967,40 +19377,42 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" - } + "data":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" + }, + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" + }, + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" + } + ] }' ); GO @@ -17009,11 +19421,11 @@ GO --- drop procedure obp_get_customer_address -DROP PROCEDURE IF EXISTS obp_get_customer_address; +-- drop procedure obp_get_customers_by_customer_phone_number +DROP PROCEDURE IF EXISTS obp_get_customers_by_customer_phone_number; GO --- create procedure obp_get_customer_address -CREATE PROCEDURE obp_get_customer_address +-- create procedure obp_get_customers_by_customer_phone_number +CREATE PROCEDURE obp_get_customers_by_customer_phone_number @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -17136,7 +19548,10 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "bankId":{ + "value":"gh.29.uk" + }, + "phoneNumber":"" }' */ @@ -17169,18 +19584,37 @@ this is example of parameter @outbound_json "data":[ { "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "customerAddressId":"", - "line1":"", - "line2":"", - "line3":"", - "city":"", - "county":"", - "state":"", - "postcode":"", - "countryCode":"1254", - "status":"", - "tags":"Create-My-User", - "insertDate":"2020-01-27T00:00:00Z" + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" + }, + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" + }, + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" } ] }' @@ -17191,11 +19625,11 @@ GO --- drop procedure obp_create_customer_address -DROP PROCEDURE IF EXISTS obp_create_customer_address; +-- drop procedure obp_get_checkbook_orders +DROP PROCEDURE IF EXISTS obp_get_checkbook_orders; GO --- create procedure obp_create_customer_address -CREATE PROCEDURE obp_create_customer_address +-- create procedure obp_get_checkbook_orders +CREATE PROCEDURE obp_get_checkbook_orders @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -17318,17 +19752,8 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "line1":"", - "line2":"", - "line3":"", - "city":"", - "county":"", - "state":"", - "postcode":"", - "countryCode":"1254", - "tags":"Create-My-User", - "status":"" + "bankId":"gh.29.uk", + "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }' */ @@ -17359,19 +19784,36 @@ this is example of parameter @outbound_json ] }, "data":{ - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "customerAddressId":"", - "line1":"", - "line2":"", - "line3":"", - "city":"", - "county":"", - "state":"", - "postcode":"", - "countryCode":"1254", - "status":"", - "tags":"Create-My-User", - "insertDate":"2020-01-27T00:00:00Z" + "account":{ + "bank_id":"gh.29.uk", + "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", + "account_type":"string", + "account_routings":[ + { + "scheme":"OBP", + "address":"" + } + ], + "branch_routings":[ + { + "scheme":"OBP", + "address":"" + } + ] + }, + "orders":[ + { + "order":{ + "order_id":"string", + "order_date":"string", + "number_of_checkbooks":"string", + "distribution_channel":"string", + "status":"", + "first_check_number":"string", + "shipping_code":"string" + } + } + ] } }' ); @@ -17381,11 +19823,11 @@ GO --- drop procedure obp_update_customer_address -DROP PROCEDURE IF EXISTS obp_update_customer_address; +-- drop procedure obp_get_status_of_credit_card_order +DROP PROCEDURE IF EXISTS obp_get_status_of_credit_card_order; GO --- create procedure obp_update_customer_address -CREATE PROCEDURE obp_update_customer_address +-- create procedure obp_get_status_of_credit_card_order +CREATE PROCEDURE obp_get_status_of_credit_card_order @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -17508,17 +19950,8 @@ this is example of parameter @outbound_json ] } }, - "customerAddressId":"", - "line1":"", - "line2":"", - "line3":"", - "city":"", - "county":"", - "state":"", - "postcode":"", - "countryCode":"1254", - "tags":"Create-My-User", - "status":"" + "bankId":"gh.29.uk", + "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }' */ @@ -17548,21 +19981,13 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "customerAddressId":"", - "line1":"", - "line2":"", - "line3":"", - "city":"", - "county":"", - "state":"", - "postcode":"", - "countryCode":"1254", - "status":"", - "tags":"Create-My-User", - "insertDate":"2020-01-27T00:00:00Z" - } + "data":[ + { + "card_type":"string", + "card_description":"string", + "use_type":"string" + } + ] }' ); GO @@ -17571,11 +19996,11 @@ GO --- drop procedure obp_delete_customer_address -DROP PROCEDURE IF EXISTS obp_delete_customer_address; +-- drop procedure obp_create_user_auth_context +DROP PROCEDURE IF EXISTS obp_create_user_auth_context; GO --- create procedure obp_delete_customer_address -CREATE PROCEDURE obp_delete_customer_address +-- create procedure obp_create_user_auth_context +CREATE PROCEDURE obp_create_user_auth_context @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -17698,7 +20123,9 @@ this is example of parameter @outbound_json ] } }, - "customerAddressId":"" + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "key":"CustomerNumber", + "value":"5987953" }' */ @@ -17728,7 +20155,14 @@ this is example of parameter @outbound_json } ] }, - "data":true + "data":{ + "userAuthContextId":"", + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "key":"CustomerNumber", + "value":"5987953", + "timeStamp":"1100-01-01T00:00:00Z", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + } }' ); GO @@ -17737,11 +20171,11 @@ GO --- drop procedure obp_create_tax_residence -DROP PROCEDURE IF EXISTS obp_create_tax_residence; +-- drop procedure obp_create_user_auth_context_update +DROP PROCEDURE IF EXISTS obp_create_user_auth_context_update; GO --- create procedure obp_create_tax_residence -CREATE PROCEDURE obp_create_tax_residence +-- create procedure obp_create_user_auth_context_update +CREATE PROCEDURE obp_create_user_auth_context_update @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -17864,9 +20298,9 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "domain":"", - "taxNumber":"456" + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "key":"CustomerNumber", + "value":"5987953" }' */ @@ -17897,10 +20331,13 @@ this is example of parameter @outbound_json ] }, "data":{ - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "taxResidenceId":"", - "domain":"", - "taxNumber":"456" + "userAuthContextUpdateId":"", + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "key":"CustomerNumber", + "value":"5987953", + "challenge":"", + "status":"", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" } }' ); @@ -17910,11 +20347,11 @@ GO --- drop procedure obp_get_tax_residence -DROP PROCEDURE IF EXISTS obp_get_tax_residence; +-- drop procedure obp_delete_user_auth_contexts +DROP PROCEDURE IF EXISTS obp_delete_user_auth_contexts; GO --- create procedure obp_get_tax_residence -CREATE PROCEDURE obp_get_tax_residence +-- create procedure obp_delete_user_auth_contexts +CREATE PROCEDURE obp_delete_user_auth_contexts @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -18037,7 +20474,7 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1" }' */ @@ -18067,14 +20504,7 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "taxResidenceId":"", - "domain":"", - "taxNumber":"456" - } - ] + "data":true }' ); GO @@ -18083,11 +20513,11 @@ GO --- drop procedure obp_delete_tax_residence -DROP PROCEDURE IF EXISTS obp_delete_tax_residence; +-- drop procedure obp_delete_user_auth_context_by_id +DROP PROCEDURE IF EXISTS obp_delete_user_auth_context_by_id; GO --- create procedure obp_delete_tax_residence -CREATE PROCEDURE obp_delete_tax_residence +-- create procedure obp_delete_user_auth_context_by_id +CREATE PROCEDURE obp_delete_user_auth_context_by_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -18210,7 +20640,7 @@ this is example of parameter @outbound_json ] } }, - "taxResourceId":"string" + "userAuthContextId":"" }' */ @@ -18249,11 +20679,11 @@ GO --- drop procedure obp_get_customers -DROP PROCEDURE IF EXISTS obp_get_customers; +-- drop procedure obp_get_user_auth_contexts +DROP PROCEDURE IF EXISTS obp_get_user_auth_contexts; GO --- create procedure obp_get_customers -CREATE PROCEDURE obp_get_customers +-- create procedure obp_get_user_auth_contexts +CREATE PROCEDURE obp_get_user_auth_contexts @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -18376,13 +20806,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "limit":100, - "offset":100, - "fromDate":"", - "toDate":"" + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1" }' */ @@ -18392,60 +20816,34 @@ this is example of parameter @outbound_json N'{ "inboundAdapterCallContext":{ "correlationId":"1flssoftxq0cr1nssr68u0mioj", - "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", - "generalContext":[ - { - "key":"CustomerNumber", - "value":"5987953" - } - ] - }, - "status":{ - "errorCode":"", - "backendMessages":[ - { - "source":"", - "status":"", - "errorCode":"", - "text":"", - "duration":"5.123" - } - ] - }, - "data":[ - { - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "generalContext":[ + { + "key":"CustomerNumber", + "value":"5987953" + } + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":[ + { + "userAuthContextId":"", + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "key":"CustomerNumber", + "value":"5987953", + "timeStamp":"1100-01-01T00:00:00Z", + "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" } ] }' @@ -18456,11 +20854,11 @@ GO --- drop procedure obp_get_customers_by_customer_phone_number -DROP PROCEDURE IF EXISTS obp_get_customers_by_customer_phone_number; +-- drop procedure obp_create_or_update_product_attribute +DROP PROCEDURE IF EXISTS obp_create_or_update_product_attribute; GO --- create procedure obp_get_customers_by_customer_phone_number -CREATE PROCEDURE obp_get_customers_by_customer_phone_number +-- create procedure obp_create_or_update_product_attribute +CREATE PROCEDURE obp_create_or_update_product_attribute @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -18586,7 +20984,14 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "phoneNumber":"" + "productCode":{ + "value":"1234BW" + }, + "productAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "productAttributeType":"STRING", + "value":"5987953", + "isActive":false }' */ @@ -18616,42 +21021,19 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" - } - ] + "data":{ + "bankId":{ + "value":"gh.29.uk" + }, + "productCode":{ + "value":"1234BW" + }, + "productAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "attributeType":"STRING", + "value":"5987953", + "isActive":false + } }' ); GO @@ -18660,11 +21042,11 @@ GO --- drop procedure obp_get_checkbook_orders -DROP PROCEDURE IF EXISTS obp_get_checkbook_orders; +-- drop procedure obp_get_bank_attributes_by_bank +DROP PROCEDURE IF EXISTS obp_get_bank_attributes_by_bank; GO --- create procedure obp_get_checkbook_orders -CREATE PROCEDURE obp_get_checkbook_orders +-- create procedure obp_get_bank_attributes_by_bank +CREATE PROCEDURE obp_get_bank_attributes_by_bank @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -18787,8 +21169,9 @@ this is example of parameter @outbound_json ] } }, - "bankId":"gh.29.uk", - "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "bankId":{ + "value":"gh.29.uk" + } }' */ @@ -18818,38 +21201,18 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "account":{ - "bank_id":"gh.29.uk", - "account_id":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", - "account_type":"string", - "account_routings":[ - { - "scheme":"scheme value", - "address":"" - } - ], - "branch_routings":[ - { - "scheme":"scheme value", - "address":"" - } - ] - }, - "orders":[ - { - "order":{ - "order_id":"string", - "order_date":"string", - "number_of_checkbooks":"string", - "distribution_channel":"string", - "status":"", - "first_check_number":"string", - "shipping_code":"string" - } - } - ] - } + "data":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "bankAttributeId":"string", + "attributeType":"STRING", + "name":"ACCOUNT_MANAGEMENT_FEE", + "value":"5987953", + "isActive":false + } + ] }' ); GO @@ -18858,11 +21221,11 @@ GO --- drop procedure obp_get_status_of_credit_card_order -DROP PROCEDURE IF EXISTS obp_get_status_of_credit_card_order; +-- drop procedure obp_get_product_attribute_by_id +DROP PROCEDURE IF EXISTS obp_get_product_attribute_by_id; GO --- create procedure obp_get_status_of_credit_card_order -CREATE PROCEDURE obp_get_status_of_credit_card_order +-- create procedure obp_get_product_attribute_by_id +CREATE PROCEDURE obp_get_product_attribute_by_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -18985,8 +21348,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":"gh.29.uk", - "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + "productAttributeId":"" }' */ @@ -19016,13 +21378,19 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "card_type":"string", - "card_description":"string", - "use_type":"string" - } - ] + "data":{ + "bankId":{ + "value":"gh.29.uk" + }, + "productCode":{ + "value":"1234BW" + }, + "productAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "attributeType":"STRING", + "value":"5987953", + "isActive":false + } }' ); GO @@ -19031,11 +21399,11 @@ GO --- drop procedure obp_create_user_auth_context -DROP PROCEDURE IF EXISTS obp_create_user_auth_context; +-- drop procedure obp_get_product_attributes_by_bank_and_code +DROP PROCEDURE IF EXISTS obp_get_product_attributes_by_bank_and_code; GO --- create procedure obp_create_user_auth_context -CREATE PROCEDURE obp_create_user_auth_context +-- create procedure obp_get_product_attributes_by_bank_and_code +CREATE PROCEDURE obp_get_product_attributes_by_bank_and_code @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -19158,9 +21526,12 @@ this is example of parameter @outbound_json ] } }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "key":"CustomerNumber", - "value":"5987953" + "bank":{ + "value":"" + }, + "productCode":{ + "value":"1234BW" + } }' */ @@ -19190,14 +21561,21 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "userAuthContextId":"", - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "key":"CustomerNumber", - "value":"5987953", - "timeStamp":"1100-01-01T00:00:00Z", - "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" - } + "data":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "productCode":{ + "value":"1234BW" + }, + "productAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "attributeType":"STRING", + "value":"5987953", + "isActive":false + } + ] }' ); GO @@ -19206,11 +21584,11 @@ GO --- drop procedure obp_create_user_auth_context_update -DROP PROCEDURE IF EXISTS obp_create_user_auth_context_update; +-- drop procedure obp_delete_product_attribute +DROP PROCEDURE IF EXISTS obp_delete_product_attribute; GO --- create procedure obp_create_user_auth_context_update -CREATE PROCEDURE obp_create_user_auth_context_update +-- create procedure obp_delete_product_attribute +CREATE PROCEDURE obp_delete_product_attribute @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -19333,9 +21711,7 @@ this is example of parameter @outbound_json ] } }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "key":"CustomerNumber", - "value":"5987953" + "productAttributeId":"" }' */ @@ -19365,15 +21741,7 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "userAuthContextUpdateId":"", - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "key":"CustomerNumber", - "value":"5987953", - "challenge":"", - "status":"", - "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" - } + "data":true }' ); GO @@ -19382,11 +21750,11 @@ GO --- drop procedure obp_delete_user_auth_contexts -DROP PROCEDURE IF EXISTS obp_delete_user_auth_contexts; +-- drop procedure obp_get_account_attribute_by_id +DROP PROCEDURE IF EXISTS obp_get_account_attribute_by_id; GO --- create procedure obp_delete_user_auth_contexts -CREATE PROCEDURE obp_delete_user_auth_contexts +-- create procedure obp_get_account_attribute_by_id +CREATE PROCEDURE obp_get_account_attribute_by_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -19509,7 +21877,7 @@ this is example of parameter @outbound_json ] } }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1" + "accountAttributeId":"" }' */ @@ -19539,7 +21907,22 @@ this is example of parameter @outbound_json } ] }, - "data":true + "data":{ + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "productCode":{ + "value":"1234BW" + }, + "accountAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "attributeType":"STRING", + "value":"5987953", + "productInstanceCode":"string" + } }' ); GO @@ -19548,11 +21931,11 @@ GO --- drop procedure obp_delete_user_auth_context_by_id -DROP PROCEDURE IF EXISTS obp_delete_user_auth_context_by_id; +-- drop procedure obp_get_transaction_attribute_by_id +DROP PROCEDURE IF EXISTS obp_get_transaction_attribute_by_id; GO --- create procedure obp_delete_user_auth_context_by_id -CREATE PROCEDURE obp_delete_user_auth_context_by_id +-- create procedure obp_get_transaction_attribute_by_id +CREATE PROCEDURE obp_get_transaction_attribute_by_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -19675,7 +22058,7 @@ this is example of parameter @outbound_json ] } }, - "userAuthContextId":"" + "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -19705,7 +22088,18 @@ this is example of parameter @outbound_json } ] }, - "data":true + "data":{ + "bankId":{ + "value":"gh.29.uk" + }, + "transactionId":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + }, + "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "attributeType":"STRING", + "name":"HOUSE_RENT", + "value":"123456789" + } }' ); GO @@ -19714,11 +22108,11 @@ GO --- drop procedure obp_get_user_auth_contexts -DROP PROCEDURE IF EXISTS obp_get_user_auth_contexts; +-- drop procedure obp_create_or_update_account_attribute +DROP PROCEDURE IF EXISTS obp_create_or_update_account_attribute; GO --- create procedure obp_get_user_auth_contexts -CREATE PROCEDURE obp_get_user_auth_contexts +-- create procedure obp_create_or_update_account_attribute +CREATE PROCEDURE obp_create_or_update_account_attribute @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -19841,7 +22235,20 @@ this is example of parameter @outbound_json ] } }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1" + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "productCode":{ + "value":"1234BW" + }, + "productAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "accountAttributeType":"STRING", + "value":"5987953", + "productInstanceCode":"string" }' */ @@ -19871,16 +22278,22 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "userAuthContextId":"", - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "key":"CustomerNumber", - "value":"5987953", - "timeStamp":"1100-01-01T00:00:00Z", - "consumerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" - } - ] + "data":{ + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "productCode":{ + "value":"1234BW" + }, + "accountAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "attributeType":"STRING", + "value":"5987953", + "productInstanceCode":"string" + } }' ); GO @@ -19889,11 +22302,11 @@ GO --- drop procedure obp_create_or_update_product_attribute -DROP PROCEDURE IF EXISTS obp_create_or_update_product_attribute; +-- drop procedure obp_create_or_update_customer_attribute +DROP PROCEDURE IF EXISTS obp_create_or_update_customer_attribute; GO --- create procedure obp_create_or_update_product_attribute -CREATE PROCEDURE obp_create_or_update_product_attribute +-- create procedure obp_create_or_update_customer_attribute +CREATE PROCEDURE obp_create_or_update_customer_attribute @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -20019,14 +22432,13 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "productCode":{ - "value":"1234BW" + "customerId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }, - "productAttributeId":"", + "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", "name":"ACCOUNT_MANAGEMENT_FEE", - "productAttributeType":"STRING", - "value":"5987953", - "isActive":false + "attributeType":"STRING", + "value":"5987953" }' */ @@ -20060,14 +22472,13 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "productCode":{ - "value":"1234BW" + "customerId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }, - "productAttributeId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", + "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", "attributeType":"STRING", - "value":"5987953", - "isActive":false + "name":"SPECIAL_TAX_NUMBER", + "value":"123456789" } }' ); @@ -20077,11 +22488,11 @@ GO --- drop procedure obp_get_product_attribute_by_id -DROP PROCEDURE IF EXISTS obp_get_product_attribute_by_id; +-- drop procedure obp_create_or_update_transaction_attribute +DROP PROCEDURE IF EXISTS obp_create_or_update_transaction_attribute; GO --- create procedure obp_get_product_attribute_by_id -CREATE PROCEDURE obp_get_product_attribute_by_id +-- create procedure obp_create_or_update_transaction_attribute +CREATE PROCEDURE obp_create_or_update_transaction_attribute @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -20204,7 +22615,16 @@ this is example of parameter @outbound_json ] } }, - "productAttributeId":"" + "bankId":{ + "value":"gh.29.uk" + }, + "transactionId":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + }, + "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "name":"ACCOUNT_MANAGEMENT_FEE", + "attributeType":"STRING", + "value":"5987953" }' */ @@ -20238,14 +22658,13 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "productCode":{ - "value":"1234BW" + "transactionId":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" }, - "productAttributeId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", + "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", "attributeType":"STRING", - "value":"5987953", - "isActive":false + "name":"HOUSE_RENT", + "value":"123456789" } }' ); @@ -20255,11 +22674,11 @@ GO --- drop procedure obp_get_product_attributes_by_bank_and_code -DROP PROCEDURE IF EXISTS obp_get_product_attributes_by_bank_and_code; +-- drop procedure obp_create_account_attributes +DROP PROCEDURE IF EXISTS obp_create_account_attributes; GO --- create procedure obp_get_product_attributes_by_bank_and_code -CREATE PROCEDURE obp_get_product_attributes_by_bank_and_code +-- create procedure obp_create_account_attributes +CREATE PROCEDURE obp_create_account_attributes @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -20382,12 +22801,31 @@ this is example of parameter @outbound_json ] } }, - "bank":{ - "value":"" + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" }, "productCode":{ "value":"1234BW" - } + }, + "accountAttributes":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "productCode":{ + "value":"1234BW" + }, + "productAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "attributeType":"STRING", + "value":"5987953", + "isActive":false + } + ], + "productInstanceCode":"string" }' */ @@ -20422,14 +22860,17 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, "productCode":{ "value":"1234BW" }, - "productAttributeId":"", + "accountAttributeId":"", "name":"ACCOUNT_MANAGEMENT_FEE", "attributeType":"STRING", "value":"5987953", - "isActive":false + "productInstanceCode":"string" } ] }' @@ -20440,11 +22881,11 @@ GO --- drop procedure obp_delete_product_attribute -DROP PROCEDURE IF EXISTS obp_delete_product_attribute; +-- drop procedure obp_get_account_attributes_by_account +DROP PROCEDURE IF EXISTS obp_get_account_attributes_by_account; GO --- create procedure obp_delete_product_attribute -CREATE PROCEDURE obp_delete_product_attribute +-- create procedure obp_get_account_attributes_by_account +CREATE PROCEDURE obp_get_account_attributes_by_account @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -20567,7 +23008,12 @@ this is example of parameter @outbound_json ] } }, - "productAttributeId":"" + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + } }' */ @@ -20597,7 +23043,24 @@ this is example of parameter @outbound_json } ] }, - "data":true + "data":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "productCode":{ + "value":"1234BW" + }, + "accountAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "attributeType":"STRING", + "value":"5987953", + "productInstanceCode":"string" + } + ] }' ); GO @@ -20606,11 +23069,11 @@ GO --- drop procedure obp_get_account_attribute_by_id -DROP PROCEDURE IF EXISTS obp_get_account_attribute_by_id; +-- drop procedure obp_get_customer_attributes +DROP PROCEDURE IF EXISTS obp_get_customer_attributes; GO --- create procedure obp_get_account_attribute_by_id -CREATE PROCEDURE obp_get_account_attribute_by_id +-- create procedure obp_get_customer_attributes +CREATE PROCEDURE obp_get_customer_attributes @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -20733,7 +23196,12 @@ this is example of parameter @outbound_json ] } }, - "accountAttributeId":"" + "bankId":{ + "value":"gh.29.uk" + }, + "customerId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + } }' */ @@ -20752,33 +23220,31 @@ this is example of parameter @outbound_json ] }, "status":{ - "errorCode":"", - "backendMessages":[ - { - "source":"", - "status":"", - "errorCode":"", - "text":"", - "duration":"5.123" - } - ] - }, - "data":{ - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "productCode":{ - "value":"1234BW" - }, - "accountAttributeId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "attributeType":"STRING", - "value":"5987953", - "productInstanceCode":"string" - } + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "customerId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + }, + "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "attributeType":"STRING", + "name":"SPECIAL_TAX_NUMBER", + "value":"123456789" + } + ] }' ); GO @@ -20787,11 +23253,11 @@ GO --- drop procedure obp_get_transaction_attribute_by_id -DROP PROCEDURE IF EXISTS obp_get_transaction_attribute_by_id; +-- drop procedure obp_get_customer_ids_by_attribute_name_values +DROP PROCEDURE IF EXISTS obp_get_customer_ids_by_attribute_name_values; GO --- create procedure obp_get_transaction_attribute_by_id -CREATE PROCEDURE obp_get_transaction_attribute_by_id +-- create procedure obp_get_customer_ids_by_attribute_name_values +CREATE PROCEDURE obp_get_customer_ids_by_attribute_name_values @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -20914,7 +23380,15 @@ this is example of parameter @outbound_json ] } }, - "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "bankId":{ + "value":"gh.29.uk" + }, + "nameValues":{ + "some_name":[ + "name1", + "name2" + ] + } }' */ @@ -20944,18 +23418,9 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "bankId":{ - "value":"gh.29.uk" - }, - "transactionId":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - }, - "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "attributeType":"STRING", - "name":"HOUSE_RENT", - "value":"123456789" - } + "data":[ + "" + ] }' ); GO @@ -20964,11 +23429,11 @@ GO --- drop procedure obp_create_or_update_account_attribute -DROP PROCEDURE IF EXISTS obp_create_or_update_account_attribute; +-- drop procedure obp_get_customer_attributes_for_customers +DROP PROCEDURE IF EXISTS obp_get_customer_attributes_for_customers; GO --- create procedure obp_create_or_update_account_attribute -CREATE PROCEDURE obp_create_or_update_account_attribute +-- create procedure obp_get_customer_attributes_for_customers +CREATE PROCEDURE obp_get_customer_attributes_for_customers @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -21091,20 +23556,42 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "productCode":{ - "value":"1234BW" - }, - "productAttributeId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "accountAttributeType":"STRING", - "value":"5987953", - "productInstanceCode":"string" + "customers":[ + { + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"5987953", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"2019-09-08T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"2018-03-09T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "2019-09-08T00:00:00Z", + "2019-01-03T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" + }, + "creditLimit":{ + "currency":"EUR", + "amount":"1000.00" + }, + "kycStatus":false, + "lastOkDate":"2019-09-08T00:00:00Z", + "title":"title of customer", + "branchId":"DERBY6", + "nameSuffix":"Sr" + } + ] }' */ @@ -21134,22 +23621,57 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "productCode":{ - "value":"1234BW" - }, - "accountAttributeId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "attributeType":"STRING", - "value":"5987953", - "productInstanceCode":"string" - } + "data":[ + { + "customer":{ + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "bankId":"gh.29.uk", + "number":"546387432", + "legalName":"Eveline Tripman", + "mobileNumber":"+44 07972 444 876", + "email":"felixsmith@example.com", + "faceImage":{ + "date":"1100-01-01T00:00:00Z", + "url":"http://www.example.com/id-docs/123/image.png" + }, + "dateOfBirth":"1100-01-01T00:00:00Z", + "relationshipStatus":"single", + "dependents":2, + "dobOfDependents":[ + "1100-01-01T00:00:00Z" + ], + "highestEducationAttained":"Master", + "employmentStatus":"worker", + "creditRating":{ + "rating":"", + "source":"" + }, + "creditLimit":{ + "currency":"EUR", + "amount":"50.89" + }, + "kycStatus":false, + "lastOkDate":"1100-01-01T00:00:00Z", + "title":"Dr.", + "branchId":"DERBY6", + "nameSuffix":"Sr" + }, + "attributes":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "customerId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + }, + "customerAttributeId":"some_customer_attributeId_value", + "attributeType":"INTEGER", + "name":"customer_attribute_field", + "value":"example_value" + } + ] + } + ] }' ); GO @@ -21158,11 +23680,11 @@ GO --- drop procedure obp_create_or_update_customer_attribute -DROP PROCEDURE IF EXISTS obp_create_or_update_customer_attribute; +-- drop procedure obp_get_transaction_ids_by_attribute_name_values +DROP PROCEDURE IF EXISTS obp_get_transaction_ids_by_attribute_name_values; GO --- create procedure obp_create_or_update_customer_attribute -CREATE PROCEDURE obp_create_or_update_customer_attribute +-- create procedure obp_get_transaction_ids_by_attribute_name_values +CREATE PROCEDURE obp_get_transaction_ids_by_attribute_name_values @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -21288,13 +23810,12 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "customerId":{ - "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" - }, - "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "name":"ACCOUNT_MANAGEMENT_FEE", - "attributeType":"STRING", - "value":"5987953" + "nameValues":{ + "some_name":[ + "name1", + "name2" + ] + } }' */ @@ -21324,18 +23845,9 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "bankId":{ - "value":"gh.29.uk" - }, - "customerId":{ - "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" - }, - "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "attributeType":"STRING", - "name":"SPECIAL_TAX_NUMBER", - "value":"123456789" - } + "data":[ + "" + ] }' ); GO @@ -21344,11 +23856,11 @@ GO --- drop procedure obp_create_or_update_transaction_attribute -DROP PROCEDURE IF EXISTS obp_create_or_update_transaction_attribute; +-- drop procedure obp_get_transaction_attributes +DROP PROCEDURE IF EXISTS obp_get_transaction_attributes; GO --- create procedure obp_create_or_update_transaction_attribute -CREATE PROCEDURE obp_create_or_update_transaction_attribute +-- create procedure obp_get_transaction_attributes +CREATE PROCEDURE obp_get_transaction_attributes @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -21476,11 +23988,7 @@ this is example of parameter @outbound_json }, "transactionId":{ "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - }, - "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "name":"ACCOUNT_MANAGEMENT_FEE", - "attributeType":"STRING", - "value":"5987953" + } }' */ @@ -21499,29 +24007,31 @@ this is example of parameter @outbound_json ] }, "status":{ - "errorCode":"", - "backendMessages":[ - { - "source":"", - "status":"", - "errorCode":"", - "text":"", - "duration":"5.123" - } - ] - }, - "data":{ - "bankId":{ - "value":"gh.29.uk" - }, - "transactionId":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - }, - "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "attributeType":"STRING", - "name":"HOUSE_RENT", - "value":"123456789" - } + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "transactionId":{ + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + }, + "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "attributeType":"STRING", + "name":"HOUSE_RENT", + "value":"123456789" + } + ] }' ); GO @@ -21530,11 +24040,11 @@ GO --- drop procedure obp_create_account_attributes -DROP PROCEDURE IF EXISTS obp_create_account_attributes; +-- drop procedure obp_get_customer_attribute_by_id +DROP PROCEDURE IF EXISTS obp_get_customer_attribute_by_id; GO --- create procedure obp_create_account_attributes -CREATE PROCEDURE obp_create_account_attributes +-- create procedure obp_get_customer_attribute_by_id +CREATE PROCEDURE obp_get_customer_attribute_by_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -21657,31 +24167,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "productCode":{ - "value":"1234BW" - }, - "accountAttributes":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "productCode":{ - "value":"1234BW" - }, - "productAttributeId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "attributeType":"STRING", - "value":"5987953", - "isActive":false - } - ], - "productInstanceCode":"string" + "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -21711,24 +24197,18 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "productCode":{ - "value":"1234BW" - }, - "accountAttributeId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "attributeType":"STRING", - "value":"5987953", - "productInstanceCode":"string" - } - ] + "data":{ + "bankId":{ + "value":"gh.29.uk" + }, + "customerId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + }, + "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "attributeType":"STRING", + "name":"SPECIAL_TAX_NUMBER", + "value":"123456789" + } }' ); GO @@ -21737,11 +24217,11 @@ GO --- drop procedure obp_get_account_attributes_by_account -DROP PROCEDURE IF EXISTS obp_get_account_attributes_by_account; +-- drop procedure obp_create_or_update_card_attribute +DROP PROCEDURE IF EXISTS obp_create_or_update_card_attribute; GO --- create procedure obp_get_account_attributes_by_account -CREATE PROCEDURE obp_get_account_attributes_by_account +-- create procedure obp_create_or_update_card_attribute +CREATE PROCEDURE obp_create_or_update_card_attribute @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -21867,9 +24347,11 @@ this is example of parameter @outbound_json "bankId":{ "value":"gh.29.uk" }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - } + "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", + "cardAttributeId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "name":"ACCOUNT_MANAGEMENT_FEE", + "cardAttributeType":"STRING", + "value":"5987953" }' */ @@ -21899,24 +24381,16 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "productCode":{ - "value":"1234BW" - }, - "accountAttributeId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "attributeType":"STRING", - "value":"5987953", - "productInstanceCode":"string" - } - ] + "data":{ + "name":"OVERDRAFT_START_DATE", + "card_id":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", + "attribute_type":"STRING", + "bank_id":{ + "value":"gh.29.uk" + }, + "value":"2012-04-23", + "card_attribute_id":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50" + } }' ); GO @@ -21925,11 +24399,11 @@ GO --- drop procedure obp_get_customer_attributes -DROP PROCEDURE IF EXISTS obp_get_customer_attributes; +-- drop procedure obp_get_card_attribute_by_id +DROP PROCEDURE IF EXISTS obp_get_card_attribute_by_id; GO --- create procedure obp_get_customer_attributes -CREATE PROCEDURE obp_get_customer_attributes +-- create procedure obp_get_card_attribute_by_id +CREATE PROCEDURE obp_get_card_attribute_by_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -22052,12 +24526,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "customerId":{ - "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" - } + "cardAttributeId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50" }' */ @@ -22087,20 +24556,16 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "customerId":{ - "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" - }, - "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "attributeType":"STRING", - "name":"SPECIAL_TAX_NUMBER", - "value":"123456789" - } - ] + "data":{ + "name":"OVERDRAFT_START_DATE", + "card_id":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", + "attribute_type":"STRING", + "bank_id":{ + "value":"gh.29.uk" + }, + "value":"2012-04-23", + "card_attribute_id":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50" + } }' ); GO @@ -22109,11 +24574,11 @@ GO --- drop procedure obp_get_customer_ids_by_attribute_name_values -DROP PROCEDURE IF EXISTS obp_get_customer_ids_by_attribute_name_values; +-- drop procedure obp_get_card_attributes_from_provider +DROP PROCEDURE IF EXISTS obp_get_card_attributes_from_provider; GO --- create procedure obp_get_customer_ids_by_attribute_name_values -CREATE PROCEDURE obp_get_customer_ids_by_attribute_name_values +-- create procedure obp_get_card_attributes_from_provider +CREATE PROCEDURE obp_get_card_attributes_from_provider @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -22236,15 +24701,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "nameValues":{ - "some_name":[ - "name1", - "name2" - ] - } + "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e " }' */ @@ -22275,7 +24732,16 @@ this is example of parameter @outbound_json ] }, "data":[ - "" + { + "name":"OVERDRAFT_START_DATE", + "card_id":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", + "attribute_type":"STRING", + "bank_id":{ + "value":"gh.29.uk" + }, + "value":"2012-04-23", + "card_attribute_id":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50" + } ] }' ); @@ -22285,11 +24751,11 @@ GO --- drop procedure obp_get_customer_attributes_for_customers -DROP PROCEDURE IF EXISTS obp_get_customer_attributes_for_customers; +-- drop procedure obp_create_account_application +DROP PROCEDURE IF EXISTS obp_create_account_application; GO --- create procedure obp_get_customer_attributes_for_customers -CREATE PROCEDURE obp_get_customer_attributes_for_customers +-- create procedure obp_create_account_application +CREATE PROCEDURE obp_create_account_application @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -22399,55 +24865,24 @@ this is example of parameter @outbound_json "legalName":"Eveline Tripman", "dateOfBirth":"2018-03-09T00:00:00Z" } - ], - "userOwners":[ - { - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "emailAddress":"felixsmith@example.com", - "name":"felixsmith" - } - ] - } - } - ] - } - }, - "customers":[ - { - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"5987953", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"2019-09-08T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"2018-03-09T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "2019-09-08T00:00:00Z", - "2019-01-03T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"1000.00" - }, - "kycStatus":false, - "lastOkDate":"2019-09-08T00:00:00Z", - "title":"title of customer", - "branchId":"DERBY6", - "nameSuffix":"Sr" + ], + "userOwners":[ + { + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "emailAddress":"felixsmith@example.com", + "name":"felixsmith" + } + ] + } + } + ] } - ] + }, + "productCode":{ + "value":"1234BW" + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -22477,57 +24912,16 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "customer":{ - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "bankId":"gh.29.uk", - "number":"546387432", - "legalName":"Eveline Tripman", - "mobileNumber":"+44 07972 444 876", - "email":"felixsmith@example.com", - "faceImage":{ - "date":"1100-01-01T00:00:00Z", - "url":"http://www.example.com/id-docs/123/image.png" - }, - "dateOfBirth":"1100-01-01T00:00:00Z", - "relationshipStatus":"single", - "dependents":2, - "dobOfDependents":[ - "1100-01-01T00:00:00Z" - ], - "highestEducationAttained":"Master", - "employmentStatus":"worker", - "creditRating":{ - "rating":"", - "source":"" - }, - "creditLimit":{ - "currency":"EUR", - "amount":"50.89" - }, - "kycStatus":false, - "lastOkDate":"1100-01-01T00:00:00Z", - "title":"Dr.", - "branchId":"DERBY6", - "nameSuffix":"Sr" - }, - "attributes":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "customerId":{ - "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" - }, - "customerAttributeId":"some_customer_attributeId_value", - "attributeType":"INTEGER", - "name":"customer_attribute_field", - "value":"example_value" - } - ] - } - ] + "data":{ + "accountApplicationId":"", + "productCode":{ + "value":"1234BW" + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "dateOfApplication":"2020-01-27T00:00:00Z", + "status":"" + } }' ); GO @@ -22536,11 +24930,11 @@ GO --- drop procedure obp_get_transaction_ids_by_attribute_name_values -DROP PROCEDURE IF EXISTS obp_get_transaction_ids_by_attribute_name_values; +-- drop procedure obp_get_all_account_application +DROP PROCEDURE IF EXISTS obp_get_all_account_application; GO --- create procedure obp_get_transaction_ids_by_attribute_name_values -CREATE PROCEDURE obp_get_transaction_ids_by_attribute_name_values +-- create procedure obp_get_all_account_application +CREATE PROCEDURE obp_get_all_account_application @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -22662,15 +25056,6 @@ this is example of parameter @outbound_json } ] } - }, - "bankId":{ - "value":"gh.29.uk" - }, - "nameValues":{ - "some_name":[ - "name1", - "name2" - ] } }' */ @@ -22702,7 +25087,16 @@ this is example of parameter @outbound_json ] }, "data":[ - "" + { + "accountApplicationId":"", + "productCode":{ + "value":"1234BW" + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "dateOfApplication":"2020-01-27T00:00:00Z", + "status":"" + } ] }' ); @@ -22712,11 +25106,11 @@ GO --- drop procedure obp_get_transaction_attributes -DROP PROCEDURE IF EXISTS obp_get_transaction_attributes; +-- drop procedure obp_get_account_application_by_id +DROP PROCEDURE IF EXISTS obp_get_account_application_by_id; GO --- create procedure obp_get_transaction_attributes -CREATE PROCEDURE obp_get_transaction_attributes +-- create procedure obp_get_account_application_by_id +CREATE PROCEDURE obp_get_account_application_by_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -22839,12 +25233,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "transactionId":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - } + "accountApplicationId":"" }' */ @@ -22874,20 +25263,16 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "transactionId":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" - }, - "transactionAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "attributeType":"STRING", - "name":"HOUSE_RENT", - "value":"123456789" - } - ] + "data":{ + "accountApplicationId":"", + "productCode":{ + "value":"1234BW" + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "dateOfApplication":"2020-01-27T00:00:00Z", + "status":"" + } }' ); GO @@ -22896,11 +25281,11 @@ GO --- drop procedure obp_get_customer_attribute_by_id -DROP PROCEDURE IF EXISTS obp_get_customer_attribute_by_id; +-- drop procedure obp_update_account_application_status +DROP PROCEDURE IF EXISTS obp_update_account_application_status; GO --- create procedure obp_get_customer_attribute_by_id -CREATE PROCEDURE obp_get_customer_attribute_by_id +-- create procedure obp_update_account_application_status +CREATE PROCEDURE obp_update_account_application_status @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -23023,7 +25408,8 @@ this is example of parameter @outbound_json ] } }, - "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "accountApplicationId":"", + "status":"" }' */ @@ -23054,16 +25440,14 @@ this is example of parameter @outbound_json ] }, "data":{ - "bankId":{ - "value":"gh.29.uk" - }, - "customerId":{ - "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "accountApplicationId":"", + "productCode":{ + "value":"1234BW" }, - "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "attributeType":"STRING", - "name":"SPECIAL_TAX_NUMBER", - "value":"123456789" + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "dateOfApplication":"2020-01-27T00:00:00Z", + "status":"" } }' ); @@ -23073,11 +25457,11 @@ GO --- drop procedure obp_create_or_update_card_attribute -DROP PROCEDURE IF EXISTS obp_create_or_update_card_attribute; +-- drop procedure obp_get_or_create_product_collection +DROP PROCEDURE IF EXISTS obp_get_or_create_product_collection; GO --- create procedure obp_create_or_update_card_attribute -CREATE PROCEDURE obp_create_or_update_card_attribute +-- create procedure obp_get_or_create_product_collection +CREATE PROCEDURE obp_get_or_create_product_collection @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -23200,14 +25584,10 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", - "cardAttributeId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", - "name":"ACCOUNT_MANAGEMENT_FEE", - "cardAttributeType":"STRING", - "value":"5987953" + "collectionCode":"", + "productCodes":[ + "" + ] }' */ @@ -23237,16 +25617,12 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "name":"OVERDRAFT_START_DATE", - "card_id":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", - "attribute_type":"STRING", - "bank_id":{ - "value":"gh.29.uk" - }, - "value":"2012-04-23", - "card_attribute_id":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50" - } + "data":[ + { + "collectionCode":"", + "productCode":"1234BW" + } + ] }' ); GO @@ -23255,11 +25631,11 @@ GO --- drop procedure obp_get_card_attribute_by_id -DROP PROCEDURE IF EXISTS obp_get_card_attribute_by_id; +-- drop procedure obp_get_product_collection +DROP PROCEDURE IF EXISTS obp_get_product_collection; GO --- create procedure obp_get_card_attribute_by_id -CREATE PROCEDURE obp_get_card_attribute_by_id +-- create procedure obp_get_product_collection +CREATE PROCEDURE obp_get_product_collection @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -23382,7 +25758,7 @@ this is example of parameter @outbound_json ] } }, - "cardAttributeId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50" + "collectionCode":"" }' */ @@ -23412,16 +25788,12 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "name":"OVERDRAFT_START_DATE", - "card_id":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", - "attribute_type":"STRING", - "bank_id":{ - "value":"gh.29.uk" - }, - "value":"2012-04-23", - "card_attribute_id":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50" - } + "data":[ + { + "collectionCode":"", + "productCode":"1234BW" + } + ] }' ); GO @@ -23430,11 +25802,11 @@ GO --- drop procedure obp_get_card_attributes_from_provider -DROP PROCEDURE IF EXISTS obp_get_card_attributes_from_provider; +-- drop procedure obp_get_or_create_product_collection_item +DROP PROCEDURE IF EXISTS obp_get_or_create_product_collection_item; GO --- create procedure obp_get_card_attributes_from_provider -CREATE PROCEDURE obp_get_card_attributes_from_provider +-- create procedure obp_get_or_create_product_collection_item +CREATE PROCEDURE obp_get_or_create_product_collection_item @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -23557,7 +25929,10 @@ this is example of parameter @outbound_json ] } }, - "cardId":"36f8a9e6-c2b1-407a-8bd0-421b7119307e " + "collectionCode":"", + "memberProductCodes":[ + "" + ] }' */ @@ -23589,14 +25964,8 @@ this is example of parameter @outbound_json }, "data":[ { - "name":"OVERDRAFT_START_DATE", - "card_id":"36f8a9e6-c2b1-407a-8bd0-421b7119307e ", - "attribute_type":"STRING", - "bank_id":{ - "value":"gh.29.uk" - }, - "value":"2012-04-23", - "card_attribute_id":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50" + "collectionCode":"", + "memberProductCode":"" } ] }' @@ -23607,11 +25976,11 @@ GO --- drop procedure obp_create_account_application -DROP PROCEDURE IF EXISTS obp_create_account_application; +-- drop procedure obp_get_product_collection_item +DROP PROCEDURE IF EXISTS obp_get_product_collection_item; GO --- create procedure obp_create_account_application -CREATE PROCEDURE obp_create_account_application +-- create procedure obp_get_product_collection_item +CREATE PROCEDURE obp_get_product_collection_item @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -23734,11 +26103,7 @@ this is example of parameter @outbound_json ] } }, - "productCode":{ - "value":"1234BW" - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "collectionCode":"" }' */ @@ -23768,16 +26133,12 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "accountApplicationId":"", - "productCode":{ - "value":"1234BW" - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "dateOfApplication":"2020-01-27T00:00:00Z", - "status":"" - } + "data":[ + { + "collectionCode":"", + "memberProductCode":"" + } + ] }' ); GO @@ -23786,11 +26147,11 @@ GO --- drop procedure obp_get_all_account_application -DROP PROCEDURE IF EXISTS obp_get_all_account_application; +-- drop procedure obp_get_product_collection_items_tree +DROP PROCEDURE IF EXISTS obp_get_product_collection_items_tree; GO --- create procedure obp_get_all_account_application -CREATE PROCEDURE obp_get_all_account_application +-- create procedure obp_get_product_collection_items_tree +CREATE PROCEDURE obp_get_product_collection_items_tree @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -23912,7 +26273,9 @@ this is example of parameter @outbound_json } ] } - } + }, + "collectionCode":"", + "bankId":"gh.29.uk" }' */ @@ -23944,14 +26307,50 @@ this is example of parameter @outbound_json }, "data":[ { - "accountApplicationId":"", - "productCode":{ - "value":"1234BW" + "productCollectionItem":{ + "collectionCode":"", + "memberProductCode":"" }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "dateOfApplication":"2020-01-27T00:00:00Z", - "status":"" + "product":{ + "bankId":{ + "value":"gh.29.uk" + }, + "code":{ + "value":"1234BW" + }, + "parentProductCode":{ + "value":"787LOW" + }, + "name":"Deposit Account 1", + "category":"", + "family":"", + "superFamily":"", + "moreInfoUrl":"www.example.com/abc", + "termsAndConditionsUrl":"www.example.com/xyz", + "details":"", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "meta":{ + "license":{ + "id":"ODbL-1.0", + "name":"Open Database License" + } + } + }, + "attributes":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "productCode":{ + "value":"1234BW" + }, + "productAttributeId":"", + "name":"ACCOUNT_MANAGEMENT_FEE", + "attributeType":"STRING", + "value":"5987953", + "isActive":false + } + ] } ] }' @@ -23962,11 +26361,11 @@ GO --- drop procedure obp_get_account_application_by_id -DROP PROCEDURE IF EXISTS obp_get_account_application_by_id; +-- drop procedure obp_create_meeting +DROP PROCEDURE IF EXISTS obp_create_meeting; GO --- create procedure obp_get_account_application_by_id -CREATE PROCEDURE obp_get_account_application_by_id +-- create procedure obp_create_meeting +CREATE PROCEDURE obp_create_meeting @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -24089,7 +26488,58 @@ this is example of parameter @outbound_json ] } }, - "accountApplicationId":"" + "bankId":{ + "value":"gh.29.uk" + }, + "staffUser":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "customerUser":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "providerId":"", + "purposeId":"", + "when":"2020-01-27T00:00:00Z", + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "customerToken":"", + "staffToken":"", + "creator":{ + "name":"ACCOUNT_MANAGEMENT_FEE", + "phone":"", + "email":"felixsmith@example.com" + }, + "invitees":[ + { + "contactDetails":{ + "name":"ACCOUNT_MANAGEMENT_FEE", + "phone":"", + "email":"felixsmith@example.com" + }, + "status":"" + } + ] }' */ @@ -24120,14 +26570,35 @@ this is example of parameter @outbound_json ] }, "data":{ - "accountApplicationId":"", - "productCode":{ - "value":"1234BW" + "meetingId":"", + "providerId":"", + "purposeId":"", + "bankId":"gh.29.uk", + "present":{ + "staffUserId":"", + "customerUserId":"" }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "dateOfApplication":"2020-01-27T00:00:00Z", - "status":"" + "keys":{ + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "customerToken":"", + "staffToken":"" + }, + "when":"2020-01-27T00:00:00Z", + "creator":{ + "name":"ACCOUNT_MANAGEMENT_FEE", + "phone":"", + "email":"felixsmith@example.com" + }, + "invitees":[ + { + "contactDetails":{ + "name":"ACCOUNT_MANAGEMENT_FEE", + "phone":"", + "email":"felixsmith@example.com" + }, + "status":"" + } + ] } }' ); @@ -24137,11 +26608,11 @@ GO --- drop procedure obp_update_account_application_status -DROP PROCEDURE IF EXISTS obp_update_account_application_status; +-- drop procedure obp_get_meetings +DROP PROCEDURE IF EXISTS obp_get_meetings; GO --- create procedure obp_update_account_application_status -CREATE PROCEDURE obp_update_account_application_status +-- create procedure obp_get_meetings +CREATE PROCEDURE obp_get_meetings @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -24264,8 +26735,23 @@ this is example of parameter @outbound_json ] } }, - "accountApplicationId":"", - "status":"" + "bankId":{ + "value":"gh.29.uk" + }, + "user":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + } }' */ @@ -24295,16 +26781,39 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "accountApplicationId":"", - "productCode":{ - "value":"1234BW" - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "dateOfApplication":"2020-01-27T00:00:00Z", - "status":"" - } + "data":[ + { + "meetingId":"", + "providerId":"", + "purposeId":"", + "bankId":"gh.29.uk", + "present":{ + "staffUserId":"", + "customerUserId":"" + }, + "keys":{ + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "customerToken":"", + "staffToken":"" + }, + "when":"2020-01-27T00:00:00Z", + "creator":{ + "name":"ACCOUNT_MANAGEMENT_FEE", + "phone":"", + "email":"felixsmith@example.com" + }, + "invitees":[ + { + "contactDetails":{ + "name":"ACCOUNT_MANAGEMENT_FEE", + "phone":"", + "email":"felixsmith@example.com" + }, + "status":"" + } + ] + } + ] }' ); GO @@ -24313,11 +26822,11 @@ GO --- drop procedure obp_get_or_create_product_collection -DROP PROCEDURE IF EXISTS obp_get_or_create_product_collection; +-- drop procedure obp_get_meeting +DROP PROCEDURE IF EXISTS obp_get_meeting; GO --- create procedure obp_get_or_create_product_collection -CREATE PROCEDURE obp_get_or_create_product_collection +-- create procedure obp_get_meeting +CREATE PROCEDURE obp_get_meeting @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -24440,10 +26949,24 @@ this is example of parameter @outbound_json ] } }, - "collectionCode":"", - "productCodes":[ - "" - ] + "bankId":{ + "value":"gh.29.uk" + }, + "user":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "meetingId":"" }' */ @@ -24473,12 +26996,37 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "collectionCode":"", - "productCode":"1234BW" - } - ] + "data":{ + "meetingId":"", + "providerId":"", + "purposeId":"", + "bankId":"gh.29.uk", + "present":{ + "staffUserId":"", + "customerUserId":"" + }, + "keys":{ + "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", + "customerToken":"", + "staffToken":"" + }, + "when":"2020-01-27T00:00:00Z", + "creator":{ + "name":"ACCOUNT_MANAGEMENT_FEE", + "phone":"", + "email":"felixsmith@example.com" + }, + "invitees":[ + { + "contactDetails":{ + "name":"ACCOUNT_MANAGEMENT_FEE", + "phone":"", + "email":"felixsmith@example.com" + }, + "status":"" + } + ] + } }' ); GO @@ -24487,11 +27035,11 @@ GO --- drop procedure obp_get_product_collection -DROP PROCEDURE IF EXISTS obp_get_product_collection; +-- drop procedure obp_create_or_update_kyc_check +DROP PROCEDURE IF EXISTS obp_create_or_update_kyc_check; GO --- create procedure obp_get_product_collection -CREATE PROCEDURE obp_get_product_collection +-- create procedure obp_create_or_update_kyc_check +CREATE PROCEDURE obp_create_or_update_kyc_check @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -24614,7 +27162,16 @@ this is example of parameter @outbound_json ] } }, - "collectionCode":"" + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", + "customerNumber":"5987953", + "date":"2020-01-27T00:00:00Z", + "how":"", + "staffUserId":"", + "mStaffName":"string", + "mSatisfied":true, + "comments":"" }' */ @@ -24644,12 +27201,18 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "collectionCode":"", - "productCode":"1234BW" - } - ] + "data":{ + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "idKycCheck":"string", + "customerNumber":"5987953", + "date":"2020-01-27T00:00:00Z", + "how":"", + "staffUserId":"", + "staffName":"", + "satisfied":false, + "comments":"" + } }' ); GO @@ -24658,11 +27221,11 @@ GO --- drop procedure obp_get_or_create_product_collection_item -DROP PROCEDURE IF EXISTS obp_get_or_create_product_collection_item; +-- drop procedure obp_create_or_update_kyc_document +DROP PROCEDURE IF EXISTS obp_create_or_update_kyc_document; GO --- create procedure obp_get_or_create_product_collection_item -CREATE PROCEDURE obp_get_or_create_product_collection_item +-- create procedure obp_create_or_update_kyc_document +CREATE PROCEDURE obp_create_or_update_kyc_document @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -24785,10 +27348,15 @@ this is example of parameter @outbound_json ] } }, - "collectionCode":"", - "memberProductCodes":[ - "" - ] + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", + "customerNumber":"5987953", + "type":"", + "number":"", + "issueDate":"2020-01-27T00:00:00Z", + "issuePlace":"", + "expiryDate":"2021-01-27T00:00:00Z" }' */ @@ -24818,12 +27386,17 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "collectionCode":"", - "memberProductCode":"" - } - ] + "data":{ + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "idKycDocument":"string", + "customerNumber":"5987953", + "type":"", + "number":"", + "issueDate":"2020-01-27T00:00:00Z", + "issuePlace":"", + "expiryDate":"2021-01-27T00:00:00Z" + } }' ); GO @@ -24832,11 +27405,11 @@ GO --- drop procedure obp_get_product_collection_item -DROP PROCEDURE IF EXISTS obp_get_product_collection_item; +-- drop procedure obp_create_or_update_kyc_media +DROP PROCEDURE IF EXISTS obp_create_or_update_kyc_media; GO --- create procedure obp_get_product_collection_item -CREATE PROCEDURE obp_get_product_collection_item +-- create procedure obp_create_or_update_kyc_media +CREATE PROCEDURE obp_create_or_update_kyc_media @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -24959,7 +27532,15 @@ this is example of parameter @outbound_json ] } }, - "collectionCode":"" + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", + "customerNumber":"5987953", + "type":"", + "url":"http://www.example.com/id-docs/123/image.png", + "date":"2020-01-27T00:00:00Z", + "relatesToKycDocumentId":"", + "relatesToKycCheckId":"" }' */ @@ -24989,12 +27570,17 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "collectionCode":"", - "memberProductCode":"" - } - ] + "data":{ + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "idKycMedia":"string", + "customerNumber":"5987953", + "type":"", + "url":"http://www.example.com/id-docs/123/image.png", + "date":"2020-01-27T00:00:00Z", + "relatesToKycDocumentId":"", + "relatesToKycCheckId":"" + } }' ); GO @@ -25003,11 +27589,11 @@ GO --- drop procedure obp_get_product_collection_items_tree -DROP PROCEDURE IF EXISTS obp_get_product_collection_items_tree; +-- drop procedure obp_create_or_update_kyc_status +DROP PROCEDURE IF EXISTS obp_create_or_update_kyc_status; GO --- create procedure obp_get_product_collection_items_tree -CREATE PROCEDURE obp_get_product_collection_items_tree +-- create procedure obp_create_or_update_kyc_status +CREATE PROCEDURE obp_create_or_update_kyc_status @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -25130,8 +27716,11 @@ this is example of parameter @outbound_json ] } }, - "collectionCode":"", - "bankId":"gh.29.uk" + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "ok":false, + "date":"2020-01-27T00:00:00Z" }' */ @@ -25147,68 +27736,27 @@ this is example of parameter @outbound_json "key":"CustomerNumber", "value":"5987953" } - ] - }, - "status":{ - "errorCode":"", - "backendMessages":[ - { - "source":"", - "status":"", - "errorCode":"", - "text":"", - "duration":"5.123" - } - ] - }, - "data":[ - { - "productCollectionItem":{ - "collectionCode":"", - "memberProductCode":"" - }, - "product":{ - "bankId":{ - "value":"gh.29.uk" - }, - "code":{ - "value":"1234BW" - }, - "parentProductCode":{ - "value":"787LOW" - }, - "name":"Deposit Account 1", - "category":"", - "family":"", - "superFamily":"", - "moreInfoUrl":"www.example.com/abc", - "termsAndConditionsUrl":"www.example.com/xyz", - "details":"", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "meta":{ - "license":{ - "id":"ODbL-1.0", - "name":"Open Database License" - } - } - }, - "attributes":[ - { - "bankId":{ - "value":"gh.29.uk" - }, - "productCode":{ - "value":"1234BW" - }, - "productAttributeId":"", - "name":"ACCOUNT_MANAGEMENT_FEE", - "attributeType":"STRING", - "value":"5987953", - "isActive":false - } - ] - } - ] + ] + }, + "status":{ + "errorCode":"", + "backendMessages":[ + { + "source":"", + "status":"", + "errorCode":"", + "text":"", + "duration":"5.123" + } + ] + }, + "data":{ + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "ok":false, + "date":"2020-01-27T00:00:00Z" + } }' ); GO @@ -25217,11 +27765,11 @@ GO --- drop procedure obp_create_meeting -DROP PROCEDURE IF EXISTS obp_create_meeting; +-- drop procedure obp_get_kyc_checks +DROP PROCEDURE IF EXISTS obp_get_kyc_checks; GO --- create procedure obp_create_meeting -CREATE PROCEDURE obp_create_meeting +-- create procedure obp_get_kyc_checks +CREATE PROCEDURE obp_get_kyc_checks @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -25344,58 +27892,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "staffUser":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" - }, - "customerUser":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" - }, - "providerId":"", - "purposeId":"", - "when":"2020-01-27T00:00:00Z", - "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", - "customerToken":"", - "staffToken":"", - "creator":{ - "name":"ACCOUNT_MANAGEMENT_FEE", - "phone":"", - "email":"felixsmith@example.com" - }, - "invitees":[ - { - "contactDetails":{ - "name":"ACCOUNT_MANAGEMENT_FEE", - "phone":"", - "email":"felixsmith@example.com" - }, - "status":"" - } - ] + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -25425,37 +27922,20 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "meetingId":"", - "providerId":"", - "purposeId":"", - "bankId":"gh.29.uk", - "present":{ + "data":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "idKycCheck":"string", + "customerNumber":"5987953", + "date":"2020-01-27T00:00:00Z", + "how":"", "staffUserId":"", - "customerUserId":"" - }, - "keys":{ - "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", - "customerToken":"", - "staffToken":"" - }, - "when":"2020-01-27T00:00:00Z", - "creator":{ - "name":"ACCOUNT_MANAGEMENT_FEE", - "phone":"", - "email":"felixsmith@example.com" - }, - "invitees":[ - { - "contactDetails":{ - "name":"ACCOUNT_MANAGEMENT_FEE", - "phone":"", - "email":"felixsmith@example.com" - }, - "status":"" - } - ] - } + "staffName":"", + "satisfied":false, + "comments":"" + } + ] }' ); GO @@ -25464,11 +27944,11 @@ GO --- drop procedure obp_get_meetings -DROP PROCEDURE IF EXISTS obp_get_meetings; +-- drop procedure obp_get_kyc_documents +DROP PROCEDURE IF EXISTS obp_get_kyc_documents; GO --- create procedure obp_get_meetings -CREATE PROCEDURE obp_get_meetings +-- create procedure obp_get_kyc_documents +CREATE PROCEDURE obp_get_kyc_documents @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -25591,23 +28071,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "user":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" - } + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -25639,35 +28103,15 @@ this is example of parameter @outbound_json }, "data":[ { - "meetingId":"", - "providerId":"", - "purposeId":"", "bankId":"gh.29.uk", - "present":{ - "staffUserId":"", - "customerUserId":"" - }, - "keys":{ - "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", - "customerToken":"", - "staffToken":"" - }, - "when":"2020-01-27T00:00:00Z", - "creator":{ - "name":"ACCOUNT_MANAGEMENT_FEE", - "phone":"", - "email":"felixsmith@example.com" - }, - "invitees":[ - { - "contactDetails":{ - "name":"ACCOUNT_MANAGEMENT_FEE", - "phone":"", - "email":"felixsmith@example.com" - }, - "status":"" - } - ] + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "idKycDocument":"string", + "customerNumber":"5987953", + "type":"", + "number":"", + "issueDate":"2020-01-27T00:00:00Z", + "issuePlace":"", + "expiryDate":"2021-01-27T00:00:00Z" } ] }' @@ -25678,11 +28122,11 @@ GO --- drop procedure obp_get_meeting -DROP PROCEDURE IF EXISTS obp_get_meeting; +-- drop procedure obp_get_kyc_medias +DROP PROCEDURE IF EXISTS obp_get_kyc_medias; GO --- create procedure obp_get_meeting -CREATE PROCEDURE obp_get_meeting +-- create procedure obp_get_kyc_medias +CREATE PROCEDURE obp_get_kyc_medias @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -25805,24 +28249,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":{ - "value":"gh.29.uk" - }, - "user":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" - }, - "meetingId":"" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -25852,37 +28279,19 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "meetingId":"", - "providerId":"", - "purposeId":"", - "bankId":"gh.29.uk", - "present":{ - "staffUserId":"", - "customerUserId":"" - }, - "keys":{ - "sessionId":"b4e0352a-9a0f-4bfa-b30b-9003aa467f50", - "customerToken":"", - "staffToken":"" - }, - "when":"2020-01-27T00:00:00Z", - "creator":{ - "name":"ACCOUNT_MANAGEMENT_FEE", - "phone":"", - "email":"felixsmith@example.com" - }, - "invitees":[ - { - "contactDetails":{ - "name":"ACCOUNT_MANAGEMENT_FEE", - "phone":"", - "email":"felixsmith@example.com" - }, - "status":"" - } - ] - } + "data":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "idKycMedia":"string", + "customerNumber":"5987953", + "type":"", + "url":"http://www.example.com/id-docs/123/image.png", + "date":"2020-01-27T00:00:00Z", + "relatesToKycDocumentId":"", + "relatesToKycCheckId":"" + } + ] }' ); GO @@ -25891,11 +28300,11 @@ GO --- drop procedure obp_create_or_update_kyc_check -DROP PROCEDURE IF EXISTS obp_create_or_update_kyc_check; +-- drop procedure obp_get_kyc_statuses +DROP PROCEDURE IF EXISTS obp_get_kyc_statuses; GO --- create procedure obp_create_or_update_kyc_check -CREATE PROCEDURE obp_create_or_update_kyc_check +-- create procedure obp_get_kyc_statuses +CREATE PROCEDURE obp_get_kyc_statuses @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -26018,16 +28427,7 @@ this is example of parameter @outbound_json ] } }, - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", - "customerNumber":"5987953", - "date":"2020-01-27T00:00:00Z", - "how":"", - "staffUserId":"", - "mStaffName":"string", - "mSatisfied":true, - "comments":"" + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -26057,18 +28457,15 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "idKycCheck":"string", - "customerNumber":"5987953", - "date":"2020-01-27T00:00:00Z", - "how":"", - "staffUserId":"", - "staffName":"", - "satisfied":false, - "comments":"" - } + "data":[ + { + "bankId":"gh.29.uk", + "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "customerNumber":"5987953", + "ok":false, + "date":"2020-01-27T00:00:00Z" + } + ] }' ); GO @@ -26077,11 +28474,11 @@ GO --- drop procedure obp_create_or_update_kyc_document -DROP PROCEDURE IF EXISTS obp_create_or_update_kyc_document; +-- drop procedure obp_create_message +DROP PROCEDURE IF EXISTS obp_create_message; GO --- create procedure obp_create_or_update_kyc_document -CREATE PROCEDURE obp_create_or_update_kyc_document +-- create procedure obp_create_message +CREATE PROCEDURE obp_create_message @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -26204,15 +28601,26 @@ this is example of parameter @outbound_json ] } }, - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", - "customerNumber":"5987953", - "type":"", - "number":"", - "issueDate":"2020-01-27T00:00:00Z", - "issuePlace":"", - "expiryDate":"2021-01-27T00:00:00Z" + "user":{ + "userPrimaryKey":{ + "value":123 + }, + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "idGivenByProvider":"string", + "provider":"ETHEREUM", + "emailAddress":"", + "name":"felixsmith", + "createdByConsentId":"string", + "createdByUserInvitationId":"string", + "isDeleted":true, + "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" + }, + "bankId":{ + "value":"gh.29.uk" + }, + "message":"123456", + "fromDepartment":"Open Bank", + "fromPerson":"Tom" }' */ @@ -26243,15 +28651,12 @@ this is example of parameter @outbound_json ] }, "data":{ - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "idKycDocument":"string", - "customerNumber":"5987953", - "type":"", - "number":"", - "issueDate":"2020-01-27T00:00:00Z", - "issuePlace":"", - "expiryDate":"2021-01-27T00:00:00Z" + "messageId":"string", + "date":"2020-01-27T00:00:00Z", + "message":"123456", + "fromDepartment":"Open Bank", + "fromPerson":"Tom", + "transport":"SMS" } }' ); @@ -26261,11 +28666,11 @@ GO --- drop procedure obp_create_or_update_kyc_media -DROP PROCEDURE IF EXISTS obp_create_or_update_kyc_media; +-- drop procedure obp_make_historical_payment +DROP PROCEDURE IF EXISTS obp_make_historical_payment; GO --- create procedure obp_create_or_update_kyc_media -CREATE PROCEDURE obp_create_or_update_kyc_media +-- create procedure obp_make_historical_payment +CREATE PROCEDURE obp_make_historical_payment @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -26388,15 +28793,85 @@ this is example of parameter @outbound_json ] } }, - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "id":"d8839721-ad8f-45dd-9f78-2080414b93f9", - "customerNumber":"5987953", - "type":"", - "url":"http://www.example.com/id-docs/123/image.png", - "date":"2020-01-27T00:00:00Z", - "relatesToKycDocumentId":"", - "relatesToKycCheckId":"" + "fromAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "toAccount":{ + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "accountType":"AC", + "balance":"10", + "currency":"EUR", + "name":"bankAccount name string", + "label":"My Account", + "number":"bankAccount number string", + "bankId":{ + "value":"gh.29.uk" + }, + "lastUpdate":"2018-03-09T00:00:00Z", + "branchId":"DERBY6", + "accountRoutings":[ + { + "scheme":"IBAN", + "address":"DE91 1000 0000 0123 4567 89" + } + ], + "accountRules":[ + { + "scheme":"AccountRule scheme string", + "value":"AccountRule value string" + } + ], + "accountHolder":"bankAccount accountHolder string", + "attributes":[ + { + "name":"STATUS", + "type":"STRING", + "value":"closed" + } + ] + }, + "posted":"2020-01-27T00:00:00Z", + "completed":"2020-01-27T00:00:00Z", + "amount":"10.12", + "currency":"EUR", + "description":"Description of the object. Maximum length is 2000. It can be any characters here.", + "transactionRequestType":"SEPA", + "chargePolicy":"SHARED" }' */ @@ -26427,15 +28902,7 @@ this is example of parameter @outbound_json ] }, "data":{ - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "idKycMedia":"string", - "customerNumber":"5987953", - "type":"", - "url":"http://www.example.com/id-docs/123/image.png", - "date":"2020-01-27T00:00:00Z", - "relatesToKycDocumentId":"", - "relatesToKycCheckId":"" + "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" } }' ); @@ -26445,11 +28912,11 @@ GO --- drop procedure obp_create_or_update_kyc_status -DROP PROCEDURE IF EXISTS obp_create_or_update_kyc_status; +-- drop procedure obp_create_direct_debit +DROP PROCEDURE IF EXISTS obp_create_direct_debit; GO --- create procedure obp_create_or_update_kyc_status -CREATE PROCEDURE obp_create_or_update_kyc_status +-- create procedure obp_create_direct_debit +CREATE PROCEDURE obp_create_direct_debit @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -26573,10 +29040,13 @@ this is example of parameter @outbound_json } }, "bankId":"gh.29.uk", + "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "customerNumber":"5987953", - "ok":false, - "date":"2020-01-27T00:00:00Z" + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "dateSigned":"2020-01-27T00:00:00Z", + "dateStarts":"2020-01-27T00:00:00Z", + "dateExpires":"2021-01-27T00:00:00Z" }' */ @@ -26607,11 +29077,17 @@ this is example of parameter @outbound_json ] }, "data":{ + "directDebitId":"", "bankId":"gh.29.uk", + "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "customerNumber":"5987953", - "ok":false, - "date":"2020-01-27T00:00:00Z" + "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", + "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", + "dateSigned":"2020-01-27T00:00:00Z", + "dateCancelled":"2020-01-27T00:00:00Z", + "dateStarts":"2020-01-27T00:00:00Z", + "dateExpires":"2021-01-27T00:00:00Z", + "active":false } }' ); @@ -26621,11 +29097,11 @@ GO --- drop procedure obp_get_kyc_checks -DROP PROCEDURE IF EXISTS obp_get_kyc_checks; +-- drop procedure obp_delete_customer_attribute +DROP PROCEDURE IF EXISTS obp_delete_customer_attribute; GO --- create procedure obp_get_kyc_checks -CREATE PROCEDURE obp_get_kyc_checks +-- create procedure obp_delete_customer_attribute +CREATE PROCEDURE obp_delete_customer_attribute @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -26748,7 +29224,7 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" }' */ @@ -26778,20 +29254,7 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "idKycCheck":"string", - "customerNumber":"5987953", - "date":"2020-01-27T00:00:00Z", - "how":"", - "staffUserId":"", - "staffName":"", - "satisfied":false, - "comments":"" - } - ] + "data":true }' ); GO @@ -26799,12 +29262,12 @@ GO - --- drop procedure obp_get_kyc_documents -DROP PROCEDURE IF EXISTS obp_get_kyc_documents; + +-- drop procedure obp_get_regulated_entities +DROP PROCEDURE IF EXISTS obp_get_regulated_entities; GO --- create procedure obp_get_kyc_documents -CREATE PROCEDURE obp_get_kyc_documents +-- create procedure obp_get_regulated_entities +CREATE PROCEDURE obp_get_regulated_entities @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -26926,8 +29389,7 @@ this is example of parameter @outbound_json } ] } - }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + } }' */ @@ -26959,15 +29421,25 @@ this is example of parameter @outbound_json }, "data":[ { - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "idKycDocument":"string", - "customerNumber":"5987953", - "type":"", - "number":"", - "issueDate":"2020-01-27T00:00:00Z", - "issuePlace":"", - "expiryDate":"2021-01-27T00:00:00Z" + "entityId":"0af807d7-3c39-43ef-9712-82bcfde1b9ca", + "certificateAuthorityCaOwnerId":"CY_CBC", + "entityName":"EXAMPLE COMPANY LTD", + "entityCode":"PSD_PICY_CBC!12345", + "entityCertificatePublicKey":"MIICsjCCAZqgAwIBAgIGAYwQ62R0MA0GCSqGSIb3DQEBCwUAMBoxGDAWBgNVBAMMD2FwcC5leGFtcGxlLmNvbTAeFw0yMzExMjcxMzE1MTFaFw0yNTExMjYxMzE1MTFaMBoxGDAWBgNVBAMMD2FwcC5leGFtcGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK9WIodZHWzKyCcf9YfWEhPURbfO6zKuMqzHN27GdqHsVVEGxP4F/J4mso+0ENcRr6ur4u81iREaVdCc40rHDHVJNEtniD8Icbz7tcsqAewIVhc/q6WXGqImJpCq7hA0m247dDsaZT0lb/MVBiMoJxDEmAE/GYYnWTEn84R35WhJsMvuQ7QmLvNg6RkChY6POCT/YKe9NKwa1NqI1U+oA5RFzAaFtytvZCE3jtp+aR0brL7qaGfgxm6B7dEpGyhg0NcVCV7xMQNq2JxZTVdAr6lcsRGaAFulakmW3aNnmK+L35Wu8uW+OxNxwUuC6f3b4FVBa276FMuUTRfu7gc+k6kCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAAU5CjEyAoyTn7PgFpQD48ZNPuUsEQ19gzYgJvHMzFIoZ7jKBodjO5mCzWBcR7A4mpeAsdyiNBl2sTiZscSnNqxk61jVzP5Ba1D7XtOjjr7+3iqowrThj6BY40QqhYh/6BSY9fDzVZQiHnvlo6ZUM5kUK6OavZOovKlp5DIl5sGqoP0qAJnpQ4nhB2WVVsKfPlOXc+2KSsbJ23g9l8zaTMr+X0umlvfEKqyEl1Fa2L1dO0y/KFQ+ILmxcZLpRdq1hRAjd0quq9qGC8ucXhRWDg4hslVpau0da68g0aItWNez3mc5lB82b3dcZpFMzO41bgw7gvw10AvvTfQDqEYIuQ==", + "entityType":"PSD_PI", + "entityAddress":"EXAMPLE COMPANY LTD, 5 SOME STREET", + "entityTownCity":"SOME CITY", + "entityPostCode":"1060", + "entityCountry":"CY", + "entityWebSite":"www.example.com", + "services":"[{\"CY\":[\"PS_010\",\"PS_020\",\"PS_03C\",\"PS_04C\"]}]", + "attributes":[ + { + "attributeType":"STRING", + "name":"ACCOUNT_MANAGEMENT_FEE", + "value":"5987953" + } + ] } ] }' @@ -26978,11 +29450,11 @@ GO --- drop procedure obp_get_kyc_medias -DROP PROCEDURE IF EXISTS obp_get_kyc_medias; +-- drop procedure obp_get_regulated_entity_by_entity_id +DROP PROCEDURE IF EXISTS obp_get_regulated_entity_by_entity_id; GO --- create procedure obp_get_kyc_medias -CREATE PROCEDURE obp_get_kyc_medias +-- create procedure obp_get_regulated_entity_by_entity_id +CREATE PROCEDURE obp_get_regulated_entity_by_entity_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -27105,7 +29577,7 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "regulatedEntityId":"string" }' */ @@ -27135,19 +29607,27 @@ this is example of parameter @outbound_json } ] }, - "data":[ - { - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "idKycMedia":"string", - "customerNumber":"5987953", - "type":"", - "url":"http://www.example.com/id-docs/123/image.png", - "date":"2020-01-27T00:00:00Z", - "relatesToKycDocumentId":"", - "relatesToKycCheckId":"" - } - ] + "data":{ + "entityId":"0af807d7-3c39-43ef-9712-82bcfde1b9ca", + "certificateAuthorityCaOwnerId":"CY_CBC", + "entityName":"EXAMPLE COMPANY LTD", + "entityCode":"PSD_PICY_CBC!12345", + "entityCertificatePublicKey":"MIICsjCCAZqgAwIBAgIGAYwQ62R0MA0GCSqGSIb3DQEBCwUAMBoxGDAWBgNVBAMMD2FwcC5leGFtcGxlLmNvbTAeFw0yMzExMjcxMzE1MTFaFw0yNTExMjYxMzE1MTFaMBoxGDAWBgNVBAMMD2FwcC5leGFtcGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK9WIodZHWzKyCcf9YfWEhPURbfO6zKuMqzHN27GdqHsVVEGxP4F/J4mso+0ENcRr6ur4u81iREaVdCc40rHDHVJNEtniD8Icbz7tcsqAewIVhc/q6WXGqImJpCq7hA0m247dDsaZT0lb/MVBiMoJxDEmAE/GYYnWTEn84R35WhJsMvuQ7QmLvNg6RkChY6POCT/YKe9NKwa1NqI1U+oA5RFzAaFtytvZCE3jtp+aR0brL7qaGfgxm6B7dEpGyhg0NcVCV7xMQNq2JxZTVdAr6lcsRGaAFulakmW3aNnmK+L35Wu8uW+OxNxwUuC6f3b4FVBa276FMuUTRfu7gc+k6kCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAAU5CjEyAoyTn7PgFpQD48ZNPuUsEQ19gzYgJvHMzFIoZ7jKBodjO5mCzWBcR7A4mpeAsdyiNBl2sTiZscSnNqxk61jVzP5Ba1D7XtOjjr7+3iqowrThj6BY40QqhYh/6BSY9fDzVZQiHnvlo6ZUM5kUK6OavZOovKlp5DIl5sGqoP0qAJnpQ4nhB2WVVsKfPlOXc+2KSsbJ23g9l8zaTMr+X0umlvfEKqyEl1Fa2L1dO0y/KFQ+ILmxcZLpRdq1hRAjd0quq9qGC8ucXhRWDg4hslVpau0da68g0aItWNez3mc5lB82b3dcZpFMzO41bgw7gvw10AvvTfQDqEYIuQ==", + "entityType":"PSD_PI", + "entityAddress":"EXAMPLE COMPANY LTD, 5 SOME STREET", + "entityTownCity":"SOME CITY", + "entityPostCode":"1060", + "entityCountry":"CY", + "entityWebSite":"www.example.com", + "services":"[{\"CY\":[\"PS_010\",\"PS_020\",\"PS_03C\",\"PS_04C\"]}]", + "attributes":[ + { + "attributeType":"STRING", + "name":"ACCOUNT_MANAGEMENT_FEE", + "value":"5987953" + } + ] + } }' ); GO @@ -27156,11 +29636,11 @@ GO --- drop procedure obp_get_kyc_statuses -DROP PROCEDURE IF EXISTS obp_get_kyc_statuses; +-- drop procedure obp_get_bank_account_balances_by_account_id +DROP PROCEDURE IF EXISTS obp_get_bank_account_balances_by_account_id; GO --- create procedure obp_get_kyc_statuses -CREATE PROCEDURE obp_get_kyc_statuses +-- create procedure obp_get_bank_account_balances_by_account_id +CREATE PROCEDURE obp_get_bank_account_balances_by_account_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -27283,7 +29763,9 @@ this is example of parameter @outbound_json ] } }, - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + } }' */ @@ -27315,11 +29797,19 @@ this is example of parameter @outbound_json }, "data":[ { - "bankId":"gh.29.uk", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "customerNumber":"5987953", - "ok":false, - "date":"2020-01-27T00:00:00Z" + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "balanceId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + }, + "balanceType":"openingBooked", + "balanceAmount":"50.89", + "lastChangeDateTime":"2020-01-27T00:00:00Z", + "referenceDate":"2020-01-27" } ] }' @@ -27330,11 +29820,11 @@ GO --- drop procedure obp_create_message -DROP PROCEDURE IF EXISTS obp_create_message; +-- drop procedure obp_get_bank_accounts_balances_by_account_ids +DROP PROCEDURE IF EXISTS obp_get_bank_accounts_balances_by_account_ids; GO --- create procedure obp_create_message -CREATE PROCEDURE obp_create_message +-- create procedure obp_get_bank_accounts_balances_by_account_ids +CREATE PROCEDURE obp_get_bank_accounts_balances_by_account_ids @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -27457,26 +29947,11 @@ this is example of parameter @outbound_json ] } }, - "user":{ - "userPrimaryKey":{ - "value":123 - }, - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "idGivenByProvider":"string", - "provider":"ETHEREUM", - "emailAddress":"", - "name":"felixsmith", - "createdByConsentId":"string", - "createdByUserInvitationId":"string", - "isDeleted":true, - "lastMarketingAgreementSignedDate":"2020-01-27T00:00:00Z" - }, - "bankId":{ - "value":"gh.29.uk" - }, - "message":"123456", - "fromDepartment":"Open Bank", - "fromPerson":"Tom" + "accountIds":[ + { + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + } + ] }' */ @@ -27506,14 +29981,23 @@ this is example of parameter @outbound_json } ] }, - "data":{ - "messageId":"string", - "date":"2020-01-27T00:00:00Z", - "message":"123456", - "fromDepartment":"Open Bank", - "fromPerson":"Tom", - "transport":"SMS" - } + "data":[ + { + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "balanceId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + }, + "balanceType":"openingBooked", + "balanceAmount":"50.89", + "lastChangeDateTime":"2020-01-27T00:00:00Z", + "referenceDate":"2020-01-27" + } + ] }' ); GO @@ -27522,11 +30006,11 @@ GO --- drop procedure obp_make_historical_payment -DROP PROCEDURE IF EXISTS obp_make_historical_payment; +-- drop procedure obp_get_bank_account_balance_by_id +DROP PROCEDURE IF EXISTS obp_get_bank_account_balance_by_id; GO --- create procedure obp_make_historical_payment -CREATE PROCEDURE obp_make_historical_payment +-- create procedure obp_get_bank_account_balance_by_id +CREATE PROCEDURE obp_get_bank_account_balance_by_id @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -27649,85 +30133,9 @@ this is example of parameter @outbound_json ] } }, - "fromAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "toAccount":{ - "accountId":{ - "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" - }, - "accountType":"AC", - "balance":"10", - "currency":"EUR", - "name":"bankAccount name string", - "label":"My Account", - "number":"bankAccount number string", - "bankId":{ - "value":"gh.29.uk" - }, - "lastUpdate":"2018-03-09T00:00:00Z", - "branchId":"DERBY6", - "accountRoutings":[ - { - "scheme":"IBAN", - "address":"DE91 1000 0000 0123 4567 89" - } - ], - "accountRules":[ - { - "scheme":"AccountRule scheme string", - "value":"AccountRule value string" - } - ], - "accountHolder":"bankAccount accountHolder string", - "attributes":[ - { - "name":"STATUS", - "type":"STRING", - "value":"closed" - } - ] - }, - "posted":"2020-01-27T00:00:00Z", - "completed":"2020-01-27T00:00:00Z", - "amount":"10.12", - "currency":"EUR", - "description":"This an optional field. Maximum length is 2000. It can be any characters here.", - "transactionRequestType":"SEPA", - "chargePolicy":"SHARED" + "balanceId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + } }' */ @@ -27758,7 +30166,19 @@ this is example of parameter @outbound_json ] }, "data":{ - "value":"2fg8a7e4-6d02-40e3-a129-0b2bf89de8ub" + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "balanceId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + }, + "balanceType":"openingBooked", + "balanceAmount":"50.89", + "lastChangeDateTime":"2020-01-27T00:00:00Z", + "referenceDate":"2020-01-27" } }' ); @@ -27768,11 +30188,11 @@ GO --- drop procedure obp_create_direct_debit -DROP PROCEDURE IF EXISTS obp_create_direct_debit; +-- drop procedure obp_create_or_update_bank_account_balance +DROP PROCEDURE IF EXISTS obp_create_or_update_bank_account_balance; GO --- create procedure obp_create_direct_debit -CREATE PROCEDURE obp_create_direct_debit +-- create procedure obp_create_or_update_bank_account_balance +CREATE PROCEDURE obp_create_or_update_bank_account_balance @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -27895,14 +30315,17 @@ this is example of parameter @outbound_json ] } }, - "bankId":"gh.29.uk", - "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "dateSigned":"2020-01-27T00:00:00Z", - "dateStarts":"2020-01-27T00:00:00Z", - "dateExpires":"2021-01-27T00:00:00Z" + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "balanceId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + }, + "balanceType":"openingBooked", + "balanceAmount":"50.89" }' */ @@ -27933,17 +30356,19 @@ this is example of parameter @outbound_json ] }, "data":{ - "directDebitId":"", - "bankId":"gh.29.uk", - "accountId":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0", - "customerId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "userId":"9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1", - "counterpartyId":"9fg8a7e4-6d02-40e3-a129-0b2bf89de8uh", - "dateSigned":"2020-01-27T00:00:00Z", - "dateCancelled":"2020-01-27T00:00:00Z", - "dateStarts":"2020-01-27T00:00:00Z", - "dateExpires":"2021-01-27T00:00:00Z", - "active":false + "bankId":{ + "value":"gh.29.uk" + }, + "accountId":{ + "value":"8ca8a7e4-6d02-40e3-a129-0b2bf89de9f0" + }, + "balanceId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + }, + "balanceType":"openingBooked", + "balanceAmount":"50.89", + "lastChangeDateTime":"2020-01-27T00:00:00Z", + "referenceDate":"2020-01-27" } }' ); @@ -27953,11 +30378,11 @@ GO --- drop procedure obp_delete_customer_attribute -DROP PROCEDURE IF EXISTS obp_delete_customer_attribute; +-- drop procedure obp_delete_bank_account_balance +DROP PROCEDURE IF EXISTS obp_delete_bank_account_balance; GO --- create procedure obp_delete_customer_attribute -CREATE PROCEDURE obp_delete_customer_attribute +-- create procedure obp_delete_bank_account_balance +CREATE PROCEDURE obp_delete_bank_account_balance @outbound_json NVARCHAR(MAX), @inbound_json NVARCHAR(MAX) OUT AS @@ -28080,7 +30505,9 @@ this is example of parameter @outbound_json ] } }, - "customerAttributeId":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + "balanceId":{ + "value":"7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh" + } }' */ diff --git a/obp-api/src/main/scala/code/bankconnectors/storedprocedure/StoredProcedureConnector_vDec2019.scala b/obp-api/src/main/scala/code/bankconnectors/storedprocedure/StoredProcedureConnector_vDec2019.scala index 6e260835a8..fd5b7acd90 100644 --- a/obp-api/src/main/scala/code/bankconnectors/storedprocedure/StoredProcedureConnector_vDec2019.scala +++ b/obp-api/src/main/scala/code/bankconnectors/storedprocedure/StoredProcedureConnector_vDec2019.scala @@ -69,7 +69,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { val connectorName = "stored_procedure_vDec2019" //---------------- dynamic start -------------------please don't modify this line -// ---------- created on 2024-10-30T11:51:31Z +// ---------- created on 2026-02-10T15:25:46Z messageDocs += getAdapterInfoDoc def getAdapterInfoDoc = MessageDoc( @@ -344,7 +344,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123))) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string")))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -389,7 +392,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123))) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string")))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -485,7 +491,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123)) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string"))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -527,7 +536,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123)) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string"))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -569,7 +581,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123)) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string"))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -612,7 +627,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123)) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string"))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -650,7 +668,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123))) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string")))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -688,7 +709,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123))) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string")))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -726,7 +750,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123))) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string")))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -764,7 +791,10 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { scaMethod=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthentication.SMS), scaStatus=Some(com.openbankproject.commons.model.enums.StrongCustomerAuthenticationStatus.example), authenticationMethodId=Some("string"), - attemptCounter=123)) + attemptCounter=123, + challengePurpose=Some("string"), + challengeContextHash=Some("string"), + challengeContextStructure=Some("string"))) ), adapterImplementation = Some(AdapterImplementation("- Core", 1)) ) @@ -884,7 +914,6 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { response.map(convertToTuple[List[InboundAccountCommons]](callContext)) } - messageDocs += checkExternalUserCredentialsDoc def checkExternalUserCredentialsDoc = MessageDoc( process = "obp.checkExternalUserCredentials", @@ -1148,7 +1177,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { address=accountRoutingAddressExample.value)), balances=List( BankAccountBalance(balance= AmountOfMoney(currency=balanceCurrencyExample.value, amount=balanceAmountExample.value), - balanceType="string")), + balanceType=balanceTypeExample.value)), overallBalance= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), overallBalanceDate=toDate(overallBalanceDateExample))) @@ -1227,6 +1256,79 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { response.map(convertToTuple[List[AccountHeld]](callContext)) } + messageDocs += getAccountsHeldDoc + def getAccountsHeldDoc = MessageDoc( + process = "obp.getAccountsHeld", + messageFormat = messageFormat, + description = "Get Accounts Held", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundGetAccountsHeld(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + bankId=BankId(bankIdExample.value), + user= UserCommons(userPrimaryKey=UserPrimaryKey(123), + userId=userIdExample.value, + idGivenByProvider="string", + provider=providerExample.value, + emailAddress=emailAddressExample.value, + name=userNameExample.value, + createdByConsentId=Some("string"), + createdByUserInvitationId=Some("string"), + isDeleted=Some(true), + lastMarketingAgreementSignedDate=Some(toDate(dateExample)))) + ), + exampleInboundMessage = ( + InBoundGetAccountsHeld(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data=List( BankIdAccountId(bankId=BankId(bankIdExample.value), + accountId=AccountId(accountIdExample.value)))) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def getAccountsHeld(bankId: BankId, user: User, callContext: Option[CallContext]): OBPReturnType[Box[List[BankIdAccountId]]] = { + import com.openbankproject.commons.dto.{InBoundGetAccountsHeld => InBound, OutBoundGetAccountsHeld => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, bankId, user) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_get_accounts_held", req, callContext) + response.map(convertToTuple[List[BankIdAccountId]](callContext)) + } + + messageDocs += getAccountsHeldByUserDoc + def getAccountsHeldByUserDoc = MessageDoc( + process = "obp.getAccountsHeldByUser", + messageFormat = messageFormat, + description = "Get Accounts Held By User", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundGetAccountsHeldByUser(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + user= UserCommons(userPrimaryKey=UserPrimaryKey(123), + userId=userIdExample.value, + idGivenByProvider="string", + provider=providerExample.value, + emailAddress=emailAddressExample.value, + name=userNameExample.value, + createdByConsentId=Some("string"), + createdByUserInvitationId=Some("string"), + isDeleted=Some(true), + lastMarketingAgreementSignedDate=Some(toDate(dateExample)))) + ), + exampleInboundMessage = ( + InBoundGetAccountsHeldByUser(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data=List( BankIdAccountId(bankId=BankId(bankIdExample.value), + accountId=AccountId(accountIdExample.value)))) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def getAccountsHeldByUser(user: User, callContext: Option[CallContext]): OBPReturnType[Box[List[BankIdAccountId]]] = { + import com.openbankproject.commons.dto.{InBoundGetAccountsHeldByUser => InBound, OutBoundGetAccountsHeldByUser => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, user) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_get_accounts_held_by_user", req, callContext) + response.map(convertToTuple[List[BankIdAccountId]](callContext)) + } + messageDocs += checkBankAccountExistsDoc def checkBankAccountExistsDoc = MessageDoc( process = "obp.checkBankAccountExists", @@ -2353,6 +2455,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { amount=amountExample.value), creditorAccount=PaymentAccount("string"), creditorName="string")), + to_agent=Some( TransactionRequestAgentCashWithdrawal(bank_id=bank_idExample.value, + agent_number="string")), value= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), description=descriptionExample.value), @@ -2516,6 +2620,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { amount=amountExample.value), creditorAccount=PaymentAccount("string"), creditorName="string")), + to_agent=Some( TransactionRequestAgentCashWithdrawal(bank_id=bank_idExample.value, + agent_number="string")), value= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), description=descriptionExample.value), @@ -2566,7 +2672,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { inboundTopic = None, exampleOutboundMessage = ( OutBoundCreateTransactionRequestSepaCreditTransfersBGV1(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, - initiator= Some(UserCommons(userPrimaryKey=UserPrimaryKey(123), + initiator=Some( UserCommons(userPrimaryKey=UserPrimaryKey(123), userId=userIdExample.value, idGivenByProvider="string", provider=providerExample.value, @@ -2631,7 +2737,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { inboundTopic = None, exampleOutboundMessage = ( OutBoundCreateTransactionRequestPeriodicSepaCreditTransfersBGV1(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, - initiator= Some(UserCommons(userPrimaryKey=UserPrimaryKey(123), + initiator=Some( UserCommons(userPrimaryKey=UserPrimaryKey(123), userId=userIdExample.value, idGivenByProvider="string", provider=providerExample.value, @@ -2865,6 +2971,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { amount=amountExample.value), creditorAccount=PaymentAccount("string"), creditorName="string")), + to_agent=Some( TransactionRequestAgentCashWithdrawal(bank_id=bank_idExample.value, + agent_number="string")), value= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), description=descriptionExample.value), @@ -2969,6 +3077,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { amount=amountExample.value), creditorAccount=PaymentAccount("string"), creditorName="string")), + to_agent=Some( TransactionRequestAgentCashWithdrawal(bank_id=bank_idExample.value, + agent_number="string")), value= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), description=descriptionExample.value), @@ -3139,6 +3249,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { amount=amountExample.value), creditorAccount=PaymentAccount("string"), creditorName="string")), + to_agent=Some( TransactionRequestAgentCashWithdrawal(bank_id=bank_idExample.value, + agent_number="string")), value= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), description=descriptionExample.value), @@ -3222,6 +3334,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { amount=amountExample.value), creditorAccount=PaymentAccount("string"), creditorName="string")), + to_agent=Some( TransactionRequestAgentCashWithdrawal(bank_id=bank_idExample.value, + agent_number="string")), value= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), description=descriptionExample.value), @@ -3408,8 +3522,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { exampleInboundMessage = ( InBoundGetProducts(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, status=MessageDocsSwaggerDefinitions.inboundStatus, - data=List( ProductCommons( - bankId=BankId(bankIdExample.value), + data=List( ProductCommons(bankId=BankId(bankIdExample.value), code=ProductCode(productCodeExample.value), parentProductCode=ProductCode(parentProductCodeExample.value), name=productNameExample.value, @@ -3448,8 +3561,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { exampleInboundMessage = ( InBoundGetProduct(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, status=MessageDocsSwaggerDefinitions.inboundStatus, - data= ProductCommons( - bankId=BankId(bankIdExample.value), + data= ProductCommons(bankId=BankId(bankIdExample.value), code=ProductCode(productCodeExample.value), parentProductCode=ProductCode(parentProductCodeExample.value), name=productNameExample.value, @@ -3695,7 +3807,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { moreInfo=Some(moreInfoExample.value), hasDepositCapability=Some(hasDepositCapabilityExample.value.toBoolean), supportedLanguages=Some(supportedLanguagesExample.value.replace("[","").replace("]","").split(",").toList), - services=Some(listExample.value.replace("[","").replace("]","").split(",").toList), + services=Some(servicesExample.value.replace("[","").replace("]","").split(",").toList), accessibilityFeatures=Some(accessibilityFeaturesExample.value.replace("[","").replace("]","").split(",").toList), supportedCurrencies=Some(supportedCurrenciesExample.value.replace("[","").replace("]","").split(",").toList), notes=Some(listExample.value.replace("[","").replace("]","").split(",").toList), @@ -3776,7 +3888,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { moreInfo=Some(moreInfoExample.value), hasDepositCapability=Some(hasDepositCapabilityExample.value.toBoolean), supportedLanguages=Some(supportedLanguagesExample.value.replace("[","").replace("]","").split(",").toList), - services=Some(listExample.value.replace("[","").replace("]","").split(",").toList), + services=Some(servicesExample.value.replace("[","").replace("]","").split(",").toList), accessibilityFeatures=Some(accessibilityFeaturesExample.value.replace("[","").replace("]","").split(",").toList), supportedCurrencies=Some(supportedCurrenciesExample.value.replace("[","").replace("]","").split(",").toList), notes=Some(listExample.value.replace("[","").replace("]","").split(",").toList), @@ -3809,12 +3921,14 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { outboundTopic = None, inboundTopic = None, exampleOutboundMessage = ( - OutBoundGetCurrentFxRate(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext,bankId=BankId(bankIdExample.value), + OutBoundGetCurrentFxRate(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + bankId=BankId(bankIdExample.value), fromCurrencyCode=fromCurrencyCodeExample.value, toCurrencyCode=toCurrencyCodeExample.value) ), exampleInboundMessage = ( - InBoundGetCurrentFxRate(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext,status=MessageDocsSwaggerDefinitions.inboundStatus, + InBoundGetCurrentFxRate(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, data= FXRateCommons(bankId=BankId(bankIdExample.value), fromCurrencyCode=fromCurrencyCodeExample.value, toCurrencyCode=toCurrencyCodeExample.value, @@ -3827,7 +3941,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { override def getCurrentFxRate(bankId: BankId, fromCurrencyCode: String, toCurrencyCode: String, callContext: Option[CallContext]): Box[FXRate] = { import com.openbankproject.commons.dto.{InBoundGetCurrentFxRate => InBound, OutBoundGetCurrentFxRate => OutBound} - val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull,bankId, fromCurrencyCode, toCurrencyCode) + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, bankId, fromCurrencyCode, toCurrencyCode) val response: Future[Box[InBound]] = sendRequest[InBound]("obp_get_current_fx_rate", req, callContext) response.map(convertToTuple[FXRateCommons](callContext)) } @@ -3924,6 +4038,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { amount=amountExample.value), creditorAccount=PaymentAccount("string"), creditorName="string")), + to_agent=Some( TransactionRequestAgentCashWithdrawal(bank_id=bank_idExample.value, + agent_number="string")), value= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), description=descriptionExample.value), @@ -4194,6 +4310,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { amount=amountExample.value), creditorAccount=PaymentAccount("string"), creditorName="string")), + to_agent=Some( TransactionRequestAgentCashWithdrawal(bank_id=bank_idExample.value, + agent_number="string")), value= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), description=descriptionExample.value), @@ -4293,6 +4411,8 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { amount=amountExample.value), creditorAccount=PaymentAccount("string"), creditorName="string")), + to_agent=Some( TransactionRequestAgentCashWithdrawal(bank_id=bank_idExample.value, + agent_number="string")), value= AmountOfMoney(currency=currencyExample.value, amount=amountExample.value), description=descriptionExample.value), @@ -5471,6 +5591,37 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { response.map(convertToTuple[ProductAttributeCommons](callContext)) } + messageDocs += getBankAttributesByBankDoc + def getBankAttributesByBankDoc = MessageDoc( + process = "obp.getBankAttributesByBank", + messageFormat = messageFormat, + description = "Get Bank Attributes By Bank", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundGetBankAttributesByBank(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + bankId=BankId(bankIdExample.value)) + ), + exampleInboundMessage = ( + InBoundGetBankAttributesByBank(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data=List( BankAttributeTraitCommons(bankId=BankId(bankIdExample.value), + bankAttributeId="string", + attributeType=com.openbankproject.commons.model.enums.BankAttributeType.example, + name=nameExample.value, + value=valueExample.value, + isActive=Some(isActiveExample.value.toBoolean)))) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def getBankAttributesByBank(bankId: BankId, callContext: Option[CallContext]): OBPReturnType[Box[List[BankAttributeTrait]]] = { + import com.openbankproject.commons.dto.{InBoundGetBankAttributesByBank => InBound, OutBoundGetBankAttributesByBank => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, bankId) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_get_bank_attributes_by_bank", req, callContext) + response.map(convertToTuple[List[BankAttributeTraitCommons]](callContext)) + } + messageDocs += getProductAttributeByIdDoc def getProductAttributeByIdDoc = MessageDoc( process = "obp.getProductAttributeById", @@ -6369,8 +6520,7 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { status=MessageDocsSwaggerDefinitions.inboundStatus, data=List( ProductCollectionItemsTree(productCollectionItem= ProductCollectionItemCommons(collectionCode=collectionCodeExample.value, memberProductCode=memberProductCodeExample.value), - product= ProductCommons( - bankId=BankId(bankIdExample.value), + product= ProductCommons(bankId=BankId(bankIdExample.value), code=ProductCode(productCodeExample.value), parentProductCode=ProductCode(parentProductCodeExample.value), name=productNameExample.value, @@ -7057,8 +7207,245 @@ trait StoredProcedureConnector_vDec2019 extends Connector with MdcLoggable { response.map(convertToTuple[Boolean](callContext)) } -// ---------- created on 2024-10-30T11:51:31Z -//---------------- dynamic end ---------------------please don't modify this line + messageDocs += getRegulatedEntitiesDoc + def getRegulatedEntitiesDoc = MessageDoc( + process = "obp.getRegulatedEntities", + messageFormat = messageFormat, + description = "Get Regulated Entities", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundGetRegulatedEntities(MessageDocsSwaggerDefinitions.outboundAdapterCallContext) + ), + exampleInboundMessage = ( + InBoundGetRegulatedEntities(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data=List( RegulatedEntityTraitCommons(entityId=entityIdExample.value, + certificateAuthorityCaOwnerId=certificateAuthorityCaOwnerIdExample.value, + entityName=entityNameExample.value, + entityCode=entityCodeExample.value, + entityCertificatePublicKey=entityCertificatePublicKeyExample.value, + entityType=entityTypeExample.value, + entityAddress=entityAddressExample.value, + entityTownCity=entityTownCityExample.value, + entityPostCode=entityPostCodeExample.value, + entityCountry=entityCountryExample.value, + entityWebSite=entityWebSiteExample.value, + services=servicesExample.value, + attributes=Some(List( RegulatedEntityAttributeSimple(attributeType=attributeTypeExample.value, + name=nameExample.value, + value=valueExample.value)))))) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def getRegulatedEntities(callContext: Option[CallContext]): OBPReturnType[Box[List[RegulatedEntityTrait]]] = { + import com.openbankproject.commons.dto.{InBoundGetRegulatedEntities => InBound, OutBoundGetRegulatedEntities => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_get_regulated_entities", req, callContext) + response.map(convertToTuple[List[RegulatedEntityTraitCommons]](callContext)) + } + + messageDocs += getRegulatedEntityByEntityIdDoc + def getRegulatedEntityByEntityIdDoc = MessageDoc( + process = "obp.getRegulatedEntityByEntityId", + messageFormat = messageFormat, + description = "Get Regulated Entity By Entity Id", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundGetRegulatedEntityByEntityId(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + regulatedEntityId="string") + ), + exampleInboundMessage = ( + InBoundGetRegulatedEntityByEntityId(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data= RegulatedEntityTraitCommons(entityId=entityIdExample.value, + certificateAuthorityCaOwnerId=certificateAuthorityCaOwnerIdExample.value, + entityName=entityNameExample.value, + entityCode=entityCodeExample.value, + entityCertificatePublicKey=entityCertificatePublicKeyExample.value, + entityType=entityTypeExample.value, + entityAddress=entityAddressExample.value, + entityTownCity=entityTownCityExample.value, + entityPostCode=entityPostCodeExample.value, + entityCountry=entityCountryExample.value, + entityWebSite=entityWebSiteExample.value, + services=servicesExample.value, + attributes=Some(List( RegulatedEntityAttributeSimple(attributeType=attributeTypeExample.value, + name=nameExample.value, + value=valueExample.value))))) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def getRegulatedEntityByEntityId(regulatedEntityId: String, callContext: Option[CallContext]): OBPReturnType[Box[RegulatedEntityTrait]] = { + import com.openbankproject.commons.dto.{InBoundGetRegulatedEntityByEntityId => InBound, OutBoundGetRegulatedEntityByEntityId => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, regulatedEntityId) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_get_regulated_entity_by_entity_id", req, callContext) + response.map(convertToTuple[RegulatedEntityTraitCommons](callContext)) + } + + messageDocs += getBankAccountBalancesByAccountIdDoc + def getBankAccountBalancesByAccountIdDoc = MessageDoc( + process = "obp.getBankAccountBalancesByAccountId", + messageFormat = messageFormat, + description = "Get Bank Account Balances By Account Id", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundGetBankAccountBalancesByAccountId(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + accountId=AccountId(accountIdExample.value)) + ), + exampleInboundMessage = ( + InBoundGetBankAccountBalancesByAccountId(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data=List( BankAccountBalanceTraitCommons(bankId=BankId(bankIdExample.value), + accountId=AccountId(accountIdExample.value), + balanceId=BalanceId(balanceIdExample.value), + balanceType=balanceTypeExample.value, + balanceAmount=BigDecimal(balanceAmountExample.value), + lastChangeDateTime=Some(toDate(dateExample)), + referenceDate=Some(referenceDateExample.value)))) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def getBankAccountBalancesByAccountId(accountId: AccountId, callContext: Option[CallContext]): OBPReturnType[Box[List[BankAccountBalanceTrait]]] = { + import com.openbankproject.commons.dto.{InBoundGetBankAccountBalancesByAccountId => InBound, OutBoundGetBankAccountBalancesByAccountId => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, accountId) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_get_bank_account_balances_by_account_id", req, callContext) + response.map(convertToTuple[List[BankAccountBalanceTraitCommons]](callContext)) + } + + messageDocs += getBankAccountsBalancesByAccountIdsDoc + def getBankAccountsBalancesByAccountIdsDoc = MessageDoc( + process = "obp.getBankAccountsBalancesByAccountIds", + messageFormat = messageFormat, + description = "Get Bank Accounts Balances By Account Ids", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundGetBankAccountsBalancesByAccountIds(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + accountIds=List(AccountId(accountIdExample.value))) + ), + exampleInboundMessage = ( + InBoundGetBankAccountsBalancesByAccountIds(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data=List( BankAccountBalanceTraitCommons(bankId=BankId(bankIdExample.value), + accountId=AccountId(accountIdExample.value), + balanceId=BalanceId(balanceIdExample.value), + balanceType=balanceTypeExample.value, + balanceAmount=BigDecimal(balanceAmountExample.value), + lastChangeDateTime=Some(toDate(dateExample)), + referenceDate=Some(referenceDateExample.value)))) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def getBankAccountsBalancesByAccountIds(accountIds: List[AccountId], callContext: Option[CallContext]): OBPReturnType[Box[List[BankAccountBalanceTrait]]] = { + import com.openbankproject.commons.dto.{InBoundGetBankAccountsBalancesByAccountIds => InBound, OutBoundGetBankAccountsBalancesByAccountIds => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, accountIds) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_get_bank_accounts_balances_by_account_ids", req, callContext) + response.map(convertToTuple[List[BankAccountBalanceTraitCommons]](callContext)) + } + + messageDocs += getBankAccountBalanceByIdDoc + def getBankAccountBalanceByIdDoc = MessageDoc( + process = "obp.getBankAccountBalanceById", + messageFormat = messageFormat, + description = "Get Bank Account Balance By Id", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundGetBankAccountBalanceById(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + balanceId=BalanceId(balanceIdExample.value)) + ), + exampleInboundMessage = ( + InBoundGetBankAccountBalanceById(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data= BankAccountBalanceTraitCommons(bankId=BankId(bankIdExample.value), + accountId=AccountId(accountIdExample.value), + balanceId=BalanceId(balanceIdExample.value), + balanceType=balanceTypeExample.value, + balanceAmount=BigDecimal(balanceAmountExample.value), + lastChangeDateTime=Some(toDate(dateExample)), + referenceDate=Some(referenceDateExample.value))) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def getBankAccountBalanceById(balanceId: BalanceId, callContext: Option[CallContext]): OBPReturnType[Box[BankAccountBalanceTrait]] = { + import com.openbankproject.commons.dto.{InBoundGetBankAccountBalanceById => InBound, OutBoundGetBankAccountBalanceById => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, balanceId) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_get_bank_account_balance_by_id", req, callContext) + response.map(convertToTuple[BankAccountBalanceTraitCommons](callContext)) + } + + messageDocs += createOrUpdateBankAccountBalanceDoc + def createOrUpdateBankAccountBalanceDoc = MessageDoc( + process = "obp.createOrUpdateBankAccountBalance", + messageFormat = messageFormat, + description = "Create Or Update Bank Account Balance", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundCreateOrUpdateBankAccountBalance(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + bankId=BankId(bankIdExample.value), + accountId=AccountId(accountIdExample.value), + balanceId=Some(BalanceId(balanceIdExample.value)), + balanceType=balanceTypeExample.value, + balanceAmount=BigDecimal(balanceAmountExample.value)) + ), + exampleInboundMessage = ( + InBoundCreateOrUpdateBankAccountBalance(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data= BankAccountBalanceTraitCommons(bankId=BankId(bankIdExample.value), + accountId=AccountId(accountIdExample.value), + balanceId=BalanceId(balanceIdExample.value), + balanceType=balanceTypeExample.value, + balanceAmount=BigDecimal(balanceAmountExample.value), + lastChangeDateTime=Some(toDate(dateExample)), + referenceDate=Some(referenceDateExample.value))) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def createOrUpdateBankAccountBalance(bankId: BankId, accountId: AccountId, balanceId: Option[BalanceId], balanceType: String, balanceAmount: BigDecimal, callContext: Option[CallContext]): OBPReturnType[Box[BankAccountBalanceTrait]] = { + import com.openbankproject.commons.dto.{InBoundCreateOrUpdateBankAccountBalance => InBound, OutBoundCreateOrUpdateBankAccountBalance => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, bankId, accountId, balanceId, balanceType, balanceAmount) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_create_or_update_bank_account_balance", req, callContext) + response.map(convertToTuple[BankAccountBalanceTraitCommons](callContext)) + } + + messageDocs += deleteBankAccountBalanceDoc + def deleteBankAccountBalanceDoc = MessageDoc( + process = "obp.deleteBankAccountBalance", + messageFormat = messageFormat, + description = "Delete Bank Account Balance", + outboundTopic = None, + inboundTopic = None, + exampleOutboundMessage = ( + OutBoundDeleteBankAccountBalance(outboundAdapterCallContext=MessageDocsSwaggerDefinitions.outboundAdapterCallContext, + balanceId=BalanceId(balanceIdExample.value)) + ), + exampleInboundMessage = ( + InBoundDeleteBankAccountBalance(inboundAdapterCallContext=MessageDocsSwaggerDefinitions.inboundAdapterCallContext, + status=MessageDocsSwaggerDefinitions.inboundStatus, + data=true) + ), + adapterImplementation = Some(AdapterImplementation("- Core", 1)) + ) + + override def deleteBankAccountBalance(balanceId: BalanceId, callContext: Option[CallContext]): OBPReturnType[Box[Boolean]] = { + import com.openbankproject.commons.dto.{InBoundDeleteBankAccountBalance => InBound, OutBoundDeleteBankAccountBalance => OutBound} + val req = OutBound(callContext.map(_.toOutboundAdapterCallContext).orNull, balanceId) + val response: Future[Box[InBound]] = sendRequest[InBound]("obp_delete_bank_account_balance", req, callContext) + response.map(convertToTuple[Boolean](callContext)) + } + +// ---------- created on 2026-02-10T15:25:46Z +//---------------- dynamic end ---------------------please don't modify this line private val availableOperation = DynamicEntityOperation.values.map(it => s""""$it"""").mkString("[", ", ", "]")