CartExtension.CartTax

This Apex object represents an in-memory CartTax record and its relationships with other records. All formula and roll-up summary standard fields are updated at runtime.
Loading and saving this object is not possible in Apex but is done by Salesforce.
See Object Reference: CartTax

Constructors 

global CartTax(TaxTypeEnum taxType, Decimal amount, String name) 

Constructor for CartTax object. All arguments are required.

Parameters 

ParamDescription
taxTypeInitial value for CartTax.TaxType.
amountInitial value for CartTax.Amount.
nameInitial value for CartTax.Name.

Methods 

global Decimal getAmount() 

Get CartTax.Amount.

Returns 

TypeDescription
Decimal

global void setAmount(Decimal amount) 

Set CartTax.Amount.

Returns 

TypeDescription
void

global String getDescription() 

Get CartTax.Description.

Returns 

TypeDescription
String

global void setDescription(String description) 

Set CartTax.Description.

Returns 

TypeDescription
void

global TaxTypeEnum getTaxType() 

Get CartTax.TaxType.

Returns 

TypeDescription
TaxTypeEnumCartExtension.TaxTypeEnum

global void setTaxType(TaxTypeEnum taxType) 

Get CartTax.TaxType.

Returns 

TypeDescription
void

global String getTaxRate() 

Get CartTax.TaxRate.

Returns 

TypeDescription
String

global void setTaxRate(String taxRate) 

Set CartTax.TaxRate.

Returns 

TypeDescription
void

global String getName() 

Get CartTax.Name.

Returns 

TypeDescription
String

global void setName(String name) 

Set CartTax.Name.

Returns 

TypeDescription
void

global ID getId() 

Get Id.

Returns 

TypeDescription
ID

global Datetime getCreatedDate() 

Get System Field CreatedDate.

Returns 

TypeDescription
Datetime

global Datetime getLastModifiedDate() 

Get System Field LastModifiedDate.

Returns 

TypeDescription
Datetime

global ID getCreatedById() 

Get System Field CreatedById.

Returns 

TypeDescription
ID

global ID getLastModifiedById() 

Get System Field LastModifiedById.

Returns 

TypeDescription
ID

global Object getCustomField(String fieldName) 

Get value of the given custom field (needs to be api name)

Returns 

TypeDescription
Object

global void setCustomField(String fieldName, Object fieldValue) 

Set the value of the given custom field (needs to be api name)

Returns 

TypeDescription
void

public Boolean equals(Object obj) 

public Integer hashCode() 


Newer Version Available

This content describes an older version of this product. View Latest