import {Component, OnInit} from '@angular/core';
import {FrameDetailComponent} from "../../../frame/core/detail/frame.detail";
import {BsModalRef} from "ngx-bootstrap/modal";
import {FormBuilder, Validators} from "@angular/forms"

@Component({
  selector: 'app-pay-merchant-detail',
  templateUrl: './pay-merchant-detail.component.html',
  styleUrls: ['./pay-merchant-detail.component.scss']
})
export class PayMerchantDetailComponent extends FrameDetailComponent implements OnInit {

  constructor(bsModalRef: BsModalRef, fb: FormBuilder) {
    super(bsModalRef);
    this.detailForm = fb.group({
      'merchant_id': [null, Validators.compose([Validators.required, Validators.minLength(2), Validators.maxLength(128)])],
      'merchant_name': [null, Validators.compose([Validators.required, Validators.minLength(2), Validators.maxLength(128)])],
      'merchant_status': [null, Validators.compose([Validators.required])],
      'merchant_desc': [null]

    });
  }

  ngOnInit() {
  }


}

