Skip to content

Commit 017ed48

Browse files
Update generated code for v2102 and (#2093)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent b34c9ba commit 017ed48

9 files changed

+1083
-194
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
577fcb57736b925392ea563c0284df9002c75ac9
1+
3ccf295957c8cadc88e1463ea3ab4ec683a0314f

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2099
1+
v2102

src/main/java/com/stripe/model/PaymentIntent.java

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,14 @@ public PaymentIntent verifyMicrodeposits(
15191519
@Setter
15201520
@EqualsAndHashCode(callSuper = false)
15211521
public static class AmountDetails extends StripeObject {
1522-
/** The total discount applied on the transaction. */
1522+
/**
1523+
* The total discount applied on the transaction represented in the <a
1524+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. An integer
1525+
* greater than 0.
1526+
*
1527+
* <p>This field is mutually exclusive with the {@code
1528+
* amount_details[line_items][#][discount_amount]} field.
1529+
*/
15231530
@SerializedName("discount_amount")
15241531
Long discountAmount;
15251532

@@ -1547,15 +1554,25 @@ public static class AmountDetails extends StripeObject {
15471554
@Setter
15481555
@EqualsAndHashCode(callSuper = false)
15491556
public static class Shipping extends StripeObject {
1550-
/** Portion of the amount that is for shipping. */
1557+
/**
1558+
* If a physical good is being shipped, the cost of shipping represented in the <a
1559+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. An
1560+
* integer greater than or equal to 0.
1561+
*/
15511562
@SerializedName("amount")
15521563
Long amount;
15531564

1554-
/** The postal code that represents the shipping source. */
1565+
/**
1566+
* If a physical good is being shipped, the postal code of where it is being shipped from. At
1567+
* most 10 alphanumeric characters long, hyphens are allowed.
1568+
*/
15551569
@SerializedName("from_postal_code")
15561570
String fromPostalCode;
15571571

1558-
/** The postal code that represents the shipping destination. */
1572+
/**
1573+
* If a physical good is being shipped, the postal code of where it is being shipped to. At
1574+
* most 10 alphanumeric characters long, hyphens are allowed.
1575+
*/
15591576
@SerializedName("to_postal_code")
15601577
String toPostalCode;
15611578
}
@@ -1568,7 +1585,14 @@ public static class Shipping extends StripeObject {
15681585
@Setter
15691586
@EqualsAndHashCode(callSuper = false)
15701587
public static class Tax extends StripeObject {
1571-
/** Total portion of the amount that is for tax. */
1588+
/**
1589+
* The total amount of tax on the transaction represented in the <a
1590+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. Required
1591+
* for L2 rates. An integer greater than or equal to 0.
1592+
*
1593+
* <p>This field is mutually exclusive with the {@code
1594+
* amount_details[line_items][#][tax][total_tax_amount]} field.
1595+
*/
15721596
@SerializedName("total_tax_amount")
15731597
Long totalTaxAmount;
15741598
}
@@ -2560,13 +2584,26 @@ public static class WechatPayRedirectToIosApp extends StripeObject {
25602584
@EqualsAndHashCode(callSuper = false)
25612585
public static class PaymentDetails extends StripeObject {
25622586
/**
2563-
* Some customers might be required by their company or organization to provide this
2564-
* information. If so, provide this value. Otherwise you can ignore this field.
2587+
* A unique value to identify the customer. This field is available only for card payments.
2588+
*
2589+
* <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent
2590+
* to card networks.
25652591
*/
25662592
@SerializedName("customer_reference")
25672593
String customerReference;
25682594

2569-
/** A unique value assigned by the business to identify the transaction. */
2595+
/**
2596+
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
2597+
* rates.
2598+
*
2599+
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2600+
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2601+
* is set to {@code true}.
2602+
*
2603+
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
2604+
* being sent to card networks. For Klarna, this field is truncated to 255 characters and is
2605+
* visible to customers when they view the order in the Klarna app.
2606+
*/
25702607
@SerializedName("order_reference")
25712608
String orderReference;
25722609
}

src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
@Setter
2020
@EqualsAndHashCode(callSuper = false)
2121
public class PaymentIntentAmountDetailsLineItem extends ApiResource implements HasId {
22-
/** The amount an item was discounted for. Positive integer. */
22+
/**
23+
* The discount applied on this line item represented in the <a
24+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. An integer
25+
* greater than 0.
26+
*
27+
* <p>This field is mutually exclusive with the {@code amount_details[discount_amount]} field.
28+
*/
2329
@SerializedName("discount_amount")
2430
Long discountAmount;
2531

@@ -40,27 +46,42 @@ public class PaymentIntentAmountDetailsLineItem extends ApiResource implements H
4046
@SerializedName("payment_method_options")
4147
PaymentMethodOptions paymentMethodOptions;
4248

43-
/** Unique identifier of the product. At most 12 characters long. */
49+
/**
50+
* The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters
51+
* long.
52+
*/
4453
@SerializedName("product_code")
4554
String productCode;
4655

47-
/** Name of the product. At most 100 characters long. */
56+
/**
57+
* The product name of the line item. Required for L3 rates. At most 1024 characters long.
58+
*
59+
* <p>For Cards, this field is truncated to 26 alphanumeric characters before being sent to the
60+
* card networks. For Paypal, this field is truncated to 127 characters.
61+
*/
4862
@SerializedName("product_name")
4963
String productName;
5064

51-
/** Number of items of the product. Positive integer. */
65+
/** The quantity of items. Required for L3 rates. An integer greater than 0. */
5266
@SerializedName("quantity")
5367
Long quantity;
5468

5569
/** Contains information about the tax on the item. */
5670
@SerializedName("tax")
5771
Tax tax;
5872

59-
/** Cost of the product. Non-negative integer. */
73+
/**
74+
* The unit cost of the line item represented in the <a
75+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. Required for
76+
* L3 rates. An integer greater than or equal to 0.
77+
*/
6078
@SerializedName("unit_cost")
6179
Long unitCost;
6280

63-
/** A unit of measure for the line item, such as gallons, feet, meters, etc. */
81+
/**
82+
* A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates.
83+
* At most 12 alphanumeric characters long.
84+
*/
6485
@SerializedName("unit_of_measure")
6586
String unitOfMeasure;
6687

@@ -211,7 +232,14 @@ public static class Paypal extends StripeObject {
211232
@Setter
212233
@EqualsAndHashCode(callSuper = false)
213234
public static class Tax extends StripeObject {
214-
/** Total portion of the amount that is for tax. */
235+
/**
236+
* The total amount of tax on the transaction represented in the <a
237+
* href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. Required
238+
* for L2 rates. An integer greater than or equal to 0.
239+
*
240+
* <p>This field is mutually exclusive with the {@code
241+
* amount_details[line_items][#][tax][total_tax_amount]} field.
242+
*/
215243
@SerializedName("total_tax_amount")
216244
Long totalTaxAmount;
217245
}

0 commit comments

Comments
 (0)