Skip to content

Instantly share code, notes, and snippets.

@irsl
Created December 31, 2023 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irsl/01765efb8da72882967b268fa0fd2dcf to your computer and use it in GitHub Desktop.
Save irsl/01765efb8da72882967b268fa0fd2dcf to your computer and use it in GitHub Desktop.
def self.invoice_for_number(zuora_invoice_number)
response = GitHub.zuorest_client.query_action queryString: "select Id from Invoice where InvoiceNumber = '#{zuora_invoice_number}'"
response["records"].map { |record| new(record["Id"]) }.first
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment