Skip to content

Commit

Permalink
Allow adding logistics to the checkout definition
Browse files Browse the repository at this point in the history
  • Loading branch information
zaporylie committed Oct 8, 2024
1 parent 0da0380 commit cd9d955
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Model/Checkout/v3/CreateCheckoutSessionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class CreateCheckoutSessionRequest
protected $transaction;

/**
* @var int
* @Serializer\Type("integer")
* @var \zaporylie\Vipps\Model\Checkout\v3\Logistics
* @Serializer\Type("\zaporylie\Vipps\Model\Checkout\v3\Logistics")
*/
protected $logistics;

Expand Down Expand Up @@ -61,12 +61,11 @@ public function setConfiguration(Configuration $configuration)
/**
* Sets logistics variable.
*
* @param int $logistics
* @param \zaporylie\Vipps\Model\Checkout\v3\Logistics $logistics
*
* @return $this
*/
public function setLogistics(int $logistics)
{
public function setLogistics(Logistics $logistics) {
$this->logistics = $logistics;
return $this;
}
Expand Down

0 comments on commit cd9d955

Please sign in to comment.