Skip to content

Commit 89d6436

Browse files
authored
Merge pull request #78 from thephpleague/barryvdh-mandateid
Add MandateId
2 parents 612ac41 + fed8772 commit 89d6436

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Message/Request/PurchaseRequest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,23 @@ public function setCustomerReference($value)
8282
return $this->setParameter('customerReference', $value);
8383
}
8484

85+
/**
86+
* @return string
87+
*/
88+
public function getMandateId()
89+
{
90+
return $this->getParameter('mandateId');
91+
}
92+
93+
/**
94+
* @param string $value
95+
* @return $this
96+
*/
97+
public function setMandateId($value)
98+
{
99+
return $this->setParameter('mandateId', $value);
100+
}
101+
85102
/**
86103
* @return string
87104
*/
@@ -163,6 +180,10 @@ public function getData()
163180
if ($sequenceType = $this->getSequenceType()) {
164181
$data['sequenceType'] = $sequenceType;
165182
}
183+
184+
if ($mandateId = $this->getMandateId()) {
185+
$data['mandateId'] = $mandateId;
186+
}
166187

167188
return $data;
168189
}

0 commit comments

Comments
 (0)