import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';
import {PayInListFilterModel} from '../models/pay-in-list.filter.model';
import {HttpClient} from '@angular/common/http';
import {AuthService} from './auth.service';
import {PayInListResult} from '../models/pay-in-list-result.model';



@Injectable({providedIn: 'root'})
export class PayInService {
  constructor(private http: HttpClient, private auth: AuthService ){ }

  public getPayInList(filter: PayInListFilterModel): Observable<PayInListResult> {
     return this.http.post<PayInListResult>(this.auth.getUrl('pay-in-list/'), filter);
  }
}
