Sha256: 467af9c871ddfc71d8a4f76db13b1eeb9977613c436b9f72a6663d221d1750c9
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
require_relative '../api_client' module Xendit class Invoice class << self def get(invoice_id, **opts) ApiClient.get "v2/invoices/#{invoice_id}", opts end def create(**opts) ApiClient.post "v2/invoices/", opts end def expire(invoice_id, **opts) ApiClient.post "invoices/#{invoice_id}/expire!", opts end def get_all(**opts) ApiClient.get "v2/invoices", opts end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xendit-client-1.1.0 | lib/xendit/resources/invoice.rb |
xendit-client-1.0.0 | lib/xendit/resources/invoice.rb |