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
19 changes: 19 additions & 0 deletions src/main/java/com/stripe/model/v2/billing/LicenseFee.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public class LicenseFee extends StripeObject implements HasId {
@SerializedName("id")
String id;

/** The ID of the license fee's most recently created version. */
@SerializedName("latest_version")
String latestVersion;

/**
* 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 @@ -101,6 +105,21 @@ public class LicenseFee extends StripeObject implements HasId {
@SerializedName("service_cycle")
ServiceCycle serviceCycle;

/**
* The interval for assessing service.
*
* <p>One of {@code day}, {@code month}, {@code week}, or {@code year}.
*/
@SerializedName("service_interval")
String serviceInterval;

/**
* The length of the interval for assessing service. For example, set this to 3 and {@code
* service_interval} to {@code "month"} in order to specify quarterly service.
*/
@SerializedName("service_interval_count")
Long serviceIntervalCount;

/**
* The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.
*
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/v2/billing/PricingPlan.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public class PricingPlan extends StripeObject implements HasId {
@SerializedName("id")
String id;

/** The ID of the latest version of the PricingPlan. */
@SerializedName("latest_version")
String latestVersion;

/** The ID of the live version of the PricingPlan. */
@SerializedName("live_version")
String liveVersion;
Expand Down
23 changes: 23 additions & 0 deletions src/main/java/com/stripe/model/v2/billing/RateCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public class RateCard extends StripeObject implements HasId {
@SerializedName("id")
String id;

/** The ID of this rate card's most recently created version. */
@SerializedName("latest_version")
String latestVersion;

/**
* The ID of the Rate Card Version that will be used by all subscriptions when no specific version
* is specified.
Expand Down Expand Up @@ -95,6 +99,25 @@ public class RateCard extends StripeObject implements HasId {
@SerializedName("service_cycle")
ServiceCycle serviceCycle;

/**
* The interval for assessing service. For example, a monthly Rate Card with a rate of $1 for the
* first 10 &quot;workloads&quot; and $2 thereafter means &quot;$1 per workload up to 10 workloads
* during a month of service.&quot; 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.
*
* <p>One of {@code day}, {@code month}, {@code week}, or {@code year}.
*/
@SerializedName("service_interval")
String serviceInterval;

/**
* The length of the interval for assessing service. For example, set this to 3 and {@code
* service_interval} to {@code "month"} in order to specify quarterly service.
*/
@SerializedName("service_interval_count")
Long serviceIntervalCount;

/**
* The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax.
*
Expand Down
24 changes: 12 additions & 12 deletions src/test/java/com/stripe/functional/GeneratedExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -25620,7 +25620,7 @@ public void testV2BillingLicenseFeeGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.LicenseFee>>() {}.getType(),
"{\"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}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.v2.billing.LicenseFeeListParams params =
Expand Down Expand Up @@ -25648,7 +25648,7 @@ public void testV2BillingLicenseFeePostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.LicenseFee.class,
"{\"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\":[{}]}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.v2.billing.LicenseFeeCreateParams params =
Expand Down Expand Up @@ -25683,7 +25683,7 @@ public void testV2BillingLicenseFeeGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.LicenseFee.class,
"{\"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\":[{}]}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.model.v2.billing.LicenseFee licenseFee =
Expand All @@ -25706,7 +25706,7 @@ public void testV2BillingLicenseFeePost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.LicenseFee.class,
"{\"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\":[{}]}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.v2.billing.LicenseFeeUpdateParams params =
Expand Down Expand Up @@ -26219,7 +26219,7 @@ public void testV2BillingPricingPlanGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.PricingPlan>>() {}.getType(),
"{\"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}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.v2.billing.PricingPlanListParams params =
Expand All @@ -26245,7 +26245,7 @@ public void testV2BillingPricingPlanPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.PricingPlan.class,
"{\"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\"}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.v2.billing.PricingPlanCreateParams params =
Expand Down Expand Up @@ -26276,7 +26276,7 @@ public void testV2BillingPricingPlanGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.PricingPlan.class,
"{\"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\"}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.model.v2.billing.PricingPlan pricingPlan =
Expand All @@ -26299,7 +26299,7 @@ public void testV2BillingPricingPlanPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.PricingPlan.class,
"{\"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\"}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.v2.billing.PricingPlanUpdateParams params =
Expand Down Expand Up @@ -26718,7 +26718,7 @@ public void testV2BillingRateCardGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.RateCard>>() {}.getType(),
"{\"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}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.v2.billing.RateCardListParams params =
Expand All @@ -26744,7 +26744,7 @@ public void testV2BillingRateCardPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCard.class,
"{\"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\"}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.v2.billing.RateCardCreateParams params =
Expand Down Expand Up @@ -26777,7 +26777,7 @@ public void testV2BillingRateCardGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCard.class,
"{\"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\"}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.model.v2.billing.RateCard rateCard =
Expand All @@ -26800,7 +26800,7 @@ public void testV2BillingRateCardPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCard.class,
"{\"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\"}");
StripeClient client = new StripeClient(networkSpy);

com.stripe.param.v2.billing.RateCardUpdateParams params =
Expand Down
Loading