Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
TaxRuleInterface Interface Reference
Inheritance diagram for TaxRuleInterface:
ExtensibleDataInterface Rule

Public Member Functions

 getId ()
 
 setId ($id)
 
 getCode ()
 
 setCode ($code)
 
 getPriority ()
 
 setPriority ($priority)
 
 getPosition ()
 
 setPosition ($position)
 
 getCustomerTaxClassIds ()
 
 setCustomerTaxClassIds (array $customerTaxClassIds=null)
 
 getProductTaxClassIds ()
 
 setProductTaxClassIds (array $productTaxClassIds=null)
 
 getTaxRateIds ()
 
 setTaxRateIds (array $taxRateIds=null)
 
 getCalculateSubtotal ()
 
 setCalculateSubtotal ($calculateSubtotal)
 
 getExtensionAttributes ()
 
 setExtensionAttributes (\Magento\Tax\Api\Data\TaxRuleExtensionInterface $extensionAttributes)
 

Additional Inherited Members

- Data Fields inherited from ExtensibleDataInterface
const EXTENSION_ATTRIBUTES_KEY = 'extension_attributes'
 

Detailed Description

Tax rule interface. @api

Since
100.0.2

Definition at line 16 of file TaxRuleInterface.php.

Member Function Documentation

◆ getCalculateSubtotal()

getCalculateSubtotal ( )

Get calculate subtotal.

Returns
bool|null

Implemented in Rule.

◆ getCode()

getCode ( )

Get tax rule code

Returns
string

Implemented in Rule.

◆ getCustomerTaxClassIds()

getCustomerTaxClassIds ( )

Get customer tax class id

Returns
int[]

Implemented in Rule.

◆ getExtensionAttributes()

getExtensionAttributes ( )

Retrieve existing extension attributes object or create a new one.

Returns
\Magento\Tax\Api\Data\TaxRuleExtensionInterface|null

Implemented in Rule.

◆ getId()

getId ( )

Get id

Returns
int|null

◆ getPosition()

getPosition ( )

Get sort order.

Returns
int

Implemented in Rule.

◆ getPriority()

getPriority ( )

Get priority

Returns
int

Implemented in Rule.

◆ getProductTaxClassIds()

getProductTaxClassIds ( )

Get product tax class id

Returns
int[]

Implemented in Rule.

◆ getTaxRateIds()

getTaxRateIds ( )

Get tax rate ids

Returns
int[]

Implemented in Rule.

◆ setCalculateSubtotal()

setCalculateSubtotal (   $calculateSubtotal)

Set calculate subtotal.

Parameters
bool$calculateSubtotal
Returns
$this

Implemented in Rule.

◆ setCode()

setCode (   $code)

Set tax rule code

Parameters
string$code
Returns
$this

Implemented in Rule.

◆ setCustomerTaxClassIds()

setCustomerTaxClassIds ( array  $customerTaxClassIds = null)

Set customer tax class id

Parameters
int[]$customerTaxClassIds
Returns
$this

Implemented in Rule.

◆ setExtensionAttributes()

setExtensionAttributes ( \Magento\Tax\Api\Data\TaxRuleExtensionInterface  $extensionAttributes)

Set an extension attributes object.

Parameters
\Magento\Tax\Api\Data\TaxRuleExtensionInterface$extensionAttributes
Returns
$this

Implemented in Rule.

◆ setId()

setId (   $id)

Set id

Parameters
int$id
Returns
$this

◆ setPosition()

setPosition (   $position)

Set sort order.

Parameters
int$position
Returns
$this

Implemented in Rule.

◆ setPriority()

setPriority (   $priority)

Set priority

Parameters
int$priority
Returns
$this

Implemented in Rule.

◆ setProductTaxClassIds()

setProductTaxClassIds ( array  $productTaxClassIds = null)

Set product tax class id

Parameters
int[]$productTaxClassIds
Returns
$this

Implemented in Rule.

◆ setTaxRateIds()

setTaxRateIds ( array  $taxRateIds = null)

Set tax rate ids

Parameters
int[]$taxRateIds
Returns
$this

Implemented in Rule.


The documentation for this interface was generated from the following file: