Class: Xendit::Invoice
- Inherits:
-
Object
- Object
- Xendit::Invoice
- Defined in:
- lib/xendit/resources/invoice.rb
Class Method Summary collapse
- .create(**opts) ⇒ Object
- .expire(invoice_id, **opts) ⇒ Object
- .get(invoice_id, **opts) ⇒ Object
- .get_all(**opts) ⇒ Object
Class Method Details
.create(**opts) ⇒ Object
10 11 12 |
# File 'lib/xendit/resources/invoice.rb', line 10 def create(**opts) ApiClient.post "v2/invoices/", opts end |
.expire(invoice_id, **opts) ⇒ Object
14 15 16 |
# File 'lib/xendit/resources/invoice.rb', line 14 def expire(invoice_id, **opts) ApiClient.post "invoices/#{invoice_id}/expire!", opts end |