Class: PaysonAPI::V2::Models::Account
- Inherits:
-
Object
- Object
- PaysonAPI::V2::Models::Account
- Defined in:
- lib/payson_api/v2/models/account.rb
Instance Attribute Summary collapse
-
#account_email ⇒ Object
Returns the value of attribute account_email.
-
#enabled_for_invoice ⇒ Object
Returns the value of attribute enabled_for_invoice.
-
#enabled_for_payment_plan ⇒ Object
Returns the value of attribute enabled_for_payment_plan.
-
#enabled_for_recurring_payments ⇒ Object
Returns the value of attribute enabled_for_recurring_payments.
-
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#account_email ⇒ Object
Returns the value of attribute account_email.
7 8 9 |
# File 'lib/payson_api/v2/models/account.rb', line 7 def account_email @account_email end |
#enabled_for_invoice ⇒ Object
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_plan ⇒ Object
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_payments ⇒ Object
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_id ⇒ Object
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 |
#status ⇒ Object
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 |account| account.account_email = hash['accountEmail'] account.status = hash['status'] account.merchant_id = hash['merchantId'] account.enabled_for_invoice = hash['enabledForInvoice'] account.enabled_for_payment_plan = hash['enabledForpaymentPlan'] account.enabled_for_recurring_payments = hash['enabledForRecurringPayments'] end end |