Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Static Public Member Functions | |
static | getStates () |
Data Fields | |
const | STATE_OPEN = 1 |
const | STATE_PAID = 2 |
const | STATE_CANCELED = 3 |
const | CAPTURE_ONLINE = 'online' |
const | CAPTURE_OFFLINE = 'offline' |
const | NOT_CAPTURE = 'not_capture' |
const | REPORT_DATE_TYPE_ORDER_CREATED = 'order_created' |
const | REPORT_DATE_TYPE_INVOICE_CREATED = 'invoice_created' |
![]() | |
const | CUSTOM_ATTRIBUTES = 'custom_attributes' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
![]() | |
const | ENTITY_ID = 'entity_id' |
const | STORE_ID = 'store_id' |
const | BASE_GRAND_TOTAL = 'base_grand_total' |
const | SHIPPING_TAX_AMOUNT = 'shipping_tax_amount' |
const | TAX_AMOUNT = 'tax_amount' |
const | BASE_TAX_AMOUNT = 'base_tax_amount' |
const | STORE_TO_ORDER_RATE = 'store_to_order_rate' |
const | BASE_SHIPPING_TAX_AMOUNT = 'base_shipping_tax_amount' |
const | BASE_DISCOUNT_AMOUNT = 'base_discount_amount' |
const | BASE_TO_ORDER_RATE = 'base_to_order_rate' |
const | GRAND_TOTAL = 'grand_total' |
const | SHIPPING_AMOUNT = 'shipping_amount' |
const | SUBTOTAL_INCL_TAX = 'subtotal_incl_tax' |
const | BASE_SUBTOTAL_INCL_TAX = 'base_subtotal_incl_tax' |
const | STORE_TO_BASE_RATE = 'store_to_base_rate' |
const | BASE_SHIPPING_AMOUNT = 'base_shipping_amount' |
const | TOTAL_QTY = 'total_qty' |
const | BASE_TO_GLOBAL_RATE = 'base_to_global_rate' |
const | SUBTOTAL = 'subtotal' |
const | BASE_SUBTOTAL = 'base_subtotal' |
const | DISCOUNT_AMOUNT = 'discount_amount' |
const | BILLING_ADDRESS_ID = 'billing_address_id' |
const | IS_USED_FOR_REFUND = 'is_used_for_refund' |
const | ORDER_ID = 'order_id' |
const | EMAIL_SENT = 'email_sent' |
const | CAN_VOID_FLAG = 'can_void_flag' |
const | STATE = 'state' |
const | SHIPPING_ADDRESS_ID = 'shipping_address_id' |
const | STORE_CURRENCY_CODE = 'store_currency_code' |
const | TRANSACTION_ID = 'transaction_id' |
const | ORDER_CURRENCY_CODE = 'order_currency_code' |
const | BASE_CURRENCY_CODE = 'base_currency_code' |
const | GLOBAL_CURRENCY_CODE = 'global_currency_code' |
const | INCREMENT_ID = 'increment_id' |
const | CREATED_AT = 'created_at' |
const | UPDATED_AT = 'updated_at' |
const | DISCOUNT_TAX_COMPENSATION_AMOUNT = 'discount_tax_compensation_amount' |
const | BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'base_discount_tax_compensation_amount' |
const | SHIPPING_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'shipping_discount_tax_compensation_amount' |
const | BASE_SHIPPING_DISCOUNT_TAX_COMPENSATION_AMNT = 'base_shipping_discount_tax_compensation_amnt' |
const | SHIPPING_INCL_TAX = 'shipping_incl_tax' |
const | BASE_SHIPPING_INCL_TAX = 'base_shipping_incl_tax' |
const | BASE_TOTAL_REFUNDED = 'base_total_refunded' |
const | DISCOUNT_DESCRIPTION = 'discount_description' |
const | ITEMS = 'items' |
const | COMMENTS = 'comments' |
Protected Member Functions | |
_construct () | |
_beforeSave () | |
_afterSave () | |
![]() | |
filterCustomAttributes ($data) | |
initializeCustomAttributes () | |
convertCustomAttributeValues (array &$customAttributes) | |
getCustomAttributesCodes () | |
_setExtensionAttributes (\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes) | |
_getExtensionAttributes () | |
![]() | |
_construct () | |
_init ($resourceModel) | |
_setResourceModel ($resourceName, $collectionName=null) | |
_getResource () | |
_getEventData () | |
_beforeLoad ($modelId, $field=null) | |
_afterLoad () | |
_hasModelChanged () | |
_getValidatorBeforeSave () | |
_createValidatorBeforeSave () | |
_getValidationRulesBeforeSave () | |
_clearReferences () | |
_clearData () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Static Protected Attributes | |
static | $_states |
![]() | |
static | $_underscoreCache = [] |
@api @method \Magento\Sales\Model\Order\Invoice setSendEmail(bool $value) @method \Magento\Sales\Model\Order\Invoice setCustomerNote(string $value) @method string getCustomerNote() @method \Magento\Sales\Model\Order\Invoice setCustomerNoteNotify(bool $value) @method bool getCustomerNoteNotify() @SuppressWarnings(PHPMD.ExcessivePublicCount) @SuppressWarnings(PHPMD.ExcessiveClassComplexity) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 25 of file Invoice.php.
__construct | ( | \Magento\Framework\Model\Context | $context, |
\Magento\Framework\Registry | $registry, | ||
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory, | ||
AttributeValueFactory | $customAttributeFactory, | ||
\Magento\Sales\Model\Order\Invoice\Config | $invoiceConfig, | ||
\Magento\Sales\Model\OrderFactory | $orderFactory, | ||
\Magento\Framework\Math\CalculatorFactory | $calculatorFactory, | ||
\Magento\Sales\Model\ResourceModel\Order\Invoice\Item\CollectionFactory | $invoiceItemCollectionFactory, | ||
\Magento\Sales\Model\Order\Invoice\CommentFactory | $invoiceCommentFactory, | ||
\Magento\Sales\Model\ResourceModel\Order\Invoice\Comment\CollectionFactory | $commentCollectionFactory, | ||
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource = null , |
||
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection = null , |
||
array | $data = [] |
||
) |
\Magento\Framework\Model\Context | $context | |
\Magento\Framework\Registry | $registry | |
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory | |
AttributeValueFactory | $customAttributeFactory | |
Invoice\Config | $invoiceConfig | |
\Magento\Sales\Model\OrderFactory | $orderFactory | |
\Magento\Framework\Math\CalculatorFactory | $calculatorFactory | |
\Magento\Sales\Model\ResourceModel\Order\Invoice\Item\CollectionFactory | $invoiceItemCollectionFactory | |
Invoice\CommentFactory | $invoiceCommentFactory | |
\Magento\Sales\Model\ResourceModel\Order\Invoice\Comment\CollectionFactory | $commentCollectionFactory | |
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource | |
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection | |
array | $data | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 139 of file Invoice.php.
|
protected |
|
protected |
Before object save manipulations
Perform actions before object save
\Magento\Framework\Model\AbstractModel | \Magento\Framework\DataObject | $object |
Definition at line 760 of file Invoice.php.
|
protected |
Adds comment to invoice with additional possibility to send it to customer via email and show it in customer account
string | $comment | |
bool | $notify | |
bool | $visibleOnFront |
Definition at line 693 of file Invoice.php.
addItem | ( | \Magento\Sales\Model\Order\Invoice\Item | $item | ) |
\Magento\Sales\Model\Order\Invoice\Item | $item |
Definition at line 542 of file Invoice.php.
canCancel | ( | ) |
canCapture | ( | ) |
cancel | ( | ) |
Cancel invoice action
Unregister order totals only for invoices in state PAID
Definition at line 408 of file Invoice.php.
canRefund | ( | ) |
Check invoice refund action availability
Definition at line 326 of file Invoice.php.
canVoid | ( | ) |
capture | ( | ) |
collectTotals | ( | ) |
getAllItems | ( | ) |
getBaseCurrencyCode | ( | ) |
Returns base_currency_code
Implements InvoiceInterface.
Definition at line 854 of file Invoice.php.
getBaseDiscountAmount | ( | ) |
Returns base_discount_amount
Implements InvoiceInterface.
Definition at line 864 of file Invoice.php.
getBaseDiscountTaxCompensationAmount | ( | ) |
Returns base_discount_tax_compensation_amount
Implements InvoiceInterface.
Definition at line 884 of file Invoice.php.
getBaseGrandTotal | ( | ) |
Returns base_grand_total
Implements InvoiceInterface.
Definition at line 874 of file Invoice.php.
getBaseShippingAmount | ( | ) |
Returns base_shipping_amount
Implements InvoiceInterface.
Definition at line 894 of file Invoice.php.
getBaseShippingDiscountTaxCompensationAmnt | ( | ) |
Returns base_shipping_discount_tax_compensation_amnt
Implements InvoiceInterface.
Definition at line 904 of file Invoice.php.
getBaseShippingInclTax | ( | ) |
Returns base_shipping_incl_tax
Implements InvoiceInterface.
Definition at line 914 of file Invoice.php.
getBaseShippingTaxAmount | ( | ) |
Returns base_shipping_tax_amount
Implements InvoiceInterface.
Definition at line 924 of file Invoice.php.
getBaseSubtotal | ( | ) |
Returns base_subtotal
Implements InvoiceInterface.
Definition at line 934 of file Invoice.php.
getBaseSubtotalInclTax | ( | ) |
Returns base_subtotal_incl_tax
Implements InvoiceInterface.
Definition at line 944 of file Invoice.php.
getBaseTaxAmount | ( | ) |
Returns base_tax_amount
Implements InvoiceInterface.
Definition at line 954 of file Invoice.php.
getBaseToGlobalRate | ( | ) |
Returns base_to_global_rate
Implements InvoiceInterface.
Definition at line 964 of file Invoice.php.
getBaseToOrderRate | ( | ) |
Returns base_to_order_rate
Implements InvoiceInterface.
Definition at line 974 of file Invoice.php.
getBaseTotalRefunded | ( | ) |
Returns base_total_refunded
Implements InvoiceInterface.
Definition at line 826 of file Invoice.php.
getBillingAddress | ( | ) |
getBillingAddressId | ( | ) |
Returns billing_address_id
Implements InvoiceInterface.
Definition at line 984 of file Invoice.php.
getCanVoidFlag | ( | ) |
Returns can_void_flag
Implements InvoiceInterface.
Definition at line 994 of file Invoice.php.
getComments | ( | ) |
Return invoice comments
Implements InvoiceInterface.
Definition at line 797 of file Invoice.php.
getCommentsCollection | ( | $reload = false | ) |
bool | $reload |
When invoice created with adding comment, comments collection must be loaded before we added this comment.
Definition at line 716 of file Invoice.php.
getConfig | ( | ) |
Retrieve invoice configuration model
Definition at line 203 of file Invoice.php.
getCreatedAt | ( | ) |
Returns created_at
Implements InvoiceInterface.
Definition at line 1004 of file Invoice.php.
getDiscountAmount | ( | ) |
Returns discount_amount
Implements InvoiceInterface.
Definition at line 1022 of file Invoice.php.
getDiscountDescription | ( | ) |
Returns discount_description
Implements InvoiceInterface.
Definition at line 836 of file Invoice.php.
getDiscountTaxCompensationAmount | ( | ) |
Returns discount_tax_compensation_amount
Implements InvoiceInterface.
Definition at line 1062 of file Invoice.php.
getEmailSent | ( | ) |
Returns email_sent
Implements InvoiceInterface.
Definition at line 1032 of file Invoice.php.
getEntityType | ( | ) |
getExtensionAttributes | ( | ) |
{Retrieve existing extension attributes object or create a new one.
Implements InvoiceInterface.
Definition at line 1609 of file Invoice.php.
getGlobalCurrencyCode | ( | ) |
Returns global_currency_code
Implements InvoiceInterface.
Definition at line 1042 of file Invoice.php.
getGrandTotal | ( | ) |
Returns grand_total
Implements InvoiceInterface.
Definition at line 1052 of file Invoice.php.
getIncrementId | ( | ) |
Returns increment id
Implements InvoiceInterface.
Definition at line 816 of file Invoice.php.
getIsUsedForRefund | ( | ) |
Returns is_used_for_refund
Implements InvoiceInterface.
Definition at line 1072 of file Invoice.php.
getItemById | ( | $itemId | ) |
int | string | $itemId |
Definition at line 528 of file Invoice.php.
getItems | ( | ) |
Returns invoice items
Implements InvoiceInterface.
Definition at line 780 of file Invoice.php.
getItemsCollection | ( | ) |
Get invoice items collection
Definition at line 496 of file Invoice.php.
getOrder | ( | ) |
Retrieve the order the invoice for created for
Definition at line 236 of file Invoice.php.
getOrderCurrencyCode | ( | ) |
Returns order_currency_code
Implements InvoiceInterface.
Definition at line 1082 of file Invoice.php.
getOrderId | ( | ) |
Returns order_id
Implements InvoiceInterface.
Definition at line 1092 of file Invoice.php.
getShippingAddress | ( | ) |
getShippingAddressId | ( | ) |
Returns shipping_address_id
Implements InvoiceInterface.
Definition at line 1102 of file Invoice.php.
getShippingAmount | ( | ) |
Returns shipping_amount
Implements InvoiceInterface.
Definition at line 1112 of file Invoice.php.
getShippingDiscountTaxCompensationAmount | ( | ) |
Returns shipping_discount_tax_compensation_amount
Implements InvoiceInterface.
Definition at line 1122 of file Invoice.php.
getShippingInclTax | ( | ) |
Returns shipping_incl_tax
Implements InvoiceInterface.
Definition at line 1132 of file Invoice.php.
getShippingTaxAmount | ( | ) |
Returns shipping_tax_amount
Implements InvoiceInterface.
Definition at line 1142 of file Invoice.php.
getState | ( | ) |
Returns state
Implements InvoiceInterface.
Definition at line 1152 of file Invoice.php.
getStateName | ( | $stateId = null | ) |
Retrieve invoice state name by state identifier
int | null | $stateId |
Definition at line 575 of file Invoice.php.
|
static |
getStore | ( | ) |
Retrieve store model instance
Definition at line 213 of file Invoice.php.
getStoreCurrencyCode | ( | ) |
Returns store_currency_code
Implements InvoiceInterface.
Definition at line 1162 of file Invoice.php.
getStoreId | ( | ) |
Returns store_id
Implements InvoiceInterface.
Definition at line 1172 of file Invoice.php.
getStoreToBaseRate | ( | ) |
Returns store_to_base_rate
Implements InvoiceInterface.
Definition at line 1182 of file Invoice.php.
getStoreToOrderRate | ( | ) |
Returns store_to_order_rate
Implements InvoiceInterface.
Definition at line 1192 of file Invoice.php.
getSubtotal | ( | ) |
Returns subtotal
Implements InvoiceInterface.
Definition at line 1202 of file Invoice.php.
getSubtotalInclTax | ( | ) |
Returns subtotal_incl_tax
Implements InvoiceInterface.
Definition at line 1212 of file Invoice.php.
getTaxAmount | ( | ) |
Returns tax_amount
Implements InvoiceInterface.
Definition at line 1222 of file Invoice.php.
getTotalQty | ( | ) |
Returns total_qty
Implements InvoiceInterface.
Definition at line 1232 of file Invoice.php.
getTransactionId | ( | ) |
Returns transaction_id
Implements InvoiceInterface.
Definition at line 1242 of file Invoice.php.
getUpdatedAt | ( | ) |
Returns updated_at
Implements InvoiceInterface.
Definition at line 1263 of file Invoice.php.
isCanceled | ( | ) |
isLast | ( | ) |
loadByIncrementId | ( | $incrementId | ) |
Load invoice by increment id
string | $incrementId |
Definition at line 187 of file Invoice.php.
pay | ( | ) |
register | ( | ) |
Register invoice
Apply to order, order items etc.
Definition at line 599 of file Invoice.php.
reset | ( | ) |
Reset invoice object
Definition at line 743 of file Invoice.php.
roundPrice | ( | $price, | |
$type = 'regular' , |
|||
$negative = false |
|||
) |
Round price considering delta
float | $price | |
string | $type | |
bool | $negative | Indicates if we perform addition (true) or subtraction (false) of rounded value |
Definition at line 480 of file Invoice.php.
setBaseCurrencyCode | ( | $code | ) |
{Sets the base currency code for the invoice.
string | $code |
Implements InvoiceInterface.
Definition at line 1519 of file Invoice.php.
setBaseDiscountAmount | ( | $amount | ) |
{Sets the base discount amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1343 of file Invoice.php.
setBaseDiscountTaxCompensationAmount | ( | $amount | ) |
{Sets the base discount tax compensation amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1551 of file Invoice.php.
setBaseGrandTotal | ( | $amount | ) |
{Sets the base grand total for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1295 of file Invoice.php.
setBaseShippingAmount | ( | $amount | ) |
{Sets the base shipping amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1399 of file Invoice.php.
setBaseShippingDiscountTaxCompensationAmnt | ( | $amnt | ) |
{Sets the base shipping discount tax compensation amount for the invoice.
float | $amnt |
Implements InvoiceInterface.
Definition at line 1567 of file Invoice.php.
setBaseShippingInclTax | ( | $amount | ) |
{Sets the base shipping including tax for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1583 of file Invoice.php.
setBaseShippingTaxAmount | ( | $amount | ) |
{Sets the base shipping tax amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1335 of file Invoice.php.
setBaseSubtotal | ( | $amount | ) |
{Sets the base subtotal for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1431 of file Invoice.php.
setBaseSubtotalInclTax | ( | $amount | ) |
{Sets the base subtotal including tax for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1383 of file Invoice.php.
setBaseTaxAmount | ( | $amount | ) |
{Sets the base tax amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1319 of file Invoice.php.
setBaseToGlobalRate | ( | $rate | ) |
{Sets the base-to-global rate for the invoice.
float | $rate |
Implements InvoiceInterface.
Definition at line 1415 of file Invoice.php.
setBaseToOrderRate | ( | $rate | ) |
{Sets the base-to-order rate for the invoice.
float | $rate |
Implements InvoiceInterface.
Definition at line 1351 of file Invoice.php.
setBaseTotalRefunded | ( | $amount | ) |
{Sets the base total refunded for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1591 of file Invoice.php.
setBillingAddressId | ( | $id | ) |
{Sets the billing address ID for the invoice.
int | $id |
Implements InvoiceInterface.
Definition at line 1447 of file Invoice.php.
setCanVoidFlag | ( | $canVoidFlag | ) |
{Sets the can void flag value for the invoice.
int | $canVoidFlag |
Implements InvoiceInterface.
Definition at line 1479 of file Invoice.php.
setComments | ( | $comments | ) |
{Sets the comments, if any, for the invoice.
Implements InvoiceInterface.
Definition at line 1271 of file Invoice.php.
setCreatedAt | ( | $createdAt | ) |
{Sets the created-at timestamp for the invoice.
string | $createdAt | timestamp |
Implements InvoiceInterface.
Definition at line 1012 of file Invoice.php.
setDiscountAmount | ( | $amount | ) |
{Sets the discount amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1439 of file Invoice.php.
setDiscountDescription | ( | $description | ) |
{Sets the discount description for the invoice.
string | $description |
Implements InvoiceInterface.
Definition at line 1599 of file Invoice.php.
setDiscountTaxCompensationAmount | ( | $amount | ) |
{Sets the discount tax compensation amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1543 of file Invoice.php.
setEmailSent | ( | $emailSent | ) |
{Sets the email-sent flag value for the invoice.
int | $emailSent |
Implements InvoiceInterface.
Definition at line 1471 of file Invoice.php.
setExtensionAttributes | ( | \Magento\Sales\Api\Data\InvoiceExtensionInterface | $extensionAttributes | ) |
{}
\Magento\Sales\Api\Data\InvoiceExtensionInterface | $extensionAttributes |
Definition at line 1620 of file Invoice.php.
setGlobalCurrencyCode | ( | $code | ) |
{Sets the global currency code for the invoice.
string | $code |
Implements InvoiceInterface.
Definition at line 1527 of file Invoice.php.
setGrandTotal | ( | $amount | ) |
{Sets the grand total for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1359 of file Invoice.php.
setIncrementId | ( | $id | ) |
{Sets the increment ID for the invoice.
string | $id |
Implements InvoiceInterface.
Definition at line 1535 of file Invoice.php.
setIsUsedForRefund | ( | $isUsedForRefund | ) |
{Sets the is-used-for-refund flag value for the invoice.
int | $isUsedForRefund |
Implements InvoiceInterface.
Definition at line 1455 of file Invoice.php.
setItems | ( | $items | ) |
{Sets the items in the invoice.
Implements InvoiceInterface.
Definition at line 844 of file Invoice.php.
setOrder | ( | \Magento\Sales\Model\Order | $order | ) |
Declare order for invoice
\Magento\Sales\Model\Order | $order |
Definition at line 224 of file Invoice.php.
setOrderCurrencyCode | ( | $code | ) |
{Sets the order currency code for the invoice.
string | $code |
Implements InvoiceInterface.
Definition at line 1511 of file Invoice.php.
setOrderId | ( | $id | ) |
{Sets the order ID for the invoice.
int | $id |
Implements InvoiceInterface.
Definition at line 1463 of file Invoice.php.
setShippingAddressId | ( | $id | ) |
{Sets the shipping address ID for the invoice.
int | $id |
Implements InvoiceInterface.
Definition at line 1495 of file Invoice.php.
setShippingAmount | ( | $amount | ) |
{Sets the shipping amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1367 of file Invoice.php.
setShippingDiscountTaxCompensationAmount | ( | $amount | ) |
{Sets the shipping discount tax compensation amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1559 of file Invoice.php.
setShippingInclTax | ( | $amount | ) |
{Sets the shipping including tax for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1575 of file Invoice.php.
setShippingTaxAmount | ( | $amount | ) |
{Sets the shipping tax amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1303 of file Invoice.php.
setState | ( | $state | ) |
{Sets the state for the invoice.
int | $state |
Implements InvoiceInterface.
Definition at line 1487 of file Invoice.php.
setStoreCurrencyCode | ( | $code | ) |
{Sets the store currency code for the invoice.
string | $code |
Implements InvoiceInterface.
Definition at line 1503 of file Invoice.php.
setStoreId | ( | $id | ) |
{Sets the store ID for the invoice.
int | $id |
Implements InvoiceInterface.
Definition at line 1287 of file Invoice.php.
setStoreToBaseRate | ( | $rate | ) |
{Sets the store-to-base rate for the invoice.
float | $rate |
Implements InvoiceInterface.
Definition at line 1391 of file Invoice.php.
setStoreToOrderRate | ( | $rate | ) |
{Sets the store-to-order rate for the invoice.
float | $rate |
Implements InvoiceInterface.
Definition at line 1327 of file Invoice.php.
setSubtotal | ( | $amount | ) |
{Sets the subtotal for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1423 of file Invoice.php.
setSubtotalInclTax | ( | $amount | ) |
{Sets the subtotal including tax for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1375 of file Invoice.php.
setTaxAmount | ( | $amount | ) |
{Sets the tax amount for the invoice.
float | $amount |
Implements InvoiceInterface.
Definition at line 1311 of file Invoice.php.
setTotalQty | ( | $qty | ) |
{Sets the total quantity for the invoice.
float | $qty |
Implements InvoiceInterface.
Definition at line 1407 of file Invoice.php.
setTransactionId | ( | $transactionId | ) |
Sets transaction_id
string | $transactionId |
Implements InvoiceInterface.
Definition at line 1253 of file Invoice.php.
setUpdatedAt | ( | $timestamp | ) |
{Sets the updated-at timestamp for the invoice.
string | $timestamp |
Implements InvoiceInterface.
Definition at line 1279 of file Invoice.php.
void | ( | ) |
wasPayCalled | ( | ) |
Whether pay() method was called (whether order and payment totals were updated)
Definition at line 386 of file Invoice.php.
|
protected |
Definition at line 106 of file Invoice.php.
|
protected |
Definition at line 121 of file Invoice.php.
|
protected |
Definition at line 84 of file Invoice.php.
|
protected |
Definition at line 79 of file Invoice.php.
|
protected |
Definition at line 116 of file Invoice.php.
|
protected |
Definition at line 96 of file Invoice.php.
|
protected |
Definition at line 111 of file Invoice.php.
|
protected |
Definition at line 62 of file Invoice.php.
|
protected |
Definition at line 101 of file Invoice.php.
|
protected |
Definition at line 69 of file Invoice.php.
|
protected |
Definition at line 74 of file Invoice.php.
|
staticprotected |
Definition at line 57 of file Invoice.php.
|
protected |
Definition at line 91 of file Invoice.php.
|
protected |
Definition at line 52 of file Invoice.php.
const CAPTURE_OFFLINE = 'offline' |
Definition at line 39 of file Invoice.php.
const CAPTURE_ONLINE = 'online' |
#-
Definition at line 37 of file Invoice.php.
const NOT_CAPTURE = 'not_capture' |
Definition at line 41 of file Invoice.php.
const REPORT_DATE_TYPE_INVOICE_CREATED = 'invoice_created' |
Definition at line 45 of file Invoice.php.
const REPORT_DATE_TYPE_ORDER_CREATED = 'order_created' |
Definition at line 43 of file Invoice.php.
const STATE_CANCELED = 3 |
Definition at line 34 of file Invoice.php.
const STATE_OPEN = 1 |
#+ Invoice states
Definition at line 30 of file Invoice.php.
const STATE_PAID = 2 |
Definition at line 32 of file Invoice.php.