Skip to content

Commit b9daaeb

Browse files
Update generated code for v2139 and
1 parent 2e65837 commit b9daaeb

File tree

8 files changed

+649
-2
lines changed

8 files changed

+649
-2
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
871b39e6175f9f90f8b11ecf1b61a91eb727dfb7
1+
3754185f27424301fe8e10987298640d9043e9e9

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2138
1+
v2139

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

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,14 @@ public static class ProductData {
14411441
@SerializedName("tax_code")
14421442
String taxCode;
14431443

1444+
/**
1445+
* Tax details for this product, including the <a
1446+
* href="https://stripe.com/tax/tax-codes">tax code</a> and an optional performance
1447+
* location.
1448+
*/
1449+
@SerializedName("tax_details")
1450+
TaxDetails taxDetails;
1451+
14441452
/**
14451453
* A label that represents units of this product. When set, this will be included in
14461454
* customers' receipts, invoices, Checkout, and the customer portal.
@@ -1455,13 +1463,15 @@ private ProductData(
14551463
Map<String, String> metadata,
14561464
String name,
14571465
String taxCode,
1466+
TaxDetails taxDetails,
14581467
String unitLabel) {
14591468
this.description = description;
14601469
this.extraParams = extraParams;
14611470
this.images = images;
14621471
this.metadata = metadata;
14631472
this.name = name;
14641473
this.taxCode = taxCode;
1474+
this.taxDetails = taxDetails;
14651475
this.unitLabel = unitLabel;
14661476
}
14671477

@@ -1482,6 +1492,8 @@ public static class Builder {
14821492

14831493
private String taxCode;
14841494

1495+
private TaxDetails taxDetails;
1496+
14851497
private String unitLabel;
14861498

14871499
/** Finalize and obtain parameter instance from this builder. */
@@ -1493,6 +1505,7 @@ public InvoiceAddLinesParams.Line.PriceData.ProductData build() {
14931505
this.metadata,
14941506
this.name,
14951507
this.taxCode,
1508+
this.taxDetails,
14961509
this.unitLabel);
14971510
}
14981511

@@ -1602,6 +1615,17 @@ public Builder setTaxCode(String taxCode) {
16021615
return this;
16031616
}
16041617

1618+
/**
1619+
* Tax details for this product, including the <a
1620+
* href="https://stripe.com/tax/tax-codes">tax code</a> and an optional performance
1621+
* location.
1622+
*/
1623+
public Builder setTaxDetails(
1624+
InvoiceAddLinesParams.Line.PriceData.ProductData.TaxDetails taxDetails) {
1625+
this.taxDetails = taxDetails;
1626+
return this;
1627+
}
1628+
16051629
/**
16061630
* A label that represents units of this product. When set, this will be included in
16071631
* customers' receipts, invoices, Checkout, and the customer portal.
@@ -1611,6 +1635,87 @@ public Builder setUnitLabel(String unitLabel) {
16111635
return this;
16121636
}
16131637
}
1638+
1639+
@Getter
1640+
@EqualsAndHashCode(callSuper = false)
1641+
public static class TaxDetails {
1642+
/**
1643+
* Map of extra parameters for custom features not available in this client library. The
1644+
* content in this map is not serialized under this field's {@code @SerializedName} value.
1645+
* Instead, each key/value pair is serialized as if the key is a root-level field
1646+
* (serialized) name in this param object. Effectively, this map is flattened to its
1647+
* parent instance.
1648+
*/
1649+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1650+
Map<String, Object> extraParams;
1651+
1652+
/**
1653+
* <strong>Required.</strong> A <a href="https://docs.stripe.com/tax/tax-categories">tax
1654+
* code</a> ID.
1655+
*/
1656+
@SerializedName("tax_code")
1657+
String taxCode;
1658+
1659+
private TaxDetails(Map<String, Object> extraParams, String taxCode) {
1660+
this.extraParams = extraParams;
1661+
this.taxCode = taxCode;
1662+
}
1663+
1664+
public static Builder builder() {
1665+
return new Builder();
1666+
}
1667+
1668+
public static class Builder {
1669+
private Map<String, Object> extraParams;
1670+
1671+
private String taxCode;
1672+
1673+
/** Finalize and obtain parameter instance from this builder. */
1674+
public InvoiceAddLinesParams.Line.PriceData.ProductData.TaxDetails build() {
1675+
return new InvoiceAddLinesParams.Line.PriceData.ProductData.TaxDetails(
1676+
this.extraParams, this.taxCode);
1677+
}
1678+
1679+
/**
1680+
* Add a key/value pair to `extraParams` map. A map is initialized for the first
1681+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
1682+
* original map. See {@link
1683+
* InvoiceAddLinesParams.Line.PriceData.ProductData.TaxDetails#extraParams} for the
1684+
* field documentation.
1685+
*/
1686+
public Builder putExtraParam(String key, Object value) {
1687+
if (this.extraParams == null) {
1688+
this.extraParams = new HashMap<>();
1689+
}
1690+
this.extraParams.put(key, value);
1691+
return this;
1692+
}
1693+
1694+
/**
1695+
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1696+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
1697+
* original map. See {@link
1698+
* InvoiceAddLinesParams.Line.PriceData.ProductData.TaxDetails#extraParams} for the
1699+
* field documentation.
1700+
*/
1701+
public Builder putAllExtraParam(Map<String, Object> map) {
1702+
if (this.extraParams == null) {
1703+
this.extraParams = new HashMap<>();
1704+
}
1705+
this.extraParams.putAll(map);
1706+
return this;
1707+
}
1708+
1709+
/**
1710+
* <strong>Required.</strong> A <a href="https://docs.stripe.com/tax/tax-categories">tax
1711+
* code</a> ID.
1712+
*/
1713+
public Builder setTaxCode(String taxCode) {
1714+
this.taxCode = taxCode;
1715+
return this;
1716+
}
1717+
}
1718+
}
16141719
}
16151720

16161721
public enum TaxBehavior implements ApiRequestParams.EnumParam {

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

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,13 @@ public static class ProductData {
13221322
@SerializedName("tax_code")
13231323
Object taxCode;
13241324

1325+
/**
1326+
* Tax details for this product, including the <a href="https://stripe.com/tax/tax-codes">tax
1327+
* code</a> and an optional performance location.
1328+
*/
1329+
@SerializedName("tax_details")
1330+
TaxDetails taxDetails;
1331+
13251332
/**
13261333
* A label that represents units of this product. When set, this will be included in
13271334
* customers' receipts, invoices, Checkout, and the customer portal.
@@ -1336,13 +1343,15 @@ private ProductData(
13361343
Map<String, String> metadata,
13371344
Object name,
13381345
Object taxCode,
1346+
TaxDetails taxDetails,
13391347
Object unitLabel) {
13401348
this.description = description;
13411349
this.extraParams = extraParams;
13421350
this.images = images;
13431351
this.metadata = metadata;
13441352
this.name = name;
13451353
this.taxCode = taxCode;
1354+
this.taxDetails = taxDetails;
13461355
this.unitLabel = unitLabel;
13471356
}
13481357

@@ -1363,6 +1372,8 @@ public static class Builder {
13631372

13641373
private Object taxCode;
13651374

1375+
private TaxDetails taxDetails;
1376+
13661377
private Object unitLabel;
13671378

13681379
/** Finalize and obtain parameter instance from this builder. */
@@ -1374,6 +1385,7 @@ public InvoiceLineItemUpdateParams.PriceData.ProductData build() {
13741385
this.metadata,
13751386
this.name,
13761387
this.taxCode,
1388+
this.taxDetails,
13771389
this.unitLabel);
13781390
}
13791391

@@ -1506,6 +1518,17 @@ public Builder setTaxCode(EmptyParam taxCode) {
15061518
return this;
15071519
}
15081520

1521+
/**
1522+
* Tax details for this product, including the <a
1523+
* href="https://stripe.com/tax/tax-codes">tax code</a> and an optional performance
1524+
* location.
1525+
*/
1526+
public Builder setTaxDetails(
1527+
InvoiceLineItemUpdateParams.PriceData.ProductData.TaxDetails taxDetails) {
1528+
this.taxDetails = taxDetails;
1529+
return this;
1530+
}
1531+
15091532
/**
15101533
* A label that represents units of this product. When set, this will be included in
15111534
* customers' receipts, invoices, Checkout, and the customer portal.
@@ -1524,6 +1547,96 @@ public Builder setUnitLabel(EmptyParam unitLabel) {
15241547
return this;
15251548
}
15261549
}
1550+
1551+
@Getter
1552+
@EqualsAndHashCode(callSuper = false)
1553+
public static class TaxDetails {
1554+
/**
1555+
* Map of extra parameters for custom features not available in this client library. The
1556+
* content in this map is not serialized under this field's {@code @SerializedName} value.
1557+
* Instead, each key/value pair is serialized as if the key is a root-level field
1558+
* (serialized) name in this param object. Effectively, this map is flattened to its parent
1559+
* instance.
1560+
*/
1561+
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1562+
Map<String, Object> extraParams;
1563+
1564+
/**
1565+
* <strong>Required.</strong> A <a href="https://docs.stripe.com/tax/tax-categories">tax
1566+
* code</a> ID.
1567+
*/
1568+
@SerializedName("tax_code")
1569+
Object taxCode;
1570+
1571+
private TaxDetails(Map<String, Object> extraParams, Object taxCode) {
1572+
this.extraParams = extraParams;
1573+
this.taxCode = taxCode;
1574+
}
1575+
1576+
public static Builder builder() {
1577+
return new Builder();
1578+
}
1579+
1580+
public static class Builder {
1581+
private Map<String, Object> extraParams;
1582+
1583+
private Object taxCode;
1584+
1585+
/** Finalize and obtain parameter instance from this builder. */
1586+
public InvoiceLineItemUpdateParams.PriceData.ProductData.TaxDetails build() {
1587+
return new InvoiceLineItemUpdateParams.PriceData.ProductData.TaxDetails(
1588+
this.extraParams, this.taxCode);
1589+
}
1590+
1591+
/**
1592+
* Add a key/value pair to `extraParams` map. A map is initialized for the first
1593+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1594+
* map. See {@link
1595+
* InvoiceLineItemUpdateParams.PriceData.ProductData.TaxDetails#extraParams} for the field
1596+
* documentation.
1597+
*/
1598+
public Builder putExtraParam(String key, Object value) {
1599+
if (this.extraParams == null) {
1600+
this.extraParams = new HashMap<>();
1601+
}
1602+
this.extraParams.put(key, value);
1603+
return this;
1604+
}
1605+
1606+
/**
1607+
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1608+
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1609+
* map. See {@link
1610+
* InvoiceLineItemUpdateParams.PriceData.ProductData.TaxDetails#extraParams} for the field
1611+
* documentation.
1612+
*/
1613+
public Builder putAllExtraParam(Map<String, Object> map) {
1614+
if (this.extraParams == null) {
1615+
this.extraParams = new HashMap<>();
1616+
}
1617+
this.extraParams.putAll(map);
1618+
return this;
1619+
}
1620+
1621+
/**
1622+
* <strong>Required.</strong> A <a href="https://docs.stripe.com/tax/tax-categories">tax
1623+
* code</a> ID.
1624+
*/
1625+
public Builder setTaxCode(String taxCode) {
1626+
this.taxCode = taxCode;
1627+
return this;
1628+
}
1629+
1630+
/**
1631+
* <strong>Required.</strong> A <a href="https://docs.stripe.com/tax/tax-categories">tax
1632+
* code</a> ID.
1633+
*/
1634+
public Builder setTaxCode(EmptyParam taxCode) {
1635+
this.taxCode = taxCode;
1636+
return this;
1637+
}
1638+
}
1639+
}
15271640
}
15281641

15291642
public enum TaxBehavior implements ApiRequestParams.EnumParam {

0 commit comments

Comments
 (0)