Class: ActiveMerchant::Billing::ConvenienceStore

Inherits:
Model
  • Object
show all
Defined in:
lib/active_merchant/billing/convenience_store.rb

Defined Under Namespace

Modules: Code

Instance Method Summary collapse

Constructor Details

#initialize(code:, full_name_kana:, phone_number:) ⇒ ConvenienceStore

Returns a new instance of ConvenienceStore.



14
15
16
17
18
# File 'lib/active_merchant/billing/convenience_store.rb', line 14

def initialize(code:, full_name_kana:, phone_number:)
  @code           = code
  @full_name_kana = full_name_kana
  @phone_number   = phone_number
end

Instance Method Details

#codeObject



20
21
22
# File 'lib/active_merchant/billing/convenience_store.rb', line 20

def code
  @code
end

#nameObject



24
25
26
# File 'lib/active_merchant/billing/convenience_store.rb', line 24

def name
  @full_name_kana
end

#phone_numberObject



28
29
30
# File 'lib/active_merchant/billing/convenience_store.rb', line 28

def phone_number
  @phone_number
end

#validateObject



32
33
34
# File 'lib/active_merchant/billing/convenience_store.rb', line 32

def validate
  errors_hash(validate_essential_attributes)
end