55
66/** Details of the payment instrument for processing the checkout. */
77public record ProcessCheckout (
8+ /**
9+ * Raw payment token object received from Apple Pay. Send the Apple Pay response payload as-is.
10+ */
11+ java .util .Map <String , Object > applePay ,
12+
813 /** __Required when payment type is `card`.__ Details of the payment card. */
914 com .sumup .sdk .models .Card card ,
1015
1116 /** __Required when `token` is provided.__ Unique ID of the customer. */
1217 String customerId ,
1318
19+ /**
20+ * Raw `PaymentData` object received from Google Pay. Send the Google Pay response payload
21+ * as-is.
22+ */
23+ java .util .Map <String , Object > googlePay ,
24+
1425 /** Number of installments for deferred payments. Available only to merchant users in Brazil. */
1526 Long installments ,
1627
@@ -39,8 +50,10 @@ public static Builder builder() {
3950
4051 /** Builder for ProcessCheckout instances. */
4152 public static final class Builder {
53+ private java .util .Map <String , Object > applePay ;
4254 private com .sumup .sdk .models .Card card ;
4355 private String customerId ;
56+ private java .util .Map <String , Object > googlePay ;
4457 private Long installments ;
4558 private com .sumup .sdk .models .MandatePayload mandate ;
4659 private com .sumup .sdk .models .ProcessCheckoutPaymentType paymentType ;
@@ -49,6 +62,18 @@ public static final class Builder {
4962
5063 private Builder () {}
5164
65+ /**
66+ * Sets the value for {@code applePay}.
67+ *
68+ * @param applePay Raw payment token object received from Apple Pay. Send the Apple Pay response
69+ * payload as-is.
70+ * @return This builder instance.
71+ */
72+ public Builder applePay (java .util .Map <String , Object > applePay ) {
73+ this .applePay = applePay ;
74+ return this ;
75+ }
76+
5277 /**
5378 * Sets the value for {@code card}.
5479 *
@@ -71,6 +96,18 @@ public Builder customerId(String customerId) {
7196 return this ;
7297 }
7398
99+ /**
100+ * Sets the value for {@code googlePay}.
101+ *
102+ * @param googlePay Raw `PaymentData` object received from Google Pay. Send the Google Pay
103+ * response payload as-is.
104+ * @return This builder instance.
105+ */
106+ public Builder googlePay (java .util .Map <String , Object > googlePay ) {
107+ this .googlePay = googlePay ;
108+ return this ;
109+ }
110+
74111 /**
75112 * Sets the value for {@code installments}.
76113 *
@@ -135,8 +172,10 @@ public Builder token(String token) {
135172 */
136173 public ProcessCheckout build () {
137174 return new ProcessCheckout (
175+ applePay ,
138176 card ,
139177 customerId ,
178+ googlePay ,
140179 installments ,
141180 mandate ,
142181 Objects .requireNonNull (paymentType , "paymentType" ),
0 commit comments