Class PaymentService

java.lang.Object
com.xero.models.accounting.PaymentService

public class PaymentService
extends Object
PaymentService
  • Constructor Details

    • PaymentService

      public PaymentService()
  • Method Details

    • paymentServiceID

      public PaymentService paymentServiceID​(UUID paymentServiceID)
    • getPaymentServiceID

      public UUID getPaymentServiceID()
      Xero identifier
      Returns:
      paymentServiceID
    • setPaymentServiceID

      public void setPaymentServiceID​(UUID paymentServiceID)
    • paymentServiceName

      public PaymentService paymentServiceName​(String paymentServiceName)
    • getPaymentServiceName

      public String getPaymentServiceName()
      Name of payment service
      Returns:
      paymentServiceName
    • setPaymentServiceName

      public void setPaymentServiceName​(String paymentServiceName)
    • paymentServiceUrl

      public PaymentService paymentServiceUrl​(String paymentServiceUrl)
    • getPaymentServiceUrl

      public String getPaymentServiceUrl()
      The custom payment URL
      Returns:
      paymentServiceUrl
    • setPaymentServiceUrl

      public void setPaymentServiceUrl​(String paymentServiceUrl)
    • payNowText

      public PaymentService payNowText​(String payNowText)
    • 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)
    • paymentServiceType

      public PaymentService paymentServiceType​(String paymentServiceType)
    • getPaymentServiceType

      public String getPaymentServiceType()
      This will always be CUSTOM for payment services created via the API.
      Returns:
      paymentServiceType
    • setPaymentServiceType

      public void setPaymentServiceType​(String paymentServiceType)
    • validationErrors

      public PaymentService validationErrors​(List<ValidationError> validationErrors)
    • addValidationErrorsItem

      public PaymentService addValidationErrorsItem​(ValidationError validationErrorsItem)
    • getValidationErrors

      public List<ValidationError> getValidationErrors()
      Displays array of validation error messages from the API
      Returns:
      validationErrors
    • setValidationErrors

      public void setValidationErrors​(List<ValidationError> validationErrors)
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object