Skip to content

Commit

Permalink
Add setters to all Logistic related models
Browse files Browse the repository at this point in the history
  • Loading branch information
zaporylie committed Oct 8, 2024
1 parent cd9d955 commit 10293e5
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 1 deletion.
36 changes: 36 additions & 0 deletions src/Model/Checkout/v3/HeltHjem.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,40 @@ class HeltHjem
* @Serializer\Type("integer")
*/
protected $shopId;

/**
* Sets password variable.
*
* @param string $password
*
* @return $this
*/
public function setPassword(string $password) {
$this->password = $password;
return $this;
}

/**
* Sets shopId variable.
*
* @param int $shopId
*
* @return $this
*/
public function setShopId(int $shopId) {
$this->shopId = $shopId;
return $this;
}

/**
* Sets username variable.
*
* @param string $username
*
* @return $this
*/
public function setUsername(string $username) {
$this->username = $username;
return $this;
}
}
36 changes: 36 additions & 0 deletions src/Model/Checkout/v3/Logistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,40 @@ class Logistics
* @Serializer\Type("zaporylie\Vipps\Model\Checkout\v3\Integrations")
*/
protected $integrations;

/**
* Sets dynamicOptionsCallback variable.
*
* @param string $dynamicOptionsCallback
*
* @return $this
*/
public function setDynamicOptionsCallback(string $dynamicOptionsCallback) {
$this->dynamicOptionsCallback = $dynamicOptionsCallback;
return $this;
}

/**
* Sets fixedOptions variable.
*
* @param \zaporylie\Vipps\Model\Checkout\v3\OtherLogisticsOption[] $fixedOptions
*
* @return $this
*/
public function setFixedOptions(array $fixedOptions) {
$this->fixedOptions = $fixedOptions;
return $this;
}

/**
* Sets integrations variable.
*
* @param \zaporylie\Vipps\Model\Checkout\v3\Integrations $integrations
*
* @return $this
*/
public function setIntegrations(Integrations $integrations) {
$this->integrations = $integrations;
return $this;
}
}
84 changes: 84 additions & 0 deletions src/Model/Checkout/v3/OtherLogisticsOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,88 @@ class OtherLogisticsOption
* @Serializer\Type("string")
*/
protected $description;

/**
* Sets amount variable.
*
* @param \zaporylie\Vipps\Model\Checkout\v3\Amount $amount
*
* @return $this
*/
public function setAmount(Amount $amount) {
$this->amount = $amount;
return $this;
}

/**
* Sets brand variable.
*
* @param string $brand
*
* @return $this
*/
public function setBrand(string $brand) {
$this->brand = $brand;
return $this;
}

/**
* Sets description variable.
*
* @param string $description
*
* @return $this
*/
public function setDescription(string $description) {
$this->description = $description;
return $this;
}

/**
* Sets id variable.
*
* @param string $id
*
* @return $this
*/
public function setId(string $id) {
$this->id = $id;
return $this;
}

/**
* Sets isDefault variable.
*
* @param bool $isDefault
*
* @return $this
*/
public function setIsDefault(bool $isDefault) {
$this->isDefault = $isDefault;
return $this;
}

/**
* Sets priority variable.
*
* @param int $priority
*
* @return $this
*/
public function setPriority(int $priority) {
$this->priority = $priority;
return $this;
}

/**
* Sets title variable.
*
* @param string $title
*
* @return $this
*/
public function setTitle(string $title) {
$this->title = $title;
return $this;
}
}
41 changes: 40 additions & 1 deletion src/Model/Checkout/v3/PorterBuddy.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,45 @@ class PorterBuddy
*/
protected $apiKey;


/**
* @var \zaporylie\Vipps\Model\Checkout\v3\PorterBuddyOrigin
* @Serializer\Type("\zaporylie\Vipps\Model\Checkout\v3\PorterBuddyOrigin")
*/
protected $origin;

/**
* Sets apiKey variable.
*
* @param string $apiKey
*
* @return $this
*/
public function setApiKey(string $apiKey) {
$this->apiKey = $apiKey;
return $this;
}

/**
* Sets origin variable.
*
* @param \zaporylie\Vipps\Model\Checkout\v3\PorterBuddyOrigin $origin
*
* @return $this
*/
public function setOrigin(PorterBuddyOrigin $origin) {
$this->origin = $origin;
return $this;
}

/**
* Sets publicToken variable.
*
* @param string $publicToken
*
* @return $this
*/
public function setPublicToken(string $publicToken) {
$this->publicToken = $publicToken;
return $this;
}
}
48 changes: 48 additions & 0 deletions src/Model/Checkout/v3/PorterBuddyOrigin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,52 @@ class PorterBuddyOrigin
* @Serializer\Type("zaporylie\Vipps\Model\Checkout\v3\PorterBuddyOriginAddress")
*/
protected $address;

/**
* Sets name variable.
*
* @param string $name
*
* @return $this
*/
public function setName(string $name) {
$this->name = $name;
return $this;
}

/**
* Sets email variable.
*
* @param string $email
*
* @return $this
*/
public function setEmail(string $email) {
$this->email = $email;
return $this;
}

/**
* Sets phoneNumber variable.
*
* @param string $phoneNumber
*
* @return $this
*/
public function setPhoneNumber(string $phoneNumber) {
$this->phoneNumber = $phoneNumber;
return $this;
}

/**
* Sets address variable.
*
* @param \zaporylie\Vipps\Model\Checkout\v3\PorterBuddyOriginAddress $address
*
* @return $this
*/
public function setAddress(PorterBuddyOriginAddress $address) {
$this->address = $address;
return $this;
}
}

0 comments on commit 10293e5

Please sign in to comment.