This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'csv' | |
CLICKPOST_HEADER = %w(お届け先郵便番号 お届け先氏名 お届け先敬称 お届け先住所1行目 お届け先住所2行目 お届け先住所3行目 お届け先住所4行目 内容品) | |
booth_order_csv_path = ARGV.shift | |
booth_order_csv = CSV.read(booth_order_csv_path, 'r:BOM|UTF-8', headers: true) | |
click_post_data = booth_order_csv.map do |row| | |
[ | |
row['郵便番号'], |
OlderNewer