@@ -140,6 +140,26 @@ class CardPaymentDetails extends JsonSerializableType
140140 #[JsonProperty('errors ' ), ArrayType([Error::class])]
141141 private ?array $ errors ;
142142
143+ /**
144+ * @var ?CardSurchargeDetails $appliedCardSurchargeDetails Additional information about a card_surcharge on the payment.
145+ */
146+ #[JsonProperty('applied_card_surcharge_details ' )]
147+ private ?CardSurchargeDetails $ appliedCardSurchargeDetails ;
148+
149+ /**
150+ * The type of digital wallet used for this card payment, if applicable.
151+ * Currently only populated for in-person Apple Pay payments. Detection has no false
152+ * positives but may have false negatives (some Apple Pay payments may not be detected).
153+ *
154+ * For payments with `source_type` of `WALLET`, see `DigitalWalletDetails` instead.
155+ *
156+ * Values: `APPLE_PAY`
157+ *
158+ * @var ?string $walletType
159+ */
160+ #[JsonProperty('wallet_type ' )]
161+ private ?string $ walletType ;
162+
143163 /**
144164 * @param array{
145165 * status?: ?string,
@@ -158,6 +178,8 @@ class CardPaymentDetails extends JsonSerializableType
158178 * cardPaymentTimeline?: ?CardPaymentTimeline,
159179 * refundRequiresCardPresence?: ?bool,
160180 * errors?: ?array<Error>,
181+ * appliedCardSurchargeDetails?: ?CardSurchargeDetails,
182+ * walletType?: ?string,
161183 * } $values
162184 */
163185 public function __construct (
@@ -179,6 +201,8 @@ public function __construct(
179201 $ this ->cardPaymentTimeline = $ values ['cardPaymentTimeline ' ] ?? null ;
180202 $ this ->refundRequiresCardPresence = $ values ['refundRequiresCardPresence ' ] ?? null ;
181203 $ this ->errors = $ values ['errors ' ] ?? null ;
204+ $ this ->appliedCardSurchargeDetails = $ values ['appliedCardSurchargeDetails ' ] ?? null ;
205+ $ this ->walletType = $ values ['walletType ' ] ?? null ;
182206 }
183207
184208 /**
@@ -469,6 +493,42 @@ public function setErrors(?array $value = null): self
469493 return $ this ;
470494 }
471495
496+ /**
497+ * @return ?CardSurchargeDetails
498+ */
499+ public function getAppliedCardSurchargeDetails (): ?CardSurchargeDetails
500+ {
501+ return $ this ->appliedCardSurchargeDetails ;
502+ }
503+
504+ /**
505+ * @param ?CardSurchargeDetails $value
506+ */
507+ public function setAppliedCardSurchargeDetails (?CardSurchargeDetails $ value = null ): self
508+ {
509+ $ this ->appliedCardSurchargeDetails = $ value ;
510+ $ this ->_setField ('appliedCardSurchargeDetails ' );
511+ return $ this ;
512+ }
513+
514+ /**
515+ * @return ?string
516+ */
517+ public function getWalletType (): ?string
518+ {
519+ return $ this ->walletType ;
520+ }
521+
522+ /**
523+ * @param ?string $value
524+ */
525+ public function setWalletType (?string $ value = null ): self
526+ {
527+ $ this ->walletType = $ value ;
528+ $ this ->_setField ('walletType ' );
529+ return $ this ;
530+ }
531+
472532 /**
473533 * @return string
474534 */
0 commit comments