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

(-)a/Koha/Acquisition/Order/Claim.pm (+14 lines)
Lines 29-36 Koha::Acquisition::Order::Claim - Koha Claim Object class Link Here
29
29
30
=head2 Class methods
30
=head2 Class methods
31
31
32
33
=head3 to_api_mapping
34
35
This method returns the mapping for representing a Koha::Patron object
36
on the API.
37
32
=cut
38
=cut
33
39
40
sub to_api_mapping {
41
    return {
42
        id          => 'order_claim_id',
43
        ordernumber => 'order_id',
44
        claimed_on  => 'date_claimed',
45
    };
46
}
47
34
=head2 Internal methods
48
=head2 Internal methods
35
49
36
=head3 _type
50
=head3 _type
(-)a/api/v1/swagger/definitions/order_claim.yaml (+14 lines)
Line 0 Link Here
1
---
2
type: object
3
properties:
4
  order_claim_id:
5
    type: integer
6
    description: Internally assigned order claim identifier
7
  order_id:
8
    type: integer
9
    description: Internally assigned order identifier
10
  date_claimed:
11
    type: string
12
    format: date
13
    description: Date the claim was recorded
14
additionalProperties: false
(-)a/api/v1/swagger/swagger.yaml (-1 / +2 lines)
Lines 140-145 definitions: Link Here
140
    $ref: ./definitions/merge_biblios.yaml
140
    $ref: ./definitions/merge_biblios.yaml
141
  order:
141
  order:
142
    $ref: ./definitions/order.yaml
142
    $ref: ./definitions/order.yaml
143
  order_claim:
144
    $ref: ./definitions/order_claim.yaml
143
  patron:
145
  patron:
144
    $ref: ./definitions/patron.yaml
146
    $ref: ./definitions/patron.yaml
145
  patron_account_credit:
147
  patron_account_credit:
146
- 

Return to bug 39830