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

(-)a/Koha/Account/Debit.pm (+2 lines)
Lines 49-54 sub to_api_mapping { Link Here
49
        branchcode        => 'library_id',
49
        branchcode        => 'library_id',
50
        issue_id          => 'checkout_id',
50
        issue_id          => 'checkout_id',
51
        old_issue_id      => 'old_checkout_id',
51
        old_issue_id      => 'old_checkout_id',
52
        reserve_id        => 'hold_id',
53
        old_reserve_id    => 'old_hold_id',
52
        itemnumber        => 'item_id',
54
        itemnumber        => 'item_id',
53
        manager_id        => 'user_id',
55
        manager_id        => 'user_id',
54
        note              => 'internal_note',
56
        note              => 'internal_note',
(-)a/api/v1/swagger/definitions/debit.yaml (+10 lines)
Lines 28-33 properties: Link Here
28
      - integer
28
      - integer
29
      - "null"
29
      - "null"
30
    description: Internal identifier for the old checkout the account line is related to
30
    description: Internal identifier for the old checkout the account line is related to
31
  hold_id:
32
    type:
33
      - integer
34
      - "null"
35
    description: Internal identifier for the hold the account line is related to
36
  old_hold_id:
37
    type:
38
      - integer
39
      - "null"
40
    description: Internal identifier for the old hold the account line is related to
31
  date:
41
  date:
32
    type: string
42
    type: string
33
    format: date-time
43
    format: date-time
(-)a/api/v1/swagger/definitions/hold.yaml (+7 lines)
Lines 144-149 properties: Link Here
144
      - object
144
      - object
145
      - "null"
145
      - "null"
146
    description: Patron for hold
146
    description: Patron for hold
147
  debits:
148
    type:
149
      - array
150
      - "null"
151
    description: Debits (charges) linked to this hold (x-koha-embed)
152
    items:
153
      $ref: "./debit.yaml"
147
  _strings:
154
  _strings:
148
    type:
155
    type:
149
      - object
156
      - object
(-)a/api/v1/swagger/paths/holds.yaml (+11 lines)
Lines 108-113 Link Here
108
            - pickup_library
108
            - pickup_library
109
            - item
109
            - item
110
            - patron
110
            - patron
111
            - debits
111
        collectionFormat: csv
112
        collectionFormat: csv
112
    produces:
113
    produces:
113
      - application/json
114
      - application/json
Lines 231-236 Link Here
231
            - hold_limit
232
            - hold_limit
232
            - restricted
233
            - restricted
233
        collectionFormat: csv
234
        collectionFormat: csv
235
      - name: x-koha-embed
236
        in: header
237
        required: false
238
        description: Embed list sent as a request header
239
        type: array
240
        items:
241
          type: string
242
          enum:
243
            - debits
244
        collectionFormat: csv
234
    consumes:
245
    consumes:
235
      - application/json
246
      - application/json
236
    produces:
247
    produces:
(-)a/api/v1/swagger/paths/patrons_holds.yaml (-1 / +1 lines)
Lines 34-39 Link Here
34
            - deleted_biblio
34
            - deleted_biblio
35
            - item
35
            - item
36
            - pickup_library
36
            - pickup_library
37
            - debits
37
        collectionFormat: csv
38
        collectionFormat: csv
38
    produces:
39
    produces:
39
      - application/json
40
      - application/json
40
- 

Return to bug 40817