1212use Academe \SagePay \Psr7 \Model \Endpoint ;
1313use Academe \SagePay \Psr7 \Model \Auth ;
1414use Academe \SagePay \Psr7 \Money \AmountInterface ;
15- use Academe \SagePay \Psr7 \Model \AddressInterface ;
1615use Academe \SagePay \Psr7 \Model \PersonInterface ;
16+ use Academe \SagePay \Psr7 \Request \Model \AddressInterface ;
17+ use Academe \SagePay \Psr7 \Request \Model \PersonInterface as ModelPersonInterface ;
1718
1819class CreateRepeatPayment extends AbstractRequest
1920{
@@ -29,6 +30,7 @@ class CreateRepeatPayment extends AbstractRequest
2930 // Optional or overridable data.
3031 protected $ shippingAddress ;
3132 protected $ shippingRecipient ;
33+ protected $ giftAid ;
3234
3335 /**
3436 * @var string The prefix is added to the name fields when sending to Sage Pay
@@ -87,7 +89,7 @@ public function __construct(
8789 * @param ShippingAddress $shippingAddress
8890 * @return Transaction
8991 */
90- public function withShippingAddress (ShippingAddress $ shippingAddress )
92+ public function withShippingAddress (AddressInterface $ shippingAddress )
9193 {
9294 $ copy = clone $ this ;
9395 $ copy ->shippingAddress = $ shippingAddress ;
@@ -98,7 +100,7 @@ public function withShippingAddress(ShippingAddress $shippingAddress)
98100 * @param ShippingRecipient $shippingRecipient
99101 * @return Repeat
100102 */
101- public function withShippingRecipient (ShippingRecipient $ shippingRecipient )
103+ public function withShippingRecipient (ModelPersonInterface $ shippingRecipient )
102104 {
103105 $ copy = clone $ this ;
104106 $ copy ->shippingRecipient = $ shippingRecipient ;
0 commit comments