All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.braintreegateway.LocalPaymentCompleted Maven / Gradle / Ivy

There is a newer version: 3.32.0_1
Show newest version
package com.braintreegateway;

import com.braintreegateway.util.NodeWrapper;

public class LocalPaymentCompleted {
    private String bic;
    private String ibanLastChars;
    private String payerId;
    private String payerName;
    private String paymentId;
    private String paymentMethodNonce;
    private Transaction transaction;

    public LocalPaymentCompleted(NodeWrapper node) {
        this.bic = node.findString("bic");
        this.ibanLastChars = node.findString("iban-last-chars");
        this.payerId = node.findString("payer-id");
        this.payerName = node.findString("payer-name");
        this.paymentId = node.findString("payment-id");
        this.paymentMethodNonce = node.findString("payment-method-nonce");

        NodeWrapper transactionNode = node.findFirst("transaction");
        if (transactionNode != null) {
            this.transaction = new Transaction(transactionNode);
        }
    }

    public String getBic() {
        return bic;
    }

    public String getIbanLastChars() {
        return ibanLastChars;
    }

    public String getPayerId() {
        return payerId;
    }

    public String getPayerName() {
        return payerName;
    }

    public String getPaymentId() {
        return paymentId;
    }

    public String getPaymentMethodNonce() {
        return paymentMethodNonce;
    }

    public Transaction getTransaction() {
        return transaction;
    }
 }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy