Class: PaysonAPI::V2::Models::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/payson_api/v2/models/account.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#account_emailObject

Returns the value of attribute account_email.



7
8
9
# File 'lib/payson_api/v2/models/account.rb', line 7

def 
  @account_email
end

#enabled_for_invoiceObject

Returns the value of attribute enabled_for_invoice.



7
8
9
# File 'lib/payson_api/v2/models/account.rb', line 7

def enabled_for_invoice
  @enabled_for_invoice
end

#enabled_for_payment_planObject

Returns the value of attribute enabled_for_payment_plan.



7
8
9
# File 'lib/payson_api/v2/models/account.rb', line 7

def enabled_for_payment_plan
  @enabled_for_payment_plan
end

#enabled_for_recurring_paymentsObject

Returns the value of attribute enabled_for_recurring_payments.



7
8
9
# File 'lib/payson_api/v2/models/account.rb', line 7

def enabled_for_recurring_payments
  @enabled_for_recurring_payments
end

#merchant_idObject

Returns the value of attribute merchant_id.



7
8
9
# File 'lib/payson_api/v2/models/account.rb', line 7

def merchant_id
  @merchant_id
end

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/payson_api/v2/models/account.rb', line 7

def status
  @status
end

Class Method Details

.from_hash(hash) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/payson_api/v2/models/account.rb', line 10

def self.from_hash(hash)
  new.tap do ||
    . = hash['accountEmail']
    .status = hash['status']
    .merchant_id = hash['merchantId']
    .enabled_for_invoice = hash['enabledForInvoice']
    .enabled_for_payment_plan = hash['enabledForpaymentPlan']
    .enabled_for_recurring_payments = hash['enabledForRecurringPayments']
  end
end