Method: TalonOne::CustomerActivityReport#list_invalid_properties
- Defined in:
- lib/talon_one/models/customer_activity_report.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/talon_one/models/customer_activity_report.rb', line 158 def list_invalid_properties invalid_properties = Array.new if @integration_id.nil? invalid_properties.push('invalid value for "integration_id", integration_id cannot be nil.') end if @created.nil? invalid_properties.push('invalid value for "created", created cannot be nil.') end if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end if @customer_id.nil? invalid_properties.push('invalid value for "customer_id", customer_id cannot be nil.') end if @coupon_redemptions.nil? invalid_properties.push('invalid value for "coupon_redemptions", coupon_redemptions cannot be nil.') end if @coupon_use_attempts.nil? invalid_properties.push('invalid value for "coupon_use_attempts", coupon_use_attempts cannot be nil.') end if @coupon_failed_attempts.nil? invalid_properties.push('invalid value for "coupon_failed_attempts", coupon_failed_attempts cannot be nil.') end if @accrued_discounts.nil? invalid_properties.push('invalid value for "accrued_discounts", accrued_discounts cannot be nil.') end if @accrued_revenue.nil? invalid_properties.push('invalid value for "accrued_revenue", accrued_revenue cannot be nil.') end if @total_orders.nil? invalid_properties.push('invalid value for "total_orders", total_orders cannot be nil.') end if @total_orders_no_coupon.nil? invalid_properties.push('invalid value for "total_orders_no_coupon", total_orders_no_coupon cannot be nil.') end if @campaign_name.nil? invalid_properties.push('invalid value for "campaign_name", campaign_name cannot be nil.') end invalid_properties end |