Bug 23049: Update API
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 10 Oct 2019 16:09:21 +0000 (17:09 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 24 Oct 2019 16:24:48 +0000 (17:24 +0100)
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/REST/V1/Patrons/Account.pm
api/v1/swagger/definitions/account_line.json

index d7263d8..5c7a7f3 100644 (file)
@@ -226,6 +226,7 @@ sub _to_model {
 our $to_api_mapping = {
     accountlines_id   => 'account_line_id',
     accounttype       => 'account_type',
+    debit_type_code   => 'debit_type',
     amountoutstanding => 'amount_outstanding',
     borrowernumber    => 'patron_id',
     branchcode        => 'library_id',
@@ -242,6 +243,7 @@ our $to_api_mapping = {
 our $to_model_mapping = {
     account_line_id    => 'accountlines_id',
     account_type       => 'accounttype',
+    debit_type         => 'debit_type_code',
     amount_outstanding => 'amountoutstanding',
     checkout_id        => 'issue_id',
     internal_note      => 'note',
index ac81f9d..b0e71e7 100644 (file)
       "type": "string",
       "description": "Account line type"
     },
+    "debit_type": {
+      "type": "string",
+      "description": "Account line debit type"
+    },
     "payment_type": {
       "type": [
         "string",