Class: LitleOnline::LitleOnlineRequest
- Inherits:
-
Object
- Object
- LitleOnline::LitleOnlineRequest
- Defined in:
- lib/LitleOnlineRequest.rb
Instance Method Summary collapse
- #activate(options) ⇒ Object
- #activate_reversal(options) ⇒ Object
- #auth_reversal(options) ⇒ Object
- #authorization(options) ⇒ Object
- #balance_inquiry(options) ⇒ Object
- #cancel_subscription(options) ⇒ Object
- #capture(options) ⇒ Object
- #capture_given_auth(options) ⇒ Object
- #create_plan(options) ⇒ Object
- #credit(options) ⇒ Object
- #deactivate(options) ⇒ Object
- #deactivate_reversal(options) ⇒ Object
- #deposit_reversal(options) ⇒ Object
- #echeck_credit(options) ⇒ Object
- #echeck_redeposit(options) ⇒ Object
- #echeck_sale(options) ⇒ Object
- #echeck_verification(options) ⇒ Object
- #echeck_void(options) ⇒ Object
- #force_capture(options) ⇒ Object
-
#initialize ⇒ LitleOnlineRequest
constructor
A new instance of LitleOnlineRequest.
- #load_request(options) ⇒ Object
- #load_reversal(options) ⇒ Object
- #refund_reversal(options) ⇒ Object
- #register_token_request(options) ⇒ Object
- #sale(options) ⇒ Object
- #unload_request(options) ⇒ Object
- #unload_reversal(options) ⇒ Object
- #update_card_validation_num_on_token(options) ⇒ Object
- #update_plan(options) ⇒ Object
- #update_subscription(options) ⇒ Object
- #virtual_giftcard(options) ⇒ Object
- #void(options) ⇒ Object
Constructor Details
#initialize ⇒ LitleOnlineRequest
Returns a new instance of LitleOnlineRequest.
30 31 32 33 34 |
# File 'lib/LitleOnlineRequest.rb', line 30 def initialize # load configuration data @config_hash = Configuration.new.config @litle_transaction = LitleTransaction.new end |
Instance Method Details
#activate(options) ⇒ Object
66 67 68 69 70 |
# File 'lib/LitleOnlineRequest.rb', line 66 def activate() transaction = @litle_transaction.activate() commit(transaction, :activate, ) end |
#activate_reversal(options) ⇒ Object
96 97 98 99 100 |
# File 'lib/LitleOnlineRequest.rb', line 96 def activate_reversal() transaction = @litle_transaction.activate_reversal() commit(transaction, :activateReversal, ) end |
#auth_reversal(options) ⇒ Object
144 145 146 147 148 |
# File 'lib/LitleOnlineRequest.rb', line 144 def auth_reversal() transaction = @litle_transaction.auth_reversal() commit(transaction, :authReversal, ) end |
#authorization(options) ⇒ Object
132 133 134 135 136 |
# File 'lib/LitleOnlineRequest.rb', line 132 def () transaction = @litle_transaction.() commit(transaction, :authorization, ) end |
#balance_inquiry(options) ⇒ Object
90 91 92 93 94 |
# File 'lib/LitleOnlineRequest.rb', line 90 def balance_inquiry() transaction = @litle_transaction.balance_inquiry() commit(transaction, :balanceInquiry, ) end |
#cancel_subscription(options) ⇒ Object
54 55 56 57 58 |
# File 'lib/LitleOnlineRequest.rb', line 54 def cancel_subscription() transaction = @litle_transaction.cancel_subscription() commit(transaction, :cancelSubscription, ) end |
#capture(options) ⇒ Object
174 175 176 177 178 |
# File 'lib/LitleOnlineRequest.rb', line 174 def capture() transaction = @litle_transaction.capture() commit(transaction, :captureTxn, ) end |
#capture_given_auth(options) ⇒ Object
180 181 182 183 184 |
# File 'lib/LitleOnlineRequest.rb', line 180 def capture_given_auth() transaction = @litle_transaction.capture_given_auth() commit(transaction, :captureGivenAuth, ) end |
#create_plan(options) ⇒ Object
42 43 44 45 46 |
# File 'lib/LitleOnlineRequest.rb', line 42 def create_plan() transaction = @litle_transaction.create_plan() commit(transaction, :createPlan, ) end |
#credit(options) ⇒ Object
150 151 152 153 154 |
# File 'lib/LitleOnlineRequest.rb', line 150 def credit() transaction = @litle_transaction.credit() commit(transaction, :credit, ) end |
#deactivate(options) ⇒ Object
72 73 74 75 76 |
# File 'lib/LitleOnlineRequest.rb', line 72 def deactivate() transaction = @litle_transaction.deactivate() commit(transaction, :deactivate, ) end |
#deactivate_reversal(options) ⇒ Object
114 115 116 117 118 |
# File 'lib/LitleOnlineRequest.rb', line 114 def deactivate_reversal() transaction = @litle_transaction.deactivate_reversal() commit(transaction, :deactivateReversal, ) end |
#deposit_reversal(options) ⇒ Object
102 103 104 105 106 |
# File 'lib/LitleOnlineRequest.rb', line 102 def deposit_reversal() transaction = @litle_transaction.deposit_reversal() commit(transaction, :depositReversal, ) end |
#echeck_credit(options) ⇒ Object
204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/LitleOnlineRequest.rb', line 204 def echeck_credit() transaction = @litle_transaction.echeck_credit() begin commit(transaction, :echeckCredit, ) rescue XML::MappingError => e response = LitleOnlineResponse.new response. = "The content of element 'echeckCredit' is not complete" return response end end |
#echeck_redeposit(options) ⇒ Object
192 193 194 195 196 |
# File 'lib/LitleOnlineRequest.rb', line 192 def echeck_redeposit() transaction = @litle_transaction.echeck_redeposit() commit(transaction, :echeckRedeposit, ) end |
#echeck_sale(options) ⇒ Object
198 199 200 201 202 |
# File 'lib/LitleOnlineRequest.rb', line 198 def echeck_sale() transaction = @litle_transaction.echeck_sale() commit(transaction, :echeckSale, ) end |
#echeck_verification(options) ⇒ Object
216 217 218 219 220 |
# File 'lib/LitleOnlineRequest.rb', line 216 def echeck_verification() transaction = @litle_transaction.echeck_verification() commit(transaction, :echeckVerification, ) end |
#echeck_void(options) ⇒ Object
222 223 224 225 226 |
# File 'lib/LitleOnlineRequest.rb', line 222 def echeck_void() transaction = @litle_transaction.echeck_void() commit(transaction, :echeckVoid, ) end |
#force_capture(options) ⇒ Object
168 169 170 171 172 |
# File 'lib/LitleOnlineRequest.rb', line 168 def force_capture() transaction = @litle_transaction.force_capture() commit(transaction, :forceCapture, ) end |
#load_request(options) ⇒ Object
78 79 80 81 82 |
# File 'lib/LitleOnlineRequest.rb', line 78 def load_request() transaction = @litle_transaction.load_request() commit(transaction, :load, ) end |
#load_reversal(options) ⇒ Object
120 121 122 123 124 |
# File 'lib/LitleOnlineRequest.rb', line 120 def load_reversal() transaction = @litle_transaction.load_reversal() commit(transaction, :loadReversal, ) end |
#refund_reversal(options) ⇒ Object
108 109 110 111 112 |
# File 'lib/LitleOnlineRequest.rb', line 108 def refund_reversal() transaction = @litle_transaction.refund_reversal() commit(transaction, :refundReversal, ) end |
#register_token_request(options) ⇒ Object
156 157 158 159 160 |
# File 'lib/LitleOnlineRequest.rb', line 156 def register_token_request() transaction = @litle_transaction.register_token_request() commit(transaction, :registerTokenRequest, ) end |
#sale(options) ⇒ Object
138 139 140 141 142 |
# File 'lib/LitleOnlineRequest.rb', line 138 def sale() transaction = @litle_transaction.sale() commit(transaction, :sale, ) end |
#unload_request(options) ⇒ Object
84 85 86 87 88 |
# File 'lib/LitleOnlineRequest.rb', line 84 def unload_request() transaction = @litle_transaction.unload_request() commit(transaction, :unload, ) end |
#unload_reversal(options) ⇒ Object
126 127 128 129 130 |
# File 'lib/LitleOnlineRequest.rb', line 126 def unload_reversal() transaction = @litle_transaction.unload_reversal() commit(transaction, :unloadReversal, ) end |
#update_card_validation_num_on_token(options) ⇒ Object
162 163 164 165 166 |
# File 'lib/LitleOnlineRequest.rb', line 162 def update_card_validation_num_on_token() transaction = @litle_transaction.update_card_validation_num_on_token() commit(transaction, :updateCardValidationNumOnToken, ) end |
#update_plan(options) ⇒ Object
48 49 50 51 52 |
# File 'lib/LitleOnlineRequest.rb', line 48 def update_plan() transaction = @litle_transaction.update_plan() commit(transaction, :updatePlan, ) end |
#update_subscription(options) ⇒ Object
60 61 62 63 64 |
# File 'lib/LitleOnlineRequest.rb', line 60 def update_subscription() transaction = @litle_transaction.update_subscription() commit(transaction, :updateSubscription, ) end |
#virtual_giftcard(options) ⇒ Object
36 37 38 39 40 |
# File 'lib/LitleOnlineRequest.rb', line 36 def virtual_giftcard() transaction = @litle_transaction.virtual_giftcard() commit(transaction, :virtualGiftCard, ) end |
#void(options) ⇒ Object
186 187 188 189 190 |
# File 'lib/LitleOnlineRequest.rb', line 186 def void() transaction = @litle_transaction.void() commit(transaction, :void, ) end |