Class: Paya::Ccd::NonGuaranteed::CreditDebitTransaction
- Defined in:
- lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb
Instance Attribute Summary collapse
-
#account_number ⇒ Object
Returns the value of attribute account_number.
-
#account_type ⇒ Object
Returns the value of attribute account_type.
-
#address_1 ⇒ Object
Returns the value of attribute address_1.
-
#address_2 ⇒ Object
Returns the value of attribute address_2.
-
#check_amount ⇒ Object
Returns the value of attribute check_amount.
-
#city ⇒ Object
Returns the value of attribute city.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#dl_number ⇒ Object
Returns the value of attribute dl_number.
-
#dl_state ⇒ Object
Returns the value of attribute dl_state.
-
#dob_year ⇒ Object
Returns the value of attribute dob_year.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
-
#routing_number ⇒ Object
Returns the value of attribute routing_number.
-
#state ⇒ Object
Returns the value of attribute state.
-
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
- #check_no_verification_dl_optional ⇒ Object
- #check_no_verification_dl_required ⇒ Object
- #check_verification_identity_verification_dl_optional ⇒ Object
- #check_verification_identity_verification_dl_required ⇒ Object
- #check_verification_only_dl_optional ⇒ Object
- #check_verification_only_dl_required ⇒ Object
- #identity_verification_only_dl_optional ⇒ Object
- #identity_verification_only_dl_required ⇒ Object
-
#initialize(options = {}) ⇒ CreditDebitTransaction
constructor
A new instance of CreditDebitTransaction.
- #process(check_verification = false, identity_verification = false, dl_required = false) ⇒ Object
Methods inherited from Base
#check_number, #consumer_info, #corporate_consumer, #data_packet, #get_archived_response, #identity_block, #non_corporate_consumer, #process_single_ccd_check, #process_single_certification_check, #process_single_check, #process_single_check_with_token, #process_single_ppd_check, #process_single_tel_check, #process_single_web_check
Constructor Details
#initialize(options = {}) ⇒ CreditDebitTransaction
Returns a new instance of CreditDebitTransaction.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 7 def initialize ={} @options = @request_id = [:request_id] @transaction_id = [:transaction_id] @routing_number = [:routing_number] @account_number = [:account_number] @account_type = [:account_type] @company_name = [:company_name] @address_1 = [:address_1] @address_2 = [:address_2] @city = [:city] @state = [:state] @dl_state = [:dl_state] @dl_number = [:dl_number] @dob_year = [:dob_year] @zip = [:zip] @phone_number = [:phone_number] @check_amount = [:check_amount] @identifier = [:identifier] end |
Instance Attribute Details
#account_number ⇒ Object
Returns the value of attribute account_number.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def account_number @account_number end |
#account_type ⇒ Object
Returns the value of attribute account_type.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def account_type @account_type end |
#address_1 ⇒ Object
Returns the value of attribute address_1.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def address_1 @address_1 end |
#address_2 ⇒ Object
Returns the value of attribute address_2.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def address_2 @address_2 end |
#check_amount ⇒ Object
Returns the value of attribute check_amount.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def check_amount @check_amount end |
#city ⇒ Object
Returns the value of attribute city.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def city @city end |
#company_name ⇒ Object
Returns the value of attribute company_name.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def company_name @company_name end |
#dl_number ⇒ Object
Returns the value of attribute dl_number.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def dl_number @dl_number end |
#dl_state ⇒ Object
Returns the value of attribute dl_state.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def dl_state @dl_state end |
#dob_year ⇒ Object
Returns the value of attribute dob_year.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def dob_year @dob_year end |
#identifier ⇒ Object
Returns the value of attribute identifier.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def identifier @identifier end |
#phone_number ⇒ Object
Returns the value of attribute phone_number.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def phone_number @phone_number end |
#request_id ⇒ Object
Returns the value of attribute request_id.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def request_id @request_id end |
#routing_number ⇒ Object
Returns the value of attribute routing_number.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def routing_number @routing_number end |
#state ⇒ Object
Returns the value of attribute state.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def state @state end |
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def transaction_id @transaction_id end |
#zip ⇒ Object
Returns the value of attribute zip.
5 6 7 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 5 def zip @zip end |
Instance Method Details
#check_no_verification_dl_optional ⇒ Object
50 51 52 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 50 def check_no_verification_dl_optional process_single_check @options, Paya.configuration.ccd_non_guaranteed_credit_debit_check_no_verification_dl_optional_terminal_id, 'R' end |
#check_no_verification_dl_required ⇒ Object
54 55 56 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 54 def check_no_verification_dl_required process_single_check @options, Paya.configuration.ccd_non_guaranteed_credit_debit_check_no_verification_dl_required_terminal_id, 'R' end |
#check_verification_identity_verification_dl_optional ⇒ Object
58 59 60 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 58 def check_verification_identity_verification_dl_optional process_single_check @options, Paya.configuration.ccd_non_guaranteed_credit_debit_check_verification_identity_verification_dl_optional_terminal_id, 'R' end |
#check_verification_identity_verification_dl_required ⇒ Object
62 63 64 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 62 def check_verification_identity_verification_dl_required process_single_check @options, Paya.configuration.ccd_non_guaranteed_credit_debit_check_verification_identity_verification_dl_required_terminal_id, 'R' end |
#check_verification_only_dl_optional ⇒ Object
66 67 68 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 66 def check_verification_only_dl_optional process_single_check @options, Paya.configuration.ccd_non_guaranteed_credit_debit_check_verification_only_dl_optional_terminal_id, 'R' end |
#check_verification_only_dl_required ⇒ Object
70 71 72 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 70 def check_verification_only_dl_required process_single_check @options, Paya.configuration.ccd_non_guaranteed_credit_debit_check_verification_only_dl_required_terminal_id, 'R' end |
#identity_verification_only_dl_optional ⇒ Object
74 75 76 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 74 def identity_verification_only_dl_optional process_single_check @options, Paya.configuration.ccd_non_guaranteed_credit_debit_identity_verification_only_dl_optional_terminal_id, 'R' end |
#identity_verification_only_dl_required ⇒ Object
78 79 80 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 78 def identity_verification_only_dl_required process_single_check @options, Paya.configuration.ccd_non_guaranteed_credit_debit_identity_verification_only_dl_required_terminal_id, 'R' end |
#process(check_verification = false, identity_verification = false, dl_required = false) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/paya/ccd/non_guaranteed/credit_debit_transaction.rb', line 28 def process check_verification=false, identity_verification=false, dl_required=false if check_verification == false and identity_verification == false and dl_required == false check_no_verification_dl_optional elsif check_verification == false and identity_verification == false and dl_required == true check_no_verification_dl_required elsif check_verification == true and identity_verification == true and dl_required == false check_verification_identity_verification_dl_optional elsif check_verification == true and identity_verification == true and dl_required == true check_verification_identity_verification_dl_required elsif check_verification == true and identity_verification == false and dl_required == false check_verification_only_dl_optional elsif check_verification == true and identity_verification == false and dl_required == true check_verification_only_dl_required elsif check_verification == false and identity_verification == true and dl_required == false identity_verification_only_dl_optional elsif check_verification == false and identity_verification == true and dl_required == true identity_verification_only_dl_required else raise "Transaction not supported" end end |