stripe 4.8.1 → 4.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/stripe.rb +2 -0
- data/lib/stripe/subscription_schedule.rb +32 -0
- data/lib/stripe/subscription_schedule_revision.rb +25 -0
- data/lib/stripe/util.rb +69 -67
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/checkout/session_test.rb +1 -1
- data/test/stripe/payment_intent_test.rb +2 -2
- data/test/stripe/subscription_schedule_revision_test.rb +37 -0
- data/test/stripe/subscription_schedule_revisions_operations_test.rb +35 -0
- data/test/stripe/subscription_schedule_test.rb +64 -0
- data/test/test_helper.rb +1 -1
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26baa8832b98118a80e495a63c9ac784ebaaf6c05a6f45470e4d2bddfd81679f
|
4
|
+
data.tar.gz: 06ca6de0b1b8363ebf49df745722f095bb943105dbc22d51c688c39e9e06e4b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c19e6198d482addce7c6a9fd6e469a6c362139ada4926901c3e0d1704283de1b746c94c13ecee944741b8a7ad60f9acd0830bda020a3516b2a485f8e260c2ee
|
7
|
+
data.tar.gz: 545bd13709cb412e3c6505756eb566566d1658667c19572339811c6fd70d3425ecd0999a4d07fb1dd24bdebd5f4f4739bdf15e5a3286e058fbca1f06da884f7e
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 4.9.0 - 2019-02-12
|
4
|
+
* [#739](https://github.com/stripe/stripe-ruby/pull/739) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision`
|
5
|
+
|
3
6
|
## 4.8.1 - 2019-02-11
|
4
7
|
* [#743](https://github.com/stripe/stripe-ruby/pull/743) Fix bug in file uploading introduced in #741
|
5
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.
|
1
|
+
4.9.0
|
data/lib/stripe.rb
CHANGED
@@ -92,6 +92,8 @@ require "stripe/source"
|
|
92
92
|
require "stripe/source_transaction"
|
93
93
|
require "stripe/subscription"
|
94
94
|
require "stripe/subscription_item"
|
95
|
+
require "stripe/subscription_schedule"
|
96
|
+
require "stripe/subscription_schedule_revision"
|
95
97
|
require "stripe/terminal/connection_token"
|
96
98
|
require "stripe/terminal/location"
|
97
99
|
require "stripe/terminal/reader"
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Stripe
|
4
|
+
class SubscriptionSchedule < APIResource
|
5
|
+
extend Stripe::APIOperations::List
|
6
|
+
extend Stripe::APIOperations::Create
|
7
|
+
include Stripe::APIOperations::Save
|
8
|
+
extend Stripe::APIOperations::NestedResource
|
9
|
+
|
10
|
+
OBJECT_NAME = "subscription_schedule".freeze
|
11
|
+
|
12
|
+
nested_resource_class_methods :revision,
|
13
|
+
operations: %i[retrieve list]
|
14
|
+
|
15
|
+
def cancel(params = {}, opts = {})
|
16
|
+
url = resource_url + "/cancel"
|
17
|
+
resp, opts = request(:post, url, params, opts)
|
18
|
+
initialize_from(resp.data, opts)
|
19
|
+
end
|
20
|
+
|
21
|
+
def release(params = {}, opts = {})
|
22
|
+
url = resource_url + "/release"
|
23
|
+
resp, opts = request(:post, url, params, opts)
|
24
|
+
initialize_from(resp.data, opts)
|
25
|
+
end
|
26
|
+
|
27
|
+
def revisions(params = {}, opts = {})
|
28
|
+
resp, opts = request(:get, resource_url + "/revisions", params, Util.normalize_opts(opts))
|
29
|
+
Util.convert_to_stripe_object(resp.data, opts)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Stripe
|
4
|
+
class SubscriptionScheduleRevision < APIResource
|
5
|
+
extend Stripe::APIOperations::List
|
6
|
+
|
7
|
+
OBJECT_NAME = "subscription_schedule_revision".freeze
|
8
|
+
|
9
|
+
def resource_url
|
10
|
+
if !respond_to?(:schedule) || schedule.nil?
|
11
|
+
raise NotImplementedError,
|
12
|
+
"Subscription Schedule Revisions cannot be accessed without a Subscription Schedule ID."
|
13
|
+
end
|
14
|
+
"#{SubscriptionSchedule.resource_url}/#{CGI.escape(schedule)}/revisions/#{CGI.escape(id)}"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.retrieve(_id, _opts = {})
|
18
|
+
raise NotImplementedError, "Subscription Schedule Revisions cannot be retrieved without a Subscription Schedule ID. Retrieve it using schedule.revisions.retrieve('revision_id')"
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.list(_id, _opts = {})
|
22
|
+
raise NotImplementedError, "Subscription Schedule Revisions cannot be listed without a Subscription Schedule ID. List those using schedule.revisions"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/stripe/util.rb
CHANGED
@@ -45,73 +45,75 @@ module Stripe
|
|
45
45
|
ListObject::OBJECT_NAME => ListObject,
|
46
46
|
|
47
47
|
# business objects
|
48
|
-
Account::OBJECT_NAME
|
49
|
-
AccountLink::OBJECT_NAME
|
50
|
-
AlipayAccount::OBJECT_NAME
|
51
|
-
ApplePayDomain::OBJECT_NAME
|
52
|
-
ApplicationFee::OBJECT_NAME
|
53
|
-
ApplicationFeeRefund::OBJECT_NAME
|
54
|
-
Balance::OBJECT_NAME
|
55
|
-
BalanceTransaction::OBJECT_NAME
|
56
|
-
BankAccount::OBJECT_NAME
|
57
|
-
BitcoinReceiver::OBJECT_NAME
|
58
|
-
BitcoinTransaction::OBJECT_NAME
|
59
|
-
Card::OBJECT_NAME
|
60
|
-
Charge::OBJECT_NAME
|
61
|
-
Checkout::Session::OBJECT_NAME
|
62
|
-
CountrySpec::OBJECT_NAME
|
63
|
-
Coupon::OBJECT_NAME
|
64
|
-
Customer::OBJECT_NAME
|
65
|
-
Dispute::OBJECT_NAME
|
66
|
-
EphemeralKey::OBJECT_NAME
|
67
|
-
Event::OBJECT_NAME
|
68
|
-
ExchangeRate::OBJECT_NAME
|
69
|
-
File::OBJECT_NAME
|
70
|
-
File::OBJECT_NAME_ALT
|
71
|
-
FileLink::OBJECT_NAME
|
72
|
-
Invoice::OBJECT_NAME
|
73
|
-
InvoiceItem::OBJECT_NAME
|
74
|
-
InvoiceLineItem::OBJECT_NAME
|
75
|
-
IssuerFraudRecord::OBJECT_NAME
|
76
|
-
Issuing::Authorization::OBJECT_NAME
|
77
|
-
Issuing::Card::OBJECT_NAME
|
78
|
-
Issuing::CardDetails::OBJECT_NAME
|
79
|
-
Issuing::Cardholder::OBJECT_NAME
|
80
|
-
Issuing::Dispute::OBJECT_NAME
|
81
|
-
Issuing::Transaction::OBJECT_NAME
|
82
|
-
LoginLink::OBJECT_NAME
|
83
|
-
Order::OBJECT_NAME
|
84
|
-
OrderReturn::OBJECT_NAME
|
85
|
-
PaymentIntent::OBJECT_NAME
|
86
|
-
Payout::OBJECT_NAME
|
87
|
-
Person::OBJECT_NAME
|
88
|
-
Plan::OBJECT_NAME
|
89
|
-
Product::OBJECT_NAME
|
90
|
-
Radar::ValueList::OBJECT_NAME
|
91
|
-
Radar::ValueListItem::OBJECT_NAME
|
92
|
-
Recipient::OBJECT_NAME
|
93
|
-
RecipientTransfer::OBJECT_NAME
|
94
|
-
Refund::OBJECT_NAME
|
95
|
-
Reporting::ReportRun::OBJECT_NAME
|
96
|
-
Reporting::ReportType::OBJECT_NAME
|
97
|
-
Reversal::OBJECT_NAME
|
98
|
-
Review::OBJECT_NAME
|
99
|
-
SKU::OBJECT_NAME
|
100
|
-
Sigma::ScheduledQueryRun::OBJECT_NAME
|
101
|
-
Source::OBJECT_NAME
|
102
|
-
SourceTransaction::OBJECT_NAME
|
103
|
-
Subscription::OBJECT_NAME
|
104
|
-
SubscriptionItem::OBJECT_NAME
|
105
|
-
|
106
|
-
|
107
|
-
Terminal::
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
48
|
+
Account::OBJECT_NAME => Account,
|
49
|
+
AccountLink::OBJECT_NAME => AccountLink,
|
50
|
+
AlipayAccount::OBJECT_NAME => AlipayAccount,
|
51
|
+
ApplePayDomain::OBJECT_NAME => ApplePayDomain,
|
52
|
+
ApplicationFee::OBJECT_NAME => ApplicationFee,
|
53
|
+
ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
|
54
|
+
Balance::OBJECT_NAME => Balance,
|
55
|
+
BalanceTransaction::OBJECT_NAME => BalanceTransaction,
|
56
|
+
BankAccount::OBJECT_NAME => BankAccount,
|
57
|
+
BitcoinReceiver::OBJECT_NAME => BitcoinReceiver,
|
58
|
+
BitcoinTransaction::OBJECT_NAME => BitcoinTransaction,
|
59
|
+
Card::OBJECT_NAME => Card,
|
60
|
+
Charge::OBJECT_NAME => Charge,
|
61
|
+
Checkout::Session::OBJECT_NAME => Checkout::Session,
|
62
|
+
CountrySpec::OBJECT_NAME => CountrySpec,
|
63
|
+
Coupon::OBJECT_NAME => Coupon,
|
64
|
+
Customer::OBJECT_NAME => Customer,
|
65
|
+
Dispute::OBJECT_NAME => Dispute,
|
66
|
+
EphemeralKey::OBJECT_NAME => EphemeralKey,
|
67
|
+
Event::OBJECT_NAME => Event,
|
68
|
+
ExchangeRate::OBJECT_NAME => ExchangeRate,
|
69
|
+
File::OBJECT_NAME => File,
|
70
|
+
File::OBJECT_NAME_ALT => File,
|
71
|
+
FileLink::OBJECT_NAME => FileLink,
|
72
|
+
Invoice::OBJECT_NAME => Invoice,
|
73
|
+
InvoiceItem::OBJECT_NAME => InvoiceItem,
|
74
|
+
InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
|
75
|
+
IssuerFraudRecord::OBJECT_NAME => IssuerFraudRecord,
|
76
|
+
Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
|
77
|
+
Issuing::Card::OBJECT_NAME => Issuing::Card,
|
78
|
+
Issuing::CardDetails::OBJECT_NAME => Issuing::CardDetails,
|
79
|
+
Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
|
80
|
+
Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
|
81
|
+
Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
|
82
|
+
LoginLink::OBJECT_NAME => LoginLink,
|
83
|
+
Order::OBJECT_NAME => Order,
|
84
|
+
OrderReturn::OBJECT_NAME => OrderReturn,
|
85
|
+
PaymentIntent::OBJECT_NAME => PaymentIntent,
|
86
|
+
Payout::OBJECT_NAME => Payout,
|
87
|
+
Person::OBJECT_NAME => Person,
|
88
|
+
Plan::OBJECT_NAME => Plan,
|
89
|
+
Product::OBJECT_NAME => Product,
|
90
|
+
Radar::ValueList::OBJECT_NAME => Radar::ValueList,
|
91
|
+
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
|
92
|
+
Recipient::OBJECT_NAME => Recipient,
|
93
|
+
RecipientTransfer::OBJECT_NAME => RecipientTransfer,
|
94
|
+
Refund::OBJECT_NAME => Refund,
|
95
|
+
Reporting::ReportRun::OBJECT_NAME => Reporting::ReportRun,
|
96
|
+
Reporting::ReportType::OBJECT_NAME => Reporting::ReportType,
|
97
|
+
Reversal::OBJECT_NAME => Reversal,
|
98
|
+
Review::OBJECT_NAME => Review,
|
99
|
+
SKU::OBJECT_NAME => SKU,
|
100
|
+
Sigma::ScheduledQueryRun::OBJECT_NAME => Sigma::ScheduledQueryRun,
|
101
|
+
Source::OBJECT_NAME => Source,
|
102
|
+
SourceTransaction::OBJECT_NAME => SourceTransaction,
|
103
|
+
Subscription::OBJECT_NAME => Subscription,
|
104
|
+
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
105
|
+
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
106
|
+
SubscriptionScheduleRevision::OBJECT_NAME => SubscriptionScheduleRevision,
|
107
|
+
Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken,
|
108
|
+
Terminal::Location::OBJECT_NAME => Terminal::Location,
|
109
|
+
Terminal::Reader::OBJECT_NAME => Terminal::Reader,
|
110
|
+
ThreeDSecure::OBJECT_NAME => ThreeDSecure,
|
111
|
+
Token::OBJECT_NAME => Token,
|
112
|
+
Topup::OBJECT_NAME => Topup,
|
113
|
+
Transfer::OBJECT_NAME => Transfer,
|
114
|
+
UsageRecord::OBJECT_NAME => UsageRecord,
|
115
|
+
UsageRecordSummary::OBJECT_NAME => UsageRecordSummary,
|
116
|
+
WebhookEndpoint::OBJECT_NAME => WebhookEndpoint,
|
115
117
|
}
|
116
118
|
end
|
117
119
|
|
data/lib/stripe/version.rb
CHANGED
@@ -7,7 +7,6 @@ module Stripe
|
|
7
7
|
class SessionTest < Test::Unit::TestCase
|
8
8
|
should "be creatable" do
|
9
9
|
session = Stripe::Checkout::Session.create(
|
10
|
-
allowed_source_types: ["card"],
|
11
10
|
cancel_url: "https://stripe.com/cancel",
|
12
11
|
client_reference_id: "1234",
|
13
12
|
line_items: [
|
@@ -25,6 +24,7 @@ module Stripe
|
|
25
24
|
payment_intent_data: [
|
26
25
|
receipt_email: "test@stripe.com",
|
27
26
|
],
|
27
|
+
payment_method_types: ["card"],
|
28
28
|
success_url: "https://stripe.com/success"
|
29
29
|
)
|
30
30
|
assert_requested :post, "#{Stripe.api_base}/v1/checkout/sessions"
|
@@ -21,9 +21,9 @@ module Stripe
|
|
21
21
|
|
22
22
|
should "be creatable" do
|
23
23
|
payment_intent = Stripe::PaymentIntent.create(
|
24
|
-
allowed_source_types: ["card"],
|
25
24
|
amount: 1234,
|
26
|
-
currency: "usd"
|
25
|
+
currency: "usd",
|
26
|
+
payment_method_types: ["card"]
|
27
27
|
)
|
28
28
|
assert_requested :post, "#{Stripe.api_base}/v1/payment_intents"
|
29
29
|
assert payment_intent.is_a?(Stripe::PaymentIntent)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require ::File.expand_path("../../test_helper", __FILE__)
|
4
|
+
|
5
|
+
module Stripe
|
6
|
+
class SubscriptionScheduleRevisionTest < Test::Unit::TestCase
|
7
|
+
context "#resource_url" do
|
8
|
+
should "return a resource URL" do
|
9
|
+
revision = Stripe::SubscriptionScheduleRevision.construct_from(
|
10
|
+
id: "sub_sched_rev_123",
|
11
|
+
schedule: "sub_sched_123"
|
12
|
+
)
|
13
|
+
assert_equal "/v1/subscription_schedules/sub_sched_123/revisions/sub_sched_rev_123",
|
14
|
+
revision.resource_url
|
15
|
+
end
|
16
|
+
|
17
|
+
should "raise without a subscription schedule" do
|
18
|
+
revision = Stripe::SubscriptionScheduleRevision.construct_from(id: "sub_sched_rev_123")
|
19
|
+
assert_raises NotImplementedError do
|
20
|
+
revision.resource_url
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
should "raise on #retrieve" do
|
26
|
+
assert_raises NotImplementedError do
|
27
|
+
Stripe::SubscriptionScheduleRevision.retrieve("sub_sched_rev_123")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
should "raise on #list" do
|
32
|
+
assert_raises NotImplementedError do
|
33
|
+
Stripe::SubscriptionScheduleRevision.list("sub_sched_rev_123", {})
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require ::File.expand_path("../../test_helper", __FILE__)
|
4
|
+
|
5
|
+
module Stripe
|
6
|
+
class SubscriptionScheduleRevisionsOperationsTest < Test::Unit::TestCase
|
7
|
+
setup do
|
8
|
+
@schedule_id = "sub_sched_123"
|
9
|
+
@revision_id = "sub_sched_rev_123"
|
10
|
+
end
|
11
|
+
|
12
|
+
context "#retrieve_revision" do
|
13
|
+
should "retrieve a subscription schedule revision" do
|
14
|
+
revision = Stripe::SubscriptionSchedule.retrieve_revision(
|
15
|
+
@schedule_id,
|
16
|
+
@revision_id
|
17
|
+
)
|
18
|
+
assert_requested :get, "#{Stripe.api_base}/v1/subscription_schedules/#{@schedule_id}/revisions/#{@revision_id}"
|
19
|
+
assert revision.is_a?(Stripe::SubscriptionScheduleRevision)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
context "#list_revisions" do
|
24
|
+
should "list a subscription schedule's revisions" do
|
25
|
+
revisions = Stripe::SubscriptionSchedule.list_revisions(
|
26
|
+
@schedule_id
|
27
|
+
)
|
28
|
+
assert_requested :get, "#{Stripe.api_base}/v1/subscription_schedules/#{@schedule_id}/revisions"
|
29
|
+
assert revisions.is_a?(Stripe::ListObject)
|
30
|
+
assert revisions.data.is_a?(Array)
|
31
|
+
assert revisions.data[0].is_a?(Stripe::SubscriptionScheduleRevision)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require ::File.expand_path("../../test_helper", __FILE__)
|
4
|
+
|
5
|
+
module Stripe
|
6
|
+
class SubscriptionScheduleTest < Test::Unit::TestCase
|
7
|
+
should "be listable" do
|
8
|
+
subscriptions = Stripe::SubscriptionSchedule.list
|
9
|
+
assert_requested :get, "#{Stripe.api_base}/v1/subscription_schedules"
|
10
|
+
assert subscriptions.data.is_a?(Array)
|
11
|
+
assert subscriptions.data[0].is_a?(Stripe::SubscriptionSchedule)
|
12
|
+
end
|
13
|
+
|
14
|
+
should "be retrievable" do
|
15
|
+
schedule = Stripe::SubscriptionSchedule.retrieve("sub_sched_123")
|
16
|
+
assert_requested :get,
|
17
|
+
"#{Stripe.api_base}/v1/subscription_schedules/sub_sched_123"
|
18
|
+
assert schedule.is_a?(Stripe::SubscriptionSchedule)
|
19
|
+
end
|
20
|
+
|
21
|
+
should "be creatable" do
|
22
|
+
schedule = Stripe::SubscriptionSchedule.create(
|
23
|
+
customer: "cus_123"
|
24
|
+
)
|
25
|
+
assert_requested :post, "#{Stripe.api_base}/v1/subscription_schedules"
|
26
|
+
assert schedule.is_a?(Stripe::SubscriptionSchedule)
|
27
|
+
end
|
28
|
+
|
29
|
+
should "be saveable" do
|
30
|
+
schedule = Stripe::SubscriptionSchedule.retrieve("sub_sched_123")
|
31
|
+
schedule.metadata["key"] = "value"
|
32
|
+
schedule.save
|
33
|
+
assert_requested :post,
|
34
|
+
"#{Stripe.api_base}/v1/subscription_schedules/#{schedule.id}"
|
35
|
+
end
|
36
|
+
|
37
|
+
should "be updateable" do
|
38
|
+
schedule = Stripe::SubscriptionSchedule.update("sub_sched_123", metadata: { foo: "bar" })
|
39
|
+
assert_requested :post,
|
40
|
+
"#{Stripe.api_base}/v1/subscription_schedules/sub_sched_123"
|
41
|
+
assert schedule.is_a?(Stripe::SubscriptionSchedule)
|
42
|
+
end
|
43
|
+
|
44
|
+
context "#cancel" do
|
45
|
+
should "cancel a subscription schedule" do
|
46
|
+
schedule = Stripe::SubscriptionSchedule.retrieve("sub_sched_123")
|
47
|
+
schedule = schedule.cancel
|
48
|
+
assert_requested :post,
|
49
|
+
"#{Stripe.api_base}/v1/subscription_schedules/#{schedule.id}/cancel"
|
50
|
+
assert schedule.is_a?(Stripe::SubscriptionSchedule)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
context "#release" do
|
55
|
+
should "release a subscription schedule" do
|
56
|
+
schedule = Stripe::SubscriptionSchedule.retrieve("sub_sched_123")
|
57
|
+
schedule = schedule.release
|
58
|
+
assert_requested :post,
|
59
|
+
"#{Stripe.api_base}/v1/subscription_schedules/#{schedule.id}/release"
|
60
|
+
assert schedule.is_a?(Stripe::SubscriptionSchedule)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -17,7 +17,7 @@ require ::File.expand_path("../test_data", __FILE__)
|
|
17
17
|
require ::File.expand_path("../stripe_mock", __FILE__)
|
18
18
|
|
19
19
|
# If changing this number, please also change it in `.travis.yml`.
|
20
|
-
MOCK_MINIMUM_VERSION = "0.
|
20
|
+
MOCK_MINIMUM_VERSION = "0.44.0".freeze
|
21
21
|
MOCK_PORT = Stripe::StripeMock.start
|
22
22
|
|
23
23
|
# 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: 4.
|
4
|
+
version: 4.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -133,6 +133,8 @@ files:
|
|
133
133
|
- lib/stripe/stripe_response.rb
|
134
134
|
- lib/stripe/subscription.rb
|
135
135
|
- lib/stripe/subscription_item.rb
|
136
|
+
- lib/stripe/subscription_schedule.rb
|
137
|
+
- lib/stripe/subscription_schedule_revision.rb
|
136
138
|
- lib/stripe/terminal/connection_token.rb
|
137
139
|
- lib/stripe/terminal/location.rb
|
138
140
|
- lib/stripe/terminal/reader.rb
|
@@ -212,6 +214,9 @@ files:
|
|
212
214
|
- test/stripe/stripe_object_test.rb
|
213
215
|
- test/stripe/stripe_response_test.rb
|
214
216
|
- test/stripe/subscription_item_test.rb
|
217
|
+
- test/stripe/subscription_schedule_revision_test.rb
|
218
|
+
- test/stripe/subscription_schedule_revisions_operations_test.rb
|
219
|
+
- test/stripe/subscription_schedule_test.rb
|
215
220
|
- test/stripe/subscription_test.rb
|
216
221
|
- test/stripe/terminal/connection_token_test.rb
|
217
222
|
- test/stripe/terminal/location_test.rb
|
@@ -319,6 +324,9 @@ test_files:
|
|
319
324
|
- test/stripe/stripe_object_test.rb
|
320
325
|
- test/stripe/stripe_response_test.rb
|
321
326
|
- test/stripe/subscription_item_test.rb
|
327
|
+
- test/stripe/subscription_schedule_revision_test.rb
|
328
|
+
- test/stripe/subscription_schedule_revisions_operations_test.rb
|
329
|
+
- test/stripe/subscription_schedule_test.rb
|
322
330
|
- test/stripe/subscription_test.rb
|
323
331
|
- test/stripe/terminal/connection_token_test.rb
|
324
332
|
- test/stripe/terminal/location_test.rb
|