CB ECR Integration

This commit is contained in:
phyusin
2018-01-10 18:08:28 +06:30
parent 014a071637
commit 903dddd8cc
37 changed files with 807 additions and 92 deletions

View File

@@ -0,0 +1,34 @@
class CreateCardSettleTrans < ActiveRecord::Migration[5.1]
def change
create_table :card_settle_trans do |t|
t.integer :shift_sale_id
t.date :req_date
t.time :req_time
t.string :req_cmd
t.string :req_type
t.date :res_date
t.time :res_time
t.string :res_cmd
t.string :res_type
t.string :status, :limit=>50
t.integer :sale_cnt
t.float :sale_amt, :limit=>50
t.integer :void_cnt
t.float :void_amt, :limit=>50
t.integer :refund_cnt
t.float :refund_amt, :limit=>50
t.string :print_text_part1_type
t.string :print_text_part1_value
t.string :print_text_part2_type
t.string :print_text_part2_value
t.string :print_text_part3_type
t.string :print_text_part3_value
t.string :print_text_part4_type
t.string :print_text_part4_value
end
end
def down
drop_table :card_settle_trans
end
end

View File

@@ -0,0 +1,52 @@
class CreateCardSaleTrans < ActiveRecord::Migration[5.1]
def change
create_table :card_sale_trans do |t|
t.string :sale_id
t.date :req_date
t.time :req_time
t.float :req_amt, :limit=>50
t.string :req_inv_no
t.string :req_cmd
t.string :req_type
t.date :res_date
t.time :res_time
t.float :res_amt, :limit=>50
t.string :res_inv_no
t.string :res_cmd
t.string :res_type
t.string :status, :limit=>50
t.string :resp
t.string :trace
t.string :app_code
t.string :pan
t.string :exp_date
t.string :tips
t.string :entry_mode
t.string :terminal_id
t.string :merchant_id
t.string :card_holder
t.string :batch_no
t.string :ref_no
t.string :app
t.string :emv_app_id
t.string :emv_cyptrogram
t.string :curr_code
t.string :fx_rate
t.float :foreign_amt, :limit=>50
t.string :dcc_msg
t.string :tender
t.string :print_text_part1_type
t.string :print_text_part1_value
t.string :print_text_part2_type
t.string :print_text_part2_value
t.string :print_text_part3_type
t.string :print_text_part3_value
t.string :print_text_part4_type
t.string :print_text_part4_value
end
end
def down
drop_table :card_sale_trans
end
end