Package com.xero.models.accounting
Class PaymentService
- java.lang.Object
-
- com.xero.models.accounting.PaymentService
-
public class PaymentService extends Object
PaymentService
-
-
Constructor Summary
Constructors Constructor Description PaymentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentServiceaddValidationErrorsItem(ValidationError validationErrorsItem)Displays array of validation error messages from the APIbooleanequals(Object o)UUIDgetPaymentServiceID()Xero identifierStringgetPaymentServiceName()Name of payment serviceStringgetPaymentServiceType()This will always be CUSTOM for payment services created via the API.StringgetPaymentServiceUrl()The custom payment URLStringgetPayNowText()The text displayed on the Pay Now button in Xero Online Invoicing.List<ValidationError>getValidationErrors()Displays array of validation error messages from the APIinthashCode()PaymentServicepaymentServiceID(UUID paymentServiceID)Xero identifierPaymentServicepaymentServiceName(String paymentServiceName)Name of payment servicePaymentServicepaymentServiceType(String paymentServiceType)This will always be CUSTOM for payment services created via the API.PaymentServicepaymentServiceUrl(String paymentServiceUrl)The custom payment URLPaymentServicepayNowText(String payNowText)The text displayed on the Pay Now button in Xero Online Invoicing.voidsetPaymentServiceID(UUID paymentServiceID)Xero identifiervoidsetPaymentServiceName(String paymentServiceName)Name of payment servicevoidsetPaymentServiceType(String paymentServiceType)This will always be CUSTOM for payment services created via the API.voidsetPaymentServiceUrl(String paymentServiceUrl)The custom payment URLvoidsetPayNowText(String payNowText)The text displayed on the Pay Now button in Xero Online Invoicing.voidsetValidationErrors(List<ValidationError> validationErrors)Displays array of validation error messages from the APIStringtoString()PaymentServicevalidationErrors(List<ValidationError> validationErrors)Displays array of validation error messages from the API
-
-
-
Method Detail
-
paymentServiceID
public PaymentService paymentServiceID(UUID paymentServiceID)
Xero identifier- Parameters:
paymentServiceID- UUID- Returns:
- PaymentService
-
getPaymentServiceID
public UUID getPaymentServiceID()
Xero identifier- Returns:
- paymentServiceID
-
setPaymentServiceID
public void setPaymentServiceID(UUID paymentServiceID)
Xero identifier- Parameters:
paymentServiceID- UUID
-
paymentServiceName
public PaymentService paymentServiceName(String paymentServiceName)
Name of payment service- Parameters:
paymentServiceName- String- Returns:
- PaymentService
-
getPaymentServiceName
public String getPaymentServiceName()
Name of payment service- Returns:
- paymentServiceName
-
setPaymentServiceName
public void setPaymentServiceName(String paymentServiceName)
Name of payment service- Parameters:
paymentServiceName- String
-
paymentServiceUrl
public PaymentService paymentServiceUrl(String paymentServiceUrl)
The custom payment URL- Parameters:
paymentServiceUrl- String- Returns:
- PaymentService
-
getPaymentServiceUrl
public String getPaymentServiceUrl()
The custom payment URL- Returns:
- paymentServiceUrl
-
setPaymentServiceUrl
public void setPaymentServiceUrl(String paymentServiceUrl)
The custom payment URL- Parameters:
paymentServiceUrl- String
-
payNowText
public PaymentService payNowText(String payNowText)
The text displayed on the Pay Now button in Xero Online Invoicing. If this is not set it will default to Pay by credit card- Parameters:
payNowText- String- Returns:
- PaymentService
-
getPayNowText
public String getPayNowText()
The text displayed on the Pay Now button in Xero Online Invoicing. If this is not set it will default to Pay by credit card- Returns:
- payNowText
-
setPayNowText
public void setPayNowText(String payNowText)
The text displayed on the Pay Now button in Xero Online Invoicing. If this is not set it will default to Pay by credit card- Parameters:
payNowText- String
-
paymentServiceType
public PaymentService paymentServiceType(String paymentServiceType)
This will always be CUSTOM for payment services created via the API.- Parameters:
paymentServiceType- String- Returns:
- PaymentService
-
getPaymentServiceType
public String getPaymentServiceType()
This will always be CUSTOM for payment services created via the API.- Returns:
- paymentServiceType
-
setPaymentServiceType
public void setPaymentServiceType(String paymentServiceType)
This will always be CUSTOM for payment services created via the API.- Parameters:
paymentServiceType- String
-
validationErrors
public PaymentService validationErrors(List<ValidationError> validationErrors)
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- PaymentService
-
addValidationErrorsItem
public PaymentService addValidationErrorsItem(ValidationError validationErrorsItem)
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- PaymentService
-
getValidationErrors
public List<ValidationError> getValidationErrors()
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
public void setValidationErrors(List<ValidationError> validationErrors)
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
-