kashflow_api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kashflow_api/models/invoice.rb +1 -1
- data/lib/kashflow_api/models/receipt.rb +1 -1
- data/lib/kashflow_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55a3d915ed0736539c04f75d94b744beff702595
|
4
|
+
data.tar.gz: 4d666f2a0b0ecf95df5530e97bd7bea05609d444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf4cd595b1f39cec502ac15ea8d1c0b7d9fec595cbea5f70064868210862fce5aad440308e1b4fe8d4629e92e95a1889055921a6016bb3b3b99a2130900977a0
|
7
|
+
data.tar.gz: 812f397ee951e69a751d6438781790d732a5d1a6d5fed1e3b5a86819145ff88d7d82b9fa4508e43bdbd48143591d9e67dfe2072712e1f27b0013eebb67cd8564
|
@@ -17,7 +17,7 @@ module KashflowApi
|
|
17
17
|
expects argument, String
|
18
18
|
return "<InvoiceNumber>#{argument}</InvoiceNumber>" if object == "invoice"
|
19
19
|
elsif action == "update" || action == "insert"
|
20
|
-
expects argument, KashflowApi::Invoice
|
20
|
+
expects argument, [KashflowApi::Invoice, KashflowApi::Line]
|
21
21
|
return "<InvoiceID>#{argument.invoiceid}</InvoiceID><InvLine>#{argument.to_xml}</InvLine>" if field == "Line"
|
22
22
|
return "<InvoiceNumber>#{argument.invoicenumber}</InvoiceNumber><InvLine>#{argument.to_xml}</InvLine>" if field == "Number"
|
23
23
|
return "<Inv>#{argument.to_xml}</Inv>" if object == "invoice"
|
@@ -13,7 +13,7 @@ module KashflowApi
|
|
13
13
|
expects argument, String
|
14
14
|
return "<ReceiptNumber>#{argument}</ReceiptNumber>" if object == "receipt"
|
15
15
|
elsif action == "update" || action == "insert"
|
16
|
-
expects argument, KashflowApi::Receipt
|
16
|
+
expects argument, [KashflowApi::Receipt, KashflowApi::Line]
|
17
17
|
return "<ReceiptID>#{argument.receiptid}</ReceiptID><InvLine>#{argument.to_xml}</InvLine>" if field == "Line"
|
18
18
|
return "<ReceiptNumber>#{argument.invoicenumber}</ReceiptNumber><InvLine>#{argument.to_xml}</InvLine>" if field == "Number"
|
19
19
|
return "<Inv>#{argument.to_xml}</Inv>" if object == "receipt"
|
data/lib/kashflow_api/version.rb
CHANGED