/home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources
NameSizeModeActions
Balance.php30610644editdlrm
BalanceCollection.php3640644editdlrm
BalanceReport.php24160644editdlrm
BalanceTransaction.php24380644editdlrm
BalanceTransactionCollection.php4120644editdlrm
BaseCollection.php5960644editdlrm
BaseResource.php4910644editdlrm
Capture.php11830644editdlrm
CaptureCollection.php3640644editdlrm
Chargeback.php13720644editdlrm
ChargebackCollection.php3730644editdlrm
Client.php6080644editdlrm
ClientCollection.php3610644editdlrm
ClientLink.php12730644editdlrm
CurrentProfile.php8090644editdlrm
CursorCollection.php24730644editdlrm
Customer.php56690644editdlrm
CustomerCollection.php3670644editdlrm
Invoice.php18430644editdlrm
InvoiceCollection.php3640644editdlrm
Issuer.php5140644editdlrm
IssuerCollection.php2140644editdlrm
Mandate.php18510644editdlrm
MandateCollection.php8000644editdlrm
Method.php22120644editdlrm
MethodCollection.php2140644editdlrm
MethodPrice.php7340644editdlrm
MethodPriceCollection.php2190644editdlrm
Onboarding.php10620644editdlrm
Order.php130640644editdlrm
OrderCollection.php3580644editdlrm
OrderLine.php85590644editdlrm
OrderLineCollection.php5870644editdlrm
Organization.php12870644editdlrm
OrganizationCollection.php3790644editdlrm
Partner.php12620644editdlrm
Payment.php191450644editdlrm
PaymentCollection.php3640644editdlrm
PaymentLink.php25210644editdlrm
PaymentLinkCollection.php3770644editdlrm
Permission.php3380644editdlrm
PermissionCollection.php2220644editdlrm
Profile.php55350644editdlrm
ProfileCollection.php3640644editdlrm
Refund.php32070644editdlrm
RefundCollection.php3610644editdlrm
ResourceFactory.php20680644editdlrm
Route.php6310644editdlrm
RouteCollection.php3570644editdlrm
Settlement.php40750644editdlrm
SettlementCollection.php3730644editdlrm
Shipment.php26500644editdlrm
ShipmentCollection.php2180644editdlrm
Subscription.php48890644editdlrm
SubscriptionCollection.php3790644editdlrm
Terminal.php32420644editdlrm
TerminalCollection.php3670644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources/OrderLine.php (8559B)
_links->productUrl)) { return null; } return $this->_links->productUrl; } /** * Get the image URL of the product sold. * * @return string|null */ public function getImageUrl() { if (empty($this->_links->imageUrl)) { return null; } return $this->_links->imageUrl; } /** * Is this order line created? * * @return bool */ public function isCreated() { return $this->status === OrderLineStatus::STATUS_CREATED; } /** * Is this order line paid for? * * @return bool */ public function isPaid() { return $this->status === OrderLineStatus::STATUS_PAID; } /** * Is this order line authorized? * * @return bool */ public function isAuthorized() { return $this->status === OrderLineStatus::STATUS_AUTHORIZED; } /** * Is this order line canceled? * * @return bool */ public function isCanceled() { return $this->status === OrderLineStatus::STATUS_CANCELED; } /** * (Deprecated) Is this order line refunded? * @deprecated 2018-11-27 * * @return bool */ public function isRefunded() { return $this->status === OrderLineStatus::STATUS_REFUNDED; } /** * Is this order line shipping? * * @return bool */ public function isShipping() { return $this->status === OrderLineStatus::STATUS_SHIPPING; } /** * Is this order line completed? * * @return bool */ public function isCompleted() { return $this->status === OrderLineStatus::STATUS_COMPLETED; } /** * Is this order line for a physical product? * * @return bool */ public function isPhysical() { return $this->type === OrderLineType::TYPE_PHYSICAL; } /** * Is this order line for applying a discount? * * @return bool */ public function isDiscount() { return $this->type === OrderLineType::TYPE_DISCOUNT; } /** * Is this order line for a digital product? * * @return bool */ public function isDigital() { return $this->type === OrderLineType::TYPE_DIGITAL; } /** * Is this order line for applying a shipping fee? * * @return bool */ public function isShippingFee() { return $this->type === OrderLineType::TYPE_SHIPPING_FEE; } /** * Is this order line for store credit? * * @return bool */ public function isStoreCredit() { return $this->type === OrderLineType::TYPE_STORE_CREDIT; } /** * Is this order line for a gift card? * * @return bool */ public function isGiftCard() { return $this->type === OrderLineType::TYPE_GIFT_CARD; } /** * Is this order line for a surcharge? * * @return bool */ public function isSurcharge() { return $this->type === OrderLineType::TYPE_SURCHARGE; } /** * Update an orderline by supplying one or more parameters in the data array * * @return BaseResource * @throws \Mollie\Api\Exceptions\ApiException */ public function update() { $result = $this->client->orderLines->update($this->orderId, $this->id, $this->getUpdateData()); return ResourceFactory::createFromApiResult($result, new Order($this->client)); } /** * Get sanitized array of order line data * * @return array */ public function getUpdateData() { $data = [ "name" => $this->name, 'imageUrl' => $this->imageUrl, 'productUrl' => $this->productUrl, 'metadata' => $this->metadata, 'sku' => $this->sku, 'quantity' => $this->quantity, 'unitPrice' => $this->unitPrice, 'discountAmount' => $this->discountAmount, 'totalAmount' => $this->totalAmount, 'vatAmount' => $this->vatAmount, 'vatRate' => $this->vatRate, ]; // Explicitly filter only NULL values to keep "vatRate => 0" intact return array_filter($data, function ($value) { return $value !== null; }); } }