stripe-ruby-mock 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/rspec_tests.yml +38 -0
- data/.rspec +2 -1
- data/CHANGELOG.md +69 -0
- data/Gemfile +1 -0
- data/README.md +13 -5
- data/lib/stripe_mock/api/client.rb +1 -1
- data/lib/stripe_mock/api/errors.rb +3 -0
- data/lib/stripe_mock/api/instance.rb +1 -1
- data/lib/stripe_mock/api/webhooks.rb +66 -25
- data/lib/stripe_mock/client.rb +2 -1
- data/lib/stripe_mock/data/list.rb +42 -9
- data/lib/stripe_mock/data.rb +242 -31
- data/lib/stripe_mock/instance.rb +14 -3
- data/lib/stripe_mock/request_handlers/account_links.rb +15 -0
- data/lib/stripe_mock/request_handlers/accounts.rb +17 -6
- data/lib/stripe_mock/request_handlers/charges.rb +11 -4
- data/lib/stripe_mock/request_handlers/checkout_session.rb +179 -0
- data/lib/stripe_mock/request_handlers/customers.rb +35 -18
- data/lib/stripe_mock/request_handlers/ephemeral_key.rb +1 -1
- data/lib/stripe_mock/request_handlers/events.rb +30 -3
- data/lib/stripe_mock/request_handlers/express_login_links.rb +15 -0
- data/lib/stripe_mock/request_handlers/helpers/coupon_helpers.rb +6 -0
- data/lib/stripe_mock/request_handlers/helpers/subscription_helpers.rb +36 -12
- data/lib/stripe_mock/request_handlers/invoices.rb +10 -4
- data/lib/stripe_mock/request_handlers/payment_intents.rb +19 -1
- data/lib/stripe_mock/request_handlers/payment_methods.rb +10 -24
- data/lib/stripe_mock/request_handlers/plans.rb +1 -1
- data/lib/stripe_mock/request_handlers/prices.rb +62 -0
- data/lib/stripe_mock/request_handlers/promotion_codes.rb +43 -0
- data/lib/stripe_mock/request_handlers/refunds.rb +13 -2
- data/lib/stripe_mock/request_handlers/setup_intents.rb +16 -9
- data/lib/stripe_mock/request_handlers/sources.rb +12 -6
- data/lib/stripe_mock/request_handlers/subscriptions.rb +120 -21
- data/lib/stripe_mock/request_handlers/tokens.rb +6 -4
- data/lib/stripe_mock/request_handlers/transfers.rb +12 -1
- data/lib/stripe_mock/request_handlers/validators/param_validators.rb +33 -4
- data/lib/stripe_mock/server.rb +2 -2
- data/lib/stripe_mock/test_strategies/base.rb +62 -10
- data/lib/stripe_mock/version.rb +1 -1
- data/lib/stripe_mock/webhook_fixtures/account.updated.json +1 -1
- data/lib/stripe_mock/webhook_fixtures/balance.available.json +27 -15
- data/lib/stripe_mock/webhook_fixtures/charge.captured.json +143 -0
- data/lib/stripe_mock/webhook_fixtures/charge.dispute.created.json +63 -16
- data/lib/stripe_mock/webhook_fixtures/charge.failed.json +49 -120
- data/lib/stripe_mock/webhook_fixtures/charge.refund.updated.json +35 -0
- data/lib/stripe_mock/webhook_fixtures/charge.refunded.json +145 -50
- data/lib/stripe_mock/webhook_fixtures/charge.succeeded.json +114 -43
- data/lib/stripe_mock/webhook_fixtures/checkout.session.completed.json +79 -0
- data/lib/stripe_mock/webhook_fixtures/checkout.session.completed.payment_mode.json +53 -0
- data/lib/stripe_mock/webhook_fixtures/checkout.session.completed.setup_mode.json +45 -0
- data/lib/stripe_mock/webhook_fixtures/customer.created.json +37 -46
- data/lib/stripe_mock/webhook_fixtures/customer.deleted.json +36 -32
- data/lib/stripe_mock/webhook_fixtures/customer.source.created.json +31 -22
- data/lib/stripe_mock/webhook_fixtures/customer.source.updated.json +36 -25
- data/lib/stripe_mock/webhook_fixtures/customer.subscription.created.json +135 -47
- data/lib/stripe_mock/webhook_fixtures/customer.subscription.deleted.json +134 -45
- data/lib/stripe_mock/webhook_fixtures/customer.subscription.updated.json +135 -56
- data/lib/stripe_mock/webhook_fixtures/customer.updated.json +38 -47
- data/lib/stripe_mock/webhook_fixtures/invoice.created.json +176 -49
- data/lib/stripe_mock/webhook_fixtures/invoice.finalized.json +171 -0
- data/lib/stripe_mock/webhook_fixtures/invoice.paid.json +171 -0
- data/lib/stripe_mock/webhook_fixtures/invoice.payment_action_required.json +171 -0
- data/lib/stripe_mock/webhook_fixtures/invoice.payment_failed.json +149 -83
- data/lib/stripe_mock/webhook_fixtures/invoice.payment_succeeded.json +149 -90
- data/lib/stripe_mock/webhook_fixtures/invoice.upcoming.json +70 -0
- data/lib/stripe_mock/webhook_fixtures/invoice.updated.json +178 -50
- data/lib/stripe_mock/webhook_fixtures/invoiceitem.created.json +87 -13
- data/lib/stripe_mock/webhook_fixtures/invoiceitem.updated.json +88 -14
- data/lib/stripe_mock/webhook_fixtures/mandate.updated.json +34 -0
- data/lib/stripe_mock/webhook_fixtures/payment_intent.amount_capturable_updated.json +170 -0
- data/lib/stripe_mock/webhook_fixtures/payment_intent.canceled.json +73 -0
- data/lib/stripe_mock/webhook_fixtures/payment_intent.created.json +86 -0
- data/lib/stripe_mock/webhook_fixtures/payment_intent.payment_failed.json +225 -0
- data/lib/stripe_mock/webhook_fixtures/payment_intent.processing.json +162 -0
- data/lib/stripe_mock/webhook_fixtures/payment_intent.requires_action.json +191 -0
- data/lib/stripe_mock/webhook_fixtures/payment_intent.succeeded.json +196 -0
- data/lib/stripe_mock/webhook_fixtures/payment_link.created.json +47 -0
- data/lib/stripe_mock/webhook_fixtures/payment_link.updated.json +50 -0
- data/lib/stripe_mock/webhook_fixtures/payment_method.attached.json +63 -0
- data/lib/stripe_mock/webhook_fixtures/payment_method.detached.json +62 -0
- data/lib/stripe_mock/webhook_fixtures/payout.created.json +40 -0
- data/lib/stripe_mock/webhook_fixtures/payout.paid.json +40 -0
- data/lib/stripe_mock/webhook_fixtures/payout.updated.json +46 -0
- data/lib/stripe_mock/webhook_fixtures/plan.created.json +30 -13
- data/lib/stripe_mock/webhook_fixtures/plan.deleted.json +30 -13
- data/lib/stripe_mock/webhook_fixtures/plan.updated.json +34 -14
- data/lib/stripe_mock/webhook_fixtures/price.created.json +42 -0
- data/lib/stripe_mock/webhook_fixtures/price.deleted.json +42 -0
- data/lib/stripe_mock/webhook_fixtures/price.updated.json +48 -0
- data/lib/stripe_mock/webhook_fixtures/product.created.json +19 -13
- data/lib/stripe_mock/webhook_fixtures/product.deleted.json +20 -14
- data/lib/stripe_mock/webhook_fixtures/product.updated.json +24 -15
- data/lib/stripe_mock/webhook_fixtures/quote.accepted.json +92 -0
- data/lib/stripe_mock/webhook_fixtures/quote.canceled.json +92 -0
- data/lib/stripe_mock/webhook_fixtures/quote.created.json +92 -0
- data/lib/stripe_mock/webhook_fixtures/quote.finalized.json +92 -0
- data/lib/stripe_mock/webhook_fixtures/setup_intent.canceled.json +46 -0
- data/lib/stripe_mock/webhook_fixtures/setup_intent.created.json +51 -0
- data/lib/stripe_mock/webhook_fixtures/setup_intent.setup_failed.json +100 -0
- data/lib/stripe_mock/webhook_fixtures/setup_intent.succeeded.json +46 -0
- data/lib/stripe_mock/webhook_fixtures/subscription_schedule.canceled.json +119 -0
- data/lib/stripe_mock/webhook_fixtures/subscription_schedule.created.json +114 -0
- data/lib/stripe_mock/webhook_fixtures/subscription_schedule.released.json +111 -0
- data/lib/stripe_mock/webhook_fixtures/subscription_schedule.updated.json +125 -0
- data/lib/stripe_mock/webhook_fixtures/tax_rate.created.json +32 -0
- data/lib/stripe_mock/webhook_fixtures/tax_rate.updated.json +37 -0
- data/lib/stripe_mock.rb +7 -0
- data/spec/instance_spec.rb +7 -7
- data/spec/integration_examples/completing_checkout_sessions_example.rb +37 -0
- data/spec/list_spec.rb +38 -0
- data/spec/readme_spec.rb +1 -1
- data/spec/server_spec.rb +4 -2
- data/spec/shared_stripe_examples/account_examples.rb +9 -1
- data/spec/shared_stripe_examples/account_link_examples.rb +16 -0
- data/spec/shared_stripe_examples/balance_examples.rb +6 -0
- data/spec/shared_stripe_examples/card_token_examples.rb +17 -21
- data/spec/shared_stripe_examples/checkout_session_examples.rb +99 -0
- data/spec/shared_stripe_examples/customer_examples.rb +49 -23
- data/spec/shared_stripe_examples/express_login_link_examples.rb +12 -0
- data/spec/shared_stripe_examples/invoice_examples.rb +29 -8
- data/spec/shared_stripe_examples/payment_intent_examples.rb +84 -0
- data/spec/shared_stripe_examples/payment_method_examples.rb +336 -67
- data/spec/shared_stripe_examples/price_examples.rb +223 -0
- data/spec/shared_stripe_examples/product_examples.rb +1 -9
- data/spec/shared_stripe_examples/promotion_code_examples.rb +68 -0
- data/spec/shared_stripe_examples/refund_examples.rb +13 -0
- data/spec/shared_stripe_examples/setup_intent_examples.rb +17 -0
- data/spec/shared_stripe_examples/subscription_examples.rb +361 -9
- data/spec/shared_stripe_examples/transfer_examples.rb +10 -1
- data/spec/shared_stripe_examples/webhook_event_examples.rb +51 -5
- data/spec/spec_helper.rb +4 -0
- data/spec/stripe_mock_spec.rb +2 -2
- data/spec/support/stripe_examples.rb +8 -1
- data/stripe-ruby-mock.gemspec +7 -2
- metadata +73 -12
- data/.travis.yml +0 -28
@@ -5,6 +5,7 @@ end
|
|
5
5
|
|
6
6
|
def it_behaves_like_stripe(&block)
|
7
7
|
it_behaves_like 'Account API', &block
|
8
|
+
it_behaves_like 'Account Link API', &block
|
8
9
|
it_behaves_like 'Balance API', &block
|
9
10
|
it_behaves_like 'Balance Transaction API', &block
|
10
11
|
it_behaves_like 'Bank Account Token Mocking', &block
|
@@ -12,6 +13,7 @@ def it_behaves_like_stripe(&block)
|
|
12
13
|
it_behaves_like 'Card API', &block
|
13
14
|
it_behaves_like 'Charge API', &block
|
14
15
|
it_behaves_like 'Bank API', &block
|
16
|
+
it_behaves_like 'Express Login Link API', &block
|
15
17
|
it_behaves_like 'External Account API', &block
|
16
18
|
it_behaves_like 'Coupon API', &block
|
17
19
|
it_behaves_like 'Customer API', &block
|
@@ -20,7 +22,9 @@ def it_behaves_like_stripe(&block)
|
|
20
22
|
it_behaves_like 'Invoice API', &block
|
21
23
|
it_behaves_like 'Invoice Item API', &block
|
22
24
|
it_behaves_like 'Plan API', &block
|
25
|
+
it_behaves_like 'Price API', &block
|
23
26
|
it_behaves_like 'Product API', &block
|
27
|
+
it_behaves_like 'PromotionCode API', &block
|
24
28
|
it_behaves_like 'Recipient API', &block
|
25
29
|
it_behaves_like 'Refund API', &block
|
26
30
|
it_behaves_like 'Transfer API', &block
|
@@ -29,15 +33,18 @@ def it_behaves_like_stripe(&block)
|
|
29
33
|
it_behaves_like 'PaymentMethod API', &block
|
30
34
|
it_behaves_like 'SetupIntent API', &block
|
31
35
|
it_behaves_like 'Stripe Error Mocking', &block
|
32
|
-
it_behaves_like 'Customer Subscriptions', &block
|
36
|
+
it_behaves_like 'Customer Subscriptions with plans', &block
|
37
|
+
it_behaves_like 'Customer Subscriptions with prices', &block
|
33
38
|
it_behaves_like 'Subscription Items API', &block
|
34
39
|
it_behaves_like 'Webhook Events API', &block
|
35
40
|
it_behaves_like 'Country Spec API', &block
|
36
41
|
it_behaves_like 'EphemeralKey API', &block
|
37
42
|
it_behaves_like 'TaxRate API', &block
|
43
|
+
it_behaves_like 'Checkout Session API', &block
|
38
44
|
|
39
45
|
# Integration tests
|
40
46
|
it_behaves_like 'Multiple Customer Cards'
|
41
47
|
it_behaves_like 'Charging with Tokens'
|
42
48
|
it_behaves_like 'Card Error Prep'
|
49
|
+
it_behaves_like 'Completing Checkout Sessions'
|
43
50
|
end
|
data/stripe-ruby-mock.gemspec
CHANGED
@@ -10,7 +10,12 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.license = "MIT"
|
11
11
|
gem.authors = ["Gilbert"]
|
12
12
|
gem.email = "gilbertbgarza@gmail.com"
|
13
|
-
gem.homepage = "https://github.com/
|
13
|
+
gem.homepage = "https://github.com/stripe-ruby-mock/stripe-ruby-mock"
|
14
|
+
gem.metadata = {
|
15
|
+
"bug_tracker_uri" => "https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues",
|
16
|
+
"changelog_uri" => "https://github.com/stripe-ruby-mock/stripe-ruby-mock/blob/master/CHANGELOG.md",
|
17
|
+
"source_code_uri" => "https://github.com/stripe-ruby-mock/stripe-ruby-mock"
|
18
|
+
}
|
14
19
|
|
15
20
|
gem.files = `git ls-files`.split($/)
|
16
21
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -23,5 +28,5 @@ Gem::Specification.new do |gem|
|
|
23
28
|
|
24
29
|
gem.add_development_dependency 'rspec', '~> 3.7.0'
|
25
30
|
gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
|
26
|
-
gem.add_development_dependency 'thin', '~> 1.
|
31
|
+
gem.add_development_dependency 'thin', '~> 1.8.1'
|
27
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe-ruby-mock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gilbert
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stripe
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 1.
|
95
|
+
version: 1.8.1
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 1.
|
102
|
+
version: 1.8.1
|
103
103
|
description: A drop-in library to test stripe without hitting their servers
|
104
104
|
email: gilbertbgarza@gmail.com
|
105
105
|
executables:
|
@@ -108,9 +108,10 @@ extensions: []
|
|
108
108
|
extra_rdoc_files: []
|
109
109
|
files:
|
110
110
|
- ".env"
|
111
|
+
- ".github/workflows/rspec_tests.yml"
|
111
112
|
- ".gitignore"
|
112
113
|
- ".rspec"
|
113
|
-
-
|
114
|
+
- CHANGELOG.md
|
114
115
|
- Gemfile
|
115
116
|
- LICENSE.txt
|
116
117
|
- README.md
|
@@ -141,17 +142,20 @@ files:
|
|
141
142
|
- lib/stripe_mock/errors/unstarted_state_error.rb
|
142
143
|
- lib/stripe_mock/errors/unsupported_request_error.rb
|
143
144
|
- lib/stripe_mock/instance.rb
|
145
|
+
- lib/stripe_mock/request_handlers/account_links.rb
|
144
146
|
- lib/stripe_mock/request_handlers/accounts.rb
|
145
147
|
- lib/stripe_mock/request_handlers/balance.rb
|
146
148
|
- lib/stripe_mock/request_handlers/balance_transactions.rb
|
147
149
|
- lib/stripe_mock/request_handlers/cards.rb
|
148
150
|
- lib/stripe_mock/request_handlers/charges.rb
|
151
|
+
- lib/stripe_mock/request_handlers/checkout_session.rb
|
149
152
|
- lib/stripe_mock/request_handlers/country_spec.rb
|
150
153
|
- lib/stripe_mock/request_handlers/coupons.rb
|
151
154
|
- lib/stripe_mock/request_handlers/customers.rb
|
152
155
|
- lib/stripe_mock/request_handlers/disputes.rb
|
153
156
|
- lib/stripe_mock/request_handlers/ephemeral_key.rb
|
154
157
|
- lib/stripe_mock/request_handlers/events.rb
|
158
|
+
- lib/stripe_mock/request_handlers/express_login_links.rb
|
155
159
|
- lib/stripe_mock/request_handlers/external_accounts.rb
|
156
160
|
- lib/stripe_mock/request_handlers/helpers/bank_account_helpers.rb
|
157
161
|
- lib/stripe_mock/request_handlers/helpers/card_helpers.rb
|
@@ -167,7 +171,9 @@ files:
|
|
167
171
|
- lib/stripe_mock/request_handlers/payment_methods.rb
|
168
172
|
- lib/stripe_mock/request_handlers/payouts.rb
|
169
173
|
- lib/stripe_mock/request_handlers/plans.rb
|
174
|
+
- lib/stripe_mock/request_handlers/prices.rb
|
170
175
|
- lib/stripe_mock/request_handlers/products.rb
|
176
|
+
- lib/stripe_mock/request_handlers/promotion_codes.rb
|
171
177
|
- lib/stripe_mock/request_handlers/recipients.rb
|
172
178
|
- lib/stripe_mock/request_handlers/refunds.rb
|
173
179
|
- lib/stripe_mock/request_handlers/setup_intents.rb
|
@@ -190,15 +196,20 @@ files:
|
|
190
196
|
- lib/stripe_mock/webhook_fixtures/account.external_account.updated.json
|
191
197
|
- lib/stripe_mock/webhook_fixtures/account.updated.json
|
192
198
|
- lib/stripe_mock/webhook_fixtures/balance.available.json
|
199
|
+
- lib/stripe_mock/webhook_fixtures/charge.captured.json
|
193
200
|
- lib/stripe_mock/webhook_fixtures/charge.dispute.closed.json
|
194
201
|
- lib/stripe_mock/webhook_fixtures/charge.dispute.created.json
|
195
202
|
- lib/stripe_mock/webhook_fixtures/charge.dispute.funds_reinstated.json
|
196
203
|
- lib/stripe_mock/webhook_fixtures/charge.dispute.funds_withdrawn.json
|
197
204
|
- lib/stripe_mock/webhook_fixtures/charge.dispute.updated.json
|
198
205
|
- lib/stripe_mock/webhook_fixtures/charge.failed.json
|
206
|
+
- lib/stripe_mock/webhook_fixtures/charge.refund.updated.json
|
199
207
|
- lib/stripe_mock/webhook_fixtures/charge.refunded.json
|
200
208
|
- lib/stripe_mock/webhook_fixtures/charge.succeeded.json
|
201
209
|
- lib/stripe_mock/webhook_fixtures/charge.updated.json
|
210
|
+
- lib/stripe_mock/webhook_fixtures/checkout.session.completed.json
|
211
|
+
- lib/stripe_mock/webhook_fixtures/checkout.session.completed.payment_mode.json
|
212
|
+
- lib/stripe_mock/webhook_fixtures/checkout.session.completed.setup_mode.json
|
202
213
|
- lib/stripe_mock/webhook_fixtures/coupon.created.json
|
203
214
|
- lib/stripe_mock/webhook_fixtures/coupon.deleted.json
|
204
215
|
- lib/stripe_mock/webhook_fixtures/customer.created.json
|
@@ -215,18 +226,54 @@ files:
|
|
215
226
|
- lib/stripe_mock/webhook_fixtures/customer.subscription.updated.json
|
216
227
|
- lib/stripe_mock/webhook_fixtures/customer.updated.json
|
217
228
|
- lib/stripe_mock/webhook_fixtures/invoice.created.json
|
229
|
+
- lib/stripe_mock/webhook_fixtures/invoice.finalized.json
|
230
|
+
- lib/stripe_mock/webhook_fixtures/invoice.paid.json
|
231
|
+
- lib/stripe_mock/webhook_fixtures/invoice.payment_action_required.json
|
218
232
|
- lib/stripe_mock/webhook_fixtures/invoice.payment_failed.json
|
219
233
|
- lib/stripe_mock/webhook_fixtures/invoice.payment_succeeded.json
|
234
|
+
- lib/stripe_mock/webhook_fixtures/invoice.upcoming.json
|
220
235
|
- lib/stripe_mock/webhook_fixtures/invoice.updated.json
|
221
236
|
- lib/stripe_mock/webhook_fixtures/invoiceitem.created.json
|
222
237
|
- lib/stripe_mock/webhook_fixtures/invoiceitem.deleted.json
|
223
238
|
- lib/stripe_mock/webhook_fixtures/invoiceitem.updated.json
|
239
|
+
- lib/stripe_mock/webhook_fixtures/mandate.updated.json
|
240
|
+
- lib/stripe_mock/webhook_fixtures/payment_intent.amount_capturable_updated.json
|
241
|
+
- lib/stripe_mock/webhook_fixtures/payment_intent.canceled.json
|
242
|
+
- lib/stripe_mock/webhook_fixtures/payment_intent.created.json
|
243
|
+
- lib/stripe_mock/webhook_fixtures/payment_intent.payment_failed.json
|
244
|
+
- lib/stripe_mock/webhook_fixtures/payment_intent.processing.json
|
245
|
+
- lib/stripe_mock/webhook_fixtures/payment_intent.requires_action.json
|
246
|
+
- lib/stripe_mock/webhook_fixtures/payment_intent.succeeded.json
|
247
|
+
- lib/stripe_mock/webhook_fixtures/payment_link.created.json
|
248
|
+
- lib/stripe_mock/webhook_fixtures/payment_link.updated.json
|
249
|
+
- lib/stripe_mock/webhook_fixtures/payment_method.attached.json
|
250
|
+
- lib/stripe_mock/webhook_fixtures/payment_method.detached.json
|
251
|
+
- lib/stripe_mock/webhook_fixtures/payout.created.json
|
252
|
+
- lib/stripe_mock/webhook_fixtures/payout.paid.json
|
253
|
+
- lib/stripe_mock/webhook_fixtures/payout.updated.json
|
224
254
|
- lib/stripe_mock/webhook_fixtures/plan.created.json
|
225
255
|
- lib/stripe_mock/webhook_fixtures/plan.deleted.json
|
226
256
|
- lib/stripe_mock/webhook_fixtures/plan.updated.json
|
257
|
+
- lib/stripe_mock/webhook_fixtures/price.created.json
|
258
|
+
- lib/stripe_mock/webhook_fixtures/price.deleted.json
|
259
|
+
- lib/stripe_mock/webhook_fixtures/price.updated.json
|
227
260
|
- lib/stripe_mock/webhook_fixtures/product.created.json
|
228
261
|
- lib/stripe_mock/webhook_fixtures/product.deleted.json
|
229
262
|
- lib/stripe_mock/webhook_fixtures/product.updated.json
|
263
|
+
- lib/stripe_mock/webhook_fixtures/quote.accepted.json
|
264
|
+
- lib/stripe_mock/webhook_fixtures/quote.canceled.json
|
265
|
+
- lib/stripe_mock/webhook_fixtures/quote.created.json
|
266
|
+
- lib/stripe_mock/webhook_fixtures/quote.finalized.json
|
267
|
+
- lib/stripe_mock/webhook_fixtures/setup_intent.canceled.json
|
268
|
+
- lib/stripe_mock/webhook_fixtures/setup_intent.created.json
|
269
|
+
- lib/stripe_mock/webhook_fixtures/setup_intent.setup_failed.json
|
270
|
+
- lib/stripe_mock/webhook_fixtures/setup_intent.succeeded.json
|
271
|
+
- lib/stripe_mock/webhook_fixtures/subscription_schedule.canceled.json
|
272
|
+
- lib/stripe_mock/webhook_fixtures/subscription_schedule.created.json
|
273
|
+
- lib/stripe_mock/webhook_fixtures/subscription_schedule.released.json
|
274
|
+
- lib/stripe_mock/webhook_fixtures/subscription_schedule.updated.json
|
275
|
+
- lib/stripe_mock/webhook_fixtures/tax_rate.created.json
|
276
|
+
- lib/stripe_mock/webhook_fixtures/tax_rate.updated.json
|
230
277
|
- lib/stripe_mock/webhook_fixtures/transfer.created.json
|
231
278
|
- lib/stripe_mock/webhook_fixtures/transfer.failed.json
|
232
279
|
- lib/stripe_mock/webhook_fixtures/transfer.paid.json
|
@@ -239,12 +286,14 @@ files:
|
|
239
286
|
- spec/fixtures/stripe_webhooks/custom.account.updated.json
|
240
287
|
- spec/instance_spec.rb
|
241
288
|
- spec/integration_examples/charge_token_examples.rb
|
289
|
+
- spec/integration_examples/completing_checkout_sessions_example.rb
|
242
290
|
- spec/integration_examples/customer_card_examples.rb
|
243
291
|
- spec/integration_examples/prepare_error_examples.rb
|
244
292
|
- spec/list_spec.rb
|
245
293
|
- spec/readme_spec.rb
|
246
294
|
- spec/server_spec.rb
|
247
295
|
- spec/shared_stripe_examples/account_examples.rb
|
296
|
+
- spec/shared_stripe_examples/account_link_examples.rb
|
248
297
|
- spec/shared_stripe_examples/balance_examples.rb
|
249
298
|
- spec/shared_stripe_examples/balance_transaction_examples.rb
|
250
299
|
- spec/shared_stripe_examples/bank_examples.rb
|
@@ -252,12 +301,14 @@ files:
|
|
252
301
|
- spec/shared_stripe_examples/card_examples.rb
|
253
302
|
- spec/shared_stripe_examples/card_token_examples.rb
|
254
303
|
- spec/shared_stripe_examples/charge_examples.rb
|
304
|
+
- spec/shared_stripe_examples/checkout_session_examples.rb
|
255
305
|
- spec/shared_stripe_examples/country_specs_examples.rb
|
256
306
|
- spec/shared_stripe_examples/coupon_examples.rb
|
257
307
|
- spec/shared_stripe_examples/customer_examples.rb
|
258
308
|
- spec/shared_stripe_examples/dispute_examples.rb
|
259
309
|
- spec/shared_stripe_examples/ephemeral_key_examples.rb
|
260
310
|
- spec/shared_stripe_examples/error_mock_examples.rb
|
311
|
+
- spec/shared_stripe_examples/express_login_link_examples.rb
|
261
312
|
- spec/shared_stripe_examples/external_account_examples.rb
|
262
313
|
- spec/shared_stripe_examples/extra_features_examples.rb
|
263
314
|
- spec/shared_stripe_examples/invoice_examples.rb
|
@@ -266,7 +317,9 @@ files:
|
|
266
317
|
- spec/shared_stripe_examples/payment_method_examples.rb
|
267
318
|
- spec/shared_stripe_examples/payout_examples.rb
|
268
319
|
- spec/shared_stripe_examples/plan_examples.rb
|
320
|
+
- spec/shared_stripe_examples/price_examples.rb
|
269
321
|
- spec/shared_stripe_examples/product_examples.rb
|
322
|
+
- spec/shared_stripe_examples/promotion_code_examples.rb
|
270
323
|
- spec/shared_stripe_examples/recipient_examples.rb
|
271
324
|
- spec/shared_stripe_examples/refund_examples.rb
|
272
325
|
- spec/shared_stripe_examples/setup_intent_examples.rb
|
@@ -282,11 +335,14 @@ files:
|
|
282
335
|
- spec/support/stripe_examples.rb
|
283
336
|
- spec/util_spec.rb
|
284
337
|
- stripe-ruby-mock.gemspec
|
285
|
-
homepage: https://github.com/
|
338
|
+
homepage: https://github.com/stripe-ruby-mock/stripe-ruby-mock
|
286
339
|
licenses:
|
287
340
|
- MIT
|
288
|
-
metadata:
|
289
|
-
|
341
|
+
metadata:
|
342
|
+
bug_tracker_uri: https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues
|
343
|
+
changelog_uri: https://github.com/stripe-ruby-mock/stripe-ruby-mock/blob/master/CHANGELOG.md
|
344
|
+
source_code_uri: https://github.com/stripe-ruby-mock/stripe-ruby-mock
|
345
|
+
post_install_message:
|
290
346
|
rdoc_options: []
|
291
347
|
require_paths:
|
292
348
|
- lib
|
@@ -301,9 +357,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
301
357
|
- !ruby/object:Gem::Version
|
302
358
|
version: '0'
|
303
359
|
requirements: []
|
304
|
-
|
305
|
-
|
306
|
-
signing_key:
|
360
|
+
rubygems_version: 3.0.3.1
|
361
|
+
signing_key:
|
307
362
|
specification_version: 4
|
308
363
|
summary: TDD with stripe
|
309
364
|
test_files:
|
@@ -314,12 +369,14 @@ test_files:
|
|
314
369
|
- spec/fixtures/stripe_webhooks/custom.account.updated.json
|
315
370
|
- spec/instance_spec.rb
|
316
371
|
- spec/integration_examples/charge_token_examples.rb
|
372
|
+
- spec/integration_examples/completing_checkout_sessions_example.rb
|
317
373
|
- spec/integration_examples/customer_card_examples.rb
|
318
374
|
- spec/integration_examples/prepare_error_examples.rb
|
319
375
|
- spec/list_spec.rb
|
320
376
|
- spec/readme_spec.rb
|
321
377
|
- spec/server_spec.rb
|
322
378
|
- spec/shared_stripe_examples/account_examples.rb
|
379
|
+
- spec/shared_stripe_examples/account_link_examples.rb
|
323
380
|
- spec/shared_stripe_examples/balance_examples.rb
|
324
381
|
- spec/shared_stripe_examples/balance_transaction_examples.rb
|
325
382
|
- spec/shared_stripe_examples/bank_examples.rb
|
@@ -327,12 +384,14 @@ test_files:
|
|
327
384
|
- spec/shared_stripe_examples/card_examples.rb
|
328
385
|
- spec/shared_stripe_examples/card_token_examples.rb
|
329
386
|
- spec/shared_stripe_examples/charge_examples.rb
|
387
|
+
- spec/shared_stripe_examples/checkout_session_examples.rb
|
330
388
|
- spec/shared_stripe_examples/country_specs_examples.rb
|
331
389
|
- spec/shared_stripe_examples/coupon_examples.rb
|
332
390
|
- spec/shared_stripe_examples/customer_examples.rb
|
333
391
|
- spec/shared_stripe_examples/dispute_examples.rb
|
334
392
|
- spec/shared_stripe_examples/ephemeral_key_examples.rb
|
335
393
|
- spec/shared_stripe_examples/error_mock_examples.rb
|
394
|
+
- spec/shared_stripe_examples/express_login_link_examples.rb
|
336
395
|
- spec/shared_stripe_examples/external_account_examples.rb
|
337
396
|
- spec/shared_stripe_examples/extra_features_examples.rb
|
338
397
|
- spec/shared_stripe_examples/invoice_examples.rb
|
@@ -341,7 +400,9 @@ test_files:
|
|
341
400
|
- spec/shared_stripe_examples/payment_method_examples.rb
|
342
401
|
- spec/shared_stripe_examples/payout_examples.rb
|
343
402
|
- spec/shared_stripe_examples/plan_examples.rb
|
403
|
+
- spec/shared_stripe_examples/price_examples.rb
|
344
404
|
- spec/shared_stripe_examples/product_examples.rb
|
405
|
+
- spec/shared_stripe_examples/promotion_code_examples.rb
|
345
406
|
- spec/shared_stripe_examples/recipient_examples.rb
|
346
407
|
- spec/shared_stripe_examples/refund_examples.rb
|
347
408
|
- spec/shared_stripe_examples/setup_intent_examples.rb
|
data/.travis.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
dist: trusty
|
2
|
-
group: deprecated-2017Q2
|
3
|
-
sudo: required
|
4
|
-
language: ruby
|
5
|
-
rvm:
|
6
|
-
- 2.4.6
|
7
|
-
- 2.5.5
|
8
|
-
- 2.6.3
|
9
|
-
before_install:
|
10
|
-
- rvm 2.1.10 do gem install mime-types -v 2.6.2
|
11
|
-
- gem install bundler -v '< 2'
|
12
|
-
before_script:
|
13
|
-
- "sudo touch /var/log/stripe-mock-server.log"
|
14
|
-
- "sudo chown travis /var/log/stripe-mock-server.log"
|
15
|
-
script: "bundle exec rspec && bundle exec rspec -t live"
|
16
|
-
|
17
|
-
env:
|
18
|
-
global:
|
19
|
-
- IS_TRAVIS=true STRIPE_TEST_SECRET_KEY_A=sk_test_BsztzqQjzd7lqkgo1LjEG5DF00KzH7tWKF STRIPE_TEST_SECRET_KEY_B=sk_test_rKCEu0x8jzg6cKPqoey8kUPQ00usQO3KYE STRIPE_TEST_SECRET_KEY_C=sk_test_qeaB7R6Ywp8sC9pzd1ZIABH700YLC7nhmZ
|
20
|
-
|
21
|
-
notifications:
|
22
|
-
webhooks:
|
23
|
-
urls:
|
24
|
-
- https://webhooks.gitter.im/e/44a1f4718ae2efb67eac
|
25
|
-
on_success: change # options: [always|never|change] default: always
|
26
|
-
on_failure: always # options: [always|never|change] default: always
|
27
|
-
on_start: false # default: false
|
28
|
-
|