Sha256: 0993ded8f2820732bd97625f16fd91834bbc8da35378b6326fe0c6eeb22e1dc5
Contents?: true
Size: 617 Bytes
Versions: 5
Compression:
Stored size: 617 Bytes
Contents
require 'netsuite_api/base' require 'netsuite_api/concerns/request_handler' require 'netsuite_api/concerns/response_handler' module NetsuiteApi class Payment < Base include Concerns::RequestHandler include Concerns::ResponseHandler PATH = "customerpayment" 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