pay 10.0.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cb13ff6c749505948794eb9208f18c23c4039f8f4a7669f5c0a3b20de896208
4
- data.tar.gz: 9333e7733e05f6c911c4a83511ecbd5f3fe50af0a81e1fb8148390480f61f3b0
3
+ metadata.gz: 97c43263ab73cd849da8c65e8a4f1235aabb28b6f35c56c5441c077838374186
4
+ data.tar.gz: c0161223fdbd12eee31ef928639bba40e9af1a63e2e6cdeee3e2a69fce106de4
5
5
  SHA512:
6
- metadata.gz: baeb8674f52419544fe9e81488cec59019d810e5b30d93aa3376c47fac7c63d4827ab92a0a7ac11f160da6b786264b1c2fe2124dfbb0fc3701a7e8908003c6fa
7
- data.tar.gz: bf45ca550a463359b1322e31514fe3d86cdedde5b5ea5974a54d1e11302bec6745b0ac19621cc46aeb8833463093923e2c7917151497354e0a280e8a53ac732d
6
+ metadata.gz: 1fd5fdc16c976d6d33e908210c54de32cdbfcea6e0d641b58eb5f6e52fb5ff217bb59ac6ae3bb7118f8e59f5f6bcc2f2bd88fd61736d01c9fff386ebf24937ef
7
+ data.tar.gz: ffee6759b0bae293ffadb173158a57bac35e9f10150a38846499e2ffe635380a64606847098303a9422addd23e7e372d08669929b973c4135df2f2f81a3a0d2c
data/lib/pay/receipts.rb CHANGED
@@ -33,7 +33,7 @@ module Pay
33
33
 
34
34
  if stripe_invoice
35
35
  stripe_invoice.lines.auto_paging_each do |line|
36
- items << [line.description, line.quantity, Pay::Currency.format(line.unit_amount_excluding_tax, currency: line.currency), Pay::Currency.format(line.amount, currency: line.currency)]
36
+ items << [line.description, line.quantity, Pay::Currency.format(line.pricing.unit_amount_decimal, currency: line.currency), Pay::Currency.format(line.amount, currency: line.currency)]
37
37
 
38
38
  line.discounts.each do |discount_id|
39
39
  discount = stripe_invoice.total_discount_amounts.find { |d| d.discount.id == discount_id }
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "10.0.0"
2
+ VERSION = "10.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.0
4
+ version: 10.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes