Browse Source

Bug 23049: Update API

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>
remotes/origin/19.11.x
Martin Renvoize 3 years ago
parent
commit
0bd6e03c65
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 2
      Koha/REST/V1/Patrons/Account.pm
  2. 4
      api/v1/swagger/definitions/account_line.json

2
Koha/REST/V1/Patrons/Account.pm

@ -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',

4
api/v1/swagger/definitions/account_line.json

@ -43,6 +43,10 @@
"type": "string",
"description": "Account line type"
},
"debit_type": {
"type": "string",
"description": "Account line debit type"
},
"payment_type": {
"type": [
"string",

Loading…
Cancel
Save