Created
December 31, 2023 12:08
-
-
Save irsl/01765efb8da72882967b268fa0fd2dcf to your computer and use it in GitHub Desktop.
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
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