---
schema_version: "1"
id: b4691d43f2b282a0cf8b8283d7f59d511809c119b4cf60d77c8844b621e95e05
title: RuleDetailsResponse Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_commercetax_RuleDetailsResponse.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_RuleDetailsResponse.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6ab41763cb025b16a5bffd211b84f84ccf0823985008e1df1cd555efd8a7ae14
description: Contains details about the tax rules used for tax calculation.Learn more about the available methods with the RuleDetailsResponse class.Contains information about the tax rules used when calculating tax for line items.Sets the NonTaxableRuleId field of the RuleDetailsResponse.Sets the NonTaxableType field of the RuleDetailsResponse.Sets the RateRuleId field of the RuleDetailsResponse.Sets the RateSourceId field on the RuleDetailsResponse.
---
# RuleDetailsResponse Class

Contains details about the tax rules used for tax calculation.

## Namespace

[CommerceTax](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_commercetax.htm "Manage the communication between Salesforce and an external tax engine.")

- **[RuleDetailsResponse Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_RuleDetailsResponse.htm#apex_commercetax_RuleDetailsResponse_methods)**  
    Learn more about the available methods with the RuleDetailsResponse class.

## RuleDetailsResponse Methods

Learn more about the available methods with the RuleDetailsResponse class.

The RuleDetailsResponse includes these methods.

- **[RuleDetailsResponse()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_RuleDetailsResponse.htm#apex_commercetax_RuleDetailsResponse_RuleDetailsResponse)**  
    Contains information about the tax rules used when calculating tax for line items.
- **[setNonTaxableRuleId(nonTaxableRuleId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_RuleDetailsResponse.htm#apex_commercetax_RuleDetailsResponse_setNonTaxableRuleId)**  
    Sets the NonTaxableRuleId field of the RuleDetailsResponse.
- **[setNonTaxableType(nonTaxableType)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_RuleDetailsResponse.htm#apex_commercetax_RuleDetailsResponse_setNonTaxableType)**  
    Sets the NonTaxableType field of the RuleDetailsResponse.
- **[setRateRuleId(rateRuleId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_RuleDetailsResponse.htm#apex_commercetax_RuleDetailsResponse_setRateRuleId)**  
    Sets the RateRuleId field of the RuleDetailsResponse.
- **[setRateSourceId(rateSourceId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_RuleDetailsResponse.htm#apex_commercetax_RuleDetailsResponse_setRateSourceId)**  
    Sets the RateSourceId field on the RuleDetailsResponse.

### RuleDetailsResponse()

Contains information about the tax rules used when calculating tax for line items.

#### Signature

global void RuleDetailsResponse()

#### Return Value

Type: void

### setNonTaxableRuleId(nonTaxableRuleId)

Sets the NonTaxableRuleId field of the RuleDetailsResponse.

#### Signature

global void setNonTaxableRuleId(String nonTaxableRuleId)

#### Parameters

- **nonTaxableRuleId**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    ID of the tax rule applied to non-taxable line items.

#### Return Value

Type: void

### setNonTaxableType(nonTaxableType)

Sets the NonTaxableType field of the RuleDetailsResponse.

#### Signature

global void setNonTaxableType(String nonTaxableType)

#### Parameters

- **nonTaxableType**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    Reason (from several possible types) that a line item is non-taxable.

#### Return Value

Type: void

### setRateRuleId(rateRuleId)

Sets the RateRuleId field of the RuleDetailsResponse.

#### Signature

global void setRateRuleId(String rateRuleId)

#### Parameters

- **rateRuleId**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    ID of the tax rule used to determine a tax rate.

#### Return Value

Type: void

### setRateSourceId(rateSourceId)

Sets the RateSourceId field on the RuleDetailsResponse.

#### Signature

global void setRateSourceId(String rateSourceId)

#### Parameters

- **rateSourceId**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    ID of the source object used for calculating tax rate.

#### Return Value

Type: void