Foundations Object Model

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 TaxCalculationService method.

Methods

calculateTax

global static TaxCalculationTransformService.TaxResponse calculateTax(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 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 TaxCalculationTransformService.TaxResponse commitTax(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 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.

commitTax

global static TaxCalculationTransformService.TaxResponse commitTax(TaxCalculationTransformService.CommitExistingTaxRequest request)

This method is used to perform the transform operation specific to commitTax and execute the TaxCalculationService.commitTax method, which commits a draft sale or purchase document.

Input Parameters

Name Type Description
request TaxCalculationTransformService.CommitExistingTaxRequest 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 TaxCalculationTransformService.ReversalResponse calculateReversal(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 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 TaxCalculationTransformService.ReversalResponse commitReversal(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 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.

commitReversal

global static TaxCalculationTransformService.ReversalResponse commitReversal(TaxCalculationTransformService.CommitExistingReversalRequest request)

This method is used to perform the transform operation specific to commitReversal and execute the TaxCalculationService.commitReversal method, which commits a draft return document.

Input Parameters

Name Type Description
request TaxCalculationTransformService.CommitExistingReversalRequest 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.

uncommitTax

global static TaxCalculationTransformService.UncommitResponse uncommitTax(TaxCalculationTransformService.UncommitTaxRequest request)

This method is used to perform the transform operation specific to uncommitTax and execute the TaxCalculationService.uncommitTax method, which uncommits a committed sale or purchase document.

Input Parameters

Name Type Description
request TaxCalculationTransformService.UncommitTaxRequest 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

An UncommitResponse object for the transformation process of the uncommitTax method.

uncommitReversal

global static TaxCalculationTransformService.UncommitResponse uncommitReversal(TaxCalculationTransformService.UncommitReversalRequest request)

This method is used to perform the transform operation specific to uncommitReversal and execute the TaxCalculationService.uncommitReversal method, which uncommits a committed return document.

Input Parameters

Name Type Description
request TaxCalculationTransformService.UncommitReversalRequest 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

An UncommitResponse object for the transformation process of the uncommitTax method.

unvoidReversal

global static TaxCalculationTransformService.UnvoidResponse unvoidReversal(TaxCalculationTransformService.UnvoidReversalRequest request)

This method is used to perform the transform operation specific to unvoidReversal and execute the TaxCalculationService.unvoidReversal method, which unvoids a voided return document.

Input Parameters

Name Type Description
request TaxCalculationTransformService.UnvoidReversalRequest 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

An UnvoidResponse object for the transformation process of the unvoidReversal method.

unvoidTax

global static TaxCalculationTransformService.UnvoidResponse unvoidTax(TaxCalculationTransformService.UnvoidTaxRequest request)

This method is used to perform the transform operation specific to unvoidTax and execute the TaxCalculationService.unvoidTax method, which unvoids a voided sale or purchase document.

Input Parameters

Name Type Description
request TaxCalculationTransformService.UnvoidTaxRequest 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

An UnvoidResponse object for the transformation process of the unvoidTax method.

validateAddress

global static TaxCalculationTransformService.ValidateAddressResponse validateAddress(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 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.

verifyReversal

global static TaxCalculationTransformService.VerifyResponse verifyReversal(TaxCalculationTransformService.VerifyReversalRequest request)

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

Input Parameters

Name Type Description
request TaxCalculationTransformService.VerifyReversalRequest 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 VerifyResponse object for the transformation process of the verifyReversal method.

verifyTax

global static TaxCalculationTransformService.VerifyResponse verifyTax(TaxCalculationTransformService.VerifyTaxRequest request)

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

Input Parameters

Name Type Description
request TaxCalculationTransformService.VerifyTaxRequest 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 VerifyResponse object for the transformation process of the verifyTax method.

voidReversal

global static TaxCalculationTransformService.VoidResponse voidReversal(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 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 TaxCalculationTransformService.VoidResponse voidTax(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 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.

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 TransformSourceData The source data to transform.

Methods

Request

global Request()

TaxCalculationTransformService.CalculateTaxRequest

global inherited sharing class CalculateTaxRequest extends Request

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

This class extends TaxCalculationTransformService.Request

Methods

CalculateTaxRequest

global CalculateTaxRequest()

TaxCalculationTransformService.CommitTaxRequest

global inherited sharing class CommitTaxRequest extends Request

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

This class extends TaxCalculationTransformService.Request

Methods

CommitTaxRequest

global CommitTaxRequest()

TaxCalculationTransformService.CommitExistingTaxRequest

global inherited sharing class CommitExistingTaxRequest extends Request

Data that can be used for transformation and to commit a draft sale or purchase document.

This class extends TaxCalculationTransformService.Request

Methods

CommitExistingTaxRequest

global CommitExistingTaxRequest()

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 TaxCalculationTransformService.Request

Methods

CalculateReversalRequest

global CalculateReversalRequest()

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 TaxCalculationTransformService.Request

Methods

CommitReversalRequest

global CommitReversalRequest()

TaxCalculationTransformService.CommitExistingReversalRequest

global inherited sharing class CommitExistingReversalRequest extends Request

Data that can be used for transformation and to commit a draft return document.

This class extends TaxCalculationTransformService.Request

Methods

CommitExistingReversalRequest

global CommitExistingReversalRequest()

TaxCalculationTransformService.UncommitReversalRequest

global inherited sharing class UncommitReversalRequest extends Request

Data that can be used for transformation and to uncommit a committed return document.

This class extends TaxCalculationTransformService.Request

Methods

UncommitReversalRequest

global UncommitReversalRequest()

TaxCalculationTransformService.UncommitTaxRequest

global inherited sharing class UncommitTaxRequest extends Request

Data that can be used for transformation and to uncommit a committed sale or purchase document.

This class extends TaxCalculationTransformService.Request

Methods

UncommitTaxRequest

global UncommitTaxRequest()

TaxCalculationTransformService.UnvoidReversalRequest

global inherited sharing class UnvoidReversalRequest extends Request

Data that can be used for transformation and to unvoid a voided return document.

This class extends TaxCalculationTransformService.Request

Methods

UnvoidReversalRequest

global UnvoidReversalRequest()

TaxCalculationTransformService.UnvoidTaxRequest

global inherited sharing class UnvoidTaxRequest extends Request

Data that can be used for transformation and to unvoid a voided sale or purchase document.

This class extends TaxCalculationTransformService.Request

Methods

UnvoidTaxRequest

global UnvoidTaxRequest()

TaxCalculationTransformService.ValidateAddressRequest

global inherited sharing class ValidateAddressRequest extends Request

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

This class extends TaxCalculationTransformService.Request

Methods

ValidateAddressRequest

global ValidateAddressRequest()

TaxCalculationTransformService.VerifyReversalRequest

global inherited sharing class VerifyReversalRequest extends Request

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

This class extends TaxCalculationTransformService.Request

Methods

VerifyReversalRequest

global VerifyReversalRequest()

TaxCalculationTransformService.VerifyTaxRequest

global inherited sharing class VerifyTaxRequest extends Request

Data that can be used for transformation and to verify a sale or purchase document.

This class extends TaxCalculationTransformService.Request

Methods

VerifyTaxRequest

global VerifyTaxRequest()

TaxCalculationTransformService.VoidTaxRequest

global inherited sharing class VoidTaxRequest extends Request

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

This class extends TaxCalculationTransformService.Request

Methods

VoidTaxRequest

global VoidTaxRequest()

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 TaxCalculationTransformService.Request

Methods

VoidReversalRequest

global VoidReversalRequest()

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<TransformError> getTransformErrors()

Returns a list of errors that occurred during transformation.

TaxCalculationTransformService.UnvoidResponse

global inherited sharing class UnvoidResponse extends Response

Data returned after transformation and external tax calculation to unvoid a sale or purchase document.

This class extends TaxCalculationTransformService.Response

Properties

Name Type Description
Response TaxCalculationService.UnvoidResponse The response from the external tax provider after unvoiding a document.

Methods

UnvoidResponse

global UnvoidResponse()

TaxCalculationTransformService.VerifyResponse

global inherited sharing class VerifyResponse extends Response

Data returned after transformation and external tax calculation to verify a sale or purchase document.

This class extends TaxCalculationTransformService.Response

Properties

Name Type Description
Response TaxCalculationService.VerifyResponse The response from the external tax provider after verifying a sale or purchase document.

Methods

VerifyResponse

global VerifyResponse()

TaxCalculationTransformService.ValidateAddressResponse

global inherited sharing class ValidateAddressResponse extends Response

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

This class extends TaxCalculationTransformService.Response

Properties

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

Methods

ValidateAddressResponse

global ValidateAddressResponse()

TaxCalculationTransformService.TaxResponse

global inherited sharing class TaxResponse extends Response

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

This class extends TaxCalculationTransformService.Response

Properties

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

Methods

TaxResponse

global TaxResponse()

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 TaxCalculationTransformService.Response

Properties

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

Methods

ReversalResponse

global ReversalResponse()

TaxCalculationTransformService.UncommitResponse

global inherited sharing class UncommitResponse extends Response

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

This class extends TaxCalculationTransformService.Response

Properties

Name Type Description
Response TaxCalculationService.UncommitResponse The response from the external tax provider after uncommitting a document.

Methods

UncommitResponse

global UncommitResponse()

TaxCalculationTransformService.VoidResponse

global inherited sharing class VoidResponse extends Response

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

This class extends TaxCalculationTransformService.Response

Properties

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

Methods

VoidResponse

global VoidResponse()

© Copyright 2009–2022 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.