Пример #1
0
        public virtual IActionResult ListTransactionsSpecificAccounts([FromBody] RequestAccountIds accountIds, [FromQuery] string startTime, [FromQuery] string endTime, [FromQuery] string minAmount, [FromQuery] string maxAmount, [FromQuery] string text, [FromQuery] int?page, [FromQuery] int?pageSize)
        {
            //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(200, default(ResponseBankingTransactionList));

            //TODO: Uncomment the next line to return response 422 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(422, default(ResponseErrorList));

            string exampleJson = null;

            exampleJson = "{\n  \"data\" : {\n    \"transactions\" : [ {\n      \"postingDateTime\" : \"postingDateTime\",\n      \"amount\" : \"amount\",\n      \"apcaNumber\" : \"apcaNumber\",\n      \"isDetailAvailable\" : true,\n      \"description\" : \"description\",\n      \"type\" : \"FEE\",\n      \"billerName\" : \"billerName\",\n      \"executionDateTime\" : \"executionDateTime\",\n      \"transactionId\" : \"transactionId\",\n      \"merchantName\" : \"merchantName\",\n      \"billerCode\" : \"billerCode\",\n      \"reference\" : \"reference\",\n      \"accountId\" : \"accountId\",\n      \"merchantCategoryCode\" : \"merchantCategoryCode\",\n      \"valueDateTime\" : \"valueDateTime\",\n      \"currency\" : \"currency\",\n      \"crn\" : \"crn\",\n      \"status\" : \"PENDING\"\n    }, {\n      \"postingDateTime\" : \"postingDateTime\",\n      \"amount\" : \"amount\",\n      \"apcaNumber\" : \"apcaNumber\",\n      \"isDetailAvailable\" : true,\n      \"description\" : \"description\",\n      \"type\" : \"FEE\",\n      \"billerName\" : \"billerName\",\n      \"executionDateTime\" : \"executionDateTime\",\n      \"transactionId\" : \"transactionId\",\n      \"merchantName\" : \"merchantName\",\n      \"billerCode\" : \"billerCode\",\n      \"reference\" : \"reference\",\n      \"accountId\" : \"accountId\",\n      \"merchantCategoryCode\" : \"merchantCategoryCode\",\n      \"valueDateTime\" : \"valueDateTime\",\n      \"currency\" : \"currency\",\n      \"crn\" : \"crn\",\n      \"status\" : \"PENDING\"\n    } ]\n  },\n  \"meta\" : {\n    \"totalRecords\" : 0,\n    \"totalPages\" : 6\n  },\n  \"links\" : {\n    \"next\" : \"next\",\n    \"last\" : \"last\",\n    \"prev\" : \"prev\",\n    \"self\" : \"self\",\n    \"first\" : \"first\"\n  }\n}";

            var example = exampleJson != null
            ? JsonConvert.DeserializeObject <ResponseBankingTransactionList>(exampleJson)
            : default(ResponseBankingTransactionList);

            //TODO: Change the data returned
            return(new ObjectResult(example));
        }
Пример #2
0
        public virtual IActionResult ListDirectDebitsSpecificAccounts([FromBody] RequestAccountIds accountIds, [FromQuery] int?page, [FromQuery] int?pageSize)
        {
            //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(200, default(ResponseBankingDirectDebitAuthorisationList));

            //TODO: Uncomment the next line to return response 422 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(422, default(ResponseErrorList));

            string exampleJson = null;

            exampleJson = "{\n  \"data\" : {\n    \"directDebitAuthorisations\" : [ {\n      \"lastDebitAmount\" : \"lastDebitAmount\",\n      \"accountId\" : \"accountId\",\n      \"lastDebitDateTime\" : \"lastDebitDateTime\",\n      \"authorisedEntity\" : {\n        \"arbn\" : \"arbn\",\n        \"name\" : \"name\",\n        \"financialInstitution\" : \"financialInstitution\",\n        \"abn\" : \"abn\",\n        \"acn\" : \"acn\"\n      }\n    }, {\n      \"lastDebitAmount\" : \"lastDebitAmount\",\n      \"accountId\" : \"accountId\",\n      \"lastDebitDateTime\" : \"lastDebitDateTime\",\n      \"authorisedEntity\" : {\n        \"arbn\" : \"arbn\",\n        \"name\" : \"name\",\n        \"financialInstitution\" : \"financialInstitution\",\n        \"abn\" : \"abn\",\n        \"acn\" : \"acn\"\n      }\n    } ]\n  },\n  \"meta\" : {\n    \"totalRecords\" : 0,\n    \"totalPages\" : 6\n  },\n  \"links\" : {\n    \"next\" : \"next\",\n    \"last\" : \"last\",\n    \"prev\" : \"prev\",\n    \"self\" : \"self\",\n    \"first\" : \"first\"\n  }\n}";

            var example = exampleJson != null
            ? JsonConvert.DeserializeObject <ResponseBankingDirectDebitAuthorisationList>(exampleJson)
            : default(ResponseBankingDirectDebitAuthorisationList);

            //TODO: Change the data returned
            return(new ObjectResult(example));
        }
Пример #3
0
        public virtual IActionResult ListBalancesSpecificAccounts([FromBody] RequestAccountIds accountIds, [FromQuery] int?page, [FromQuery] int?pageSize)
        {
            //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(200, default(ResponseBankingAccountsBalanceList));

            //TODO: Uncomment the next line to return response 422 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
            // return StatusCode(422, default(ResponseErrorList));

            string exampleJson = null;

            exampleJson = "{\n  \"data\" : {\n    \"balances\" : [ {\n      \"accountId\" : \"accountId\",\n      \"purses\" : [ {\n        \"amount\" : \"amount\",\n        \"currency\" : \"currency\"\n      }, {\n        \"amount\" : \"amount\",\n        \"currency\" : \"currency\"\n      } ],\n      \"lending\" : {\n        \"amortisedLimit\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        },\n        \"creditLimit\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        },\n        \"accountBalance\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        },\n        \"availableBalance\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        }\n      },\n      \"deposit\" : {\n        \"currentBalance\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        },\n        \"availableBalance\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        }\n      },\n      \"balanceUType\" : \"deposit\"\n    }, {\n      \"accountId\" : \"accountId\",\n      \"purses\" : [ {\n        \"amount\" : \"amount\",\n        \"currency\" : \"currency\"\n      }, {\n        \"amount\" : \"amount\",\n        \"currency\" : \"currency\"\n      } ],\n      \"lending\" : {\n        \"amortisedLimit\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        },\n        \"creditLimit\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        },\n        \"accountBalance\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        },\n        \"availableBalance\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        }\n      },\n      \"deposit\" : {\n        \"currentBalance\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        },\n        \"availableBalance\" : {\n          \"amount\" : \"amount\",\n          \"currency\" : \"currency\"\n        }\n      },\n      \"balanceUType\" : \"deposit\"\n    } ]\n  },\n  \"meta\" : {\n    \"totalRecords\" : 0,\n    \"totalPages\" : 6\n  },\n  \"links\" : {\n    \"next\" : \"next\",\n    \"last\" : \"last\",\n    \"prev\" : \"prev\",\n    \"self\" : \"self\",\n    \"first\" : \"first\"\n  }\n}";

            var example = exampleJson != null
            ? JsonConvert.DeserializeObject <ResponseBankingAccountsBalanceList>(exampleJson)
            : default(ResponseBankingAccountsBalanceList);

            //TODO: Change the data returned
            return(new ObjectResult(example));
        }