/
home
/
techb158
/
immovalet.com
/
vendor
/
mollie
/
mollie-api-php
/
src
/
Resources
/
/home/techb158/immovalet.com/vendor/mollie/mollie-api-php/src/Resources
mkdir
upload
Name
Size
Mode
Actions
BaseCollection.php
586
0644
edit
dl
rm
BaseResource.php
313
0644
edit
dl
rm
Capture.php
1176
0644
edit
dl
rm
CaptureCollection.php
364
0644
edit
dl
rm
Chargeback.php
978
0644
edit
dl
rm
ChargebackCollection.php
373
0644
edit
dl
rm
CurrentProfile.php
809
0644
edit
dl
rm
CursorCollection.php
2468
0644
edit
dl
rm
Customer.php
5390
0644
edit
dl
rm
CustomerCollection.php
367
0644
edit
dl
rm
Invoice.php
1919
0644
edit
dl
rm
InvoiceCollection.php
364
0644
edit
dl
rm
Issuer.php
514
0644
edit
dl
rm
IssuerCollection.php
214
0644
edit
dl
rm
Mandate.php
1869
0644
edit
dl
rm
MandateCollection.php
773
0644
edit
dl
rm
Method.php
2103
0644
edit
dl
rm
MethodCollection.php
214
0644
edit
dl
rm
MethodPrice.php
734
0644
edit
dl
rm
MethodPriceCollection.php
219
0644
edit
dl
rm
Onboarding.php
1120
0644
edit
dl
rm
Order.php
12538
0644
edit
dl
rm
OrderCollection.php
358
0644
edit
dl
rm
OrderLine.php
8508
0644
edit
dl
rm
OrderLineCollection.php
587
0644
edit
dl
rm
Organization.php
1287
0644
edit
dl
rm
OrganizationCollection.php
379
0644
edit
dl
rm
Payment.php
17070
0644
edit
dl
rm
PaymentCollection.php
364
0644
edit
dl
rm
PaymentLink.php
2385
0644
edit
dl
rm
PaymentLinkCollection.php
377
0644
edit
dl
rm
Permission.php
396
0644
edit
dl
rm
PermissionCollection.php
222
0644
edit
dl
rm
Profile.php
5329
0644
edit
dl
rm
ProfileCollection.php
364
0644
edit
dl
rm
Refund.php
2699
0644
edit
dl
rm
RefundCollection.php
361
0644
edit
dl
rm
ResourceFactory.php
2046
0644
edit
dl
rm
Settlement.php
4602
0644
edit
dl
rm
SettlementCollection.php
373
0644
edit
dl
rm
Shipment.php
2708
0644
edit
dl
rm
ShipmentCollection.php
218
0644
edit
dl
rm
Subscription.php
4685
0644
edit
dl
rm
SubscriptionCollection.php
379
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/vendor/mollie/mollie-api-php/src/Resources/OrderLine.php
(8508B)
<?php namespace Mollie\Api\Resources; use Mollie\Api\Types\OrderLineStatus; use Mollie\Api\Types\OrderLineType; class OrderLine extends BaseResource { /** * Always 'orderline' * * @var string */ public $resource; /** * Id of the order line. * * @var string */ public $id; /** * The ID of the order this line belongs to. * * @example ord_kEn1PlbGa * @var string */ public $orderId; /** * The type of product bought. * * @example physical * @var string */ public $type; /** * A description of the order line. * * @example LEGO 4440 Forest Police Station * @var string */ public $name; /** * The status of the order line. * * @var string */ public $status; /** * Can this order line be canceled? * * @var bool */ public $isCancelable; /** * The number of items in the order line. * * @var int */ public $quantity; /** * The number of items that are shipped for this order line. * * @var int */ public $quantityShipped; /** * The total amount that is shipped for this order line. * * @var \stdClass */ public $amountShipped; /** * The number of items that are refunded for this order line. * * @var int */ public $quantityRefunded; /** * The total amount that is refunded for this order line. * * @var \stdClass */ public $amountRefunded; /** * The number of items that are canceled in this order line. * * @var int */ public $quantityCanceled; /** * The total amount that is canceled in this order line. * * @var \stdClass */ public $amountCanceled; /** * The number of items that can still be shipped for this order line. * * @var int */ public $shippableQuantity; /** * The number of items that can still be refunded for this order line. * * @var int */ public $refundableQuantity; /** * The number of items that can still be canceled for this order line. * * @var int */ public $cancelableQuantity; /** * The price of a single item in the order line. * * @var \stdClass */ public $unitPrice; /** * Any discounts applied to the order line. * * @var \stdClass|null */ public $discountAmount; /** * The total amount of the line, including VAT and discounts. * * @var \stdClass */ public $totalAmount; /** * The VAT rate applied to the order line. It is defined as a string * and not as a float to ensure the correct number of decimals are * passed. * * @example "21.00" * @var string */ public $vatRate; /** * The amount of value-added tax on the line. * * @var \stdClass */ public $vatAmount; /** * The SKU, EAN, ISBN or UPC of the product sold. * * @var string|null */ public $sku; /** * A link pointing to an image of the product sold. * * @var string|null */ public $imageUrl; /** * A link pointing to the product page in your web shop of the product sold. * * @var string|null */ public $productUrl; /** * During creation of the order you can set custom metadata on order lines that is stored with * the order, and given back whenever you retrieve that order line. * * @var \stdClass|mixed|null */ public $metadata; /** * The order line's date and time of creation, in ISO 8601 format. * * @example 2018-08-02T09:29:56+00:00 * @var string */ public $createdAt; /** * @var \stdClass */ public $_links; /** * Get the url pointing to the product page in your web shop of the product sold. * * @return string|null */ public function getProductUrl() { if (empty($this->_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 */ 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; }); } }
Save
cmd:
run