Your IP : 216.73.216.84


Current Path : /home/helpink/www/components/com_jbusinessdirectory/classes/payment/processors/Asaas/
Upload File :
Current File : /home/helpink/www/components/com_jbusinessdirectory/classes/payment/processors/Asaas/Asaas.php

<?php
namespace CodePhix\Asaas;
require_once 'Connection.php';
require_once 'Subscription.php';
require_once 'Cidades.php';
require_once 'Customer.php';
require_once 'Payment.php';
require_once 'PaymentLink.php';
require_once 'Notification.php';
require_once 'Transferencia.php';
require_once 'Extrato.php';
require_once 'Antecipacao.php';
require_once 'PagarConta.php';
require_once 'NotaFiscal.php';
require_once 'MinhaConta.php';
require_once 'InformacoesFiscais.php';
require_once 'ConsultaSerasa.php';
require_once 'Webhook.php';
require_once 'Pix.php';
require_once 'Parcelamento.php';
require_once 'Conta.php';

use CodePhix\Asaas\Connection;
use CodePhix\Asaas\Subscription;
use CodePhix\Asaas\Customer;
use CodePhix\Asaas\Payment;
use CodePhix\Asaas\Extrato;
use CodePhix\Asaas\Notification;
use CodePhix\Asaas\Transferencia;
use CodePhix\Asaas\Webhook;

class Asaas {
    
    public $cidade;
    public $subscription;
    public $customer;
    public $payment;
    public $PaymentLink;
    public $notification;
    public $transferencia;
    public $webhook;
    public $antecipacao;
    public $extrato;
    public $pagarconta;
    public $NotaFiscal;
    public $MinhaConta;
    public $InformacoesFiscais;
    public $ConsultaSerasa;
    public $Pix;
    public $Parcelamento;
    public $Conta;

    private $connection;
    
    public function __construct($token, $status = false) {
        $this->connection = new Connection($token, ((!empty($status)) ? $status : 'producao'));

        $this->subscription  = new Subscription($this->connection);
        $this->cidade = new Cidades($this->connection);
        $this->customer     = new Customer($this->connection);
        $this->payment    = new Payment($this->connection);
        $this->PaymentLink    = new PaymentLink($this->connection);
        $this->notification = new Notification($this->connection);
        $this->transferencia = new Transferencia($this->connection);
        $this->extrato = new Extrato($this->connection);
        $this->antecipacao = new Antecipacao($this->connection);
        $this->pagarconta = new PagarConta($this->connection);
        $this->NotaFiscal = new NotaFiscal($this->connection);
        $this->MinhaConta = new MinhaConta($this->connection);
        $this->InformacoesFiscais = new InformacoesFiscais($this->connection);
        $this->ConsultaSerasa = new ConsultaSerasa($this->connection);
        $this->webhook     = new Webhook($this->connection);
        $this->Pix     = new Pix($this->connection);
        $this->Parcelamento     = new Parcelamento($this->connection);
        $this->Conta     = new Conta($this->connection);
    }

    public function Subscription(){
        $this->subscription  = new Subscription($this->connection);
        return $this->subscription;
    }

    public function Pix(){
        $this->Pix  = new Pix($this->connection);
        return $this->Pix;
    }

    public function Parcelamento(){
        $this->Parcelamento  = new Parcelamento($this->connection);
        return $this->Parcelamento;
    }

    public function Cidade(){
        $this->cidade = new Cidades($this->connection);
        return $this->cidade;
    }

    public function Customer(){
        $this->customer     = new Customer($this->connection);
        return $this->customer;
    }
    
    public function Payment(){
        $this->payment    = new Payment($this->connection);
        return $this->payment;
    }
    
    public function PaymentLink(){
        $this->PaymentLink    = new PaymentLink($this->connection);
        return $this->PaymentLink;
    }
    
    public function Notification(){
        $this->notification = new Notification($this->connection);
        return $this->notification;
    }
    
    public function Transferencia(){
        $this->transferencia = new Transferencia($this->connection);
        return $this->transferencia;
    }
    
    public function Extrato(){
        $this->extrato = new Extrato($this->connection);
        return $this->extrato;
    }

    public function Antecipacao(){
        $this->antecipacao = new Antecipacao($this->connection);
        return $this->antecipacao;
    }

    public function PagarConta(){
        $this->pagarconta = new PagarConta($this->connection);
        return $this->pagarconta;
    }

    public function NotaFiscal(){
        $this->NotaFiscal = new NotaFiscal($this->connection);
        return $this->NotaFiscal;
    }

    public function InformacoesFiscais(){
        $this->InformacoesFiscais = new InformacoesFiscais($this->connection);
        return $this->InformacoesFiscais;
    }

    public function MinhaConta(){
        $this->MinhaConta = new MinhaConta($this->connection);
        return $this->MinhaConta;
    }

    public function ConsultaSerasa(){
        $this->ConsultaSerasa = new ConsultaSerasa($this->connection);
        return $this->ConsultaSerasa;
    }

    public function Conta(){
        $this->Conta = new Conta($this->connection);
        return $this->Conta;
    }
    
    public function Webhook(){
        $this->webhook     = new Webhook($this->connection);
        return $this->webhook;
    }

}