DigitickSepaTransferFileFactoryTransferFileFacadeFactory

The WooCommerce Germanized Digitick Sepa TransferFile Factory TransferFileFacadeFactory class.

Defined (1)

The class is defined in the following location(s).

/includes/gateways/direct-debit/libraries/php-sepa-xml/TransferFile/Factory/TransferFileFacadeFactory.php  
  1. class TransferFileFacadeFactory 
  2. /** 
  3. * @param string $uniqueMessageIdentification Maximum length: 35. Reference Number of the bulk. 
  4. * Part of the duplication check (unique daily reference). 
  5. * The first 8 or 11 characters of <Msgld> must match the BIC of the 
  6. * Instructing Agent. The rest of the field can be freely defined. 
  7. * @param string $initiatingPartyName 
  8. * @param string $painFormat 
  9. * @return CustomerDirectDebitFacade 
  10. */ 
  11. public static function createDirectDebit($uniqueMessageIdentification, $initiatingPartyName, $painFormat = 'pain.008.002.02') 
  12. $groupHeader = new GroupHeader($uniqueMessageIdentification, $initiatingPartyName); 
  13.  
  14. return new CustomerDirectDebitFacade(new CustomerDirectDebitTransferFile($groupHeader), new CustomerDirectDebitTransferDomBuilder($painFormat)); 
  15.  
  16. /** 
  17. * @param GroupHeader $groupHeader 
  18. * @param string $painFormat 
  19. * @return CustomerDirectDebitFacade 
  20. */ 
  21. public static function createDirectDebitWithGroupHeader(GroupHeader $groupHeader, $painFormat = 'pain.008.002.02') 
  22. return new CustomerDirectDebitFacade(new CustomerDirectDebitTransferFile($groupHeader), new CustomerDirectDebitTransferDomBuilder($painFormat)); 
  23.  
  24. /** 
  25. * @param string $uniqueMessageIdentification 
  26. * @param string $initiatingPartyName 
  27. * @param string $painFormat 
  28. * @return CustomerCreditFacade 
  29. */ 
  30. public static function createCustomerCredit($uniqueMessageIdentification, $initiatingPartyName, $painFormat = 'pain.001.002.03') 
  31. $groupHeader = new GroupHeader($uniqueMessageIdentification, $initiatingPartyName); 
  32.  
  33. return new CustomerCreditFacade(new CustomerCreditTransferFile($groupHeader), new CustomerCreditTransferDomBuilder($painFormat)); 
  34.  
  35. /** 
  36. * @param GroupHeader $groupHeader 
  37. * @param string $painFormat 
  38. * @return CustomerCreditFacade 
  39. */ 
  40. public static function createCustomerCreditWithGroupHeader(GroupHeader $groupHeader, $painFormat = 'pain.001.002.03') 
  41. return new CustomerCreditFacade(new CustomerCreditTransferFile($groupHeader), new CustomerCreditTransferDomBuilder($painFormat));