Skip to content

Commit 6527b50

Browse files
Update generated code for v2144 and
1 parent e00eba3 commit 6527b50

9 files changed

+251
-19
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2143
1+
v2144

src/main/java/com/stripe/param/PaymentIntentConfirmParams.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3173,9 +3173,9 @@ public static class Benefit {
31733173

31743174
/** French meal voucher benefit details for this PaymentIntent. */
31753175
@SerializedName("fr_meal_voucher")
3176-
FrMealVoucher frMealVoucher;
3176+
Object frMealVoucher;
31773177

3178-
private Benefit(Map<String, Object> extraParams, FrMealVoucher frMealVoucher) {
3178+
private Benefit(Map<String, Object> extraParams, Object frMealVoucher) {
31793179
this.extraParams = extraParams;
31803180
this.frMealVoucher = frMealVoucher;
31813181
}
@@ -3187,7 +3187,7 @@ public static Builder builder() {
31873187
public static class Builder {
31883188
private Map<String, Object> extraParams;
31893189

3190-
private FrMealVoucher frMealVoucher;
3190+
private Object frMealVoucher;
31913191

31923192
/** Finalize and obtain parameter instance from this builder. */
31933193
public PaymentIntentConfirmParams.PaymentDetails.Benefit build() {
@@ -3229,6 +3229,12 @@ public Builder setFrMealVoucher(
32293229
this.frMealVoucher = frMealVoucher;
32303230
return this;
32313231
}
3232+
3233+
/** French meal voucher benefit details for this PaymentIntent. */
3234+
public Builder setFrMealVoucher(EmptyParam frMealVoucher) {
3235+
this.frMealVoucher = frMealVoucher;
3236+
return this;
3237+
}
32323238
}
32333239

32343240
@Getter

src/main/java/com/stripe/param/PaymentIntentCreateParams.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3711,9 +3711,9 @@ public static class Benefit {
37113711

37123712
/** French meal voucher benefit details for this PaymentIntent. */
37133713
@SerializedName("fr_meal_voucher")
3714-
FrMealVoucher frMealVoucher;
3714+
Object frMealVoucher;
37153715

3716-
private Benefit(Map<String, Object> extraParams, FrMealVoucher frMealVoucher) {
3716+
private Benefit(Map<String, Object> extraParams, Object frMealVoucher) {
37173717
this.extraParams = extraParams;
37183718
this.frMealVoucher = frMealVoucher;
37193719
}
@@ -3725,7 +3725,7 @@ public static Builder builder() {
37253725
public static class Builder {
37263726
private Map<String, Object> extraParams;
37273727

3728-
private FrMealVoucher frMealVoucher;
3728+
private Object frMealVoucher;
37293729

37303730
/** Finalize and obtain parameter instance from this builder. */
37313731
public PaymentIntentCreateParams.PaymentDetails.Benefit build() {
@@ -3767,6 +3767,12 @@ public Builder setFrMealVoucher(
37673767
this.frMealVoucher = frMealVoucher;
37683768
return this;
37693769
}
3770+
3771+
/** French meal voucher benefit details for this PaymentIntent. */
3772+
public Builder setFrMealVoucher(EmptyParam frMealVoucher) {
3773+
this.frMealVoucher = frMealVoucher;
3774+
return this;
3775+
}
37703776
}
37713777

37723778
@Getter

src/main/java/com/stripe/param/PaymentIntentUpdateParams.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3421,9 +3421,9 @@ public static class Benefit {
34213421

34223422
/** French meal voucher benefit details for this PaymentIntent. */
34233423
@SerializedName("fr_meal_voucher")
3424-
FrMealVoucher frMealVoucher;
3424+
Object frMealVoucher;
34253425

3426-
private Benefit(Map<String, Object> extraParams, FrMealVoucher frMealVoucher) {
3426+
private Benefit(Map<String, Object> extraParams, Object frMealVoucher) {
34273427
this.extraParams = extraParams;
34283428
this.frMealVoucher = frMealVoucher;
34293429
}
@@ -3435,7 +3435,7 @@ public static Builder builder() {
34353435
public static class Builder {
34363436
private Map<String, Object> extraParams;
34373437

3438-
private FrMealVoucher frMealVoucher;
3438+
private Object frMealVoucher;
34393439

34403440
/** Finalize and obtain parameter instance from this builder. */
34413441
public PaymentIntentUpdateParams.PaymentDetails.Benefit build() {
@@ -3477,6 +3477,12 @@ public Builder setFrMealVoucher(
34773477
this.frMealVoucher = frMealVoucher;
34783478
return this;
34793479
}
3480+
3481+
/** French meal voucher benefit details for this PaymentIntent. */
3482+
public Builder setFrMealVoucher(EmptyParam frMealVoucher) {
3483+
this.frMealVoucher = frMealVoucher;
3484+
return this;
3485+
}
34803486
}
34813487

34823488
@Getter

src/main/java/com/stripe/param/PlanCreateParams.java

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,13 @@ public static class Product {
574574
@SerializedName("tax_code")
575575
String taxCode;
576576

577+
/**
578+
* Tax details for this product, including the <a href="https://stripe.com/tax/tax-codes">tax
579+
* code</a> and an optional performance location.
580+
*/
581+
@SerializedName("tax_details")
582+
TaxDetails taxDetails;
583+
577584
/**
578585
* A label that represents units of this product. When set, this will be included in customers'
579586
* receipts, invoices, Checkout, and the customer portal.
@@ -589,6 +596,7 @@ private Product(
589596
String name,
590597
String statementDescriptor,
591598
String taxCode,
599+
TaxDetails taxDetails,
592600
String unitLabel) {
593601
this.active = active;
594602
this.extraParams = extraParams;
@@ -597,6 +605,7 @@ private Product(
597605
this.name = name;
598606
this.statementDescriptor = statementDescriptor;
599607
this.taxCode = taxCode;
608+
this.taxDetails = taxDetails;
600609
this.unitLabel = unitLabel;
601610
}
602611

@@ -619,6 +628,8 @@ public static class Builder {
619628

620629
private String taxCode;
621630

631+
private TaxDetails taxDetails;
632+
622633
private String unitLabel;
623634

624635
/** Finalize and obtain parameter instance from this builder. */
@@ -631,6 +642,7 @@ public PlanCreateParams.Product build() {
631642
this.name,
632643
this.statementDescriptor,
633644
this.taxCode,
645+
this.taxDetails,
634646
this.unitLabel);
635647
}
636648

@@ -727,6 +739,15 @@ public Builder setTaxCode(String taxCode) {
727739
return this;
728740
}
729741

742+
/**
743+
* Tax details for this product, including the <a href="https://stripe.com/tax/tax-codes">tax
744+
* code</a> and an optional performance location.
745+
*/
746+
public Builder setTaxDetails(PlanCreateParams.Product.TaxDetails taxDetails) {
747+
this.taxDetails = taxDetails;
748+
return this;
749+
}
750+
730751
/**
731752
* A label that represents units of this product. When set, this will be included in
732753
* customers' receipts, invoices, Checkout, and the customer portal.
@@ -736,6 +757,83 @@ public Builder setUnitLabel(String unitLabel) {
736757
return this;
737758
}
738759
}
760+
761+
@Getter
762+
@EqualsAndHashCode(callSuper = false)
763+
public static class TaxDetails {
764+
/**
765+
* Map of extra parameters for custom features not available in this client library. The
766+
* content in this map is not serialized under this field's {@code @SerializedName} value.
767+
* Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
768+
* name in this param object. Effectively, this map is flattened to its parent instance.
769+
*/
770+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
771+
Map<String, Object> extraParams;
772+
773+
/**
774+
* <strong>Required.</strong> A <a href="https://docs.stripe.com/tax/tax-categories">tax
775+
* code</a> ID.
776+
*/
777+
@SerializedName("tax_code")
778+
String taxCode;
779+
780+
private TaxDetails(Map<String, Object> extraParams, String taxCode) {
781+
this.extraParams = extraParams;
782+
this.taxCode = taxCode;
783+
}
784+
785+
public static Builder builder() {
786+
return new Builder();
787+
}
788+
789+
public static class Builder {
790+
private Map<String, Object> extraParams;
791+
792+
private String taxCode;
793+
794+
/** Finalize and obtain parameter instance from this builder. */
795+
public PlanCreateParams.Product.TaxDetails build() {
796+
return new PlanCreateParams.Product.TaxDetails(this.extraParams, this.taxCode);
797+
}
798+
799+
/**
800+
* Add a key/value pair to `extraParams` map. A map is initialized for the first
801+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
802+
* map. See {@link PlanCreateParams.Product.TaxDetails#extraParams} for the field
803+
* documentation.
804+
*/
805+
public Builder putExtraParam(String key, Object value) {
806+
if (this.extraParams == null) {
807+
this.extraParams = new HashMap<>();
808+
}
809+
this.extraParams.put(key, value);
810+
return this;
811+
}
812+
813+
/**
814+
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
815+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
816+
* map. See {@link PlanCreateParams.Product.TaxDetails#extraParams} for the field
817+
* documentation.
818+
*/
819+
public Builder putAllExtraParam(Map<String, Object> map) {
820+
if (this.extraParams == null) {
821+
this.extraParams = new HashMap<>();
822+
}
823+
this.extraParams.putAll(map);
824+
return this;
825+
}
826+
827+
/**
828+
* <strong>Required.</strong> A <a href="https://docs.stripe.com/tax/tax-categories">tax
829+
* code</a> ID.
830+
*/
831+
public Builder setTaxCode(String taxCode) {
832+
this.taxCode = taxCode;
833+
return this;
834+
}
835+
}
836+
}
739837
}
740838

741839
@Getter

0 commit comments

Comments
 (0)