Skip to content

Commit

Permalink
fix: Update TaxLine to have channelLiable, ratePercentage and source
Browse files Browse the repository at this point in the history
  • Loading branch information
TekuSP authored and nozzlegear committed Oct 21, 2024
1 parent d9f957f commit 22244db
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ShopifySharp/Entities/TaxLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ namespace ShopifySharp;

public class TaxLine
{
/// <summary>
/// Whether the channel that submitted the tax line is responsible for remitting it.
/// </summary>
[JsonProperty("channelLiable")]
public bool ChannelLiable { get; set; }

/// <summary>
/// The amount of tax to be charged.
/// </summary>
Expand All @@ -16,6 +22,18 @@ public class TaxLine
[JsonProperty("rate")]
public decimal? Rate { get; set; }

/// <summary>
/// The proportion of the line item price represented by the tax, expressed as a percentage.
/// </summary>
[JsonProperty("ratePercentage")]
public decimal? RatePercentage { get; set; }

/// <summary>
/// The origin of the tax.
/// </summary>
[JsonProperty("source")]
public string Source { get; set; }

/// <summary>
/// The name of the tax.
/// </summary>
Expand Down

0 comments on commit 22244db

Please sign in to comment.