DigitickSepaGroupHeader

The WooCommerce Germanized Digitick Sepa GroupHeader class.

Defined (1)

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

/includes/gateways/direct-debit/libraries/php-sepa-xml/GroupHeader.php  
  1. class GroupHeader 
  2. /** 
  3. * Whether this is a test Transaction 
  4. * @var boolean 
  5. */ 
  6. protected $isTest; 
  7.  
  8. /** 
  9. * @var string Unambiguously identify the message. 
  10. */ 
  11. protected $messageIdentification; 
  12.  
  13. /** 
  14. * The initiating Party for this payment 
  15. * @var string 
  16. */ 
  17. protected $initiatingPartyId; 
  18.  
  19. /** 
  20. * The Issuer. 
  21. * @var string 
  22. */ 
  23. protected $issuer; 
  24.  
  25. /** 
  26. * @var int 
  27. */ 
  28. protected $numberOfTransactions = 0; 
  29.  
  30. /** 
  31. * @var int 
  32. */ 
  33. protected $controlSumCents = 0; 
  34.  
  35. /** 
  36. * @var string 
  37. */ 
  38. protected $initiatingPartyName; 
  39.  
  40. /** 
  41. * @var \DateTime 
  42. */ 
  43. protected $creationDateTime; 
  44.  
  45. /** 
  46. * @var string 
  47. */ 
  48. protected $creationDateTimeFormat = 'Y-m-d\TH:i:s\Z'; 
  49.  
  50. /** 
  51. * @param string $messageIdentification Maximum length: 35. Reference Number of the bulk. 
  52. * Part of the duplication check (unique daily reference). 
  53. * The first 8 or 11 characters of <Msgld> must match the BIC of the 
  54. * Instructing Agent. The rest of the field can be freely defined. 
  55. * @param string $initiatingPartyName 
  56. * @param boolean $isTest 
  57. */ 
  58. public function __construct($messageIdentification, $initiatingPartyName, $isTest = false) 
  59. $this->messageIdentification = $messageIdentification; 
  60. $this->isTest = $isTest; 
  61. $this->initiatingPartyName = StringHelper::sanitizeString($initiatingPartyName); 
  62. $this->creationDateTime = new \DateTime(); 
  63.  
  64. public function accept(DomBuilderInterface $domBuilder) 
  65. $domBuilder->visitGroupHeader($this); 
  66.  
  67. /** 
  68. * @param int $controlSumCents 
  69. */ 
  70. public function setControlSumCents($controlSumCents) 
  71. $this->controlSumCents = $controlSumCents; 
  72.  
  73. /** 
  74. * @return int 
  75. */ 
  76. public function getControlSumCents() 
  77. return $this->controlSumCents; 
  78.  
  79. /** 
  80. * @param string $initiatingPartyId 
  81. */ 
  82. public function setInitiatingPartyId($initiatingPartyId) 
  83. $this->initiatingPartyId = $initiatingPartyId; 
  84.  
  85. /** 
  86. * @return string 
  87. */ 
  88. public function getInitiatingPartyId() 
  89. return $this->initiatingPartyId; 
  90.  
  91. /** 
  92. * @return string 
  93. */ 
  94. public function getIssuer() 
  95. return $this->issuer; 
  96.  
  97. /** 
  98. * @param string $issuer 
  99. */ 
  100. public function setIssuer($issuer) 
  101. $this->issuer = $issuer; 
  102.  
  103. /** 
  104. * @param string $initiatingPartyName 
  105. */ 
  106. public function setInitiatingPartyName($initiatingPartyName) 
  107. $this->initiatingPartyName = StringHelper::sanitizeString($initiatingPartyName); 
  108.  
  109. /** 
  110. * @return string 
  111. */ 
  112. public function getInitiatingPartyName() 
  113. return $this->initiatingPartyName; 
  114.  
  115. /** 
  116. * @param boolean $isTest 
  117. */ 
  118. public function setIsTest($isTest) 
  119. $this->isTest = $isTest; 
  120.  
  121. /** 
  122. * @return boolean 
  123. */ 
  124. public function getIsTest() 
  125. return $this->isTest; 
  126.  
  127. /** 
  128. * @param string $messageIdentification 
  129. */ 
  130. public function setMessageIdentification($messageIdentification) 
  131. $this->messageIdentification = $messageIdentification; 
  132.  
  133. /** 
  134. * @return string 
  135. */ 
  136. public function getMessageIdentification() 
  137. return $this->messageIdentification; 
  138.  
  139. /** 
  140. * @param int $numberOfTransactions 
  141. */ 
  142. public function setNumberOfTransactions($numberOfTransactions) 
  143. $this->numberOfTransactions = $numberOfTransactions; 
  144.  
  145. /** 
  146. * @return int 
  147. */ 
  148. public function getNumberOfTransactions() 
  149. return $this->numberOfTransactions; 
  150.  
  151. /** 
  152. * @return \DateTime 
  153. */ 
  154. public function getCreationDateTime() 
  155. return $this->creationDateTime; 
  156.  
  157. /** 
  158. * @param string $creationDateTimeFormat 
  159. */ 
  160. public function setCreationDateTimeFormat($creationDateTimeFormat) 
  161. $this->creationDateTimeFormat = $creationDateTimeFormat; 
  162.  
  163. /** 
  164. * @return string 
  165. */ 
  166. public function getCreationDateTimeFormat() 
  167. return $this->creationDateTimeFormat;