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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 694536c3749e651a8bfcf6dee6fc625ec982d747
4
- data.tar.gz: 5c20bddece5f1ac3eae41a876904be08367f5918
3
+ metadata.gz: 952fb42842e3fb593946642336b01441c60f46bc
4
+ data.tar.gz: d8a51dbd6360334217b838da9165bfeef598ddd8
5
5
  SHA512:
6
- metadata.gz: 06a5e474c9ab8a042a3a3e98f6d4292db3a4bcd279fca448292adcff957b166847d78d8c22533a5d95ae0524fc504daa5395fab386badc01bc95968bbd0f46a9
7
- data.tar.gz: 3170f632390bb3fc6940d79b68647fb1d8a0fdeaa63858c2f2ae08ff8b9776d89270ec10c7777af48a87bd3b9e500857ab1694beedd5952891396f5289d4bcb2
6
+ metadata.gz: 42c1ec4c359ee3b3e78399dbfff994cedd4e2113498a3e0bac18633c980e1131cdf0edb54145c2fba31a6b927330a8ae089c058ae58cac9d4e315b0889372587
7
+ data.tar.gz: 262f8aa4e928e99141f2b358043ee42e717384ac1542770fbe1b928da7d9a932f08d18ff6c5ace82fd8c61b3ee9ae2ff33231d1aa5831f86ba2e2e224922c5ab
@@ -38,7 +38,7 @@ Metrics/MethodLength:
38
38
  # Offense count: 1
39
39
  # Configuration parameters: CountComments.
40
40
  Metrics/ModuleLength:
41
- Max: 306
41
+ Max: 307
42
42
 
43
43
  # Offense count: 6
44
44
  # Configuration parameters: CountKeywordArgs.
@@ -17,7 +17,7 @@ sudo: false
17
17
  env:
18
18
  global:
19
19
  # If changing this number, please also change it in `test/test_helper.rb`.
20
- - STRIPE_MOCK_VERSION=0.15.0
20
+ - STRIPE_MOCK_VERSION=0.16.0
21
21
 
22
22
  cache:
23
23
  directories:
@@ -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.13.1
1
+ 3.14.0
@@ -57,6 +57,7 @@ require "stripe/file_upload"
57
57
  require "stripe/invoice"
58
58
  require "stripe/invoice_item"
59
59
  require "stripe/invoice_line_item"
60
+ require "stripe/issuer_fraud_record"
60
61
  require "stripe/login_link"
61
62
  require "stripe/order"
62
63
  require "stripe/order_return"
@@ -0,0 +1,11 @@
1
+ module Stripe
2
+ class IssuerFraudRecord < APIResource
3
+ extend Stripe::APIOperations::List
4
+
5
+ OBJECT_NAME = "issuer_fraud_record".freeze
6
+
7
+ def self.resource_url
8
+ "/v1/issuer_fraud_records"
9
+ end
10
+ end
11
+ end
@@ -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,
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = "3.13.1".freeze
2
+ VERSION = "3.14.0".freeze
3
3
  end
@@ -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
@@ -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.15.0".freeze
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.13.1
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-07 00:00:00.000000000 Z
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