Skip to content

Commit

Permalink
Add missing properties to payment links and hosted payments (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko authored Mar 28, 2024
1 parent 4b711bc commit 13665d0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.checkout.payments.RiskRequest;
import com.checkout.payments.ShippingDetails;
import com.checkout.payments.ThreeDSRequest;
import com.checkout.payments.request.PaymentRetryRequest;
import com.google.gson.annotations.SerializedName;
import lombok.Builder;
import lombok.Data;
Expand Down Expand Up @@ -84,9 +85,15 @@ public final class HostedPaymentRequest {
* Not available on Previous
*/

@SerializedName("display_name")
private String displayName;

@SerializedName("disabled_payment_methods")
private List<PaymentSourceType> disabledPaymentMethods;

@SerializedName("customer_retry")
private PaymentRetryRequest customerRetry;

@SerializedName("processing_channel_id")
private String processingChannelId;

Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/checkout/payments/links/PaymentLinkRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.checkout.payments.RiskRequest;
import com.checkout.payments.ShippingDetails;
import com.checkout.payments.ThreeDSRequest;
import com.checkout.payments.request.PaymentRetryRequest;
import com.google.gson.annotations.SerializedName;
import lombok.Builder;
import lombok.Data;
Expand Down Expand Up @@ -81,6 +82,15 @@ public final class PaymentLinkRequest {
* Not available on Previous
*/

@SerializedName("display_name")
private String displayName;

@SerializedName("disabled_payment_methods")
private List<PaymentSourceType> disabledPaymentMethods;

@SerializedName("customer_retry")
private PaymentRetryRequest customerRetry;

@SerializedName("processing_channel_id")
private String processingChannelId;

Expand Down

0 comments on commit 13665d0

Please sign in to comment.