-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from avadev/18.1.2
Updated DotNet SDK to 18.1.2
- Loading branch information
Showing
41 changed files
with
2,237 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
/* | ||
* AvaTax API Client Library | ||
* | ||
* (c) 2004-2017 Avalara, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Ted Spence | ||
* @author Zhenya Frolov | ||
* @author Greg Hester | ||
*/ | ||
|
||
namespace Avalara.AvaTax.RestClient | ||
{ | ||
/// <summary> | ||
/// A company-distance-threshold model indicates the distance between a company | ||
/// and the taxing borders of various countries. Distance thresholds are necessary | ||
/// to correctly calculate some value-added taxes. | ||
/// | ||
/// Distance thresholds only apply to sales of goods in certain countries. A distance threshold | ||
/// is applied for each ship-from/ship-to combination of countries. The threshold amount is defined by | ||
/// the ship-to country. | ||
/// | ||
/// Generally, if you have exceeded a distance threshold for taxes between a pair of countries, your tax calculation | ||
/// will be determined to be the rate in the destination country. If you have not exceeded the threshold, | ||
/// your tax calculation will be determined to be the rate in the origin country. | ||
/// | ||
/// The amount of a threshold is not tracked or managed in AvaTax, but the decision of your tax compliance department | ||
/// as to whether you have exceeded this threshold is maintained in this object. | ||
/// | ||
/// By default, you are considered to have exceeded tax thresholds. If you wish to change this default, you can create | ||
/// a company-distance-threshold object to select the correct behavior for this origin/destination tax calculation process. | ||
/// </summary> | ||
public class CompanyDistanceThresholdModel | ||
{ | ||
/// <summary> | ||
/// A unique ID number representing this distance threshold object. | ||
/// </summary> | ||
public Int64? id { get; set; } | ||
|
||
/// <summary> | ||
/// The ID number of the company that defined this distance threshold. | ||
/// </summary> | ||
public Int32? companyId { get; set; } | ||
|
||
/// <summary> | ||
/// The origin country for this threshold. | ||
/// | ||
/// This field supports many different country identifiers: | ||
/// * Two character ISO 3166 codes | ||
/// * Three character ISO 3166 codes | ||
/// * Fully spelled out names of the country in ISO supported languages | ||
/// * Common alternative spellings for many countries | ||
/// | ||
/// For a full list of all supported codes and names, please see the Definitions API `ListCountries`. | ||
/// </summary> | ||
public String originCountry { get; set; } | ||
|
||
/// <summary> | ||
/// The destination country for this threshold. | ||
/// | ||
/// This field supports many different country identifiers: | ||
/// * Two character ISO 3166 codes | ||
/// * Three character ISO 3166 codes | ||
/// * Fully spelled out names of the country in ISO supported languages | ||
/// * Common alternative spellings for many countries | ||
/// | ||
/// For a full list of all supported codes and names, please see the Definitions API `ListCountries`. | ||
/// </summary> | ||
public String destinationCountry { get; set; } | ||
|
||
/// <summary> | ||
/// For distance threshold values that change over time, this is the earliest date for which this distance | ||
/// threshold is valid. If null, this distance threshold is valid for all dates earlier than the `endDate` field. | ||
/// </summary> | ||
public DateTime? effDate { get; set; } | ||
|
||
/// <summary> | ||
/// For distance threshold values that change over time, this is the latest date for which this distance | ||
/// threshold is valid. If null, this distance threshold is valid for all dates later than the `effDate` field. | ||
/// </summary> | ||
public DateTime? endDate { get; set; } | ||
|
||
/// <summary> | ||
/// True if your tax professional has determined that the value-added tax distance threshold is exceeded for this pair of countries. | ||
/// | ||
/// If you set this value to `false`, your value added taxes will be calculated using the origin country. Otherwise, value | ||
/// added taxes will be calculated on the destination country. | ||
/// </summary> | ||
public Boolean? thresholdExceeded { get; set; } | ||
|
||
/// <summary> | ||
/// Indicates the distance threshold type. | ||
/// | ||
/// This value can be either `Sale` or `Purchase`. | ||
/// </summary> | ||
public String type { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// Convert this object to a JSON string of itself | ||
/// </summary> | ||
/// <returns>A JSON string of this object</returns> | ||
public override string ToString() | ||
{ | ||
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.