Method: Bitpesa::Webhook#list_invalid_properties

Defined in:
lib/bitpesa-sdk/models/webhook.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/bitpesa-sdk/models/webhook.rb', line 68

def list_invalid_properties
  invalid_properties = Array.new
  if @webhook.nil?
    invalid_properties.push('invalid value for "webhook", webhook cannot be nil.')
  end

  if @event.nil?
    invalid_properties.push('invalid value for "event", event cannot be nil.')
  end

  if @object.nil?
    invalid_properties.push('invalid value for "object", object cannot be nil.')
  end

  invalid_properties
end