Class: OpenApiSDK::Models::Operations::RequestBody1

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/requestbody_1.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(type:, partner_id:, amount:, date: nil, description: nil) ⇒ RequestBody1

Returns a new instance of RequestBody1.



27
28
29
30
31
32
33
# File 'lib/open_api_sdk/models/operations/requestbody_1.rb', line 27

def initialize(type:, partner_id:, amount:, date: nil, description: nil)
  @type = type
  @partner_id = partner_id
  @amount = amount
  @date = date
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/open_api_sdk/models/operations/requestbody_1.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @type == other.type
  return false unless @partner_id == other.partner_id
  return false unless @amount == other.amount
  return false unless @date == other.date
  return false unless @description == other.description
  true
end