Skip to content

Commit

Permalink
Add missing fields to Subscription model
Browse files Browse the repository at this point in the history
  • Loading branch information
inserve-paul committed Jun 6, 2024
1 parent 60b2ec8 commit bd1bb87
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions src/Models/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class Subscription
protected ?string $customerName = null;
protected ?string $partnerName = null;
protected ?string $lastUpdatedDate = null;
protected int|float|null $price = null;
protected int|float|null $cost = null;
protected int|float|null $margin = null;
protected int|float|null $msrp = null;
protected ?string $currency = null;

/**
* @return string|null
Expand Down Expand Up @@ -308,6 +313,46 @@ public function getLastUpdatedDate(): ?string
return $this->lastUpdatedDate;
}

/**
* @return float|int|null
*/
public function getPrice(): float|int|null
{
return $this->price;
}

/**
* @return float|int|null
*/
public function getCost(): float|int|null
{
return $this->cost;
}

/**
* @return float|int|null
*/
public function getMargin(): float|int|null
{
return $this->margin;
}

/**
* @return float|int|null
*/
public function getMsrp(): float|int|null
{
return $this->msrp;
}

/**
* @return string|null
*/
public function getCurrency(): ?string
{
return $this->currency;
}

/**
* @param string|null $id
*
Expand Down Expand Up @@ -701,4 +746,64 @@ public function setLastUpdatedDate(?string $lastUpdatedDate): self

return $this;
}

/**
* @param float|int|null $price
*
* @return $this
*/
public function setPrice(float|int|null $price): self
{
$this->price = $price;

return $this;
}

/**
* @param float|int|null $cost
*
* @return $this
*/
public function setCost(float|int|null $cost): self
{
$this->cost = $cost;

return $this;
}

/**
* @param float|int|null $margin
*
* @return $this
*/
public function setMargin(float|int|null $margin): self
{
$this->margin = $margin;

return $this;
}

/**
* @param float|int|null $msrp
*
* @return $this
*/
public function setMsrp(float|int|null $msrp): self
{
$this->msrp = $msrp;

return $this;
}

/**
* @param string|null $currency
*
* @return $this
*/
public function setCurrency(?string $currency): self
{
$this->currency = $currency;

return $this;
}
}

0 comments on commit bd1bb87

Please sign in to comment.