@@ -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 }
0 commit comments