stripe 4.21.3 → 5.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +254 -1
- data/CODE_OF_CONDUCT.md +77 -0
- data/Gemfile +10 -16
- data/Makefile +7 -0
- data/README.md +115 -47
- data/Rakefile +8 -7
- data/VERSION +1 -1
- data/lib/stripe/api_operations/create.rb +1 -1
- data/lib/stripe/api_operations/delete.rb +7 -3
- data/lib/stripe/api_operations/list.rb +1 -12
- data/lib/stripe/api_operations/nested_resource.rb +29 -26
- data/lib/stripe/api_operations/request.rb +82 -6
- data/lib/stripe/api_operations/save.rb +7 -4
- data/lib/stripe/api_operations/search.rb +19 -0
- data/lib/stripe/api_resource.rb +22 -17
- data/lib/stripe/api_resource_test_helpers.rb +47 -0
- data/lib/stripe/connection_manager.rb +200 -0
- data/lib/stripe/error_object.rb +93 -0
- data/lib/stripe/errors.rb +24 -3
- data/lib/stripe/instrumentation.rb +84 -0
- data/lib/stripe/list_object.rb +34 -5
- data/lib/stripe/multipart_encoder.rb +131 -0
- data/lib/stripe/oauth.rb +8 -6
- data/lib/stripe/object_types.rb +20 -5
- data/lib/stripe/resources/account.rb +12 -16
- data/lib/stripe/resources/account_link.rb +2 -1
- data/lib/stripe/resources/alipay_account.rb +1 -1
- data/lib/stripe/resources/apple_pay_domain.rb +2 -1
- data/lib/stripe/resources/application_fee.rb +2 -12
- data/lib/stripe/resources/application_fee_refund.rb +3 -2
- data/lib/stripe/resources/balance.rb +2 -1
- data/lib/stripe/resources/balance_transaction.rb +2 -5
- data/lib/stripe/resources/bank_account.rb +3 -2
- data/lib/stripe/resources/billing_portal/configuration.rb +14 -0
- data/lib/stripe/resources/billing_portal/session.rb +12 -0
- data/lib/stripe/resources/bitcoin_receiver.rb +2 -1
- data/lib/stripe/resources/bitcoin_transaction.rb +4 -3
- data/lib/stripe/resources/capability.rb +3 -2
- data/lib/stripe/resources/card.rb +2 -1
- data/lib/stripe/resources/charge.rb +13 -65
- data/lib/stripe/resources/checkout/session.rb +17 -1
- data/lib/stripe/resources/country_spec.rb +2 -1
- data/lib/stripe/resources/coupon.rb +2 -1
- data/lib/stripe/resources/credit_note.rb +18 -3
- data/lib/stripe/resources/credit_note_line_item.rb +8 -0
- data/lib/stripe/resources/customer.rb +35 -59
- data/lib/stripe/resources/customer_balance_transaction.rb +4 -3
- data/lib/stripe/resources/discount.rb +2 -1
- data/lib/stripe/resources/dispute.rb +8 -9
- data/lib/stripe/resources/ephemeral_key.rb +2 -1
- data/lib/stripe/resources/event.rb +2 -1
- data/lib/stripe/resources/exchange_rate.rb +2 -1
- data/lib/stripe/resources/file.rb +6 -14
- data/lib/stripe/resources/file_link.rb +2 -1
- data/lib/stripe/resources/funding_instructions.rb +16 -0
- data/lib/stripe/resources/identity/verification_report.rb +12 -0
- data/lib/stripe/resources/identity/verification_session.rb +35 -0
- data/lib/stripe/resources/invoice.rb +47 -12
- data/lib/stripe/resources/invoice_item.rb +2 -1
- data/lib/stripe/resources/invoice_line_item.rb +2 -1
- data/lib/stripe/resources/issuing/authorization.rb +14 -5
- data/lib/stripe/resources/issuing/card.rb +8 -3
- data/lib/stripe/resources/issuing/card_details.rb +3 -2
- data/lib/stripe/resources/issuing/cardholder.rb +2 -1
- data/lib/stripe/resources/issuing/dispute.rb +13 -1
- data/lib/stripe/resources/issuing/transaction.rb +2 -1
- data/lib/stripe/resources/line_item.rb +8 -0
- data/lib/stripe/resources/login_link.rb +2 -1
- data/lib/stripe/resources/mandate.rb +8 -0
- data/lib/stripe/resources/order.rb +14 -13
- data/lib/stripe/resources/order_return.rb +2 -1
- data/lib/stripe/resources/payment_intent.rb +59 -7
- data/lib/stripe/resources/payment_link.rb +23 -0
- data/lib/stripe/resources/payment_method.rb +14 -5
- data/lib/stripe/resources/payout.rb +16 -7
- data/lib/stripe/resources/person.rb +2 -1
- data/lib/stripe/resources/plan.rb +2 -1
- data/lib/stripe/resources/price.rb +21 -0
- data/lib/stripe/resources/product.rb +11 -1
- data/lib/stripe/resources/promotion_code.rb +12 -0
- data/lib/stripe/resources/quote.rb +105 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -1
- data/lib/stripe/resources/radar/value_list.rb +2 -1
- data/lib/stripe/resources/radar/value_list_item.rb +2 -1
- data/lib/stripe/resources/recipient.rb +2 -5
- data/lib/stripe/resources/recipient_transfer.rb +1 -1
- data/lib/stripe/resources/refund.rb +13 -1
- data/lib/stripe/resources/reporting/report_run.rb +2 -1
- data/lib/stripe/resources/reporting/report_type.rb +2 -1
- data/lib/stripe/resources/reversal.rb +4 -3
- data/lib/stripe/resources/review.rb +8 -3
- data/lib/stripe/resources/setup_attempt.rb +10 -0
- data/lib/stripe/resources/setup_intent.rb +24 -5
- data/lib/stripe/resources/shipping_rate.rb +12 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -1
- data/lib/stripe/resources/sku.rb +2 -1
- data/lib/stripe/resources/source.rb +17 -12
- data/lib/stripe/resources/source_transaction.rb +2 -1
- data/lib/stripe/resources/subscription.rb +16 -6
- data/lib/stripe/resources/subscription_item.rb +11 -2
- data/lib/stripe/resources/subscription_schedule.rb +14 -13
- data/lib/stripe/resources/tax_code.rb +10 -0
- data/lib/stripe/resources/tax_id.rb +2 -1
- data/lib/stripe/resources/tax_rate.rb +2 -1
- data/lib/stripe/resources/terminal/configuration.rb +15 -0
- data/lib/stripe/resources/terminal/connection_token.rb +2 -1
- data/lib/stripe/resources/terminal/location.rb +2 -1
- data/lib/stripe/resources/terminal/reader.rb +62 -1
- data/lib/stripe/resources/test_helpers/test_clock.rb +25 -0
- data/lib/stripe/resources/three_d_secure.rb +2 -1
- data/lib/stripe/resources/token.rb +2 -1
- data/lib/stripe/resources/topup.rb +8 -3
- data/lib/stripe/resources/transfer.rb +8 -8
- data/lib/stripe/resources/usage_record.rb +2 -17
- data/lib/stripe/resources/usage_record_summary.rb +2 -1
- data/lib/stripe/resources/webhook_endpoint.rb +2 -1
- data/lib/stripe/resources.rb +18 -2
- data/lib/stripe/search_result_object.rb +86 -0
- data/lib/stripe/stripe_client.rb +617 -243
- data/lib/stripe/stripe_configuration.rb +194 -0
- data/lib/stripe/stripe_object.rb +30 -25
- data/lib/stripe/stripe_response.rb +87 -27
- data/lib/stripe/util.rb +88 -18
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +39 -8
- data/lib/stripe.rb +43 -131
- data/stripe.gemspec +17 -13
- metadata +36 -220
- data/.editorconfig +0 -10
- data/.gitattributes +0 -4
- data/.github/ISSUE_TEMPLATE.md +0 -5
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -43
- data/.rubocop_todo.yml +0 -38
- data/.travis.yml +0 -43
- data/.vscode/extensions.json +0 -7
- data/.vscode/settings.json +0 -8
- data/lib/stripe/resources/issuer_fraud_record.rb +0 -9
- data/lib/stripe/resources/subscription_schedule_revision.rb +0 -34
- data/test/api_stub_helpers.rb +0 -1
- data/test/openapi/README.md +0 -9
- data/test/stripe/account_link_test.rb +0 -18
- data/test/stripe/account_test.rb +0 -428
- data/test/stripe/alipay_account_test.rb +0 -37
- data/test/stripe/api_operations_test.rb +0 -80
- data/test/stripe/api_resource_test.rb +0 -544
- data/test/stripe/apple_pay_domain_test.rb +0 -46
- data/test/stripe/application_fee_refund_test.rb +0 -37
- data/test/stripe/application_fee_test.rb +0 -58
- data/test/stripe/balance_test.rb +0 -13
- data/test/stripe/bank_account_test.rb +0 -36
- data/test/stripe/capability_test.rb +0 -45
- data/test/stripe/charge_test.rb +0 -80
- data/test/stripe/checkout/session_test.rb +0 -41
- data/test/stripe/country_spec_test.rb +0 -20
- data/test/stripe/coupon_test.rb +0 -61
- data/test/stripe/credit_note_test.rb +0 -61
- data/test/stripe/customer_balance_transaction_test.rb +0 -37
- data/test/stripe/customer_card_test.rb +0 -42
- data/test/stripe/customer_test.rb +0 -269
- data/test/stripe/dispute_test.rb +0 -51
- data/test/stripe/ephemeral_key_test.rb +0 -93
- data/test/stripe/errors_test.rb +0 -20
- data/test/stripe/exchange_rate_test.rb +0 -20
- data/test/stripe/file_link_test.rb +0 -41
- data/test/stripe/file_test.rb +0 -97
- data/test/stripe/file_upload_test.rb +0 -79
- data/test/stripe/invoice_item_test.rb +0 -66
- data/test/stripe/invoice_line_item_test.rb +0 -8
- data/test/stripe/invoice_test.rb +0 -213
- data/test/stripe/issuer_fraud_record_test.rb +0 -20
- data/test/stripe/issuing/authorization_test.rb +0 -72
- data/test/stripe/issuing/card_test.rb +0 -62
- data/test/stripe/issuing/cardholder_test.rb +0 -53
- data/test/stripe/issuing/dispute_test.rb +0 -45
- data/test/stripe/issuing/transaction_test.rb +0 -48
- data/test/stripe/list_object_test.rb +0 -156
- data/test/stripe/login_link_test.rb +0 -37
- data/test/stripe/oauth_test.rb +0 -88
- data/test/stripe/order_return_test.rb +0 -21
- data/test/stripe/order_test.rb +0 -82
- data/test/stripe/payment_intent_test.rb +0 -107
- data/test/stripe/payment_method_test.rb +0 -84
- data/test/stripe/payout_test.rb +0 -57
- data/test/stripe/person_test.rb +0 -46
- data/test/stripe/plan_test.rb +0 -98
- data/test/stripe/product_test.rb +0 -59
- data/test/stripe/radar/early_fraud_warning_test.rb +0 -22
- data/test/stripe/radar/value_list_item_test.rb +0 -48
- data/test/stripe/radar/value_list_test.rb +0 -61
- data/test/stripe/recipient_test.rb +0 -62
- data/test/stripe/refund_test.rb +0 -39
- data/test/stripe/reporting/report_run_test.rb +0 -33
- data/test/stripe/reporting/report_type_test.rb +0 -22
- data/test/stripe/reversal_test.rb +0 -43
- data/test/stripe/review_test.rb +0 -27
- data/test/stripe/setup_intent_test.rb +0 -84
- data/test/stripe/sigma/scheduled_query_run_test.rb +0 -22
- data/test/stripe/sku_test.rb +0 -60
- data/test/stripe/source_test.rb +0 -99
- data/test/stripe/source_transaction_test.rb +0 -19
- data/test/stripe/stripe_client_test.rb +0 -842
- data/test/stripe/stripe_object_test.rb +0 -525
- data/test/stripe/stripe_response_test.rb +0 -49
- data/test/stripe/subscription_item_test.rb +0 -63
- data/test/stripe/subscription_schedule_revision_test.rb +0 -37
- data/test/stripe/subscription_schedule_test.rb +0 -116
- data/test/stripe/subscription_test.rb +0 -80
- data/test/stripe/tax_id_test.rb +0 -31
- data/test/stripe/tax_rate_test.rb +0 -43
- data/test/stripe/terminal/connection_token_test.rb +0 -16
- data/test/stripe/terminal/location_test.rb +0 -68
- data/test/stripe/terminal/reader_test.rb +0 -62
- data/test/stripe/three_d_secure_test.rb +0 -23
- data/test/stripe/topup_test.rb +0 -62
- data/test/stripe/transfer_test.rb +0 -88
- data/test/stripe/usage_record_summary_test.rb +0 -19
- data/test/stripe/usage_record_test.rb +0 -28
- data/test/stripe/util_test.rb +0 -402
- data/test/stripe/webhook_endpoint_test.rb +0 -59
- data/test/stripe/webhook_test.rb +0 -96
- data/test/stripe_mock.rb +0 -77
- data/test/stripe_test.rb +0 -63
- data/test/test_data.rb +0 -61
- data/test/test_helper.rb +0 -71
metadata
CHANGED
@@ -1,43 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.52.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: faraday
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.13'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.13'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: net-http-persistent
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3.0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.0'
|
11
|
+
date: 2022-04-18 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
41
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
42
14
|
for details.
|
43
15
|
email: support@stripe.com
|
@@ -46,20 +18,13 @@ executables:
|
|
46
18
|
extensions: []
|
47
19
|
extra_rdoc_files: []
|
48
20
|
files:
|
49
|
-
- ".editorconfig"
|
50
|
-
- ".gitattributes"
|
51
|
-
- ".github/ISSUE_TEMPLATE.md"
|
52
|
-
- ".gitignore"
|
53
|
-
- ".rubocop.yml"
|
54
|
-
- ".rubocop_todo.yml"
|
55
|
-
- ".travis.yml"
|
56
|
-
- ".vscode/extensions.json"
|
57
|
-
- ".vscode/settings.json"
|
58
21
|
- CHANGELOG.md
|
22
|
+
- CODE_OF_CONDUCT.md
|
59
23
|
- CONTRIBUTORS
|
60
24
|
- Gemfile
|
61
25
|
- History.txt
|
62
26
|
- LICENSE
|
27
|
+
- Makefile
|
63
28
|
- README.md
|
64
29
|
- Rakefile
|
65
30
|
- VERSION
|
@@ -72,9 +37,15 @@ files:
|
|
72
37
|
- lib/stripe/api_operations/nested_resource.rb
|
73
38
|
- lib/stripe/api_operations/request.rb
|
74
39
|
- lib/stripe/api_operations/save.rb
|
40
|
+
- lib/stripe/api_operations/search.rb
|
75
41
|
- lib/stripe/api_resource.rb
|
42
|
+
- lib/stripe/api_resource_test_helpers.rb
|
43
|
+
- lib/stripe/connection_manager.rb
|
44
|
+
- lib/stripe/error_object.rb
|
76
45
|
- lib/stripe/errors.rb
|
46
|
+
- lib/stripe/instrumentation.rb
|
77
47
|
- lib/stripe/list_object.rb
|
48
|
+
- lib/stripe/multipart_encoder.rb
|
78
49
|
- lib/stripe/oauth.rb
|
79
50
|
- lib/stripe/object_types.rb
|
80
51
|
- lib/stripe/resources.rb
|
@@ -87,6 +58,8 @@ files:
|
|
87
58
|
- lib/stripe/resources/balance.rb
|
88
59
|
- lib/stripe/resources/balance_transaction.rb
|
89
60
|
- lib/stripe/resources/bank_account.rb
|
61
|
+
- lib/stripe/resources/billing_portal/configuration.rb
|
62
|
+
- lib/stripe/resources/billing_portal/session.rb
|
90
63
|
- lib/stripe/resources/bitcoin_receiver.rb
|
91
64
|
- lib/stripe/resources/bitcoin_transaction.rb
|
92
65
|
- lib/stripe/resources/capability.rb
|
@@ -96,6 +69,7 @@ files:
|
|
96
69
|
- lib/stripe/resources/country_spec.rb
|
97
70
|
- lib/stripe/resources/coupon.rb
|
98
71
|
- lib/stripe/resources/credit_note.rb
|
72
|
+
- lib/stripe/resources/credit_note_line_item.rb
|
99
73
|
- lib/stripe/resources/customer.rb
|
100
74
|
- lib/stripe/resources/customer_balance_transaction.rb
|
101
75
|
- lib/stripe/resources/discount.rb
|
@@ -105,25 +79,33 @@ files:
|
|
105
79
|
- lib/stripe/resources/exchange_rate.rb
|
106
80
|
- lib/stripe/resources/file.rb
|
107
81
|
- lib/stripe/resources/file_link.rb
|
82
|
+
- lib/stripe/resources/funding_instructions.rb
|
83
|
+
- lib/stripe/resources/identity/verification_report.rb
|
84
|
+
- lib/stripe/resources/identity/verification_session.rb
|
108
85
|
- lib/stripe/resources/invoice.rb
|
109
86
|
- lib/stripe/resources/invoice_item.rb
|
110
87
|
- lib/stripe/resources/invoice_line_item.rb
|
111
|
-
- lib/stripe/resources/issuer_fraud_record.rb
|
112
88
|
- lib/stripe/resources/issuing/authorization.rb
|
113
89
|
- lib/stripe/resources/issuing/card.rb
|
114
90
|
- lib/stripe/resources/issuing/card_details.rb
|
115
91
|
- lib/stripe/resources/issuing/cardholder.rb
|
116
92
|
- lib/stripe/resources/issuing/dispute.rb
|
117
93
|
- lib/stripe/resources/issuing/transaction.rb
|
94
|
+
- lib/stripe/resources/line_item.rb
|
118
95
|
- lib/stripe/resources/login_link.rb
|
96
|
+
- lib/stripe/resources/mandate.rb
|
119
97
|
- lib/stripe/resources/order.rb
|
120
98
|
- lib/stripe/resources/order_return.rb
|
121
99
|
- lib/stripe/resources/payment_intent.rb
|
100
|
+
- lib/stripe/resources/payment_link.rb
|
122
101
|
- lib/stripe/resources/payment_method.rb
|
123
102
|
- lib/stripe/resources/payout.rb
|
124
103
|
- lib/stripe/resources/person.rb
|
125
104
|
- lib/stripe/resources/plan.rb
|
105
|
+
- lib/stripe/resources/price.rb
|
126
106
|
- lib/stripe/resources/product.rb
|
107
|
+
- lib/stripe/resources/promotion_code.rb
|
108
|
+
- lib/stripe/resources/quote.rb
|
127
109
|
- lib/stripe/resources/radar/early_fraud_warning.rb
|
128
110
|
- lib/stripe/resources/radar/value_list.rb
|
129
111
|
- lib/stripe/resources/radar/value_list_item.rb
|
@@ -134,7 +116,9 @@ files:
|
|
134
116
|
- lib/stripe/resources/reporting/report_type.rb
|
135
117
|
- lib/stripe/resources/reversal.rb
|
136
118
|
- lib/stripe/resources/review.rb
|
119
|
+
- lib/stripe/resources/setup_attempt.rb
|
137
120
|
- lib/stripe/resources/setup_intent.rb
|
121
|
+
- lib/stripe/resources/shipping_rate.rb
|
138
122
|
- lib/stripe/resources/sigma/scheduled_query_run.rb
|
139
123
|
- lib/stripe/resources/sku.rb
|
140
124
|
- lib/stripe/resources/source.rb
|
@@ -142,12 +126,14 @@ files:
|
|
142
126
|
- lib/stripe/resources/subscription.rb
|
143
127
|
- lib/stripe/resources/subscription_item.rb
|
144
128
|
- lib/stripe/resources/subscription_schedule.rb
|
145
|
-
- lib/stripe/resources/
|
129
|
+
- lib/stripe/resources/tax_code.rb
|
146
130
|
- lib/stripe/resources/tax_id.rb
|
147
131
|
- lib/stripe/resources/tax_rate.rb
|
132
|
+
- lib/stripe/resources/terminal/configuration.rb
|
148
133
|
- lib/stripe/resources/terminal/connection_token.rb
|
149
134
|
- lib/stripe/resources/terminal/location.rb
|
150
135
|
- lib/stripe/resources/terminal/reader.rb
|
136
|
+
- lib/stripe/resources/test_helpers/test_clock.rb
|
151
137
|
- lib/stripe/resources/three_d_secure.rb
|
152
138
|
- lib/stripe/resources/token.rb
|
153
139
|
- lib/stripe/resources/topup.rb
|
@@ -155,109 +141,25 @@ files:
|
|
155
141
|
- lib/stripe/resources/usage_record.rb
|
156
142
|
- lib/stripe/resources/usage_record_summary.rb
|
157
143
|
- lib/stripe/resources/webhook_endpoint.rb
|
144
|
+
- lib/stripe/search_result_object.rb
|
158
145
|
- lib/stripe/singleton_api_resource.rb
|
159
146
|
- lib/stripe/stripe_client.rb
|
147
|
+
- lib/stripe/stripe_configuration.rb
|
160
148
|
- lib/stripe/stripe_object.rb
|
161
149
|
- lib/stripe/stripe_response.rb
|
162
150
|
- lib/stripe/util.rb
|
163
151
|
- lib/stripe/version.rb
|
164
152
|
- lib/stripe/webhook.rb
|
165
153
|
- stripe.gemspec
|
166
|
-
|
167
|
-
- test/openapi/README.md
|
168
|
-
- test/stripe/account_link_test.rb
|
169
|
-
- test/stripe/account_test.rb
|
170
|
-
- test/stripe/alipay_account_test.rb
|
171
|
-
- test/stripe/api_operations_test.rb
|
172
|
-
- test/stripe/api_resource_test.rb
|
173
|
-
- test/stripe/apple_pay_domain_test.rb
|
174
|
-
- test/stripe/application_fee_refund_test.rb
|
175
|
-
- test/stripe/application_fee_test.rb
|
176
|
-
- test/stripe/balance_test.rb
|
177
|
-
- test/stripe/bank_account_test.rb
|
178
|
-
- test/stripe/capability_test.rb
|
179
|
-
- test/stripe/charge_test.rb
|
180
|
-
- test/stripe/checkout/session_test.rb
|
181
|
-
- test/stripe/country_spec_test.rb
|
182
|
-
- test/stripe/coupon_test.rb
|
183
|
-
- test/stripe/credit_note_test.rb
|
184
|
-
- test/stripe/customer_balance_transaction_test.rb
|
185
|
-
- test/stripe/customer_card_test.rb
|
186
|
-
- test/stripe/customer_test.rb
|
187
|
-
- test/stripe/dispute_test.rb
|
188
|
-
- test/stripe/ephemeral_key_test.rb
|
189
|
-
- test/stripe/errors_test.rb
|
190
|
-
- test/stripe/exchange_rate_test.rb
|
191
|
-
- test/stripe/file_link_test.rb
|
192
|
-
- test/stripe/file_test.rb
|
193
|
-
- test/stripe/file_upload_test.rb
|
194
|
-
- test/stripe/invoice_item_test.rb
|
195
|
-
- test/stripe/invoice_line_item_test.rb
|
196
|
-
- test/stripe/invoice_test.rb
|
197
|
-
- test/stripe/issuer_fraud_record_test.rb
|
198
|
-
- test/stripe/issuing/authorization_test.rb
|
199
|
-
- test/stripe/issuing/card_test.rb
|
200
|
-
- test/stripe/issuing/cardholder_test.rb
|
201
|
-
- test/stripe/issuing/dispute_test.rb
|
202
|
-
- test/stripe/issuing/transaction_test.rb
|
203
|
-
- test/stripe/list_object_test.rb
|
204
|
-
- test/stripe/login_link_test.rb
|
205
|
-
- test/stripe/oauth_test.rb
|
206
|
-
- test/stripe/order_return_test.rb
|
207
|
-
- test/stripe/order_test.rb
|
208
|
-
- test/stripe/payment_intent_test.rb
|
209
|
-
- test/stripe/payment_method_test.rb
|
210
|
-
- test/stripe/payout_test.rb
|
211
|
-
- test/stripe/person_test.rb
|
212
|
-
- test/stripe/plan_test.rb
|
213
|
-
- test/stripe/product_test.rb
|
214
|
-
- test/stripe/radar/early_fraud_warning_test.rb
|
215
|
-
- test/stripe/radar/value_list_item_test.rb
|
216
|
-
- test/stripe/radar/value_list_test.rb
|
217
|
-
- test/stripe/recipient_test.rb
|
218
|
-
- test/stripe/refund_test.rb
|
219
|
-
- test/stripe/reporting/report_run_test.rb
|
220
|
-
- test/stripe/reporting/report_type_test.rb
|
221
|
-
- test/stripe/reversal_test.rb
|
222
|
-
- test/stripe/review_test.rb
|
223
|
-
- test/stripe/setup_intent_test.rb
|
224
|
-
- test/stripe/sigma/scheduled_query_run_test.rb
|
225
|
-
- test/stripe/sku_test.rb
|
226
|
-
- test/stripe/source_test.rb
|
227
|
-
- test/stripe/source_transaction_test.rb
|
228
|
-
- test/stripe/stripe_client_test.rb
|
229
|
-
- test/stripe/stripe_object_test.rb
|
230
|
-
- test/stripe/stripe_response_test.rb
|
231
|
-
- test/stripe/subscription_item_test.rb
|
232
|
-
- test/stripe/subscription_schedule_revision_test.rb
|
233
|
-
- test/stripe/subscription_schedule_test.rb
|
234
|
-
- test/stripe/subscription_test.rb
|
235
|
-
- test/stripe/tax_id_test.rb
|
236
|
-
- test/stripe/tax_rate_test.rb
|
237
|
-
- test/stripe/terminal/connection_token_test.rb
|
238
|
-
- test/stripe/terminal/location_test.rb
|
239
|
-
- test/stripe/terminal/reader_test.rb
|
240
|
-
- test/stripe/three_d_secure_test.rb
|
241
|
-
- test/stripe/topup_test.rb
|
242
|
-
- test/stripe/transfer_test.rb
|
243
|
-
- test/stripe/usage_record_summary_test.rb
|
244
|
-
- test/stripe/usage_record_test.rb
|
245
|
-
- test/stripe/util_test.rb
|
246
|
-
- test/stripe/webhook_endpoint_test.rb
|
247
|
-
- test/stripe/webhook_test.rb
|
248
|
-
- test/stripe_mock.rb
|
249
|
-
- test/stripe_test.rb
|
250
|
-
- test/test_data.rb
|
251
|
-
- test/test_helper.rb
|
252
|
-
homepage: https://stripe.com/docs/api/ruby
|
154
|
+
homepage: https://stripe.com/docs/api?lang=ruby
|
253
155
|
licenses:
|
254
156
|
- MIT
|
255
157
|
metadata:
|
256
158
|
bug_tracker_uri: https://github.com/stripe/stripe-ruby/issues
|
257
159
|
changelog_uri: https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md
|
258
|
-
documentation_uri: https://stripe.com/docs/api
|
160
|
+
documentation_uri: https://stripe.com/docs/api?lang=ruby
|
259
161
|
github_repo: ssh://github.com/stripe/stripe-ruby
|
260
|
-
homepage_uri: https://stripe.com/docs/api
|
162
|
+
homepage_uri: https://stripe.com/docs/api?lang=ruby
|
261
163
|
source_code_uri: https://github.com/stripe/stripe-ruby
|
262
164
|
post_install_message:
|
263
165
|
rdoc_options: []
|
@@ -267,101 +169,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
267
169
|
requirements:
|
268
170
|
- - ">="
|
269
171
|
- !ruby/object:Gem::Version
|
270
|
-
version: 2.
|
172
|
+
version: 2.3.0
|
271
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
272
174
|
requirements:
|
273
175
|
- - ">="
|
274
176
|
- !ruby/object:Gem::Version
|
275
177
|
version: '0'
|
276
178
|
requirements: []
|
277
|
-
rubygems_version: 3.
|
179
|
+
rubygems_version: 3.1.2
|
278
180
|
signing_key:
|
279
181
|
specification_version: 4
|
280
182
|
summary: Ruby bindings for the Stripe API
|
281
|
-
test_files:
|
282
|
-
- test/api_stub_helpers.rb
|
283
|
-
- test/openapi/README.md
|
284
|
-
- test/stripe/account_link_test.rb
|
285
|
-
- test/stripe/account_test.rb
|
286
|
-
- test/stripe/alipay_account_test.rb
|
287
|
-
- test/stripe/api_operations_test.rb
|
288
|
-
- test/stripe/api_resource_test.rb
|
289
|
-
- test/stripe/apple_pay_domain_test.rb
|
290
|
-
- test/stripe/application_fee_refund_test.rb
|
291
|
-
- test/stripe/application_fee_test.rb
|
292
|
-
- test/stripe/balance_test.rb
|
293
|
-
- test/stripe/bank_account_test.rb
|
294
|
-
- test/stripe/capability_test.rb
|
295
|
-
- test/stripe/charge_test.rb
|
296
|
-
- test/stripe/checkout/session_test.rb
|
297
|
-
- test/stripe/country_spec_test.rb
|
298
|
-
- test/stripe/coupon_test.rb
|
299
|
-
- test/stripe/credit_note_test.rb
|
300
|
-
- test/stripe/customer_balance_transaction_test.rb
|
301
|
-
- test/stripe/customer_card_test.rb
|
302
|
-
- test/stripe/customer_test.rb
|
303
|
-
- test/stripe/dispute_test.rb
|
304
|
-
- test/stripe/ephemeral_key_test.rb
|
305
|
-
- test/stripe/errors_test.rb
|
306
|
-
- test/stripe/exchange_rate_test.rb
|
307
|
-
- test/stripe/file_link_test.rb
|
308
|
-
- test/stripe/file_test.rb
|
309
|
-
- test/stripe/file_upload_test.rb
|
310
|
-
- test/stripe/invoice_item_test.rb
|
311
|
-
- test/stripe/invoice_line_item_test.rb
|
312
|
-
- test/stripe/invoice_test.rb
|
313
|
-
- test/stripe/issuer_fraud_record_test.rb
|
314
|
-
- test/stripe/issuing/authorization_test.rb
|
315
|
-
- test/stripe/issuing/card_test.rb
|
316
|
-
- test/stripe/issuing/cardholder_test.rb
|
317
|
-
- test/stripe/issuing/dispute_test.rb
|
318
|
-
- test/stripe/issuing/transaction_test.rb
|
319
|
-
- test/stripe/list_object_test.rb
|
320
|
-
- test/stripe/login_link_test.rb
|
321
|
-
- test/stripe/oauth_test.rb
|
322
|
-
- test/stripe/order_return_test.rb
|
323
|
-
- test/stripe/order_test.rb
|
324
|
-
- test/stripe/payment_intent_test.rb
|
325
|
-
- test/stripe/payment_method_test.rb
|
326
|
-
- test/stripe/payout_test.rb
|
327
|
-
- test/stripe/person_test.rb
|
328
|
-
- test/stripe/plan_test.rb
|
329
|
-
- test/stripe/product_test.rb
|
330
|
-
- test/stripe/radar/early_fraud_warning_test.rb
|
331
|
-
- test/stripe/radar/value_list_item_test.rb
|
332
|
-
- test/stripe/radar/value_list_test.rb
|
333
|
-
- test/stripe/recipient_test.rb
|
334
|
-
- test/stripe/refund_test.rb
|
335
|
-
- test/stripe/reporting/report_run_test.rb
|
336
|
-
- test/stripe/reporting/report_type_test.rb
|
337
|
-
- test/stripe/reversal_test.rb
|
338
|
-
- test/stripe/review_test.rb
|
339
|
-
- test/stripe/setup_intent_test.rb
|
340
|
-
- test/stripe/sigma/scheduled_query_run_test.rb
|
341
|
-
- test/stripe/sku_test.rb
|
342
|
-
- test/stripe/source_test.rb
|
343
|
-
- test/stripe/source_transaction_test.rb
|
344
|
-
- test/stripe/stripe_client_test.rb
|
345
|
-
- test/stripe/stripe_object_test.rb
|
346
|
-
- test/stripe/stripe_response_test.rb
|
347
|
-
- test/stripe/subscription_item_test.rb
|
348
|
-
- test/stripe/subscription_schedule_revision_test.rb
|
349
|
-
- test/stripe/subscription_schedule_test.rb
|
350
|
-
- test/stripe/subscription_test.rb
|
351
|
-
- test/stripe/tax_id_test.rb
|
352
|
-
- test/stripe/tax_rate_test.rb
|
353
|
-
- test/stripe/terminal/connection_token_test.rb
|
354
|
-
- test/stripe/terminal/location_test.rb
|
355
|
-
- test/stripe/terminal/reader_test.rb
|
356
|
-
- test/stripe/three_d_secure_test.rb
|
357
|
-
- test/stripe/topup_test.rb
|
358
|
-
- test/stripe/transfer_test.rb
|
359
|
-
- test/stripe/usage_record_summary_test.rb
|
360
|
-
- test/stripe/usage_record_test.rb
|
361
|
-
- test/stripe/util_test.rb
|
362
|
-
- test/stripe/webhook_endpoint_test.rb
|
363
|
-
- test/stripe/webhook_test.rb
|
364
|
-
- test/stripe_mock.rb
|
365
|
-
- test/stripe_test.rb
|
366
|
-
- test/test_data.rb
|
367
|
-
- test/test_helper.rb
|
183
|
+
test_files: []
|
data/.editorconfig
DELETED
data/.gitattributes
DELETED
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
Please only file issues here that you believe represent actual bugs or feature requests for the Stripe Ruby library.
|
2
|
-
|
3
|
-
If you're having general trouble with your Stripe integration, please reach out to support using the form at https://support.stripe.com/ (preferred) or via email to support@stripe.com.
|
4
|
-
|
5
|
-
If you are reporting a bug, please include your Ruby version and the version of the Stripe Ruby library you're using, as well as any other details that may be helpful in reproducing the problem.
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
|
-
|
3
|
-
AllCops:
|
4
|
-
DisplayCopNames: true
|
5
|
-
TargetRubyVersion: 2.1
|
6
|
-
|
7
|
-
Layout/CaseIndentation:
|
8
|
-
EnforcedStyle: end
|
9
|
-
|
10
|
-
Layout/IndentArray:
|
11
|
-
EnforcedStyle: consistent
|
12
|
-
|
13
|
-
Layout/IndentHash:
|
14
|
-
EnforcedStyle: consistent
|
15
|
-
|
16
|
-
Metrics/LineLength:
|
17
|
-
Exclude:
|
18
|
-
- "test/**/*.rb"
|
19
|
-
- "lib/stripe/resources/**/*.rb"
|
20
|
-
|
21
|
-
Metrics/MethodLength:
|
22
|
-
# There's ~2 long methods in `StripeClient`. If we want to truncate those a
|
23
|
-
# little, we could move this to be closer to ~30 (but the default of 10 is
|
24
|
-
# probably too short).
|
25
|
-
Max: 50
|
26
|
-
|
27
|
-
Metrics/ModuleLength:
|
28
|
-
Enabled: false
|
29
|
-
|
30
|
-
Style/AccessModifierDeclarations:
|
31
|
-
EnforcedStyle: inline
|
32
|
-
|
33
|
-
Style/FrozenStringLiteralComment:
|
34
|
-
EnforcedStyle: always
|
35
|
-
|
36
|
-
Style/StringLiterals:
|
37
|
-
EnforcedStyle: double_quotes
|
38
|
-
|
39
|
-
Style/TrailingCommaInArrayLiteral:
|
40
|
-
EnforcedStyleForMultiline: consistent_comma
|
41
|
-
|
42
|
-
Style/TrailingCommaInHashLiteral:
|
43
|
-
EnforcedStyleForMultiline: consistent_comma
|
data/.rubocop_todo.yml
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-05-24 10:18:48 -0700 using RuboCop version 0.57.2.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 20
|
10
|
-
Metrics/AbcSize:
|
11
|
-
Max: 53
|
12
|
-
|
13
|
-
# Offense count: 31
|
14
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
15
|
-
Metrics/BlockLength:
|
16
|
-
Max: 498
|
17
|
-
|
18
|
-
# Offense count: 11
|
19
|
-
# Configuration parameters: CountComments.
|
20
|
-
Metrics/ClassLength:
|
21
|
-
Max: 673
|
22
|
-
|
23
|
-
# Offense count: 12
|
24
|
-
Metrics/CyclomaticComplexity:
|
25
|
-
Max: 15
|
26
|
-
|
27
|
-
# Offense count: 6
|
28
|
-
# Configuration parameters: CountKeywordArgs.
|
29
|
-
Metrics/ParameterLists:
|
30
|
-
Max: 7
|
31
|
-
|
32
|
-
# Offense count: 7
|
33
|
-
Metrics/PerceivedComplexity:
|
34
|
-
Max: 17
|
35
|
-
|
36
|
-
# Offense count: 84
|
37
|
-
Style/Documentation:
|
38
|
-
Enabled: false
|
data/.travis.yml
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
rvm:
|
4
|
-
- 2.1
|
5
|
-
- 2.2
|
6
|
-
- 2.3
|
7
|
-
- 2.4
|
8
|
-
- 2.5
|
9
|
-
- 2.6
|
10
|
-
- jruby-9.0.5.0
|
11
|
-
|
12
|
-
notifications:
|
13
|
-
email:
|
14
|
-
on_success: never
|
15
|
-
|
16
|
-
sudo: false
|
17
|
-
|
18
|
-
env:
|
19
|
-
global:
|
20
|
-
# If changing this number, please also change it in `test/test_helper.rb`.
|
21
|
-
- STRIPE_MOCK_VERSION=0.60.0
|
22
|
-
|
23
|
-
cache:
|
24
|
-
directories:
|
25
|
-
- stripe-mock
|
26
|
-
|
27
|
-
before_install:
|
28
|
-
# Install bundler 1.x, because we need to support Ruby 2.1 for now
|
29
|
-
- gem install bundler -v "~> 1.0"
|
30
|
-
# Unpack and start stripe-mock so that the test suite can talk to it
|
31
|
-
- |
|
32
|
-
if [ ! -d "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}" ]; then
|
33
|
-
mkdir -p stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/
|
34
|
-
curl -L "https://github.com/stripe/stripe-mock/releases/download/v${STRIPE_MOCK_VERSION}/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz" -o "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz"
|
35
|
-
tar -zxf "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz" -C "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/"
|
36
|
-
fi
|
37
|
-
- |
|
38
|
-
stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/stripe-mock > /dev/null &
|
39
|
-
STRIPE_MOCK_PID=$!
|
40
|
-
- export PATH="${PATH}:${PWD}/stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}"
|
41
|
-
|
42
|
-
script:
|
43
|
-
- bundle exec rake
|
data/.vscode/extensions.json
DELETED
data/.vscode/settings.json
DELETED
@@ -1,34 +0,0 @@
|
|
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 " \
|
13
|
-
"subscription schedule ID."
|
14
|
-
end
|
15
|
-
"#{SubscriptionSchedule.resource_url}/#{CGI.escape(schedule)}" \
|
16
|
-
"/revisions/#{CGI.escape(id)}"
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.retrieve(_id, _opts = {})
|
20
|
-
raise NotImplementedError,
|
21
|
-
"Subscription schedule revisions cannot be retrieved without a " \
|
22
|
-
"subscription schedule ID. Retrieve a subscribtion schedule " \
|
23
|
-
"revision using `SubscriptionSchedule.retrieve_revision(" \
|
24
|
-
"'schedule_id', 'revision_id')`"
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.list(_id, _opts = {})
|
28
|
-
raise NotImplementedError,
|
29
|
-
"Subscription schedule revisions cannot be listed without a " \
|
30
|
-
"subscription schedule ID. List subscribtion schedule revisions " \
|
31
|
-
"using `SubscriptionSchedule.list_revisions('schedule_id')`"
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
data/test/api_stub_helpers.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
data/test/openapi/README.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
## Using custom OpenAPI specification and fixtures files
|
2
|
-
|
3
|
-
You can place custom OpenAPI specification and fixtures files in this
|
4
|
-
directory. The files must be in JSON format, and must be named `spec3.json`
|
5
|
-
and `fixtures3.json` respectively.
|
6
|
-
|
7
|
-
If those files are present, the test suite will start its own stripe-mock
|
8
|
-
process on a random available port. In order for this to work, `stripe-mock`
|
9
|
-
must be on the `PATH` in the environment used to run the test suite.
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require ::File.expand_path("../test_helper", __dir__)
|
4
|
-
|
5
|
-
module Stripe
|
6
|
-
class AccountLinkTest < Test::Unit::TestCase
|
7
|
-
should "be creatable" do
|
8
|
-
link = Stripe::AccountLink.create(
|
9
|
-
account: "acct_123",
|
10
|
-
failure_url: "https://stripe.com/failure",
|
11
|
-
success_url: "https://stripe.com/success",
|
12
|
-
type: "custom_account_verification"
|
13
|
-
)
|
14
|
-
assert_requested :post, "#{Stripe.api_base}/v1/account_links"
|
15
|
-
assert link.is_a?(Stripe::AccountLink)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|