Class: Paya::Ccd::Guaranteed::CreditDebitTransaction
- Defined in:
- lib/paya/ccd/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.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 8 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.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def account_number @account_number end |
#account_type ⇒ Object
Returns the value of attribute account_type.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def account_type @account_type end |
#address_1 ⇒ Object
Returns the value of attribute address_1.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def address_1 @address_1 end |
#address_2 ⇒ Object
Returns the value of attribute address_2.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def address_2 @address_2 end |
#check_amount ⇒ Object
Returns the value of attribute check_amount.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def check_amount @check_amount end |
#city ⇒ Object
Returns the value of attribute city.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def city @city end |
#company_name ⇒ Object
Returns the value of attribute company_name.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def company_name @company_name end |
#dl_number ⇒ Object
Returns the value of attribute dl_number.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def dl_number @dl_number end |
#dl_state ⇒ Object
Returns the value of attribute dl_state.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def dl_state @dl_state end |
#dob_year ⇒ Object
Returns the value of attribute dob_year.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def dob_year @dob_year end |
#identifier ⇒ Object
Returns the value of attribute identifier.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def identifier @identifier end |
#phone_number ⇒ Object
Returns the value of attribute phone_number.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def phone_number @phone_number end |
#request_id ⇒ Object
Returns the value of attribute request_id.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def request_id @request_id end |
#routing_number ⇒ Object
Returns the value of attribute routing_number.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def routing_number @routing_number end |
#state ⇒ Object
Returns the value of attribute state.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def state @state end |
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def transaction_id @transaction_id end |
#zip ⇒ Object
Returns the value of attribute zip.
6 7 8 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 6 def zip @zip end |
Instance Method Details
#check_no_verification_dl_optional ⇒ Object
51 52 53 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 51 def check_no_verification_dl_optional process_single_check @options, Paya.configuration.ccd_guaranteed_credit_debit_check_no_verification_dl_optional_terminal_id, 'R' end |
#check_no_verification_dl_required ⇒ Object
55 56 57 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 55 def check_no_verification_dl_required process_single_check @options, Paya.configuration.ccd_guaranteed_credit_debit_check_no_verification_dl_required_terminal_id, 'R' end |
#check_verification_identity_verification_dl_optional ⇒ Object
59 60 61 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 59 def check_verification_identity_verification_dl_optional process_single_check @options, Paya.configuration.ccd_guaranteed_credit_debit_check_verification_identity_verification_dl_optional_terminal_id, 'R' end |
#check_verification_identity_verification_dl_required ⇒ Object
63 64 65 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 63 def check_verification_identity_verification_dl_required process_single_check @options, Paya.configuration.ccd_guaranteed_credit_debit_check_verification_identity_verification_dl_required_terminal_id, 'R' end |
#check_verification_only_dl_optional ⇒ Object
67 68 69 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 67 def check_verification_only_dl_optional process_single_check @options, Paya.configuration.ccd_guaranteed_credit_debit_check_verification_only_dl_optional_terminal_id, 'R' end |
#check_verification_only_dl_required ⇒ Object
71 72 73 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 71 def check_verification_only_dl_required process_single_check @options, Paya.configuration.ccd_guaranteed_credit_debit_check_verification_only_dl_required_terminal_id, 'R' end |
#identity_verification_only_dl_optional ⇒ Object
75 76 77 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 75 def identity_verification_only_dl_optional process_single_check @options, Paya.configuration.ccd_guaranteed_credit_debit_identity_verification_only_dl_optional_terminal_id, 'R' end |
#identity_verification_only_dl_required ⇒ Object
79 80 81 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 79 def identity_verification_only_dl_required process_single_check @options, Paya.configuration.ccd_guaranteed_credit_debit_identity_verification_only_dl_required_terminal_id, 'R' end |
#process(check_verification = false, identity_verification = false, dl_required = false) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/paya/ccd/guaranteed/credit_debit_transaction.rb', line 29 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 |