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

(-)a/Koha/AdditionalField.pm (-3 / +5 lines)
Lines 55-63 sub to_api { Link Here
55
    my ( $self, $params ) = @_;
55
    my ( $self, $params ) = @_;
56
56
57
    my $table_to_resource = {
57
    my $table_to_resource = {
58
        'aqbasket'   => 'basket',
58
        'accountlines:credit' => 'credit',
59
        'aqinvoices' => 'invoice',
59
        'accountlines:debit'  => 'debit',
60
        'aqorders'   => 'order',
60
        'aqbasket'            => 'basket',
61
        'aqinvoices'          => 'invoice',
62
        'aqorders'            => 'order',
61
    };
63
    };
62
64
63
    my $json = $self->SUPER::to_api($params);
65
    my $json = $self->SUPER::to_api($params);
(-)a/Koha/REST/V1/ExtendedAttributeTypes.pm (+2 lines)
Lines 47-52 sub list { Link Here
47
    # FIXME: Maybe not the best place for this mapping
47
    # FIXME: Maybe not the best place for this mapping
48
    my $resource_to_table = {
48
    my $resource_to_table = {
49
        basket  => 'aqbasket',
49
        basket  => 'aqbasket',
50
        credit  => 'accountlines:credit',
51
        debit   => 'accountlines:debit',
50
        invoice => 'aqinvoices',
52
        invoice => 'aqinvoices',
51
        order   => 'aqorders',
53
        order   => 'aqorders',
52
    };
54
    };
(-)a/api/v1/swagger/paths/extended_attribute_types.yaml (-3 / +2 lines)
Lines 15-25 Link Here
15
        type: string
15
        type: string
16
        enum:
16
        enum:
17
          - basket
17
          - basket
18
          - credit
19
          - debit
18
          - invoice
20
          - invoice
19
          - order
21
          - order
20
          - subscription
22
          - subscription
21
          - accountlines:credit
22
          - accountlines:debit
23
      - $ref: "../swagger.yaml#/parameters/match"
23
      - $ref: "../swagger.yaml#/parameters/match"
24
      - $ref: "../swagger.yaml#/parameters/order_by"
24
      - $ref: "../swagger.yaml#/parameters/order_by"
25
      - $ref: "../swagger.yaml#/parameters/page"
25
      - $ref: "../swagger.yaml#/parameters/page"
26
- 

Return to bug 37262