Skip to content

Commit

Permalink
add billpay classes and interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Sep 15, 2013
1 parent 0497f49 commit 13ac584
Show file tree
Hide file tree
Showing 8 changed files with 1,535 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Payment/Saferpay/Data/Billpay/BillpayPayCompleteParameter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace Payment\Saferpay\Data\Billpay;

use Payment\Saferpay\Data\AbstractGetSet;
use Payment\Saferpay\Data\SubBaseInterface;

class BillpayPayCompleteParameter extends AbstractGetSet implements BillpayPayCompleteParameterInterface, SubBaseInterface
{
/**
* @param string $popDeplay
* @return $this
*/
public function setPobDelay($popDeplay)
{
$this->set('POB_DELAY', $popDeplay);

return $this;
}

/**
* @return string
*/
public function getPobDelay()
{
return $this->get('POB_DELAY');
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace Payment\Saferpay\Data\Billpay;

interface BillpayPayCompleteParameterInterface
{
/**
* optional, only on buy with invoice
* An additional invoice payment delay to the usual 20 or 30 days, default is 0
*/
const POB_DELAY = 'n[..2]';

/**
* @param string $pobDelay
* @return $this
*/
public function setPobDelay($pobDelay);

/**
* @return string
*/
public function getPobDelay();
}
28 changes: 28 additions & 0 deletions src/Payment/Saferpay/Data/Billpay/BillpayPayCompleteResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace Payment\Saferpay\Data\Billpay;

use Payment\Saferpay\Data\AbstractGetSet;
use Payment\Saferpay\Data\SubBaseInterface;

class BillpayPayCompleteResponse extends AbstractGetSet implements BillpayPayCompleteResponseInterface, SubBaseInterface
{
/**
* @param string $pobDuedate
* @return $this
*/
public function setPobDuedate($pobDuedate)
{
$this->set('POB_DUEDATE', $pobDuedate);

return $this;
}

/**
* @return string
*/
public function getPobDuedate()
{
return $this->get('POB_DUEDATE');
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace Payment\Saferpay\Data\Billpay;

interface BillpayPayCompleteResponseInterface
{
/**
* optional, only on buy with invoice
* Defines the date until the customer has to pay the bill
* Format: YYYYMMDD
*/
const POB_DUEDATE = 'n[8]';

/**
* @param string $pobDuedate
* @return $this
*/
public function setPobDuedate($pobDuedate);

/**
* @return string
*/
public function getPobDuedate();
}
Loading

0 comments on commit 13ac584

Please sign in to comment.