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
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4cd98860940da75ae8dfe7384cea405859800e9c
a527d1f955ea1eab1b7ccdb63001a69d1786fc37
23 changes: 23 additions & 0 deletions src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ public class LicenseFee : StripeEntity<LicenseFee>, IHasId, IHasMetadata, IHasOb
[STJS.JsonPropertyName("display_name")]
public string DisplayName { get; set; }

/// <summary>
/// The ID of the license fee's most recently created version.
/// </summary>
[JsonProperty("latest_version")]
[STJS.JsonPropertyName("latest_version")]
public string LatestVersion { get; set; }

/// <summary>
/// A Licensed Item represents a billable item whose pricing is based on license fees. You
/// can use license fees to specify the pricing and create subscriptions to these items.
Expand Down Expand Up @@ -110,6 +117,22 @@ public class LicenseFee : StripeEntity<LicenseFee>, IHasId, IHasMetadata, IHasOb
[STJS.JsonPropertyName("service_cycle")]
public LicenseFeeServiceCycle ServiceCycle { get; set; }

/// <summary>
/// The interval for assessing service.
/// One of: <c>day</c>, <c>month</c>, <c>week</c>, or <c>year</c>.
/// </summary>
[JsonProperty("service_interval")]
[STJS.JsonPropertyName("service_interval")]
public string ServiceInterval { get; set; }

/// <summary>
/// The length of the interval for assessing service. For example, set this to 3 and
/// <c>service_interval</c> to <c>"month"</c> in order to specify quarterly service.
/// </summary>
[JsonProperty("service_interval_count")]
[STJS.JsonPropertyName("service_interval_count")]
public long ServiceIntervalCount { get; set; }

/// <summary>
/// The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.
/// One of: <c>exclusive</c>, or <c>inclusive</c>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ public class PricingPlan : StripeEntity<PricingPlan>, IHasId, IHasMetadata, IHas
[STJS.JsonPropertyName("display_name")]
public string DisplayName { get; set; }

/// <summary>
/// The ID of the latest version of the PricingPlan.
/// </summary>
[JsonProperty("latest_version")]
[STJS.JsonPropertyName("latest_version")]
public string LatestVersion { get; set; }

/// <summary>
/// The ID of the live version of the PricingPlan.
/// </summary>
Expand Down
27 changes: 27 additions & 0 deletions src/Stripe.net/Entities/V2/Billing/RateCards/RateCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ public class RateCard : StripeEntity<RateCard>, IHasId, IHasMetadata, IHasObject
[STJS.JsonPropertyName("display_name")]
public string DisplayName { get; set; }

/// <summary>
/// The ID of this rate card's most recently created version.
/// </summary>
[JsonProperty("latest_version")]
[STJS.JsonPropertyName("latest_version")]
public string LatestVersion { get; set; }

/// <summary>
/// The ID of the Rate Card Version that will be used by all subscriptions when no specific
/// version is specified.
Expand Down Expand Up @@ -107,6 +114,26 @@ public class RateCard : StripeEntity<RateCard>, IHasId, IHasMetadata, IHasObject
[STJS.JsonPropertyName("service_cycle")]
public RateCardServiceCycle ServiceCycle { get; set; }

/// <summary>
/// The interval for assessing service. For example, a monthly Rate Card with a rate of $1
/// for the first 10 "workloads" and $2 thereafter means "$1 per workload up to 10 workloads
/// during a month of service." This is similar to but distinct from billing interval; the
/// service interval deals with the rate at which the customer accumulates fees, while the
/// billing interval in Cadence deals with the rate the customer is billed.
/// One of: <c>day</c>, <c>month</c>, <c>week</c>, or <c>year</c>.
/// </summary>
[JsonProperty("service_interval")]
[STJS.JsonPropertyName("service_interval")]
public string ServiceInterval { get; set; }

/// <summary>
/// The length of the interval for assessing service. For example, set this to 3 and
/// <c>service_interval</c> to <c>"month"</c> in order to specify quarterly service.
/// </summary>
[JsonProperty("service_interval_count")]
[STJS.JsonPropertyName("service_interval_count")]
public long ServiceIntervalCount { get; set; }

/// <summary>
/// The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax.
/// One of: <c>exclusive</c>, or <c>inclusive</c>.
Expand Down
24 changes: 12 additions & 12 deletions src/StripeTests/Services/GeneratedExamplesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6965,7 +6965,7 @@ public void TestV2BillingLicenseFeeGet()
HttpMethod.Get,
"/v2/billing/license_fees",
(HttpStatusCode)200,
"{\"data\":[{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}],\"next_page_url\":null,\"previous_page_url\":null}",
"{\"data\":[{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}],\"next_page_url\":null,\"previous_page_url\":null}",
"lookup_keys[0]=lookup_keys");
var options = new Stripe.V2.Billing.LicenseFeeListOptions
{
Expand All @@ -6988,7 +6988,7 @@ public void TestV2BillingLicenseFeePost()
HttpMethod.Post,
"/v2/billing/license_fees",
(HttpStatusCode)200,
"{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}");
"{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}");
var options = new Stripe.V2.Billing.LicenseFeeCreateOptions
{
Currency = "usd",
Expand All @@ -7011,7 +7011,7 @@ public void TestV2BillingLicenseFeeGet2()
HttpMethod.Get,
"/v2/billing/license_fees/id_123",
(HttpStatusCode)200,
"{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}");
"{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.LicenseFees;
Stripe.V2.Billing.LicenseFee licenseFee = service.Get("id_123");
Expand All @@ -7027,7 +7027,7 @@ public void TestV2BillingLicenseFeePost2()
HttpMethod.Post,
"/v2/billing/license_fees/id_123",
(HttpStatusCode)200,
"{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}");
"{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}");
var options = new Stripe.V2.Billing.LicenseFeeUpdateOptions();
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.LicenseFees;
Expand Down Expand Up @@ -7387,7 +7387,7 @@ public void TestV2BillingPricingPlanGet()
HttpMethod.Get,
"/v2/billing/pricing_plans",
(HttpStatusCode)200,
"{\"data\":[{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}],\"next_page_url\":null,\"previous_page_url\":null}");
"{\"data\":[{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}],\"next_page_url\":null,\"previous_page_url\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.PricingPlans;
Stripe.V2.StripeList<Stripe.V2.Billing.PricingPlan> pricingPlans = service
Expand All @@ -7402,7 +7402,7 @@ public void TestV2BillingPricingPlanPost()
HttpMethod.Post,
"/v2/billing/pricing_plans",
(HttpStatusCode)200,
"{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}");
"{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}");
var options = new Stripe.V2.Billing.PricingPlanCreateOptions
{
Currency = "usd",
Expand All @@ -7422,7 +7422,7 @@ public void TestV2BillingPricingPlanGet2()
HttpMethod.Get,
"/v2/billing/pricing_plans/id_123",
(HttpStatusCode)200,
"{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}");
"{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.PricingPlans;
Stripe.V2.Billing.PricingPlan pricingPlan = service.Get("id_123");
Expand All @@ -7438,7 +7438,7 @@ public void TestV2BillingPricingPlanPost2()
HttpMethod.Post,
"/v2/billing/pricing_plans/id_123",
(HttpStatusCode)200,
"{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}");
"{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}");
var options = new Stripe.V2.Billing.PricingPlanUpdateOptions();
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.PricingPlans;
Expand Down Expand Up @@ -7723,7 +7723,7 @@ public void TestV2BillingRateCardGet()
HttpMethod.Get,
"/v2/billing/rate_cards",
(HttpStatusCode)200,
"{\"data\":[{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}],\"next_page_url\":null,\"previous_page_url\":null}");
"{\"data\":[{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\"}],\"next_page_url\":null,\"previous_page_url\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.RateCards;
Stripe.V2.StripeList<Stripe.V2.Billing.RateCard> rateCards = service
Expand All @@ -7738,7 +7738,7 @@ public void TestV2BillingRateCardPost()
HttpMethod.Post,
"/v2/billing/rate_cards",
(HttpStatusCode)200,
"{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}");
"{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\"}");
var options = new Stripe.V2.Billing.RateCardCreateOptions
{
Currency = "usd",
Expand All @@ -7760,7 +7760,7 @@ public void TestV2BillingRateCardGet2()
HttpMethod.Get,
"/v2/billing/rate_cards/id_123",
(HttpStatusCode)200,
"{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}");
"{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\"}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.RateCards;
Stripe.V2.Billing.RateCard rateCard = service.Get("id_123");
Expand All @@ -7774,7 +7774,7 @@ public void TestV2BillingRateCardPost2()
HttpMethod.Post,
"/v2/billing/rate_cards/id_123",
(HttpStatusCode)200,
"{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}");
"{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"tax_behavior\":\"exclusive\"}");
var options = new Stripe.V2.Billing.RateCardUpdateOptions();
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.RateCards;
Expand Down
Loading