Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Payment Response with last properties #412

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/main/java/com/checkout/payments/PanProcessedType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.checkout.payments;

import com.google.gson.annotations.SerializedName;

public enum PanProcessedType {

@SerializedName("fpan")
FPAN,

@SerializedName("dpan")
DPAN,

}
9 changes: 9 additions & 0 deletions src/main/java/com/checkout/payments/PaymentProcessing.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public final class PaymentProcessing {
@SerializedName("partner_payment_id")
private String partnerPaymentId;

@SerializedName("pan_type_processed")
private PanProcessedType panTypeProcessed;

@SerializedName("continuation_payload")
private String continuationPayload;

Expand All @@ -63,4 +66,10 @@ public final class PaymentProcessing {
@SerializedName("surcharge_amount")
private Long surchargeAmount;

@SerializedName("cko_network_token_available")
private Boolean ckoNetworkTokenAvailable;

@SerializedName("merchant_category_code")
private String merchantCategoryCode;

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.checkout.common.MarketplaceData;
import com.checkout.common.Resource;
import com.checkout.payments.BillingDescriptor;
import com.checkout.payments.PanProcessedType;
import com.checkout.payments.PaymentActionSummary;
import com.checkout.payments.PaymentRecipient;
import com.checkout.payments.PaymentStatus;
Expand All @@ -14,6 +15,7 @@
import com.checkout.payments.RiskAssessment;
import com.checkout.payments.ShippingDetails;
import com.checkout.payments.ThreeDSData;
import com.checkout.payments.request.PaymentInstruction;
import com.checkout.payments.response.destination.PaymentResponseDestination;
import com.checkout.payments.response.source.ResponseSource;
import com.checkout.payments.sender.Sender;
Expand Down Expand Up @@ -101,8 +103,18 @@ public final class GetPaymentResponse extends Resource {
private String schemeId;

private List<PaymentActionSummary> actions;

private PaymentRetryResponse retry;

@SerializedName("pan_type_processed")
private PanProcessedType panTypeProcessed;

@SerializedName("cko_network_token_available")
private Boolean ckoNetworkTokenAvailable;

@SerializedName("processed_on")
private String processedOn;

private PaymentInstruction instruction;

}
Loading