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

(-)a/api/v1/swagger/definitions/checkout.json (-1 / +5 lines)
Lines 54-60 Link Here
54
    },
54
    },
55
    "checkout_type": {
55
    "checkout_type": {
56
      "type": ["string", "null"],
56
      "type": ["string", "null"],
57
      "description": "Checkout type, an authorised value under CHECKOUT_TYPE category"
57
      "enum": [
58
        "CHECKOUT",
59
        "ONSITE"
60
      ],
61
      "description": "Checkout type"
58
    },
62
    },
59
    "note": {
63
    "note": {
60
      "type": ["string", "null"],
64
      "type": ["string", "null"],
(-)a/t/db_dependent/api/v1/checkouts.t (-2 / +2 lines)
Lines 17-23 Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Test::More tests => 93;
20
use Test::More tests => 94;
21
use Test::MockModule;
21
use Test::MockModule;
22
use Test::Mojo;
22
use Test::Mojo;
23
use t::lib::Mocks;
23
use t::lib::Mocks;
Lines 170-175 $t->get_ok( "//$userid:$password@/api/v1/checkouts/" . $issue1->issue_id) Link Here
170
  ->json_is('/patron_id' => $patron_id)
170
  ->json_is('/patron_id' => $patron_id)
171
  ->json_is('/item_id' => $item1->itemnumber)
171
  ->json_is('/item_id' => $item1->itemnumber)
172
  ->json_is('/due_date' => output_pref({ dateformat => "rfc3339", dt => $date_due1 }) )
172
  ->json_is('/due_date' => output_pref({ dateformat => "rfc3339", dt => $date_due1 }) )
173
  ->json_is('/checkout_type' => $issue1->checkout_type)
173
  ->json_hasnt('/1');
174
  ->json_hasnt('/1');
174
175
175
$t->get_ok( "//$userid:$password@/api/v1/checkouts/" . $issue1->issue_id)
176
$t->get_ok( "//$userid:$password@/api/v1/checkouts/" . $issue1->issue_id)
176
- 

Return to bug 25037