moneybird-php-client
moneybird-php-client copied to clipboard
Product entity is missing a function and some parmeters
Hi!
It looks like the Product entity is missing some parameters (title, identifier, product_type).
Also there is no function for /products/identifier/:identifier
Can you please add it? Or give me the permissions to create a branche/pull request? Thanks a lot!
/**
- @var array */ protected $fillable = [ 'id', 'title', 'description', 'price', 'currency', 'frequency', 'frequency_type', 'tax_rate_id', 'ledger_account_id', 'identifier', 'product_type', 'created_at', 'updated_at', ];
/**
-
@param string|int $identifier
-
@return static
-
@throws ApiException */ public function findByIdentifier($identifier) { $result = $this->connection()->get($this->getEndpoint() . '/identifier/' . urlencode($identifier));
return $this->makeFromResponse($result); }
.
Yes, would be awesome if this could be added!
@ralphjsmit I've forked it, since there is no reaction. Check : https://github.com/dario-dib/moneybird-php-client
That's nice, thanks Dario!
I've created a pull request for this issue