@@ -307,8 +307,10 @@ public static class PaymentDetails {
307307 CarRental carRental ;
308308
309309 /**
310- * Some customers might be required by their company or organization to provide this
311- * information. If so, provide this value. Otherwise you can ignore this field.
310+ * A unique value to identify the customer. This field is available only for card payments.
311+ *
312+ * <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent
313+ * to card networks.
312314 */
313315 @ SerializedName ("customer_reference" )
314316 Object customerReference ;
@@ -334,7 +336,18 @@ public static class PaymentDetails {
334336 @ SerializedName ("lodging" )
335337 Lodging lodging ;
336338
337- /** A unique value assigned by the business to identify the transaction. */
339+ /**
340+ * A unique value assigned by the business to identify the transaction. Required for L2 and L3
341+ * rates.
342+ *
343+ * <p>Required when the Payment Method Types array contains {@code card}, including when <a
344+ * href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
345+ * is set to {@code true}.
346+ *
347+ * <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
348+ * being sent to card networks. For Klarna, this field is truncated to 255 characters and is
349+ * visible to customers when they view the order in the Klarna app.
350+ */
338351 @ SerializedName ("order_reference" )
339352 Object orderReference ;
340353
@@ -402,17 +415,21 @@ public Builder setCarRental(ChargeCaptureParams.PaymentDetails.CarRental carRent
402415 }
403416
404417 /**
405- * Some customers might be required by their company or organization to provide this
406- * information. If so, provide this value. Otherwise you can ignore this field.
418+ * A unique value to identify the customer. This field is available only for card payments.
419+ *
420+ * <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being
421+ * sent to card networks.
407422 */
408423 public Builder setCustomerReference (String customerReference ) {
409424 this .customerReference = customerReference ;
410425 return this ;
411426 }
412427
413428 /**
414- * Some customers might be required by their company or organization to provide this
415- * information. If so, provide this value. Otherwise you can ignore this field.
429+ * A unique value to identify the customer. This field is available only for card payments.
430+ *
431+ * <p>This field is truncated to 25 alphanumeric characters, excluding spaces, before being
432+ * sent to card networks.
416433 */
417434 public Builder setCustomerReference (EmptyParam customerReference ) {
418435 this .customerReference = customerReference ;
@@ -463,13 +480,35 @@ public Builder setLodging(ChargeCaptureParams.PaymentDetails.Lodging lodging) {
463480 return this ;
464481 }
465482
466- /** A unique value assigned by the business to identify the transaction. */
483+ /**
484+ * A unique value assigned by the business to identify the transaction. Required for L2 and L3
485+ * rates.
486+ *
487+ * <p>Required when the Payment Method Types array contains {@code card}, including when <a
488+ * href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
489+ * is set to {@code true}.
490+ *
491+ * <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
492+ * before being sent to card networks. For Klarna, this field is truncated to 255 characters
493+ * and is visible to customers when they view the order in the Klarna app.
494+ */
467495 public Builder setOrderReference (String orderReference ) {
468496 this .orderReference = orderReference ;
469497 return this ;
470498 }
471499
472- /** A unique value assigned by the business to identify the transaction. */
500+ /**
501+ * A unique value assigned by the business to identify the transaction. Required for L2 and L3
502+ * rates.
503+ *
504+ * <p>Required when the Payment Method Types array contains {@code card}, including when <a
505+ * href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
506+ * is set to {@code true}.
507+ *
508+ * <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
509+ * before being sent to card networks. For Klarna, this field is truncated to 255 characters
510+ * and is visible to customers when they view the order in the Klarna app.
511+ */
473512 public Builder setOrderReference (EmptyParam orderReference ) {
474513 this .orderReference = orderReference ;
475514 return this ;
0 commit comments