com.global.api.gateways.bill_pay.requests.DeleteCustomerAccountRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.gateways.bill_pay.requests;
import com.global.api.entities.billing.Credentials;
import com.global.api.paymentMethods.RecurringPaymentMethod;
import com.global.api.utils.Element;
import com.global.api.utils.ElementTree;
public class DeleteCustomerAccountRequest extends BillPayRequestBase {
public DeleteCustomerAccountRequest(ElementTree et) {
super(et);
}
public String build(Element envelope, Credentials credentials, RecurringPaymentMethod paymentMethod) {
Element body = et.subElement(envelope, "soapenv:Body");
Element methodElement = et.subElement(body, "bil:DeleteCustomerAccount");
Element requestElement = et.subElement(methodElement, "bil:DeleteCustomerAccountRequest");
buildCredentials(requestElement, credentials);
et.subElement(requestElement, "bdms:CustomerAccountNameToDelete", paymentMethod.getId());
et.subElement(requestElement, "bdms:MerchantCustomerID", paymentMethod.getCustomerKey());
return et.toString(envelope);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy