Class: Cetustek::Services::InvoiceService
- Inherits:
-
Object
- Object
- Cetustek::Services::InvoiceService
- Defined in:
- lib/cetustek/services/invoice_service.rb
Overview
2.1 CreateInvoiceV3(invoicexml, hastax, rentid, source)
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(xml, hastax = 1) ⇒ InvoiceService
constructor
A new instance of InvoiceService.
Constructor Details
#initialize(xml, hastax = 1) ⇒ InvoiceService
Returns a new instance of InvoiceService.
9 10 11 12 |
# File 'lib/cetustek/services/invoice_service.rb', line 9 def initialize(xml, hastax = 1) @xml = xml @hastax = hastax end |
Instance Method Details
#create ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cetustek/services/invoice_service.rb', line 14 def create Savon.client( wsdl: Cetustek.config.url, open_timeout: 300, read_timeout: 300 ).call(:create_invoice_v3, message: { invoicexml: @xml, source: Cetustek.config.site_id + Cetustek.config.password, rentid: Cetustek.config.username, hastax: @hastax }) end |