Skip to content

Commit 6b97710

Browse files
Update generated code for v2240 and
1 parent 783ba52 commit 6b97710

5 files changed

Lines changed: 59 additions & 13 deletions

File tree

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4cd98860940da75ae8dfe7384cea405859800e9c
1+
a527d1f955ea1eab1b7ccdb63001a69d1786fc37

src/main/java/com/stripe/model/v2/billing/LicenseFee.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public class LicenseFee extends StripeObject implements HasId {
5252
@SerializedName("id")
5353
String id;
5454

55+
/** The ID of the license fee's most recently created version. */
56+
@SerializedName("latest_version")
57+
String latestVersion;
58+
5559
/**
5660
* A Licensed Item represents a billable item whose pricing is based on license fees. You can use
5761
* license fees to specify the pricing and create subscriptions to these items.
@@ -101,6 +105,21 @@ public class LicenseFee extends StripeObject implements HasId {
101105
@SerializedName("service_cycle")
102106
ServiceCycle serviceCycle;
103107

108+
/**
109+
* The interval for assessing service.
110+
*
111+
* <p>One of {@code day}, {@code month}, {@code week}, or {@code year}.
112+
*/
113+
@SerializedName("service_interval")
114+
String serviceInterval;
115+
116+
/**
117+
* The length of the interval for assessing service. For example, set this to 3 and {@code
118+
* service_interval} to {@code "month"} in order to specify quarterly service.
119+
*/
120+
@SerializedName("service_interval_count")
121+
Long serviceIntervalCount;
122+
104123
/**
105124
* The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.
106125
*

src/main/java/com/stripe/model/v2/billing/PricingPlan.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ public class PricingPlan extends StripeObject implements HasId {
4646
@SerializedName("id")
4747
String id;
4848

49+
/** The ID of the latest version of the PricingPlan. */
50+
@SerializedName("latest_version")
51+
String latestVersion;
52+
4953
/** The ID of the live version of the PricingPlan. */
5054
@SerializedName("live_version")
5155
String liveVersion;

src/main/java/com/stripe/model/v2/billing/RateCard.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public class RateCard extends StripeObject implements HasId {
4747
@SerializedName("id")
4848
String id;
4949

50+
/** The ID of this rate card's most recently created version. */
51+
@SerializedName("latest_version")
52+
String latestVersion;
53+
5054
/**
5155
* The ID of the Rate Card Version that will be used by all subscriptions when no specific version
5256
* is specified.
@@ -95,6 +99,25 @@ public class RateCard extends StripeObject implements HasId {
9599
@SerializedName("service_cycle")
96100
ServiceCycle serviceCycle;
97101

102+
/**
103+
* The interval for assessing service. For example, a monthly Rate Card with a rate of $1 for the
104+
* first 10 &quot;workloads&quot; and $2 thereafter means &quot;$1 per workload up to 10 workloads
105+
* during a month of service.&quot; This is similar to but distinct from billing interval; the
106+
* service interval deals with the rate at which the customer accumulates fees, while the billing
107+
* interval in Cadence deals with the rate the customer is billed.
108+
*
109+
* <p>One of {@code day}, {@code month}, {@code week}, or {@code year}.
110+
*/
111+
@SerializedName("service_interval")
112+
String serviceInterval;
113+
114+
/**
115+
* The length of the interval for assessing service. For example, set this to 3 and {@code
116+
* service_interval} to {@code "month"} in order to specify quarterly service.
117+
*/
118+
@SerializedName("service_interval_count")
119+
Long serviceIntervalCount;
120+
98121
/**
99122
* The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax.
100123
*

src/test/java/com/stripe/functional/GeneratedExamples.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25620,7 +25620,7 @@ public void testV2BillingLicenseFeeGetServices() throws StripeException {
2562025620
new TypeToken<
2562125621
com.stripe.model.v2.StripeCollection<
2562225622
com.stripe.model.v2.billing.LicenseFee>>() {}.getType(),
25623-
"{\"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}");
25623+
"{\"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}");
2562425624
StripeClient client = new StripeClient(networkSpy);
2562525625

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

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

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

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

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

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

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

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

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

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

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

2680626806
com.stripe.param.v2.billing.RateCardUpdateParams params =

0 commit comments

Comments
 (0)