| POST | /integrations/api/{integrationType}/core/verifycharge |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CoreChargeVerifyRq
{
public BigDecimal reCaptchaScore = null;
public String integrationType = null;
public Integer NationalId = null;
public Integer ChapterId = null;
public Integer ContextIntegrationPartnerId = null;
public Integer AuthenticationId = null;
public String Token = null;
public BigDecimal getReCaptchaScore() { return reCaptchaScore; }
public CoreChargeVerifyRq setReCaptchaScore(BigDecimal value) { this.reCaptchaScore = value; return this; }
public String getIntegrationType() { return integrationType; }
public CoreChargeVerifyRq setIntegrationType(String value) { this.integrationType = value; return this; }
public Integer getNationalId() { return NationalId; }
public CoreChargeVerifyRq setNationalId(Integer value) { this.NationalId = value; return this; }
public Integer getChapterId() { return ChapterId; }
public CoreChargeVerifyRq setChapterId(Integer value) { this.ChapterId = value; return this; }
public Integer getContextIntegrationPartnerId() { return ContextIntegrationPartnerId; }
public CoreChargeVerifyRq setContextIntegrationPartnerId(Integer value) { this.ContextIntegrationPartnerId = value; return this; }
public Integer getAuthenticationId() { return AuthenticationId; }
public CoreChargeVerifyRq setAuthenticationId(Integer value) { this.AuthenticationId = value; return this; }
public String getToken() { return Token; }
public CoreChargeVerifyRq setToken(String value) { this.Token = value; return this; }
}
public static class CoreChargeVerifyRs
{
public String Token = null;
public CreditCardVerificationDetails CardVerificationDetails = null;
public AchVerificationDetails AchVerificationDetails = null;
public String getToken() { return Token; }
public CoreChargeVerifyRs setToken(String value) { this.Token = value; return this; }
public CreditCardVerificationDetails getCardVerificationDetails() { return CardVerificationDetails; }
public CoreChargeVerifyRs setCardVerificationDetails(CreditCardVerificationDetails value) { this.CardVerificationDetails = value; return this; }
public AchVerificationDetails getAchVerificationDetails() { return AchVerificationDetails; }
public CoreChargeVerifyRs setAchVerificationDetails(AchVerificationDetails value) { this.AchVerificationDetails = value; return this; }
}
public static class CreditCardVerificationDetails
{
public Boolean IsError = null;
public Boolean IsDuplicate = null;
public String GatewayResponseCode = null;
public String GatewayMessage = null;
public Boolean NetworkVerificationAttempted = null;
public String CvvVerificationResult = null;
public String AddressVerificationResult = null;
public String PostalCodeVerificationResult = null;
public String NetworkTransactionId = null;
public Boolean getIsError() { return IsError; }
public CreditCardVerificationDetails setIsError(Boolean value) { this.IsError = value; return this; }
public Boolean getIsDuplicate() { return IsDuplicate; }
public CreditCardVerificationDetails setIsDuplicate(Boolean value) { this.IsDuplicate = value; return this; }
public String getGatewayResponseCode() { return GatewayResponseCode; }
public CreditCardVerificationDetails setGatewayResponseCode(String value) { this.GatewayResponseCode = value; return this; }
public String getGatewayMessage() { return GatewayMessage; }
public CreditCardVerificationDetails setGatewayMessage(String value) { this.GatewayMessage = value; return this; }
public Boolean isNetworkVerificationAttempted() { return NetworkVerificationAttempted; }
public CreditCardVerificationDetails setNetworkVerificationAttempted(Boolean value) { this.NetworkVerificationAttempted = value; return this; }
public String getCvvVerificationResult() { return CvvVerificationResult; }
public CreditCardVerificationDetails setCvvVerificationResult(String value) { this.CvvVerificationResult = value; return this; }
public String getAddressVerificationResult() { return AddressVerificationResult; }
public CreditCardVerificationDetails setAddressVerificationResult(String value) { this.AddressVerificationResult = value; return this; }
public String getPostalCodeVerificationResult() { return PostalCodeVerificationResult; }
public CreditCardVerificationDetails setPostalCodeVerificationResult(String value) { this.PostalCodeVerificationResult = value; return this; }
public String getNetworkTransactionId() { return NetworkTransactionId; }
public CreditCardVerificationDetails setNetworkTransactionId(String value) { this.NetworkTransactionId = value; return this; }
}
public static class AchVerificationDetails
{
public Boolean IsError = null;
public Boolean NetworkVerificationAttempted = null;
public String Result = null;
public String Code = null;
public String Message = null;
public Boolean getIsError() { return IsError; }
public AchVerificationDetails setIsError(Boolean value) { this.IsError = value; return this; }
public Boolean isNetworkVerificationAttempted() { return NetworkVerificationAttempted; }
public AchVerificationDetails setNetworkVerificationAttempted(Boolean value) { this.NetworkVerificationAttempted = value; return this; }
public String getResult() { return Result; }
public AchVerificationDetails setResult(String value) { this.Result = value; return this; }
public String getCode() { return Code; }
public AchVerificationDetails setCode(String value) { this.Code = value; return this; }
public String getMessage() { return Message; }
public AchVerificationDetails setMessage(String value) { this.Message = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /integrations/api/{integrationType}/core/verifycharge HTTP/1.1
Host: devapi.billhighway.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
reCaptchaScore: 0,
integrationType: String,
NationalId: 0,
ChapterId: 0,
ContextIntegrationPartnerId: 0,
AuthenticationId: 0,
Token: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Token: String,
CardVerificationDetails:
{
IsError: False,
IsDuplicate: False,
GatewayResponseCode: String,
GatewayMessage: String,
NetworkVerificationAttempted: False,
CvvVerificationResult: String,
AddressVerificationResult: String,
PostalCodeVerificationResult: String,
NetworkTransactionId: String
},
AchVerificationDetails:
{
IsError: False,
NetworkVerificationAttempted: False,
Result: String,
Code: String,
Message: String
}
}