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

(-)a/Koha/Account/Line.pm (+2 lines)
Lines 943-948 on the API. Link Here
943
sub to_api_mapping {
943
sub to_api_mapping {
944
    return {
944
    return {
945
        accountlines_id   => 'account_line_id',
945
        accountlines_id   => 'account_line_id',
946
        credit_number     => undef,
946
        credit_type_code  => 'credit_type',
947
        credit_type_code  => 'credit_type',
947
        debit_type_code   => 'debit_type',
948
        debit_type_code   => 'debit_type',
948
        amountoutstanding => 'amount_outstanding',
949
        amountoutstanding => 'amount_outstanding',
Lines 952-957 sub to_api_mapping { Link Here
952
        itemnumber        => 'item_id',
953
        itemnumber        => 'item_id',
953
        manager_id        => 'user_id',
954
        manager_id        => 'user_id',
954
        note              => 'internal_note',
955
        note              => 'internal_note',
956
        register_id       => 'cash_register_id',
955
    };
957
    };
956
958
957
}
959
}
(-)a/Koha/Club/Hold.pm (+1 lines)
Lines 79-84 sub add { Link Here
79
    };
79
    };
80
80
81
    my $club_hold = Koha::Club::Hold->new($club_params)->store();
81
    my $club_hold = Koha::Club::Hold->new($club_params)->store();
82
    $club_hold->discard_changes;
82
83
83
    @enrollments = shuffle(@enrollments);
84
    @enrollments = shuffle(@enrollments);
84
85
(-)a/api/v1/swagger/definitions/account_line.json (+19 lines)
Lines 53-58 Link Here
53
      ],
53
      ],
54
      "description": "Account line debit type"
54
      "description": "Account line debit type"
55
    },
55
    },
56
    "credit_type": {
57
      "type": [
58
          "string",
59
          "null"
60
      ],
61
      "description": "Account line credit type"
62
    },
56
    "payment_type": {
63
    "payment_type": {
57
      "type": [
64
      "type": [
58
        "string",
65
        "string",
Lines 96-101 Link Here
96
        "null"
103
        "null"
97
      ],
104
      ],
98
      "description": "Internal identifier for the library in which the transaction took place"
105
      "description": "Internal identifier for the library in which the transaction took place"
106
    },
107
    "interface": {
108
      "type": [ "string", "null" ],
109
      "description": "Interface in which the account line was generated (values can be: api, cron, commandline, intranet, opac and sip)"
110
    },
111
    "status": {
112
      "type": [ "string", "null" ],
113
      "description": "The credit/debit status"
114
    },
115
    "cash_register_id": {
116
      "type": [ "integer", "null" ],
117
      "description": "Internal identifier for the cash register used for the payment (if any)"
99
    }
118
    }
100
  },
119
  },
101
  "additionalProperties": false
120
  "additionalProperties": false
(-)a/api/v1/swagger/definitions/club_hold.json (+5 lines)
Lines 16-21 Link Here
16
      "item_id": {
16
      "item_id": {
17
        "type": ["string", "null"],
17
        "type": ["string", "null"],
18
        "description": "Internal item identifier"
18
        "description": "Internal item identifier"
19
      },
20
      "date_created": {
21
        "type": "string",
22
        "format": "date-time",
23
        "description": "Date and time the hold was created"
19
      }
24
      }
20
    },
25
    },
21
    "additionalProperties": false
26
    "additionalProperties": false
(-)a/api/v1/swagger/definitions/error.json (-2 / +1 lines)
Lines 5-10 Link Here
5
      "description": "Error message",
5
      "description": "Error message",
6
      "type": "string"
6
      "type": "string"
7
    }
7
    }
8
  },
8
  }
9
  "additionalProperties": false
10
}
9
}
(-)a/api/v1/swagger/definitions/import_batch_profile.json (-1 / +1 lines)
Lines 1-7 Link Here
1
{
1
{
2
  "type": "object",
2
  "type": "object",
3
  "properties": {
3
  "properties": {
4
    "id_profile": {
4
    "profile_id": {
5
      "type": "integer",
5
      "type": "integer",
6
      "description": "Internal profile identifier"
6
      "description": "Internal profile identifier"
7
    },
7
    },
(-)a/t/db_dependent/api/v1/import_batch_profiles.t (-3 / +1 lines)
Lines 106-112 subtest 'list profiles' => sub { Link Here
106
      ->json_is('/0/name', $ibp1->name)
106
      ->json_is('/0/name', $ibp1->name)
107
      ->json_is('/1/name', $ibp2->name);
107
      ->json_is('/1/name', $ibp2->name);
108
108
109
110
    $schema->storage->txn_rollback;
109
    $schema->storage->txn_rollback;
111
110
112
};
111
};
Lines 238-241 subtest 'delete profile' => sub { Link Here
238
237
239
    $schema->storage->txn_rollback;
238
    $schema->storage->txn_rollback;
240
239
241
};
240
};
242
- 

Return to bug 28272