Method: DigitalFemsa::CheckoutRequest#==

Defined in:
lib/digital_femsa/models/checkout_request.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



146
147
148
149
150
151
152
153
154
155
156
# File 'lib/digital_femsa/models/checkout_request.rb', line 146

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      allowed_payment_methods == o.allowed_payment_methods &&
      expires_at == o.expires_at &&
      failure_url == o.failure_url &&
      name == o.name &&
      on_demand_enabled == o.on_demand_enabled &&
      success_url == o.success_url &&
      type == o.type
end