Sha256: 85181d61dc37269d2076f07f651277b0e15d04499beb320d21681531a6c88801

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

require_relative '../api_client'

module Xendit
  class Invoice
    class << self
      def get(invoice_id)
        ApiClient.get "v2/invoices/#{invoice_id}"
      end

      def create(params)
        ApiClient.post "v2/invoices/", params
      end

      def expire(invoice_id)
        ApiClient.post "invoices/#{invoice_id}/expire!"
      end

      def get_all
        ApiClient.get "v2/invoices"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xendit-client-0.1.1 lib/xendit/resources/invoice.rb