-
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.
- Loading branch information
Showing
17 changed files
with
305 additions
and
141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<?php | ||
|
||
namespace zaporylie\Vipps\Model\RecurringPayment; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
/** | ||
* Class Interval | ||
* | ||
* @todo: Currently this package is not used anywhere in the project. Use it for | ||
* reference and comparison only. | ||
* | ||
* @package Vipps\Model\RecurringPayment | ||
*/ | ||
class AgreementInterval | ||
{ | ||
/** | ||
* @var string | ||
* @Serializer\Type("string") | ||
*/ | ||
protected $unit; | ||
|
||
/** | ||
* @var int | ||
* @Serializer\Type("integer") | ||
*/ | ||
protected $count; | ||
|
||
/** | ||
* @var string | ||
* @Serializer\Type("string") | ||
*/ | ||
protected $text; | ||
|
||
/** | ||
* Gets unit value. | ||
* | ||
* @return string | ||
*/ | ||
public function getUnit(): string { | ||
return $this->unit; | ||
} | ||
|
||
/** | ||
* Gets count value. | ||
* | ||
* @return int | ||
*/ | ||
public function getCount(): int { | ||
return $this->count; | ||
} | ||
|
||
/** | ||
* Gets text value. | ||
* | ||
* @return string | ||
*/ | ||
public function getText(): string { | ||
return $this->text; | ||
} | ||
|
||
/** | ||
* Sets unit variable. | ||
* | ||
* @param string $unit | ||
* | ||
* @return $this | ||
*/ | ||
public function setUnit(string $unit) { | ||
$this->unit = $unit; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Sets count variable. | ||
* | ||
* @param int $count | ||
* | ||
* @return $this | ||
*/ | ||
public function setCount(int $count) { | ||
$this->count = $count; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Sets text variable. | ||
* | ||
* @param string $text | ||
* | ||
* @return $this | ||
*/ | ||
public function setText(string $text) { | ||
$this->text = $text; | ||
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
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,97 @@ | ||
<?php | ||
|
||
namespace zaporylie\Vipps\Model\RecurringPayment; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
/** | ||
* Class InitialCharge. | ||
* | ||
* @package Vipps\Model\RecurringPayment | ||
*/ | ||
class Pricing | ||
{ | ||
/** | ||
* @var int | ||
* @Serializer\Type("integer") | ||
*/ | ||
protected $amount; | ||
|
||
/** | ||
* @var string | ||
* @Serializer\Type("string") | ||
*/ | ||
protected $currency; | ||
|
||
/** | ||
* @var string | ||
* @Serializer\Type("string") | ||
*/ | ||
protected $type; | ||
|
||
/** | ||
* Gets amount value. | ||
* | ||
* @return int | ||
*/ | ||
public function getAmount(): int { | ||
return $this->amount; | ||
} | ||
|
||
/** | ||
* Gets currency value. | ||
* | ||
* @return string | ||
*/ | ||
public function getCurrency(): string { | ||
return $this->currency; | ||
} | ||
|
||
/** | ||
* Gets type value. | ||
* | ||
* @return string | ||
*/ | ||
public function getType(): string { | ||
return $this->type; | ||
} | ||
|
||
/** | ||
* Sets amount variable. | ||
* | ||
* @param int $amount | ||
* | ||
* @return $this | ||
*/ | ||
public function setAmount($amount) | ||
{ | ||
$this->amount = $amount; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Sets currency variable. | ||
* | ||
* @param string $currency | ||
* | ||
* @return $this | ||
*/ | ||
public function setCurrency($currency) | ||
{ | ||
$this->currency = $currency; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Sets transactionType variable. | ||
* | ||
* @param string $transactionType | ||
* | ||
* @return $this | ||
*/ | ||
public function setType($transactionType) | ||
{ | ||
$this->transactionType = $transactionType; | ||
return $this; | ||
} | ||
} |
Oops, something went wrong.