| Lines 88-94
          sub patron {
      
      
        Link Here | 
        
          | 88 |     return Koha::Patron->_new_from_dbic( $patron_rs ); | 88 |     return Koha::Patron->_new_from_dbic( $patron_rs ); | 
        
          | 89 | } | 89 | } | 
        
          | 90 |  | 90 |  | 
          
            
              | 91 | =head3 type | 91 | =head3 to_api_mapping | 
            
              |  |  | 92 |  | 
            
              | 93 | This method returns the mapping for representing a Koha::Checkout object | 
            
              | 94 | on the API. | 
            
              | 95 |  | 
            
              | 96 | =cut | 
            
              | 97 |  | 
            
              | 98 | sub to_api_mapping { | 
            
              | 99 |     return { | 
            
              | 100 |         issue_id        => 'checkout_id', | 
            
              | 101 |         borrowernumber  => 'patron_id', | 
            
              | 102 |         itemnumber      => 'item_id', | 
            
              | 103 |         date_due        => 'due_date', | 
            
              | 104 |         branchcode      => 'library_id', | 
            
              | 105 |         returndate      => 'checkin_date', | 
            
              | 106 |         lastreneweddate => 'last_renewed_date', | 
            
              | 107 |         issuedate       => 'checkout_date', | 
            
              | 108 |         notedate        => 'note_date', | 
            
              | 109 |     }; | 
            
              | 110 | } | 
            
              | 111 |  | 
            
              | 112 | =head2 Internal methods | 
            
              | 113 |  | 
            
              | 114 | =head3 _type | 
        
          | 92 |  | 115 |  | 
        
          | 93 | =cut | 116 | =cut | 
        
          | 94 |  | 117 |  |