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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83aa2d3d9328488253625f5a8c757a8c15f284b2
4
- data.tar.gz: 8165b45aeac0f6c38dde74a7000032ba4efb8dcb
3
+ metadata.gz: 55a3d915ed0736539c04f75d94b744beff702595
4
+ data.tar.gz: 4d666f2a0b0ecf95df5530e97bd7bea05609d444
5
5
  SHA512:
6
- metadata.gz: f387a0516f4edd4600f49da3d8cdbd5dfbbaebffcb597a0f49e0d50c32fbcd254af25b951e55258303f63e0d468678a322737bd1a286ab2f8f81c981f475015a
7
- data.tar.gz: 3a2fc5bad8acdcc8494fea8587002b8bae8b90ccdd2c0cf55da4fafe90d71d10a68f18093ab8b123a329a686134b8d3b68c14b42486e77b7526a5d065bff80ac
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"
@@ -1,3 +1,3 @@
1
1
  module KashflowApi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kashflow_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam "Arcath" Laycock