Class: OpenApiSDK::Models::Operations::RejectPartnerRequestBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(partner_id:, rejection_reason: nil, rejection_note: nil, allow_immediate_reapply: false) ⇒ RejectPartnerRequestBody

Returns a new instance of RejectPartnerRequestBody.



25
26
27
28
29
30
# File 'lib/open_api_sdk/models/operations/rejectpartner_requestbody.rb', line 25

def initialize(partner_id:, rejection_reason: nil, rejection_note: nil, allow_immediate_reapply: false)
  @partner_id = partner_id
  @rejection_reason = rejection_reason
  @rejection_note = rejection_note
  @allow_immediate_reapply = allow_immediate_reapply
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/open_api_sdk/models/operations/rejectpartner_requestbody.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @partner_id == other.partner_id
  return false unless @rejection_reason == other.rejection_reason
  return false unless @rejection_note == other.rejection_note
  return false unless @allow_immediate_reapply == other.allow_immediate_reapply
  true
end