waveapps 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/examples/invoice.md +1 -1
- data/lib/waveapps/invoice.rb +7 -1
- data/lib/waveapps/ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7add40d1a01cf89f22a73ac635a539331481fcfe1ad607d94f8794adf7b0bd1c
|
4
|
+
data.tar.gz: 5020a93cfef8117a90292fbdd1835a3b27283184902c7831c0e377680283f6d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47a0f388436dd8521eb1f69d77b1ba9ce2328f22632f272ea6ec328ad88136c42ff4d483aed27d55f84746ec5ea6ece81c4b23fdbb2e5a282040a8e627e56235
|
7
|
+
data.tar.gz: d9daac12bff6d0c364d441dd95850a0717d57c975c522fae1cc089430cd2d51464dc7204946eabd5e57aae71d19659d3513ad0ae14791a78221e52b907aacf16
|
data/Gemfile.lock
CHANGED
data/examples/invoice.md
CHANGED
@@ -19,7 +19,7 @@ Waveapps::Invoice.list_invoices(business_id: <BUSINESS_ID>)
|
|
19
19
|
|
20
20
|
## Send invoice
|
21
21
|
|
22
|
-
Provide email of recipients in the `to` argument.
|
22
|
+
Provide email of recipients in the `to` argument. If you have more than one recipient, pass it as an array.
|
23
23
|
|
24
24
|
```ruby
|
25
25
|
Waveapps::Invoice.send_invoice(invoice_id: <INVOICE_ID>, to: [<EMAIL>])
|
data/lib/waveapps/invoice.rb
CHANGED
@@ -272,7 +272,13 @@ module Waveapps
|
|
272
272
|
productId: pid[:product_id],
|
273
273
|
quantity: pid[:quantity],
|
274
274
|
description: pid[:description],
|
275
|
-
unitPrice: pid[:unit_price]
|
275
|
+
unitPrice: pid[:unit_price],
|
276
|
+
taxes: pid[:taxes] && pid[:taxes].map do |tax|
|
277
|
+
{
|
278
|
+
salesTaxId: tax[:sales_tax_id],
|
279
|
+
amount: tax[:amount]
|
280
|
+
}
|
281
|
+
end
|
276
282
|
}
|
277
283
|
end,
|
278
284
|
status: status,
|