Class: Unit::Types::ApplicationFormSettingsOverride

Inherits:
Object
  • Object
show all
Defined in:
lib/unit-ruby/types/application_form_settings_override.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(redirect_url: nil, privacy_policy_url: nil, electronic_disclosures_url: nil, deposit_terms_url: nil, client_terms_url: nil, cardholder_terms_url: nil, cash_advanced_terms_url: nil, additional_disclosures: nil) ⇒ ApplicationFormSettingsOverride

Returns a new instance of ApplicationFormSettingsOverride.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 7

def initialize(
  redirect_url: nil,
  privacy_policy_url: nil,
  electronic_disclosures_url: nil,
  deposit_terms_url: nil,
  client_terms_url: nil,
  cardholder_terms_url: nil,
  cash_advanced_terms_url: nil,
  additional_disclosures: nil
)
  @redirect_url = redirect_url
  @privacy_policy_url = privacy_policy_url
  @electronic_disclosures_url = electronic_disclosures_url
  @deposit_terms_url = deposit_terms_url
  @client_terms_url = client_terms_url
  @cardholder_terms_url = cardholder_terms_url
  @cash_advanced_terms_url = cash_advanced_terms_url
  @additional_disclosures = additional_disclosures
end

Instance Attribute Details

#additional_disclosuresObject (readonly)

Returns the value of attribute additional_disclosures.



4
5
6
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 4

def additional_disclosures
  @additional_disclosures
end

#cardholder_terms_urlObject (readonly)

Returns the value of attribute cardholder_terms_url.



4
5
6
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 4

def cardholder_terms_url
  @cardholder_terms_url
end

#cash_advanced_terms_urlObject (readonly)

Returns the value of attribute cash_advanced_terms_url.



4
5
6
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 4

def cash_advanced_terms_url
  @cash_advanced_terms_url
end

#client_terms_urlObject (readonly)

Returns the value of attribute client_terms_url.



4
5
6
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 4

def client_terms_url
  @client_terms_url
end

#deposit_terms_urlObject (readonly)

Returns the value of attribute deposit_terms_url.



4
5
6
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 4

def deposit_terms_url
  @deposit_terms_url
end

#electronic_disclosures_urlObject (readonly)

Returns the value of attribute electronic_disclosures_url.



4
5
6
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 4

def electronic_disclosures_url
  @electronic_disclosures_url
end

#privacy_policy_urlObject (readonly)

Returns the value of attribute privacy_policy_url.



4
5
6
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 4

def privacy_policy_url
  @privacy_policy_url
end

#redirect_urlObject (readonly)

Returns the value of attribute redirect_url.



4
5
6
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 4

def redirect_url
  @redirect_url
end

Class Method Details

.cast(val) ⇒ Object



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 27

def self.cast(val)
  return val if val.is_a? self
  return nil if val.nil?

  new(
    redirect_url: val[:redirect_url],
    privacy_policy_url: val[:privacy_policy_url],
    electronic_disclosures_url: val[:electronic_disclosures_url],
    deposit_terms_url: val[:deposit_terms_url],
    client_terms_url: val[:client_terms_url],
    cardholder_terms_url: val[:cardholder_terms_url],
    cash_advanced_terms_url: val[:cash_advanced_terms_url],
    additional_disclosures: val[:additional_disclosures]
  )
end

Instance Method Details

#as_json_apiObject



43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/unit-ruby/types/application_form_settings_override.rb', line 43

def as_json_api
  {
    redirect_url: redirect_url,
    privacy_policy_url: privacy_policy_url,
    electronic_disclosures_url: electronic_disclosures_url,
    deposit_terms_url: deposit_terms_url,
    client_terms_url: client_terms_url,
    cardholder_terms_url: cardholder_terms_url,
    cash_advanced_terms_url: cash_advanced_terms_url,
    additional_disclosures: additional_disclosures
  }.compact
end