pay 10.1.0 → 10.1.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: 514244ea1a6e8f9b56ff307b1d5f37719772fb4418b057d398c74fb148b7b961
4
- data.tar.gz: 52e53b7b4667dd1dba56cf74a82b55f421e22cc4d6d2a8c7701abdbf397bf09f
3
+ metadata.gz: 60ed8a33d928f8be5f8873e25bc9d52e659f3129750184b6bf5f7aa838f7d5a2
4
+ data.tar.gz: 9969b2de4dcc2d3509529c62b27cbc28eb7fb440218523f9fb066625ea1897a8
5
5
  SHA512:
6
- metadata.gz: 6e5449126348166ff4fe1b3831bf77d7ffe5939101618cb662b7f49129d031385dda7bc1fa92b3ac23d9e1929153b893fbe31cee5390851a3a54e5d8dbb106e5
7
- data.tar.gz: 23e01395c177b9fad7df51a4147bccbf54e80966c1bb30711930ca4e6ae64f55692f9bc3c1513c154c39d81f6ae12e9438931b511655bab3a944b0db8005d321
6
+ metadata.gz: a764e343c15ee7afde06ed527b34e93398e4aa6a2314418d8ebfec733b7b4bf1d887ce4817b90100d5e4ce7be6ba0109c40b262f999bf5f4a78d942018b5d38b
7
+ data.tar.gz: 8b1914ae7921a70334c5ec06b780e41952c77a0d3d1ab640fd9d0fe237df3f0e30c0cb82d2d736dabf22c1453e5442a0f5608d725137b7a299a5cd1b06b5e442
@@ -142,8 +142,8 @@ module Pay
142
142
  ::Stripe::Invoice.create(options.merge(customer: processor_id || api_record.id), stripe_options).pay
143
143
  end
144
144
 
145
- def upcoming_invoice
146
- ::Stripe::Invoice.upcoming({customer: processor_id || api_record.id}, stripe_options)
145
+ def preview_invoice(**options)
146
+ ::Stripe::Invoice.create_preview(options.merge(customer: processor_id || api_record.id), stripe_options)
147
147
  end
148
148
 
149
149
  # Syncs a customer's subscriptions from Stripe to the database.
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "10.1.0"
2
+ VERSION = "10.1.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.1.0
4
+ version: 10.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes