Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,39 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class CreditNoteLineItemTaxTaxRateDetails : StripeEntity<CreditNoteLineItemTaxTaxRateDetails>
{
#region Expandable TaxRate

/// <summary>
/// (ID of the TaxRate)
/// ID of the tax rate.
/// </summary>
[JsonIgnore]
[STJS.JsonIgnore]
public string TaxRateId
{
get => this.InternalTaxRate?.Id;
set => this.InternalTaxRate = SetExpandableFieldId(value, this.InternalTaxRate);
}

/// <summary>
/// (Expanded)
/// ID of the tax rate.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
[JsonIgnore]
[STJS.JsonIgnore]
public TaxRate TaxRate
{
get => this.InternalTaxRate?.ExpandedObject;
set => this.InternalTaxRate = SetExpandableFieldObject(value, this.InternalTaxRate);
}

[JsonProperty("tax_rate")]
[JsonConverter(typeof(ExpandableFieldConverter<TaxRate>))]
[STJS.JsonPropertyName("tax_rate")]
public string TaxRate { get; set; }
[STJS.JsonConverter(typeof(STJExpandableFieldConverter<TaxRate>))]
internal ExpandableField<TaxRate> InternalTaxRate { get; set; }
#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,39 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class CreditNoteTotalTaxTaxRateDetails : StripeEntity<CreditNoteTotalTaxTaxRateDetails>
{
#region Expandable TaxRate

/// <summary>
/// (ID of the TaxRate)
/// ID of the tax rate.
/// </summary>
[JsonIgnore]
[STJS.JsonIgnore]
public string TaxRateId
{
get => this.InternalTaxRate?.Id;
set => this.InternalTaxRate = SetExpandableFieldId(value, this.InternalTaxRate);
}

/// <summary>
/// (Expanded)
/// ID of the tax rate.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
[JsonIgnore]
[STJS.JsonIgnore]
public TaxRate TaxRate
{
get => this.InternalTaxRate?.ExpandedObject;
set => this.InternalTaxRate = SetExpandableFieldObject(value, this.InternalTaxRate);
}

[JsonProperty("tax_rate")]
[JsonConverter(typeof(ExpandableFieldConverter<TaxRate>))]
[STJS.JsonPropertyName("tax_rate")]
public string TaxRate { get; set; }
[STJS.JsonConverter(typeof(STJExpandableFieldConverter<TaxRate>))]
internal ExpandableField<TaxRate> InternalTaxRate { get; set; }
#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,39 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class InvoiceLineItemTaxTaxRateDetails : StripeEntity<InvoiceLineItemTaxTaxRateDetails>
{
#region Expandable TaxRate

/// <summary>
/// (ID of the TaxRate)
/// ID of the tax rate.
/// </summary>
[JsonIgnore]
[STJS.JsonIgnore]
public string TaxRateId
{
get => this.InternalTaxRate?.Id;
set => this.InternalTaxRate = SetExpandableFieldId(value, this.InternalTaxRate);
}

/// <summary>
/// (Expanded)
/// ID of the tax rate.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
[JsonIgnore]
[STJS.JsonIgnore]
public TaxRate TaxRate
{
get => this.InternalTaxRate?.ExpandedObject;
set => this.InternalTaxRate = SetExpandableFieldObject(value, this.InternalTaxRate);
}

[JsonProperty("tax_rate")]
[JsonConverter(typeof(ExpandableFieldConverter<TaxRate>))]
[STJS.JsonPropertyName("tax_rate")]
public string TaxRate { get; set; }
[STJS.JsonConverter(typeof(STJExpandableFieldConverter<TaxRate>))]
internal ExpandableField<TaxRate> InternalTaxRate { get; set; }
#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,39 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class InvoiceTotalTaxTaxRateDetails : StripeEntity<InvoiceTotalTaxTaxRateDetails>
{
#region Expandable TaxRate

/// <summary>
/// (ID of the TaxRate)
/// ID of the tax rate.
/// </summary>
[JsonIgnore]
[STJS.JsonIgnore]
public string TaxRateId
{
get => this.InternalTaxRate?.Id;
set => this.InternalTaxRate = SetExpandableFieldId(value, this.InternalTaxRate);
}

/// <summary>
/// (Expanded)
/// ID of the tax rate.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
[JsonIgnore]
[STJS.JsonIgnore]
public TaxRate TaxRate
{
get => this.InternalTaxRate?.ExpandedObject;
set => this.InternalTaxRate = SetExpandableFieldObject(value, this.InternalTaxRate);
}

[JsonProperty("tax_rate")]
[JsonConverter(typeof(ExpandableFieldConverter<TaxRate>))]
[STJS.JsonPropertyName("tax_rate")]
public string TaxRate { get; set; }
[STJS.JsonConverter(typeof(STJExpandableFieldConverter<TaxRate>))]
internal ExpandableField<TaxRate> InternalTaxRate { get; set; }
#endregion
}
}
Loading