Class: EVSS::PPIU::PaymentInformation
- Inherits:
-
Object
- Object
- EVSS::PPIU::PaymentInformation
- Defined in:
- lib/evss/ppiu/payment_information.rb
Overview
Model for payment information
Instance Attribute Summary collapse
-
#control_information ⇒ EVSS::PPIU::ControlInformation
Data object to determine if the user can update their address.
-
#payment_account ⇒ EVSS::PPIU::PaymentAccount
The user’s payment account.
-
#payment_address ⇒ EVSS::PPIU::PaymentAddress
The user’s payment address.
-
#payment_type ⇒ String
The payment type.
Instance Attribute Details
#control_information ⇒ EVSS::PPIU::ControlInformation
Returns Data object to determine if the user can update their address.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/evss/ppiu/payment_information.rb', line 22 class PaymentInformation include Virtus.model attribute :control_information, EVSS::PPIU::ControlInformation attribute :payment_account, EVSS::PPIU::PaymentAccount attribute :payment_address, EVSS::PPIU::PaymentAddress attribute :payment_type, String delegate :authorized?, to: :control_information def payment_account ? @payment_account : EVSS::PPIU::PaymentAccount.new end def payment_address ? @payment_address : EVSS::PPIU::PaymentAddress.new end end |
#payment_account ⇒ EVSS::PPIU::PaymentAccount
Returns The user’s payment account.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/evss/ppiu/payment_information.rb', line 22 class PaymentInformation include Virtus.model attribute :control_information, EVSS::PPIU::ControlInformation attribute :payment_account, EVSS::PPIU::PaymentAccount attribute :payment_address, EVSS::PPIU::PaymentAddress attribute :payment_type, String delegate :authorized?, to: :control_information def payment_account ? @payment_account : EVSS::PPIU::PaymentAccount.new end def payment_address ? @payment_address : EVSS::PPIU::PaymentAddress.new end end |
#payment_address ⇒ EVSS::PPIU::PaymentAddress
Returns The user’s payment address.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/evss/ppiu/payment_information.rb', line 22 class PaymentInformation include Virtus.model attribute :control_information, EVSS::PPIU::ControlInformation attribute :payment_account, EVSS::PPIU::PaymentAccount attribute :payment_address, EVSS::PPIU::PaymentAddress attribute :payment_type, String delegate :authorized?, to: :control_information def payment_account ? @payment_account : EVSS::PPIU::PaymentAccount.new end def payment_address ? @payment_address : EVSS::PPIU::PaymentAddress.new end end |
#payment_type ⇒ String
Returns The payment type.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/evss/ppiu/payment_information.rb', line 22 class PaymentInformation include Virtus.model attribute :control_information, EVSS::PPIU::ControlInformation attribute :payment_account, EVSS::PPIU::PaymentAccount attribute :payment_address, EVSS::PPIU::PaymentAddress attribute :payment_type, String delegate :authorized?, to: :control_information def payment_account ? @payment_account : EVSS::PPIU::PaymentAccount.new end def payment_address ? @payment_address : EVSS::PPIU::PaymentAddress.new end end |