Sha256: 014d76a93823d09969917d674e04ac83e601a5bba10efc269487bd8a913654db
Contents?: true
Size: 788 Bytes
Versions: 49
Compression:
Stored size: 788 Bytes
Contents
module RsrGroup class OrderRecipient < Base def initialize(options = {}) requires!(options, :order_identifier, :shipping_name, :address_one, :city, :state, :zip) @options = options @order_identifier = options[:order_identifier] end def to_single_line [ @order_identifier, LINE_TYPES.key(:order_header), @options[:shipping_name], @options[:attn], @options[:address_one], @options[:address_two], @options[:city], @options[:state], @options[:zip], (@options[:phone].nil? ? '' : @options[:phone].gsub(/\D/, '')), (@options[:email].nil? ? 'N' : 'Y'), @options[:email], RsrGroup.config.vendor_email, nil ].join(";") end end end
Version data entries
49 entries across 49 versions & 1 rubygems