import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { BaseService } from 'src/app/core/base/base-service';

@Injectable({
  providedIn: 'root'
})
export class DailyRegisterPaymentService extends BaseService {

  constructor(
    public http: HttpClient
  ) {
    super('/report/payment/print/daily_register_payment', http)
  }

  etest101(data) {
    return (`${this.fullUrl}/${data.counter_no}/${data.date}/${data.period}/view`)
  }

  etest101Online(data) {
    return (`${this.fullUrl}_online/${data.date}/view?is_cash=${data.is_cash}/is_credit_card=${data.is_credit_card}/is_qrcode=${data.is_payin}/is_qrcode=${data.is_payin}`)
  }

  etest101Information(data) {
    return (`${this.fullUrl}_testing_information/${data.testing_information_uid}/${data.counter_no}/${data.date}/${data.period}/view`)
  }

  etest101InformationOnline(data) {
    return (`${this.fullUrl}_testing_information_online/${data.testing_information_uid}/${data.date}/view?is_cash=${data.is_cash}/is_credit_card=${data.is_credit_card}/is_qrcode=${data.is_payin}/is_qrcode=${data.is_payin}`)
  }
}
