stripe 3.13.1 → 3.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/stripe.rb +1 -0
- data/lib/stripe/issuer_fraud_record.rb +11 -0
- data/lib/stripe/util.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/issuer_fraud_record_test.rb +18 -0
- data/test/test_helper.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 952fb42842e3fb593946642336b01441c60f46bc
|
4
|
+
data.tar.gz: d8a51dbd6360334217b838da9165bfeef598ddd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42c1ec4c359ee3b3e78399dbfff994cedd4e2113498a3e0bac18633c980e1131cdf0edb54145c2fba31a6b927330a8ae089c058ae58cac9d4e315b0889372587
|
7
|
+
data.tar.gz: 262f8aa4e928e99141f2b358043ee42e717384ac1542770fbe1b928da7d9a932f08d18ff6c5ace82fd8c61b3ee9ae2ff33231d1aa5831f86ba2e2e224922c5ab
|
data/.rubocop_todo.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.14.0 - 2018-05-09
|
4
|
+
* [#645](https://github.com/stripe/stripe-ruby/pull/645) Add support for issuer fraud records
|
5
|
+
|
3
6
|
## 3.13.1 - 2018-05-07
|
4
7
|
* [#647](https://github.com/stripe/stripe-ruby/pull/647) Merge query parameters coming from path with `params` argument
|
5
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.14.0
|
data/lib/stripe.rb
CHANGED
data/lib/stripe/util.rb
CHANGED
@@ -66,6 +66,7 @@ module Stripe
|
|
66
66
|
Invoice::OBJECT_NAME => Invoice,
|
67
67
|
InvoiceItem::OBJECT_NAME => InvoiceItem,
|
68
68
|
InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
|
69
|
+
IssuerFraudRecord::OBJECT_NAME => IssuerFraudRecord,
|
69
70
|
LoginLink::OBJECT_NAME => LoginLink,
|
70
71
|
Order::OBJECT_NAME => Order,
|
71
72
|
OrderReturn::OBJECT_NAME => OrderReturn,
|
data/lib/stripe/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require File.expand_path("../../test_helper", __FILE__)
|
2
|
+
|
3
|
+
module Stripe
|
4
|
+
class IssuerFraudRecordTest < Test::Unit::TestCase
|
5
|
+
should "be listable" do
|
6
|
+
issfrs = Stripe::IssuerFraudRecord.list
|
7
|
+
assert_requested :get, "#{Stripe.api_base}/v1/issuer_fraud_records"
|
8
|
+
assert issfrs.data.is_a?(Array)
|
9
|
+
assert issfrs.data[0].is_a?(Stripe::IssuerFraudRecord)
|
10
|
+
end
|
11
|
+
|
12
|
+
should "be retrievable" do
|
13
|
+
issfr = Stripe::IssuerFraudRecord.retrieve("issfr_123")
|
14
|
+
assert_requested :get, "#{Stripe.api_base}/v1/issuer_fraud_records/issfr_123"
|
15
|
+
assert issfr.is_a?(Stripe::IssuerFraudRecord)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -14,7 +14,7 @@ PROJECT_ROOT = File.expand_path("../../", __FILE__)
|
|
14
14
|
require File.expand_path("../test_data", __FILE__)
|
15
15
|
|
16
16
|
# If changing this number, please also change it in `.travis.yml`.
|
17
|
-
MOCK_MINIMUM_VERSION = "0.
|
17
|
+
MOCK_MINIMUM_VERSION = "0.16.0".freeze
|
18
18
|
MOCK_PORT = ENV["STRIPE_MOCK_PORT"] || 12_111
|
19
19
|
|
20
20
|
# Disable all real network connections except those that are outgoing to
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- lib/stripe/invoice.rb
|
81
81
|
- lib/stripe/invoice_item.rb
|
82
82
|
- lib/stripe/invoice_line_item.rb
|
83
|
+
- lib/stripe/issuer_fraud_record.rb
|
83
84
|
- lib/stripe/list_object.rb
|
84
85
|
- lib/stripe/login_link.rb
|
85
86
|
- lib/stripe/oauth.rb
|
@@ -137,6 +138,7 @@ files:
|
|
137
138
|
- test/stripe/invoice_item_test.rb
|
138
139
|
- test/stripe/invoice_line_item_test.rb
|
139
140
|
- test/stripe/invoice_test.rb
|
141
|
+
- test/stripe/issuer_fraud_record_test.rb
|
140
142
|
- test/stripe/list_object_test.rb
|
141
143
|
- test/stripe/login_link_test.rb
|
142
144
|
- test/stripe/oauth_test.rb
|
@@ -218,6 +220,7 @@ test_files:
|
|
218
220
|
- test/stripe/invoice_item_test.rb
|
219
221
|
- test/stripe/invoice_line_item_test.rb
|
220
222
|
- test/stripe/invoice_test.rb
|
223
|
+
- test/stripe/issuer_fraud_record_test.rb
|
221
224
|
- test/stripe/list_object_test.rb
|
222
225
|
- test/stripe/login_link_test.rb
|
223
226
|
- test/stripe/oauth_test.rb
|