Foundations Apex API Developer Reference

fferpcore.TaxCalculationTransformService

global with sharing class TaxCalculationTransformService

This class is used to perform the transform operation as specified in the transform request and also execute the respective fferpcore.TaxCalculationService method.

Methods

calculateTax

global static fferpcore.TaxCalculationTransformService.TaxResponse calculateTax(fferpcore.TaxCalculationTransformService.CalculateTaxRequest request)

This method is used to perform the transform operation specific to calculateTax and execute the TaxCalculationService.calculateTax method.

Input Parameters

Name Type Description
request fferpcore.TaxCalculationTransformService.CalculateTaxRequest The request that contains the source data to transform and the name of the relevant mapping process, which contains the managed and custom mappings to apply.

Return Value

A TaxResponse object for the transformation process of the calculateTax method.

commitTax

global static fferpcore.TaxCalculationTransformService.TaxResponse commitTax(fferpcore.TaxCalculationTransformService.CommitTaxRequest request)

This method is used to perform the transform operation specific to commitTax and execute the TaxCalculationService.commitTax method.

Input Parameters

Name Type Description
request fferpcore.TaxCalculationTransformService.CommitTaxRequest The request that contains the source data to transform and the name of the relevant mapping process, which contains the managed and custom mappings to apply.

Return Value

A TaxResponse object for the transformation process of the commitTax method.

calculateReversal

global static fferpcore.TaxCalculationTransformService.ReversalResponse calculateReversal(fferpcore.TaxCalculationTransformService.CalculateReversalRequest request)

This method is used to perform the transform operation specific to calculateReversal and execute the TaxCalculationService.calculateReversal method.

Input Parameters

Name Type Description
request fferpcore.TaxCalculationTransformService.CalculateReversalRequest The request that contains the source data to transform and the name of the relevant mapping process, which contains the managed and custom mappings to apply.

Return Value

A ReversalResponse object for the transformation process of the calculateReversal method.

commitReversal

global static fferpcore.TaxCalculationTransformService.ReversalResponse commitReversal(fferpcore.TaxCalculationTransformService.CommitReversalRequest request)

This method is used to perform the transform operation specific to commitReversal and execute the TaxCalculationService.commitReversal method.

Input Parameters

Name Type Description
request fferpcore.TaxCalculationTransformService.CommitReversalRequest The request that contains the source data to transform and the name of the relevant mapping process, which contains the managed and custom mappings to apply.

Return Value

A ReversalResponse object for the transformation process of the commitReversal method.

validateAddress

global static fferpcore.TaxCalculationTransformService.ValidateAddressResponse validateAddress(fferpcore.TaxCalculationTransformService.ValidateAddressRequest request)

This method is used to perform the transform operation specific to validateAddress and execute the TaxCalculationService.validateAddress method.

Input Parameters

Name Type Description
request fferpcore.TaxCalculationTransformService.ValidateAddressRequest The request that contains the source data to transform and the name of the relevant mapping process, which contains the managed and custom mappings to apply.

Return Value

A ValidateAddressResponse object for the transformation process of the validateAddress method.

voidReversal

global static fferpcore.TaxCalculationTransformService.VoidResponse voidReversal(fferpcore.TaxCalculationTransformService.VoidReversalRequest request)

This method is used to perform the transform operation specific to voidReversal and execute the TaxCalculationService.voidReversal method.

Input Parameters

Name Type Description
request fferpcore.TaxCalculationTransformService.VoidReversalRequest The request that contains the source data to transform and the name of the relevant mapping process, which contains the managed and custom mappings to apply.

Return Value

A VoidResponse object for the transformation process of the voidReversal method.

voidTax

global static fferpcore.TaxCalculationTransformService.VoidResponse voidTax(fferpcore.TaxCalculationTransformService.VoidTaxRequest request)

This method is used to perform the transform operation specific to voidTax and execute the TaxCalculationService.voidTax method.

Input Parameters

Name Type Description
request fferpcore.TaxCalculationTransformService.VoidTaxRequest The request that contains the source data to transform and the name of the relevant mapping process, which contains the managed and custom mappings to apply.

Return Value

A VoidResponse object for the transformation process of the voidTax method.

fferpcore.TaxCalculationTransformService.Request

global virtual inherited sharing class Request

Data that can be used for transformation and external tax calculation.

Properties

Name Type Description
TransformProcess String The name of the process for which to transform data.
SourceData fferpcore.TransformSourceData The source data to transform.

Methods

Request

global Request()

fferpcore.TaxCalculationTransformService.CalculateTaxRequest

global inherited sharing class CalculateTaxRequest extends Request

Data that can be used for transformation and to calculate tax.

This class extends fferpcore.TaxCalculationTransformService.Request

Methods

CalculateTaxRequest

global CalculateTaxRequest()

fferpcore.TaxCalculationTransformService.CommitTaxRequest

global inherited sharing class CommitTaxRequest extends Request

Data that can be used for transformation and to commit tax.

This class extends fferpcore.TaxCalculationTransformService.Request

Methods

CommitTaxRequest

global CommitTaxRequest()

fferpcore.TaxCalculationTransformService.CalculateReversalRequest

global inherited sharing class CalculateReversalRequest extends Request

Data that can be used for transformation and to calculate tax for a credit document.

This class extends fferpcore.TaxCalculationTransformService.Request

Methods

CalculateReversalRequest

global CalculateReversalRequest()

fferpcore.TaxCalculationTransformService.CommitReversalRequest

global inherited sharing class CommitReversalRequest extends Request

Data that can be used for transformation and to commit tax for a credit document.

This class extends fferpcore.TaxCalculationTransformService.Request

Methods

CommitReversalRequest

global CommitReversalRequest()

fferpcore.TaxCalculationTransformService.ValidateAddressRequest

global inherited sharing class ValidateAddressRequest extends Request

Data that can be used for transformation and to validate an address.

This class extends fferpcore.TaxCalculationTransformService.Request

Methods

ValidateAddressRequest

global ValidateAddressRequest()

fferpcore.TaxCalculationTransformService.VoidTaxRequest

global inherited sharing class VoidTaxRequest extends Request

Data that can be used for transformation and to void a document.

This class extends fferpcore.TaxCalculationTransformService.Request

Methods

VoidTaxRequest

global VoidTaxRequest()

fferpcore.TaxCalculationTransformService.VoidReversalRequest

global inherited sharing class VoidReversalRequest extends Request

Data that can be used for transformation and to void a credit document.

This class extends fferpcore.TaxCalculationTransformService.Request

Methods

VoidReversalRequest

global VoidReversalRequest()

fferpcore.TaxCalculationTransformService.Response

global virtual inherited sharing class Response

Data returned after transformation and external tax operation.

Methods

Response

global Response()

isSuccess

global Boolean isSuccess()

Indicates whether the operation was successful.

getTransformErrors

global List<fferpcore.TransformError> getTransformErrors()

Returns a list of errors that occurred during transformation.

fferpcore.TaxCalculationTransformService.ValidateAddressResponse

global inherited sharing class ValidateAddressResponse extends Response

Data returned after transformation and external tax calculation to validate an address.

This class extends fferpcore.TaxCalculationTransformService.Response

Properties

Name Type Description
Response fferpcore.TaxCalculationService.ValidateAddressResponse The response from the external tax provider after validating an address.

Methods

ValidateAddressResponse

global ValidateAddressResponse()

fferpcore.TaxCalculationTransformService.TaxResponse

global inherited sharing class TaxResponse extends Response

Data returned after transformation and external tax calculation to calculate tax.

This class extends fferpcore.TaxCalculationTransformService.Response

Properties

Name Type Description
Response fferpcore.TaxCalculationService.TaxResponse The response from the external tax provider after calculating tax.

Methods

TaxResponse

global TaxResponse()

fferpcore.TaxCalculationTransformService.ReversalResponse

global inherited sharing class ReversalResponse extends Response

Data returned after transformation and external tax calculation to calculate tax for a credit document.

This class extends fferpcore.TaxCalculationTransformService.Response

Properties

Name Type Description
Response fferpcore.TaxCalculationService.ReversalResponse The response from the external tax provider after calculating tax on a credit document.

Methods

ReversalResponse

global ReversalResponse()

fferpcore.TaxCalculationTransformService.VoidResponse

global inherited sharing class VoidResponse extends Response

Data returned after transformation and external tax calculation to void a document.

This class extends fferpcore.TaxCalculationTransformService.Response

Properties

Name Type Description
Response fferpcore.TaxCalculationService.VoidResponse The response from the external tax provider after voiding a document.

Methods

VoidResponse

global VoidResponse()

© Copyright 2009–2021 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.