Foundations Apex API Developer Reference

fferpcore.TaxCalculationResponseTargetObject

global with sharing class TaxCalculationResponseTargetObject implements TargetObject

This class represents the in-memory tax calculation response target object. This is meant to be used as a source in a Transform Service request.

This class implements the following interfaces:

Methods

TaxCalculationResponseTargetObject

global TaxCalculationResponseTargetObject()

Create a TaxCalculationResponseTargetObject.

TaxCalculationResponseTargetObject

global TaxCalculationResponseTargetObject(fferpcore.TaxCalculationService.TaxResponseLine taxLine)

Create a fferpcore.TaxCalculationResponseTargetObject by passing in a tax line.

Input Parameters

Name Type Description
taxLine fferpcore.TaxCalculationService.TaxResponseLine The tax line being transformed.

get

global Object get(String fieldName)

Get the current value of a field.

Input Parameters

Name Type Description
fieldName String The name of the field.

Return Value

The current value associated with the given field name.

put

global void put(String fieldName, Object value)

Set a value for the given field.

Input Parameters

Name Type Description
fieldName String The name of the field.
value Object The value to set.

getLookup

global fferpcore.TargetObject getLookup(String lookupName)

Input Parameters

Name Type Description
lookupName String The name of the lookup.

Return Value

The TargetObject navigated by the given lookup. Returns null if the lookup is empty. A TargetObject may choose to lazy instantiate a lookup value if the DataTarget supports creation of lookups.

getChildren

global fferpcore.TargetObjectList getChildren(String fieldName)

Input Parameters

Name Type Description
fieldName String The name of the field.

Return Value

Returns a NullTargetObjectList.

getDataType

global fferpcore.DataType getDataType(String fieldName)

Get the data type of the given field.

Input Parameters

Name Type Description
fieldName String The name of the field.

Return Value

The DataType of the given field.

destroy

global void destroy()

Request that this target object is destroyed. Actual destruction may not occur immediately. This means that target objects that are destroyed may be returned by subsequent queries.

isDestroyed

global Boolean isDestroyed()

Check whether the target object is destroyed.

Return Value

Returns true if the target object has been marked as Destroyed.

preventSave

global void preventSave()

Prevent changes to this target object being saved.

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.