View | Details | Raw Unified | Return to bug 23049
Collapse All | Expand All

(-)a/Koha/REST/V1/Patrons/Account.pm (+2 lines)
Lines 228-233 sub _to_model { Link Here
228
our $to_api_mapping = {
228
our $to_api_mapping = {
229
    accountlines_id   => 'account_line_id',
229
    accountlines_id   => 'account_line_id',
230
    accounttype       => 'account_type',
230
    accounttype       => 'account_type',
231
    debit_type_code   => 'debit_type',
231
    amountoutstanding => 'amount_outstanding',
232
    amountoutstanding => 'amount_outstanding',
232
    borrowernumber    => 'patron_id',
233
    borrowernumber    => 'patron_id',
233
    branchcode        => 'library_id',
234
    branchcode        => 'library_id',
Lines 244-249 our $to_api_mapping = { Link Here
244
our $to_model_mapping = {
245
our $to_model_mapping = {
245
    account_line_id    => 'accountlines_id',
246
    account_line_id    => 'accountlines_id',
246
    account_type       => 'accounttype',
247
    account_type       => 'accounttype',
248
    debit_type         => 'debit_type_code',
247
    amount_outstanding => 'amountoutstanding',
249
    amount_outstanding => 'amountoutstanding',
248
    checkout_id        => 'issue_id',
250
    checkout_id        => 'issue_id',
249
    internal_note      => 'note',
251
    internal_note      => 'note',
(-)a/api/v1/swagger/definitions/account_line.json (-1 / +4 lines)
Lines 43-48 Link Here
43
      "type": "string",
43
      "type": "string",
44
      "description": "Account line type"
44
      "description": "Account line type"
45
    },
45
    },
46
    "debit_type": {
47
      "type": "string",
48
      "description": "Account line debit type"
49
    },
46
    "payment_type": {
50
    "payment_type": {
47
      "type": [
51
      "type": [
48
        "string",
52
        "string",
49
- 

Return to bug 23049