Class PaymentService


  • public class PaymentService
    extends Object
    PaymentService
    • Constructor Detail

      • PaymentService

        public PaymentService()
    • 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>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object