-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Charge capture requests now require a body
- Loading branch information
1 parent
ec98907
commit a60f8a6
Showing
4 changed files
with
87 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
|
||
namespace zaporylie\Vipps\Model\RecurringPayment\v3; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
|
||
/** | ||
* Class RequestCaptureCharge | ||
* | ||
* @package Vipps\Model\RecurringPayment | ||
*/ | ||
class RequestCaptureCharge { | ||
/** | ||
* @var int | ||
* @Serializer\Type("integer") | ||
*/ | ||
protected $amount; | ||
|
||
/** | ||
* @var string | ||
* @Serializer\Type("string") | ||
*/ | ||
protected $description; | ||
|
||
/** | ||
* Get the value of amount | ||
* | ||
* @return int | ||
*/ | ||
public function getAmount() | ||
{ | ||
return $this->amount; | ||
} | ||
|
||
/** | ||
* Set the value of amount | ||
* | ||
* @param int $amount | ||
* | ||
* @return self | ||
*/ | ||
public function setAmount(int $amount) | ||
{ | ||
$this->amount = $amount; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Get the value of description | ||
* | ||
* @return string | ||
*/ | ||
public function getDescription() | ||
{ | ||
return $this->description; | ||
} | ||
|
||
/** | ||
* Set the value of description | ||
* | ||
* @param string $description | ||
* | ||
* @return self | ||
*/ | ||
public function setDescription(string $description) | ||
{ | ||
$this->description = $description; | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters