lib/oschadbank/constants.rb in oschadbank-0.1.0 vs lib/oschadbank/constants.rb in oschadbank-0.1.1

- old
+ new

@@ -9,50 +9,64 @@ refund: '24', }.freeze MAC_PARAMS_ORDER = { auth: [ - :AMOUNT, - :CURRENCY, - :ORDER, - :DESC, - :MERCH_NAME, - :MERCH_URL, - :MERCHANT, - :TERMINAL, - :EMAIL, - :TRTYPE, - :COUNTRY, - :MERCH_GMT, - :TIMESTAMP, - :NONCE, - :BACKREF, + 'AMOUNT', + 'CURRENCY', + 'ORDER', + 'DESC', + 'MERCH_NAME', + 'MERCH_URL', + 'MERCHANT', + 'TERMINAL', + 'EMAIL', + 'TRTYPE', + 'COUNTRY', + 'MERCH_GMT', + 'TIMESTAMP', + 'NONCE', + 'BACKREF', ].freeze, charge: [ - :ORDER, - :AMOUNT, - :CURRENCY, - :RRN, - :INT_REF, - :TRTYPE, - :TERMINAL, - :BACKREF, - :TIMESTAMP, - :NONCE, + 'ORDER', + 'AMOUNT', + 'CURRENCY', + 'RRN', + 'INT_REF', + 'TRTYPE', + 'TERMINAL', + 'BACKREF', + 'TIMESTAMP', + 'NONCE', ].freeze, refund: [ - :ORDER, - :ORG_AMOUNT, - :AMOUNT, - :CURRENCY, - :RRN, - :INT_REF, - :TRTYPE, - :TERMINAL, - :BACKREF, - :TIMESTAMP, - :NONCE, + 'ORDER', + 'ORG_AMOUNT', + 'AMOUNT', + 'CURRENCY', + 'RRN', + 'INT_REF', + 'TRTYPE', + 'TERMINAL', + 'BACKREF', + 'TIMESTAMP', + 'NONCE', ].freeze, + response: [ + 'TERMINAL', + 'TRTYPE', + 'ORDER', + 'AMOUNT', + 'CURRENCY', + 'Result', + 'RC', + 'AuthCode', + 'RRN', + 'IntRef', + 'TIMESTAMP', + 'NONCE', + ].freeze }.freeze RESULT_MESSAGES = { '0' => 'Transaction successfully completed', '1' => 'Duplicate transaction detected',