|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
| const | ENTITY_ID = 'entity_id' |
| const | STORE_ID = 'store_id' |
| const | ADJUSTMENT_POSITIVE = 'adjustment_positive' |
| const | BASE_SHIPPING_TAX_AMOUNT = 'base_shipping_tax_amount' |
| const | STORE_TO_ORDER_RATE = 'store_to_order_rate' |
| const | BASE_DISCOUNT_AMOUNT = 'base_discount_amount' |
| const | BASE_TO_ORDER_RATE = 'base_to_order_rate' |
| const | GRAND_TOTAL = 'grand_total' |
| const | BASE_ADJUSTMENT_NEGATIVE = 'base_adjustment_negative' |
| const | BASE_SUBTOTAL_INCL_TAX = 'base_subtotal_incl_tax' |
| const | SHIPPING_AMOUNT = 'shipping_amount' |
| const | SUBTOTAL_INCL_TAX = 'subtotal_incl_tax' |
| const | ADJUSTMENT_NEGATIVE = 'adjustment_negative' |
| const | BASE_SHIPPING_AMOUNT = 'base_shipping_amount' |
| const | STORE_TO_BASE_RATE = 'store_to_base_rate' |
| const | BASE_TO_GLOBAL_RATE = 'base_to_global_rate' |
| const | BASE_ADJUSTMENT = 'base_adjustment' |
| const | BASE_SUBTOTAL = 'base_subtotal' |
| const | DISCOUNT_AMOUNT = 'discount_amount' |
| const | SUBTOTAL = 'subtotal' |
| const | ADJUSTMENT = 'adjustment' |
| const | BASE_GRAND_TOTAL = 'base_grand_total' |
| const | BASE_ADJUSTMENT_POSITIVE = 'base_adjustment_positive' |
| const | BASE_TAX_AMOUNT = 'base_tax_amount' |
| const | SHIPPING_TAX_AMOUNT = 'shipping_tax_amount' |
| const | TAX_AMOUNT = 'tax_amount' |
| const | ORDER_ID = 'order_id' |
| const | EMAIL_SENT = 'email_sent' |
| const | CREDITMEMO_STATUS = 'creditmemo_status' |
| const | STATE = 'state' |
| const | SHIPPING_ADDRESS_ID = 'shipping_address_id' |
| const | BILLING_ADDRESS_ID = 'billing_address_id' |
| const | INVOICE_ID = 'invoice_id' |
| const | STORE_CURRENCY_CODE = 'store_currency_code' |
| const | ORDER_CURRENCY_CODE = 'order_currency_code' |
| const | BASE_CURRENCY_CODE = 'base_currency_code' |
| const | GLOBAL_CURRENCY_CODE = 'global_currency_code' |
| const | TRANSACTION_ID = 'transaction_id' |
| 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 | DISCOUNT_DESCRIPTION = 'discount_description' |
| const | ITEMS = 'items' |
| const | COMMENTS = 'comments' |
Data Fields inherited from ExtensibleDataInterface | |
| const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
Credit memo interface.
After a customer places and pays for an order and an invoice has been issued, the merchant can create a credit memo to refund all or part of the amount paid for any returned or undelivered items. The memo restores funds to the customer account so that the customer can make future purchases. @api
Definition at line 18 of file CreditmemoInterface.php.
| getAdjustment | ( | ) |
Gets the credit memo adjustment.
Implemented in Creditmemo.
| getAdjustmentNegative | ( | ) |
Gets the credit memo negative adjustment.
Implemented in Creditmemo.
| getAdjustmentPositive | ( | ) |
Gets the credit memo positive adjustment.
Implemented in Creditmemo.
| getBaseAdjustment | ( | ) |
Gets the credit memo base adjustment.
Implemented in Creditmemo.
| getBaseAdjustmentNegative | ( | ) |
Gets the credit memo negative base adjustment.
Implemented in Creditmemo.
| getBaseAdjustmentPositive | ( | ) |
Gets the credit memo positive base adjustment.
Implemented in Creditmemo.
| getBaseCurrencyCode | ( | ) |
Gets the credit memo base currency code.
Implemented in Creditmemo.
| getBaseDiscountAmount | ( | ) |
Gets the credit memo base discount amount.
Implemented in Creditmemo.
| getBaseDiscountTaxCompensationAmount | ( | ) |
Gets the credit memo base discount tax compensation amount.
Implemented in Creditmemo.
| getBaseGrandTotal | ( | ) |
Gets the credit memo base grand total.
Implemented in Creditmemo.
| getBaseShippingAmount | ( | ) |
Gets the credit memo base shipping amount.
Implemented in Creditmemo.
| getBaseShippingDiscountTaxCompensationAmnt | ( | ) |
Gets the credit memo base shipping discount tax compensation amount.
Implemented in Creditmemo.
| getBaseShippingInclTax | ( | ) |
Gets the credit memo base shipping including tax.
Implemented in Creditmemo.
| getBaseShippingTaxAmount | ( | ) |
Gets the credit memo base shipping tax amount.
Implemented in Creditmemo.
| getBaseSubtotal | ( | ) |
Gets the credit memo base subtotal.
Implemented in Creditmemo.
| getBaseSubtotalInclTax | ( | ) |
Gets the credit memo base subtotal including tax.
Implemented in Creditmemo.
| getBaseTaxAmount | ( | ) |
Gets the credit memo base tax amount.
Implemented in Creditmemo.
| getBaseToGlobalRate | ( | ) |
Gets the credit memo base-to-global rate.
Implemented in Creditmemo.
| getBaseToOrderRate | ( | ) |
Gets the credit memo base-to-order rate.
Implemented in Creditmemo.
| getBillingAddressId | ( | ) |
Gets the credit memo billing address ID.
Implemented in Creditmemo.
| getComments | ( | ) |
Gets credit memo comments.
Implemented in Creditmemo.
| getCreatedAt | ( | ) |
Gets the credit memo created-at timestamp.
Implemented in Creditmemo.
| getCreditmemoStatus | ( | ) |
| getDiscountAmount | ( | ) |
Gets the credit memo discount amount.
Implemented in Creditmemo.
| getDiscountDescription | ( | ) |
Gets the credit memo discount description.
Implemented in Creditmemo.
| getDiscountTaxCompensationAmount | ( | ) |
Gets the credit memo discount tax compensation amount.
Implemented in Creditmemo.
| getEmailSent | ( | ) |
Gets the credit memo email sent flag value.
Implemented in Creditmemo.
| getEntityId | ( | ) |
Gets the credit memo ID.
| getExtensionAttributes | ( | ) |
Retrieve existing extension attributes object or create a new one.
Implemented in Creditmemo.
| getGlobalCurrencyCode | ( | ) |
Gets the credit memo global currency code.
Implemented in Creditmemo.
| getGrandTotal | ( | ) |
Gets the credit memo grand total.
Implemented in Creditmemo.
| getIncrementId | ( | ) |
Gets the credit memo increment ID.
Implemented in Creditmemo.
| getInvoiceId | ( | ) |
| getItems | ( | ) |
Gets credit memo items.
Implemented in Creditmemo.
| getOrderCurrencyCode | ( | ) |
Gets the credit memo order currency code.
Implemented in Creditmemo.
| getOrderId | ( | ) |
| getShippingAddressId | ( | ) |
Gets the credit memo shipping address ID.
Implemented in Creditmemo.
| getShippingAmount | ( | ) |
Gets the credit memo shipping amount.
Implemented in Creditmemo.
| getShippingDiscountTaxCompensationAmount | ( | ) |
Gets the credit memo shipping discount tax compensation amount.
Implemented in Creditmemo.
| getShippingInclTax | ( | ) |
Gets the credit memo shipping including tax.
Implemented in Creditmemo.
| getShippingTaxAmount | ( | ) |
Gets the credit memo shipping tax amount.
Implemented in Creditmemo.
| getState | ( | ) |
| getStoreCurrencyCode | ( | ) |
Gets the credit memo store currency code.
Implemented in Creditmemo.
| getStoreId | ( | ) |
| getStoreToBaseRate | ( | ) |
Gets the credit memo store-to-base rate.
Implemented in Creditmemo.
| getStoreToOrderRate | ( | ) |
Gets the credit memo store-to-order rate.
Implemented in Creditmemo.
| getSubtotal | ( | ) |
| getSubtotalInclTax | ( | ) |
Gets the credit memo subtotal including tax.
Implemented in Creditmemo.
| getTaxAmount | ( | ) |
Gets the credit memo tax amount.
Implemented in Creditmemo.
| getTransactionId | ( | ) |
Gets the credit memo transaction ID.
Implemented in Creditmemo.
| getUpdatedAt | ( | ) |
Gets the credit memo updated-at timestamp.
Implemented in Creditmemo.
| setAdjustment | ( | $adjustment | ) |
Sets the credit memo adjustment.
| float | $adjustment |
Implemented in Creditmemo.
| setAdjustmentNegative | ( | $adjustmentNegative | ) |
Sets the credit memo negative adjustment.
| float | $adjustmentNegative |
Implemented in Creditmemo.
| setAdjustmentPositive | ( | $adjustmentPositive | ) |
Sets the credit memo positive adjustment.
| float | $adjustmentPositive |
Implemented in Creditmemo.
| setBaseAdjustment | ( | $baseAdjustment | ) |
Sets the credit memo base adjustment.
| float | $baseAdjustment |
Implemented in Creditmemo.
| setBaseAdjustmentNegative | ( | $baseAdjustmentNegative | ) |
Sets the credit memo negative base adjustment.
| float | $baseAdjustmentNegative |
Implemented in Creditmemo.
| setBaseAdjustmentPositive | ( | $baseAdjustmentPositive | ) |
Sets the credit memo positive base adjustment.
| float | $baseAdjustmentPositive |
Implemented in Creditmemo.
| setBaseCurrencyCode | ( | $code | ) |
Sets the credit memo base currency code.
| string | $code |
Implemented in Creditmemo.
| setBaseDiscountAmount | ( | $amount | ) |
Sets the credit memo base discount amount.
| float | $amount |
Implemented in Creditmemo.
| setBaseDiscountTaxCompensationAmount | ( | $amount | ) |
Sets the credit memo base discount tax compensation amount.
| float | $amount |
Implemented in Creditmemo.
| setBaseGrandTotal | ( | $amount | ) |
Sets the credit memo base grand total.
| float | $amount |
Implemented in Creditmemo.
| setBaseShippingAmount | ( | $amount | ) |
Sets the credit memo base shipping amount.
| float | $amount |
Implemented in Creditmemo.
| setBaseShippingDiscountTaxCompensationAmnt | ( | $amnt | ) |
Sets the credit memo base shipping discount tax compensation amount.
| float | $amnt |
Implemented in Creditmemo.
| setBaseShippingInclTax | ( | $amount | ) |
Sets the credit memo base shipping including tax.
| float | $amount |
Implemented in Creditmemo.
| setBaseShippingTaxAmount | ( | $amount | ) |
Sets the credit memo base shipping tax amount.
| float | $amount |
Implemented in Creditmemo.
| setBaseSubtotal | ( | $amount | ) |
| setBaseSubtotalInclTax | ( | $amount | ) |
Sets the credit memo base subtotal including tax.
| float | $amount |
Implemented in Creditmemo.
| setBaseTaxAmount | ( | $amount | ) |
Sets the credit memo base tax amount.
| float | $amount |
Implemented in Creditmemo.
| setBaseToGlobalRate | ( | $rate | ) |
Sets the credit memo base-to-global rate.
| float | $rate |
Implemented in Creditmemo.
| setBaseToOrderRate | ( | $rate | ) |
Sets the credit memo base-to-order rate.
| float | $rate |
Implemented in Creditmemo.
| setBillingAddressId | ( | $id | ) |
| setComments | ( | $comments | ) |
| setCreatedAt | ( | $createdAt | ) |
Sets the credit memo created-at timestamp.
| string | $createdAt | timestamp |
Implemented in Creditmemo.
| setCreditmemoStatus | ( | $creditmemoStatus | ) |
Sets the credit memo status.
| int | $creditmemoStatus |
Implemented in Creditmemo.
| setDiscountAmount | ( | $amount | ) |
Sets the credit memo discount amount.
| float | $amount |
Implemented in Creditmemo.
| setDiscountDescription | ( | $description | ) |
Sets the credit memo discount description.
| string | $description |
Implemented in Creditmemo.
| setDiscountTaxCompensationAmount | ( | $amount | ) |
Sets the credit memo discount tax compensation amount.
| float | $amount |
Implemented in Creditmemo.
| setEmailSent | ( | $emailSent | ) |
Sets the credit memo email sent flag value.
| int | $emailSent |
Implemented in Creditmemo.
| setEntityId | ( | $entityId | ) |
Sets entity ID.
| int | $entityId |
| setExtensionAttributes | ( | \Magento\Sales\Api\Data\CreditmemoExtensionInterface | $extensionAttributes | ) |
Set an extension attributes object.
| \Magento\Sales\Api\Data\CreditmemoExtensionInterface | $extensionAttributes |
| setGlobalCurrencyCode | ( | $code | ) |
Sets the credit memo global currency code.
| string | $code |
Implemented in Creditmemo.
| setGrandTotal | ( | $amount | ) |
| setIncrementId | ( | $id | ) |
| setInvoiceId | ( | $id | ) |
| setItems | ( | $items | ) |
| setOrderCurrencyCode | ( | $code | ) |
Sets the credit memo order currency code.
| string | $code |
Implemented in Creditmemo.
| setOrderId | ( | $id | ) |
| setShippingAddressId | ( | $id | ) |
| setShippingAmount | ( | $amount | ) |
Sets the credit memo shipping amount.
| float | $amount |
Implemented in Creditmemo.
| setShippingDiscountTaxCompensationAmount | ( | $amount | ) |
Sets the credit memo shipping discount tax compensation amount.
| float | $amount |
Implemented in Creditmemo.
| setShippingInclTax | ( | $amount | ) |
Sets the credit memo shipping including tax.
| float | $amount |
Implemented in Creditmemo.
| setShippingTaxAmount | ( | $amount | ) |
Sets the credit memo shipping tax amount.
| float | $amount |
Implemented in Creditmemo.
| setState | ( | $state | ) |
| setStoreCurrencyCode | ( | $code | ) |
Sets the credit memo store currency code.
| string | $code |
Implemented in Creditmemo.
| setStoreId | ( | $id | ) |
| setStoreToBaseRate | ( | $rate | ) |
Sets the credit memo store-to-base rate.
| float | $rate |
Implemented in Creditmemo.
| setStoreToOrderRate | ( | $rate | ) |
Sets the credit memo store-to-order rate.
| float | $rate |
Implemented in Creditmemo.
| setSubtotal | ( | $amount | ) |
| setSubtotalInclTax | ( | $amount | ) |
Sets the credit memo subtotal including tax.
| float | $amount |
Implemented in Creditmemo.
| setTaxAmount | ( | $amount | ) |
| setTransactionId | ( | $transactionId | ) |
Sets the credit memo transaction ID.
| string | $transactionId |
Implemented in Creditmemo.
| setUpdatedAt | ( | $timestamp | ) |
Sets the credit memo updated-at timestamp.
| string | $timestamp |
Implemented in Creditmemo.
| const ADJUSTMENT = 'adjustment' |
Definition at line 106 of file CreditmemoInterface.php.
| const ADJUSTMENT_NEGATIVE = 'adjustment_negative' |
Definition at line 74 of file CreditmemoInterface.php.
| const ADJUSTMENT_POSITIVE = 'adjustment_positive' |
Definition at line 34 of file CreditmemoInterface.php.
| const BASE_ADJUSTMENT = 'base_adjustment' |
Definition at line 90 of file CreditmemoInterface.php.
| const BASE_ADJUSTMENT_NEGATIVE = 'base_adjustment_negative' |
Definition at line 58 of file CreditmemoInterface.php.
| const BASE_ADJUSTMENT_POSITIVE = 'base_adjustment_positive' |
Definition at line 114 of file CreditmemoInterface.php.
| const BASE_CURRENCY_CODE = 'base_currency_code' |
Definition at line 166 of file CreditmemoInterface.php.
| const BASE_DISCOUNT_AMOUNT = 'base_discount_amount' |
Definition at line 46 of file CreditmemoInterface.php.
| const BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'base_discount_tax_compensation_amount' |
Definition at line 194 of file CreditmemoInterface.php.
| const BASE_GRAND_TOTAL = 'base_grand_total' |
Definition at line 110 of file CreditmemoInterface.php.
| const BASE_SHIPPING_AMOUNT = 'base_shipping_amount' |
Definition at line 78 of file CreditmemoInterface.php.
| const BASE_SHIPPING_DISCOUNT_TAX_COMPENSATION_AMNT = 'base_shipping_discount_tax_compensation_amnt' |
Definition at line 202 of file CreditmemoInterface.php.
| const BASE_SHIPPING_INCL_TAX = 'base_shipping_incl_tax' |
Definition at line 210 of file CreditmemoInterface.php.
| const BASE_SHIPPING_TAX_AMOUNT = 'base_shipping_tax_amount' |
Definition at line 38 of file CreditmemoInterface.php.
| const BASE_SUBTOTAL = 'base_subtotal' |
Definition at line 94 of file CreditmemoInterface.php.
| const BASE_SUBTOTAL_INCL_TAX = 'base_subtotal_incl_tax' |
Definition at line 62 of file CreditmemoInterface.php.
| const BASE_TAX_AMOUNT = 'base_tax_amount' |
Definition at line 118 of file CreditmemoInterface.php.
| const BASE_TO_GLOBAL_RATE = 'base_to_global_rate' |
Definition at line 86 of file CreditmemoInterface.php.
| const BASE_TO_ORDER_RATE = 'base_to_order_rate' |
Definition at line 50 of file CreditmemoInterface.php.
| const BILLING_ADDRESS_ID = 'billing_address_id' |
Definition at line 150 of file CreditmemoInterface.php.
| const COMMENTS = 'comments' |
Definition at line 222 of file CreditmemoInterface.php.
| const CREATED_AT = 'created_at' |
Definition at line 182 of file CreditmemoInterface.php.
| const CREDITMEMO_STATUS = 'creditmemo_status' |
Definition at line 138 of file CreditmemoInterface.php.
| const DISCOUNT_AMOUNT = 'discount_amount' |
Definition at line 98 of file CreditmemoInterface.php.
| const DISCOUNT_DESCRIPTION = 'discount_description' |
Definition at line 214 of file CreditmemoInterface.php.
| const DISCOUNT_TAX_COMPENSATION_AMOUNT = 'discount_tax_compensation_amount' |
Definition at line 190 of file CreditmemoInterface.php.
| const EMAIL_SENT = 'email_sent' |
Definition at line 134 of file CreditmemoInterface.php.
| const ENTITY_ID = 'entity_id' |
#+ Constants for keys of data array. Identical to the name of the getter in snake case.
Definition at line 26 of file CreditmemoInterface.php.
| const GLOBAL_CURRENCY_CODE = 'global_currency_code' |
Definition at line 170 of file CreditmemoInterface.php.
| const GRAND_TOTAL = 'grand_total' |
Definition at line 54 of file CreditmemoInterface.php.
| const INCREMENT_ID = 'increment_id' |
Definition at line 178 of file CreditmemoInterface.php.
| const INVOICE_ID = 'invoice_id' |
Definition at line 154 of file CreditmemoInterface.php.
| const ITEMS = 'items' |
Definition at line 218 of file CreditmemoInterface.php.
| const ORDER_CURRENCY_CODE = 'order_currency_code' |
Definition at line 162 of file CreditmemoInterface.php.
| const ORDER_ID = 'order_id' |
Definition at line 130 of file CreditmemoInterface.php.
| const SHIPPING_ADDRESS_ID = 'shipping_address_id' |
Definition at line 146 of file CreditmemoInterface.php.
| const SHIPPING_AMOUNT = 'shipping_amount' |
Definition at line 66 of file CreditmemoInterface.php.
| const SHIPPING_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'shipping_discount_tax_compensation_amount' |
Definition at line 198 of file CreditmemoInterface.php.
| const SHIPPING_INCL_TAX = 'shipping_incl_tax' |
Definition at line 206 of file CreditmemoInterface.php.
| const SHIPPING_TAX_AMOUNT = 'shipping_tax_amount' |
Definition at line 122 of file CreditmemoInterface.php.
| const STATE = 'state' |
Definition at line 142 of file CreditmemoInterface.php.
| const STORE_CURRENCY_CODE = 'store_currency_code' |
Definition at line 158 of file CreditmemoInterface.php.
| const STORE_ID = 'store_id' |
Definition at line 30 of file CreditmemoInterface.php.
| const STORE_TO_BASE_RATE = 'store_to_base_rate' |
Definition at line 82 of file CreditmemoInterface.php.
| const STORE_TO_ORDER_RATE = 'store_to_order_rate' |
Definition at line 42 of file CreditmemoInterface.php.
| const SUBTOTAL = 'subtotal' |
Definition at line 102 of file CreditmemoInterface.php.
| const SUBTOTAL_INCL_TAX = 'subtotal_incl_tax' |
Definition at line 70 of file CreditmemoInterface.php.
| const TAX_AMOUNT = 'tax_amount' |
Definition at line 126 of file CreditmemoInterface.php.
| const TRANSACTION_ID = 'transaction_id' |
Definition at line 174 of file CreditmemoInterface.php.
| const UPDATED_AT = 'updated_at' |
Definition at line 186 of file CreditmemoInterface.php.