Sha256: 8bf623d68307bfe816e202aee07edb64a7f42f55fab82c2bce83db8d7fc59e86
Contents?: true
Size: 609 Bytes
Versions: 5
Compression:
Stored size: 609 Bytes
Contents
require 'netsuite_api/base' require 'netsuite_api/concerns/request_handler' require 'netsuite_api/concerns/response_handler' module NetsuiteApi class Invoice < Base include Concerns::RequestHandler include Concerns::ResponseHandler PATH = "invoice" def get_pdf(query) path = "app/site/hosting/restlet.nl" response = request(path, query_params: query, host_type: :netsuite_pdf_host) if response.success? ecrypted_str = JSON.parse(response.body).dig('data64') plain = Base64.decode64(ecrypted_str) else nil end end end end
Version data entries
5 entries across 5 versions & 1 rubygems