<?php


abstract class Type_PayuStatusTransacao extends EnumBasic{
  const Tp_PayuAprovada  = 4 ;
  const Tp_PayuExpirada  = 5 ;
  const Tp_PayuRejeitada = 6 ;
  const Tp_PayuPendente  = 7 ;
  const Tp_PayuErro      = 104 ;

  protected static $nickname = array(
    self::Tp_PayuAprovada  => 'Transação Aprovada',
    self::Tp_PayuExpirada  => 'Transação Expirada',
    self::Tp_PayuRejeitada => 'Transação Rejeitada',
    self::Tp_PayuPendente  => 'Transação Pendente',
    self::Tp_PayuErro      => 'Transação Com Erro'
  );
}



abstract class Type_PayuRetornoTransacao extends EnumBasic{
  const Tp_Payu_APPROVED = 'APPROVED';
  const Tp_Payu_DECLINED = 'DECLINED';
  const Tp_Payu_PAYMENT_NETWORK_REJECTED = 'PAYMENT_NETWORK_REJECTED';
  const Tp_Payu_ENTITY_DECLINED = 'ENTITY_DECLINED';
  const Tp_Payu_INSUFFICIENT_FUNDS = 'INSUFFICIENT_FUNDS';
  const Tp_Payu_INVALID_CARD = 'INVALID_CARD';
  const Tp_Payu_CONTACT_THE_ENTITY = 'CONTACT_THE_ENTITY';
  const Tp_Payu_BANK_ACCOUNT_ACTIVATION_ERROR = 'BANK_ACCOUNT_ACTIVATION_ERROR';
  const Tp_Payu_BANK_ACCOUNT_NOT_AUTHORIZED_FOR_AUTOMATIC_DEBIT = 'BANK_ACCOUNT_NOT_AUTHORIZED_FOR_AUTOMATIC_DEBIT';
  const Tp_Payu_INVALID_AGENCY_BANK_ACCOUNT = 'INVALID_AGENCY_BANK_ACCOUNT';
  const Tp_Payu_INVALID_BANK_ACCOUNT = 'INVALID_BANK_ACCOUNT';
  const Tp_Payu_INVALID_BANK = 'INVALID_BANK';
  const Tp_Payu_EXPIRED_CARD = 'EXPIRED_CARD';
  const Tp_Payu_RESTRICTED_CARD = 'RESTRICTED_CARD';
  const Tp_Payu_INVALID_EXPIRATION_DATE_OR_SECURITY_CODE = 'INVALID_EXPIRATION_DATE_OR_SECURITY_CODE';
  const Tp_Payu_REPEAT_TRANSACTION = 'REPEAT_TRANSACTION';
  const Tp_Payu_INVALID_TRANSACTION = 'INVALID_TRANSACTION';
  const Tp_Payu_EXCEEDED_AMOUNT = 'EXCEEDED_AMOUNT';
  const Tp_Payu_ABANDONED_TRANSACTION = 'ABANDONED_TRANSACTION';
  const Tp_Payu_CREDIT_CARD_NOT_AUTHORIZED_FOR_INTERNET_TRANSACTIONS = 'CREDIT_CARD_NOT_AUTHORIZED_FOR_INTERNET_TRANSACTIONS';
  const Tp_Payu_ANTIFRAUD_REJECTED = 'ANTIFRAUD_REJECTED';
  const Tp_Payu_DIGITAL_CERTIFICATE_NOT_FOUND = 'DIGITAL_CERTIFICATE_NOT_FOUND';
  const Tp_Payu_BANK_UNREACHABLE = 'BANK_UNREACHABLE';
  const Tp_Payu_ENTITY_MESSAGING_ERROR = 'ENTITY_MESSAGING_ERROR';
  const Tp_Payu_NOT_ACCEPTED_TRANSACTION = 'NOT_ACCEPTED_TRANSACTION';
  const Tp_Payu_INTERNAL_PAYMENT_PROVIDER_ERROR = 'INTERNAL_PAYMENT_PROVIDER_ERROR';
  const Tp_Payu_INACTIVE_PAYMENT_PROVIDER = 'INACTIVE_PAYMENT_PROVIDER';
  const Tp_Payu_ERROR_CONVERTING_TRANSACTION_AMOUNTS = 'ERROR_CONVERTING_TRANSACTION_AMOUNTS';
  const Tp_Payu_FIX_NOT_REQUIRED = 'FIX_NOT_REQUIRED';
  const Tp_Payu_AUTOMATICALLY_FIXED_AND_SUCCESS_REVERSAL = 'AUTOMATICALLY_FIXED_AND_SUCCESS_REVERSAL';
  const Tp_Payu_AUTOMATICALLY_FIXED_AND_UNSUCCESS_REVERSAL = 'AUTOMATICALLY_FIXED_AND_UNSUCCESS_REVERSAL';
  const Tp_Payu_AUTOMATIC_FIXED_NOT_SUPPORTED = 'AUTOMATIC_FIXED_NOT_SUPPORTED';
  const Tp_Payu_NOT_FIXED_FOR_ERROR_STATE = 'NOT_FIXED_FOR_ERROR_STATE';
  const Tp_Payu_ERROR_FIXING_AND_REVERSING = 'ERROR_FIXING_AND_REVERSING';
  const Tp_Payu_ERROR_FIXING_INCOMPLETE_DATA = 'ERROR_FIXING_INCOMPLETE_DATA';
  const Tp_Payu_PAYMENT_NETWORK_BAD_RESPONSE = 'PAYMENT_NETWORK_BAD_RESPONSE';
  const Tp_Payu_PAYMENT_NETWORK_NO_CONNECTION = 'PAYMENT_NETWORK_NO_CONNECTION';
  const Tp_Payu_PAYMENT_NETWORK_NO_RESPONSE = 'PAYMENT_NETWORK_NO_RESPONSE';
  const Tp_Payu_EXPIRED = 'EXPIRED';
  const Tp_Payu_EXPIRED_TRANSACTION = 'EXPIRED_TRANSACTION';
  const Tp_Payu_PENDING = 'PENDING';
  const Tp_Payu_PENDING_TRANSACTION_REVIEW = 'PENDING_TRANSACTION_REVIEW';
  const Tp_Payu_PENDING_TRANSACTION_CONFIRMATION = 'PENDING_TRANSACTION_CONFIRMATION';
  const Tp_Payu_PENDING_TRANSACTION_TRANSMISSION = 'PENDING_TRANSACTION_TRANSMISSION';
  const Tp_Payu_PENDING_PAYMENT_IN_ENTITY = 'PENDING_PAYMENT_IN_ENTITY';
  const Tp_Payu_PENDING_PAYMENT_IN_BANK = 'PENDING_PAYMENT_IN_BANK';
  const Tp_Payu_PENDING_SENT_TO_FINANCIAL_ENTITY = 'PENDING_SENT_TO_FINANCIAL_ENTITY';
  const Tp_Payu_PENDING_AWAITING_PSE_CONFIRMATION = 'PENDING_AWAITING_PSE_CONFIRMATION';
  const Tp_Payu_PENDING_NOTIFYING_ENTITY = 'PENDING_NOTIFYING_ENTITY';
  const Tp_Payu_DECLINED_TEST_MODE_NOT_ALLOWED = 'DECLINED_TEST_MODE_NOT_ALLOWED';

  protected static $nickname = array(
    self::Tp_Payu_APPROVED => 'APPROVED',
    self::Tp_Payu_DECLINED => 'DECLINED',
    self::Tp_Payu_PAYMENT_NETWORK_REJECTED => 'PAYMENT_NETWORK_REJECTED',
    self::Tp_Payu_ENTITY_DECLINED => 'ENTITY_DECLINED',
    self::Tp_Payu_INSUFFICIENT_FUNDS => 'INSUFFICIENT_FUNDS',
    self::Tp_Payu_INVALID_CARD => 'INVALID_CARD',
    self::Tp_Payu_CONTACT_THE_ENTITY => 'CONTACT_THE_ENTITY',
    self::Tp_Payu_BANK_ACCOUNT_ACTIVATION_ERROR => 'BANK_ACCOUNT_ACTIVATION_ERROR',
    self::Tp_Payu_BANK_ACCOUNT_NOT_AUTHORIZED_FOR_AUTOMATIC_DEBIT => 'BANK_ACCOUNT_NOT_AUTHORIZED_FOR_AUTOMATIC_DEBIT',
    self::Tp_Payu_INVALID_AGENCY_BANK_ACCOUNT => 'INVALID_AGENCY_BANK_ACCOUNT',
    self::Tp_Payu_INVALID_BANK_ACCOUNT => 'INVALID_BANK_ACCOUNT',
    self::Tp_Payu_INVALID_BANK => 'INVALID_BANK',
    self::Tp_Payu_EXPIRED_CARD => 'EXPIRED_CARD',
    self::Tp_Payu_RESTRICTED_CARD => 'RESTRICTED_CARD',
    self::Tp_Payu_INVALID_EXPIRATION_DATE_OR_SECURITY_CODE => 'INVALID_EXPIRATION_DATE_OR_SECURITY_CODE',
    self::Tp_Payu_REPEAT_TRANSACTION => 'REPEAT_TRANSACTION',
    self::Tp_Payu_INVALID_TRANSACTION => 'INVALID_TRANSACTION',
    self::Tp_Payu_EXCEEDED_AMOUNT => 'EXCEEDED_AMOUNT',
    self::Tp_Payu_ABANDONED_TRANSACTION => 'ABANDONED_TRANSACTION',
    self::Tp_Payu_CREDIT_CARD_NOT_AUTHORIZED_FOR_INTERNET_TRANSACTIONS => 'CREDIT_CARD_NOT_AUTHORIZED_FOR_INTERNET_TRANSACTIONS',
    self::Tp_Payu_ANTIFRAUD_REJECTED => 'ANTIFRAUD_REJECTED',
    self::Tp_Payu_DIGITAL_CERTIFICATE_NOT_FOUND => 'DIGITAL_CERTIFICATE_NOT_FOUND',
    self::Tp_Payu_BANK_UNREACHABLE => 'BANK_UNREACHABLE',
    self::Tp_Payu_ENTITY_MESSAGING_ERROR => 'ENTITY_MESSAGING_ERROR',
    self::Tp_Payu_NOT_ACCEPTED_TRANSACTION => 'NOT_ACCEPTED_TRANSACTION',
    self::Tp_Payu_INTERNAL_PAYMENT_PROVIDER_ERROR => 'INTERNAL_PAYMENT_PROVIDER_ERROR',
    self::Tp_Payu_INACTIVE_PAYMENT_PROVIDER => 'INACTIVE_PAYMENT_PROVIDER',
    self::Tp_Payu_ERROR_CONVERTING_TRANSACTION_AMOUNTS => 'ERROR_CONVERTING_TRANSACTION_AMOUNTS',
    self::Tp_Payu_FIX_NOT_REQUIRED => 'FIX_NOT_REQUIRED',
    self::Tp_Payu_AUTOMATICALLY_FIXED_AND_SUCCESS_REVERSAL => 'AUTOMATICALLY_FIXED_AND_SUCCESS_REVERSAL',
    self::Tp_Payu_AUTOMATICALLY_FIXED_AND_UNSUCCESS_REVERSAL => 'AUTOMATICALLY_FIXED_AND_UNSUCCESS_REVERSAL',
    self::Tp_Payu_AUTOMATIC_FIXED_NOT_SUPPORTED => 'AUTOMATIC_FIXED_NOT_SUPPORTED',
    self::Tp_Payu_NOT_FIXED_FOR_ERROR_STATE => 'NOT_FIXED_FOR_ERROR_STATE',
    self::Tp_Payu_ERROR_FIXING_AND_REVERSING => 'ERROR_FIXING_AND_REVERSING',
    self::Tp_Payu_ERROR_FIXING_INCOMPLETE_DATA => 'ERROR_FIXING_INCOMPLETE_DATA',
    self::Tp_Payu_PAYMENT_NETWORK_BAD_RESPONSE => 'PAYMENT_NETWORK_BAD_RESPONSE',
    self::Tp_Payu_PAYMENT_NETWORK_NO_CONNECTION => 'PAYMENT_NETWORK_NO_CONNECTION',
    self::Tp_Payu_PAYMENT_NETWORK_NO_RESPONSE => 'PAYMENT_NETWORK_NO_RESPONSE',
    self::Tp_Payu_EXPIRED => 'EXPIRED',
    self::Tp_Payu_EXPIRED_TRANSACTION => 'EXPIRED_TRANSACTION',
    self::Tp_Payu_PENDING => 'PENDING',
    self::Tp_Payu_PENDING_TRANSACTION_REVIEW => 'PENDING_TRANSACTION_REVIEW',
    self::Tp_Payu_PENDING_TRANSACTION_CONFIRMATION => 'PENDING_TRANSACTION_CONFIRMATION',
    self::Tp_Payu_PENDING_TRANSACTION_TRANSMISSION => 'PENDING_TRANSACTION_TRANSMISSION',
    self::Tp_Payu_PENDING_PAYMENT_IN_ENTITY => 'PENDING_PAYMENT_IN_ENTITY',
    self::Tp_Payu_PENDING_PAYMENT_IN_BANK => 'PENDING_PAYMENT_IN_BANK',
    self::Tp_Payu_PENDING_SENT_TO_FINANCIAL_ENTITY => 'PENDING_SENT_TO_FINANCIAL_ENTITY',
    self::Tp_Payu_PENDING_AWAITING_PSE_CONFIRMATION => 'PENDING_AWAITING_PSE_CONFIRMATION',
    self::Tp_Payu_PENDING_NOTIFYING_ENTITY => 'PENDING_NOTIFYING_ENTITY',    
    self::Tp_Payu_DECLINED_TEST_MODE_NOT_ALLOWED => 'DECLINED_TEST_MODE_NOT_ALLOWED'
  );
}




