com.braintreegateway.Transaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.braintree-java
Show all versions of org.apache.servicemix.bundles.braintree-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
package com.braintreegateway;
import com.braintreegateway.util.EnumUtils;
import com.braintreegateway.util.NodeWrapper;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.Map;
public class Transaction {
public boolean isDisbursed() {
return getDisbursementDetails().isValid();
}
public enum CreatedUsing {
FULL_INFORMATION("full_information"),
TOKEN("token"),
UNRECOGNIZED("unrecognized");
private final String name;
CreatedUsing(String name) {
this.name = name;
}
@Override
public String toString() {
return name;
}
}
public enum EscrowStatus {
HELD,
HOLD_PENDING,
RELEASE_PENDING,
RELEASED,
REFUNDED,
UNRECOGNIZED;
}
public enum GatewayRejectionReason {
APPLICATION_INCOMPLETE("application_incomplete"),
AVS("avs"),
AVS_AND_CVV("avs_and_cvv"),
CVV("cvv"),
DUPLICATE("duplicate"),
EXCESSIVE_RETRY("excessive_retry"),
FRAUD("fraud"),
RISK_THRESHOLD("risk_threshold"),
THREE_D_SECURE("three_d_secure"),
TOKEN_ISSUANCE("token_issuance"),
UNRECOGNIZED("unrecognized");
private final String name;
GatewayRejectionReason(String name) {
this.name = name;
}
@Override
public String toString() {
return name;
}
}
public enum ScaExemption {
LOW_VALUE("low_value"),
SECURE_CORPORATE("secure_corporate"),
TRUSTED_BENEFICIARY("trusted_beneficiary"),
TRANSACTION_RISK_ANALYSIS("transaction_risk_analysis");
private final String exemption;
ScaExemption(String exemption) {
this.exemption = exemption;
}
@Override
public String toString() {
return exemption;
}
}
public enum Source {
API("api"),
CONTROL_PANEL("control_panel"),
RECURRING("recurring"),
UNRECOGNIZED("unrecognized");
private final String name;
Source(String name) {
this.name = name;
}
@Override
public String toString() {
return name;
}
}
public enum Status {
AUTHORIZATION_EXPIRED, AUTHORIZED, AUTHORIZING, FAILED, GATEWAY_REJECTED, PROCESSOR_DECLINED, SETTLED, SETTLEMENT_CONFIRMED, SETTLEMENT_DECLINED, SETTLEMENT_PENDING, SETTLING, SUBMITTED_FOR_SETTLEMENT, UNRECOGNIZED, VOIDED;
}
public enum IndustryType {
LODGING("lodging"),
TRAVEL_CRUISE("travel_cruise"),
TRAVEL_FLIGHT("travel_flight");
private final String name;
IndustryType(String name) {
this.name = name;
}
@Override
public String toString() {
return name;
}
}
public enum Type {
CREDIT("credit"),
SALE("sale"),
UNRECOGNIZED("unrecognized");
private final String name;
Type(String name) {
this.name = name;
}
@Override
public String toString() {
return name;
}
}
private String achReturnCode;
private List achReturnResponses;
private String acquirerReferenceNumber;
private String additionalProcessorResponse;
private List addOns;
private AmexExpressCheckoutDetails amexExpressCheckoutDetails;
private BigDecimal amount;
private AndroidPayDetails androidPayDetails;
private ApplePayDetails applePayDetails;
private List authorizationAdjustments;
private Calendar authorizationExpiresAt;
private String authorizedTransactionId;
private String avsErrorResponseCode;
private String avsPostalCodeResponseCode;
private String avsStreetAddressResponseCode;
private Address billingAddress;
private String channel;
private Calendar createdAt;
private CreditCard creditCard;
private String currencyIsoCode;
private CustomActionsPaymentMethodDetails customActionsPaymentMethodDetails;
private Customer customer;
private String cvvResponseCode;
private String debitNetwork;
private Descriptor descriptor;
private DisbursementDetails disbursementDetails;
private BigDecimal discountAmount;
private List discounts;
private List disputes;
private String duplicateOfTransactionId;
private EscrowStatus escrowStatus;
private FacilitatedDetails facilitatedDetails;
private FacilitatorDetails facilitatorDetails;
private boolean foreignRetailer;
private GatewayRejectionReason gatewayRejectionReason;
private String graphqlId;
private String id;
private Integer installmentCount;
private List installments;
private LocalPaymentDetails localPaymentDetails;
private MasterpassCardDetails masterpassCardDetails;
private String merchantAccountId;
private String merchantAdviceCode;
private String merchantAdviceCodeText;
private MetaCheckoutCardDetails metaCheckoutCardDetails;
private MetaCheckoutTokenDetails metaCheckoutTokenDetails;
private String networkResponseCode;
private String networkResponseText;
private CreditCard networkToken;
private String networkTransactionId;
private String orderId;
private List packages;
private List partialSettlementTransactionIds;
private String paymentInstrumentType;
private PayPalDetails paypalDetails;
private PayPalHereDetails paypalHereDetails;
private String planId;
private boolean processedWithNetworkToken;
private String processorAuthorizationCode;
private String processorResponseCode;
private String processorResponseText;
private ProcessorResponseType processorResponseType;
private String processorSettlementResponseCode;
private String processorSettlementResponseText;
private String purchaseOrderNumber;
private Boolean recurring;
private List refundedInstallments;
private String refundedTransactionId;
private String refundId;
private List refundIds;
private boolean retried;
private String retriedTransactionId;
private String retrievalReferenceNumber;
private List retryIds;
private RiskData riskData;
private SamsungPayCardDetails samsungPayCardDetails;
private ScaExemption scaExemptionRequested;
private SepaDirectDebitAccountDetails sepaDirectDebitAccountDetails;
private String sepaDirectDebitReturnCode;
private BigDecimal serviceFeeAmount;
private String settlementBatchId;
private Address shippingAddress;
private BigDecimal shippingAmount;
private BigDecimal shippingTaxAmount;
private String shipsFromPostalCode;
private Status status;
private List statusHistory;
private Map customFields;
private Subscription subscription;
private SubscriptionDetails subscriptionDetails;
private String subscriptionId;
private BigDecimal taxAmount;
private Boolean taxExempt;
private ThreeDSecureInfo threeDSecureInfo;
private Type type;
private Calendar updatedAt;
private UsBankAccountDetails usBankAccountDetails;
private VenmoAccountDetails venmoAccountDetails;
private VisaCheckoutCardDetails visaCheckoutCardDetails;
private String voiceReferralNumber;
public Transaction(NodeWrapper node) {
amount = node.findBigDecimal("amount");
avsErrorResponseCode = node.findString("avs-error-response-code");
avsPostalCodeResponseCode = node.findString("avs-postal-code-response-code");
avsStreetAddressResponseCode = node.findString("avs-street-address-response-code");
channel = node.findString("channel");
createdAt = node.findDateTime("created-at");
currencyIsoCode = node.findString("currency-iso-code");
customFields = node.findMap("custom-fields/*");
cvvResponseCode = node.findString("cvv-response-code");
debitNetwork = node.findString("debit-network");
escrowStatus = EnumUtils.findByName(EscrowStatus.class, node.findString("escrow-status"), EscrowStatus.UNRECOGNIZED);
gatewayRejectionReason = EnumUtils.findByName(GatewayRejectionReason.class, node.findString("gateway-rejection-reason"), GatewayRejectionReason.UNRECOGNIZED);
duplicateOfTransactionId = node.findString("duplicate-of-transaction-id");
graphqlId = node.findString("global-id");
id = node.findString("id");
merchantAccountId = node.findString("merchant-account-id");
orderId = node.findString("order-id");
scaExemptionRequested = EnumUtils.findByName(ScaExemption.class, node.findString("sca-exemption-requested"), null);
NodeWrapper billingAddressNode = node.findFirst("billing");
if (billingAddressNode != null) {
billingAddress = new Address(billingAddressNode);
}
NodeWrapper creditCardNode = node.findFirst("credit-card");
if (creditCardNode != null) {
creditCard = new CreditCard(creditCardNode);
}
NodeWrapper networkTokenNode = node.findFirst("network-token");
if (networkTokenNode != null) {
networkToken = new CreditCard(networkTokenNode);
}
NodeWrapper customerNode = node.findFirst("customer");
if (customerNode != null) {
customer = new Customer(customerNode);
}
NodeWrapper disbursementDetailsNode = node.findFirst("disbursement-details");
if (disbursementDetailsNode != null) {
disbursementDetails = new DisbursementDetails(disbursementDetailsNode);
}
NodeWrapper descriptorNode = node.findFirst("descriptor");
if (descriptorNode != null) {
descriptor = new Descriptor(descriptorNode);
}
NodeWrapper paypalNode = node.findFirst("paypal");
if (paypalNode != null) {
paypalDetails = new PayPalDetails(paypalNode);
}
NodeWrapper paypalHereNode = node.findFirst("paypal-here");
if (paypalHereNode != null) {
paypalHereDetails = new PayPalHereDetails(paypalHereNode);
}
NodeWrapper applePayNode = node.findFirst("apple-pay");
if (applePayNode != null) {
applePayDetails = new ApplePayDetails(applePayNode);
}
NodeWrapper androidPayCardNode = node.findFirst("android-pay-card");
if (androidPayCardNode != null) {
androidPayDetails = new AndroidPayDetails(androidPayCardNode);
}
NodeWrapper amexExpressCheckoutCardNode = node.findFirst("amex-express-checkout-card");
if (amexExpressCheckoutCardNode != null) {
amexExpressCheckoutDetails = new AmexExpressCheckoutDetails(amexExpressCheckoutCardNode);
}
NodeWrapper sepaDirectDebitAccountNode = node.findFirst("sepa-debit-account-detail");
if (sepaDirectDebitAccountNode != null) {
sepaDirectDebitAccountDetails = new SepaDirectDebitAccountDetails(sepaDirectDebitAccountNode);
}
NodeWrapper venmoAccountNode = node.findFirst("venmo-account");
if (venmoAccountNode != null) {
venmoAccountDetails = new VenmoAccountDetails(venmoAccountNode);
}
NodeWrapper usBankAccountNode = node.findFirst("us-bank-account");
if (usBankAccountNode != null) {
usBankAccountDetails = new UsBankAccountDetails(usBankAccountNode);
}
NodeWrapper localPaymentNode = node.findFirst("local-payment");
if (localPaymentNode != null) {
localPaymentDetails = new LocalPaymentDetails(localPaymentNode);
}
NodeWrapper metaCheckoutCardNode = node.findFirst("meta-checkout-card");
if (metaCheckoutCardNode != null) {
metaCheckoutCardDetails = new MetaCheckoutCardDetails(metaCheckoutCardNode);
}
NodeWrapper metaCheckoutTokenNode = node.findFirst("meta-checkout-token");
if (metaCheckoutTokenNode != null) {
metaCheckoutTokenDetails = new MetaCheckoutTokenDetails(metaCheckoutTokenNode);
}
NodeWrapper visaCheckoutCardNode = node.findFirst("visa-checkout-card");
if (visaCheckoutCardNode != null) {
visaCheckoutCardDetails = new VisaCheckoutCardDetails(visaCheckoutCardNode);
}
NodeWrapper masterpassCardNode = node.findFirst("masterpass-card");
if (masterpassCardNode != null) {
masterpassCardDetails = new MasterpassCardDetails(masterpassCardNode);
}
NodeWrapper samsungPayCardNode = node.findFirst("samsung-pay-card");
if (samsungPayCardNode != null) {
samsungPayCardDetails = new SamsungPayCardDetails(samsungPayCardNode);
}
NodeWrapper customActionsPaymentMethodNode = node.findFirst("custom-actions-payment-method");
if (customActionsPaymentMethodNode != null) {
customActionsPaymentMethodDetails = new CustomActionsPaymentMethodDetails(customActionsPaymentMethodNode);
}
packages = new ArrayList();
for (NodeWrapper packageNode : node.findAll("shipments/shipment")) {
packages.add(new PackageDetails(packageNode));
}
achReturnCode = node.findString("ach-return-code");
sepaDirectDebitReturnCode = node.findString("sepa-direct-debit-return-code");
planId = node.findString("plan-id");
processedWithNetworkToken = node.findBoolean("processed-with-network-token");
processorAuthorizationCode = node.findString("processor-authorization-code");
processorResponseCode = node.findString("processor-response-code");
processorResponseText = node.findString("processor-response-text");
merchantAdviceCode = node.findString("merchant-advice-code");
merchantAdviceCodeText = node.findString("merchant-advice-code-text");
processorResponseType = EnumUtils.findByName(ProcessorResponseType.class, node.findString("processor-response-type"), ProcessorResponseType.UNRECOGNIZED);
processorSettlementResponseCode = node.findString("processor-settlement-response-code");
processorSettlementResponseText = node.findString("processor-settlement-response-text");
additionalProcessorResponse = node.findString("additional-processor-response");
networkResponseCode = node.findString("network-response-code");
networkResponseText = node.findString("network-response-text");
voiceReferralNumber = node.findString("voice-referral-number");
purchaseOrderNumber = node.findString("purchase-order-number");
recurring = node.findBoolean("recurring");
refundedTransactionId = node.findString("refunded-transaction-id");
refundId = node.findString("refund-id");
NodeWrapper riskDataNode = node.findFirst("risk-data");
if (riskDataNode != null) {
riskData = new RiskData(riskDataNode);
}
NodeWrapper threeDSecureInfoNode = node.findFirst("three-d-secure-info");
if (threeDSecureInfoNode != null && !threeDSecureInfoNode.isBlank()) {
threeDSecureInfo = new ThreeDSecureInfo(threeDSecureInfoNode);
}
serviceFeeAmount = node.findBigDecimal("service-fee-amount");
settlementBatchId = node.findString("settlement-batch-id");
NodeWrapper shippingAddressNode = node.findFirst("shipping");
if (shippingAddressNode != null) {
shippingAddress = new Address(shippingAddressNode);
}
status = EnumUtils.findByName(Status.class, node.findString("status"), Status.UNRECOGNIZED);
NodeWrapper subscriptionNode = node.findFirst("subscription");
if (subscriptionNode != null) {
subscriptionDetails = new SubscriptionDetails(subscriptionNode);
subscription = new Subscription(subscriptionNode);
}
subscriptionId = node.findString("subscription-id");
taxAmount = node.findBigDecimal("tax-amount");
taxExempt = node.findBoolean("tax-exempt");
shippingAmount = node.findBigDecimal("shipping-amount");
shippingTaxAmount = node.findBigDecimal("shipping-tax-amount");
discountAmount = node.findBigDecimal("discount-amount");
shipsFromPostalCode = node.findString("ships-from-postal-code");
type = EnumUtils.findByName(Type.class, node.findString("type"), Type.UNRECOGNIZED);
updatedAt = node.findDateTime("updated-at");
refundIds = new ArrayList();
for (NodeWrapper refundIdNode : node.findAll("refund-ids/item")) {
refundIds.add(refundIdNode.findString("."));
}
retrievalReferenceNumber = node.findString("retrieval-reference-number");
acquirerReferenceNumber = node.findString("acquirer-reference-number");
statusHistory = new ArrayList();
for (NodeWrapper statusNode : node.findAll("status-history/status-event")) {
statusHistory.add(new StatusEvent(statusNode));
}
achReturnResponses = new ArrayList();
for (NodeWrapper statusNode : node.findAll("ach-return-responses/ach-return-response")) {
achReturnResponses.add(new AchReturnResponse(statusNode));
}
addOns = new ArrayList();
for (NodeWrapper addOnResponse : node.findAll("add-ons/add-on")) {
addOns.add(new AddOn(addOnResponse));
}
discounts = new ArrayList();
for (NodeWrapper discountResponse : node.findAll("discounts/discount")) {
discounts.add(new Discount(discountResponse));
}
disputes = new ArrayList();
for (NodeWrapper dispute : node.findAll("disputes/dispute")) {
disputes.add(new Dispute(dispute));
}
paymentInstrumentType = node.findString("payment-instrument-type");
authorizedTransactionId = node.findString("authorized-transaction-id");
partialSettlementTransactionIds = new ArrayList();
for (NodeWrapper partialSettlementTransactionIdNode : node.findAll("partial-settlement-transaction-ids/*")) {
partialSettlementTransactionIds.add(partialSettlementTransactionIdNode.findString("."));
}
authorizationAdjustments = new ArrayList();
for (NodeWrapper authorizationAdjustmentNode : node.findAll("authorization-adjustments/authorization-adjustment")) {
authorizationAdjustments.add(new AuthorizationAdjustment(authorizationAdjustmentNode));
}
NodeWrapper facilitatedDetailsNode = node.findFirst("facilitated-details");
if (facilitatedDetailsNode != null) {
facilitatedDetails = new FacilitatedDetails(facilitatedDetailsNode);
}
NodeWrapper facilitatorDetailsNode = node.findFirst("facilitator-details");
if (facilitatorDetailsNode != null) {
facilitatorDetails = new FacilitatorDetails(facilitatorDetailsNode);
}
networkTransactionId = node.findString("network-transaction-id");
authorizationExpiresAt = node.findDateTime("authorization-expires-at");
installmentCount = node.findInteger("installment-count");
installments = new ArrayList();
for (NodeWrapper installmentsNode : node.findAll("installments/installment")) {
installments.add(new Installment(installmentsNode));
}
refundedInstallments = new ArrayList();
for (NodeWrapper installmentsNode : node.findAll("refunded-installments/refunded-installment")) {
refundedInstallments.add(new Installment(installmentsNode));
}
retried = node.findBoolean("retried");
retryIds = new ArrayList();
for (NodeWrapper retryIdNode : node.findAll("retry-ids/*")) {
retryIds.add(retryIdNode.findString("."));
}
retriedTransactionId = node.findString("retried-transaction-id");
foreignRetailer = node.findBoolean("foreign-retailer");
}
public List getAddOns() {
return addOns;
}
public BigDecimal getAmount() {
return amount;
}
public String getAvsErrorResponseCode() {
return avsErrorResponseCode;
}
public String getAvsPostalCodeResponseCode() {
return avsPostalCodeResponseCode;
}
public String getAvsStreetAddressResponseCode() {
return avsStreetAddressResponseCode;
}
public Address getBillingAddress() {
return billingAddress;
}
public String getChannel() {
return channel;
}
public Calendar getCreatedAt() {
return createdAt;
}
public CreditCard getCreditCard() {
return creditCard;
}
public String getCurrencyIsoCode() {
return currencyIsoCode;
}
public Customer getCustomer() {
return customer;
}
public Map getCustomFields() {
return customFields;
}
public String getCvvResponseCode() {
return cvvResponseCode;
}
public String getDebitNetwork() {
return debitNetwork;
}
public DisbursementDetails getDisbursementDetails() {
return disbursementDetails;
}
public List getDisputes() {
return disputes;
}
public Descriptor getDescriptor() {
return descriptor;
}
public List getDiscounts() {
return discounts;
}
public String getDuplicateOfTransactionId() {
return duplicateOfTransactionId;
}
public EscrowStatus getEscrowStatus() {
return escrowStatus;
}
public GatewayRejectionReason getGatewayRejectionReason() {
return gatewayRejectionReason;
}
public String getId() {
return id;
}
public String getGraphQLId() {
return graphqlId;
}
public String getMerchantAccountId() {
return merchantAccountId;
}
public CreditCard getNetworkToken() {
return networkToken;
}
public String getOrderId() {
return orderId;
}
public PayPalDetails getPayPalDetails() {
return paypalDetails;
}
public PayPalHereDetails getPayPalHereDetails() {
return paypalHereDetails;
}
public SepaDirectDebitAccountDetails getSepaDirectDebitAccountDetails() {
return sepaDirectDebitAccountDetails;
}
public ScaExemption getScaExemptionRequested() {
return scaExemptionRequested;
}
public ApplePayDetails getApplePayDetails() {
return applePayDetails;
}
public AndroidPayDetails getAndroidPayDetails() {
return androidPayDetails;
}
@Deprecated
public AmexExpressCheckoutDetails getAmexExpressCheckoutDetails() {
return amexExpressCheckoutDetails;
}
public VenmoAccountDetails getVenmoAccountDetails() {
return venmoAccountDetails;
}
public UsBankAccountDetails getUsBankAccountDetails() {
return usBankAccountDetails;
}
public LocalPaymentDetails getLocalPaymentDetails() {
return localPaymentDetails;
}
public MetaCheckoutCardDetails getMetaCheckoutCardDetails() {
return metaCheckoutCardDetails;
}
public MetaCheckoutTokenDetails getMetaCheckoutTokenDetails() {
return metaCheckoutTokenDetails;
}
public VisaCheckoutCardDetails getVisaCheckoutCardDetails() {
return visaCheckoutCardDetails;
}
@Deprecated
public MasterpassCardDetails getMasterpassCardDetails() {
return masterpassCardDetails;
}
public SamsungPayCardDetails getSamsungPayCardDetails() {
return samsungPayCardDetails;
}
public CustomActionsPaymentMethodDetails getCustomActionsPaymentMethodDetails() {
return customActionsPaymentMethodDetails;
}
public List getPackages() {
return packages;
}
public String getPlanId() {
return planId;
}
public boolean isProcessedWithNetworkToken() {
return processedWithNetworkToken;
}
public String getProcessorAuthorizationCode() {
return processorAuthorizationCode;
}
public String getProcessorResponseCode() {
return processorResponseCode;
}
public String getProcessorResponseText() {
return processorResponseText;
}
public ProcessorResponseType getProcessorResponseType() {
return processorResponseType;
}
public String getProcessorSettlementResponseCode() {
return processorSettlementResponseCode;
}
public String getProcessorSettlementResponseText() {
return processorSettlementResponseText;
}
public String getAdditionalProcessorResponse() {
return additionalProcessorResponse;
}
public String getNetworkResponseCode() {
return networkResponseCode;
}
public String getAchReturnCode() {
return achReturnCode;
}
public String getMerchantAdviceCode() {
return merchantAdviceCode;
}
public String getMerchantAdviceCodeText() {
return merchantAdviceCodeText;
}
public String getSepaDirectDebitReturnCode() {
return sepaDirectDebitReturnCode;
}
public String getNetworkResponseText() {
return networkResponseText;
}
public String getVoiceReferralNumber() {
return voiceReferralNumber;
}
public List getAchReturnResponses() {
return achReturnResponses;
}
public String getPurchaseOrderNumber() {
return purchaseOrderNumber;
}
public String getRefundedTransactionId() {
return refundedTransactionId;
}
public List getRefundIds() {
return refundIds;
}
public String getRetrievalReferenceNumber() {
return retrievalReferenceNumber;
}
public String getAcquirerReferenceNumber() {
return acquirerReferenceNumber;
}
public RiskData getRiskData() {
return riskData;
}
public ThreeDSecureInfo getThreeDSecureInfo() {
return threeDSecureInfo;
}
public BigDecimal getServiceFeeAmount() {
return serviceFeeAmount;
}
public String getSettlementBatchId() {
return settlementBatchId;
}
public Address getShippingAddress() {
return shippingAddress;
}
public Status getStatus() {
return status;
}
public List getStatusHistory() {
return statusHistory;
}
public String getSubscriptionId() {
return subscriptionId;
}
public SubscriptionDetails getSubscriptionDetails() {
return subscriptionDetails;
}
public BigDecimal getTaxAmount() {
return taxAmount;
}
public BigDecimal getShippingAmount() {
return shippingAmount;
}
public BigDecimal getShippingTaxAmount() {
return shippingTaxAmount;
}
public BigDecimal getDiscountAmount() {
return discountAmount;
}
public String getShipsFromPostalCode() {
return shipsFromPostalCode;
}
public Type getType() {
return type;
}
/* @deprecated
* use isRecurring() instead
*/
@Deprecated
public Boolean getRecurring() {
return recurring;
}
public Boolean isRecurring() {
return recurring;
}
public Calendar getUpdatedAt() {
return updatedAt;
}
public Address getVaultBillingAddress(BraintreeGateway gateway) {
if (billingAddress.getId() == null) {
return null;
}
return gateway.address().find(customer.getId(), billingAddress.getId());
}
public CreditCard getVaultCreditCard(BraintreeGateway gateway) {
if (creditCard.getToken() == null) {
return null;
}
return gateway.creditCard().find(creditCard.getToken());
}
public Customer getVaultCustomer(BraintreeGateway gateway) {
if (customer.getId() == null) {
return null;
}
return gateway.customer().find(customer.getId());
}
public Address getVaultShippingAddress(BraintreeGateway gateway) {
if (shippingAddress.getId() == null) {
return null;
}
return gateway.address().find(customer.getId(), shippingAddress.getId());
}
public Boolean isTaxExempt() {
return taxExempt;
}
public String getPaymentInstrumentType() {
return paymentInstrumentType;
}
public String getAuthorizedTransactionId() {
return authorizedTransactionId;
}
public List getPartialSettlementTransactionIds() {
return partialSettlementTransactionIds;
}
public List getAuthorizationAdjustments() {
return authorizationAdjustments;
}
public FacilitatedDetails getFacilitatedDetails() {
return facilitatedDetails;
}
public FacilitatorDetails getFacilitatorDetails() {
return facilitatorDetails;
}
public List getLineItems(BraintreeGateway gateway) {
return gateway.transactionLineItem().findAll(id);
}
public String getNetworkTransactionId() {
return networkTransactionId;
}
public Calendar getAuthorizationExpiresAt() {
return authorizationExpiresAt;
}
public Integer getInstallmentCount() {
return installmentCount;
}
public List getInstallments() {
return installments;
}
public List getRefundedInstallments() {
return refundedInstallments;
}
public boolean isRetried() {
return retried;
}
public String getRetriedTransactionId() {
return retriedTransactionId;
}
public List getRetryIds() {
return retryIds;
}
public boolean isforeignRetailer() {
return foreignRetailer;
}
}