@@ -25,6 +25,7 @@ abstract class FacturaeProperties extends FacturaeConstants {
2525 "endDate " => null ,
2626 "paymentMethod " => null ,
2727 "paymentIBAN " => null ,
28+ "paymentBIC " => null ,
2829 "description " => null ,
2930 "receiverTransactionReference " => null ,
3031 "fileReference " => null ,
@@ -219,12 +220,15 @@ public function setDates($issueDate, $dueDate=null) {
219220 * Set payment method
220221 * @param string $method Payment method
221222 * @param string|null $iban Bank account in case of bank transfer
223+ * @param string|null $bic SWIFT/BIC code of bank account
222224 * @return Facturae Invoice instance
223225 */
224- public function setPaymentMethod ($ method =self ::PAYMENT_CASH , $ iban =null ) {
226+ public function setPaymentMethod ($ method =self ::PAYMENT_CASH , $ iban =null , $ bic = null ) {
225227 $ this ->header ['paymentMethod ' ] = $ method ;
226228 if (!is_null ($ iban )) $ iban = str_replace (" " , "" , $ iban );
227229 $ this ->header ['paymentIBAN ' ] = $ iban ;
230+ if (!is_null ($ bic )) $ bic = str_replace (" " , "" , $ bic );
231+ $ this ->header ['paymentBIC ' ] = $ bic ;
228232 return $ this ;
229233 }
230234
@@ -246,6 +250,13 @@ public function getPaymentIBAN() {
246250 return $ this ->header ['paymentIBAN ' ];
247251 }
248252
253+ /**
254+ * Get payment BIC
255+ * @return string|null Payment bank account BIC
256+ */
257+ public function getPaymentBIC () {
258+ return $ this ->header ['paymentBIC ' ];
259+ }
249260
250261 /**
251262 * Set description
0 commit comments