Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Add a PaymentSuccess type #1

Merged
merged 1 commit into from
Nov 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class ApiClient
'paymentReference' => '\CL\DocData\Component\OrderApi\Type\PaymentReference',
'paymentRequestInput' => '\CL\DocData\Component\OrderApi\Type\PaymentRequestInput',
'paymentResponse' => '\CL\DocData\Component\OrderApi\Type\PaymentResponse',
'paymentSuccess' => '\CL\DocData\Component\OrderApi\Type\PaymentSuccess',
'quantity' => '\CL\DocData\Component\OrderApi\Type\Quantity',
'refund' => '\CL\DocData\Component\OrderApi\Type\Refund',
'refundError' => '\CL\DocData\Component\OrderApi\Type\RefundError',
Expand Down
18 changes: 17 additions & 1 deletion Type/PaymentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class PaymentResponse extends AbstractObject
{
/**
* @var mixed
* @var PaymentSuccess
*/
protected $paymentSuccess;

Expand All @@ -23,4 +23,20 @@ class PaymentResponse extends AbstractObject
* @var mixed
*/
protected $paymentError;

/**
* @return PaymentSuccess
*/
public function getPaymentSuccess()
{
return $this->paymentSuccess;
}

/**
* @param PaymentSuccess $paymentSuccess
*/
public function setPaymentSuccess(PaymentSuccess $paymentSuccess)
{
$this->paymentSuccess = $paymentSuccess;
}
}
53 changes: 53 additions & 0 deletions Type/PaymentSuccess.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php

namespace CL\DocData\Component\OrderApi\Type;

/**
* DocDataPayments PaymentSuccess class
*
* @author Roel van Duijnhoven <roel@jouwweb.nl>
*/
class PaymentSuccess extends AbstractObject
{
/**
* @var string
*/
protected $status;

/**
* @var integer
*/
protected $id;

/**
* @return string
*/
public function getStatus()
{
return $this->status;
}

/**
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}

/**
* @return int
*/
public function getId()
{
return $this->id;
}

/**
* @param int $id
*/
public function setId($id)
{
$this->id = $id;
}
}